]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Implement autostart scripts for Debian
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 WXCONS_CPPFLAGS
778 WXCONS_LDFLAGS
779 WX_DIR
780 TRAY_MONITOR_CPPFLAGS
781 TRAY_MONITOR_LDFLAGS
782 TRAY_MONITOR_DIR
783 TTOOL_LDFLAGS
784 STATIC_FD
785 STATIC_SD
786 STATIC_DIR
787 STATIC_CONS
788 STATIC_GNOME_CONS
789 STATIC_WX_CONS
790 ALL_DIRS
791 DIRD_DIR
792 DIR_TOOLS
793 STORED_DIR
794 CONS_INC
795 CONS_OBJ
796 CONS_SRC
797 CONS_LIBS
798 CONS_LDFLAGS
799 READLINE_SRC
800 PYTHON_LIBS
801 PYTHON_INCDIR
802 OPENSSL_LIBS
803 OPENSSL_INC
804 working_dir
805 archivedir
806 scriptdir
807 dump_email
808 job_email
809 smtp_host
810 piddir
811 subsysdir
812 baseport
813 dir_port
814 fd_port
815 sd_port
816 dir_password
817 fd_password
818 sd_password
819 mon_dir_password
820 mon_fd_password
821 mon_sd_password
822 db_name
823 db_user
824 dir_user
825 dir_group
826 sd_user
827 sd_group
828 fd_user
829 fd_group
830 SBINPERM
831 SQL_LFLAGS
832 SQL_INCLUDE
833 SQL_BINDIR
834 cats
835 DB_TYPE
836 GETCONF
837 XMKMF
838 X_CFLAGS
839 X_PRE_LIBS
840 X_LIBS
841 X_EXTRA_LIBS
842 LIBOBJS
843 FDLIBS
844 DEBUG
845 DINCLUDE
846 DLIB
847 DB_LIBS
848 WCFLAGS
849 WLDFLAGS
850 WRAPLIBS
851 OBJLIST
852 hostname
853 TAPEDRIVE
854 PSCMD
855 WIN32
856 MACOSX
857 DISTNAME
858 DISTVER
859 LTLIBOBJS'
860 ac_subst_files='MCOMMON'
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CC
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
869 CXX
870 CXXFLAGS
871 CCC
872 CPP
873 WXCONFIG
874 WXFLAGS
875 XMKMF'
876
877
878 # Initialize some variables set by options.
879 ac_init_help=
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
883 cache_file=/dev/null
884 exec_prefix=NONE
885 no_create=
886 no_recursion=
887 prefix=NONE
888 program_prefix=NONE
889 program_suffix=NONE
890 program_transform_name=s,x,x,
891 silent=
892 site=
893 srcdir=
894 verbose=
895 x_includes=NONE
896 x_libraries=NONE
897
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
916 htmldir='${docdir}'
917 dvidir='${docdir}'
918 pdfdir='${docdir}'
919 psdir='${docdir}'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
923
924 ac_prev=
925 ac_dashdash=
926 for ac_option
927 do
928   # If the previous option needs an argument, assign it.
929   if test -n "$ac_prev"; then
930     eval $ac_prev=\$ac_option
931     ac_prev=
932     continue
933   fi
934
935   case $ac_option in
936   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
937   *)    ac_optarg=yes ;;
938   esac
939
940   # Accept the important Cygnus configure options, so we can diagnose typos.
941
942   case $ac_dashdash$ac_option in
943   --)
944     ac_dashdash=yes ;;
945
946   -bindir | --bindir | --bindi | --bind | --bin | --bi)
947     ac_prev=bindir ;;
948   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949     bindir=$ac_optarg ;;
950
951   -build | --build | --buil | --bui | --bu)
952     ac_prev=build_alias ;;
953   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954     build_alias=$ac_optarg ;;
955
956   -cache-file | --cache-file | --cache-fil | --cache-fi \
957   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958     ac_prev=cache_file ;;
959   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961     cache_file=$ac_optarg ;;
962
963   --config-cache | -C)
964     cache_file=config.cache ;;
965
966   -datadir | --datadir | --datadi | --datad)
967     ac_prev=datadir ;;
968   -datadir=* | --datadir=* | --datadi=* | --datad=*)
969     datadir=$ac_optarg ;;
970
971   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972   | --dataroo | --dataro | --datar)
973     ac_prev=datarootdir ;;
974   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976     datarootdir=$ac_optarg ;;
977
978   -disable-* | --disable-*)
979     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
982       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983    { (exit 1); exit 1; }; }
984     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
985     eval enable_$ac_feature=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002    { (exit 1); exit 1; }; }
1003     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004     eval enable_$ac_feature=\$ac_optarg ;;
1005
1006   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008   | --exec | --exe | --ex)
1009     ac_prev=exec_prefix ;;
1010   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012   | --exec=* | --exe=* | --ex=*)
1013     exec_prefix=$ac_optarg ;;
1014
1015   -gas | --gas | --ga | --g)
1016     # Obsolete; use --with-gas.
1017     with_gas=yes ;;
1018
1019   -help | --help | --hel | --he | -h)
1020     ac_init_help=long ;;
1021   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022     ac_init_help=recursive ;;
1023   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024     ac_init_help=short ;;
1025
1026   -host | --host | --hos | --ho)
1027     ac_prev=host_alias ;;
1028   -host=* | --host=* | --hos=* | --ho=*)
1029     host_alias=$ac_optarg ;;
1030
1031   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032     ac_prev=htmldir ;;
1033   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034   | --ht=*)
1035     htmldir=$ac_optarg ;;
1036
1037   -includedir | --includedir | --includedi | --included | --include \
1038   | --includ | --inclu | --incl | --inc)
1039     ac_prev=includedir ;;
1040   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041   | --includ=* | --inclu=* | --incl=* | --inc=*)
1042     includedir=$ac_optarg ;;
1043
1044   -infodir | --infodir | --infodi | --infod | --info | --inf)
1045     ac_prev=infodir ;;
1046   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047     infodir=$ac_optarg ;;
1048
1049   -libdir | --libdir | --libdi | --libd)
1050     ac_prev=libdir ;;
1051   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052     libdir=$ac_optarg ;;
1053
1054   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055   | --libexe | --libex | --libe)
1056     ac_prev=libexecdir ;;
1057   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058   | --libexe=* | --libex=* | --libe=*)
1059     libexecdir=$ac_optarg ;;
1060
1061   -localedir | --localedir | --localedi | --localed | --locale)
1062     ac_prev=localedir ;;
1063   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064     localedir=$ac_optarg ;;
1065
1066   -localstatedir | --localstatedir | --localstatedi | --localstated \
1067   | --localstate | --localstat | --localsta | --localst | --locals)
1068     ac_prev=localstatedir ;;
1069   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071     localstatedir=$ac_optarg ;;
1072
1073   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074     ac_prev=mandir ;;
1075   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076     mandir=$ac_optarg ;;
1077
1078   -nfp | --nfp | --nf)
1079     # Obsolete; use --without-fp.
1080     with_fp=no ;;
1081
1082   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083   | --no-cr | --no-c | -n)
1084     no_create=yes ;;
1085
1086   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088     no_recursion=yes ;;
1089
1090   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092   | --oldin | --oldi | --old | --ol | --o)
1093     ac_prev=oldincludedir ;;
1094   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097     oldincludedir=$ac_optarg ;;
1098
1099   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100     ac_prev=prefix ;;
1101   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102     prefix=$ac_optarg ;;
1103
1104   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105   | --program-pre | --program-pr | --program-p)
1106     ac_prev=program_prefix ;;
1107   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109     program_prefix=$ac_optarg ;;
1110
1111   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112   | --program-suf | --program-su | --program-s)
1113     ac_prev=program_suffix ;;
1114   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116     program_suffix=$ac_optarg ;;
1117
1118   -program-transform-name | --program-transform-name \
1119   | --program-transform-nam | --program-transform-na \
1120   | --program-transform-n | --program-transform- \
1121   | --program-transform | --program-transfor \
1122   | --program-transfo | --program-transf \
1123   | --program-trans | --program-tran \
1124   | --progr-tra | --program-tr | --program-t)
1125     ac_prev=program_transform_name ;;
1126   -program-transform-name=* | --program-transform-name=* \
1127   | --program-transform-nam=* | --program-transform-na=* \
1128   | --program-transform-n=* | --program-transform-=* \
1129   | --program-transform=* | --program-transfor=* \
1130   | --program-transfo=* | --program-transf=* \
1131   | --program-trans=* | --program-tran=* \
1132   | --progr-tra=* | --program-tr=* | --program-t=*)
1133     program_transform_name=$ac_optarg ;;
1134
1135   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136     ac_prev=pdfdir ;;
1137   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138     pdfdir=$ac_optarg ;;
1139
1140   -psdir | --psdir | --psdi | --psd | --ps)
1141     ac_prev=psdir ;;
1142   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143     psdir=$ac_optarg ;;
1144
1145   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146   | -silent | --silent | --silen | --sile | --sil)
1147     silent=yes ;;
1148
1149   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150     ac_prev=sbindir ;;
1151   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152   | --sbi=* | --sb=*)
1153     sbindir=$ac_optarg ;;
1154
1155   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157   | --sharedst | --shareds | --shared | --share | --shar \
1158   | --sha | --sh)
1159     ac_prev=sharedstatedir ;;
1160   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163   | --sha=* | --sh=*)
1164     sharedstatedir=$ac_optarg ;;
1165
1166   -site | --site | --sit)
1167     ac_prev=site ;;
1168   -site=* | --site=* | --sit=*)
1169     site=$ac_optarg ;;
1170
1171   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172     ac_prev=srcdir ;;
1173   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174     srcdir=$ac_optarg ;;
1175
1176   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177   | --syscon | --sysco | --sysc | --sys | --sy)
1178     ac_prev=sysconfdir ;;
1179   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181     sysconfdir=$ac_optarg ;;
1182
1183   -target | --target | --targe | --targ | --tar | --ta | --t)
1184     ac_prev=target_alias ;;
1185   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186     target_alias=$ac_optarg ;;
1187
1188   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189     verbose=yes ;;
1190
1191   -version | --version | --versio | --versi | --vers | -V)
1192     ac_init_version=: ;;
1193
1194   -with-* | --with-*)
1195     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196     # Reject names that are not valid shell variable names.
1197     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198       { echo "$as_me: error: invalid package name: $ac_package" >&2
1199    { (exit 1); exit 1; }; }
1200     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1201     eval with_$ac_package=\$ac_optarg ;;
1202
1203   -without-* | --without-*)
1204     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       { echo "$as_me: error: invalid package name: $ac_package" >&2
1208    { (exit 1); exit 1; }; }
1209     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210     eval with_$ac_package=no ;;
1211
1212   --x)
1213     # Obsolete; use --with-x.
1214     with_x=yes ;;
1215
1216   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217   | --x-incl | --x-inc | --x-in | --x-i)
1218     ac_prev=x_includes ;;
1219   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221     x_includes=$ac_optarg ;;
1222
1223   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225     ac_prev=x_libraries ;;
1226   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228     x_libraries=$ac_optarg ;;
1229
1230   -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232    { (exit 1); exit 1; }; }
1233     ;;
1234
1235   *=*)
1236     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237     # Reject names that are not valid shell variable names.
1238     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240    { (exit 1); exit 1; }; }
1241     eval $ac_envvar=\$ac_optarg
1242     export $ac_envvar ;;
1243
1244   *)
1245     # FIXME: should be removed in autoconf 3.0.
1246     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1250     ;;
1251
1252   esac
1253 done
1254
1255 if test -n "$ac_prev"; then
1256   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257   { echo "$as_me: error: missing argument to $ac_option" >&2
1258    { (exit 1); exit 1; }; }
1259 fi
1260
1261 # Be sure to have absolute directory names.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   case $ac_val in
1269     [\\/$]* | ?:[\\/]* )  continue;;
1270     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271   esac
1272   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273    { (exit 1); exit 1; }; }
1274 done
1275
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1279 build=$build_alias
1280 host=$host_alias
1281 target=$target_alias
1282
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285   if test "x$build_alias" = x; then
1286     cross_compiling=maybe
1287     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288     If a cross compiler is detected then cross compile mode will be used." >&2
1289   elif test "x$build_alias" != "x$host_alias"; then
1290     cross_compiling=yes
1291   fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303   { echo "$as_me: error: Working directory cannot be determined" >&2
1304    { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306   { echo "$as_me: error: pwd does not report name of working directory" >&2
1307    { (exit 1); exit 1; }; }
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$0" : 'X\(//\)[^/]' \| \
1317          X"$0" : 'X\(//\)$' \| \
1318          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1319 echo X"$0" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347    { (exit 1); exit 1; }; }
1348 fi
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350 ac_abs_confdir=`(
1351         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352    { (exit 1); exit 1; }; }
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures this package to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR           user executables [EPREFIX/bin]
1413   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR       program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR           object code libraries [EPREFIX/lib]
1419   --includedir=DIR       C header files [PREFIX/include]
1420   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR          info documentation [DATAROOTDIR/info]
1424   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR           man documentation [DATAROOTDIR/man]
1426   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1427   --htmldir=DIR          html documentation [DOCDIR]
1428   --dvidir=DIR           dvi documentation [DOCDIR]
1429   --pdfdir=DIR           pdf documentation [DOCDIR]
1430   --psdir=DIR            ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 X features:
1436   --x-includes=DIR    X include files are in DIR
1437   --x-libraries=DIR   X library files are in DIR
1438
1439 System types:
1440   --build=BUILD     configure for building on BUILD [guessed]
1441   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446
1447   cat <<\_ACEOF
1448
1449 Optional Features:
1450   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1451   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1452   --disable-nls           do not use Native Language Support
1453   --disable-rpath         do not hardcode runtime library paths
1454   --enable-gnome          enable build of bgnome-console GUI disabled
1455   --enable-bat  enable build of bat Qt4 GUI disabled
1456   --enable-bwx-console     enable build of wxWidgets console disabled
1457   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1458   --enable-smartalloc     enable smartalloc debugging support disabled
1459   --enable-static-tools   enable static tape tools disabled
1460   --enable-static-fd      enable static File daemon disabled
1461   --enable-static-sd      enable static Storage daemon disabled
1462   --enable-static-dir     enable static Director disabled
1463   --enable-static-cons    enable static Console disabled
1464   --enable-client-only    build client (File daemon) only disabled
1465   --enable-build-dird     enable building of dird (Director) enabled
1466   --enable-build-stored   enable building of stored (Storage daemon) enabled
1467  --disable-conio disable conio support enabled
1468
1469   --enable-ipv6             enable ipv6 support enabled
1470
1471   --disable-readline      disable readline support disable
1472
1473         --enable-batch-insert       enable the DB batch insert code disabled
1474   --disable-largefile     omit support for large files
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1480   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1481   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1482   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1483   --without-libintl-prefix     don't search for libintl in includedir and libdir
1484   --with-included-gettext use the GNU gettext library included here
1485  --with-qwt[=DIR]                 specify qwt library directory
1486  --with-readline[=DIR]         specify readline library directory
1487
1488   --with-python[=DIR]   Include Python support.  DIR is the Python base
1489                           install directory, default is to search through
1490                           a number of common places for the Python files.
1491   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1492   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1493   --with-working-dir=PATH        specify path of Bacula working directory
1494   --with-archivedir=PATH        specify path of SD archive directory
1495   --with-scriptdir=PATH    specify path of Bacula scripts directory
1496   --with-dump-email=EMAIL        dump email address
1497   --with-job-email=EMAIL         job output email address
1498   --with-smtp-host=HOST          SMTP mail host address
1499   --with-pid-dir=PATH            specify location of Bacula pid files
1500   --with-subsys-dir=PATH         specify location of Bacula subsys file
1501   --with-baseport=PORT           specify base port address for daemons
1502   --with-dir-password=PASSWORD   specify Director's password
1503   --with-fd-password=PASSWORD    specify Client's password
1504   --with-sd-password=PASSWORD    specify Storage daemon's password
1505   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1506   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1507   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1508   --with-db-name=DBNAME        specify database name (default bacula)
1509   --with-db-user=UNAME         specify database user (default bacula)
1510   --with-dir-user=USER           specify user for Director daemon
1511   --with-dir-group=GROUP                 specify group for Director daemon
1512   --with-sd-user=USER            specify user for Storage daemon
1513   --with-sd-group=GROUP          specify group for Storage daemon
1514   --with-fd-user=USER            specify user for File daemon
1515   --with-fd-group=GROUP          specify group for File daemon
1516   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1517   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1518                           base install directory, defaults to /usr/local/pgsql
1519
1520   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1521                           install directory, default is to search through
1522                           a number of common places for the MySQL files.
1523
1524   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1525                           install directory, default is to search through
1526                           a number of common places for the MySQL files.
1527
1528   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1529                           install directory, default is to search through
1530                           a number of common places for the SQLite3 files.
1531
1532   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1533                           install directory, default is to search through
1534                           a number of common places for the SQLite files.
1535   --with-x                use the X Window System
1536
1537 Some influential environment variables:
1538   CC          C compiler command
1539   CFLAGS      C compiler flags
1540   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1541               nonstandard directory <lib dir>
1542   LIBS        libraries to pass to the linker, e.g. -l<library>
1543   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544               you have headers in a nonstandard directory <include dir>
1545   CXX         C++ compiler command
1546   CXXFLAGS    C++ compiler flags
1547   CPP         C preprocessor
1548   WXCONFIG    wx-config command. On some systems, you must set it to
1549               wx-config-2.6 to use wxWidgets 2.6.
1550   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1551   XMKMF       Path to xmkmf, Makefile generator for X Window System
1552
1553 Use these variables to override the choices made by `configure' or to help
1554 it to find libraries and programs with nonstandard names/locations.
1555
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561   # If there are subdirs, report their specific --help.
1562   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563     test -d "$ac_dir" || continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for guested configure.
1600     if test -f "$ac_srcdir/configure.gnu"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603     elif test -f "$ac_srcdir/configure"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure" --help=recursive
1606     else
1607       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608     fi || ac_status=$?
1609     cd "$ac_pwd" || { ac_status=$?; break; }
1610   done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615   cat <<\_ACEOF
1616 configure
1617 generated by GNU Autoconf 2.61
1618
1619 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1620 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624   exit
1625 fi
1626 cat >config.log <<_ACEOF
1627 This file contains any messages produced by compilers while
1628 running configure, to aid debugging if configure makes a mistake.
1629
1630 It was created by $as_me, which was
1631 generated by GNU Autoconf 2.61.  Invocation command line was
1632
1633   $ $0 $@
1634
1635 _ACEOF
1636 exec 5>>config.log
1637 {
1638 cat <<_ASUNAME
1639 ## --------- ##
1640 ## Platform. ##
1641 ## --------- ##
1642
1643 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1644 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1645 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1646 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1647 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1648
1649 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1650 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1651
1652 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1653 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1654 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1655 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1656 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1657 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1658 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1659
1660 _ASUNAME
1661
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 for as_dir in $PATH
1664 do
1665   IFS=$as_save_IFS
1666   test -z "$as_dir" && as_dir=.
1667   echo "PATH: $as_dir"
1668 done
1669 IFS=$as_save_IFS
1670
1671 } >&5
1672
1673 cat >&5 <<_ACEOF
1674
1675
1676 ## ----------- ##
1677 ## Core tests. ##
1678 ## ----------- ##
1679
1680 _ACEOF
1681
1682
1683 # Keep a trace of the command line.
1684 # Strip out --no-create and --no-recursion so they do not pile up.
1685 # Strip out --silent because we don't want to record it for future runs.
1686 # Also quote any args containing shell meta-characters.
1687 # Make two passes to allow for proper duplicate-argument suppression.
1688 ac_configure_args=
1689 ac_configure_args0=
1690 ac_configure_args1=
1691 ac_must_keep_next=false
1692 for ac_pass in 1 2
1693 do
1694   for ac_arg
1695   do
1696     case $ac_arg in
1697     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1698     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1699     | -silent | --silent | --silen | --sile | --sil)
1700       continue ;;
1701     *\'*)
1702       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1703     esac
1704     case $ac_pass in
1705     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1706     2)
1707       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1708       if test $ac_must_keep_next = true; then
1709         ac_must_keep_next=false # Got value, back to normal.
1710       else
1711         case $ac_arg in
1712           *=* | --config-cache | -C | -disable-* | --disable-* \
1713           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1714           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1715           | -with-* | --with-* | -without-* | --without-* | --x)
1716             case "$ac_configure_args0 " in
1717               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1718             esac
1719             ;;
1720           -* ) ac_must_keep_next=true ;;
1721         esac
1722       fi
1723       ac_configure_args="$ac_configure_args '$ac_arg'"
1724       ;;
1725     esac
1726   done
1727 done
1728 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1729 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1730
1731 # When interrupted or exit'd, cleanup temporary files, and complete
1732 # config.log.  We remove comments because anyway the quotes in there
1733 # would cause problems or look ugly.
1734 # WARNING: Use '\'' to represent an apostrophe within the trap.
1735 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1736 trap 'exit_status=$?
1737   # Save into config.log some information that might help in debugging.
1738   {
1739     echo
1740
1741     cat <<\_ASBOX
1742 ## ---------------- ##
1743 ## Cache variables. ##
1744 ## ---------------- ##
1745 _ASBOX
1746     echo
1747     # The following way of writing the cache mishandles newlines in values,
1748 (
1749   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1750     eval ac_val=\$$ac_var
1751     case $ac_val in #(
1752     *${as_nl}*)
1753       case $ac_var in #(
1754       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1755 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1756       esac
1757       case $ac_var in #(
1758       _ | IFS | as_nl) ;; #(
1759       *) $as_unset $ac_var ;;
1760       esac ;;
1761     esac
1762   done
1763   (set) 2>&1 |
1764     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1765     *${as_nl}ac_space=\ *)
1766       sed -n \
1767         "s/'\''/'\''\\\\'\'''\''/g;
1768           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1769       ;; #(
1770     *)
1771       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1772       ;;
1773     esac |
1774     sort
1775 )
1776     echo
1777
1778     cat <<\_ASBOX
1779 ## ----------------- ##
1780 ## Output variables. ##
1781 ## ----------------- ##
1782 _ASBOX
1783     echo
1784     for ac_var in $ac_subst_vars
1785     do
1786       eval ac_val=\$$ac_var
1787       case $ac_val in
1788       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789       esac
1790       echo "$ac_var='\''$ac_val'\''"
1791     done | sort
1792     echo
1793
1794     if test -n "$ac_subst_files"; then
1795       cat <<\_ASBOX
1796 ## ------------------- ##
1797 ## File substitutions. ##
1798 ## ------------------- ##
1799 _ASBOX
1800       echo
1801       for ac_var in $ac_subst_files
1802       do
1803         eval ac_val=\$$ac_var
1804         case $ac_val in
1805         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1806         esac
1807         echo "$ac_var='\''$ac_val'\''"
1808       done | sort
1809       echo
1810     fi
1811
1812     if test -s confdefs.h; then
1813       cat <<\_ASBOX
1814 ## ----------- ##
1815 ## confdefs.h. ##
1816 ## ----------- ##
1817 _ASBOX
1818       echo
1819       cat confdefs.h
1820       echo
1821     fi
1822     test "$ac_signal" != 0 &&
1823       echo "$as_me: caught signal $ac_signal"
1824     echo "$as_me: exit $exit_status"
1825   } >&5
1826   rm -f core *.core core.conftest.* &&
1827     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1828     exit $exit_status
1829 ' 0
1830 for ac_signal in 1 2 13 15; do
1831   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1832 done
1833 ac_signal=0
1834
1835 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1836 rm -f -r conftest* confdefs.h
1837
1838 # Predefined preprocessor variables.
1839
1840 cat >>confdefs.h <<_ACEOF
1841 #define PACKAGE_NAME "$PACKAGE_NAME"
1842 _ACEOF
1843
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_STRING "$PACKAGE_STRING"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1862 _ACEOF
1863
1864
1865 # Let the site file select an alternate cache file if it wants to.
1866 # Prefer explicitly selected file to automatically selected ones.
1867 if test -n "$CONFIG_SITE"; then
1868   set x "$CONFIG_SITE"
1869 elif test "x$prefix" != xNONE; then
1870   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1871 else
1872   set x "$ac_default_prefix/share/config.site" \
1873         "$ac_default_prefix/etc/config.site"
1874 fi
1875 shift
1876 for ac_site_file
1877 do
1878   if test -r "$ac_site_file"; then
1879     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1880 echo "$as_me: loading site script $ac_site_file" >&6;}
1881     sed 's/^/| /' "$ac_site_file" >&5
1882     . "$ac_site_file"
1883   fi
1884 done
1885
1886 if test -r "$cache_file"; then
1887   # Some versions of bash will fail to source /dev/null (special
1888   # files actually), so we avoid doing that.
1889   if test -f "$cache_file"; then
1890     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1891 echo "$as_me: loading cache $cache_file" >&6;}
1892     case $cache_file in
1893       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1894       *)                      . "./$cache_file";;
1895     esac
1896   fi
1897 else
1898   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1899 echo "$as_me: creating cache $cache_file" >&6;}
1900   >$cache_file
1901 fi
1902
1903 # Check that the precious variables saved in the cache have kept the same
1904 # value.
1905 ac_cache_corrupted=false
1906 for ac_var in $ac_precious_vars; do
1907   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1908   eval ac_new_set=\$ac_env_${ac_var}_set
1909   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1910   eval ac_new_val=\$ac_env_${ac_var}_value
1911   case $ac_old_set,$ac_new_set in
1912     set,)
1913       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1914 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1915       ac_cache_corrupted=: ;;
1916     ,set)
1917       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1919       ac_cache_corrupted=: ;;
1920     ,);;
1921     *)
1922       if test "x$ac_old_val" != "x$ac_new_val"; then
1923         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1924 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1925         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1926 echo "$as_me:   former value:  $ac_old_val" >&2;}
1927         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1928 echo "$as_me:   current value: $ac_new_val" >&2;}
1929         ac_cache_corrupted=:
1930       fi;;
1931   esac
1932   # Pass precious variables to config.status.
1933   if test "$ac_new_set" = set; then
1934     case $ac_new_val in
1935     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1936     *) ac_arg=$ac_var=$ac_new_val ;;
1937     esac
1938     case " $ac_configure_args " in
1939       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1940       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941     esac
1942   fi
1943 done
1944 if $ac_cache_corrupted; then
1945   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1946 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1947   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1948 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1949    { (exit 1); exit 1; }; }
1950 fi
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968 ac_ext=c
1969 ac_cpp='$CPP $CPPFLAGS'
1970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1973
1974
1975 BUILD_DIR=`pwd`
1976 cd ..
1977 TOP_DIR=`pwd`
1978 cd ${BUILD_DIR}
1979
1980
1981 ac_aux_dir=
1982 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1983   if test -f "$ac_dir/install-sh"; then
1984     ac_aux_dir=$ac_dir
1985     ac_install_sh="$ac_aux_dir/install-sh -c"
1986     break
1987   elif test -f "$ac_dir/install.sh"; then
1988     ac_aux_dir=$ac_dir
1989     ac_install_sh="$ac_aux_dir/install.sh -c"
1990     break
1991   elif test -f "$ac_dir/shtool"; then
1992     ac_aux_dir=$ac_dir
1993     ac_install_sh="$ac_aux_dir/shtool install -c"
1994     break
1995   fi
1996 done
1997 if test -z "$ac_aux_dir"; then
1998   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1999 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2000    { (exit 1); exit 1; }; }
2001 fi
2002
2003 # These three variables are undocumented and unsupported,
2004 # and are intended to be withdrawn in a future Autoconf release.
2005 # They can cause serious problems if a builder's source tree is in a directory
2006 # whose full name contains unusual characters.
2007 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2008 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2009 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2010
2011
2012 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2013
2014
2015
2016
2017
2018 for ac_prog in true
2019 do
2020   # Extract the first word of "$ac_prog", so it can be a program name with args.
2021 set dummy $ac_prog; ac_word=$2
2022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2024 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   case $TRUEPRG in
2028   [\\/]* | ?:[\\/]*)
2029   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2030   ;;
2031   *)
2032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2034 do
2035   IFS=$as_save_IFS
2036   test -z "$as_dir" && as_dir=.
2037   for ac_exec_ext in '' $ac_executable_extensions; do
2038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2039     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2040     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041     break 2
2042   fi
2043 done
2044 done
2045 IFS=$as_save_IFS
2046
2047   ;;
2048 esac
2049 fi
2050 TRUEPRG=$ac_cv_path_TRUEPRG
2051 if test -n "$TRUEPRG"; then
2052   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2053 echo "${ECHO_T}$TRUEPRG" >&6; }
2054 else
2055   { echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6; }
2057 fi
2058
2059
2060   test -n "$TRUEPRG" && break
2061 done
2062 test -n "$TRUEPRG" || TRUEPRG=":"
2063
2064 for ac_prog in false
2065 do
2066   # Extract the first word of "$ac_prog", so it can be a program name with args.
2067 set dummy $ac_prog; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   case $FALSEPRG in
2074   [\\/]* | ?:[\\/]*)
2075   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2076   ;;
2077   *)
2078   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093   ;;
2094 esac
2095 fi
2096 FALSEPRG=$ac_cv_path_FALSEPRG
2097 if test -n "$FALSEPRG"; then
2098   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2099 echo "${ECHO_T}$FALSEPRG" >&6; }
2100 else
2101   { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2103 fi
2104
2105
2106   test -n "$FALSEPRG" && break
2107 done
2108 test -n "$FALSEPRG" || FALSEPRG=":"
2109
2110
2111
2112 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2113 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2114 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2115 echo "configuring for bacula $VERSION ($DATE)"
2116
2117
2118
2119 ac_ext=c
2120 ac_cpp='$CPP $CPPFLAGS'
2121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2124 if test -n "$ac_tool_prefix"; then
2125   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   echo $ECHO_N "(cached) $ECHO_C" >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140   for ac_exec_ext in '' $ac_executable_extensions; do
2141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162 fi
2163 if test -z "$ac_cv_prog_CC"; then
2164   ac_ct_CC=$CC
2165   # Extract the first word of "gcc", so it can be a program name with args.
2166 set dummy gcc; ac_word=$2
2167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$ac_ct_CC"; then
2173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182     ac_cv_prog_ac_ct_CC="gcc"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188 IFS=$as_save_IFS
2189
2190 fi
2191 fi
2192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2193 if test -n "$ac_ct_CC"; then
2194   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2195 echo "${ECHO_T}$ac_ct_CC" >&6; }
2196 else
2197   { echo "$as_me:$LINENO: result: no" >&5
2198 echo "${ECHO_T}no" >&6; }
2199 fi
2200
2201   if test "x$ac_ct_CC" = x; then
2202     CC=""
2203   else
2204     case $cross_compiling:$ac_tool_warned in
2205 yes:)
2206 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2207 whose name does not start with the host triplet.  If you think this
2208 configuration is useful to you, please write to autoconf@gnu.org." >&5
2209 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2210 whose name does not start with the host triplet.  If you think this
2211 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2212 ac_tool_warned=yes ;;
2213 esac
2214     CC=$ac_ct_CC
2215   fi
2216 else
2217   CC="$ac_cv_prog_CC"
2218 fi
2219
2220 if test -z "$CC"; then
2221           if test -n "$ac_tool_prefix"; then
2222     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2223 set dummy ${ac_tool_prefix}cc; ac_word=$2
2224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2226 if test "${ac_cv_prog_CC+set}" = set; then
2227   echo $ECHO_N "(cached) $ECHO_C" >&6
2228 else
2229   if test -n "$CC"; then
2230   ac_cv_prog_CC="$CC" # Let the user override the test.
2231 else
2232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233 for as_dir in $PATH
2234 do
2235   IFS=$as_save_IFS
2236   test -z "$as_dir" && as_dir=.
2237   for ac_exec_ext in '' $ac_executable_extensions; do
2238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2239     ac_cv_prog_CC="${ac_tool_prefix}cc"
2240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241     break 2
2242   fi
2243 done
2244 done
2245 IFS=$as_save_IFS
2246
2247 fi
2248 fi
2249 CC=$ac_cv_prog_CC
2250 if test -n "$CC"; then
2251   { echo "$as_me:$LINENO: result: $CC" >&5
2252 echo "${ECHO_T}$CC" >&6; }
2253 else
2254   { echo "$as_me:$LINENO: result: no" >&5
2255 echo "${ECHO_T}no" >&6; }
2256 fi
2257
2258
2259   fi
2260 fi
2261 if test -z "$CC"; then
2262   # Extract the first word of "cc", so it can be a program name with args.
2263 set dummy cc; ac_word=$2
2264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267   echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269   if test -n "$CC"; then
2270   ac_cv_prog_CC="$CC" # Let the user override the test.
2271 else
2272   ac_prog_rejected=no
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278   for ac_exec_ext in '' $ac_executable_extensions; do
2279   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2281        ac_prog_rejected=yes
2282        continue
2283      fi
2284     ac_cv_prog_CC="cc"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290 IFS=$as_save_IFS
2291
2292 if test $ac_prog_rejected = yes; then
2293   # We found a bogon in the path, so make sure we never use it.
2294   set dummy $ac_cv_prog_CC
2295   shift
2296   if test $# != 0; then
2297     # We chose a different compiler from the bogus one.
2298     # However, it has the same basename, so the bogon will be chosen
2299     # first if we set CC to just the basename; use the full file name.
2300     shift
2301     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2302   fi
2303 fi
2304 fi
2305 fi
2306 CC=$ac_cv_prog_CC
2307 if test -n "$CC"; then
2308   { echo "$as_me:$LINENO: result: $CC" >&5
2309 echo "${ECHO_T}$CC" >&6; }
2310 else
2311   { echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6; }
2313 fi
2314
2315
2316 fi
2317 if test -z "$CC"; then
2318   if test -n "$ac_tool_prefix"; then
2319   for ac_prog in cl.exe
2320   do
2321     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_CC+set}" = set; then
2326   echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328   if test -n "$CC"; then
2329   ac_cv_prog_CC="$CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2339     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340     break 2
2341   fi
2342 done
2343 done
2344 IFS=$as_save_IFS
2345
2346 fi
2347 fi
2348 CC=$ac_cv_prog_CC
2349 if test -n "$CC"; then
2350   { echo "$as_me:$LINENO: result: $CC" >&5
2351 echo "${ECHO_T}$CC" >&6; }
2352 else
2353   { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2355 fi
2356
2357
2358     test -n "$CC" && break
2359   done
2360 fi
2361 if test -z "$CC"; then
2362   ac_ct_CC=$CC
2363   for ac_prog in cl.exe
2364 do
2365   # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2370   echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372   if test -n "$ac_ct_CC"; then
2373   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378   IFS=$as_save_IFS
2379   test -z "$as_dir" && as_dir=.
2380   for ac_exec_ext in '' $ac_executable_extensions; do
2381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2382     ac_cv_prog_ac_ct_CC="$ac_prog"
2383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384     break 2
2385   fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2393 if test -n "$ac_ct_CC"; then
2394   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2395 echo "${ECHO_T}$ac_ct_CC" >&6; }
2396 else
2397   { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2399 fi
2400
2401
2402   test -n "$ac_ct_CC" && break
2403 done
2404
2405   if test "x$ac_ct_CC" = x; then
2406     CC=""
2407   else
2408     case $cross_compiling:$ac_tool_warned in
2409 yes:)
2410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet.  If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&5
2413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet.  If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418     CC=$ac_ct_CC
2419   fi
2420 fi
2421
2422 fi
2423
2424
2425 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2426 See \`config.log' for more details." >&5
2427 echo "$as_me: error: no acceptable C compiler found in \$PATH
2428 See \`config.log' for more details." >&2;}
2429    { (exit 1); exit 1; }; }
2430
2431 # Provide some information about the compiler.
2432 echo "$as_me:$LINENO: checking for C compiler version" >&5
2433 ac_compiler=`set X $ac_compile; echo $2`
2434 { (ac_try="$ac_compiler --version >&5"
2435 case "(($ac_try" in
2436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437   *) ac_try_echo=$ac_try;;
2438 esac
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440   (eval "$ac_compiler --version >&5") 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444 { (ac_try="$ac_compiler -v >&5"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_compiler -v >&5") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }
2454 { (ac_try="$ac_compiler -V >&5"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460   (eval "$ac_compiler -V >&5") 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }
2464
2465 cat >conftest.$ac_ext <<_ACEOF
2466 /* confdefs.h.  */
2467 _ACEOF
2468 cat confdefs.h >>conftest.$ac_ext
2469 cat >>conftest.$ac_ext <<_ACEOF
2470 /* end confdefs.h.  */
2471
2472 int
2473 main ()
2474 {
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 ac_clean_files_save=$ac_clean_files
2481 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2482 # Try to create an executable without -o first, disregard a.out.
2483 # It will help us diagnose broken compilers, and finding out an intuition
2484 # of exeext.
2485 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2486 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2487 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2488 #
2489 # List of possible output files, starting from the most likely.
2490 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2491 # only as a last resort.  b.out is created by i960 compilers.
2492 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2493 #
2494 # The IRIX 6 linker writes into existing files which may not be
2495 # executable, retaining their permissions.  Remove them first so a
2496 # subsequent execution test works.
2497 ac_rmfiles=
2498 for ac_file in $ac_files
2499 do
2500   case $ac_file in
2501     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2502     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2503   esac
2504 done
2505 rm -f $ac_rmfiles
2506
2507 if { (ac_try="$ac_link_default"
2508 case "(($ac_try" in
2509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510   *) ac_try_echo=$ac_try;;
2511 esac
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513   (eval "$ac_link_default") 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; then
2517   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2519 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2520 # so that the user can short-circuit this test for compilers unknown to
2521 # Autoconf.
2522 for ac_file in $ac_files ''
2523 do
2524   test -f "$ac_file" || continue
2525   case $ac_file in
2526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2527         ;;
2528     [ab].out )
2529         # We found the default executable, but exeext='' is most
2530         # certainly right.
2531         break;;
2532     *.* )
2533         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2534         then :; else
2535            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2536         fi
2537         # We set ac_cv_exeext here because the later test for it is not
2538         # safe: cross compilers may not add the suffix if given an `-o'
2539         # argument, so we may need to know it at that point already.
2540         # Even if this section looks crufty: it has the advantage of
2541         # actually working.
2542         break;;
2543     * )
2544         break;;
2545   esac
2546 done
2547 test "$ac_cv_exeext" = no && ac_cv_exeext=
2548
2549 else
2550   ac_file=''
2551 fi
2552
2553 { echo "$as_me:$LINENO: result: $ac_file" >&5
2554 echo "${ECHO_T}$ac_file" >&6; }
2555 if test -z "$ac_file"; then
2556   echo "$as_me: failed program was:" >&5
2557 sed 's/^/| /' conftest.$ac_ext >&5
2558
2559 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: C compiler cannot create executables
2562 See \`config.log' for more details." >&2;}
2563    { (exit 77); exit 77; }; }
2564 fi
2565
2566 ac_exeext=$ac_cv_exeext
2567
2568 # Check that the compiler produces executables we can run.  If not, either
2569 # the compiler is broken, or we cross compile.
2570 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2571 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2572 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2573 # If not cross compiling, check that we can run a simple program.
2574 if test "$cross_compiling" != yes; then
2575   if { ac_try='./$ac_file'
2576   { (case "(($ac_try" in
2577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578   *) ac_try_echo=$ac_try;;
2579 esac
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581   (eval "$ac_try") 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); }; }; then
2585     cross_compiling=no
2586   else
2587     if test "$cross_compiling" = maybe; then
2588         cross_compiling=yes
2589     else
2590         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2591 If you meant to cross compile, use \`--host'.
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: cannot run C compiled programs.
2594 If you meant to cross compile, use \`--host'.
2595 See \`config.log' for more details." >&2;}
2596    { (exit 1); exit 1; }; }
2597     fi
2598   fi
2599 fi
2600 { echo "$as_me:$LINENO: result: yes" >&5
2601 echo "${ECHO_T}yes" >&6; }
2602
2603 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2604 ac_clean_files=$ac_clean_files_save
2605 # Check that the compiler produces executables we can run.  If not, either
2606 # the compiler is broken, or we cross compile.
2607 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2608 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2609 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2610 echo "${ECHO_T}$cross_compiling" >&6; }
2611
2612 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2613 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2614 if { (ac_try="$ac_link"
2615 case "(($ac_try" in
2616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617   *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620   (eval "$ac_link") 2>&5
2621   ac_status=$?
2622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623   (exit $ac_status); }; then
2624   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2625 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2626 # work properly (i.e., refer to `conftest.exe'), while it won't with
2627 # `rm'.
2628 for ac_file in conftest.exe conftest conftest.*; do
2629   test -f "$ac_file" || continue
2630   case $ac_file in
2631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2632     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2633           break;;
2634     * ) break;;
2635   esac
2636 done
2637 else
2638   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2641 See \`config.log' for more details." >&2;}
2642    { (exit 1); exit 1; }; }
2643 fi
2644
2645 rm -f conftest$ac_cv_exeext
2646 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2647 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2648
2649 rm -f conftest.$ac_ext
2650 EXEEXT=$ac_cv_exeext
2651 ac_exeext=$EXEEXT
2652 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2653 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2654 if test "${ac_cv_objext+set}" = set; then
2655   echo $ECHO_N "(cached) $ECHO_C" >&6
2656 else
2657   cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663
2664 int
2665 main ()
2666 {
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.o conftest.obj
2673 if { (ac_try="$ac_compile"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679   (eval "$ac_compile") 2>&5
2680   ac_status=$?
2681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2682   (exit $ac_status); }; then
2683   for ac_file in conftest.o conftest.obj conftest.*; do
2684   test -f "$ac_file" || continue;
2685   case $ac_file in
2686     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2687     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2688        break;;
2689   esac
2690 done
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2698 See \`config.log' for more details." >&2;}
2699    { (exit 1); exit 1; }; }
2700 fi
2701
2702 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2703 fi
2704 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2705 echo "${ECHO_T}$ac_cv_objext" >&6; }
2706 OBJEXT=$ac_cv_objext
2707 ac_objext=$OBJEXT
2708 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2709 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2710 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2711   echo $ECHO_N "(cached) $ECHO_C" >&6
2712 else
2713   cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719
2720 int
2721 main ()
2722 {
2723 #ifndef __GNUC__
2724        choke me
2725 #endif
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } && {
2745          test -z "$ac_c_werror_flag" ||
2746          test ! -s conftest.err
2747        } && test -s conftest.$ac_objext; then
2748   ac_compiler_gnu=yes
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753         ac_compiler_gnu=no
2754 fi
2755
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2758
2759 fi
2760 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2761 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2762 GCC=`test $ac_compiler_gnu = yes && echo yes`
2763 ac_test_CFLAGS=${CFLAGS+set}
2764 ac_save_CFLAGS=$CFLAGS
2765 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2766 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_cc_g+set}" = set; then
2768   echo $ECHO_N "(cached) $ECHO_C" >&6
2769 else
2770   ac_save_c_werror_flag=$ac_c_werror_flag
2771    ac_c_werror_flag=yes
2772    ac_cv_prog_cc_g=no
2773    CFLAGS="-g"
2774    cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780
2781 int
2782 main ()
2783 {
2784
2785   ;
2786   return 0;
2787 }
2788 _ACEOF
2789 rm -f conftest.$ac_objext
2790 if { (ac_try="$ac_compile"
2791 case "(($ac_try" in
2792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793   *) ac_try_echo=$ac_try;;
2794 esac
2795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2796   (eval "$ac_compile") 2>conftest.er1
2797   ac_status=$?
2798   grep -v '^ *+' conftest.er1 >conftest.err
2799   rm -f conftest.er1
2800   cat conftest.err >&5
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); } && {
2803          test -z "$ac_c_werror_flag" ||
2804          test ! -s conftest.err
2805        } && test -s conftest.$ac_objext; then
2806   ac_cv_prog_cc_g=yes
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811         CFLAGS=""
2812       cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818
2819 int
2820 main ()
2821 {
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_compile") 2>conftest.er1
2835   ac_status=$?
2836   grep -v '^ *+' conftest.er1 >conftest.err
2837   rm -f conftest.er1
2838   cat conftest.err >&5
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } && {
2841          test -z "$ac_c_werror_flag" ||
2842          test ! -s conftest.err
2843        } && test -s conftest.$ac_objext; then
2844   :
2845 else
2846   echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849         ac_c_werror_flag=$ac_save_c_werror_flag
2850          CFLAGS="-g"
2851          cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h.  */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h.  */
2857
2858 int
2859 main ()
2860 {
2861
2862   ;
2863   return 0;
2864 }
2865 _ACEOF
2866 rm -f conftest.$ac_objext
2867 if { (ac_try="$ac_compile"
2868 case "(($ac_try" in
2869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870   *) ac_try_echo=$ac_try;;
2871 esac
2872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2873   (eval "$ac_compile") 2>conftest.er1
2874   ac_status=$?
2875   grep -v '^ *+' conftest.er1 >conftest.err
2876   rm -f conftest.er1
2877   cat conftest.err >&5
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); } && {
2880          test -z "$ac_c_werror_flag" ||
2881          test ! -s conftest.err
2882        } && test -s conftest.$ac_objext; then
2883   ac_cv_prog_cc_g=yes
2884 else
2885   echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2887
2888
2889 fi
2890
2891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 fi
2893
2894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2895 fi
2896
2897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898    ac_c_werror_flag=$ac_save_c_werror_flag
2899 fi
2900 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2901 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2902 if test "$ac_test_CFLAGS" = set; then
2903   CFLAGS=$ac_save_CFLAGS
2904 elif test $ac_cv_prog_cc_g = yes; then
2905   if test "$GCC" = yes; then
2906     CFLAGS="-g -O2"
2907   else
2908     CFLAGS="-g"
2909   fi
2910 else
2911   if test "$GCC" = yes; then
2912     CFLAGS="-O2"
2913   else
2914     CFLAGS=
2915   fi
2916 fi
2917 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2918 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_cc_c89+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   ac_cv_prog_cc_c89=no
2923 ac_save_CC=$CC
2924 cat >conftest.$ac_ext <<_ACEOF
2925 /* confdefs.h.  */
2926 _ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h.  */
2930 #include <stdarg.h>
2931 #include <stdio.h>
2932 #include <sys/types.h>
2933 #include <sys/stat.h>
2934 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2935 struct buf { int x; };
2936 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2937 static char *e (p, i)
2938      char **p;
2939      int i;
2940 {
2941   return p[i];
2942 }
2943 static char *f (char * (*g) (char **, int), char **p, ...)
2944 {
2945   char *s;
2946   va_list v;
2947   va_start (v,p);
2948   s = g (p, va_arg (v,int));
2949   va_end (v);
2950   return s;
2951 }
2952
2953 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2954    function prototypes and stuff, but not '\xHH' hex character constants.
2955    These don't provoke an error unfortunately, instead are silently treated
2956    as 'x'.  The following induces an error, until -std is added to get
2957    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2958    array size at least.  It's necessary to write '\x00'==0 to get something
2959    that's true only with -std.  */
2960 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2961
2962 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2963    inside strings and character constants.  */
2964 #define FOO(x) 'x'
2965 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2966
2967 int test (int i, double x);
2968 struct s1 {int (*f) (int a);};
2969 struct s2 {int (*f) (double a);};
2970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2971 int argc;
2972 char **argv;
2973 int
2974 main ()
2975 {
2976 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2977   ;
2978   return 0;
2979 }
2980 _ACEOF
2981 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2982         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2983 do
2984   CC="$ac_save_CC $ac_arg"
2985   rm -f conftest.$ac_objext
2986 if { (ac_try="$ac_compile"
2987 case "(($ac_try" in
2988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989   *) ac_try_echo=$ac_try;;
2990 esac
2991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992   (eval "$ac_compile") 2>conftest.er1
2993   ac_status=$?
2994   grep -v '^ *+' conftest.er1 >conftest.err
2995   rm -f conftest.er1
2996   cat conftest.err >&5
2997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998   (exit $ac_status); } && {
2999          test -z "$ac_c_werror_flag" ||
3000          test ! -s conftest.err
3001        } && test -s conftest.$ac_objext; then
3002   ac_cv_prog_cc_c89=$ac_arg
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007
3008 fi
3009
3010 rm -f core conftest.err conftest.$ac_objext
3011   test "x$ac_cv_prog_cc_c89" != "xno" && break
3012 done
3013 rm -f conftest.$ac_ext
3014 CC=$ac_save_CC
3015
3016 fi
3017 # AC_CACHE_VAL
3018 case "x$ac_cv_prog_cc_c89" in
3019   x)
3020     { echo "$as_me:$LINENO: result: none needed" >&5
3021 echo "${ECHO_T}none needed" >&6; } ;;
3022   xno)
3023     { echo "$as_me:$LINENO: result: unsupported" >&5
3024 echo "${ECHO_T}unsupported" >&6; } ;;
3025   *)
3026     CC="$CC $ac_cv_prog_cc_c89"
3027     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3028 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3029 esac
3030
3031
3032 ac_ext=c
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3037
3038 ac_ext=cpp
3039 ac_cpp='$CXXCPP $CPPFLAGS'
3040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3043 if test -z "$CXX"; then
3044   if test -n "$CCC"; then
3045     CXX=$CCC
3046   else
3047     if test -n "$ac_tool_prefix"; then
3048   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3049   do
3050     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3054 if test "${ac_cv_prog_CXX+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057   if test -n "$CXX"; then
3058   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065   for ac_exec_ext in '' $ac_executable_extensions; do
3066   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3068     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072 done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 CXX=$ac_cv_prog_CXX
3078 if test -n "$CXX"; then
3079   { echo "$as_me:$LINENO: result: $CXX" >&5
3080 echo "${ECHO_T}$CXX" >&6; }
3081 else
3082   { echo "$as_me:$LINENO: result: no" >&5
3083 echo "${ECHO_T}no" >&6; }
3084 fi
3085
3086
3087     test -n "$CXX" && break
3088   done
3089 fi
3090 if test -z "$CXX"; then
3091   ac_ct_CXX=$CXX
3092   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3093 do
3094   # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3098 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   if test -n "$ac_ct_CXX"; then
3102   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109   for ac_exec_ext in '' $ac_executable_extensions; do
3110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111     ac_cv_prog_ac_ct_CXX="$ac_prog"
3112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116 done
3117 IFS=$as_save_IFS
3118
3119 fi
3120 fi
3121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3122 if test -n "$ac_ct_CXX"; then
3123   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3124 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3125 else
3126   { echo "$as_me:$LINENO: result: no" >&5
3127 echo "${ECHO_T}no" >&6; }
3128 fi
3129
3130
3131   test -n "$ac_ct_CXX" && break
3132 done
3133
3134   if test "x$ac_ct_CXX" = x; then
3135     CXX="g++"
3136   else
3137     case $cross_compiling:$ac_tool_warned in
3138 yes:)
3139 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3140 whose name does not start with the host triplet.  If you think this
3141 configuration is useful to you, please write to autoconf@gnu.org." >&5
3142 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3143 whose name does not start with the host triplet.  If you think this
3144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3145 ac_tool_warned=yes ;;
3146 esac
3147     CXX=$ac_ct_CXX
3148   fi
3149 fi
3150
3151   fi
3152 fi
3153 # Provide some information about the compiler.
3154 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3155 ac_compiler=`set X $ac_compile; echo $2`
3156 { (ac_try="$ac_compiler --version >&5"
3157 case "(($ac_try" in
3158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159   *) ac_try_echo=$ac_try;;
3160 esac
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162   (eval "$ac_compiler --version >&5") 2>&5
3163   ac_status=$?
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); }
3166 { (ac_try="$ac_compiler -v >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler -v >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176 { (ac_try="$ac_compiler -V >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compiler -V >&5") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }
3186
3187 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3188 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3189 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202 #ifndef __GNUC__
3203        choke me
3204 #endif
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_compile") 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } && {
3224          test -z "$ac_cxx_werror_flag" ||
3225          test ! -s conftest.err
3226        } && test -s conftest.$ac_objext; then
3227   ac_compiler_gnu=yes
3228 else
3229   echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232         ac_compiler_gnu=no
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3237
3238 fi
3239 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3240 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3241 GXX=`test $ac_compiler_gnu = yes && echo yes`
3242 ac_test_CXXFLAGS=${CXXFLAGS+set}
3243 ac_save_CXXFLAGS=$CXXFLAGS
3244 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3245 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_cxx_g+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3250    ac_cxx_werror_flag=yes
3251    ac_cv_prog_cxx_g=no
3252    CXXFLAGS="-g"
3253    cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_compile") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } && {
3282          test -z "$ac_cxx_werror_flag" ||
3283          test ! -s conftest.err
3284        } && test -s conftest.$ac_objext; then
3285   ac_cv_prog_cxx_g=yes
3286 else
3287   echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3289
3290         CXXFLAGS=""
3291       cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297
3298 int
3299 main ()
3300 {
3301
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 rm -f conftest.$ac_objext
3307 if { (ac_try="$ac_compile"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3313   (eval "$ac_compile") 2>conftest.er1
3314   ac_status=$?
3315   grep -v '^ *+' conftest.er1 >conftest.err
3316   rm -f conftest.er1
3317   cat conftest.err >&5
3318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319   (exit $ac_status); } && {
3320          test -z "$ac_cxx_werror_flag" ||
3321          test ! -s conftest.err
3322        } && test -s conftest.$ac_objext; then
3323   :
3324 else
3325   echo "$as_me: failed program was:" >&5
3326 sed 's/^/| /' conftest.$ac_ext >&5
3327
3328         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3329          CXXFLAGS="-g"
3330          cat >conftest.$ac_ext <<_ACEOF
3331 /* confdefs.h.  */
3332 _ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h.  */
3336
3337 int
3338 main ()
3339 {
3340
3341   ;
3342   return 0;
3343 }
3344 _ACEOF
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3347 case "(($ac_try" in
3348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349   *) ac_try_echo=$ac_try;;
3350 esac
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352   (eval "$ac_compile") 2>conftest.er1
3353   ac_status=$?
3354   grep -v '^ *+' conftest.er1 >conftest.err
3355   rm -f conftest.er1
3356   cat conftest.err >&5
3357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358   (exit $ac_status); } && {
3359          test -z "$ac_cxx_werror_flag" ||
3360          test ! -s conftest.err
3361        } && test -s conftest.$ac_objext; then
3362   ac_cv_prog_cxx_g=yes
3363 else
3364   echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3366
3367
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 fi
3372
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 fi
3375
3376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3378 fi
3379 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3380 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3381 if test "$ac_test_CXXFLAGS" = set; then
3382   CXXFLAGS=$ac_save_CXXFLAGS
3383 elif test $ac_cv_prog_cxx_g = yes; then
3384   if test "$GXX" = yes; then
3385     CXXFLAGS="-g -O2"
3386   else
3387     CXXFLAGS="-g"
3388   fi
3389 else
3390   if test "$GXX" = yes; then
3391     CXXFLAGS="-O2"
3392   else
3393     CXXFLAGS=
3394   fi
3395 fi
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401
3402 if test "x$CC" != xcc; then
3403   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3404 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3405 else
3406   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3407 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3408 fi
3409 set dummy $CC; ac_cc=`echo $2 |
3410                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3411 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3412   echo $ECHO_N "(cached) $ECHO_C" >&6
3413 else
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420
3421 int
3422 main ()
3423 {
3424
3425   ;
3426   return 0;
3427 }
3428 _ACEOF
3429 # Make sure it works both with $CC and with simple cc.
3430 # We do the test twice because some compilers refuse to overwrite an
3431 # existing .o file with -o, though they will create one.
3432 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3433 rm -f conftest2.*
3434 if { (case "(($ac_try" in
3435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436   *) ac_try_echo=$ac_try;;
3437 esac
3438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3439   (eval "$ac_try") 2>&5
3440   ac_status=$?
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } &&
3443    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448   (eval "$ac_try") 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); };
3452 then
3453   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3454   if test "x$CC" != xcc; then
3455     # Test first that cc exists at all.
3456     if { ac_try='cc -c conftest.$ac_ext >&5'
3457   { (case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462   (eval "$ac_try") 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); }; }; then
3466       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3467       rm -f conftest2.*
3468       if { (case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473   (eval "$ac_try") 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); } &&
3477          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3479   *) ac_try_echo=$ac_try;;
3480 esac
3481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3482   (eval "$ac_try") 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); };
3486       then
3487         # cc works too.
3488         :
3489       else
3490         # cc exists but doesn't like -o.
3491         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3492       fi
3493     fi
3494   fi
3495 else
3496   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3497 fi
3498 rm -f core conftest*
3499
3500 fi
3501 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3502   { echo "$as_me:$LINENO: result: yes" >&5
3503 echo "${ECHO_T}yes" >&6; }
3504 else
3505   { echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6; }
3507
3508 cat >>confdefs.h <<\_ACEOF
3509 #define NO_MINUS_C_MINUS_O 1
3510 _ACEOF
3511
3512 fi
3513
3514 ac_ext=c
3515 ac_cpp='$CPP $CPPFLAGS'
3516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3519 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3520 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3521 # On Suns, sometimes $CPP names a directory.
3522 if test -n "$CPP" && test -d "$CPP"; then
3523   CPP=
3524 fi
3525 if test -z "$CPP"; then
3526   if test "${ac_cv_prog_CPP+set}" = set; then
3527   echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529       # Double quotes because CPP needs to be expanded
3530     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3531     do
3532       ac_preproc_ok=false
3533 for ac_c_preproc_warn_flag in '' yes
3534 do
3535   # Use a header file that comes with gcc, so configuring glibc
3536   # with a fresh cross-compiler works.
3537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3538   # <limits.h> exists even on freestanding compilers.
3539   # On the NeXT, cc -E runs the code through the compiler's parser,
3540   # not just through cpp. "Syntax error" is here to catch this case.
3541   cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 #ifdef __STDC__
3548 # include <limits.h>
3549 #else
3550 # include <assert.h>
3551 #endif
3552                      Syntax error
3553 _ACEOF
3554 if { (ac_try="$ac_cpp conftest.$ac_ext"
3555 case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3561   ac_status=$?
3562   grep -v '^ *+' conftest.er1 >conftest.err
3563   rm -f conftest.er1
3564   cat conftest.err >&5
3565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566   (exit $ac_status); } >/dev/null && {
3567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3568          test ! -s conftest.err
3569        }; then
3570   :
3571 else
3572   echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575   # Broken: fails on valid input.
3576 continue
3577 fi
3578
3579 rm -f conftest.err conftest.$ac_ext
3580
3581   # OK, works on sane cases.  Now check whether nonexistent headers
3582   # can be detected and how.
3583   cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h.  */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h.  */
3589 #include <ac_nonexistent.h>
3590 _ACEOF
3591 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 case "(($ac_try" in
3593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594   *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598   ac_status=$?
3599   grep -v '^ *+' conftest.er1 >conftest.err
3600   rm -f conftest.er1
3601   cat conftest.err >&5
3602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3603   (exit $ac_status); } >/dev/null && {
3604          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3605          test ! -s conftest.err
3606        }; then
3607   # Broken: success on invalid input.
3608 continue
3609 else
3610   echo "$as_me: failed program was:" >&5
3611 sed 's/^/| /' conftest.$ac_ext >&5
3612
3613   # Passes both tests.
3614 ac_preproc_ok=:
3615 break
3616 fi
3617
3618 rm -f conftest.err conftest.$ac_ext
3619
3620 done
3621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3622 rm -f conftest.err conftest.$ac_ext
3623 if $ac_preproc_ok; then
3624   break
3625 fi
3626
3627     done
3628     ac_cv_prog_CPP=$CPP
3629
3630 fi
3631   CPP=$ac_cv_prog_CPP
3632 else
3633   ac_cv_prog_CPP=$CPP
3634 fi
3635 { echo "$as_me:$LINENO: result: $CPP" >&5
3636 echo "${ECHO_T}$CPP" >&6; }
3637 ac_preproc_ok=false
3638 for ac_c_preproc_warn_flag in '' yes
3639 do
3640   # Use a header file that comes with gcc, so configuring glibc
3641   # with a fresh cross-compiler works.
3642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3643   # <limits.h> exists even on freestanding compilers.
3644   # On the NeXT, cc -E runs the code through the compiler's parser,
3645   # not just through cpp. "Syntax error" is here to catch this case.
3646   cat >conftest.$ac_ext <<_ACEOF
3647 /* confdefs.h.  */
3648 _ACEOF
3649 cat confdefs.h >>conftest.$ac_ext
3650 cat >>conftest.$ac_ext <<_ACEOF
3651 /* end confdefs.h.  */
3652 #ifdef __STDC__
3653 # include <limits.h>
3654 #else
3655 # include <assert.h>
3656 #endif
3657                      Syntax error
3658 _ACEOF
3659 if { (ac_try="$ac_cpp conftest.$ac_ext"
3660 case "(($ac_try" in
3661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662   *) ac_try_echo=$ac_try;;
3663 esac
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } >/dev/null && {
3672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3673          test ! -s conftest.err
3674        }; then
3675   :
3676 else
3677   echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3679
3680   # Broken: fails on valid input.
3681 continue
3682 fi
3683
3684 rm -f conftest.err conftest.$ac_ext
3685
3686   # OK, works on sane cases.  Now check whether nonexistent headers
3687   # can be detected and how.
3688   cat >conftest.$ac_ext <<_ACEOF
3689 /* confdefs.h.  */
3690 _ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h.  */
3694 #include <ac_nonexistent.h>
3695 _ACEOF
3696 if { (ac_try="$ac_cpp conftest.$ac_ext"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3703   ac_status=$?
3704   grep -v '^ *+' conftest.er1 >conftest.err
3705   rm -f conftest.er1
3706   cat conftest.err >&5
3707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); } >/dev/null && {
3709          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3710          test ! -s conftest.err
3711        }; then
3712   # Broken: success on invalid input.
3713 continue
3714 else
3715   echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718   # Passes both tests.
3719 ac_preproc_ok=:
3720 break
3721 fi
3722
3723 rm -f conftest.err conftest.$ac_ext
3724
3725 done
3726 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727 rm -f conftest.err conftest.$ac_ext
3728 if $ac_preproc_ok; then
3729   :
3730 else
3731   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3732 See \`config.log' for more details." >&5
3733 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3734 See \`config.log' for more details." >&2;}
3735    { (exit 1); exit 1; }; }
3736 fi
3737
3738 ac_ext=c
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744
3745 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3746 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3747 if test "${ac_cv_path_GREP+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   # Extract the first word of "grep ggrep" to use in msg output
3751 if test -z "$GREP"; then
3752 set dummy grep ggrep; ac_prog_name=$2
3753 if test "${ac_cv_path_GREP+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   ac_path_GREP_found=false
3757 # Loop through the user's path and test for each of PROGNAME-LIST
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3760 do
3761   IFS=$as_save_IFS
3762   test -z "$as_dir" && as_dir=.
3763   for ac_prog in grep ggrep; do
3764   for ac_exec_ext in '' $ac_executable_extensions; do
3765     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3766     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3767     # Check for GNU ac_path_GREP and select it if it is found.
3768   # Check for GNU $ac_path_GREP
3769 case `"$ac_path_GREP" --version 2>&1` in
3770 *GNU*)
3771   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3772 *)
3773   ac_count=0
3774   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3775   while :
3776   do
3777     cat "conftest.in" "conftest.in" >"conftest.tmp"
3778     mv "conftest.tmp" "conftest.in"
3779     cp "conftest.in" "conftest.nl"
3780     echo 'GREP' >> "conftest.nl"
3781     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3782     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3783     ac_count=`expr $ac_count + 1`
3784     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3785       # Best one so far, save it but keep looking for a better one
3786       ac_cv_path_GREP="$ac_path_GREP"
3787       ac_path_GREP_max=$ac_count
3788     fi
3789     # 10*(2^10) chars as input seems more than enough
3790     test $ac_count -gt 10 && break
3791   done
3792   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3793 esac
3794
3795
3796     $ac_path_GREP_found && break 3
3797   done
3798 done
3799
3800 done
3801 IFS=$as_save_IFS
3802
3803
3804 fi
3805
3806 GREP="$ac_cv_path_GREP"
3807 if test -z "$GREP"; then
3808   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3810    { (exit 1); exit 1; }; }
3811 fi
3812
3813 else
3814   ac_cv_path_GREP=$GREP
3815 fi
3816
3817
3818 fi
3819 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3820 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3821  GREP="$ac_cv_path_GREP"
3822
3823
3824 { echo "$as_me:$LINENO: checking for egrep" >&5
3825 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3826 if test "${ac_cv_path_EGREP+set}" = set; then
3827   echo $ECHO_N "(cached) $ECHO_C" >&6
3828 else
3829   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3830    then ac_cv_path_EGREP="$GREP -E"
3831    else
3832      # Extract the first word of "egrep" to use in msg output
3833 if test -z "$EGREP"; then
3834 set dummy egrep; ac_prog_name=$2
3835 if test "${ac_cv_path_EGREP+set}" = set; then
3836   echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838   ac_path_EGREP_found=false
3839 # Loop through the user's path and test for each of PROGNAME-LIST
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3842 do
3843   IFS=$as_save_IFS
3844   test -z "$as_dir" && as_dir=.
3845   for ac_prog in egrep; do
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3848     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3849     # Check for GNU ac_path_EGREP and select it if it is found.
3850   # Check for GNU $ac_path_EGREP
3851 case `"$ac_path_EGREP" --version 2>&1` in
3852 *GNU*)
3853   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3854 *)
3855   ac_count=0
3856   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3857   while :
3858   do
3859     cat "conftest.in" "conftest.in" >"conftest.tmp"
3860     mv "conftest.tmp" "conftest.in"
3861     cp "conftest.in" "conftest.nl"
3862     echo 'EGREP' >> "conftest.nl"
3863     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3864     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3865     ac_count=`expr $ac_count + 1`
3866     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3867       # Best one so far, save it but keep looking for a better one
3868       ac_cv_path_EGREP="$ac_path_EGREP"
3869       ac_path_EGREP_max=$ac_count
3870     fi
3871     # 10*(2^10) chars as input seems more than enough
3872     test $ac_count -gt 10 && break
3873   done
3874   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875 esac
3876
3877
3878     $ac_path_EGREP_found && break 3
3879   done
3880 done
3881
3882 done
3883 IFS=$as_save_IFS
3884
3885
3886 fi
3887
3888 EGREP="$ac_cv_path_EGREP"
3889 if test -z "$EGREP"; then
3890   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3891 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3892    { (exit 1); exit 1; }; }
3893 fi
3894
3895 else
3896   ac_cv_path_EGREP=$EGREP
3897 fi
3898
3899
3900    fi
3901 fi
3902 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3903 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3904  EGREP="$ac_cv_path_EGREP"
3905
3906
3907 if test $ac_cv_c_compiler_gnu = yes; then
3908     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3909 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3910 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913     ac_pattern="Autoconf.*'x'"
3914   cat >conftest.$ac_ext <<_ACEOF
3915 /* confdefs.h.  */
3916 _ACEOF
3917 cat confdefs.h >>conftest.$ac_ext
3918 cat >>conftest.$ac_ext <<_ACEOF
3919 /* end confdefs.h.  */
3920 #include <sgtty.h>
3921 Autoconf TIOCGETP
3922 _ACEOF
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3925   ac_cv_prog_gcc_traditional=yes
3926 else
3927   ac_cv_prog_gcc_traditional=no
3928 fi
3929 rm -f conftest*
3930
3931
3932   if test $ac_cv_prog_gcc_traditional = no; then
3933     cat >conftest.$ac_ext <<_ACEOF
3934 /* confdefs.h.  */
3935 _ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h.  */
3939 #include <termio.h>
3940 Autoconf TCGETA
3941 _ACEOF
3942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3943   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3944   ac_cv_prog_gcc_traditional=yes
3945 fi
3946 rm -f conftest*
3947
3948   fi
3949 fi
3950 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3951 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3952   if test $ac_cv_prog_gcc_traditional = yes; then
3953     CC="$CC -traditional"
3954   fi
3955 fi
3956
3957 BASECC=`basename $CC`
3958 have_gcc=no
3959 if test "x$BASECC" = xgcc; then
3960    cat >>confdefs.h <<\_ACEOF
3961 #define HAVE_GCC 1
3962 _ACEOF
3963
3964    have_gcc=yes
3965 fi
3966 # Extract the first word of "$CXX", so it can be a program name with args.
3967 set dummy $CXX; ac_word=$2
3968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3970 if test "${ac_cv_path_CXX+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   case $CXX in
3974   [\\/]* | ?:[\\/]*)
3975   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3976   ;;
3977   *)
3978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH
3980 do
3981   IFS=$as_save_IFS
3982   test -z "$as_dir" && as_dir=.
3983   for ac_exec_ext in '' $ac_executable_extensions; do
3984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3985     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987     break 2
3988   fi
3989 done
3990 done
3991 IFS=$as_save_IFS
3992
3993   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3994   ;;
3995 esac
3996 fi
3997 CXX=$ac_cv_path_CXX
3998 if test -n "$CXX"; then
3999   { echo "$as_me:$LINENO: result: $CXX" >&5
4000 echo "${ECHO_T}$CXX" >&6; }
4001 else
4002   { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4004 fi
4005
4006
4007 if test ! -e $CXX; then
4008    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4009 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4010    { (exit 1); exit 1; }; }
4011 fi
4012
4013 # Find a good install program.  We prefer a C program (faster),
4014 # so one script is as good as another.  But avoid the broken or
4015 # incompatible versions:
4016 # SysV /etc/install, /usr/sbin/install
4017 # SunOS /usr/etc/install
4018 # IRIX /sbin/install
4019 # AIX /bin/install
4020 # AmigaOS /C/install, which installs bootblocks on floppy discs
4021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4024 # OS/2's system install, which has a completely different semantic
4025 # ./install, which can be erroneously created by make from ./install.sh.
4026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4028 if test -z "$INSTALL"; then
4029 if test "${ac_cv_path_install+set}" = set; then
4030   echo $ECHO_N "(cached) $ECHO_C" >&6
4031 else
4032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035   IFS=$as_save_IFS
4036   test -z "$as_dir" && as_dir=.
4037   # Account for people who put trailing slashes in PATH elements.
4038 case $as_dir/ in
4039   ./ | .// | /cC/* | \
4040   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4041   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4042   /usr/ucb/* ) ;;
4043   *)
4044     # OSF1 and SCO ODT 3.0 have their own names for install.
4045     # Don't use installbsd from OSF since it installs stuff as root
4046     # by default.
4047     for ac_prog in ginstall scoinst install; do
4048       for ac_exec_ext in '' $ac_executable_extensions; do
4049         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4050           if test $ac_prog = install &&
4051             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4052             # AIX install.  It has an incompatible calling convention.
4053             :
4054           elif test $ac_prog = install &&
4055             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4056             # program-specific install script used by HP pwplus--don't use.
4057             :
4058           else
4059             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4060             break 3
4061           fi
4062         fi
4063       done
4064     done
4065     ;;
4066 esac
4067 done
4068 IFS=$as_save_IFS
4069
4070
4071 fi
4072   if test "${ac_cv_path_install+set}" = set; then
4073     INSTALL=$ac_cv_path_install
4074   else
4075     # As a last resort, use the slow shell script.  Don't cache a
4076     # value for INSTALL within a source directory, because that will
4077     # break other packages using the cache if that directory is
4078     # removed, or if the value is a relative name.
4079     INSTALL=$ac_install_sh
4080   fi
4081 fi
4082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4083 echo "${ECHO_T}$INSTALL" >&6; }
4084
4085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4086 # It thinks the first close brace ends the variable substitution.
4087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4088
4089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4090
4091 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4092
4093 if test -n "$ac_tool_prefix"; then
4094   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4095 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4098 if test "${ac_cv_prog_RANLIB+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   if test -n "$RANLIB"; then
4102   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4103 else
4104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 for as_dir in $PATH
4106 do
4107   IFS=$as_save_IFS
4108   test -z "$as_dir" && as_dir=.
4109   for ac_exec_ext in '' $ac_executable_extensions; do
4110   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4111     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4113     break 2
4114   fi
4115 done
4116 done
4117 IFS=$as_save_IFS
4118
4119 fi
4120 fi
4121 RANLIB=$ac_cv_prog_RANLIB
4122 if test -n "$RANLIB"; then
4123   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4124 echo "${ECHO_T}$RANLIB" >&6; }
4125 else
4126   { echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6; }
4128 fi
4129
4130
4131 fi
4132 if test -z "$ac_cv_prog_RANLIB"; then
4133   ac_ct_RANLIB=$RANLIB
4134   # Extract the first word of "ranlib", so it can be a program name with args.
4135 set dummy ranlib; ac_word=$2
4136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4138 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   if test -n "$ac_ct_RANLIB"; then
4142   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4143 else
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 for as_dir in $PATH
4146 do
4147   IFS=$as_save_IFS
4148   test -z "$as_dir" && as_dir=.
4149   for ac_exec_ext in '' $ac_executable_extensions; do
4150   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4151     ac_cv_prog_ac_ct_RANLIB="ranlib"
4152     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4153     break 2
4154   fi
4155 done
4156 done
4157 IFS=$as_save_IFS
4158
4159 fi
4160 fi
4161 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4162 if test -n "$ac_ct_RANLIB"; then
4163   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4164 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4165 else
4166   { echo "$as_me:$LINENO: result: no" >&5
4167 echo "${ECHO_T}no" >&6; }
4168 fi
4169
4170   if test "x$ac_ct_RANLIB" = x; then
4171     RANLIB=":"
4172   else
4173     case $cross_compiling:$ac_tool_warned in
4174 yes:)
4175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4176 whose name does not start with the host triplet.  If you think this
4177 configuration is useful to you, please write to autoconf@gnu.org." >&5
4178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4179 whose name does not start with the host triplet.  If you think this
4180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4181 ac_tool_warned=yes ;;
4182 esac
4183     RANLIB=$ac_ct_RANLIB
4184   fi
4185 else
4186   RANLIB="$ac_cv_prog_RANLIB"
4187 fi
4188
4189 # Extract the first word of "mv", so it can be a program name with args.
4190 set dummy mv; ac_word=$2
4191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4193 if test "${ac_cv_path_MV+set}" = set; then
4194   echo $ECHO_N "(cached) $ECHO_C" >&6
4195 else
4196   case $MV in
4197   [\\/]* | ?:[\\/]*)
4198   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4199   ;;
4200   *)
4201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204   IFS=$as_save_IFS
4205   test -z "$as_dir" && as_dir=.
4206   for ac_exec_ext in '' $ac_executable_extensions; do
4207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4210     break 2
4211   fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4217   ;;
4218 esac
4219 fi
4220 MV=$ac_cv_path_MV
4221 if test -n "$MV"; then
4222   { echo "$as_me:$LINENO: result: $MV" >&5
4223 echo "${ECHO_T}$MV" >&6; }
4224 else
4225   { echo "$as_me:$LINENO: result: no" >&5
4226 echo "${ECHO_T}no" >&6; }
4227 fi
4228
4229
4230 # Extract the first word of "rm", so it can be a program name with args.
4231 set dummy rm; ac_word=$2
4232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4234 if test "${ac_cv_path_RM+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   case $RM in
4238   [\\/]* | ?:[\\/]*)
4239   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4240   ;;
4241   *)
4242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH
4244 do
4245   IFS=$as_save_IFS
4246   test -z "$as_dir" && as_dir=.
4247   for ac_exec_ext in '' $ac_executable_extensions; do
4248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4251     break 2
4252   fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4258   ;;
4259 esac
4260 fi
4261 RM=$ac_cv_path_RM
4262 if test -n "$RM"; then
4263   { echo "$as_me:$LINENO: result: $RM" >&5
4264 echo "${ECHO_T}$RM" >&6; }
4265 else
4266   { echo "$as_me:$LINENO: result: no" >&5
4267 echo "${ECHO_T}no" >&6; }
4268 fi
4269
4270
4271 # Extract the first word of "cp", so it can be a program name with args.
4272 set dummy cp; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_path_CP+set}" = set; then
4276   echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278   case $CP in
4279   [\\/]* | ?:[\\/]*)
4280   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4281   ;;
4282   *)
4283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH
4285 do
4286   IFS=$as_save_IFS
4287   test -z "$as_dir" && as_dir=.
4288   for ac_exec_ext in '' $ac_executable_extensions; do
4289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4290     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4291     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4292     break 2
4293   fi
4294 done
4295 done
4296 IFS=$as_save_IFS
4297
4298   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4299   ;;
4300 esac
4301 fi
4302 CP=$ac_cv_path_CP
4303 if test -n "$CP"; then
4304   { echo "$as_me:$LINENO: result: $CP" >&5
4305 echo "${ECHO_T}$CP" >&6; }
4306 else
4307   { echo "$as_me:$LINENO: result: no" >&5
4308 echo "${ECHO_T}no" >&6; }
4309 fi
4310
4311
4312 # Extract the first word of "sed", so it can be a program name with args.
4313 set dummy sed; ac_word=$2
4314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4316 if test "${ac_cv_path_SED+set}" = set; then
4317   echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319   case $SED in
4320   [\\/]* | ?:[\\/]*)
4321   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4322   ;;
4323   *)
4324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4326 do
4327   IFS=$as_save_IFS
4328   test -z "$as_dir" && as_dir=.
4329   for ac_exec_ext in '' $ac_executable_extensions; do
4330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333     break 2
4334   fi
4335 done
4336 done
4337 IFS=$as_save_IFS
4338
4339   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4340   ;;
4341 esac
4342 fi
4343 SED=$ac_cv_path_SED
4344 if test -n "$SED"; then
4345   { echo "$as_me:$LINENO: result: $SED" >&5
4346 echo "${ECHO_T}$SED" >&6; }
4347 else
4348   { echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6; }
4350 fi
4351
4352
4353 # Extract the first word of "echo", so it can be a program name with args.
4354 set dummy echo; ac_word=$2
4355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_ECHO+set}" = set; then
4358   echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360   case $ECHO in
4361   [\\/]* | ?:[\\/]*)
4362   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4363   ;;
4364   *)
4365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368   IFS=$as_save_IFS
4369   test -z "$as_dir" && as_dir=.
4370   for ac_exec_ext in '' $ac_executable_extensions; do
4371   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4373     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374     break 2
4375   fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4381   ;;
4382 esac
4383 fi
4384 ECHO=$ac_cv_path_ECHO
4385 if test -n "$ECHO"; then
4386   { echo "$as_me:$LINENO: result: $ECHO" >&5
4387 echo "${ECHO_T}$ECHO" >&6; }
4388 else
4389   { echo "$as_me:$LINENO: result: no" >&5
4390 echo "${ECHO_T}no" >&6; }
4391 fi
4392
4393
4394 # Extract the first word of "cmp", so it can be a program name with args.
4395 set dummy cmp; ac_word=$2
4396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4398 if test "${ac_cv_path_CMP+set}" = set; then
4399   echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401   case $CMP in
4402   [\\/]* | ?:[\\/]*)
4403   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4404   ;;
4405   *)
4406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407 for as_dir in $PATH
4408 do
4409   IFS=$as_save_IFS
4410   test -z "$as_dir" && as_dir=.
4411   for ac_exec_ext in '' $ac_executable_extensions; do
4412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4413     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4414     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415     break 2
4416   fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4422   ;;
4423 esac
4424 fi
4425 CMP=$ac_cv_path_CMP
4426 if test -n "$CMP"; then
4427   { echo "$as_me:$LINENO: result: $CMP" >&5
4428 echo "${ECHO_T}$CMP" >&6; }
4429 else
4430   { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4432 fi
4433
4434
4435 # Extract the first word of "tbl", so it can be a program name with args.
4436 set dummy tbl; ac_word=$2
4437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4439 if test "${ac_cv_path_TBL+set}" = set; then
4440   echo $ECHO_N "(cached) $ECHO_C" >&6
4441 else
4442   case $TBL in
4443   [\\/]* | ?:[\\/]*)
4444   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4445   ;;
4446   *)
4447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448 for as_dir in $PATH
4449 do
4450   IFS=$as_save_IFS
4451   test -z "$as_dir" && as_dir=.
4452   for ac_exec_ext in '' $ac_executable_extensions; do
4453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4454     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4455     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4456     break 2
4457   fi
4458 done
4459 done
4460 IFS=$as_save_IFS
4461
4462   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4463   ;;
4464 esac
4465 fi
4466 TBL=$ac_cv_path_TBL
4467 if test -n "$TBL"; then
4468   { echo "$as_me:$LINENO: result: $TBL" >&5
4469 echo "${ECHO_T}$TBL" >&6; }
4470 else
4471   { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4473 fi
4474
4475
4476 # Extract the first word of "ar", so it can be a program name with args.
4477 set dummy ar; ac_word=$2
4478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4480 if test "${ac_cv_path_AR+set}" = set; then
4481   echo $ECHO_N "(cached) $ECHO_C" >&6
4482 else
4483   case $AR in
4484   [\\/]* | ?:[\\/]*)
4485   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4486   ;;
4487   *)
4488   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4490 do
4491   IFS=$as_save_IFS
4492   test -z "$as_dir" && as_dir=.
4493   for ac_exec_ext in '' $ac_executable_extensions; do
4494   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4495     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4497     break 2
4498   fi
4499 done
4500 done
4501 IFS=$as_save_IFS
4502
4503   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4504   ;;
4505 esac
4506 fi
4507 AR=$ac_cv_path_AR
4508 if test -n "$AR"; then
4509   { echo "$as_me:$LINENO: result: $AR" >&5
4510 echo "${ECHO_T}$AR" >&6; }
4511 else
4512   { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 fi
4515
4516
4517 # Extract the first word of "openssl", so it can be a program name with args.
4518 set dummy openssl; ac_word=$2
4519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4521 if test "${ac_cv_path_OPENSSL+set}" = set; then
4522   echo $ECHO_N "(cached) $ECHO_C" >&6
4523 else
4524   case $OPENSSL in
4525   [\\/]* | ?:[\\/]*)
4526   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4527   ;;
4528   *)
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534   for ac_exec_ext in '' $ac_executable_extensions; do
4535   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4536     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4537     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538     break 2
4539   fi
4540 done
4541 done
4542 IFS=$as_save_IFS
4543
4544   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4545   ;;
4546 esac
4547 fi
4548 OPENSSL=$ac_cv_path_OPENSSL
4549 if test -n "$OPENSSL"; then
4550   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4551 echo "${ECHO_T}$OPENSSL" >&6; }
4552 else
4553   { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4555 fi
4556
4557
4558 # Extract the first word of "mtx", so it can be a program name with args.
4559 set dummy mtx; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_path_MTX+set}" = set; then
4563   echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565   case $MTX in
4566   [\\/]* | ?:[\\/]*)
4567   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4568   ;;
4569   *)
4570   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4572 do
4573   IFS=$as_save_IFS
4574   test -z "$as_dir" && as_dir=.
4575   for ac_exec_ext in '' $ac_executable_extensions; do
4576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4578     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579     break 2
4580   fi
4581 done
4582 done
4583 IFS=$as_save_IFS
4584
4585   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4586   ;;
4587 esac
4588 fi
4589 MTX=$ac_cv_path_MTX
4590 if test -n "$MTX"; then
4591   { echo "$as_me:$LINENO: result: $MTX" >&5
4592 echo "${ECHO_T}$MTX" >&6; }
4593 else
4594   { echo "$as_me:$LINENO: result: no" >&5
4595 echo "${ECHO_T}no" >&6; }
4596 fi
4597
4598
4599 # Extract the first word of "dd", so it can be a program name with args.
4600 set dummy dd; ac_word=$2
4601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4603 if test "${ac_cv_path_DD+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   case $DD in
4607   [\\/]* | ?:[\\/]*)
4608   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4609   ;;
4610   *)
4611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614   IFS=$as_save_IFS
4615   test -z "$as_dir" && as_dir=.
4616   for ac_exec_ext in '' $ac_executable_extensions; do
4617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4619     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4620     break 2
4621   fi
4622 done
4623 done
4624 IFS=$as_save_IFS
4625
4626   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4627   ;;
4628 esac
4629 fi
4630 DD=$ac_cv_path_DD
4631 if test -n "$DD"; then
4632   { echo "$as_me:$LINENO: result: $DD" >&5
4633 echo "${ECHO_T}$DD" >&6; }
4634 else
4635   { echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6; }
4637 fi
4638
4639
4640 # Extract the first word of "mkisofs", so it can be a program name with args.
4641 set dummy mkisofs; ac_word=$2
4642 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4644 if test "${ac_cv_path_MKISOFS+set}" = set; then
4645   echo $ECHO_N "(cached) $ECHO_C" >&6
4646 else
4647   case $MKISOFS in
4648   [\\/]* | ?:[\\/]*)
4649   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4650   ;;
4651   *)
4652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4654 do
4655   IFS=$as_save_IFS
4656   test -z "$as_dir" && as_dir=.
4657   for ac_exec_ext in '' $ac_executable_extensions; do
4658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4660     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661     break 2
4662   fi
4663 done
4664 done
4665 IFS=$as_save_IFS
4666
4667   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4668   ;;
4669 esac
4670 fi
4671 MKISOFS=$ac_cv_path_MKISOFS
4672 if test -n "$MKISOFS"; then
4673   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4674 echo "${ECHO_T}$MKISOFS" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681 # Extract the first word of "python", so it can be a program name with args.
4682 set dummy python; ac_word=$2
4683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4685 if test "${ac_cv_path_PYTHON+set}" = set; then
4686   echo $ECHO_N "(cached) $ECHO_C" >&6
4687 else
4688   case $PYTHON in
4689   [\\/]* | ?:[\\/]*)
4690   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4691   ;;
4692   *)
4693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696   IFS=$as_save_IFS
4697   test -z "$as_dir" && as_dir=.
4698   for ac_exec_ext in '' $ac_executable_extensions; do
4699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4700     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702     break 2
4703   fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4709   ;;
4710 esac
4711 fi
4712 PYTHON=$ac_cv_path_PYTHON
4713 if test -n "$PYTHON"; then
4714   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4715 echo "${ECHO_T}$PYTHON" >&6; }
4716 else
4717   { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722 # Extract the first word of "growisofs", so it can be a program name with args.
4723 set dummy growisofs; ac_word=$2
4724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4726 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4727   echo $ECHO_N "(cached) $ECHO_C" >&6
4728 else
4729   case $GROWISOFS in
4730   [\\/]* | ?:[\\/]*)
4731   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4732   ;;
4733   *)
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739   for ac_exec_ext in '' $ac_executable_extensions; do
4740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4743     break 2
4744   fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4750   ;;
4751 esac
4752 fi
4753 GROWISOFS=$ac_cv_path_GROWISOFS
4754 if test -n "$GROWISOFS"; then
4755   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4756 echo "${ECHO_T}$GROWISOFS" >&6; }
4757 else
4758   { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4760 fi
4761
4762
4763 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4764 set dummy dvd+rw-mediainfo; ac_word=$2
4765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4767 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4768   echo $ECHO_N "(cached) $ECHO_C" >&6
4769 else
4770   case $DVDRWMEDIAINFO in
4771   [\\/]* | ?:[\\/]*)
4772   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4773   ;;
4774   *)
4775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778   IFS=$as_save_IFS
4779   test -z "$as_dir" && as_dir=.
4780   for ac_exec_ext in '' $ac_executable_extensions; do
4781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4784     break 2
4785   fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4791   ;;
4792 esac
4793 fi
4794 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4795 if test -n "$DVDRWMEDIAINFO"; then
4796   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4797 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4798 else
4799   { echo "$as_me:$LINENO: result: no" >&5
4800 echo "${ECHO_T}no" >&6; }
4801 fi
4802
4803
4804 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4805 set dummy dvd+rw-format; ac_word=$2
4806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4808 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   case $DVDRWFORMAT in
4812   [\\/]* | ?:[\\/]*)
4813   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4814   ;;
4815   *)
4816   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4818 do
4819   IFS=$as_save_IFS
4820   test -z "$as_dir" && as_dir=.
4821   for ac_exec_ext in '' $ac_executable_extensions; do
4822   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4825     break 2
4826   fi
4827 done
4828 done
4829 IFS=$as_save_IFS
4830
4831   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4832   ;;
4833 esac
4834 fi
4835 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4836 if test -n "$DVDRWFORMAT"; then
4837   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4838 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4839 else
4840   { echo "$as_me:$LINENO: result: no" >&5
4841 echo "${ECHO_T}no" >&6; }
4842 fi
4843
4844
4845 # Extract the first word of "pkg-config", so it can be a program name with args.
4846 set dummy pkg-config; ac_word=$2
4847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4849 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4850   echo $ECHO_N "(cached) $ECHO_C" >&6
4851 else
4852   case $PKGCONFIG in
4853   [\\/]* | ?:[\\/]*)
4854   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4855   ;;
4856   *)
4857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH
4859 do
4860   IFS=$as_save_IFS
4861   test -z "$as_dir" && as_dir=.
4862   for ac_exec_ext in '' $ac_executable_extensions; do
4863   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4864     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866     break 2
4867   fi
4868 done
4869 done
4870 IFS=$as_save_IFS
4871
4872   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4873   ;;
4874 esac
4875 fi
4876 PKGCONFIG=$ac_cv_path_PKGCONFIG
4877 if test -n "$PKGCONFIG"; then
4878   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4879 echo "${ECHO_T}$PKGCONFIG" >&6; }
4880 else
4881   { echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6; }
4883 fi
4884
4885
4886 # Extract the first word of "qmake", so it can be a program name with args.
4887 set dummy qmake; ac_word=$2
4888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4890 if test "${ac_cv_path_QMAKE+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   case $QMAKE in
4894   [\\/]* | ?:[\\/]*)
4895   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4896   ;;
4897   *)
4898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 for as_dir in $PATH
4900 do
4901   IFS=$as_save_IFS
4902   test -z "$as_dir" && as_dir=.
4903   for ac_exec_ext in '' $ac_executable_extensions; do
4904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907     break 2
4908   fi
4909 done
4910 done
4911 IFS=$as_save_IFS
4912
4913   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4914   ;;
4915 esac
4916 fi
4917 QMAKE=$ac_cv_path_QMAKE
4918 if test -n "$QMAKE"; then
4919   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4920 echo "${ECHO_T}$QMAKE" >&6; }
4921 else
4922   { echo "$as_me:$LINENO: result: no" >&5
4923 echo "${ECHO_T}no" >&6; }
4924 fi
4925
4926
4927 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4928 set dummy qmake-qt4; ac_word=$2
4929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4931 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4932   echo $ECHO_N "(cached) $ECHO_C" >&6
4933 else
4934   case $QMAKEQT4 in
4935   [\\/]* | ?:[\\/]*)
4936   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4937   ;;
4938   *)
4939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4941 do
4942   IFS=$as_save_IFS
4943   test -z "$as_dir" && as_dir=.
4944   for ac_exec_ext in '' $ac_executable_extensions; do
4945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4947     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4948     break 2
4949   fi
4950 done
4951 done
4952 IFS=$as_save_IFS
4953
4954   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4955   ;;
4956 esac
4957 fi
4958 QMAKEQT4=$ac_cv_path_QMAKEQT4
4959 if test -n "$QMAKEQT4"; then
4960   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4961 echo "${ECHO_T}$QMAKEQT4" >&6; }
4962 else
4963   { echo "$as_me:$LINENO: result: no" >&5
4964 echo "${ECHO_T}no" >&6; }
4965 fi
4966
4967
4968
4969 if test "x$WXCONFIG" = x; then
4970   WXCONFIG=wx-config
4971 fi
4972 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4973 set dummy ${WXCONFIG}; ac_word=$2
4974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4976 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979   case $WXCONFIG in
4980   [\\/]* | ?:[\\/]*)
4981   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4982   ;;
4983   *)
4984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989   for ac_exec_ext in '' $ac_executable_extensions; do
4990   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4992     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996 done
4997 IFS=$as_save_IFS
4998
4999   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5000   ;;
5001 esac
5002 fi
5003 WXCONFIG=$ac_cv_path_WXCONFIG
5004 if test -n "$WXCONFIG"; then
5005   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5006 echo "${ECHO_T}$WXCONFIG" >&6; }
5007 else
5008   { echo "$as_me:$LINENO: result: no" >&5
5009 echo "${ECHO_T}no" >&6; }
5010 fi
5011
5012
5013
5014 # Extract the first word of "cdrecord", so it can be a program name with args.
5015 set dummy cdrecord; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_path_CDRECORD+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   case $CDRECORD in
5022   [\\/]* | ?:[\\/]*)
5023   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5024   ;;
5025   *)
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031   for ac_exec_ext in '' $ac_executable_extensions; do
5032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5034     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038 done
5039 IFS=$as_save_IFS
5040
5041   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5042   ;;
5043 esac
5044 fi
5045 CDRECORD=$ac_cv_path_CDRECORD
5046 if test -n "$CDRECORD"; then
5047   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5048 echo "${ECHO_T}$CDRECORD" >&6; }
5049 else
5050   { echo "$as_me:$LINENO: result: no" >&5
5051 echo "${ECHO_T}no" >&6; }
5052 fi
5053
5054
5055 # Extract the first word of "pidof", so it can be a program name with args.
5056 set dummy pidof; ac_word=$2
5057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5059 if test "${ac_cv_path_PIDOF+set}" = set; then
5060   echo $ECHO_N "(cached) $ECHO_C" >&6
5061 else
5062   case $PIDOF in
5063   [\\/]* | ?:[\\/]*)
5064   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5065   ;;
5066   *)
5067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072   for ac_exec_ext in '' $ac_executable_extensions; do
5073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079 done
5080 IFS=$as_save_IFS
5081
5082   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5083   ;;
5084 esac
5085 fi
5086 PIDOF=$ac_cv_path_PIDOF
5087 if test -n "$PIDOF"; then
5088   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5089 echo "${ECHO_T}$PIDOF" >&6; }
5090 else
5091   { echo "$as_me:$LINENO: result: no" >&5
5092 echo "${ECHO_T}no" >&6; }
5093 fi
5094
5095
5096 for ac_prog in gawk mawk nawk awk
5097 do
5098   # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_prog_AWK+set}" = set; then
5103   echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105   if test -n "$AWK"; then
5106   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113   for ac_exec_ext in '' $ac_executable_extensions; do
5114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115     ac_cv_prog_AWK="$ac_prog"
5116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 AWK=$ac_cv_prog_AWK
5126 if test -n "$AWK"; then
5127   { echo "$as_me:$LINENO: result: $AWK" >&5
5128 echo "${ECHO_T}$AWK" >&6; }
5129 else
5130   { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5132 fi
5133
5134
5135   test -n "$AWK" && break
5136 done
5137
5138 # Some AWK programs fail, so test it and warn the user
5139 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5140       { if ((prog == $2) || (("(" prog ")") == $2) ||
5141            (("" prog "") == $2) ||
5142            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5143 else
5144   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5145    The regex engine of $AWK is too broken to be used you
5146    might want to install GNU AWK.
5147    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5148 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5149    The regex engine of $AWK is too broken to be used you
5150    might want to install GNU AWK.
5151    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5152    { (exit 1); exit 1; }; }
5153 fi
5154 THE_AWK=$AWK
5155 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5156 set dummy $THE_AWK; ac_word=$2
5157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5159 if test "${ac_cv_path_AWK+set}" = set; then
5160   echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162   case $AWK in
5163   [\\/]* | ?:[\\/]*)
5164   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5165   ;;
5166   *)
5167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172   for ac_exec_ext in '' $ac_executable_extensions; do
5173   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5183   ;;
5184 esac
5185 fi
5186 AWK=$ac_cv_path_AWK
5187 if test -n "$AWK"; then
5188   { echo "$as_me:$LINENO: result: $AWK" >&5
5189 echo "${ECHO_T}$AWK" >&6; }
5190 else
5191   { echo "$as_me:$LINENO: result: no" >&5
5192 echo "${ECHO_T}no" >&6; }
5193 fi
5194
5195
5196
5197
5198 test -n "$ARFLAG" || ARFLAGS="cr"
5199
5200
5201 MAKE_SHELL=/bin/sh
5202
5203
5204
5205
5206
5207
5208
5209 # Make sure we can run config.sub.
5210 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5211   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5212 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5213    { (exit 1); exit 1; }; }
5214
5215 { echo "$as_me:$LINENO: checking build system type" >&5
5216 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5217 if test "${ac_cv_build+set}" = set; then
5218   echo $ECHO_N "(cached) $ECHO_C" >&6
5219 else
5220   ac_build_alias=$build_alias
5221 test "x$ac_build_alias" = x &&
5222   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5223 test "x$ac_build_alias" = x &&
5224   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5225 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5226    { (exit 1); exit 1; }; }
5227 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5228   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5229 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5230    { (exit 1); exit 1; }; }
5231
5232 fi
5233 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5234 echo "${ECHO_T}$ac_cv_build" >&6; }
5235 case $ac_cv_build in
5236 *-*-*) ;;
5237 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5238 echo "$as_me: error: invalid value of canonical build" >&2;}
5239    { (exit 1); exit 1; }; };;
5240 esac
5241 build=$ac_cv_build
5242 ac_save_IFS=$IFS; IFS='-'
5243 set x $ac_cv_build
5244 shift
5245 build_cpu=$1
5246 build_vendor=$2
5247 shift; shift
5248 # Remember, the first character of IFS is used to create $*,
5249 # except with old shells:
5250 build_os=$*
5251 IFS=$ac_save_IFS
5252 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5253
5254
5255
5256 { echo "$as_me:$LINENO: checking host system type" >&5
5257 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5258 if test "${ac_cv_host+set}" = set; then
5259   echo $ECHO_N "(cached) $ECHO_C" >&6
5260 else
5261   if test "x$host_alias" = x; then
5262   ac_cv_host=$ac_cv_build
5263 else
5264   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5265     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5266 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5267    { (exit 1); exit 1; }; }
5268 fi
5269
5270 fi
5271 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5272 echo "${ECHO_T}$ac_cv_host" >&6; }
5273 case $ac_cv_host in
5274 *-*-*) ;;
5275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5276 echo "$as_me: error: invalid value of canonical host" >&2;}
5277    { (exit 1); exit 1; }; };;
5278 esac
5279 host=$ac_cv_host
5280 ac_save_IFS=$IFS; IFS='-'
5281 set x $ac_cv_host
5282 shift
5283 host_cpu=$1
5284 host_vendor=$2
5285 shift; shift
5286 # Remember, the first character of IFS is used to create $*,
5287 # except with old shells:
5288 host_os=$*
5289 IFS=$ac_save_IFS
5290 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5291
5292
5293 case $host_os in
5294   *cygwin* ) CYGWIN=yes;;
5295          * ) CYGWIN=no;;
5296 esac
5297
5298 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5299 then
5300
5301
5302 if $TRUEPRG; then
5303   HAVE_SUN_OS_TRUE=
5304   HAVE_SUN_OS_FALSE='#'
5305 else
5306   HAVE_SUN_OS_TRUE='#'
5307   HAVE_SUN_OS_FALSE=
5308 fi
5309         cat >>confdefs.h <<\_ACEOF
5310 #define HAVE_SUN_OS 1
5311 _ACEOF
5312
5313 else
5314
5315
5316 if $FALSEPRG; then
5317   HAVE_SUN_OS_TRUE=
5318   HAVE_SUN_OS_FALSE='#'
5319 else
5320   HAVE_SUN_OS_TRUE='#'
5321   HAVE_SUN_OS_FALSE=
5322 fi
5323 fi
5324
5325 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5326 then
5327
5328
5329 if $TRUEPRG; then
5330   HAVE_OSF1_OS_TRUE=
5331   HAVE_OSF1_OS_FALSE='#'
5332 else
5333   HAVE_OSF1_OS_TRUE='#'
5334   HAVE_OSF1_OS_FALSE=
5335 fi
5336         cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_OSF1_OS 1
5338 _ACEOF
5339
5340 else
5341
5342
5343 if $FALSEPRG; then
5344   HAVE_OSF1_OS_TRUE=
5345   HAVE_OSF1_OS_FALSE='#'
5346 else
5347   HAVE_OSF1_OS_TRUE='#'
5348   HAVE_OSF1_OS_FALSE=
5349 fi
5350 fi
5351
5352 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5353 then
5354
5355
5356 if $TRUEPRG; then
5357   HAVE_AIX_OS_TRUE=
5358   HAVE_AIX_OS_FALSE='#'
5359 else
5360   HAVE_AIX_OS_TRUE='#'
5361   HAVE_AIX_OS_FALSE=
5362 fi
5363         cat >>confdefs.h <<\_ACEOF
5364 #define HAVE_AIX_OS 1
5365 _ACEOF
5366
5367 else
5368
5369
5370 if $FALSEPRG; then
5371   HAVE_AIX_OS_TRUE=
5372   HAVE_AIX_OS_FALSE='#'
5373 else
5374   HAVE_AIX_OS_TRUE='#'
5375   HAVE_AIX_OS_FALSE=
5376 fi
5377 fi
5378
5379 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5380 then
5381
5382
5383 if $TRUEPRG; then
5384   HAVE_HPUX_OS_TRUE=
5385   HAVE_HPUX_OS_FALSE='#'
5386 else
5387   HAVE_HPUX_OS_TRUE='#'
5388   HAVE_HPUX_OS_FALSE=
5389 fi
5390         cat >>confdefs.h <<\_ACEOF
5391 #define HAVE_HPUX_OS 1
5392 _ACEOF
5393
5394 else
5395
5396
5397 if $FALSEPRG; then
5398   HAVE_HPUX_OS_TRUE=
5399   HAVE_HPUX_OS_FALSE='#'
5400 else
5401   HAVE_HPUX_OS_TRUE='#'
5402   HAVE_HPUX_OS_FALSE=
5403 fi
5404 fi
5405
5406 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5407 then
5408
5409
5410 if $TRUEPRG; then
5411   HAVE_LINUX_OS_TRUE=
5412   HAVE_LINUX_OS_FALSE='#'
5413 else
5414   HAVE_LINUX_OS_TRUE='#'
5415   HAVE_LINUX_OS_FALSE=
5416 fi
5417         cat >>confdefs.h <<\_ACEOF
5418 #define HAVE_LINUX_OS 1
5419 _ACEOF
5420
5421 else
5422
5423
5424 if $FALSEPRG; then
5425   HAVE_LINUX_OS_TRUE=
5426   HAVE_LINUX_OS_FALSE='#'
5427 else
5428   HAVE_LINUX_OS_TRUE='#'
5429   HAVE_LINUX_OS_FALSE=
5430 fi
5431 fi
5432
5433 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5434 then
5435
5436
5437 if $TRUEPRG; then
5438   HAVE_FREEBSD_OS_TRUE=
5439   HAVE_FREEBSD_OS_FALSE='#'
5440 else
5441   HAVE_FREEBSD_OS_TRUE='#'
5442   HAVE_FREEBSD_OS_FALSE=
5443 fi
5444         cat >>confdefs.h <<\_ACEOF
5445 #define HAVE_FREEBSD_OS 1
5446 _ACEOF
5447
5448 else
5449
5450
5451 if $FALSEPRG; then
5452   HAVE_FREEBSD_OS_TRUE=
5453   HAVE_FREEBSD_OS_FALSE='#'
5454 else
5455   HAVE_FREEBSD_OS_TRUE='#'
5456   HAVE_FREEBSD_OS_FALSE=
5457 fi
5458 fi
5459
5460 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5461 then
5462
5463
5464 if $TRUEPRG; then
5465   HAVE_NETBSD_OS_TRUE=
5466   HAVE_NETBSD_OS_FALSE='#'
5467 else
5468   HAVE_NETBSD_OS_TRUE='#'
5469   HAVE_NETBSD_OS_FALSE=
5470 fi
5471         cat >>confdefs.h <<\_ACEOF
5472 #define HAVE_NETBSD_OS 1
5473 _ACEOF
5474
5475 else
5476
5477
5478 if $FALSEPRG; then
5479   HAVE_NETBSD_OS_TRUE=
5480   HAVE_NETBSD_OS_FALSE='#'
5481 else
5482   HAVE_NETBSD_OS_TRUE='#'
5483   HAVE_NETBSD_OS_FALSE=
5484 fi
5485 fi
5486
5487 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5488 then
5489
5490
5491 if $TRUEPRG; then
5492   HAVE_OPENBSD_OS_TRUE=
5493   HAVE_OPENBSD_OS_FALSE='#'
5494 else
5495   HAVE_OPENBSD_OS_TRUE='#'
5496   HAVE_OPENBSD_OS_FALSE=
5497 fi
5498         cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_OPENBSD_OS 1
5500 _ACEOF
5501
5502 else
5503
5504
5505 if $FALSEPRG; then
5506   HAVE_OPENBSD_OS_TRUE=
5507   HAVE_OPENBSD_OS_FALSE='#'
5508 else
5509   HAVE_OPENBSD_OS_TRUE='#'
5510   HAVE_OPENBSD_OS_FALSE=
5511 fi
5512 fi
5513
5514 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5515 then
5516
5517
5518 if $TRUEPRG; then
5519   HAVE_BSDI_OS_TRUE=
5520   HAVE_BSDI_OS_FALSE='#'
5521 else
5522   HAVE_BSDI_OS_TRUE='#'
5523   HAVE_BSDI_OS_FALSE=
5524 fi
5525         cat >>confdefs.h <<\_ACEOF
5526 #define HAVE_BSDI_OS 1
5527 _ACEOF
5528
5529 else
5530
5531
5532 if $FALSEPRG; then
5533   HAVE_BSDI_OS_TRUE=
5534   HAVE_BSDI_OS_FALSE='#'
5535 else
5536   HAVE_BSDI_OS_TRUE='#'
5537   HAVE_BSDI_OS_FALSE=
5538 fi
5539 fi
5540
5541 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5542 then
5543
5544
5545 if $TRUEPRG; then
5546   HAVE_SGI_OS_TRUE=
5547   HAVE_SGI_OS_FALSE='#'
5548 else
5549   HAVE_SGI_OS_TRUE='#'
5550   HAVE_SGI_OS_FALSE=
5551 fi
5552         cat >>confdefs.h <<\_ACEOF
5553 #define HAVE_SGI_OS 1
5554 _ACEOF
5555
5556 else
5557
5558
5559 if $FALSEPRG; then
5560   HAVE_SGI_OS_TRUE=
5561   HAVE_SGI_OS_FALSE='#'
5562 else
5563   HAVE_SGI_OS_TRUE='#'
5564   HAVE_SGI_OS_FALSE=
5565 fi
5566 fi
5567
5568 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5569 then
5570
5571
5572 if $TRUEPRG; then
5573   HAVE_IRIX_OS_TRUE=
5574   HAVE_IRIX_OS_FALSE='#'
5575 else
5576   HAVE_IRIX_OS_TRUE='#'
5577   HAVE_IRIX_OS_FALSE=
5578 fi
5579         cat >>confdefs.h <<\_ACEOF
5580 #define HAVE_IRIX_OS 1
5581 _ACEOF
5582
5583 else
5584
5585
5586 if $FALSEPRG; then
5587   HAVE_IRIX_OS_TRUE=
5588   HAVE_IRIX_OS_FALSE='#'
5589 else
5590   HAVE_IRIX_OS_TRUE='#'
5591   HAVE_IRIX_OS_FALSE=
5592 fi
5593 fi
5594
5595 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5596 then
5597
5598
5599 if $TRUEPRG; then
5600   HAVE_DARWIN_OS_TRUE=
5601   HAVE_DARWIN_OS_FALSE='#'
5602 else
5603   HAVE_DARWIN_OS_TRUE='#'
5604   HAVE_DARWIN_OS_FALSE=
5605 fi
5606     cat >>confdefs.h <<\_ACEOF
5607 #define HAVE_DARWIN_OS 1
5608 _ACEOF
5609
5610 else
5611
5612
5613 if $FALSEPRG; then
5614   HAVE_DARWIN_OS_TRUE=
5615   HAVE_DARWIN_OS_FALSE='#'
5616 else
5617   HAVE_DARWIN_OS_TRUE='#'
5618   HAVE_DARWIN_OS_FALSE=
5619 fi
5620 fi
5621
5622
5623 # -----------------------------------------------------------
5624 # ----------------------------------------------------------
5625 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5626 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5627 if test "x$DISTNAME" != "x"
5628 then
5629         echo "distname set to $DISTNAME"
5630 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5631 then
5632         DISTNAME=alpha
5633 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5634 then
5635         DISTNAME=aix
5636 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5637 then
5638         DISTNAME=hpux
5639 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5640 then
5641         DISTNAME=solaris
5642 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5643 then
5644         DISTNAME=freebsd
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5646 then
5647         DISTNAME=netbsd
5648 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5649 then
5650         DISTNAME=openbsd
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5652 then
5653         DISTNAME=irix
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5655 then
5656         DISTNAME=bsdi
5657 elif test -f /etc/SuSE-release
5658 then
5659         DISTNAME=suse
5660 elif test -d /etc/SuSEconfig
5661 then
5662         DISTNAME=suse5
5663 elif test -f /etc/mandrake-release
5664 then
5665         DISTNAME=mandrake
5666 elif test -f /etc/whitebox-release
5667 then
5668        DISTNAME=redhat
5669 elif test -f /etc/redhat-release
5670 then
5671         DISTNAME=redhat
5672 elif test -f /etc/gentoo-release
5673 then
5674         DISTNAME=gentoo
5675 elif test -f /etc/debian_version
5676 then
5677         DISTNAME=debian
5678 elif test -f /etc/slackware-version
5679 then
5680         DISTNAME=slackware
5681 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5682 then
5683     DISTNAME=darwin
5684 elif test -f /etc/engarde-version
5685 then
5686         DISTNAME=engarde
5687 elif test "$CYGWIN" = yes
5688 then
5689         DISTNAME=cygwin
5690         cat >>confdefs.h <<\_ACEOF
5691 #define HAVE_CYGWIN 1
5692 _ACEOF
5693
5694 else
5695         DISTNAME=unknown
5696 fi
5697 { echo "$as_me:$LINENO: result: done" >&5
5698 echo "${ECHO_T}done" >&6; }
5699
5700
5701 # --------------------------------------------------
5702 # Suppport for gettext (translations)
5703 # By default, $datadir is ${prefix}/share
5704 # --------------------------------------------------
5705 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5706 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5707 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5708 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   cat >conftest.make <<\_ACEOF
5712 SHELL = /bin/sh
5713 all:
5714         @echo '@@@%%%=$(MAKE)=@@@%%%'
5715 _ACEOF
5716 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5717 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5718   *@@@%%%=?*=@@@%%%*)
5719     eval ac_cv_prog_make_${ac_make}_set=yes;;
5720   *)
5721     eval ac_cv_prog_make_${ac_make}_set=no;;
5722 esac
5723 rm -f conftest.make
5724 fi
5725 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5726   { echo "$as_me:$LINENO: result: yes" >&5
5727 echo "${ECHO_T}yes" >&6; }
5728   SET_MAKE=
5729 else
5730   { echo "$as_me:$LINENO: result: no" >&5
5731 echo "${ECHO_T}no" >&6; }
5732   SET_MAKE="MAKE=${MAKE-make}"
5733 fi
5734
5735
5736
5737         MKINSTALLDIRS=
5738   if test -n "$ac_aux_dir"; then
5739     case "$ac_aux_dir" in
5740       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5741       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5742     esac
5743   fi
5744   if test -z "$MKINSTALLDIRS"; then
5745     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5746   fi
5747
5748
5749
5750   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5751 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5752     # Check whether --enable-nls was given.
5753 if test "${enable_nls+set}" = set; then
5754   enableval=$enable_nls; USE_NLS=$enableval
5755 else
5756   USE_NLS=yes
5757 fi
5758
5759   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5760 echo "${ECHO_T}$USE_NLS" >&6; }
5761
5762
5763
5764
5765
5766
5767 # Prepare PATH_SEPARATOR.
5768 # The user is always right.
5769 if test "${PATH_SEPARATOR+set}" != set; then
5770   echo "#! /bin/sh" >conf$$.sh
5771   echo  "exit 0"   >>conf$$.sh
5772   chmod +x conf$$.sh
5773   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5774     PATH_SEPARATOR=';'
5775   else
5776     PATH_SEPARATOR=:
5777   fi
5778   rm -f conf$$.sh
5779 fi
5780
5781 # Find out how to test for executable files. Don't use a zero-byte file,
5782 # as systems may use methods other than mode bits to determine executability.
5783 cat >conf$$.file <<_ASEOF
5784 #! /bin/sh
5785 exit 0
5786 _ASEOF
5787 chmod +x conf$$.file
5788 if test -x conf$$.file >/dev/null 2>&1; then
5789   ac_executable_p="test -x"
5790 else
5791   ac_executable_p="test -f"
5792 fi
5793 rm -f conf$$.file
5794
5795 # Extract the first word of "msgfmt", so it can be a program name with args.
5796 set dummy msgfmt; ac_word=$2
5797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5799 if test "${ac_cv_path_MSGFMT+set}" = set; then
5800   echo $ECHO_N "(cached) $ECHO_C" >&6
5801 else
5802   case "$MSGFMT" in
5803   [\\/]* | ?:[\\/]*)
5804     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5805     ;;
5806   *)
5807     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5808     for ac_dir in $PATH; do
5809       IFS="$ac_save_IFS"
5810       test -z "$ac_dir" && ac_dir=.
5811       for ac_exec_ext in '' $ac_executable_extensions; do
5812         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5813           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5814           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5815      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5816             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5817             break 2
5818           fi
5819         fi
5820       done
5821     done
5822     IFS="$ac_save_IFS"
5823   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5824     ;;
5825 esac
5826 fi
5827 MSGFMT="$ac_cv_path_MSGFMT"
5828 if test "$MSGFMT" != ":"; then
5829   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5830 echo "${ECHO_T}$MSGFMT" >&6; }
5831 else
5832   { echo "$as_me:$LINENO: result: no" >&5
5833 echo "${ECHO_T}no" >&6; }
5834 fi
5835
5836   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5837 set dummy gmsgfmt; ac_word=$2
5838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5840 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   case $GMSGFMT in
5844   [\\/]* | ?:[\\/]*)
5845   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5846   ;;
5847   *)
5848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853   for ac_exec_ext in '' $ac_executable_extensions; do
5854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5855     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5864   ;;
5865 esac
5866 fi
5867 GMSGFMT=$ac_cv_path_GMSGFMT
5868 if test -n "$GMSGFMT"; then
5869   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5870 echo "${ECHO_T}$GMSGFMT" >&6; }
5871 else
5872   { echo "$as_me:$LINENO: result: no" >&5
5873 echo "${ECHO_T}no" >&6; }
5874 fi
5875
5876
5877
5878
5879 # Prepare PATH_SEPARATOR.
5880 # The user is always right.
5881 if test "${PATH_SEPARATOR+set}" != set; then
5882   echo "#! /bin/sh" >conf$$.sh
5883   echo  "exit 0"   >>conf$$.sh
5884   chmod +x conf$$.sh
5885   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5886     PATH_SEPARATOR=';'
5887   else
5888     PATH_SEPARATOR=:
5889   fi
5890   rm -f conf$$.sh
5891 fi
5892
5893 # Find out how to test for executable files. Don't use a zero-byte file,
5894 # as systems may use methods other than mode bits to determine executability.
5895 cat >conf$$.file <<_ASEOF
5896 #! /bin/sh
5897 exit 0
5898 _ASEOF
5899 chmod +x conf$$.file
5900 if test -x conf$$.file >/dev/null 2>&1; then
5901   ac_executable_p="test -x"
5902 else
5903   ac_executable_p="test -f"
5904 fi
5905 rm -f conf$$.file
5906
5907 # Extract the first word of "xgettext", so it can be a program name with args.
5908 set dummy xgettext; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   case "$XGETTEXT" in
5915   [\\/]* | ?:[\\/]*)
5916     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5917     ;;
5918   *)
5919     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5920     for ac_dir in $PATH; do
5921       IFS="$ac_save_IFS"
5922       test -z "$ac_dir" && ac_dir=.
5923       for ac_exec_ext in '' $ac_executable_extensions; do
5924         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5925           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5926           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5927      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5928             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5929             break 2
5930           fi
5931         fi
5932       done
5933     done
5934     IFS="$ac_save_IFS"
5935   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5936     ;;
5937 esac
5938 fi
5939 XGETTEXT="$ac_cv_path_XGETTEXT"
5940 if test "$XGETTEXT" != ":"; then
5941   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5942 echo "${ECHO_T}$XGETTEXT" >&6; }
5943 else
5944   { echo "$as_me:$LINENO: result: no" >&5
5945 echo "${ECHO_T}no" >&6; }
5946 fi
5947
5948     rm -f messages.po
5949
5950
5951 # Prepare PATH_SEPARATOR.
5952 # The user is always right.
5953 if test "${PATH_SEPARATOR+set}" != set; then
5954   echo "#! /bin/sh" >conf$$.sh
5955   echo  "exit 0"   >>conf$$.sh
5956   chmod +x conf$$.sh
5957   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5958     PATH_SEPARATOR=';'
5959   else
5960     PATH_SEPARATOR=:
5961   fi
5962   rm -f conf$$.sh
5963 fi
5964
5965 # Find out how to test for executable files. Don't use a zero-byte file,
5966 # as systems may use methods other than mode bits to determine executability.
5967 cat >conf$$.file <<_ASEOF
5968 #! /bin/sh
5969 exit 0
5970 _ASEOF
5971 chmod +x conf$$.file
5972 if test -x conf$$.file >/dev/null 2>&1; then
5973   ac_executable_p="test -x"
5974 else
5975   ac_executable_p="test -f"
5976 fi
5977 rm -f conf$$.file
5978
5979 # Extract the first word of "msgmerge", so it can be a program name with args.
5980 set dummy msgmerge; ac_word=$2
5981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5983 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5984   echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986   case "$MSGMERGE" in
5987   [\\/]* | ?:[\\/]*)
5988     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5989     ;;
5990   *)
5991     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5992     for ac_dir in $PATH; do
5993       IFS="$ac_save_IFS"
5994       test -z "$ac_dir" && ac_dir=.
5995       for ac_exec_ext in '' $ac_executable_extensions; do
5996         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5997           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5998           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5999             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6000             break 2
6001           fi
6002         fi
6003       done
6004     done
6005     IFS="$ac_save_IFS"
6006   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6007     ;;
6008 esac
6009 fi
6010 MSGMERGE="$ac_cv_path_MSGMERGE"
6011 if test "$MSGMERGE" != ":"; then
6012   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6013 echo "${ECHO_T}$MSGMERGE" >&6; }
6014 else
6015   { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017 fi
6018
6019
6020       if test "$GMSGFMT" != ":"; then
6021             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6022        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6023       : ;
6024     else
6025       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6026       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6027 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6028       GMSGFMT=":"
6029     fi
6030   fi
6031
6032       if test "$XGETTEXT" != ":"; then
6033             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6034        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6035       : ;
6036     else
6037       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6038 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6039       XGETTEXT=":"
6040     fi
6041         rm -f messages.po
6042   fi
6043
6044   ac_config_commands="$ac_config_commands default-1"
6045
6046
6047
6048       if test "X$prefix" = "XNONE"; then
6049     acl_final_prefix="$ac_default_prefix"
6050   else
6051     acl_final_prefix="$prefix"
6052   fi
6053   if test "X$exec_prefix" = "XNONE"; then
6054     acl_final_exec_prefix='${prefix}'
6055   else
6056     acl_final_exec_prefix="$exec_prefix"
6057   fi
6058   acl_save_prefix="$prefix"
6059   prefix="$acl_final_prefix"
6060   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6061   prefix="$acl_save_prefix"
6062
6063
6064 # Check whether --with-gnu-ld was given.
6065 if test "${with_gnu_ld+set}" = set; then
6066   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6067 else
6068   with_gnu_ld=no
6069 fi
6070
6071 # Prepare PATH_SEPARATOR.
6072 # The user is always right.
6073 if test "${PATH_SEPARATOR+set}" != set; then
6074   echo "#! /bin/sh" >conf$$.sh
6075   echo  "exit 0"   >>conf$$.sh
6076   chmod +x conf$$.sh
6077   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6078     PATH_SEPARATOR=';'
6079   else
6080     PATH_SEPARATOR=:
6081   fi
6082   rm -f conf$$.sh
6083 fi
6084 ac_prog=ld
6085 if test "$GCC" = yes; then
6086   # Check if gcc -print-prog-name=ld gives a path.
6087   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6088 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6089   case $host in
6090   *-*-mingw*)
6091     # gcc leaves a trailing carriage return which upsets mingw
6092     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6093   *)
6094     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6095   esac
6096   case $ac_prog in
6097     # Accept absolute paths.
6098     [\\/]* | [A-Za-z]:[\\/]*)
6099       re_direlt='/[^/][^/]*/\.\./'
6100       # Canonicalize the path of ld
6101       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6102       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6103         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6104       done
6105       test -z "$LD" && LD="$ac_prog"
6106       ;;
6107   "")
6108     # If it fails, then pretend we aren't using GCC.
6109     ac_prog=ld
6110     ;;
6111   *)
6112     # If it is relative, then search for the first ld in PATH.
6113     with_gnu_ld=unknown
6114     ;;
6115   esac
6116 elif test "$with_gnu_ld" = yes; then
6117   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6118 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6119 else
6120   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6121 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6122 fi
6123 if test "${acl_cv_path_LD+set}" = set; then
6124   echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126   if test -z "$LD"; then
6127   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6128   for ac_dir in $PATH; do
6129     test -z "$ac_dir" && ac_dir=.
6130     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6131       acl_cv_path_LD="$ac_dir/$ac_prog"
6132       # Check to see if the program is GNU ld.  I'd rather use --version,
6133       # but apparently some GNU ld's only accept -v.
6134       # Break only if it was the GNU/non-GNU ld that we prefer.
6135       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6136       *GNU* | *'with BFD'*)
6137         test "$with_gnu_ld" != no && break ;;
6138       *)
6139         test "$with_gnu_ld" != yes && break ;;
6140       esac
6141     fi
6142   done
6143   IFS="$ac_save_ifs"
6144 else
6145   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6146 fi
6147 fi
6148
6149 LD="$acl_cv_path_LD"
6150 if test -n "$LD"; then
6151   { echo "$as_me:$LINENO: result: $LD" >&5
6152 echo "${ECHO_T}$LD" >&6; }
6153 else
6154   { echo "$as_me:$LINENO: result: no" >&5
6155 echo "${ECHO_T}no" >&6; }
6156 fi
6157 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6158 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6159    { (exit 1); exit 1; }; }
6160 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6161 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6162 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6163   echo $ECHO_N "(cached) $ECHO_C" >&6
6164 else
6165   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6166 case `$LD -v 2>&1 </dev/null` in
6167 *GNU* | *'with BFD'*)
6168   acl_cv_prog_gnu_ld=yes ;;
6169 *)
6170   acl_cv_prog_gnu_ld=no ;;
6171 esac
6172 fi
6173 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6174 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6175 with_gnu_ld=$acl_cv_prog_gnu_ld
6176
6177
6178
6179
6180                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6181 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6182 if test "${acl_cv_rpath+set}" = set; then
6183   echo $ECHO_N "(cached) $ECHO_C" >&6
6184 else
6185
6186     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6187     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6188     . ./conftest.sh
6189     rm -f ./conftest.sh
6190     acl_cv_rpath=done
6191
6192 fi
6193 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6194 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6195   wl="$acl_cv_wl"
6196   libext="$acl_cv_libext"
6197   shlibext="$acl_cv_shlibext"
6198   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6199   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6200   hardcode_direct="$acl_cv_hardcode_direct"
6201   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6202     # Check whether --enable-rpath was given.
6203 if test "${enable_rpath+set}" = set; then
6204   enableval=$enable_rpath; :
6205 else
6206   enable_rpath=yes
6207 fi
6208
6209
6210
6211
6212
6213
6214
6215
6216     use_additional=yes
6217
6218   acl_save_prefix="$prefix"
6219   prefix="$acl_final_prefix"
6220   acl_save_exec_prefix="$exec_prefix"
6221   exec_prefix="$acl_final_exec_prefix"
6222
6223     eval additional_includedir=\"$includedir\"
6224     eval additional_libdir=\"$libdir\"
6225
6226   exec_prefix="$acl_save_exec_prefix"
6227   prefix="$acl_save_prefix"
6228
6229
6230 # Check whether --with-libiconv-prefix was given.
6231 if test "${with_libiconv_prefix+set}" = set; then
6232   withval=$with_libiconv_prefix;
6233     if test "X$withval" = "Xno"; then
6234       use_additional=no
6235     else
6236       if test "X$withval" = "X"; then
6237
6238   acl_save_prefix="$prefix"
6239   prefix="$acl_final_prefix"
6240   acl_save_exec_prefix="$exec_prefix"
6241   exec_prefix="$acl_final_exec_prefix"
6242
6243           eval additional_includedir=\"$includedir\"
6244           eval additional_libdir=\"$libdir\"
6245
6246   exec_prefix="$acl_save_exec_prefix"
6247   prefix="$acl_save_prefix"
6248
6249       else
6250         additional_includedir="$withval/include"
6251         additional_libdir="$withval/lib"
6252       fi
6253     fi
6254
6255 fi
6256
6257       LIBICONV=
6258   LTLIBICONV=
6259   INCICONV=
6260   rpathdirs=
6261   ltrpathdirs=
6262   names_already_handled=
6263   names_next_round='iconv '
6264   while test -n "$names_next_round"; do
6265     names_this_round="$names_next_round"
6266     names_next_round=
6267     for name in $names_this_round; do
6268       already_handled=
6269       for n in $names_already_handled; do
6270         if test "$n" = "$name"; then
6271           already_handled=yes
6272           break
6273         fi
6274       done
6275       if test -z "$already_handled"; then
6276         names_already_handled="$names_already_handled $name"
6277                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6278         eval value=\"\$HAVE_LIB$uppername\"
6279         if test -n "$value"; then
6280           if test "$value" = yes; then
6281             eval value=\"\$LIB$uppername\"
6282             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6283             eval value=\"\$LTLIB$uppername\"
6284             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6285           else
6286                                     :
6287           fi
6288         else
6289                               found_dir=
6290           found_la=
6291           found_so=
6292           found_a=
6293           if test $use_additional = yes; then
6294             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6295               found_dir="$additional_libdir"
6296               found_so="$additional_libdir/lib$name.$shlibext"
6297               if test -f "$additional_libdir/lib$name.la"; then
6298                 found_la="$additional_libdir/lib$name.la"
6299               fi
6300             else
6301               if test -f "$additional_libdir/lib$name.$libext"; then
6302                 found_dir="$additional_libdir"
6303                 found_a="$additional_libdir/lib$name.$libext"
6304                 if test -f "$additional_libdir/lib$name.la"; then
6305                   found_la="$additional_libdir/lib$name.la"
6306                 fi
6307               fi
6308             fi
6309           fi
6310           if test "X$found_dir" = "X"; then
6311             for x in $LDFLAGS $LTLIBICONV; do
6312
6313   acl_save_prefix="$prefix"
6314   prefix="$acl_final_prefix"
6315   acl_save_exec_prefix="$exec_prefix"
6316   exec_prefix="$acl_final_exec_prefix"
6317   eval x=\"$x\"
6318   exec_prefix="$acl_save_exec_prefix"
6319   prefix="$acl_save_prefix"
6320
6321               case "$x" in
6322                 -L*)
6323                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6324                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6325                     found_dir="$dir"
6326                     found_so="$dir/lib$name.$shlibext"
6327                     if test -f "$dir/lib$name.la"; then
6328                       found_la="$dir/lib$name.la"
6329                     fi
6330                   else
6331                     if test -f "$dir/lib$name.$libext"; then
6332                       found_dir="$dir"
6333                       found_a="$dir/lib$name.$libext"
6334                       if test -f "$dir/lib$name.la"; then
6335                         found_la="$dir/lib$name.la"
6336                       fi
6337                     fi
6338                   fi
6339                   ;;
6340               esac
6341               if test "X$found_dir" != "X"; then
6342                 break
6343               fi
6344             done
6345           fi
6346           if test "X$found_dir" != "X"; then
6347                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6348             if test "X$found_so" != "X"; then
6349                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6350                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6351               else
6352                                                                                 haveit=
6353                 for x in $ltrpathdirs; do
6354                   if test "X$x" = "X$found_dir"; then
6355                     haveit=yes
6356                     break
6357                   fi
6358                 done
6359                 if test -z "$haveit"; then
6360                   ltrpathdirs="$ltrpathdirs $found_dir"
6361                 fi
6362                                 if test "$hardcode_direct" = yes; then
6363                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6364                 else
6365                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6366                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6367                                                             haveit=
6368                     for x in $rpathdirs; do
6369                       if test "X$x" = "X$found_dir"; then
6370                         haveit=yes
6371                         break
6372                       fi
6373                     done
6374                     if test -z "$haveit"; then
6375                       rpathdirs="$rpathdirs $found_dir"
6376                     fi
6377                   else
6378                                                                                 haveit=
6379                     for x in $LDFLAGS $LIBICONV; do
6380
6381   acl_save_prefix="$prefix"
6382   prefix="$acl_final_prefix"
6383   acl_save_exec_prefix="$exec_prefix"
6384   exec_prefix="$acl_final_exec_prefix"
6385   eval x=\"$x\"
6386   exec_prefix="$acl_save_exec_prefix"
6387   prefix="$acl_save_prefix"
6388
6389                       if test "X$x" = "X-L$found_dir"; then
6390                         haveit=yes
6391                         break
6392                       fi
6393                     done
6394                     if test -z "$haveit"; then
6395                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6396                     fi
6397                     if test "$hardcode_minus_L" != no; then
6398                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6399                     else
6400                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6401                     fi
6402                   fi
6403                 fi
6404               fi
6405             else
6406               if test "X$found_a" != "X"; then
6407                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6408               else
6409                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6410               fi
6411             fi
6412                         additional_includedir=
6413             case "$found_dir" in
6414               */lib | */lib/)
6415                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6416                 additional_includedir="$basedir/include"
6417                 ;;
6418             esac
6419             if test "X$additional_includedir" != "X"; then
6420                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6421                 haveit=
6422                 if test "X$additional_includedir" = "X/usr/local/include"; then
6423                   if test -n "$GCC"; then
6424                     case $host_os in
6425                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6426                     esac
6427                   fi
6428                 fi
6429                 if test -z "$haveit"; then
6430                   for x in $CPPFLAGS $INCICONV; do
6431
6432   acl_save_prefix="$prefix"
6433   prefix="$acl_final_prefix"
6434   acl_save_exec_prefix="$exec_prefix"
6435   exec_prefix="$acl_final_exec_prefix"
6436   eval x=\"$x\"
6437   exec_prefix="$acl_save_exec_prefix"
6438   prefix="$acl_save_prefix"
6439
6440                     if test "X$x" = "X-I$additional_includedir"; then
6441                       haveit=yes
6442                       break
6443                     fi
6444                   done
6445                   if test -z "$haveit"; then
6446                     if test -d "$additional_includedir"; then
6447                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6448                     fi
6449                   fi
6450                 fi
6451               fi
6452             fi
6453                         if test -n "$found_la"; then
6454                                                         save_libdir="$libdir"
6455               case "$found_la" in
6456                 */* | *\\*) . "$found_la" ;;
6457                 *) . "./$found_la" ;;
6458               esac
6459               libdir="$save_libdir"
6460                             for dep in $dependency_libs; do
6461                 case "$dep" in
6462                   -L*)
6463                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6464                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6465                       haveit=
6466                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6467                         if test -n "$GCC"; then
6468                           case $host_os in
6469                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6470                           esac
6471                         fi
6472                       fi
6473                       if test -z "$haveit"; then
6474                         haveit=
6475                         for x in $LDFLAGS $LIBICONV; do
6476
6477   acl_save_prefix="$prefix"
6478   prefix="$acl_final_prefix"
6479   acl_save_exec_prefix="$exec_prefix"
6480   exec_prefix="$acl_final_exec_prefix"
6481   eval x=\"$x\"
6482   exec_prefix="$acl_save_exec_prefix"
6483   prefix="$acl_save_prefix"
6484
6485                           if test "X$x" = "X-L$additional_libdir"; then
6486                             haveit=yes
6487                             break
6488                           fi
6489                         done
6490                         if test -z "$haveit"; then
6491                           if test -d "$additional_libdir"; then
6492                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6493                           fi
6494                         fi
6495                         haveit=
6496                         for x in $LDFLAGS $LTLIBICONV; do
6497
6498   acl_save_prefix="$prefix"
6499   prefix="$acl_final_prefix"
6500   acl_save_exec_prefix="$exec_prefix"
6501   exec_prefix="$acl_final_exec_prefix"
6502   eval x=\"$x\"
6503   exec_prefix="$acl_save_exec_prefix"
6504   prefix="$acl_save_prefix"
6505
6506                           if test "X$x" = "X-L$additional_libdir"; then
6507                             haveit=yes
6508                             break
6509                           fi
6510                         done
6511                         if test -z "$haveit"; then
6512                           if test -d "$additional_libdir"; then
6513                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6514                           fi
6515                         fi
6516                       fi
6517                     fi
6518                     ;;
6519                   -R*)
6520                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6521                     if test "$enable_rpath" != no; then
6522                                                                   haveit=
6523                       for x in $rpathdirs; do
6524                         if test "X$x" = "X$dir"; then
6525                           haveit=yes
6526                           break
6527                         fi
6528                       done
6529                       if test -z "$haveit"; then
6530                         rpathdirs="$rpathdirs $dir"
6531                       fi
6532                                                                   haveit=
6533                       for x in $ltrpathdirs; do
6534                         if test "X$x" = "X$dir"; then
6535                           haveit=yes
6536                           break
6537                         fi
6538                       done
6539                       if test -z "$haveit"; then
6540                         ltrpathdirs="$ltrpathdirs $dir"
6541                       fi
6542                     fi
6543                     ;;
6544                   -l*)
6545                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6546                     ;;
6547                   *.la)
6548                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6549                     ;;
6550                   *)
6551                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6552                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6553                     ;;
6554                 esac
6555               done
6556             fi
6557           else
6558                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6559             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6560           fi
6561         fi
6562       fi
6563     done
6564   done
6565   if test "X$rpathdirs" != "X"; then
6566     if test -n "$hardcode_libdir_separator"; then
6567                         alldirs=
6568       for found_dir in $rpathdirs; do
6569         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6570       done
6571             acl_save_libdir="$libdir"
6572       libdir="$alldirs"
6573       eval flag=\"$hardcode_libdir_flag_spec\"
6574       libdir="$acl_save_libdir"
6575       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6576     else
6577             for found_dir in $rpathdirs; do
6578         acl_save_libdir="$libdir"
6579         libdir="$found_dir"
6580         eval flag=\"$hardcode_libdir_flag_spec\"
6581         libdir="$acl_save_libdir"
6582         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6583       done
6584     fi
6585   fi
6586   if test "X$ltrpathdirs" != "X"; then
6587             for found_dir in $ltrpathdirs; do
6588       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6589     done
6590   fi
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6610 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6611 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   gt_save_CPPFLAGS="$CPPFLAGS"
6615      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6616      gt_save_LIBS="$LIBS"
6617      LIBS="$LIBS -framework CoreFoundation"
6618      cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 #include <CFPreferences.h>
6625 int
6626 main ()
6627 {
6628 CFPreferencesCopyAppValue(NULL, NULL)
6629   ;
6630   return 0;
6631 }
6632 _ACEOF
6633 rm -f conftest.$ac_objext conftest$ac_exeext
6634 if { (ac_try="$ac_link"
6635 case "(($ac_try" in
6636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637   *) ac_try_echo=$ac_try;;
6638 esac
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640   (eval "$ac_link") 2>conftest.er1
6641   ac_status=$?
6642   grep -v '^ *+' conftest.er1 >conftest.err
6643   rm -f conftest.er1
6644   cat conftest.err >&5
6645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646   (exit $ac_status); } && {
6647          test -z "$ac_c_werror_flag" ||
6648          test ! -s conftest.err
6649        } && test -s conftest$ac_exeext &&
6650        $as_test_x conftest$ac_exeext; then
6651   gt_cv_func_CFPreferencesCopyAppValue=yes
6652 else
6653   echo "$as_me: failed program was:" >&5
6654 sed 's/^/| /' conftest.$ac_ext >&5
6655
6656         gt_cv_func_CFPreferencesCopyAppValue=no
6657 fi
6658
6659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6660       conftest$ac_exeext conftest.$ac_ext
6661      CPPFLAGS="$gt_save_CPPFLAGS"
6662      LIBS="$gt_save_LIBS"
6663 fi
6664 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6665 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6666   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6667
6668 cat >>confdefs.h <<\_ACEOF
6669 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6670 _ACEOF
6671
6672   fi
6673     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6674 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6675 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   gt_save_CPPFLAGS="$CPPFLAGS"
6679      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6680      gt_save_LIBS="$LIBS"
6681      LIBS="$LIBS -framework CoreFoundation"
6682      cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 #include <CFLocale.h>
6689 int
6690 main ()
6691 {
6692 CFLocaleCopyCurrent();
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701   *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704   (eval "$ac_link") 2>conftest.er1
6705   ac_status=$?
6706   grep -v '^ *+' conftest.er1 >conftest.err
6707   rm -f conftest.er1
6708   cat conftest.err >&5
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } && {
6711          test -z "$ac_c_werror_flag" ||
6712          test ! -s conftest.err
6713        } && test -s conftest$ac_exeext &&
6714        $as_test_x conftest$ac_exeext; then
6715   gt_cv_func_CFLocaleCopyCurrent=yes
6716 else
6717   echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6719
6720         gt_cv_func_CFLocaleCopyCurrent=no
6721 fi
6722
6723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6724       conftest$ac_exeext conftest.$ac_ext
6725      CPPFLAGS="$gt_save_CPPFLAGS"
6726      LIBS="$gt_save_LIBS"
6727 fi
6728 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6729 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6730   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6731
6732 cat >>confdefs.h <<\_ACEOF
6733 #define HAVE_CFLOCALECOPYCURRENT 1
6734 _ACEOF
6735
6736   fi
6737   INTL_MACOSX_LIBS=
6738   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6739     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6740   fi
6741
6742
6743
6744
6745   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6746 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6747     # Check whether --enable-nls was given.
6748 if test "${enable_nls+set}" = set; then
6749   enableval=$enable_nls; USE_NLS=$enableval
6750 else
6751   USE_NLS=yes
6752 fi
6753
6754   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6755 echo "${ECHO_T}$USE_NLS" >&6; }
6756
6757
6758
6759
6760   LIBINTL=
6761   LTLIBINTL=
6762   POSUB=
6763
6764     if test "$USE_NLS" = "yes"; then
6765     gt_use_preinstalled_gnugettext=no
6766
6767
6768
6769
6770
6771
6772         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6773 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6774 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6775   echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777   cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h.  */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h.  */
6783 #include <libintl.h>
6784 extern int _nl_msg_cat_cntr;
6785 extern int *_nl_domain_bindings;
6786 int
6787 main ()
6788 {
6789 bindtextdomain ("", "");
6790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext conftest$ac_exeext
6796 if { (ac_try="$ac_link"
6797 case "(($ac_try" in
6798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799   *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802   (eval "$ac_link") 2>conftest.er1
6803   ac_status=$?
6804   grep -v '^ *+' conftest.er1 >conftest.err
6805   rm -f conftest.er1
6806   cat conftest.err >&5
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } && {
6809          test -z "$ac_c_werror_flag" ||
6810          test ! -s conftest.err
6811        } && test -s conftest$ac_exeext &&
6812        $as_test_x conftest$ac_exeext; then
6813   gt_cv_func_gnugettext1_libc=yes
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818         gt_cv_func_gnugettext1_libc=no
6819 fi
6820
6821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6822       conftest$ac_exeext conftest.$ac_ext
6823 fi
6824 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6825 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6826
6827         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6828
6829
6830
6831
6832
6833           am_save_CPPFLAGS="$CPPFLAGS"
6834
6835   for element in $INCICONV; do
6836     haveit=
6837     for x in $CPPFLAGS; do
6838
6839   acl_save_prefix="$prefix"
6840   prefix="$acl_final_prefix"
6841   acl_save_exec_prefix="$exec_prefix"
6842   exec_prefix="$acl_final_exec_prefix"
6843   eval x=\"$x\"
6844   exec_prefix="$acl_save_exec_prefix"
6845   prefix="$acl_save_prefix"
6846
6847       if test "X$x" = "X$element"; then
6848         haveit=yes
6849         break
6850       fi
6851     done
6852     if test -z "$haveit"; then
6853       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6854     fi
6855   done
6856
6857
6858   { echo "$as_me:$LINENO: checking for iconv" >&5
6859 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6860 if test "${am_cv_func_iconv+set}" = set; then
6861   echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863
6864     am_cv_func_iconv="no, consider installing GNU libiconv"
6865     am_cv_lib_iconv=no
6866     cat >conftest.$ac_ext <<_ACEOF
6867 /* confdefs.h.  */
6868 _ACEOF
6869 cat confdefs.h >>conftest.$ac_ext
6870 cat >>conftest.$ac_ext <<_ACEOF
6871 /* end confdefs.h.  */
6872 #include <stdlib.h>
6873 #include <iconv.h>
6874 int
6875 main ()
6876 {
6877 iconv_t cd = iconv_open("","");
6878        iconv(cd,NULL,NULL,NULL,NULL);
6879        iconv_close(cd);
6880   ;
6881   return 0;
6882 }
6883 _ACEOF
6884 rm -f conftest.$ac_objext conftest$ac_exeext
6885 if { (ac_try="$ac_link"
6886 case "(($ac_try" in
6887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888   *) ac_try_echo=$ac_try;;
6889 esac
6890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6891   (eval "$ac_link") 2>conftest.er1
6892   ac_status=$?
6893   grep -v '^ *+' conftest.er1 >conftest.err
6894   rm -f conftest.er1
6895   cat conftest.err >&5
6896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6897   (exit $ac_status); } && {
6898          test -z "$ac_c_werror_flag" ||
6899          test ! -s conftest.err
6900        } && test -s conftest$ac_exeext &&
6901        $as_test_x conftest$ac_exeext; then
6902   am_cv_func_iconv=yes
6903 else
6904   echo "$as_me: failed program was:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6906
6907
6908 fi
6909
6910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6911       conftest$ac_exeext conftest.$ac_ext
6912     if test "$am_cv_func_iconv" != yes; then
6913       am_save_LIBS="$LIBS"
6914       LIBS="$LIBS $LIBICONV"
6915       cat >conftest.$ac_ext <<_ACEOF
6916 /* confdefs.h.  */
6917 _ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h.  */
6921 #include <stdlib.h>
6922 #include <iconv.h>
6923 int
6924 main ()
6925 {
6926 iconv_t cd = iconv_open("","");
6927          iconv(cd,NULL,NULL,NULL,NULL);
6928          iconv_close(cd);
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext conftest$ac_exeext
6934 if { (ac_try="$ac_link"
6935 case "(($ac_try" in
6936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937   *) ac_try_echo=$ac_try;;
6938 esac
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940   (eval "$ac_link") 2>conftest.er1
6941   ac_status=$?
6942   grep -v '^ *+' conftest.er1 >conftest.err
6943   rm -f conftest.er1
6944   cat conftest.err >&5
6945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946   (exit $ac_status); } && {
6947          test -z "$ac_c_werror_flag" ||
6948          test ! -s conftest.err
6949        } && test -s conftest$ac_exeext &&
6950        $as_test_x conftest$ac_exeext; then
6951   am_cv_lib_iconv=yes
6952         am_cv_func_iconv=yes
6953 else
6954   echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6956
6957
6958 fi
6959
6960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6961       conftest$ac_exeext conftest.$ac_ext
6962       LIBS="$am_save_LIBS"
6963     fi
6964
6965 fi
6966 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6967 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6968   if test "$am_cv_func_iconv" = yes; then
6969
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_ICONV 1
6972 _ACEOF
6973
6974   fi
6975   if test "$am_cv_lib_iconv" = yes; then
6976     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6977 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6978     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6979 echo "${ECHO_T}$LIBICONV" >&6; }
6980   else
6981             CPPFLAGS="$am_save_CPPFLAGS"
6982     LIBICONV=
6983     LTLIBICONV=
6984   fi
6985
6986
6987
6988
6989
6990
6991     use_additional=yes
6992
6993   acl_save_prefix="$prefix"
6994   prefix="$acl_final_prefix"
6995   acl_save_exec_prefix="$exec_prefix"
6996   exec_prefix="$acl_final_exec_prefix"
6997
6998     eval additional_includedir=\"$includedir\"
6999     eval additional_libdir=\"$libdir\"
7000
7001   exec_prefix="$acl_save_exec_prefix"
7002   prefix="$acl_save_prefix"
7003
7004
7005 # Check whether --with-libintl-prefix was given.
7006 if test "${with_libintl_prefix+set}" = set; then
7007   withval=$with_libintl_prefix;
7008     if test "X$withval" = "Xno"; then
7009       use_additional=no
7010     else
7011       if test "X$withval" = "X"; then
7012
7013   acl_save_prefix="$prefix"
7014   prefix="$acl_final_prefix"
7015   acl_save_exec_prefix="$exec_prefix"
7016   exec_prefix="$acl_final_exec_prefix"
7017
7018           eval additional_includedir=\"$includedir\"
7019           eval additional_libdir=\"$libdir\"
7020
7021   exec_prefix="$acl_save_exec_prefix"
7022   prefix="$acl_save_prefix"
7023
7024       else
7025         additional_includedir="$withval/include"
7026         additional_libdir="$withval/lib"
7027       fi
7028     fi
7029
7030 fi
7031
7032       LIBINTL=
7033   LTLIBINTL=
7034   INCINTL=
7035   rpathdirs=
7036   ltrpathdirs=
7037   names_already_handled=
7038   names_next_round='intl '
7039   while test -n "$names_next_round"; do
7040     names_this_round="$names_next_round"
7041     names_next_round=
7042     for name in $names_this_round; do
7043       already_handled=
7044       for n in $names_already_handled; do
7045         if test "$n" = "$name"; then
7046           already_handled=yes
7047           break
7048         fi
7049       done
7050       if test -z "$already_handled"; then
7051         names_already_handled="$names_already_handled $name"
7052                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7053         eval value=\"\$HAVE_LIB$uppername\"
7054         if test -n "$value"; then
7055           if test "$value" = yes; then
7056             eval value=\"\$LIB$uppername\"
7057             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7058             eval value=\"\$LTLIB$uppername\"
7059             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7060           else
7061                                     :
7062           fi
7063         else
7064                               found_dir=
7065           found_la=
7066           found_so=
7067           found_a=
7068           if test $use_additional = yes; then
7069             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7070               found_dir="$additional_libdir"
7071               found_so="$additional_libdir/lib$name.$shlibext"
7072               if test -f "$additional_libdir/lib$name.la"; then
7073                 found_la="$additional_libdir/lib$name.la"
7074               fi
7075             else
7076               if test -f "$additional_libdir/lib$name.$libext"; then
7077                 found_dir="$additional_libdir"
7078                 found_a="$additional_libdir/lib$name.$libext"
7079                 if test -f "$additional_libdir/lib$name.la"; then
7080                   found_la="$additional_libdir/lib$name.la"
7081                 fi
7082               fi
7083             fi
7084           fi
7085           if test "X$found_dir" = "X"; then
7086             for x in $LDFLAGS $LTLIBINTL; do
7087
7088   acl_save_prefix="$prefix"
7089   prefix="$acl_final_prefix"
7090   acl_save_exec_prefix="$exec_prefix"
7091   exec_prefix="$acl_final_exec_prefix"
7092   eval x=\"$x\"
7093   exec_prefix="$acl_save_exec_prefix"
7094   prefix="$acl_save_prefix"
7095
7096               case "$x" in
7097                 -L*)
7098                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7099                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7100                     found_dir="$dir"
7101                     found_so="$dir/lib$name.$shlibext"
7102                     if test -f "$dir/lib$name.la"; then
7103                       found_la="$dir/lib$name.la"
7104                     fi
7105                   else
7106                     if test -f "$dir/lib$name.$libext"; then
7107                       found_dir="$dir"
7108                       found_a="$dir/lib$name.$libext"
7109                       if test -f "$dir/lib$name.la"; then
7110                         found_la="$dir/lib$name.la"
7111                       fi
7112                     fi
7113                   fi
7114                   ;;
7115               esac
7116               if test "X$found_dir" != "X"; then
7117                 break
7118               fi
7119             done
7120           fi
7121           if test "X$found_dir" != "X"; then
7122                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7123             if test "X$found_so" != "X"; then
7124                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7125                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7126               else
7127                                                                                 haveit=
7128                 for x in $ltrpathdirs; do
7129                   if test "X$x" = "X$found_dir"; then
7130                     haveit=yes
7131                     break
7132                   fi
7133                 done
7134                 if test -z "$haveit"; then
7135                   ltrpathdirs="$ltrpathdirs $found_dir"
7136                 fi
7137                                 if test "$hardcode_direct" = yes; then
7138                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7139                 else
7140                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7141                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7142                                                             haveit=
7143                     for x in $rpathdirs; do
7144                       if test "X$x" = "X$found_dir"; then
7145                         haveit=yes
7146                         break
7147                       fi
7148                     done
7149                     if test -z "$haveit"; then
7150                       rpathdirs="$rpathdirs $found_dir"
7151                     fi
7152                   else
7153                                                                                 haveit=
7154                     for x in $LDFLAGS $LIBINTL; do
7155
7156   acl_save_prefix="$prefix"
7157   prefix="$acl_final_prefix"
7158   acl_save_exec_prefix="$exec_prefix"
7159   exec_prefix="$acl_final_exec_prefix"
7160   eval x=\"$x\"
7161   exec_prefix="$acl_save_exec_prefix"
7162   prefix="$acl_save_prefix"
7163
7164                       if test "X$x" = "X-L$found_dir"; then
7165                         haveit=yes
7166                         break
7167                       fi
7168                     done
7169                     if test -z "$haveit"; then
7170                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7171                     fi
7172                     if test "$hardcode_minus_L" != no; then
7173                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7174                     else
7175                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7176                     fi
7177                   fi
7178                 fi
7179               fi
7180             else
7181               if test "X$found_a" != "X"; then
7182                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7183               else
7184                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7185               fi
7186             fi
7187                         additional_includedir=
7188             case "$found_dir" in
7189               */lib | */lib/)
7190                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7191                 additional_includedir="$basedir/include"
7192                 ;;
7193             esac
7194             if test "X$additional_includedir" != "X"; then
7195                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7196                 haveit=
7197                 if test "X$additional_includedir" = "X/usr/local/include"; then
7198                   if test -n "$GCC"; then
7199                     case $host_os in
7200                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7201                     esac
7202                   fi
7203                 fi
7204                 if test -z "$haveit"; then
7205                   for x in $CPPFLAGS $INCINTL; do
7206
7207   acl_save_prefix="$prefix"
7208   prefix="$acl_final_prefix"
7209   acl_save_exec_prefix="$exec_prefix"
7210   exec_prefix="$acl_final_exec_prefix"
7211   eval x=\"$x\"
7212   exec_prefix="$acl_save_exec_prefix"
7213   prefix="$acl_save_prefix"
7214
7215                     if test "X$x" = "X-I$additional_includedir"; then
7216                       haveit=yes
7217                       break
7218                     fi
7219                   done
7220                   if test -z "$haveit"; then
7221                     if test -d "$additional_includedir"; then
7222                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7223                     fi
7224                   fi
7225                 fi
7226               fi
7227             fi
7228                         if test -n "$found_la"; then
7229                                                         save_libdir="$libdir"
7230               case "$found_la" in
7231                 */* | *\\*) . "$found_la" ;;
7232                 *) . "./$found_la" ;;
7233               esac
7234               libdir="$save_libdir"
7235                             for dep in $dependency_libs; do
7236                 case "$dep" in
7237                   -L*)
7238                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7239                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7240                       haveit=
7241                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7242                         if test -n "$GCC"; then
7243                           case $host_os in
7244                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7245                           esac
7246                         fi
7247                       fi
7248                       if test -z "$haveit"; then
7249                         haveit=
7250                         for x in $LDFLAGS $LIBINTL; do
7251
7252   acl_save_prefix="$prefix"
7253   prefix="$acl_final_prefix"
7254   acl_save_exec_prefix="$exec_prefix"
7255   exec_prefix="$acl_final_exec_prefix"
7256   eval x=\"$x\"
7257   exec_prefix="$acl_save_exec_prefix"
7258   prefix="$acl_save_prefix"
7259
7260                           if test "X$x" = "X-L$additional_libdir"; then
7261                             haveit=yes
7262                             break
7263                           fi
7264                         done
7265                         if test -z "$haveit"; then
7266                           if test -d "$additional_libdir"; then
7267                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7268                           fi
7269                         fi
7270                         haveit=
7271                         for x in $LDFLAGS $LTLIBINTL; do
7272
7273   acl_save_prefix="$prefix"
7274   prefix="$acl_final_prefix"
7275   acl_save_exec_prefix="$exec_prefix"
7276   exec_prefix="$acl_final_exec_prefix"
7277   eval x=\"$x\"
7278   exec_prefix="$acl_save_exec_prefix"
7279   prefix="$acl_save_prefix"
7280
7281                           if test "X$x" = "X-L$additional_libdir"; then
7282                             haveit=yes
7283                             break
7284                           fi
7285                         done
7286                         if test -z "$haveit"; then
7287                           if test -d "$additional_libdir"; then
7288                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7289                           fi
7290                         fi
7291                       fi
7292                     fi
7293                     ;;
7294                   -R*)
7295                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7296                     if test "$enable_rpath" != no; then
7297                                                                   haveit=
7298                       for x in $rpathdirs; do
7299                         if test "X$x" = "X$dir"; then
7300                           haveit=yes
7301                           break
7302                         fi
7303                       done
7304                       if test -z "$haveit"; then
7305                         rpathdirs="$rpathdirs $dir"
7306                       fi
7307                                                                   haveit=
7308                       for x in $ltrpathdirs; do
7309                         if test "X$x" = "X$dir"; then
7310                           haveit=yes
7311                           break
7312                         fi
7313                       done
7314                       if test -z "$haveit"; then
7315                         ltrpathdirs="$ltrpathdirs $dir"
7316                       fi
7317                     fi
7318                     ;;
7319                   -l*)
7320                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7321                     ;;
7322                   *.la)
7323                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7324                     ;;
7325                   *)
7326                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7327                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7328                     ;;
7329                 esac
7330               done
7331             fi
7332           else
7333                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7334             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7335           fi
7336         fi
7337       fi
7338     done
7339   done
7340   if test "X$rpathdirs" != "X"; then
7341     if test -n "$hardcode_libdir_separator"; then
7342                         alldirs=
7343       for found_dir in $rpathdirs; do
7344         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7345       done
7346             acl_save_libdir="$libdir"
7347       libdir="$alldirs"
7348       eval flag=\"$hardcode_libdir_flag_spec\"
7349       libdir="$acl_save_libdir"
7350       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7351     else
7352             for found_dir in $rpathdirs; do
7353         acl_save_libdir="$libdir"
7354         libdir="$found_dir"
7355         eval flag=\"$hardcode_libdir_flag_spec\"
7356         libdir="$acl_save_libdir"
7357         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7358       done
7359     fi
7360   fi
7361   if test "X$ltrpathdirs" != "X"; then
7362             for found_dir in $ltrpathdirs; do
7363       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7364     done
7365   fi
7366
7367           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7368 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7369 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7370   echo $ECHO_N "(cached) $ECHO_C" >&6
7371 else
7372   gt_save_CPPFLAGS="$CPPFLAGS"
7373             CPPFLAGS="$CPPFLAGS $INCINTL"
7374             gt_save_LIBS="$LIBS"
7375             LIBS="$LIBS $LIBINTL"
7376                         cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h.  */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h.  */
7382 #include <libintl.h>
7383 extern int _nl_msg_cat_cntr;
7384 extern
7385 #ifdef __cplusplus
7386 "C"
7387 #endif
7388 const char *_nl_expand_alias (const char *);
7389 int
7390 main ()
7391 {
7392 bindtextdomain ("", "");
7393 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7394   ;
7395   return 0;
7396 }
7397 _ACEOF
7398 rm -f conftest.$ac_objext conftest$ac_exeext
7399 if { (ac_try="$ac_link"
7400 case "(($ac_try" in
7401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7402   *) ac_try_echo=$ac_try;;
7403 esac
7404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7405   (eval "$ac_link") 2>conftest.er1
7406   ac_status=$?
7407   grep -v '^ *+' conftest.er1 >conftest.err
7408   rm -f conftest.er1
7409   cat conftest.err >&5
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } && {
7412          test -z "$ac_c_werror_flag" ||
7413          test ! -s conftest.err
7414        } && test -s conftest$ac_exeext &&
7415        $as_test_x conftest$ac_exeext; then
7416   gt_cv_func_gnugettext1_libintl=yes
7417 else
7418   echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.$ac_ext >&5
7420
7421         gt_cv_func_gnugettext1_libintl=no
7422 fi
7423
7424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7425       conftest$ac_exeext conftest.$ac_ext
7426                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7427               LIBS="$LIBS $LIBICONV"
7428               cat >conftest.$ac_ext <<_ACEOF
7429 /* confdefs.h.  */
7430 _ACEOF
7431 cat confdefs.h >>conftest.$ac_ext
7432 cat >>conftest.$ac_ext <<_ACEOF
7433 /* end confdefs.h.  */
7434 #include <libintl.h>
7435 extern int _nl_msg_cat_cntr;
7436 extern
7437 #ifdef __cplusplus
7438 "C"
7439 #endif
7440 const char *_nl_expand_alias (const char *);
7441 int
7442 main ()
7443 {
7444 bindtextdomain ("", "");
7445 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7446   ;
7447   return 0;
7448 }
7449 _ACEOF
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (ac_try="$ac_link"
7452 case "(($ac_try" in
7453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454   *) ac_try_echo=$ac_try;;
7455 esac
7456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457   (eval "$ac_link") 2>conftest.er1
7458   ac_status=$?
7459   grep -v '^ *+' conftest.er1 >conftest.err
7460   rm -f conftest.er1
7461   cat conftest.err >&5
7462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463   (exit $ac_status); } && {
7464          test -z "$ac_c_werror_flag" ||
7465          test ! -s conftest.err
7466        } && test -s conftest$ac_exeext &&
7467        $as_test_x conftest$ac_exeext; then
7468   LIBINTL="$LIBINTL $LIBICONV"
7469                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7470                 gt_cv_func_gnugettext1_libintl=yes
7471
7472 else
7473   echo "$as_me: failed program was:" >&5
7474 sed 's/^/| /' conftest.$ac_ext >&5
7475
7476
7477 fi
7478
7479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7480       conftest$ac_exeext conftest.$ac_ext
7481             fi
7482             CPPFLAGS="$gt_save_CPPFLAGS"
7483             LIBS="$gt_save_LIBS"
7484 fi
7485 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7486 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7487         fi
7488
7489                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7490            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7491                 && test "$PACKAGE" != gettext-runtime \
7492                 && test "$PACKAGE" != gettext-tools; }; then
7493           gt_use_preinstalled_gnugettext=yes
7494         else
7495                     LIBINTL=
7496           LTLIBINTL=
7497           INCINTL=
7498         fi
7499
7500
7501
7502     if test -n "$INTL_MACOSX_LIBS"; then
7503       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7504          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7505                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7506         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7507       fi
7508     fi
7509
7510     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7511        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7512
7513 cat >>confdefs.h <<\_ACEOF
7514 #define ENABLE_NLS 1
7515 _ACEOF
7516
7517     else
7518       USE_NLS=no
7519     fi
7520   fi
7521
7522   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7523 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7524   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7525 echo "${ECHO_T}$USE_NLS" >&6; }
7526   if test "$USE_NLS" = "yes"; then
7527     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7528 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7529     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7530       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7531         gt_source="external libintl"
7532       else
7533         gt_source="libc"
7534       fi
7535     else
7536       gt_source="included intl directory"
7537     fi
7538     { echo "$as_me:$LINENO: result: $gt_source" >&5
7539 echo "${ECHO_T}$gt_source" >&6; }
7540   fi
7541
7542   if test "$USE_NLS" = "yes"; then
7543
7544     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7545       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7546         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7547 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7548         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7549 echo "${ECHO_T}$LIBINTL" >&6; }
7550
7551   for element in $INCINTL; do
7552     haveit=
7553     for x in $CPPFLAGS; do
7554
7555   acl_save_prefix="$prefix"
7556   prefix="$acl_final_prefix"
7557   acl_save_exec_prefix="$exec_prefix"
7558   exec_prefix="$acl_final_exec_prefix"
7559   eval x=\"$x\"
7560   exec_prefix="$acl_save_exec_prefix"
7561   prefix="$acl_save_prefix"
7562
7563       if test "X$x" = "X$element"; then
7564         haveit=yes
7565         break
7566       fi
7567     done
7568     if test -z "$haveit"; then
7569       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7570     fi
7571   done
7572
7573       fi
7574
7575
7576 cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_GETTEXT 1
7578 _ACEOF
7579
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_DCGETTEXT 1
7583 _ACEOF
7584
7585     fi
7586
7587         POSUB=po
7588   fi
7589
7590
7591
7592     INTLLIBS="$LIBINTL"
7593
7594
7595
7596
7597
7598
7599 if test x${prefix} = xNONE ; then
7600    if test `eval echo ${datadir}` = NONE/share ; then
7601       datadir=/usr/share
7602    fi
7603 fi
7604
7605 # ------------------------------------------------------------------
7606 #  If the user has not set --prefix, we set our default to nothing.
7607 #  In this case, if the user has not set --sysconfdir, we set it
7608 #  to the package default of /etc/bacula.  If either --prefix or
7609 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7610 # ------------------------------------------------------------------
7611 if test x${prefix} = xNONE ; then
7612     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7613         sysconfdir=/etc/bacula
7614     fi
7615     prefix=
7616 fi
7617 sysconfdir=`eval echo ${sysconfdir}`
7618 datadir=`eval echo ${datadir}`
7619 localedir=`eval echo ${datadir}/locale`
7620 cat >>confdefs.h <<_ACEOF
7621 #define LOCALEDIR "$localedir"
7622 _ACEOF
7623
7624 cat >>confdefs.h <<_ACEOF
7625 #define SYSCONFDIR "$sysconfdir"
7626 _ACEOF
7627
7628
7629 # -------------------------------------------------------------------------
7630 #  If the user has not set --exec-prefix, we default to ${prefix}
7631 # -------------------------------------------------------------------------
7632 if test x${exec_prefix} = xNONE ; then
7633     exec_prefix=${prefix}
7634 fi
7635
7636 # ------------------------------------------------------------------
7637 # If the user has not set --sbindir, we set our default as /sbin
7638 # ------------------------------------------------------------------
7639 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7640     sbindir=${exec_prefix}/sbin
7641 fi
7642 sbindir=`eval echo ${sbindir}`
7643
7644
7645 # -------------------------------------------------------------------------
7646 #  If the user has not set --mandir, we default to /usr/share/man
7647 # -------------------------------------------------------------------------
7648 if test x$mandir = x'${prefix}/man' ; then
7649    mandir=/usr/share/man
7650 fi
7651
7652
7653 for ac_prog in msgfmt
7654 do
7655   # Extract the first word of "$ac_prog", so it can be a program name with args.
7656 set dummy $ac_prog; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_MSGFMT+set}" = set; then
7660   echo $ECHO_N "(cached) $ECHO_C" >&6
7661 else
7662   case $MSGFMT in
7663   [\\/]* | ?:[\\/]*)
7664   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7665   ;;
7666   *)
7667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7669 do
7670   IFS=$as_save_IFS
7671   test -z "$as_dir" && as_dir=.
7672   for ac_exec_ext in '' $ac_executable_extensions; do
7673   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7674     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7675     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676     break 2
7677   fi
7678 done
7679 done
7680 IFS=$as_save_IFS
7681
7682   ;;
7683 esac
7684 fi
7685 MSGFMT=$ac_cv_path_MSGFMT
7686 if test -n "$MSGFMT"; then
7687   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7688 echo "${ECHO_T}$MSGFMT" >&6; }
7689 else
7690   { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7692 fi
7693
7694
7695   test -n "$MSGFMT" && break
7696 done
7697 test -n "$MSGFMT" || MSGFMT="no"
7698
7699 if test "$MSGFMT" = "no"
7700 then
7701    echo 'msgfmt program not found, disabling NLS !'
7702    USE_NLS=no
7703    USE_INCLUDED_LIBINTL=no
7704 #else
7705
7706     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7707 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7708 if test "${ac_cv_gnu_library_2+set}" = set; then
7709   echo $ECHO_N "(cached) $ECHO_C" >&6
7710 else
7711   cat >conftest.$ac_ext <<_ACEOF
7712 /* confdefs.h.  */
7713 _ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h.  */
7717
7718 #include <features.h>
7719 #ifdef __GNU_LIBRARY__
7720  #if (__GLIBC__ >= 2)
7721   Lucky GNU user
7722  #endif
7723 #endif
7724
7725 _ACEOF
7726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7727   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7728   ac_cv_gnu_library_2=yes
7729 else
7730   ac_cv_gnu_library_2=no
7731 fi
7732 rm -f conftest*
7733
7734
7735
7736 fi
7737 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7738 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7739
7740     GLIBC2="$ac_cv_gnu_library_2"
7741
7742
7743
7744         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7745 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7746 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7747   echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749   ac_check_lib_save_LIBS=$LIBS
7750 LIBS="-lcposix  $LIBS"
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h.  */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h.  */
7757
7758 /* Override any GCC internal prototype to avoid an error.
7759    Use char because int might match the return type of a GCC
7760    builtin and then its argument prototype would still apply.  */
7761 #ifdef __cplusplus
7762 extern "C"
7763 #endif
7764 char strerror ();
7765 int
7766 main ()
7767 {
7768 return strerror ();
7769   ;
7770   return 0;
7771 }
7772 _ACEOF
7773 rm -f conftest.$ac_objext conftest$ac_exeext
7774 if { (ac_try="$ac_link"
7775 case "(($ac_try" in
7776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777   *) ac_try_echo=$ac_try;;
7778 esac
7779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7780   (eval "$ac_link") 2>conftest.er1
7781   ac_status=$?
7782   grep -v '^ *+' conftest.er1 >conftest.err
7783   rm -f conftest.er1
7784   cat conftest.err >&5
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } && {
7787          test -z "$ac_c_werror_flag" ||
7788          test ! -s conftest.err
7789        } && test -s conftest$ac_exeext &&
7790        $as_test_x conftest$ac_exeext; then
7791   ac_cv_lib_cposix_strerror=yes
7792 else
7793   echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7795
7796         ac_cv_lib_cposix_strerror=no
7797 fi
7798
7799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7800       conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7802 fi
7803 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7804 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7805 if test $ac_cv_lib_cposix_strerror = yes; then
7806   LIBS="$LIBS -lcposix"
7807 fi
7808
7809
7810
7811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7813 if test "${ac_cv_header_stdc+set}" = set; then
7814   echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816   cat >conftest.$ac_ext <<_ACEOF
7817 /* confdefs.h.  */
7818 _ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h.  */
7822 #include <stdlib.h>
7823 #include <stdarg.h>
7824 #include <string.h>
7825 #include <float.h>
7826
7827 int
7828 main ()
7829 {
7830
7831   ;
7832   return 0;
7833 }
7834 _ACEOF
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7837 case "(($ac_try" in
7838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839   *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842   (eval "$ac_compile") 2>conftest.er1
7843   ac_status=$?
7844   grep -v '^ *+' conftest.er1 >conftest.err
7845   rm -f conftest.er1
7846   cat conftest.err >&5
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); } && {
7849          test -z "$ac_c_werror_flag" ||
7850          test ! -s conftest.err
7851        } && test -s conftest.$ac_objext; then
7852   ac_cv_header_stdc=yes
7853 else
7854   echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7856
7857         ac_cv_header_stdc=no
7858 fi
7859
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861
7862 if test $ac_cv_header_stdc = yes; then
7863   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7864   cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h.  */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h.  */
7870 #include <string.h>
7871
7872 _ACEOF
7873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7874   $EGREP "memchr" >/dev/null 2>&1; then
7875   :
7876 else
7877   ac_cv_header_stdc=no
7878 fi
7879 rm -f conftest*
7880
7881 fi
7882
7883 if test $ac_cv_header_stdc = yes; then
7884   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <stdlib.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895   $EGREP "free" >/dev/null 2>&1; then
7896   :
7897 else
7898   ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906   if test "$cross_compiling" = yes; then
7907   :
7908 else
7909   cat >conftest.$ac_ext <<_ACEOF
7910 /* confdefs.h.  */
7911 _ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h.  */
7915 #include <ctype.h>
7916 #include <stdlib.h>
7917 #if ((' ' & 0x0FF) == 0x020)
7918 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7919 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7920 #else
7921 # define ISLOWER(c) \
7922                    (('a' <= (c) && (c) <= 'i') \
7923                      || ('j' <= (c) && (c) <= 'r') \
7924                      || ('s' <= (c) && (c) <= 'z'))
7925 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7926 #endif
7927
7928 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7929 int
7930 main ()
7931 {
7932   int i;
7933   for (i = 0; i < 256; i++)
7934     if (XOR (islower (i), ISLOWER (i))
7935         || toupper (i) != TOUPPER (i))
7936       return 2;
7937   return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest$ac_exeext
7941 if { (ac_try="$ac_link"
7942 case "(($ac_try" in
7943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944   *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947   (eval "$ac_link") 2>&5
7948   ac_status=$?
7949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7951   { (case "(($ac_try" in
7952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7953   *) ac_try_echo=$ac_try;;
7954 esac
7955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7956   (eval "$ac_try") 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; }; then
7960   :
7961 else
7962   echo "$as_me: program exited with status $ac_status" >&5
7963 echo "$as_me: failed program was:" >&5
7964 sed 's/^/| /' conftest.$ac_ext >&5
7965
7966 ( exit $ac_status )
7967 ac_cv_header_stdc=no
7968 fi
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7970 fi
7971
7972
7973 fi
7974 fi
7975 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7976 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7977 if test $ac_cv_header_stdc = yes; then
7978
7979 cat >>confdefs.h <<\_ACEOF
7980 #define STDC_HEADERS 1
7981 _ACEOF
7982
7983 fi
7984
7985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7987 if test "${ac_cv_c_const+set}" = set; then
7988   echo $ECHO_N "(cached) $ECHO_C" >&6
7989 else
7990   cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h.  */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h.  */
7996
7997 int
7998 main ()
7999 {
8000 /* FIXME: Include the comments suggested by Paul. */
8001 #ifndef __cplusplus
8002   /* Ultrix mips cc rejects this.  */
8003   typedef int charset[2];
8004   const charset cs;
8005   /* SunOS 4.1.1 cc rejects this.  */
8006   char const *const *pcpcc;
8007   char **ppc;
8008   /* NEC SVR4.0.2 mips cc rejects this.  */
8009   struct point {int x, y;};
8010   static struct point const zero = {0,0};
8011   /* AIX XL C 1.02.0.0 rejects this.
8012      It does not let you subtract one const X* pointer from another in
8013      an arm of an if-expression whose if-part is not a constant
8014      expression */
8015   const char *g = "string";
8016   pcpcc = &g + (g ? g-g : 0);
8017   /* HPUX 7.0 cc rejects these. */
8018   ++pcpcc;
8019   ppc = (char**) pcpcc;
8020   pcpcc = (char const *const *) ppc;
8021   { /* SCO 3.2v4 cc rejects this.  */
8022     char *t;
8023     char const *s = 0 ? (char *) 0 : (char const *) 0;
8024
8025     *t++ = 0;
8026     if (s) return 0;
8027   }
8028   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8029     int x[] = {25, 17};
8030     const int *foo = &x[0];
8031     ++foo;
8032   }
8033   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8034     typedef const int *iptr;
8035     iptr p = 0;
8036     ++p;
8037   }
8038   { /* AIX XL C 1.02.0.0 rejects this saying
8039        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8040     struct s { int j; const int *ap[3]; };
8041     struct s *b; b->j = 5;
8042   }
8043   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8044     const int foo = 10;
8045     if (!foo) return 0;
8046   }
8047   return !cs[0] && !zero.x;
8048 #endif
8049
8050   ;
8051   return 0;
8052 }
8053 _ACEOF
8054 rm -f conftest.$ac_objext
8055 if { (ac_try="$ac_compile"
8056 case "(($ac_try" in
8057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8058   *) ac_try_echo=$ac_try;;
8059 esac
8060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8061   (eval "$ac_compile") 2>conftest.er1
8062   ac_status=$?
8063   grep -v '^ *+' conftest.er1 >conftest.err
8064   rm -f conftest.er1
8065   cat conftest.err >&5
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); } && {
8068          test -z "$ac_c_werror_flag" ||
8069          test ! -s conftest.err
8070        } && test -s conftest.$ac_objext; then
8071   ac_cv_c_const=yes
8072 else
8073   echo "$as_me: failed program was:" >&5
8074 sed 's/^/| /' conftest.$ac_ext >&5
8075
8076         ac_cv_c_const=no
8077 fi
8078
8079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 fi
8081 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8082 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8083 if test $ac_cv_c_const = no; then
8084
8085 cat >>confdefs.h <<\_ACEOF
8086 #define const
8087 _ACEOF
8088
8089 fi
8090
8091
8092   { echo "$as_me:$LINENO: checking for signed" >&5
8093 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8094 if test "${bh_cv_c_signed+set}" = set; then
8095   echo $ECHO_N "(cached) $ECHO_C" >&6
8096 else
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103
8104 int
8105 main ()
8106 {
8107 signed char x;
8108   ;
8109   return 0;
8110 }
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8114 case "(($ac_try" in
8115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116   *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119   (eval "$ac_compile") 2>conftest.er1
8120   ac_status=$?
8121   grep -v '^ *+' conftest.er1 >conftest.err
8122   rm -f conftest.er1
8123   cat conftest.err >&5
8124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125   (exit $ac_status); } && {
8126          test -z "$ac_c_werror_flag" ||
8127          test ! -s conftest.err
8128        } && test -s conftest.$ac_objext; then
8129   bh_cv_c_signed=yes
8130 else
8131   echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8133
8134         bh_cv_c_signed=no
8135 fi
8136
8137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 fi
8139 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8140 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8141   if test $bh_cv_c_signed = no; then
8142
8143 cat >>confdefs.h <<\_ACEOF
8144 #define signed
8145 _ACEOF
8146
8147   fi
8148
8149 { echo "$as_me:$LINENO: checking for inline" >&5
8150 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8151 if test "${ac_cv_c_inline+set}" = set; then
8152   echo $ECHO_N "(cached) $ECHO_C" >&6
8153 else
8154   ac_cv_c_inline=no
8155 for ac_kw in inline __inline__ __inline; do
8156   cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h.  */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h.  */
8162 #ifndef __cplusplus
8163 typedef int foo_t;
8164 static $ac_kw foo_t static_foo () {return 0; }
8165 $ac_kw foo_t foo () {return 0; }
8166 #endif
8167
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8171 case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176   (eval "$ac_compile") 2>conftest.er1
8177   ac_status=$?
8178   grep -v '^ *+' conftest.er1 >conftest.err
8179   rm -f conftest.er1
8180   cat conftest.err >&5
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); } && {
8183          test -z "$ac_c_werror_flag" ||
8184          test ! -s conftest.err
8185        } && test -s conftest.$ac_objext; then
8186   ac_cv_c_inline=$ac_kw
8187 else
8188   echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8190
8191
8192 fi
8193
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195   test "$ac_cv_c_inline" != no && break
8196 done
8197
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8200 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8201
8202
8203 case $ac_cv_c_inline in
8204   inline | yes) ;;
8205   *)
8206     case $ac_cv_c_inline in
8207       no) ac_val=;;
8208       *) ac_val=$ac_cv_c_inline;;
8209     esac
8210     cat >>confdefs.h <<_ACEOF
8211 #ifndef __cplusplus
8212 #define inline $ac_val
8213 #endif
8214 _ACEOF
8215     ;;
8216 esac
8217
8218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8229                   inttypes.h stdint.h unistd.h
8230 do
8231 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h.  */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h.  */
8243 $ac_includes_default
8244
8245 #include <$ac_header>
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251   *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254   (eval "$ac_compile") 2>conftest.er1
8255   ac_status=$?
8256   grep -v '^ *+' conftest.er1 >conftest.err
8257   rm -f conftest.er1
8258   cat conftest.err >&5
8259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260   (exit $ac_status); } && {
8261          test -z "$ac_c_werror_flag" ||
8262          test ! -s conftest.err
8263        } && test -s conftest.$ac_objext; then
8264   eval "$as_ac_Header=yes"
8265 else
8266   echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8268
8269         eval "$as_ac_Header=no"
8270 fi
8271
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 fi
8274 ac_res=`eval echo '${'$as_ac_Header'}'`
8275                { echo "$as_me:$LINENO: result: $ac_res" >&5
8276 echo "${ECHO_T}$ac_res" >&6; }
8277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8278   cat >>confdefs.h <<_ACEOF
8279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8280 _ACEOF
8281
8282 fi
8283
8284 done
8285
8286
8287 { echo "$as_me:$LINENO: checking for off_t" >&5
8288 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8289 if test "${ac_cv_type_off_t+set}" = set; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 $ac_includes_default
8299 typedef off_t ac__type_new_;
8300 int
8301 main ()
8302 {
8303 if ((ac__type_new_ *) 0)
8304   return 0;
8305 if (sizeof (ac__type_new_))
8306   return 0;
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext
8312 if { (ac_try="$ac_compile"
8313 case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_compile") 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } && {
8325          test -z "$ac_c_werror_flag" ||
8326          test ! -s conftest.err
8327        } && test -s conftest.$ac_objext; then
8328   ac_cv_type_off_t=yes
8329 else
8330   echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8332
8333         ac_cv_type_off_t=no
8334 fi
8335
8336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8339 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8340 if test $ac_cv_type_off_t = yes; then
8341   :
8342 else
8343
8344 cat >>confdefs.h <<_ACEOF
8345 #define off_t long int
8346 _ACEOF
8347
8348 fi
8349
8350 { echo "$as_me:$LINENO: checking for size_t" >&5
8351 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8352 if test "${ac_cv_type_size_t+set}" = set; then
8353   echo $ECHO_N "(cached) $ECHO_C" >&6
8354 else
8355   cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 $ac_includes_default
8362 typedef size_t ac__type_new_;
8363 int
8364 main ()
8365 {
8366 if ((ac__type_new_ *) 0)
8367   return 0;
8368 if (sizeof (ac__type_new_))
8369   return 0;
8370   ;
8371   return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8376 case "(($ac_try" in
8377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378   *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381   (eval "$ac_compile") 2>conftest.er1
8382   ac_status=$?
8383   grep -v '^ *+' conftest.er1 >conftest.err
8384   rm -f conftest.er1
8385   cat conftest.err >&5
8386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387   (exit $ac_status); } && {
8388          test -z "$ac_c_werror_flag" ||
8389          test ! -s conftest.err
8390        } && test -s conftest.$ac_objext; then
8391   ac_cv_type_size_t=yes
8392 else
8393   echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396         ac_cv_type_size_t=no
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8402 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8403 if test $ac_cv_type_size_t = yes; then
8404   :
8405 else
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define size_t unsigned int
8409 _ACEOF
8410
8411 fi
8412
8413
8414   { echo "$as_me:$LINENO: checking for long long" >&5
8415 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8416 if test "${ac_cv_type_long_long+set}" = set; then
8417   echo $ECHO_N "(cached) $ECHO_C" >&6
8418 else
8419   cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 long long ll = 1LL; int i = 63;
8426 int
8427 main ()
8428 {
8429 long long llmax = (long long) -1;
8430      return ll << i | ll >> i | llmax / ll | llmax % ll;
8431   ;
8432   return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext conftest$ac_exeext
8436 if { (ac_try="$ac_link"
8437 case "(($ac_try" in
8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439   *) ac_try_echo=$ac_try;;
8440 esac
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442   (eval "$ac_link") 2>conftest.er1
8443   ac_status=$?
8444   grep -v '^ *+' conftest.er1 >conftest.err
8445   rm -f conftest.er1
8446   cat conftest.err >&5
8447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448   (exit $ac_status); } && {
8449          test -z "$ac_c_werror_flag" ||
8450          test ! -s conftest.err
8451        } && test -s conftest$ac_exeext &&
8452        $as_test_x conftest$ac_exeext; then
8453   ac_cv_type_long_long=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458         ac_cv_type_long_long=no
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8462       conftest$ac_exeext conftest.$ac_ext
8463 fi
8464 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8465 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8466   if test $ac_cv_type_long_long = yes; then
8467
8468 cat >>confdefs.h <<\_ACEOF
8469 #define HAVE_LONG_LONG 1
8470 _ACEOF
8471
8472   fi
8473
8474
8475   { echo "$as_me:$LINENO: checking for long double" >&5
8476 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8477 if test "${gt_cv_c_long_double+set}" = set; then
8478   echo $ECHO_N "(cached) $ECHO_C" >&6
8479 else
8480   if test "$GCC" = yes; then
8481        gt_cv_c_long_double=yes
8482      else
8483        cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489
8490          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8491          long double foo = 0.0;
8492          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8493          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8494
8495 int
8496 main ()
8497 {
8498
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 rm -f conftest.$ac_objext
8504 if { (ac_try="$ac_compile"
8505 case "(($ac_try" in
8506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8507   *) ac_try_echo=$ac_try;;
8508 esac
8509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8510   (eval "$ac_compile") 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } && {
8517          test -z "$ac_c_werror_flag" ||
8518          test ! -s conftest.err
8519        } && test -s conftest.$ac_objext; then
8520   gt_cv_c_long_double=yes
8521 else
8522   echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.$ac_ext >&5
8524
8525         gt_cv_c_long_double=no
8526 fi
8527
8528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8529      fi
8530 fi
8531 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8532 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8533   if test $gt_cv_c_long_double = yes; then
8534
8535 cat >>confdefs.h <<\_ACEOF
8536 #define HAVE_LONG_DOUBLE 1
8537 _ACEOF
8538
8539   fi
8540
8541
8542   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8543 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8544 if test "${gt_cv_c_wchar_t+set}" = set; then
8545   echo $ECHO_N "(cached) $ECHO_C" >&6
8546 else
8547   cat >conftest.$ac_ext <<_ACEOF
8548 /* confdefs.h.  */
8549 _ACEOF
8550 cat confdefs.h >>conftest.$ac_ext
8551 cat >>conftest.$ac_ext <<_ACEOF
8552 /* end confdefs.h.  */
8553 #include <stddef.h>
8554        wchar_t foo = (wchar_t)'\0';
8555 int
8556 main ()
8557 {
8558
8559   ;
8560   return 0;
8561 }
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567   *) ac_try_echo=$ac_try;;
8568 esac
8569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570   (eval "$ac_compile") 2>conftest.er1
8571   ac_status=$?
8572   grep -v '^ *+' conftest.er1 >conftest.err
8573   rm -f conftest.er1
8574   cat conftest.err >&5
8575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576   (exit $ac_status); } && {
8577          test -z "$ac_c_werror_flag" ||
8578          test ! -s conftest.err
8579        } && test -s conftest.$ac_objext; then
8580   gt_cv_c_wchar_t=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585         gt_cv_c_wchar_t=no
8586 fi
8587
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8591 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8592   if test $gt_cv_c_wchar_t = yes; then
8593
8594 cat >>confdefs.h <<\_ACEOF
8595 #define HAVE_WCHAR_T 1
8596 _ACEOF
8597
8598   fi
8599
8600
8601   { echo "$as_me:$LINENO: checking for wint_t" >&5
8602 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8603 if test "${gt_cv_c_wint_t+set}" = set; then
8604   echo $ECHO_N "(cached) $ECHO_C" >&6
8605 else
8606   cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612 #include <wchar.h>
8613        wint_t foo = (wchar_t)'\0';
8614 int
8615 main ()
8616 {
8617
8618   ;
8619   return 0;
8620 }
8621 _ACEOF
8622 rm -f conftest.$ac_objext
8623 if { (ac_try="$ac_compile"
8624 case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_compile") 2>conftest.er1
8630   ac_status=$?
8631   grep -v '^ *+' conftest.er1 >conftest.err
8632   rm -f conftest.er1
8633   cat conftest.err >&5
8634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635   (exit $ac_status); } && {
8636          test -z "$ac_c_werror_flag" ||
8637          test ! -s conftest.err
8638        } && test -s conftest.$ac_objext; then
8639   gt_cv_c_wint_t=yes
8640 else
8641   echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8643
8644         gt_cv_c_wint_t=no
8645 fi
8646
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8650 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8651   if test $gt_cv_c_wint_t = yes; then
8652
8653 cat >>confdefs.h <<\_ACEOF
8654 #define HAVE_WINT_T 1
8655 _ACEOF
8656
8657   fi
8658
8659
8660   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8661 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8662 if test "${gl_cv_header_inttypes_h+set}" = set; then
8663   echo $ECHO_N "(cached) $ECHO_C" >&6
8664 else
8665   cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 #include <sys/types.h>
8672 #include <inttypes.h>
8673 int
8674 main ()
8675 {
8676 uintmax_t i = (uintmax_t) -1;
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685   *) ac_try_echo=$ac_try;;
8686 esac
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688   (eval "$ac_compile") 2>conftest.er1
8689   ac_status=$?
8690   grep -v '^ *+' conftest.er1 >conftest.err
8691   rm -f conftest.er1
8692   cat conftest.err >&5
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); } && {
8695          test -z "$ac_c_werror_flag" ||
8696          test ! -s conftest.err
8697        } && test -s conftest.$ac_objext; then
8698   gl_cv_header_inttypes_h=yes
8699 else
8700   echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703         gl_cv_header_inttypes_h=no
8704 fi
8705
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8709 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8710   if test $gl_cv_header_inttypes_h = yes; then
8711
8712 cat >>confdefs.h <<_ACEOF
8713 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8714 _ACEOF
8715
8716   fi
8717
8718
8719   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8720 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8721 if test "${gl_cv_header_stdint_h+set}" = set; then
8722   echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724   cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730 #include <sys/types.h>
8731 #include <stdint.h>
8732 int
8733 main ()
8734 {
8735 uintmax_t i = (uintmax_t) -1;
8736   ;
8737   return 0;
8738 }
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (ac_try="$ac_compile"
8742 case "(($ac_try" in
8743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8744   *) ac_try_echo=$ac_try;;
8745 esac
8746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8747   (eval "$ac_compile") 2>conftest.er1
8748   ac_status=$?
8749   grep -v '^ *+' conftest.er1 >conftest.err
8750   rm -f conftest.er1
8751   cat conftest.err >&5
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); } && {
8754          test -z "$ac_c_werror_flag" ||
8755          test ! -s conftest.err
8756        } && test -s conftest.$ac_objext; then
8757   gl_cv_header_stdint_h=yes
8758 else
8759   echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762         gl_cv_header_stdint_h=no
8763 fi
8764
8765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 fi
8767 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8768 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8769   if test $gl_cv_header_stdint_h = yes; then
8770
8771 cat >>confdefs.h <<_ACEOF
8772 #define HAVE_STDINT_H_WITH_UINTMAX 1
8773 _ACEOF
8774
8775   fi
8776
8777
8778
8779
8780   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8781 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8782 if test "${gt_cv_c_intmax_t+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h.  */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h.  */
8791
8792 #include <stddef.h>
8793 #include <stdlib.h>
8794 #if HAVE_STDINT_H_WITH_UINTMAX
8795 #include <stdint.h>
8796 #endif
8797 #if HAVE_INTTYPES_H_WITH_UINTMAX
8798 #include <inttypes.h>
8799 #endif
8800
8801 int
8802 main ()
8803 {
8804 intmax_t x = -1;
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813   *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816   (eval "$ac_compile") 2>conftest.er1
8817   ac_status=$?
8818   grep -v '^ *+' conftest.er1 >conftest.err
8819   rm -f conftest.er1
8820   cat conftest.err >&5
8821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822   (exit $ac_status); } && {
8823          test -z "$ac_c_werror_flag" ||
8824          test ! -s conftest.err
8825        } && test -s conftest.$ac_objext; then
8826   gt_cv_c_intmax_t=yes
8827 else
8828   echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8830
8831         gt_cv_c_intmax_t=no
8832 fi
8833
8834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8835 fi
8836 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8837 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8838   if test $gt_cv_c_intmax_t = yes; then
8839
8840 cat >>confdefs.h <<\_ACEOF
8841 #define HAVE_INTMAX_T 1
8842 _ACEOF
8843
8844   fi
8845
8846
8847
8848   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8849 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8850 if test "${gt_cv_func_printf_posix+set}" = set; then
8851   echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853
8854       if test "$cross_compiling" = yes; then
8855
8856         cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h.  */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h.  */
8862
8863 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8864   notposix
8865 #endif
8866
8867 _ACEOF
8868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8869   $EGREP "notposix" >/dev/null 2>&1; then
8870   gt_cv_func_printf_posix="guessing no"
8871 else
8872   gt_cv_func_printf_posix="guessing yes"
8873 fi
8874 rm -f conftest*
8875
8876
8877 else
8878   cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h.  */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h.  */
8884
8885 #include <stdio.h>
8886 #include <string.h>
8887 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8888    dollar expansion (possibly an autoconf bug).  */
8889 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8890 static char buf[100];
8891 int main ()
8892 {
8893   sprintf (buf, format, 33, 55);
8894   return (strcmp (buf, "55 33") != 0);
8895 }
8896 _ACEOF
8897 rm -f conftest$ac_exeext
8898 if { (ac_try="$ac_link"
8899 case "(($ac_try" in
8900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901   *) ac_try_echo=$ac_try;;
8902 esac
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904   (eval "$ac_link") 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8908   { (case "(($ac_try" in
8909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8910   *) ac_try_echo=$ac_try;;
8911 esac
8912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8913   (eval "$ac_try") 2>&5
8914   ac_status=$?
8915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916   (exit $ac_status); }; }; then
8917   gt_cv_func_printf_posix=yes
8918 else
8919   echo "$as_me: program exited with status $ac_status" >&5
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 ( exit $ac_status )
8924 gt_cv_func_printf_posix=no
8925 fi
8926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8927 fi
8928
8929
8930
8931 fi
8932 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8933 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8934   case $gt_cv_func_printf_posix in
8935     *yes)
8936
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_POSIX_PRINTF 1
8939 _ACEOF
8940
8941       ;;
8942   esac
8943
8944 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8945 # for constant arguments.  Useless!
8946 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8947 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8948 if test "${ac_cv_working_alloca_h+set}" = set; then
8949   echo $ECHO_N "(cached) $ECHO_C" >&6
8950 else
8951   cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 #include <alloca.h>
8958 int
8959 main ()
8960 {
8961 char *p = (char *) alloca (2 * sizeof (int));
8962                           if (p) return 0;
8963   ;
8964   return 0;
8965 }
8966 _ACEOF
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (ac_try="$ac_link"
8969 case "(($ac_try" in
8970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8971   *) ac_try_echo=$ac_try;;
8972 esac
8973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8974   (eval "$ac_link") 2>conftest.er1
8975   ac_status=$?
8976   grep -v '^ *+' conftest.er1 >conftest.err
8977   rm -f conftest.er1
8978   cat conftest.err >&5
8979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980   (exit $ac_status); } && {
8981          test -z "$ac_c_werror_flag" ||
8982          test ! -s conftest.err
8983        } && test -s conftest$ac_exeext &&
8984        $as_test_x conftest$ac_exeext; then
8985   ac_cv_working_alloca_h=yes
8986 else
8987   echo "$as_me: failed program was:" >&5
8988 sed 's/^/| /' conftest.$ac_ext >&5
8989
8990         ac_cv_working_alloca_h=no
8991 fi
8992
8993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8994       conftest$ac_exeext conftest.$ac_ext
8995 fi
8996 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8997 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8998 if test $ac_cv_working_alloca_h = yes; then
8999
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_ALLOCA_H 1
9002 _ACEOF
9003
9004 fi
9005
9006 { echo "$as_me:$LINENO: checking for alloca" >&5
9007 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9008 if test "${ac_cv_func_alloca_works+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011   cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017 #ifdef __GNUC__
9018 # define alloca __builtin_alloca
9019 #else
9020 # ifdef _MSC_VER
9021 #  include <malloc.h>
9022 #  define alloca _alloca
9023 # else
9024 #  ifdef HAVE_ALLOCA_H
9025 #   include <alloca.h>
9026 #  else
9027 #   ifdef _AIX
9028  #pragma alloca
9029 #   else
9030 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9031 char *alloca ();
9032 #    endif
9033 #   endif
9034 #  endif
9035 # endif
9036 #endif
9037
9038 int
9039 main ()
9040 {
9041 char *p = (char *) alloca (1);
9042                                     if (p) return 0;
9043   ;
9044   return 0;
9045 }
9046 _ACEOF
9047 rm -f conftest.$ac_objext conftest$ac_exeext
9048 if { (ac_try="$ac_link"
9049 case "(($ac_try" in
9050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051   *) ac_try_echo=$ac_try;;
9052 esac
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054   (eval "$ac_link") 2>conftest.er1
9055   ac_status=$?
9056   grep -v '^ *+' conftest.er1 >conftest.err
9057   rm -f conftest.er1
9058   cat conftest.err >&5
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); } && {
9061          test -z "$ac_c_werror_flag" ||
9062          test ! -s conftest.err
9063        } && test -s conftest$ac_exeext &&
9064        $as_test_x conftest$ac_exeext; then
9065   ac_cv_func_alloca_works=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070         ac_cv_func_alloca_works=no
9071 fi
9072
9073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9074       conftest$ac_exeext conftest.$ac_ext
9075 fi
9076 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9077 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9078
9079 if test $ac_cv_func_alloca_works = yes; then
9080
9081 cat >>confdefs.h <<\_ACEOF
9082 #define HAVE_ALLOCA 1
9083 _ACEOF
9084
9085 else
9086   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9087 # that cause trouble.  Some versions do not even contain alloca or
9088 # contain a buggy version.  If you still want to use their alloca,
9089 # use ar to extract alloca.o from them instead of compiling alloca.c.
9090
9091 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9092
9093 cat >>confdefs.h <<\_ACEOF
9094 #define C_ALLOCA 1
9095 _ACEOF
9096
9097
9098 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9099 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9100 if test "${ac_cv_os_cray+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109 #if defined CRAY && ! defined CRAY2
9110 webecray
9111 #else
9112 wenotbecray
9113 #endif
9114
9115 _ACEOF
9116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9117   $EGREP "webecray" >/dev/null 2>&1; then
9118   ac_cv_os_cray=yes
9119 else
9120   ac_cv_os_cray=no
9121 fi
9122 rm -f conftest*
9123
9124 fi
9125 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9126 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9127 if test $ac_cv_os_cray = yes; then
9128   for ac_func in _getb67 GETB67 getb67; do
9129     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9133   echo $ECHO_N "(cached) $ECHO_C" >&6
9134 else
9135   cat >conftest.$ac_ext <<_ACEOF
9136 /* confdefs.h.  */
9137 _ACEOF
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h.  */
9141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9143 #define $ac_func innocuous_$ac_func
9144
9145 /* System header to define __stub macros and hopefully few prototypes,
9146     which can conflict with char $ac_func (); below.
9147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148     <limits.h> exists even on freestanding compilers.  */
9149
9150 #ifdef __STDC__
9151 # include <limits.h>
9152 #else
9153 # include <assert.h>
9154 #endif
9155
9156 #undef $ac_func
9157
9158 /* Override any GCC internal prototype to avoid an error.
9159    Use char because int might match the return type of a GCC
9160    builtin and then its argument prototype would still apply.  */
9161 #ifdef __cplusplus
9162 extern "C"
9163 #endif
9164 char $ac_func ();
9165 /* The GNU C library defines this for functions which it implements
9166     to always fail with ENOSYS.  Some functions are actually named
9167     something starting with __ and the normal name is an alias.  */
9168 #if defined __stub_$ac_func || defined __stub___$ac_func
9169 choke me
9170 #endif
9171
9172 int
9173 main ()
9174 {
9175 return $ac_func ();
9176   ;
9177   return 0;
9178 }
9179 _ACEOF
9180 rm -f conftest.$ac_objext conftest$ac_exeext
9181 if { (ac_try="$ac_link"
9182 case "(($ac_try" in
9183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184   *) ac_try_echo=$ac_try;;
9185 esac
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187   (eval "$ac_link") 2>conftest.er1
9188   ac_status=$?
9189   grep -v '^ *+' conftest.er1 >conftest.err
9190   rm -f conftest.er1
9191   cat conftest.err >&5
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); } && {
9194          test -z "$ac_c_werror_flag" ||
9195          test ! -s conftest.err
9196        } && test -s conftest$ac_exeext &&
9197        $as_test_x conftest$ac_exeext; then
9198   eval "$as_ac_var=yes"
9199 else
9200   echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9202
9203         eval "$as_ac_var=no"
9204 fi
9205
9206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9207       conftest$ac_exeext conftest.$ac_ext
9208 fi
9209 ac_res=`eval echo '${'$as_ac_var'}'`
9210                { echo "$as_me:$LINENO: result: $ac_res" >&5
9211 echo "${ECHO_T}$ac_res" >&6; }
9212 if test `eval echo '${'$as_ac_var'}'` = yes; then
9213
9214 cat >>confdefs.h <<_ACEOF
9215 #define CRAY_STACKSEG_END $ac_func
9216 _ACEOF
9217
9218     break
9219 fi
9220
9221   done
9222 fi
9223
9224 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9225 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9226 if test "${ac_cv_c_stack_direction+set}" = set; then
9227   echo $ECHO_N "(cached) $ECHO_C" >&6
9228 else
9229   if test "$cross_compiling" = yes; then
9230   ac_cv_c_stack_direction=0
9231 else
9232   cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h.  */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h.  */
9238 $ac_includes_default
9239 int
9240 find_stack_direction ()
9241 {
9242   static char *addr = 0;
9243   auto char dummy;
9244   if (addr == 0)
9245     {
9246       addr = &dummy;
9247       return find_stack_direction ();
9248     }
9249   else
9250     return (&dummy > addr) ? 1 : -1;
9251 }
9252
9253 int
9254 main ()
9255 {
9256   return find_stack_direction () < 0;
9257 }
9258 _ACEOF
9259 rm -f conftest$ac_exeext
9260 if { (ac_try="$ac_link"
9261 case "(($ac_try" in
9262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263   *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266   (eval "$ac_link") 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9270   { (case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9275   (eval "$ac_try") 2>&5
9276   ac_status=$?
9277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278   (exit $ac_status); }; }; then
9279   ac_cv_c_stack_direction=1
9280 else
9281   echo "$as_me: program exited with status $ac_status" >&5
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285 ( exit $ac_status )
9286 ac_cv_c_stack_direction=-1
9287 fi
9288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9289 fi
9290
9291
9292 fi
9293 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9294 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9295
9296 cat >>confdefs.h <<_ACEOF
9297 #define STACK_DIRECTION $ac_cv_c_stack_direction
9298 _ACEOF
9299
9300
9301 fi
9302
9303
9304
9305 for ac_header in stdlib.h unistd.h
9306 do
9307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9309   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9312   echo $ECHO_N "(cached) $ECHO_C" >&6
9313 fi
9314 ac_res=`eval echo '${'$as_ac_Header'}'`
9315                { echo "$as_me:$LINENO: result: $ac_res" >&5
9316 echo "${ECHO_T}$ac_res" >&6; }
9317 else
9318   # Is the header compilable?
9319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327 $ac_includes_default
9328 #include <$ac_header>
9329 _ACEOF
9330 rm -f conftest.$ac_objext
9331 if { (ac_try="$ac_compile"
9332 case "(($ac_try" in
9333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9334   *) ac_try_echo=$ac_try;;
9335 esac
9336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9337   (eval "$ac_compile") 2>conftest.er1
9338   ac_status=$?
9339   grep -v '^ *+' conftest.er1 >conftest.err
9340   rm -f conftest.er1
9341   cat conftest.err >&5
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } && {
9344          test -z "$ac_c_werror_flag" ||
9345          test ! -s conftest.err
9346        } && test -s conftest.$ac_objext; then
9347   ac_header_compiler=yes
9348 else
9349   echo "$as_me: failed program was:" >&5
9350 sed 's/^/| /' conftest.$ac_ext >&5
9351
9352         ac_header_compiler=no
9353 fi
9354
9355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9357 echo "${ECHO_T}$ac_header_compiler" >&6; }
9358
9359 # Is the header present?
9360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9362 cat >conftest.$ac_ext <<_ACEOF
9363 /* confdefs.h.  */
9364 _ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h.  */
9368 #include <$ac_header>
9369 _ACEOF
9370 if { (ac_try="$ac_cpp conftest.$ac_ext"
9371 case "(($ac_try" in
9372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9373   *) ac_try_echo=$ac_try;;
9374 esac
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9377   ac_status=$?
9378   grep -v '^ *+' conftest.er1 >conftest.err
9379   rm -f conftest.er1
9380   cat conftest.err >&5
9381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382   (exit $ac_status); } >/dev/null && {
9383          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9384          test ! -s conftest.err
9385        }; then
9386   ac_header_preproc=yes
9387 else
9388   echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.$ac_ext >&5
9390
9391   ac_header_preproc=no
9392 fi
9393
9394 rm -f conftest.err conftest.$ac_ext
9395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9396 echo "${ECHO_T}$ac_header_preproc" >&6; }
9397
9398 # So?  What about this header?
9399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9400   yes:no: )
9401     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9405     ac_header_preproc=yes
9406     ;;
9407   no:yes:* )
9408     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9410     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9411 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9412     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9414     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9415 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9420
9421     ;;
9422 esac
9423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9426   echo $ECHO_N "(cached) $ECHO_C" >&6
9427 else
9428   eval "$as_ac_Header=\$ac_header_preproc"
9429 fi
9430 ac_res=`eval echo '${'$as_ac_Header'}'`
9431                { echo "$as_me:$LINENO: result: $ac_res" >&5
9432 echo "${ECHO_T}$ac_res" >&6; }
9433
9434 fi
9435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9436   cat >>confdefs.h <<_ACEOF
9437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9438 _ACEOF
9439
9440 fi
9441
9442 done
9443
9444
9445 for ac_func in getpagesize
9446 do
9447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9448 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9451   echo $ECHO_N "(cached) $ECHO_C" >&6
9452 else
9453   cat >conftest.$ac_ext <<_ACEOF
9454 /* confdefs.h.  */
9455 _ACEOF
9456 cat confdefs.h >>conftest.$ac_ext
9457 cat >>conftest.$ac_ext <<_ACEOF
9458 /* end confdefs.h.  */
9459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9461 #define $ac_func innocuous_$ac_func
9462
9463 /* System header to define __stub macros and hopefully few prototypes,
9464     which can conflict with char $ac_func (); below.
9465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9466     <limits.h> exists even on freestanding compilers.  */
9467
9468 #ifdef __STDC__
9469 # include <limits.h>
9470 #else
9471 # include <assert.h>
9472 #endif
9473
9474 #undef $ac_func
9475
9476 /* Override any GCC internal prototype to avoid an error.
9477    Use char because int might match the return type of a GCC
9478    builtin and then its argument prototype would still apply.  */
9479 #ifdef __cplusplus
9480 extern "C"
9481 #endif
9482 char $ac_func ();
9483 /* The GNU C library defines this for functions which it implements
9484     to always fail with ENOSYS.  Some functions are actually named
9485     something starting with __ and the normal name is an alias.  */
9486 #if defined __stub_$ac_func || defined __stub___$ac_func
9487 choke me
9488 #endif
9489
9490 int
9491 main ()
9492 {
9493 return $ac_func ();
9494   ;
9495   return 0;
9496 }
9497 _ACEOF
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9500 case "(($ac_try" in
9501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502   *) ac_try_echo=$ac_try;;
9503 esac
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505   (eval "$ac_link") 2>conftest.er1
9506   ac_status=$?
9507   grep -v '^ *+' conftest.er1 >conftest.err
9508   rm -f conftest.er1
9509   cat conftest.err >&5
9510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511   (exit $ac_status); } && {
9512          test -z "$ac_c_werror_flag" ||
9513          test ! -s conftest.err
9514        } && test -s conftest$ac_exeext &&
9515        $as_test_x conftest$ac_exeext; then
9516   eval "$as_ac_var=yes"
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521         eval "$as_ac_var=no"
9522 fi
9523
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525       conftest$ac_exeext conftest.$ac_ext
9526 fi
9527 ac_res=`eval echo '${'$as_ac_var'}'`
9528                { echo "$as_me:$LINENO: result: $ac_res" >&5
9529 echo "${ECHO_T}$ac_res" >&6; }
9530 if test `eval echo '${'$as_ac_var'}'` = yes; then
9531   cat >>confdefs.h <<_ACEOF
9532 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9533 _ACEOF
9534
9535 fi
9536 done
9537
9538 { echo "$as_me:$LINENO: checking for working mmap" >&5
9539 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9540 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9541   echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543   if test "$cross_compiling" = yes; then
9544   ac_cv_func_mmap_fixed_mapped=no
9545 else
9546   cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 $ac_includes_default
9553 /* malloc might have been renamed as rpl_malloc. */
9554 #undef malloc
9555
9556 /* Thanks to Mike Haertel and Jim Avera for this test.
9557    Here is a matrix of mmap possibilities:
9558         mmap private not fixed
9559         mmap private fixed at somewhere currently unmapped
9560         mmap private fixed at somewhere already mapped
9561         mmap shared not fixed
9562         mmap shared fixed at somewhere currently unmapped
9563         mmap shared fixed at somewhere already mapped
9564    For private mappings, we should verify that changes cannot be read()
9565    back from the file, nor mmap's back from the file at a different
9566    address.  (There have been systems where private was not correctly
9567    implemented like the infamous i386 svr4.0, and systems where the
9568    VM page cache was not coherent with the file system buffer cache
9569    like early versions of FreeBSD and possibly contemporary NetBSD.)
9570    For shared mappings, we should conversely verify that changes get
9571    propagated back to all the places they're supposed to be.
9572
9573    Grep wants private fixed already mapped.
9574    The main things grep needs to know about mmap are:
9575    * does it exist and is it safe to write into the mmap'd area
9576    * how to use it (BSD variants)  */
9577
9578 #include <fcntl.h>
9579 #include <sys/mman.h>
9580
9581 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9582 char *malloc ();
9583 #endif
9584
9585 /* This mess was copied from the GNU getpagesize.h.  */
9586 #ifndef HAVE_GETPAGESIZE
9587 /* Assume that all systems that can run configure have sys/param.h.  */
9588 # ifndef HAVE_SYS_PARAM_H
9589 #  define HAVE_SYS_PARAM_H 1
9590 # endif
9591
9592 # ifdef _SC_PAGESIZE
9593 #  define getpagesize() sysconf(_SC_PAGESIZE)
9594 # else /* no _SC_PAGESIZE */
9595 #  ifdef HAVE_SYS_PARAM_H
9596 #   include <sys/param.h>
9597 #   ifdef EXEC_PAGESIZE
9598 #    define getpagesize() EXEC_PAGESIZE
9599 #   else /* no EXEC_PAGESIZE */
9600 #    ifdef NBPG
9601 #     define getpagesize() NBPG * CLSIZE
9602 #     ifndef CLSIZE
9603 #      define CLSIZE 1
9604 #     endif /* no CLSIZE */
9605 #    else /* no NBPG */
9606 #     ifdef NBPC
9607 #      define getpagesize() NBPC
9608 #     else /* no NBPC */
9609 #      ifdef PAGESIZE
9610 #       define getpagesize() PAGESIZE
9611 #      endif /* PAGESIZE */
9612 #     endif /* no NBPC */
9613 #    endif /* no NBPG */
9614 #   endif /* no EXEC_PAGESIZE */
9615 #  else /* no HAVE_SYS_PARAM_H */
9616 #   define getpagesize() 8192   /* punt totally */
9617 #  endif /* no HAVE_SYS_PARAM_H */
9618 # endif /* no _SC_PAGESIZE */
9619
9620 #endif /* no HAVE_GETPAGESIZE */
9621
9622 int
9623 main ()
9624 {
9625   char *data, *data2, *data3;
9626   int i, pagesize;
9627   int fd;
9628
9629   pagesize = getpagesize ();
9630
9631   /* First, make a file with some known garbage in it. */
9632   data = (char *) malloc (pagesize);
9633   if (!data)
9634     return 1;
9635   for (i = 0; i < pagesize; ++i)
9636     *(data + i) = rand ();
9637   umask (0);
9638   fd = creat ("conftest.mmap", 0600);
9639   if (fd < 0)
9640     return 1;
9641   if (write (fd, data, pagesize) != pagesize)
9642     return 1;
9643   close (fd);
9644
9645   /* Next, try to mmap the file at a fixed address which already has
9646      something else allocated at it.  If we can, also make sure that
9647      we see the same garbage.  */
9648   fd = open ("conftest.mmap", O_RDWR);
9649   if (fd < 0)
9650     return 1;
9651   data2 = (char *) malloc (2 * pagesize);
9652   if (!data2)
9653     return 1;
9654   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9655   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9656                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9657     return 1;
9658   for (i = 0; i < pagesize; ++i)
9659     if (*(data + i) != *(data2 + i))
9660       return 1;
9661
9662   /* Finally, make sure that changes to the mapped area do not
9663      percolate back to the file as seen by read().  (This is a bug on
9664      some variants of i386 svr4.0.)  */
9665   for (i = 0; i < pagesize; ++i)
9666     *(data2 + i) = *(data2 + i) + 1;
9667   data3 = (char *) malloc (pagesize);
9668   if (!data3)
9669     return 1;
9670   if (read (fd, data3, pagesize) != pagesize)
9671     return 1;
9672   for (i = 0; i < pagesize; ++i)
9673     if (*(data + i) != *(data3 + i))
9674       return 1;
9675   close (fd);
9676   return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9681 case "(($ac_try" in
9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683   *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686   (eval "$ac_link") 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9690   { (case "(($ac_try" in
9691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9692   *) ac_try_echo=$ac_try;;
9693 esac
9694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9695   (eval "$ac_try") 2>&5
9696   ac_status=$?
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); }; }; then
9699   ac_cv_func_mmap_fixed_mapped=yes
9700 else
9701   echo "$as_me: program exited with status $ac_status" >&5
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ( exit $ac_status )
9706 ac_cv_func_mmap_fixed_mapped=no
9707 fi
9708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9709 fi
9710
9711
9712 fi
9713 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9714 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9715 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9716
9717 cat >>confdefs.h <<\_ACEOF
9718 #define HAVE_MMAP 1
9719 _ACEOF
9720
9721 fi
9722 rm -f conftest.mmap
9723
9724
9725     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9726 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9727 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   cat >conftest.$ac_ext <<_ACEOF
9731 /* confdefs.h.  */
9732 _ACEOF
9733 cat confdefs.h >>conftest.$ac_ext
9734 cat >>conftest.$ac_ext <<_ACEOF
9735 /* end confdefs.h.  */
9736
9737 #include <features.h>
9738 #ifdef __GNU_LIBRARY__
9739  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9740   Lucky GNU user
9741  #endif
9742 #endif
9743
9744 _ACEOF
9745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9746   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9747   ac_cv_gnu_library_2_1=yes
9748 else
9749   ac_cv_gnu_library_2_1=no
9750 fi
9751 rm -f conftest*
9752
9753
9754
9755 fi
9756 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9757 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9758
9759     GLIBC21="$ac_cv_gnu_library_2_1"
9760
9761
9762
9763
9764   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9765 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9766 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9767   echo $ECHO_N "(cached) $ECHO_C" >&6
9768 else
9769
9770       if test "$cross_compiling" = yes; then
9771
9772           # Guess based on the CPU.
9773           case "$host_cpu" in
9774             alpha* | i3456786 | m68k | s390*)
9775               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9776             *)
9777               gt_cv_int_divbyzero_sigfpe="guessing no";;
9778           esac
9779
9780 else
9781   cat >conftest.$ac_ext <<_ACEOF
9782 /* confdefs.h.  */
9783 _ACEOF
9784 cat confdefs.h >>conftest.$ac_ext
9785 cat >>conftest.$ac_ext <<_ACEOF
9786 /* end confdefs.h.  */
9787
9788 #include <stdlib.h>
9789 #include <signal.h>
9790
9791 static void
9792 #ifdef __cplusplus
9793 sigfpe_handler (int sig)
9794 #else
9795 sigfpe_handler (sig) int sig;
9796 #endif
9797 {
9798   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9799   exit (sig != SIGFPE);
9800 }
9801
9802 int x = 1;
9803 int y = 0;
9804 int z;
9805 int nan;
9806
9807 int main ()
9808 {
9809   signal (SIGFPE, sigfpe_handler);
9810 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9811 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9812   signal (SIGTRAP, sigfpe_handler);
9813 #endif
9814 /* Linux/SPARC yields signal SIGILL.  */
9815 #if defined (__sparc__) && defined (__linux__)
9816   signal (SIGILL, sigfpe_handler);
9817 #endif
9818
9819   z = x / y;
9820   nan = y / y;
9821   exit (1);
9822 }
9823
9824 _ACEOF
9825 rm -f conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9827 case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_link") 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9836   { (case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9841   (eval "$ac_try") 2>&5
9842   ac_status=$?
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); }; }; then
9845   gt_cv_int_divbyzero_sigfpe=yes
9846 else
9847   echo "$as_me: program exited with status $ac_status" >&5
9848 echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851 ( exit $ac_status )
9852 gt_cv_int_divbyzero_sigfpe=no
9853 fi
9854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9855 fi
9856
9857
9858
9859 fi
9860 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9861 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9862   case "$gt_cv_int_divbyzero_sigfpe" in
9863     *yes) value=1;;
9864     *) value=0;;
9865   esac
9866
9867 cat >>confdefs.h <<_ACEOF
9868 #define INTDIV0_RAISES_SIGFPE $value
9869 _ACEOF
9870
9871
9872
9873   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9874 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9875 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9876   echo $ECHO_N "(cached) $ECHO_C" >&6
9877 else
9878   cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884 unsigned long long ull = 1ULL; int i = 63;
9885 int
9886 main ()
9887 {
9888 unsigned long long ullmax = (unsigned long long) -1;
9889      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9890   ;
9891   return 0;
9892 }
9893 _ACEOF
9894 rm -f conftest.$ac_objext conftest$ac_exeext
9895 if { (ac_try="$ac_link"
9896 case "(($ac_try" in
9897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9898   *) ac_try_echo=$ac_try;;
9899 esac
9900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9901   (eval "$ac_link") 2>conftest.er1
9902   ac_status=$?
9903   grep -v '^ *+' conftest.er1 >conftest.err
9904   rm -f conftest.er1
9905   cat conftest.err >&5
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } && {
9908          test -z "$ac_c_werror_flag" ||
9909          test ! -s conftest.err
9910        } && test -s conftest$ac_exeext &&
9911        $as_test_x conftest$ac_exeext; then
9912   ac_cv_type_unsigned_long_long=yes
9913 else
9914   echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9916
9917         ac_cv_type_unsigned_long_long=no
9918 fi
9919
9920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921       conftest$ac_exeext conftest.$ac_ext
9922 fi
9923 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9924 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9925   if test $ac_cv_type_unsigned_long_long = yes; then
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define HAVE_UNSIGNED_LONG_LONG 1
9929 _ACEOF
9930
9931   fi
9932
9933
9934
9935
9936   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9937
9938     test $ac_cv_type_unsigned_long_long = yes \
9939       && ac_type='unsigned long long' \
9940       || ac_type='unsigned long'
9941
9942 cat >>confdefs.h <<_ACEOF
9943 #define uintmax_t $ac_type
9944 _ACEOF
9945
9946   else
9947
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_UINTMAX_T 1
9950 _ACEOF
9951
9952   fi
9953
9954
9955   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9956 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9957 if test "${gt_cv_header_inttypes_h+set}" = set; then
9958   echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960
9961     cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 #include <sys/types.h>
9968 #include <inttypes.h>
9969 int
9970 main ()
9971 {
9972
9973   ;
9974   return 0;
9975 }
9976 _ACEOF
9977 rm -f conftest.$ac_objext
9978 if { (ac_try="$ac_compile"
9979 case "(($ac_try" in
9980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981   *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984   (eval "$ac_compile") 2>conftest.er1
9985   ac_status=$?
9986   grep -v '^ *+' conftest.er1 >conftest.err
9987   rm -f conftest.er1
9988   cat conftest.err >&5
9989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9990   (exit $ac_status); } && {
9991          test -z "$ac_c_werror_flag" ||
9992          test ! -s conftest.err
9993        } && test -s conftest.$ac_objext; then
9994   gt_cv_header_inttypes_h=yes
9995 else
9996   echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999         gt_cv_header_inttypes_h=no
10000 fi
10001
10002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10003
10004 fi
10005 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10006 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10007   if test $gt_cv_header_inttypes_h = yes; then
10008
10009 cat >>confdefs.h <<_ACEOF
10010 #define HAVE_INTTYPES_H 1
10011 _ACEOF
10012
10013   fi
10014
10015
10016
10017   if test $gt_cv_header_inttypes_h = yes; then
10018     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10019 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10020 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023
10024         cat >conftest.$ac_ext <<_ACEOF
10025 /* confdefs.h.  */
10026 _ACEOF
10027 cat confdefs.h >>conftest.$ac_ext
10028 cat >>conftest.$ac_ext <<_ACEOF
10029 /* end confdefs.h.  */
10030 #include <inttypes.h>
10031 #ifdef PRId32
10032 char *p = PRId32;
10033 #endif
10034
10035 int
10036 main ()
10037 {
10038
10039   ;
10040   return 0;
10041 }
10042 _ACEOF
10043 rm -f conftest.$ac_objext
10044 if { (ac_try="$ac_compile"
10045 case "(($ac_try" in
10046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047   *) ac_try_echo=$ac_try;;
10048 esac
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050   (eval "$ac_compile") 2>conftest.er1
10051   ac_status=$?
10052   grep -v '^ *+' conftest.er1 >conftest.err
10053   rm -f conftest.er1
10054   cat conftest.err >&5
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && {
10057          test -z "$ac_c_werror_flag" ||
10058          test ! -s conftest.err
10059        } && test -s conftest.$ac_objext; then
10060   gt_cv_inttypes_pri_broken=no
10061 else
10062   echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065         gt_cv_inttypes_pri_broken=yes
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10069
10070 fi
10071 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10072 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10073   fi
10074   if test "$gt_cv_inttypes_pri_broken" = yes; then
10075
10076 cat >>confdefs.h <<_ACEOF
10077 #define PRI_MACROS_BROKEN 1
10078 _ACEOF
10079
10080   fi
10081
10082
10083
10084 for ac_header in stdint.h
10085 do
10086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 fi
10093 ac_res=`eval echo '${'$as_ac_Header'}'`
10094                { echo "$as_me:$LINENO: result: $ac_res" >&5
10095 echo "${ECHO_T}$ac_res" >&6; }
10096 else
10097   # Is the header compilable?
10098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h.  */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h.  */
10106 $ac_includes_default
10107 #include <$ac_header>
10108 _ACEOF
10109 rm -f conftest.$ac_objext
10110 if { (ac_try="$ac_compile"
10111 case "(($ac_try" in
10112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10113   *) ac_try_echo=$ac_try;;
10114 esac
10115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10116   (eval "$ac_compile") 2>conftest.er1
10117   ac_status=$?
10118   grep -v '^ *+' conftest.er1 >conftest.err
10119   rm -f conftest.er1
10120   cat conftest.err >&5
10121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122   (exit $ac_status); } && {
10123          test -z "$ac_c_werror_flag" ||
10124          test ! -s conftest.err
10125        } && test -s conftest.$ac_objext; then
10126   ac_header_compiler=yes
10127 else
10128   echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10130
10131         ac_header_compiler=no
10132 fi
10133
10134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10136 echo "${ECHO_T}$ac_header_compiler" >&6; }
10137
10138 # Is the header present?
10139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10141 cat >conftest.$ac_ext <<_ACEOF
10142 /* confdefs.h.  */
10143 _ACEOF
10144 cat confdefs.h >>conftest.$ac_ext
10145 cat >>conftest.$ac_ext <<_ACEOF
10146 /* end confdefs.h.  */
10147 #include <$ac_header>
10148 _ACEOF
10149 if { (ac_try="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152   *) ac_try_echo=$ac_try;;
10153 esac
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10156   ac_status=$?
10157   grep -v '^ *+' conftest.er1 >conftest.err
10158   rm -f conftest.er1
10159   cat conftest.err >&5
10160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161   (exit $ac_status); } >/dev/null && {
10162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10163          test ! -s conftest.err
10164        }; then
10165   ac_header_preproc=yes
10166 else
10167   echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10169
10170   ac_header_preproc=no
10171 fi
10172
10173 rm -f conftest.err conftest.$ac_ext
10174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10175 echo "${ECHO_T}$ac_header_preproc" >&6; }
10176
10177 # So?  What about this header?
10178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10179   yes:no: )
10180     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10182     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10184     ac_header_preproc=yes
10185     ;;
10186   no:yes:* )
10187     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10189     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10190 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10191     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10193     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10194 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10199
10200     ;;
10201 esac
10202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10205   echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207   eval "$as_ac_Header=\$ac_header_preproc"
10208 fi
10209 ac_res=`eval echo '${'$as_ac_Header'}'`
10210                { echo "$as_me:$LINENO: result: $ac_res" >&5
10211 echo "${ECHO_T}$ac_res" >&6; }
10212
10213 fi
10214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10215   cat >>confdefs.h <<_ACEOF
10216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10217 _ACEOF
10218
10219 fi
10220
10221 done
10222
10223     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10224 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10225   result=
10226   cat >conftest.$ac_ext <<_ACEOF
10227 /* confdefs.h.  */
10228 _ACEOF
10229 cat confdefs.h >>conftest.$ac_ext
10230 cat >>conftest.$ac_ext <<_ACEOF
10231 /* end confdefs.h.  */
10232
10233 #include <limits.h>
10234 #if HAVE_STDINT_H
10235 #include <stdint.h>
10236 #endif
10237 #ifdef SIZE_MAX
10238 Found it
10239 #endif
10240
10241 _ACEOF
10242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10243   $EGREP "Found it" >/dev/null 2>&1; then
10244   result=yes
10245 fi
10246 rm -f conftest*
10247
10248   if test -z "$result"; then
10249                     if test "$cross_compiling" = yes; then
10250   # Depending upon the size, compute the lo and hi bounds.
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257 #include <stddef.h>
10258 int
10259 main ()
10260 {
10261 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10262 test_array [0] = 0
10263
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext
10269 if { (ac_try="$ac_compile"
10270 case "(($ac_try" in
10271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10272   *) ac_try_echo=$ac_try;;
10273 esac
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275   (eval "$ac_compile") 2>conftest.er1
10276   ac_status=$?
10277   grep -v '^ *+' conftest.er1 >conftest.err
10278   rm -f conftest.er1
10279   cat conftest.err >&5
10280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281   (exit $ac_status); } && {
10282          test -z "$ac_c_werror_flag" ||
10283          test ! -s conftest.err
10284        } && test -s conftest.$ac_objext; then
10285   ac_lo=0 ac_mid=0
10286   while :; do
10287     cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293 #include <stddef.h>
10294 int
10295 main ()
10296 {
10297 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10298 test_array [0] = 0
10299
10300   ;
10301   return 0;
10302 }
10303 _ACEOF
10304 rm -f conftest.$ac_objext
10305 if { (ac_try="$ac_compile"
10306 case "(($ac_try" in
10307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10308   *) ac_try_echo=$ac_try;;
10309 esac
10310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10311   (eval "$ac_compile") 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } && {
10318          test -z "$ac_c_werror_flag" ||
10319          test ! -s conftest.err
10320        } && test -s conftest.$ac_objext; then
10321   ac_hi=$ac_mid; break
10322 else
10323   echo "$as_me: failed program was:" >&5
10324 sed 's/^/| /' conftest.$ac_ext >&5
10325
10326         ac_lo=`expr $ac_mid + 1`
10327                         if test $ac_lo -le $ac_mid; then
10328                           ac_lo= ac_hi=
10329                           break
10330                         fi
10331                         ac_mid=`expr 2 '*' $ac_mid + 1`
10332 fi
10333
10334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10335   done
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340         cat >conftest.$ac_ext <<_ACEOF
10341 /* confdefs.h.  */
10342 _ACEOF
10343 cat confdefs.h >>conftest.$ac_ext
10344 cat >>conftest.$ac_ext <<_ACEOF
10345 /* end confdefs.h.  */
10346 #include <stddef.h>
10347 int
10348 main ()
10349 {
10350 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10351 test_array [0] = 0
10352
10353   ;
10354   return 0;
10355 }
10356 _ACEOF
10357 rm -f conftest.$ac_objext
10358 if { (ac_try="$ac_compile"
10359 case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_compile") 2>conftest.er1
10365   ac_status=$?
10366   grep -v '^ *+' conftest.er1 >conftest.err
10367   rm -f conftest.er1
10368   cat conftest.err >&5
10369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370   (exit $ac_status); } && {
10371          test -z "$ac_c_werror_flag" ||
10372          test ! -s conftest.err
10373        } && test -s conftest.$ac_objext; then
10374   ac_hi=-1 ac_mid=-1
10375   while :; do
10376     cat >conftest.$ac_ext <<_ACEOF
10377 /* confdefs.h.  */
10378 _ACEOF
10379 cat confdefs.h >>conftest.$ac_ext
10380 cat >>conftest.$ac_ext <<_ACEOF
10381 /* end confdefs.h.  */
10382 #include <stddef.h>
10383 int
10384 main ()
10385 {
10386 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10387 test_array [0] = 0
10388
10389   ;
10390   return 0;
10391 }
10392 _ACEOF
10393 rm -f conftest.$ac_objext
10394 if { (ac_try="$ac_compile"
10395 case "(($ac_try" in
10396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397   *) ac_try_echo=$ac_try;;
10398 esac
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400   (eval "$ac_compile") 2>conftest.er1
10401   ac_status=$?
10402   grep -v '^ *+' conftest.er1 >conftest.err
10403   rm -f conftest.er1
10404   cat conftest.err >&5
10405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } && {
10407          test -z "$ac_c_werror_flag" ||
10408          test ! -s conftest.err
10409        } && test -s conftest.$ac_objext; then
10410   ac_lo=$ac_mid; break
10411 else
10412   echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415         ac_hi=`expr '(' $ac_mid ')' - 1`
10416                         if test $ac_mid -le $ac_hi; then
10417                           ac_lo= ac_hi=
10418                           break
10419                         fi
10420                         ac_mid=`expr 2 '*' $ac_mid`
10421 fi
10422
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424   done
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429         ac_lo= ac_hi=
10430 fi
10431
10432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10433 fi
10434
10435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10436 # Binary search between lo and hi bounds.
10437 while test "x$ac_lo" != "x$ac_hi"; do
10438   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10439   cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h.  */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h.  */
10445 #include <stddef.h>
10446 int
10447 main ()
10448 {
10449 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10450 test_array [0] = 0
10451
10452   ;
10453   return 0;
10454 }
10455 _ACEOF
10456 rm -f conftest.$ac_objext
10457 if { (ac_try="$ac_compile"
10458 case "(($ac_try" in
10459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460   *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463   (eval "$ac_compile") 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } && {
10470          test -z "$ac_c_werror_flag" ||
10471          test ! -s conftest.err
10472        } && test -s conftest.$ac_objext; then
10473   ac_hi=$ac_mid
10474 else
10475   echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478         ac_lo=`expr '(' $ac_mid ')' + 1`
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 done
10483 case $ac_lo in
10484 ?*) res_hi=$ac_lo;;
10485 '') result=? ;;
10486 esac
10487 else
10488   cat >conftest.$ac_ext <<_ACEOF
10489 /* confdefs.h.  */
10490 _ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h.  */
10494 #include <stddef.h>
10495 static long int longval () { return ~(size_t)0 / 10; }
10496 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10497 #include <stdio.h>
10498 #include <stdlib.h>
10499 int
10500 main ()
10501 {
10502
10503   FILE *f = fopen ("conftest.val", "w");
10504   if (! f)
10505     return 1;
10506   if ((~(size_t)0 / 10) < 0)
10507     {
10508       long int i = longval ();
10509       if (i != (~(size_t)0 / 10))
10510         return 1;
10511       fprintf (f, "%ld\n", i);
10512     }
10513   else
10514     {
10515       unsigned long int i = ulongval ();
10516       if (i != (~(size_t)0 / 10))
10517         return 1;
10518       fprintf (f, "%lu\n", i);
10519     }
10520   return ferror (f) || fclose (f) != 0;
10521
10522   ;
10523   return 0;
10524 }
10525 _ACEOF
10526 rm -f conftest$ac_exeext
10527 if { (ac_try="$ac_link"
10528 case "(($ac_try" in
10529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530   *) ac_try_echo=$ac_try;;
10531 esac
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533   (eval "$ac_link") 2>&5
10534   ac_status=$?
10535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10537   { (case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_try") 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; }; then
10546   res_hi=`cat conftest.val`
10547 else
10548   echo "$as_me: program exited with status $ac_status" >&5
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 ( exit $ac_status )
10553 result=?
10554 fi
10555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10556 fi
10557 rm -f conftest.val
10558
10559     if test "$cross_compiling" = yes; then
10560   # Depending upon the size, compute the lo and hi bounds.
10561 cat >conftest.$ac_ext <<_ACEOF
10562 /* confdefs.h.  */
10563 _ACEOF
10564 cat confdefs.h >>conftest.$ac_ext
10565 cat >>conftest.$ac_ext <<_ACEOF
10566 /* end confdefs.h.  */
10567 #include <stddef.h>
10568 int
10569 main ()
10570 {
10571 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10572 test_array [0] = 0
10573
10574   ;
10575   return 0;
10576 }
10577 _ACEOF
10578 rm -f conftest.$ac_objext
10579 if { (ac_try="$ac_compile"
10580 case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10585   (eval "$ac_compile") 2>conftest.er1
10586   ac_status=$?
10587   grep -v '^ *+' conftest.er1 >conftest.err
10588   rm -f conftest.er1
10589   cat conftest.err >&5
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); } && {
10592          test -z "$ac_c_werror_flag" ||
10593          test ! -s conftest.err
10594        } && test -s conftest.$ac_objext; then
10595   ac_lo=0 ac_mid=0
10596   while :; do
10597     cat >conftest.$ac_ext <<_ACEOF
10598 /* confdefs.h.  */
10599 _ACEOF
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h.  */
10603 #include <stddef.h>
10604 int
10605 main ()
10606 {
10607 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10608 test_array [0] = 0
10609
10610   ;
10611   return 0;
10612 }
10613 _ACEOF
10614 rm -f conftest.$ac_objext
10615 if { (ac_try="$ac_compile"
10616 case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_compile") 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } && {
10628          test -z "$ac_c_werror_flag" ||
10629          test ! -s conftest.err
10630        } && test -s conftest.$ac_objext; then
10631   ac_hi=$ac_mid; break
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636         ac_lo=`expr $ac_mid + 1`
10637                         if test $ac_lo -le $ac_mid; then
10638                           ac_lo= ac_hi=
10639                           break
10640                         fi
10641                         ac_mid=`expr 2 '*' $ac_mid + 1`
10642 fi
10643
10644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10645   done
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650         cat >conftest.$ac_ext <<_ACEOF
10651 /* confdefs.h.  */
10652 _ACEOF
10653 cat confdefs.h >>conftest.$ac_ext
10654 cat >>conftest.$ac_ext <<_ACEOF
10655 /* end confdefs.h.  */
10656 #include <stddef.h>
10657 int
10658 main ()
10659 {
10660 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10661 test_array [0] = 0
10662
10663   ;
10664   return 0;
10665 }
10666 _ACEOF
10667 rm -f conftest.$ac_objext
10668 if { (ac_try="$ac_compile"
10669 case "(($ac_try" in
10670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671   *) ac_try_echo=$ac_try;;
10672 esac
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674   (eval "$ac_compile") 2>conftest.er1
10675   ac_status=$?
10676   grep -v '^ *+' conftest.er1 >conftest.err
10677   rm -f conftest.er1
10678   cat conftest.err >&5
10679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10680   (exit $ac_status); } && {
10681          test -z "$ac_c_werror_flag" ||
10682          test ! -s conftest.err
10683        } && test -s conftest.$ac_objext; then
10684   ac_hi=-1 ac_mid=-1
10685   while :; do
10686     cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 #include <stddef.h>
10693 int
10694 main ()
10695 {
10696 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10697 test_array [0] = 0
10698
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (ac_try="$ac_compile"
10705 case "(($ac_try" in
10706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707   *) ac_try_echo=$ac_try;;
10708 esac
10709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10710   (eval "$ac_compile") 2>conftest.er1
10711   ac_status=$?
10712   grep -v '^ *+' conftest.er1 >conftest.err
10713   rm -f conftest.er1
10714   cat conftest.err >&5
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); } && {
10717          test -z "$ac_c_werror_flag" ||
10718          test ! -s conftest.err
10719        } && test -s conftest.$ac_objext; then
10720   ac_lo=$ac_mid; break
10721 else
10722   echo "$as_me: failed program was:" >&5
10723 sed 's/^/| /' conftest.$ac_ext >&5
10724
10725         ac_hi=`expr '(' $ac_mid ')' - 1`
10726                         if test $ac_mid -le $ac_hi; then
10727                           ac_lo= ac_hi=
10728                           break
10729                         fi
10730                         ac_mid=`expr 2 '*' $ac_mid`
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734   done
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739         ac_lo= ac_hi=
10740 fi
10741
10742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10743 fi
10744
10745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10746 # Binary search between lo and hi bounds.
10747 while test "x$ac_lo" != "x$ac_hi"; do
10748   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10749   cat >conftest.$ac_ext <<_ACEOF
10750 /* confdefs.h.  */
10751 _ACEOF
10752 cat confdefs.h >>conftest.$ac_ext
10753 cat >>conftest.$ac_ext <<_ACEOF
10754 /* end confdefs.h.  */
10755 #include <stddef.h>
10756 int
10757 main ()
10758 {
10759 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10760 test_array [0] = 0
10761
10762   ;
10763   return 0;
10764 }
10765 _ACEOF
10766 rm -f conftest.$ac_objext
10767 if { (ac_try="$ac_compile"
10768 case "(($ac_try" in
10769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10770   *) ac_try_echo=$ac_try;;
10771 esac
10772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10773   (eval "$ac_compile") 2>conftest.er1
10774   ac_status=$?
10775   grep -v '^ *+' conftest.er1 >conftest.err
10776   rm -f conftest.er1
10777   cat conftest.err >&5
10778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779   (exit $ac_status); } && {
10780          test -z "$ac_c_werror_flag" ||
10781          test ! -s conftest.err
10782        } && test -s conftest.$ac_objext; then
10783   ac_hi=$ac_mid
10784 else
10785   echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788         ac_lo=`expr '(' $ac_mid ')' + 1`
10789 fi
10790
10791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10792 done
10793 case $ac_lo in
10794 ?*) res_lo=$ac_lo;;
10795 '') result=? ;;
10796 esac
10797 else
10798   cat >conftest.$ac_ext <<_ACEOF
10799 /* confdefs.h.  */
10800 _ACEOF
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h.  */
10804 #include <stddef.h>
10805 static long int longval () { return ~(size_t)0 % 10; }
10806 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10807 #include <stdio.h>
10808 #include <stdlib.h>
10809 int
10810 main ()
10811 {
10812
10813   FILE *f = fopen ("conftest.val", "w");
10814   if (! f)
10815     return 1;
10816   if ((~(size_t)0 % 10) < 0)
10817     {
10818       long int i = longval ();
10819       if (i != (~(size_t)0 % 10))
10820         return 1;
10821       fprintf (f, "%ld\n", i);
10822     }
10823   else
10824     {
10825       unsigned long int i = ulongval ();
10826       if (i != (~(size_t)0 % 10))
10827         return 1;
10828       fprintf (f, "%lu\n", i);
10829     }
10830   return ferror (f) || fclose (f) != 0;
10831
10832   ;
10833   return 0;
10834 }
10835 _ACEOF
10836 rm -f conftest$ac_exeext
10837 if { (ac_try="$ac_link"
10838 case "(($ac_try" in
10839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840   *) ac_try_echo=$ac_try;;
10841 esac
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843   (eval "$ac_link") 2>&5
10844   ac_status=$?
10845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10847   { (case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852   (eval "$ac_try") 2>&5
10853   ac_status=$?
10854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855   (exit $ac_status); }; }; then
10856   res_lo=`cat conftest.val`
10857 else
10858   echo "$as_me: program exited with status $ac_status" >&5
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10861
10862 ( exit $ac_status )
10863 result=?
10864 fi
10865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10866 fi
10867 rm -f conftest.val
10868
10869     if test "$cross_compiling" = yes; then
10870   # Depending upon the size, compute the lo and hi bounds.
10871 cat >conftest.$ac_ext <<_ACEOF
10872 /* confdefs.h.  */
10873 _ACEOF
10874 cat confdefs.h >>conftest.$ac_ext
10875 cat >>conftest.$ac_ext <<_ACEOF
10876 /* end confdefs.h.  */
10877 #include <stddef.h>
10878 int
10879 main ()
10880 {
10881 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10882 test_array [0] = 0
10883
10884   ;
10885   return 0;
10886 }
10887 _ACEOF
10888 rm -f conftest.$ac_objext
10889 if { (ac_try="$ac_compile"
10890 case "(($ac_try" in
10891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892   *) ac_try_echo=$ac_try;;
10893 esac
10894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10895   (eval "$ac_compile") 2>conftest.er1
10896   ac_status=$?
10897   grep -v '^ *+' conftest.er1 >conftest.err
10898   rm -f conftest.er1
10899   cat conftest.err >&5
10900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901   (exit $ac_status); } && {
10902          test -z "$ac_c_werror_flag" ||
10903          test ! -s conftest.err
10904        } && test -s conftest.$ac_objext; then
10905   ac_lo=0 ac_mid=0
10906   while :; do
10907     cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <stddef.h>
10914 int
10915 main ()
10916 {
10917 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10918 test_array [0] = 0
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_compile") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } && {
10938          test -z "$ac_c_werror_flag" ||
10939          test ! -s conftest.err
10940        } && test -s conftest.$ac_objext; then
10941   ac_hi=$ac_mid; break
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946         ac_lo=`expr $ac_mid + 1`
10947                         if test $ac_lo -le $ac_mid; then
10948                           ac_lo= ac_hi=
10949                           break
10950                         fi
10951                         ac_mid=`expr 2 '*' $ac_mid + 1`
10952 fi
10953
10954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10955   done
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960         cat >conftest.$ac_ext <<_ACEOF
10961 /* confdefs.h.  */
10962 _ACEOF
10963 cat confdefs.h >>conftest.$ac_ext
10964 cat >>conftest.$ac_ext <<_ACEOF
10965 /* end confdefs.h.  */
10966 #include <stddef.h>
10967 int
10968 main ()
10969 {
10970 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10971 test_array [0] = 0
10972
10973   ;
10974   return 0;
10975 }
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981   *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984   (eval "$ac_compile") 2>conftest.er1
10985   ac_status=$?
10986   grep -v '^ *+' conftest.er1 >conftest.err
10987   rm -f conftest.er1
10988   cat conftest.err >&5
10989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990   (exit $ac_status); } && {
10991          test -z "$ac_c_werror_flag" ||
10992          test ! -s conftest.err
10993        } && test -s conftest.$ac_objext; then
10994   ac_hi=-1 ac_mid=-1
10995   while :; do
10996     cat >conftest.$ac_ext <<_ACEOF
10997 /* confdefs.h.  */
10998 _ACEOF
10999 cat confdefs.h >>conftest.$ac_ext
11000 cat >>conftest.$ac_ext <<_ACEOF
11001 /* end confdefs.h.  */
11002 #include <stddef.h>
11003 int
11004 main ()
11005 {
11006 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11007 test_array [0] = 0
11008
11009   ;
11010   return 0;
11011 }
11012 _ACEOF
11013 rm -f conftest.$ac_objext
11014 if { (ac_try="$ac_compile"
11015 case "(($ac_try" in
11016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017   *) ac_try_echo=$ac_try;;
11018 esac
11019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11020   (eval "$ac_compile") 2>conftest.er1
11021   ac_status=$?
11022   grep -v '^ *+' conftest.er1 >conftest.err
11023   rm -f conftest.er1
11024   cat conftest.err >&5
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); } && {
11027          test -z "$ac_c_werror_flag" ||
11028          test ! -s conftest.err
11029        } && test -s conftest.$ac_objext; then
11030   ac_lo=$ac_mid; break
11031 else
11032   echo "$as_me: failed program was:" >&5
11033 sed 's/^/| /' conftest.$ac_ext >&5
11034
11035         ac_hi=`expr '(' $ac_mid ')' - 1`
11036                         if test $ac_mid -le $ac_hi; then
11037                           ac_lo= ac_hi=
11038                           break
11039                         fi
11040                         ac_mid=`expr 2 '*' $ac_mid`
11041 fi
11042
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11044   done
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049         ac_lo= ac_hi=
11050 fi
11051
11052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11053 fi
11054
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 # Binary search between lo and hi bounds.
11057 while test "x$ac_lo" != "x$ac_hi"; do
11058   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11059   cat >conftest.$ac_ext <<_ACEOF
11060 /* confdefs.h.  */
11061 _ACEOF
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h.  */
11065 #include <stddef.h>
11066 int
11067 main ()
11068 {
11069 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11070 test_array [0] = 0
11071
11072   ;
11073   return 0;
11074 }
11075 _ACEOF
11076 rm -f conftest.$ac_objext
11077 if { (ac_try="$ac_compile"
11078 case "(($ac_try" in
11079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11080   *) ac_try_echo=$ac_try;;
11081 esac
11082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11083   (eval "$ac_compile") 2>conftest.er1
11084   ac_status=$?
11085   grep -v '^ *+' conftest.er1 >conftest.err
11086   rm -f conftest.er1
11087   cat conftest.err >&5
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } && {
11090          test -z "$ac_c_werror_flag" ||
11091          test ! -s conftest.err
11092        } && test -s conftest.$ac_objext; then
11093   ac_hi=$ac_mid
11094 else
11095   echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098         ac_lo=`expr '(' $ac_mid ')' + 1`
11099 fi
11100
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 done
11103 case $ac_lo in
11104 ?*) fits_in_uint=$ac_lo;;
11105 '') result=? ;;
11106 esac
11107 else
11108   cat >conftest.$ac_ext <<_ACEOF
11109 /* confdefs.h.  */
11110 _ACEOF
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h.  */
11114 #include <stddef.h>
11115 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11116 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11117 #include <stdio.h>
11118 #include <stdlib.h>
11119 int
11120 main ()
11121 {
11122
11123   FILE *f = fopen ("conftest.val", "w");
11124   if (! f)
11125     return 1;
11126   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11127     {
11128       long int i = longval ();
11129       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11130         return 1;
11131       fprintf (f, "%ld\n", i);
11132     }
11133   else
11134     {
11135       unsigned long int i = ulongval ();
11136       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11137         return 1;
11138       fprintf (f, "%lu\n", i);
11139     }
11140   return ferror (f) || fclose (f) != 0;
11141
11142   ;
11143   return 0;
11144 }
11145 _ACEOF
11146 rm -f conftest$ac_exeext
11147 if { (ac_try="$ac_link"
11148 case "(($ac_try" in
11149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150   *) ac_try_echo=$ac_try;;
11151 esac
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153   (eval "$ac_link") 2>&5
11154   ac_status=$?
11155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11157   { (case "(($ac_try" in
11158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11159   *) ac_try_echo=$ac_try;;
11160 esac
11161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11162   (eval "$ac_try") 2>&5
11163   ac_status=$?
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); }; }; then
11166   fits_in_uint=`cat conftest.val`
11167 else
11168   echo "$as_me: program exited with status $ac_status" >&5
11169 echo "$as_me: failed program was:" >&5
11170 sed 's/^/| /' conftest.$ac_ext >&5
11171
11172 ( exit $ac_status )
11173 result=?
11174 fi
11175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11176 fi
11177 rm -f conftest.val
11178
11179     if test "$fits_in_uint" = 1; then
11180                   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 #include <stddef.h>
11187         extern size_t foo;
11188         extern unsigned long foo;
11189
11190 int
11191 main ()
11192 {
11193
11194   ;
11195   return 0;
11196 }
11197 _ACEOF
11198 rm -f conftest.$ac_objext
11199 if { (ac_try="$ac_compile"
11200 case "(($ac_try" in
11201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11202   *) ac_try_echo=$ac_try;;
11203 esac
11204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11205   (eval "$ac_compile") 2>conftest.er1
11206   ac_status=$?
11207   grep -v '^ *+' conftest.er1 >conftest.err
11208   rm -f conftest.er1
11209   cat conftest.err >&5
11210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11211   (exit $ac_status); } && {
11212          test -z "$ac_c_werror_flag" ||
11213          test ! -s conftest.err
11214        } && test -s conftest.$ac_objext; then
11215   fits_in_uint=0
11216 else
11217   echo "$as_me: failed program was:" >&5
11218 sed 's/^/| /' conftest.$ac_ext >&5
11219
11220
11221 fi
11222
11223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11224     fi
11225     if test -z "$result"; then
11226       if test "$fits_in_uint" = 1; then
11227         result="$res_hi$res_lo"U
11228       else
11229         result="$res_hi$res_lo"UL
11230       fi
11231     else
11232             result='~(size_t)0'
11233     fi
11234   fi
11235   { echo "$as_me:$LINENO: result: $result" >&5
11236 echo "${ECHO_T}$result" >&6; }
11237   if test "$result" != yes; then
11238
11239 cat >>confdefs.h <<_ACEOF
11240 #define SIZE_MAX $result
11241 _ACEOF
11242
11243   fi
11244
11245
11246
11247
11248
11249 for ac_header in stdint.h
11250 do
11251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11253   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11256   echo $ECHO_N "(cached) $ECHO_C" >&6
11257 fi
11258 ac_res=`eval echo '${'$as_ac_Header'}'`
11259                { echo "$as_me:$LINENO: result: $ac_res" >&5
11260 echo "${ECHO_T}$ac_res" >&6; }
11261 else
11262   # Is the header compilable?
11263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11266 /* confdefs.h.  */
11267 _ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h.  */
11271 $ac_includes_default
11272 #include <$ac_header>
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278   *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281   (eval "$ac_compile") 2>conftest.er1
11282   ac_status=$?
11283   grep -v '^ *+' conftest.er1 >conftest.err
11284   rm -f conftest.er1
11285   cat conftest.err >&5
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); } && {
11288          test -z "$ac_c_werror_flag" ||
11289          test ! -s conftest.err
11290        } && test -s conftest.$ac_objext; then
11291   ac_header_compiler=yes
11292 else
11293   echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296         ac_header_compiler=no
11297 fi
11298
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11301 echo "${ECHO_T}$ac_header_compiler" >&6; }
11302
11303 # Is the header present?
11304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11306 cat >conftest.$ac_ext <<_ACEOF
11307 /* confdefs.h.  */
11308 _ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h.  */
11312 #include <$ac_header>
11313 _ACEOF
11314 if { (ac_try="$ac_cpp conftest.$ac_ext"
11315 case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11321   ac_status=$?
11322   grep -v '^ *+' conftest.er1 >conftest.err
11323   rm -f conftest.er1
11324   cat conftest.err >&5
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } >/dev/null && {
11327          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11328          test ! -s conftest.err
11329        }; then
11330   ac_header_preproc=yes
11331 else
11332   echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11334
11335   ac_header_preproc=no
11336 fi
11337
11338 rm -f conftest.err conftest.$ac_ext
11339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11340 echo "${ECHO_T}$ac_header_preproc" >&6; }
11341
11342 # So?  What about this header?
11343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11344   yes:no: )
11345     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11347     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11349     ac_header_preproc=yes
11350     ;;
11351   no:yes:* )
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11354     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11355 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11359 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11364
11365     ;;
11366 esac
11367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11370   echo $ECHO_N "(cached) $ECHO_C" >&6
11371 else
11372   eval "$as_ac_Header=\$ac_header_preproc"
11373 fi
11374 ac_res=`eval echo '${'$as_ac_Header'}'`
11375                { echo "$as_me:$LINENO: result: $ac_res" >&5
11376 echo "${ECHO_T}$ac_res" >&6; }
11377
11378 fi
11379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11380   cat >>confdefs.h <<_ACEOF
11381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11382 _ACEOF
11383
11384 fi
11385
11386 done
11387
11388
11389
11390
11391
11392
11393
11394
11395   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11396 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11397 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   cat >conftest.$ac_ext <<_ACEOF
11401 /* confdefs.h.  */
11402 _ACEOF
11403 cat confdefs.h >>conftest.$ac_ext
11404 cat >>conftest.$ac_ext <<_ACEOF
11405 /* end confdefs.h.  */
11406 $ac_includes_default
11407 typedef ptrdiff_t ac__type_new_;
11408 int
11409 main ()
11410 {
11411 if ((ac__type_new_ *) 0)
11412   return 0;
11413 if (sizeof (ac__type_new_))
11414   return 0;
11415   ;
11416   return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext
11420 if { (ac_try="$ac_compile"
11421 case "(($ac_try" in
11422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423   *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426   (eval "$ac_compile") 2>conftest.er1
11427   ac_status=$?
11428   grep -v '^ *+' conftest.er1 >conftest.err
11429   rm -f conftest.er1
11430   cat conftest.err >&5
11431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432   (exit $ac_status); } && {
11433          test -z "$ac_c_werror_flag" ||
11434          test ! -s conftest.err
11435        } && test -s conftest.$ac_objext; then
11436   ac_cv_type_ptrdiff_t=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441         ac_cv_type_ptrdiff_t=no
11442 fi
11443
11444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11445 fi
11446 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11447 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11448 if test $ac_cv_type_ptrdiff_t = yes; then
11449   :
11450 else
11451
11452 cat >>confdefs.h <<\_ACEOF
11453 #define ptrdiff_t long
11454 _ACEOF
11455
11456
11457 fi
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11470 stdlib.h string.h unistd.h sys/param.h
11471 do
11472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11474   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11477   echo $ECHO_N "(cached) $ECHO_C" >&6
11478 fi
11479 ac_res=`eval echo '${'$as_ac_Header'}'`
11480                { echo "$as_me:$LINENO: result: $ac_res" >&5
11481 echo "${ECHO_T}$ac_res" >&6; }
11482 else
11483   # Is the header compilable?
11484 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11485 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h.  */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h.  */
11492 $ac_includes_default
11493 #include <$ac_header>
11494 _ACEOF
11495 rm -f conftest.$ac_objext
11496 if { (ac_try="$ac_compile"
11497 case "(($ac_try" in
11498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499   *) ac_try_echo=$ac_try;;
11500 esac
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502   (eval "$ac_compile") 2>conftest.er1
11503   ac_status=$?
11504   grep -v '^ *+' conftest.er1 >conftest.err
11505   rm -f conftest.er1
11506   cat conftest.err >&5
11507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508   (exit $ac_status); } && {
11509          test -z "$ac_c_werror_flag" ||
11510          test ! -s conftest.err
11511        } && test -s conftest.$ac_objext; then
11512   ac_header_compiler=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517         ac_header_compiler=no
11518 fi
11519
11520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11522 echo "${ECHO_T}$ac_header_compiler" >&6; }
11523
11524 # Is the header present?
11525 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h.  */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h.  */
11533 #include <$ac_header>
11534 _ACEOF
11535 if { (ac_try="$ac_cpp conftest.$ac_ext"
11536 case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11542   ac_status=$?
11543   grep -v '^ *+' conftest.er1 >conftest.err
11544   rm -f conftest.er1
11545   cat conftest.err >&5
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); } >/dev/null && {
11548          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11549          test ! -s conftest.err
11550        }; then
11551   ac_header_preproc=yes
11552 else
11553   echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556   ac_header_preproc=no
11557 fi
11558
11559 rm -f conftest.err conftest.$ac_ext
11560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11561 echo "${ECHO_T}$ac_header_preproc" >&6; }
11562
11563 # So?  What about this header?
11564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11565   yes:no: )
11566     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11570     ac_header_preproc=yes
11571     ;;
11572   no:yes:* )
11573     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11575     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11576 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11577     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11579     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11580 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11581     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11583     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11585
11586     ;;
11587 esac
11588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591   echo $ECHO_N "(cached) $ECHO_C" >&6
11592 else
11593   eval "$as_ac_Header=\$ac_header_preproc"
11594 fi
11595 ac_res=`eval echo '${'$as_ac_Header'}'`
11596                { echo "$as_me:$LINENO: result: $ac_res" >&5
11597 echo "${ECHO_T}$ac_res" >&6; }
11598
11599 fi
11600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11601   cat >>confdefs.h <<_ACEOF
11602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11603 _ACEOF
11604
11605 fi
11606
11607 done
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11633 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11634 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11635 __fsetlocking
11636 do
11637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11641   echo $ECHO_N "(cached) $ECHO_C" >&6
11642 else
11643   cat >conftest.$ac_ext <<_ACEOF
11644 /* confdefs.h.  */
11645 _ACEOF
11646 cat confdefs.h >>conftest.$ac_ext
11647 cat >>conftest.$ac_ext <<_ACEOF
11648 /* end confdefs.h.  */
11649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11651 #define $ac_func innocuous_$ac_func
11652
11653 /* System header to define __stub macros and hopefully few prototypes,
11654     which can conflict with char $ac_func (); below.
11655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11656     <limits.h> exists even on freestanding compilers.  */
11657
11658 #ifdef __STDC__
11659 # include <limits.h>
11660 #else
11661 # include <assert.h>
11662 #endif
11663
11664 #undef $ac_func
11665
11666 /* Override any GCC internal prototype to avoid an error.
11667    Use char because int might match the return type of a GCC
11668    builtin and then its argument prototype would still apply.  */
11669 #ifdef __cplusplus
11670 extern "C"
11671 #endif
11672 char $ac_func ();
11673 /* The GNU C library defines this for functions which it implements
11674     to always fail with ENOSYS.  Some functions are actually named
11675     something starting with __ and the normal name is an alias.  */
11676 #if defined __stub_$ac_func || defined __stub___$ac_func
11677 choke me
11678 #endif
11679
11680 int
11681 main ()
11682 {
11683 return $ac_func ();
11684   ;
11685   return 0;
11686 }
11687 _ACEOF
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (ac_try="$ac_link"
11690 case "(($ac_try" in
11691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692   *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695   (eval "$ac_link") 2>conftest.er1
11696   ac_status=$?
11697   grep -v '^ *+' conftest.er1 >conftest.err
11698   rm -f conftest.er1
11699   cat conftest.err >&5
11700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701   (exit $ac_status); } && {
11702          test -z "$ac_c_werror_flag" ||
11703          test ! -s conftest.err
11704        } && test -s conftest$ac_exeext &&
11705        $as_test_x conftest$ac_exeext; then
11706   eval "$as_ac_var=yes"
11707 else
11708   echo "$as_me: failed program was:" >&5
11709 sed 's/^/| /' conftest.$ac_ext >&5
11710
11711         eval "$as_ac_var=no"
11712 fi
11713
11714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11715       conftest$ac_exeext conftest.$ac_ext
11716 fi
11717 ac_res=`eval echo '${'$as_ac_var'}'`
11718                { echo "$as_me:$LINENO: result: $ac_res" >&5
11719 echo "${ECHO_T}$ac_res" >&6; }
11720 if test `eval echo '${'$as_ac_var'}'` = yes; then
11721   cat >>confdefs.h <<_ACEOF
11722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11723 _ACEOF
11724
11725 fi
11726 done
11727
11728
11729
11730   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11731 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11732 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11733   echo $ECHO_N "(cached) $ECHO_C" >&6
11734 else
11735   cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 #include <stdio.h>
11742 int
11743 main ()
11744 {
11745
11746 #ifndef _snprintf
11747   char *p = (char *) _snprintf;
11748 #endif
11749
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 rm -f conftest.$ac_objext
11755 if { (ac_try="$ac_compile"
11756 case "(($ac_try" in
11757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758   *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761   (eval "$ac_compile") 2>conftest.er1
11762   ac_status=$?
11763   grep -v '^ *+' conftest.er1 >conftest.err
11764   rm -f conftest.er1
11765   cat conftest.err >&5
11766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767   (exit $ac_status); } && {
11768          test -z "$ac_c_werror_flag" ||
11769          test ! -s conftest.err
11770        } && test -s conftest.$ac_objext; then
11771   ac_cv_have_decl__snprintf=yes
11772 else
11773   echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11775
11776         ac_cv_have_decl__snprintf=no
11777 fi
11778
11779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11780 fi
11781 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11782 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11783   if test $ac_cv_have_decl__snprintf = yes; then
11784     gt_value=1
11785   else
11786     gt_value=0
11787   fi
11788
11789 cat >>confdefs.h <<_ACEOF
11790 #define HAVE_DECL__SNPRINTF $gt_value
11791 _ACEOF
11792
11793
11794
11795   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11796 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11797 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11798   echo $ECHO_N "(cached) $ECHO_C" >&6
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806 #include <stdio.h>
11807 int
11808 main ()
11809 {
11810
11811 #ifndef _snwprintf
11812   char *p = (char *) _snwprintf;
11813 #endif
11814
11815   ;
11816   return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823   *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826   (eval "$ac_compile") 2>conftest.er1
11827   ac_status=$?
11828   grep -v '^ *+' conftest.er1 >conftest.err
11829   rm -f conftest.er1
11830   cat conftest.err >&5
11831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832   (exit $ac_status); } && {
11833          test -z "$ac_c_werror_flag" ||
11834          test ! -s conftest.err
11835        } && test -s conftest.$ac_objext; then
11836   ac_cv_have_decl__snwprintf=yes
11837 else
11838   echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841         ac_cv_have_decl__snwprintf=no
11842 fi
11843
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 fi
11846 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11847 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11848   if test $ac_cv_have_decl__snwprintf = yes; then
11849     gt_value=1
11850   else
11851     gt_value=0
11852   fi
11853
11854 cat >>confdefs.h <<_ACEOF
11855 #define HAVE_DECL__SNWPRINTF $gt_value
11856 _ACEOF
11857
11858
11859
11860
11861   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11862 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11863 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11864   echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866   cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 #include <stdio.h>
11873 int
11874 main ()
11875 {
11876
11877 #ifndef feof_unlocked
11878   char *p = (char *) feof_unlocked;
11879 #endif
11880
11881   ;
11882   return 0;
11883 }
11884 _ACEOF
11885 rm -f conftest.$ac_objext
11886 if { (ac_try="$ac_compile"
11887 case "(($ac_try" in
11888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889   *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892   (eval "$ac_compile") 2>conftest.er1
11893   ac_status=$?
11894   grep -v '^ *+' conftest.er1 >conftest.err
11895   rm -f conftest.er1
11896   cat conftest.err >&5
11897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898   (exit $ac_status); } && {
11899          test -z "$ac_c_werror_flag" ||
11900          test ! -s conftest.err
11901        } && test -s conftest.$ac_objext; then
11902   ac_cv_have_decl_feof_unlocked=yes
11903 else
11904   echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11906
11907         ac_cv_have_decl_feof_unlocked=no
11908 fi
11909
11910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11911 fi
11912 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11913 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11914   if test $ac_cv_have_decl_feof_unlocked = yes; then
11915     gt_value=1
11916   else
11917     gt_value=0
11918   fi
11919
11920 cat >>confdefs.h <<_ACEOF
11921 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11922 _ACEOF
11923
11924
11925
11926   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11927 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11928 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11929   echo $ECHO_N "(cached) $ECHO_C" >&6
11930 else
11931   cat >conftest.$ac_ext <<_ACEOF
11932 /* confdefs.h.  */
11933 _ACEOF
11934 cat confdefs.h >>conftest.$ac_ext
11935 cat >>conftest.$ac_ext <<_ACEOF
11936 /* end confdefs.h.  */
11937 #include <stdio.h>
11938 int
11939 main ()
11940 {
11941
11942 #ifndef fgets_unlocked
11943   char *p = (char *) fgets_unlocked;
11944 #endif
11945
11946   ;
11947   return 0;
11948 }
11949 _ACEOF
11950 rm -f conftest.$ac_objext
11951 if { (ac_try="$ac_compile"
11952 case "(($ac_try" in
11953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11954   *) ac_try_echo=$ac_try;;
11955 esac
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957   (eval "$ac_compile") 2>conftest.er1
11958   ac_status=$?
11959   grep -v '^ *+' conftest.er1 >conftest.err
11960   rm -f conftest.er1
11961   cat conftest.err >&5
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); } && {
11964          test -z "$ac_c_werror_flag" ||
11965          test ! -s conftest.err
11966        } && test -s conftest.$ac_objext; then
11967   ac_cv_have_decl_fgets_unlocked=yes
11968 else
11969   echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11971
11972         ac_cv_have_decl_fgets_unlocked=no
11973 fi
11974
11975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11976 fi
11977 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11978 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11979   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11980     gt_value=1
11981   else
11982     gt_value=0
11983   fi
11984
11985 cat >>confdefs.h <<_ACEOF
11986 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11987 _ACEOF
11988
11989
11990
11991   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11992 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11993 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11994   echo $ECHO_N "(cached) $ECHO_C" >&6
11995 else
11996   cat >conftest.$ac_ext <<_ACEOF
11997 /* confdefs.h.  */
11998 _ACEOF
11999 cat confdefs.h >>conftest.$ac_ext
12000 cat >>conftest.$ac_ext <<_ACEOF
12001 /* end confdefs.h.  */
12002 #include <stdio.h>
12003 int
12004 main ()
12005 {
12006
12007 #ifndef getc_unlocked
12008   char *p = (char *) getc_unlocked;
12009 #endif
12010
12011   ;
12012   return 0;
12013 }
12014 _ACEOF
12015 rm -f conftest.$ac_objext
12016 if { (ac_try="$ac_compile"
12017 case "(($ac_try" in
12018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12019   *) ac_try_echo=$ac_try;;
12020 esac
12021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12022   (eval "$ac_compile") 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } && {
12029          test -z "$ac_c_werror_flag" ||
12030          test ! -s conftest.err
12031        } && test -s conftest.$ac_objext; then
12032   ac_cv_have_decl_getc_unlocked=yes
12033 else
12034   echo "$as_me: failed program was:" >&5
12035 sed 's/^/| /' conftest.$ac_ext >&5
12036
12037         ac_cv_have_decl_getc_unlocked=no
12038 fi
12039
12040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12041 fi
12042 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12043 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12044   if test $ac_cv_have_decl_getc_unlocked = yes; then
12045     gt_value=1
12046   else
12047     gt_value=0
12048   fi
12049
12050 cat >>confdefs.h <<_ACEOF
12051 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12052 _ACEOF
12053
12054
12055
12056   case $gt_cv_func_printf_posix in
12057     *yes) HAVE_POSIX_PRINTF=1 ;;
12058     *) HAVE_POSIX_PRINTF=0 ;;
12059   esac
12060
12061   if test "$ac_cv_func_asprintf" = yes; then
12062     HAVE_ASPRINTF=1
12063   else
12064     HAVE_ASPRINTF=0
12065   fi
12066
12067   if test "$ac_cv_func_snprintf" = yes; then
12068     HAVE_SNPRINTF=1
12069   else
12070     HAVE_SNPRINTF=0
12071   fi
12072
12073   if test "$ac_cv_func_wprintf" = yes; then
12074     HAVE_WPRINTF=1
12075   else
12076     HAVE_WPRINTF=0
12077   fi
12078
12079
12080
12081
12082
12083
12084
12085           am_save_CPPFLAGS="$CPPFLAGS"
12086
12087   for element in $INCICONV; do
12088     haveit=
12089     for x in $CPPFLAGS; do
12090
12091   acl_save_prefix="$prefix"
12092   prefix="$acl_final_prefix"
12093   acl_save_exec_prefix="$exec_prefix"
12094   exec_prefix="$acl_final_exec_prefix"
12095   eval x=\"$x\"
12096   exec_prefix="$acl_save_exec_prefix"
12097   prefix="$acl_save_prefix"
12098
12099       if test "X$x" = "X$element"; then
12100         haveit=yes
12101         break
12102       fi
12103     done
12104     if test -z "$haveit"; then
12105       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12106     fi
12107   done
12108
12109
12110   { echo "$as_me:$LINENO: checking for iconv" >&5
12111 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12112 if test "${am_cv_func_iconv+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115
12116     am_cv_func_iconv="no, consider installing GNU libiconv"
12117     am_cv_lib_iconv=no
12118     cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <stdlib.h>
12125 #include <iconv.h>
12126 int
12127 main ()
12128 {
12129 iconv_t cd = iconv_open("","");
12130        iconv(cd,NULL,NULL,NULL,NULL);
12131        iconv_close(cd);
12132   ;
12133   return 0;
12134 }
12135 _ACEOF
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (ac_try="$ac_link"
12138 case "(($ac_try" in
12139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12140   *) ac_try_echo=$ac_try;;
12141 esac
12142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12143   (eval "$ac_link") 2>conftest.er1
12144   ac_status=$?
12145   grep -v '^ *+' conftest.er1 >conftest.err
12146   rm -f conftest.er1
12147   cat conftest.err >&5
12148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149   (exit $ac_status); } && {
12150          test -z "$ac_c_werror_flag" ||
12151          test ! -s conftest.err
12152        } && test -s conftest$ac_exeext &&
12153        $as_test_x conftest$ac_exeext; then
12154   am_cv_func_iconv=yes
12155 else
12156   echo "$as_me: failed program was:" >&5
12157 sed 's/^/| /' conftest.$ac_ext >&5
12158
12159
12160 fi
12161
12162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12163       conftest$ac_exeext conftest.$ac_ext
12164     if test "$am_cv_func_iconv" != yes; then
12165       am_save_LIBS="$LIBS"
12166       LIBS="$LIBS $LIBICONV"
12167       cat >conftest.$ac_ext <<_ACEOF
12168 /* confdefs.h.  */
12169 _ACEOF
12170 cat confdefs.h >>conftest.$ac_ext
12171 cat >>conftest.$ac_ext <<_ACEOF
12172 /* end confdefs.h.  */
12173 #include <stdlib.h>
12174 #include <iconv.h>
12175 int
12176 main ()
12177 {
12178 iconv_t cd = iconv_open("","");
12179          iconv(cd,NULL,NULL,NULL,NULL);
12180          iconv_close(cd);
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 rm -f conftest.$ac_objext conftest$ac_exeext
12186 if { (ac_try="$ac_link"
12187 case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_link") 2>conftest.er1
12193   ac_status=$?
12194   grep -v '^ *+' conftest.er1 >conftest.err
12195   rm -f conftest.er1
12196   cat conftest.err >&5
12197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198   (exit $ac_status); } && {
12199          test -z "$ac_c_werror_flag" ||
12200          test ! -s conftest.err
12201        } && test -s conftest$ac_exeext &&
12202        $as_test_x conftest$ac_exeext; then
12203   am_cv_lib_iconv=yes
12204         am_cv_func_iconv=yes
12205 else
12206   echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12208
12209
12210 fi
12211
12212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12213       conftest$ac_exeext conftest.$ac_ext
12214       LIBS="$am_save_LIBS"
12215     fi
12216
12217 fi
12218 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12219 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12220   if test "$am_cv_func_iconv" = yes; then
12221
12222 cat >>confdefs.h <<\_ACEOF
12223 #define HAVE_ICONV 1
12224 _ACEOF
12225
12226   fi
12227   if test "$am_cv_lib_iconv" = yes; then
12228     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12229 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12230     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12231 echo "${ECHO_T}$LIBICONV" >&6; }
12232   else
12233             CPPFLAGS="$am_save_CPPFLAGS"
12234     LIBICONV=
12235     LTLIBICONV=
12236   fi
12237
12238
12239
12240   if test "$am_cv_func_iconv" = yes; then
12241     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12242 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12243     if test "${am_cv_proto_iconv+set}" = set; then
12244   echo $ECHO_N "(cached) $ECHO_C" >&6
12245 else
12246
12247       cat >conftest.$ac_ext <<_ACEOF
12248 /* confdefs.h.  */
12249 _ACEOF
12250 cat confdefs.h >>conftest.$ac_ext
12251 cat >>conftest.$ac_ext <<_ACEOF
12252 /* end confdefs.h.  */
12253
12254 #include <stdlib.h>
12255 #include <iconv.h>
12256 extern
12257 #ifdef __cplusplus
12258 "C"
12259 #endif
12260 #if defined(__STDC__) || defined(__cplusplus)
12261 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12262 #else
12263 size_t iconv();
12264 #endif
12265
12266 int
12267 main ()
12268 {
12269
12270   ;
12271   return 0;
12272 }
12273 _ACEOF
12274 rm -f conftest.$ac_objext
12275 if { (ac_try="$ac_compile"
12276 case "(($ac_try" in
12277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278   *) ac_try_echo=$ac_try;;
12279 esac
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281   (eval "$ac_compile") 2>conftest.er1
12282   ac_status=$?
12283   grep -v '^ *+' conftest.er1 >conftest.err
12284   rm -f conftest.er1
12285   cat conftest.err >&5
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); } && {
12288          test -z "$ac_c_werror_flag" ||
12289          test ! -s conftest.err
12290        } && test -s conftest.$ac_objext; then
12291   am_cv_proto_iconv_arg1=""
12292 else
12293   echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12295
12296         am_cv_proto_iconv_arg1="const"
12297 fi
12298
12299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12300       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
12301 fi
12302
12303     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12304     { echo "$as_me:$LINENO: result: ${ac_t:-
12305          }$am_cv_proto_iconv" >&5
12306 echo "${ECHO_T}${ac_t:-
12307          }$am_cv_proto_iconv" >&6; }
12308
12309 cat >>confdefs.h <<_ACEOF
12310 #define ICONV_CONST $am_cv_proto_iconv_arg1
12311 _ACEOF
12312
12313   fi
12314
12315
12316   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12317 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12318 if test "${am_cv_langinfo_codeset+set}" = set; then
12319   echo $ECHO_N "(cached) $ECHO_C" >&6
12320 else
12321   cat >conftest.$ac_ext <<_ACEOF
12322 /* confdefs.h.  */
12323 _ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h.  */
12327 #include <langinfo.h>
12328 int
12329 main ()
12330 {
12331 char* cs = nl_langinfo(CODESET);
12332   ;
12333   return 0;
12334 }
12335 _ACEOF
12336 rm -f conftest.$ac_objext conftest$ac_exeext
12337 if { (ac_try="$ac_link"
12338 case "(($ac_try" in
12339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340   *) ac_try_echo=$ac_try;;
12341 esac
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343   (eval "$ac_link") 2>conftest.er1
12344   ac_status=$?
12345   grep -v '^ *+' conftest.er1 >conftest.err
12346   rm -f conftest.er1
12347   cat conftest.err >&5
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); } && {
12350          test -z "$ac_c_werror_flag" ||
12351          test ! -s conftest.err
12352        } && test -s conftest$ac_exeext &&
12353        $as_test_x conftest$ac_exeext; then
12354   am_cv_langinfo_codeset=yes
12355 else
12356   echo "$as_me: failed program was:" >&5
12357 sed 's/^/| /' conftest.$ac_ext >&5
12358
12359         am_cv_langinfo_codeset=no
12360 fi
12361
12362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12363       conftest$ac_exeext conftest.$ac_ext
12364
12365 fi
12366 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12367 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12368   if test $am_cv_langinfo_codeset = yes; then
12369
12370 cat >>confdefs.h <<\_ACEOF
12371 #define HAVE_LANGINFO_CODESET 1
12372 _ACEOF
12373
12374   fi
12375
12376   if test $ac_cv_header_locale_h = yes; then
12377
12378   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12379 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12380 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12381   echo $ECHO_N "(cached) $ECHO_C" >&6
12382 else
12383   cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389 #include <locale.h>
12390 int
12391 main ()
12392 {
12393 return LC_MESSAGES
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 rm -f conftest.$ac_objext conftest$ac_exeext
12399 if { (ac_try="$ac_link"
12400 case "(($ac_try" in
12401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12402   *) ac_try_echo=$ac_try;;
12403 esac
12404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12405   (eval "$ac_link") 2>conftest.er1
12406   ac_status=$?
12407   grep -v '^ *+' conftest.er1 >conftest.err
12408   rm -f conftest.er1
12409   cat conftest.err >&5
12410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12411   (exit $ac_status); } && {
12412          test -z "$ac_c_werror_flag" ||
12413          test ! -s conftest.err
12414        } && test -s conftest$ac_exeext &&
12415        $as_test_x conftest$ac_exeext; then
12416   gt_cv_val_LC_MESSAGES=yes
12417 else
12418   echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12420
12421         gt_cv_val_LC_MESSAGES=no
12422 fi
12423
12424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12425       conftest$ac_exeext conftest.$ac_ext
12426 fi
12427 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12428 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12429   if test $gt_cv_val_LC_MESSAGES = yes; then
12430
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_LC_MESSAGES 1
12433 _ACEOF
12434
12435   fi
12436
12437   fi
12438
12439   if test -n "$INTL_MACOSX_LIBS"; then
12440     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12441   fi
12442
12443                       for ac_prog in bison
12444 do
12445   # Extract the first word of "$ac_prog", so it can be a program name with args.
12446 set dummy $ac_prog; ac_word=$2
12447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12449 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12450   echo $ECHO_N "(cached) $ECHO_C" >&6
12451 else
12452   if test -n "$INTLBISON"; then
12453   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12454 else
12455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12456 for as_dir in $PATH
12457 do
12458   IFS=$as_save_IFS
12459   test -z "$as_dir" && as_dir=.
12460   for ac_exec_ext in '' $ac_executable_extensions; do
12461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12462     ac_cv_prog_INTLBISON="$ac_prog"
12463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12464     break 2
12465   fi
12466 done
12467 done
12468 IFS=$as_save_IFS
12469
12470 fi
12471 fi
12472 INTLBISON=$ac_cv_prog_INTLBISON
12473 if test -n "$INTLBISON"; then
12474   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12475 echo "${ECHO_T}$INTLBISON" >&6; }
12476 else
12477   { echo "$as_me:$LINENO: result: no" >&5
12478 echo "${ECHO_T}no" >&6; }
12479 fi
12480
12481
12482   test -n "$INTLBISON" && break
12483 done
12484
12485   if test -z "$INTLBISON"; then
12486     ac_verc_fail=yes
12487   else
12488         { echo "$as_me:$LINENO: checking version of bison" >&5
12489 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12490     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12491     case $ac_prog_version in
12492       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12493       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12494          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12495       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12496     esac
12497     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12498 echo "${ECHO_T}$ac_prog_version" >&6; }
12499   fi
12500   if test $ac_verc_fail = yes; then
12501     INTLBISON=:
12502   fi
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12520 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12521 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12522   echo $ECHO_N "(cached) $ECHO_C" >&6
12523 else
12524   gt_save_CPPFLAGS="$CPPFLAGS"
12525      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12526      gt_save_LIBS="$LIBS"
12527      LIBS="$LIBS -framework CoreFoundation"
12528      cat >conftest.$ac_ext <<_ACEOF
12529 /* confdefs.h.  */
12530 _ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h.  */
12534 #include <CFPreferences.h>
12535 int
12536 main ()
12537 {
12538 CFPreferencesCopyAppValue(NULL, NULL)
12539   ;
12540   return 0;
12541 }
12542 _ACEOF
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547   *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550   (eval "$ac_link") 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } && {
12557          test -z "$ac_c_werror_flag" ||
12558          test ! -s conftest.err
12559        } && test -s conftest$ac_exeext &&
12560        $as_test_x conftest$ac_exeext; then
12561   gt_cv_func_CFPreferencesCopyAppValue=yes
12562 else
12563   echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12565
12566         gt_cv_func_CFPreferencesCopyAppValue=no
12567 fi
12568
12569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12570       conftest$ac_exeext conftest.$ac_ext
12571      CPPFLAGS="$gt_save_CPPFLAGS"
12572      LIBS="$gt_save_LIBS"
12573 fi
12574 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12575 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12576   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12577
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12580 _ACEOF
12581
12582   fi
12583     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12584 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12585 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12586   echo $ECHO_N "(cached) $ECHO_C" >&6
12587 else
12588   gt_save_CPPFLAGS="$CPPFLAGS"
12589      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12590      gt_save_LIBS="$LIBS"
12591      LIBS="$LIBS -framework CoreFoundation"
12592      cat >conftest.$ac_ext <<_ACEOF
12593 /* confdefs.h.  */
12594 _ACEOF
12595 cat confdefs.h >>conftest.$ac_ext
12596 cat >>conftest.$ac_ext <<_ACEOF
12597 /* end confdefs.h.  */
12598 #include <CFLocale.h>
12599 int
12600 main ()
12601 {
12602 CFLocaleCopyCurrent();
12603   ;
12604   return 0;
12605 }
12606 _ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611   *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614   (eval "$ac_link") 2>conftest.er1
12615   ac_status=$?
12616   grep -v '^ *+' conftest.er1 >conftest.err
12617   rm -f conftest.er1
12618   cat conftest.err >&5
12619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620   (exit $ac_status); } && {
12621          test -z "$ac_c_werror_flag" ||
12622          test ! -s conftest.err
12623        } && test -s conftest$ac_exeext &&
12624        $as_test_x conftest$ac_exeext; then
12625   gt_cv_func_CFLocaleCopyCurrent=yes
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630         gt_cv_func_CFLocaleCopyCurrent=no
12631 fi
12632
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634       conftest$ac_exeext conftest.$ac_ext
12635      CPPFLAGS="$gt_save_CPPFLAGS"
12636      LIBS="$gt_save_LIBS"
12637 fi
12638 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12639 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12640   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12641
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_CFLOCALECOPYCURRENT 1
12644 _ACEOF
12645
12646   fi
12647   INTL_MACOSX_LIBS=
12648   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12649     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12650   fi
12651
12652
12653
12654
12655   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12656 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12657     # Check whether --enable-nls was given.
12658 if test "${enable_nls+set}" = set; then
12659   enableval=$enable_nls; USE_NLS=$enableval
12660 else
12661   USE_NLS=yes
12662 fi
12663
12664   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12665 echo "${ECHO_T}$USE_NLS" >&6; }
12666
12667
12668
12669
12670     BUILD_INCLUDED_LIBINTL=no
12671     USE_INCLUDED_LIBINTL=no
12672
12673   LIBINTL=
12674   LTLIBINTL=
12675   POSUB=
12676
12677     if test "$USE_NLS" = "yes"; then
12678     gt_use_preinstalled_gnugettext=no
12679
12680       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12681 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12682
12683 # Check whether --with-included-gettext was given.
12684 if test "${with_included_gettext+set}" = set; then
12685   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12686 else
12687   nls_cv_force_use_gnu_gettext=no
12688 fi
12689
12690       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12691 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12692
12693       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12694       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12695
12696
12697
12698
12699
12700
12701         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12702 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12703 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12704   echo $ECHO_N "(cached) $ECHO_C" >&6
12705 else
12706   cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h.  */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h.  */
12712 #include <libintl.h>
12713 extern int _nl_msg_cat_cntr;
12714 extern int *_nl_domain_bindings;
12715 int
12716 main ()
12717 {
12718 bindtextdomain ("", "");
12719 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 rm -f conftest.$ac_objext conftest$ac_exeext
12725 if { (ac_try="$ac_link"
12726 case "(($ac_try" in
12727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12728   *) ac_try_echo=$ac_try;;
12729 esac
12730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12731   (eval "$ac_link") 2>conftest.er1
12732   ac_status=$?
12733   grep -v '^ *+' conftest.er1 >conftest.err
12734   rm -f conftest.er1
12735   cat conftest.err >&5
12736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12737   (exit $ac_status); } && {
12738          test -z "$ac_c_werror_flag" ||
12739          test ! -s conftest.err
12740        } && test -s conftest$ac_exeext &&
12741        $as_test_x conftest$ac_exeext; then
12742   gt_cv_func_gnugettext1_libc=yes
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747         gt_cv_func_gnugettext1_libc=no
12748 fi
12749
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751       conftest$ac_exeext conftest.$ac_ext
12752 fi
12753 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12754 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12755
12756         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12757
12758
12759
12760     use_additional=yes
12761
12762   acl_save_prefix="$prefix"
12763   prefix="$acl_final_prefix"
12764   acl_save_exec_prefix="$exec_prefix"
12765   exec_prefix="$acl_final_exec_prefix"
12766
12767     eval additional_includedir=\"$includedir\"
12768     eval additional_libdir=\"$libdir\"
12769
12770   exec_prefix="$acl_save_exec_prefix"
12771   prefix="$acl_save_prefix"
12772
12773
12774 # Check whether --with-libintl-prefix was given.
12775 if test "${with_libintl_prefix+set}" = set; then
12776   withval=$with_libintl_prefix;
12777     if test "X$withval" = "Xno"; then
12778       use_additional=no
12779     else
12780       if test "X$withval" = "X"; then
12781
12782   acl_save_prefix="$prefix"
12783   prefix="$acl_final_prefix"
12784   acl_save_exec_prefix="$exec_prefix"
12785   exec_prefix="$acl_final_exec_prefix"
12786
12787           eval additional_includedir=\"$includedir\"
12788           eval additional_libdir=\"$libdir\"
12789
12790   exec_prefix="$acl_save_exec_prefix"
12791   prefix="$acl_save_prefix"
12792
12793       else
12794         additional_includedir="$withval/include"
12795         additional_libdir="$withval/lib"
12796       fi
12797     fi
12798
12799 fi
12800
12801       LIBINTL=
12802   LTLIBINTL=
12803   INCINTL=
12804   rpathdirs=
12805   ltrpathdirs=
12806   names_already_handled=
12807   names_next_round='intl '
12808   while test -n "$names_next_round"; do
12809     names_this_round="$names_next_round"
12810     names_next_round=
12811     for name in $names_this_round; do
12812       already_handled=
12813       for n in $names_already_handled; do
12814         if test "$n" = "$name"; then
12815           already_handled=yes
12816           break
12817         fi
12818       done
12819       if test -z "$already_handled"; then
12820         names_already_handled="$names_already_handled $name"
12821                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12822         eval value=\"\$HAVE_LIB$uppername\"
12823         if test -n "$value"; then
12824           if test "$value" = yes; then
12825             eval value=\"\$LIB$uppername\"
12826             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12827             eval value=\"\$LTLIB$uppername\"
12828             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12829           else
12830                                     :
12831           fi
12832         else
12833                               found_dir=
12834           found_la=
12835           found_so=
12836           found_a=
12837           if test $use_additional = yes; then
12838             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12839               found_dir="$additional_libdir"
12840               found_so="$additional_libdir/lib$name.$shlibext"
12841               if test -f "$additional_libdir/lib$name.la"; then
12842                 found_la="$additional_libdir/lib$name.la"
12843               fi
12844             else
12845               if test -f "$additional_libdir/lib$name.$libext"; then
12846                 found_dir="$additional_libdir"
12847                 found_a="$additional_libdir/lib$name.$libext"
12848                 if test -f "$additional_libdir/lib$name.la"; then
12849                   found_la="$additional_libdir/lib$name.la"
12850                 fi
12851               fi
12852             fi
12853           fi
12854           if test "X$found_dir" = "X"; then
12855             for x in $LDFLAGS $LTLIBINTL; do
12856
12857   acl_save_prefix="$prefix"
12858   prefix="$acl_final_prefix"
12859   acl_save_exec_prefix="$exec_prefix"
12860   exec_prefix="$acl_final_exec_prefix"
12861   eval x=\"$x\"
12862   exec_prefix="$acl_save_exec_prefix"
12863   prefix="$acl_save_prefix"
12864
12865               case "$x" in
12866                 -L*)
12867                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12868                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12869                     found_dir="$dir"
12870                     found_so="$dir/lib$name.$shlibext"
12871                     if test -f "$dir/lib$name.la"; then
12872                       found_la="$dir/lib$name.la"
12873                     fi
12874                   else
12875                     if test -f "$dir/lib$name.$libext"; then
12876                       found_dir="$dir"
12877                       found_a="$dir/lib$name.$libext"
12878                       if test -f "$dir/lib$name.la"; then
12879                         found_la="$dir/lib$name.la"
12880                       fi
12881                     fi
12882                   fi
12883                   ;;
12884               esac
12885               if test "X$found_dir" != "X"; then
12886                 break
12887               fi
12888             done
12889           fi
12890           if test "X$found_dir" != "X"; then
12891                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12892             if test "X$found_so" != "X"; then
12893                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12894                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12895               else
12896                                                                                 haveit=
12897                 for x in $ltrpathdirs; do
12898                   if test "X$x" = "X$found_dir"; then
12899                     haveit=yes
12900                     break
12901                   fi
12902                 done
12903                 if test -z "$haveit"; then
12904                   ltrpathdirs="$ltrpathdirs $found_dir"
12905                 fi
12906                                 if test "$hardcode_direct" = yes; then
12907                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12908                 else
12909                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12910                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12911                                                             haveit=
12912                     for x in $rpathdirs; do
12913                       if test "X$x" = "X$found_dir"; then
12914                         haveit=yes
12915                         break
12916                       fi
12917                     done
12918                     if test -z "$haveit"; then
12919                       rpathdirs="$rpathdirs $found_dir"
12920                     fi
12921                   else
12922                                                                                 haveit=
12923                     for x in $LDFLAGS $LIBINTL; do
12924
12925   acl_save_prefix="$prefix"
12926   prefix="$acl_final_prefix"
12927   acl_save_exec_prefix="$exec_prefix"
12928   exec_prefix="$acl_final_exec_prefix"
12929   eval x=\"$x\"
12930   exec_prefix="$acl_save_exec_prefix"
12931   prefix="$acl_save_prefix"
12932
12933                       if test "X$x" = "X-L$found_dir"; then
12934                         haveit=yes
12935                         break
12936                       fi
12937                     done
12938                     if test -z "$haveit"; then
12939                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12940                     fi
12941                     if test "$hardcode_minus_L" != no; then
12942                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12943                     else
12944                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12945                     fi
12946                   fi
12947                 fi
12948               fi
12949             else
12950               if test "X$found_a" != "X"; then
12951                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12952               else
12953                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12954               fi
12955             fi
12956                         additional_includedir=
12957             case "$found_dir" in
12958               */lib | */lib/)
12959                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12960                 additional_includedir="$basedir/include"
12961                 ;;
12962             esac
12963             if test "X$additional_includedir" != "X"; then
12964                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12965                 haveit=
12966                 if test "X$additional_includedir" = "X/usr/local/include"; then
12967                   if test -n "$GCC"; then
12968                     case $host_os in
12969                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12970                     esac
12971                   fi
12972                 fi
12973                 if test -z "$haveit"; then
12974                   for x in $CPPFLAGS $INCINTL; do
12975
12976   acl_save_prefix="$prefix"
12977   prefix="$acl_final_prefix"
12978   acl_save_exec_prefix="$exec_prefix"
12979   exec_prefix="$acl_final_exec_prefix"
12980   eval x=\"$x\"
12981   exec_prefix="$acl_save_exec_prefix"
12982   prefix="$acl_save_prefix"
12983
12984                     if test "X$x" = "X-I$additional_includedir"; then
12985                       haveit=yes
12986                       break
12987                     fi
12988                   done
12989                   if test -z "$haveit"; then
12990                     if test -d "$additional_includedir"; then
12991                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12992                     fi
12993                   fi
12994                 fi
12995               fi
12996             fi
12997                         if test -n "$found_la"; then
12998                                                         save_libdir="$libdir"
12999               case "$found_la" in
13000                 */* | *\\*) . "$found_la" ;;
13001                 *) . "./$found_la" ;;
13002               esac
13003               libdir="$save_libdir"
13004                             for dep in $dependency_libs; do
13005                 case "$dep" in
13006                   -L*)
13007                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13008                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13009                       haveit=
13010                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13011                         if test -n "$GCC"; then
13012                           case $host_os in
13013                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13014                           esac
13015                         fi
13016                       fi
13017                       if test -z "$haveit"; then
13018                         haveit=
13019                         for x in $LDFLAGS $LIBINTL; do
13020
13021   acl_save_prefix="$prefix"
13022   prefix="$acl_final_prefix"
13023   acl_save_exec_prefix="$exec_prefix"
13024   exec_prefix="$acl_final_exec_prefix"
13025   eval x=\"$x\"
13026   exec_prefix="$acl_save_exec_prefix"
13027   prefix="$acl_save_prefix"
13028
13029                           if test "X$x" = "X-L$additional_libdir"; then
13030                             haveit=yes
13031                             break
13032                           fi
13033                         done
13034                         if test -z "$haveit"; then
13035                           if test -d "$additional_libdir"; then
13036                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13037                           fi
13038                         fi
13039                         haveit=
13040                         for x in $LDFLAGS $LTLIBINTL; do
13041
13042   acl_save_prefix="$prefix"
13043   prefix="$acl_final_prefix"
13044   acl_save_exec_prefix="$exec_prefix"
13045   exec_prefix="$acl_final_exec_prefix"
13046   eval x=\"$x\"
13047   exec_prefix="$acl_save_exec_prefix"
13048   prefix="$acl_save_prefix"
13049
13050                           if test "X$x" = "X-L$additional_libdir"; then
13051                             haveit=yes
13052                             break
13053                           fi
13054                         done
13055                         if test -z "$haveit"; then
13056                           if test -d "$additional_libdir"; then
13057                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13058                           fi
13059                         fi
13060                       fi
13061                     fi
13062                     ;;
13063                   -R*)
13064                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13065                     if test "$enable_rpath" != no; then
13066                                                                   haveit=
13067                       for x in $rpathdirs; do
13068                         if test "X$x" = "X$dir"; then
13069                           haveit=yes
13070                           break
13071                         fi
13072                       done
13073                       if test -z "$haveit"; then
13074                         rpathdirs="$rpathdirs $dir"
13075                       fi
13076                                                                   haveit=
13077                       for x in $ltrpathdirs; do
13078                         if test "X$x" = "X$dir"; then
13079                           haveit=yes
13080                           break
13081                         fi
13082                       done
13083                       if test -z "$haveit"; then
13084                         ltrpathdirs="$ltrpathdirs $dir"
13085                       fi
13086                     fi
13087                     ;;
13088                   -l*)
13089                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13090                     ;;
13091                   *.la)
13092                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13093                     ;;
13094                   *)
13095                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13096                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13097                     ;;
13098                 esac
13099               done
13100             fi
13101           else
13102                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13103             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13104           fi
13105         fi
13106       fi
13107     done
13108   done
13109   if test "X$rpathdirs" != "X"; then
13110     if test -n "$hardcode_libdir_separator"; then
13111                         alldirs=
13112       for found_dir in $rpathdirs; do
13113         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13114       done
13115             acl_save_libdir="$libdir"
13116       libdir="$alldirs"
13117       eval flag=\"$hardcode_libdir_flag_spec\"
13118       libdir="$acl_save_libdir"
13119       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13120     else
13121             for found_dir in $rpathdirs; do
13122         acl_save_libdir="$libdir"
13123         libdir="$found_dir"
13124         eval flag=\"$hardcode_libdir_flag_spec\"
13125         libdir="$acl_save_libdir"
13126         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13127       done
13128     fi
13129   fi
13130   if test "X$ltrpathdirs" != "X"; then
13131             for found_dir in $ltrpathdirs; do
13132       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13133     done
13134   fi
13135
13136           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13137 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13138 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   gt_save_CPPFLAGS="$CPPFLAGS"
13142             CPPFLAGS="$CPPFLAGS $INCINTL"
13143             gt_save_LIBS="$LIBS"
13144             LIBS="$LIBS $LIBINTL"
13145                         cat >conftest.$ac_ext <<_ACEOF
13146 /* confdefs.h.  */
13147 _ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h.  */
13151 #include <libintl.h>
13152 extern int _nl_msg_cat_cntr;
13153 extern
13154 #ifdef __cplusplus
13155 "C"
13156 #endif
13157 const char *_nl_expand_alias (const char *);
13158 int
13159 main ()
13160 {
13161 bindtextdomain ("", "");
13162 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_link") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } && {
13181          test -z "$ac_c_werror_flag" ||
13182          test ! -s conftest.err
13183        } && test -s conftest$ac_exeext &&
13184        $as_test_x conftest$ac_exeext; then
13185   gt_cv_func_gnugettext1_libintl=yes
13186 else
13187   echo "$as_me: failed program was:" >&5
13188 sed 's/^/| /' conftest.$ac_ext >&5
13189
13190         gt_cv_func_gnugettext1_libintl=no
13191 fi
13192
13193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13194       conftest$ac_exeext conftest.$ac_ext
13195                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13196               LIBS="$LIBS $LIBICONV"
13197               cat >conftest.$ac_ext <<_ACEOF
13198 /* confdefs.h.  */
13199 _ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h.  */
13203 #include <libintl.h>
13204 extern int _nl_msg_cat_cntr;
13205 extern
13206 #ifdef __cplusplus
13207 "C"
13208 #endif
13209 const char *_nl_expand_alias (const char *);
13210 int
13211 main ()
13212 {
13213 bindtextdomain ("", "");
13214 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13215   ;
13216   return 0;
13217 }
13218 _ACEOF
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223   *) ac_try_echo=$ac_try;;
13224 esac
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226   (eval "$ac_link") 2>conftest.er1
13227   ac_status=$?
13228   grep -v '^ *+' conftest.er1 >conftest.err
13229   rm -f conftest.er1
13230   cat conftest.err >&5
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); } && {
13233          test -z "$ac_c_werror_flag" ||
13234          test ! -s conftest.err
13235        } && test -s conftest$ac_exeext &&
13236        $as_test_x conftest$ac_exeext; then
13237   LIBINTL="$LIBINTL $LIBICONV"
13238                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13239                 gt_cv_func_gnugettext1_libintl=yes
13240
13241 else
13242   echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13244
13245
13246 fi
13247
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249       conftest$ac_exeext conftest.$ac_ext
13250             fi
13251             CPPFLAGS="$gt_save_CPPFLAGS"
13252             LIBS="$gt_save_LIBS"
13253 fi
13254 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13255 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13256         fi
13257
13258                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13259            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13260                 && test "$PACKAGE" != gettext-runtime \
13261                 && test "$PACKAGE" != gettext-tools; }; then
13262           gt_use_preinstalled_gnugettext=yes
13263         else
13264                     LIBINTL=
13265           LTLIBINTL=
13266           INCINTL=
13267         fi
13268
13269
13270         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13271                               nls_cv_use_gnu_gettext=yes
13272         fi
13273       fi
13274
13275       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13276                 BUILD_INCLUDED_LIBINTL=yes
13277         USE_INCLUDED_LIBINTL=yes
13278         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13279         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13280         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13281       fi
13282
13283       CATOBJEXT=
13284       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13285          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13286                 CATOBJEXT=.gmo
13287       fi
13288
13289
13290     if test -n "$INTL_MACOSX_LIBS"; then
13291       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13292          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13293                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13294         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13295       fi
13296     fi
13297
13298     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13299        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13300
13301 cat >>confdefs.h <<\_ACEOF
13302 #define ENABLE_NLS 1
13303 _ACEOF
13304
13305     else
13306       USE_NLS=no
13307     fi
13308   fi
13309
13310   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13311 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13312   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13313 echo "${ECHO_T}$USE_NLS" >&6; }
13314   if test "$USE_NLS" = "yes"; then
13315     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13316 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13317     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13318       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13319         gt_source="external libintl"
13320       else
13321         gt_source="libc"
13322       fi
13323     else
13324       gt_source="included intl directory"
13325     fi
13326     { echo "$as_me:$LINENO: result: $gt_source" >&5
13327 echo "${ECHO_T}$gt_source" >&6; }
13328   fi
13329
13330   if test "$USE_NLS" = "yes"; then
13331
13332     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13333       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13334         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13335 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13336         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13337 echo "${ECHO_T}$LIBINTL" >&6; }
13338
13339   for element in $INCINTL; do
13340     haveit=
13341     for x in $CPPFLAGS; do
13342
13343   acl_save_prefix="$prefix"
13344   prefix="$acl_final_prefix"
13345   acl_save_exec_prefix="$exec_prefix"
13346   exec_prefix="$acl_final_exec_prefix"
13347   eval x=\"$x\"
13348   exec_prefix="$acl_save_exec_prefix"
13349   prefix="$acl_save_prefix"
13350
13351       if test "X$x" = "X$element"; then
13352         haveit=yes
13353         break
13354       fi
13355     done
13356     if test -z "$haveit"; then
13357       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13358     fi
13359   done
13360
13361       fi
13362
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_GETTEXT 1
13366 _ACEOF
13367
13368
13369 cat >>confdefs.h <<\_ACEOF
13370 #define HAVE_DCGETTEXT 1
13371 _ACEOF
13372
13373     fi
13374
13375         POSUB=po
13376   fi
13377
13378
13379             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13380       BUILD_INCLUDED_LIBINTL=yes
13381     fi
13382
13383
13384
13385
13386
13387         nls_cv_header_intl=
13388     nls_cv_header_libgt=
13389
13390         DATADIRNAME=share
13391
13392
13393         INSTOBJEXT=.mo
13394
13395
13396         GENCAT=gencat
13397
13398
13399         INTLOBJS=
13400     if test "$USE_INCLUDED_LIBINTL" = yes; then
13401       INTLOBJS="\$(GETTOBJS)"
13402     fi
13403
13404
13405         INTL_LIBTOOL_SUFFIX_PREFIX=
13406
13407
13408
13409     INTLLIBS="$LIBINTL"
13410
13411
13412
13413
13414
13415
13416 fi
13417
13418
13419 support_mysql=no
13420 support_sqlite=no
13421 support_sqlite3=no
13422 support_postgresql=no
13423 support_smartalloc=yes
13424 support_readline=yes
13425 support_conio=yes
13426 support_gnome=no
13427 support_bat=no
13428 support_wx_console=no
13429 support_tls=no
13430 support_crypto=no
13431 gnome_version=
13432 wx_version=
13433 support_static_tools=no
13434 support_static_fd=no
13435 support_static_sd=no
13436 support_static_dir=no
13437 support_static_cons=no
13438 support_python=no
13439 build_client_only=no
13440 build_dird=yes
13441 build_stored=yes
13442 cats=
13443 db_type=Internal
13444 DB_TYPE=bdb
13445
13446
13447 # -------------------------------------------
13448 # gnome (default off)
13449 # -------------------------------------------
13450 # Check whether --enable-gnome was given.
13451 if test "${enable_gnome+set}" = set; then
13452   enableval=$enable_gnome; if test x$enableval = xyes; then
13453     support_gnome=yes
13454   fi
13455 fi
13456
13457
13458 GNOME_DIR=
13459 if test x$support_gnome = xyes; then
13460   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13461   pkg=$?
13462   if test $pkg = 0; then
13463      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13464      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13465      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13466      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13467
13468
13469
13470
13471      GNOME_DIR=src/gnome2-console
13472      gnome_version="Version 2.x"
13473   else
13474      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13475 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13476    { (exit 1); exit 1; }; }
13477   fi
13478 fi
13479
13480
13481 # -------------------------------------------
13482 # bat (default off)
13483 # -------------------------------------------
13484 # Check whether --enable-bat was given.
13485 if test "${enable_bat+set}" = set; then
13486   enableval=$enable_bat; if test x$enableval = xyes; then
13487
13488 cat >>confdefs.h <<\_ACEOF
13489 #define HAVE_BAT 1
13490 _ACEOF
13491
13492     support_bat=yes
13493   fi
13494 fi
13495
13496
13497 BAT_DIR=
13498 if test x$support_bat = xyes; then
13499   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13500   pkg=$?
13501   if test $pkg = 0; then
13502      BAT_DIR=src/qt-console
13503   else
13504      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13505 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13506    { (exit 1); exit 1; }; }
13507   fi
13508 fi
13509
13510 #
13511 #  If bat is enabled, we need the qwt library
13512 got_qwt=no
13513 QWT_INC=
13514 QWT_LDFLAGS=
13515 if test x$support_bat = xyes; then
13516    { echo "$as_me:$LINENO: checking for qwt support" >&5
13517 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13518
13519 # Check whether --with-qwt was given.
13520 if test "${with_qwt+set}" = set; then
13521   withval=$with_qwt;
13522         case "$with_qwt" in
13523         no)
13524           ;;
13525         yes|*)
13526           if test -f ${with_qwt}/include/qwt.h; then
13527              QWT_INC="${with_qwt}/include"
13528              QWT_LDFLAGS="-L${with_qwt}/lib"
13529           fi
13530           ;;
13531         esac
13532
13533
13534 fi
13535
13536 #
13537 # Search in standard places, or --with-qwt not specified
13538 #
13539    if test x$QWT_INC = x; then
13540       for root in /usr /usr/local; do
13541          for ver in qwt qwt5 qwt-qt4; do
13542             if test -f ${root}/include/${ver}/qwt.h; then
13543                QWT_INC="${root}/include/${ver}"
13544                if test -d ${root}/lib64/; then
13545                   QWT_LDFLAGS="-L${root}/lib64"
13546                else
13547                   QWT_LDFLAGS="-L${root}/lib"
13548                fi
13549                got_qwt=yes
13550                break;
13551             fi
13552          done
13553       done
13554    fi
13555    if test x$QWT_INC = x; then
13556       { echo "$as_me:$LINENO: result: no" >&5
13557 echo "${ECHO_T}no" >&6; }
13558       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13559 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13560    { (exit 1); exit 1; }; }
13561       BAT_DIR=
13562       support_bat=no
13563    else
13564       { echo "$as_me:$LINENO: result: yes" >&5
13565 echo "${ECHO_T}yes" >&6; }
13566    fi
13567 fi
13568
13569
13570
13571
13572
13573
13574 # -------------------------------------------
13575 # bwx-console (default off)
13576 # -------------------------------------------
13577 # Check whether --enable-bwx-console was given.
13578 if test "${enable_bwx_console+set}" = set; then
13579   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13580     support_wx_console=yes
13581   fi
13582 fi
13583
13584
13585 WX_DIR=
13586 if test x$support_wx_console = xyes; then
13587   abc=`$WXCONFIG $WXFLAGS --cppflags`
13588   pkg=$?
13589   if test $pkg = 0; then
13590      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13591      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13592      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13593
13594
13595
13596      WX_DIR=src/wx-console
13597   else
13598      echo " "
13599      echo "wx-config program not found. bwx-console disabled."
13600      echo " "
13601      support_wx_console=no
13602   fi
13603 fi
13604
13605
13606
13607 # -------------------------------------------
13608 # tray-monitor (default off)
13609 # -------------------------------------------
13610 # Check whether --enable-tray-monitor was given.
13611 if test "${enable_tray_monitor+set}" = set; then
13612   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13613     support_tray_monitor=yes
13614   fi
13615 fi
13616
13617
13618 TRAY_MONITOR_DIR=
13619 if test x$support_tray_monitor = xyes; then
13620   abc=`$PKGCONFIG --exists gtk+-2.0`
13621   pkg=$?
13622   if test $pkg = 0; then
13623      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13624      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13625
13626
13627      TRAY_MONITOR_DIR=src/tray-monitor
13628      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13629      pkg=$?
13630      if test $pkg = 0; then
13631
13632 cat >>confdefs.h <<\_ACEOF
13633 #define HAVE_GTK_2_4 1
13634 _ACEOF
13635
13636      fi
13637   fi
13638 fi
13639
13640
13641 # -------------------------------------------
13642 # smartalloc (default off)
13643 # -------------------------------------------
13644 # Check whether --enable-smartalloc was given.
13645 if test "${enable_smartalloc+set}" = set; then
13646   enableval=$enable_smartalloc; if test x$enableval = xno; then
13647     support_smartalloc=no
13648   fi
13649 fi
13650
13651
13652 if test x$support_smartalloc = xyes; then
13653
13654 cat >>confdefs.h <<\_ACEOF
13655 #define SMARTALLOC 1
13656 _ACEOF
13657
13658 fi
13659
13660 # -------------------------------------------
13661 # static-tools (default off)
13662 # -------------------------------------------
13663 # Check whether --enable-static-tools was given.
13664 if test "${enable_static_tools+set}" = set; then
13665   enableval=$enable_static_tools; if test x$enableval = xyes; then
13666      support_static_tools=yes
13667    fi
13668 fi
13669
13670
13671 TTOOL_LDFLAGS=
13672 if test x$support_static_tools = xyes; then
13673    TTOOL_LDFLAGS="-static"
13674 fi
13675
13676
13677 # -------------------------------------------
13678 # static-fd    (default off)
13679 # -------------------------------------------
13680 # Check whether --enable-static-fd was given.
13681 if test "${enable_static_fd+set}" = set; then
13682   enableval=$enable_static_fd; if test x$enableval = xyes; then
13683      support_static_fd=yes
13684    fi
13685 fi
13686
13687
13688 STATIC_FD=
13689 if test x$support_static_fd = xyes; then
13690    STATIC_FD="static-bacula-fd"
13691 fi
13692
13693
13694 # -------------------------------------------
13695 # static-sd    (default off)
13696 # -------------------------------------------
13697 # Check whether --enable-static-sd was given.
13698 if test "${enable_static_sd+set}" = set; then
13699   enableval=$enable_static_sd; if test x$enableval = xyes; then
13700      support_static_sd=yes
13701    fi
13702 fi
13703
13704
13705 STATIC_SD=
13706 if test x$support_static_sd = xyes; then
13707    STATIC_SD="static-bacula-sd"
13708 fi
13709
13710
13711 # -------------------------------------------
13712 # static-dir   (default off)
13713 # -------------------------------------------
13714 # Check whether --enable-static-dir was given.
13715 if test "${enable_static_dir+set}" = set; then
13716   enableval=$enable_static_dir; if test x$enableval = xyes; then
13717      support_static_dir=yes
13718    fi
13719 fi
13720
13721
13722 STATIC_DIR=
13723 if test x$support_static_dir = xyes; then
13724    STATIC_DIR="static-bacula-dir"
13725 fi
13726
13727
13728 # -------------------------------------------
13729 # static-cons  (default off)
13730 # -------------------------------------------
13731 # Check whether --enable-static-cons was given.
13732 if test "${enable_static_cons+set}" = set; then
13733   enableval=$enable_static_cons; if test x$enableval = xyes; then
13734      support_static_cons=yes
13735    fi
13736 fi
13737
13738
13739 STATIC_CONS=
13740 STATIC_GNOME_CONS=
13741 STATIC_WX_CONS=
13742 if test x$support_static_cons = xyes; then
13743    STATIC_CONS="static-bconsole"
13744    STATIC_GNOME_CONS="static-bgnome-console"
13745    STATIC_WX_CONS="static-bwx-console"
13746 fi
13747
13748
13749
13750
13751 # -------------------------------------------
13752 # client_only  (default off)
13753 # -------------------------------------------
13754 # Check whether --enable-client-only was given.
13755 if test "${enable_client_only+set}" = set; then
13756   enableval=$enable_client_only; if test x$enableval = xyes; then
13757       build_client_only=yes
13758       db_type=None
13759       DB_TYPE=none
13760    fi
13761 fi
13762
13763 if test x$build_client_only = xno; then
13764    ALL_DIRS="subdirs"
13765 else
13766    ALL_DIRS=""
13767 fi
13768
13769
13770 # -------------------------------------------
13771 # director  (default on)
13772 # -------------------------------------------
13773 # Check whether --enable-build-dird was given.
13774 if test "${enable_build_dird+set}" = set; then
13775   enableval=$enable_build_dird; if test x$enableval = xno; then
13776       build_dird=no
13777    fi
13778 fi
13779
13780 if test x$build_dird = xyes; then
13781    DIRD_DIR="src/dird"
13782    DIR_TOOLS="DIRTOOLS"
13783 else
13784    DIRD_DIR=""
13785    DIR_TOOLS="NODIRTOOLS"
13786 fi
13787
13788
13789
13790 # -------------------------------------------
13791 # stored  (default on)
13792 # -------------------------------------------
13793 # Check whether --enable-build-stored was given.
13794 if test "${enable_build_stored+set}" = set; then
13795   enableval=$enable_build_stored; if test x$enableval = xno; then
13796       build_stored=no
13797    fi
13798 fi
13799
13800 if test x$build_stored = xyes; then
13801    STORED_DIR="src/stored"
13802 else
13803    STORED_DIR=""
13804 fi
13805
13806
13807 # ---------------------------------------------------
13808 # Check for conio (Bacula readline substitute)(
13809 # ---------------------------------------------------
13810 # this allows you to turn it completely off
13811 # Check whether --enable-conio was given.
13812 if test "${enable_conio+set}" = set; then
13813   enableval=$enable_conio; if test x$enableval = xno; then
13814      support_conio=no
13815   fi
13816
13817 fi
13818
13819
13820
13821 # ---------------------------------------------------
13822 # Check for IPv6 support
13823 # ---------------------------------------------------
13824 # this allows you to turn it completely off
13825 support_ipv6=yes
13826 # Check whether --enable-ipv6 was given.
13827 if test "${enable_ipv6+set}" = set; then
13828   enableval=$enable_ipv6; if test x$enableval = xno; then
13829      support_ipv6=no
13830   fi
13831
13832 fi
13833
13834
13835 if test x$support_ipv6 = xyes; then
13836     cat >conftest.$ac_ext <<_ACEOF
13837 /* confdefs.h.  */
13838 _ACEOF
13839 cat confdefs.h >>conftest.$ac_ext
13840 cat >>conftest.$ac_ext <<_ACEOF
13841 /* end confdefs.h.  */
13842  #include <sys/types.h>
13843 #include <sys/socket.h>
13844 #include <netinet/in.h>
13845 int
13846 main ()
13847 {
13848 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853 rm -f conftest.$ac_objext conftest$ac_exeext
13854 if { (ac_try="$ac_link"
13855 case "(($ac_try" in
13856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857   *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860   (eval "$ac_link") 2>conftest.er1
13861   ac_status=$?
13862   grep -v '^ *+' conftest.er1 >conftest.err
13863   rm -f conftest.er1
13864   cat conftest.err >&5
13865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866   (exit $ac_status); } && {
13867          test -z "$ac_c_werror_flag" ||
13868          test ! -s conftest.err
13869        } && test -s conftest$ac_exeext &&
13870        $as_test_x conftest$ac_exeext; then
13871   support_ipv6=yes
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876         support_ipv6=no
13877 fi
13878
13879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13880       conftest$ac_exeext conftest.$ac_ext
13881 fi
13882
13883 if test x$support_ipv6 = xyes; then
13884
13885 cat >>confdefs.h <<\_ACEOF
13886 #define HAVE_IPV6 1
13887 _ACEOF
13888
13889 fi
13890
13891
13892
13893 got_conio="no"
13894 if test x$support_conio = xyes; then
13895    if test "${ac_cv_header_termcap_h+set}" = set; then
13896   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13897 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13898 if test "${ac_cv_header_termcap_h+set}" = set; then
13899   echo $ECHO_N "(cached) $ECHO_C" >&6
13900 fi
13901 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13902 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13903 else
13904   # Is the header compilable?
13905 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13906 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913 $ac_includes_default
13914 #include <termcap.h>
13915 _ACEOF
13916 rm -f conftest.$ac_objext
13917 if { (ac_try="$ac_compile"
13918 case "(($ac_try" in
13919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920   *) ac_try_echo=$ac_try;;
13921 esac
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923   (eval "$ac_compile") 2>conftest.er1
13924   ac_status=$?
13925   grep -v '^ *+' conftest.er1 >conftest.err
13926   rm -f conftest.er1
13927   cat conftest.err >&5
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); } && {
13930          test -z "$ac_c_werror_flag" ||
13931          test ! -s conftest.err
13932        } && test -s conftest.$ac_objext; then
13933   ac_header_compiler=yes
13934 else
13935   echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13937
13938         ac_header_compiler=no
13939 fi
13940
13941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13943 echo "${ECHO_T}$ac_header_compiler" >&6; }
13944
13945 # Is the header present?
13946 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13947 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 #include <termcap.h>
13955 _ACEOF
13956 if { (ac_try="$ac_cpp conftest.$ac_ext"
13957 case "(($ac_try" in
13958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959   *) ac_try_echo=$ac_try;;
13960 esac
13961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13963   ac_status=$?
13964   grep -v '^ *+' conftest.er1 >conftest.err
13965   rm -f conftest.er1
13966   cat conftest.err >&5
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } >/dev/null && {
13969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13970          test ! -s conftest.err
13971        }; then
13972   ac_header_preproc=yes
13973 else
13974   echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13976
13977   ac_header_preproc=no
13978 fi
13979
13980 rm -f conftest.err conftest.$ac_ext
13981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13982 echo "${ECHO_T}$ac_header_preproc" >&6; }
13983
13984 # So?  What about this header?
13985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13986   yes:no: )
13987     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13988 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13989     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13990 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13991     ac_header_preproc=yes
13992     ;;
13993   no:yes:* )
13994     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13995 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13996     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13997 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13998     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13999 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14001 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14003 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14004     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14005 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14006
14007     ;;
14008 esac
14009 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14010 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14011 if test "${ac_cv_header_termcap_h+set}" = set; then
14012   echo $ECHO_N "(cached) $ECHO_C" >&6
14013 else
14014   ac_cv_header_termcap_h=$ac_header_preproc
14015 fi
14016 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14017 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14018
14019 fi
14020 if test $ac_cv_header_termcap_h = yes; then
14021    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14022 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14023 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14024   echo $ECHO_N "(cached) $ECHO_C" >&6
14025 else
14026   ac_check_lib_save_LIBS=$LIBS
14027 LIBS="-ltermcap  $LIBS"
14028 cat >conftest.$ac_ext <<_ACEOF
14029 /* confdefs.h.  */
14030 _ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h.  */
14034
14035 /* Override any GCC internal prototype to avoid an error.
14036    Use char because int might match the return type of a GCC
14037    builtin and then its argument prototype would still apply.  */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char tgetent ();
14042 int
14043 main ()
14044 {
14045 return tgetent ();
14046   ;
14047   return 0;
14048 }
14049 _ACEOF
14050 rm -f conftest.$ac_objext conftest$ac_exeext
14051 if { (ac_try="$ac_link"
14052 case "(($ac_try" in
14053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054   *) ac_try_echo=$ac_try;;
14055 esac
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057   (eval "$ac_link") 2>conftest.er1
14058   ac_status=$?
14059   grep -v '^ *+' conftest.er1 >conftest.err
14060   rm -f conftest.er1
14061   cat conftest.err >&5
14062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063   (exit $ac_status); } && {
14064          test -z "$ac_c_werror_flag" ||
14065          test ! -s conftest.err
14066        } && test -s conftest$ac_exeext &&
14067        $as_test_x conftest$ac_exeext; then
14068   ac_cv_lib_termcap_tgetent=yes
14069 else
14070   echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073         ac_cv_lib_termcap_tgetent=no
14074 fi
14075
14076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14077       conftest$ac_exeext conftest.$ac_ext
14078 LIBS=$ac_check_lib_save_LIBS
14079 fi
14080 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14081 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14082 if test $ac_cv_lib_termcap_tgetent = yes; then
14083    CONS_LIBS="-ltermcap"
14084          CONS_OBJ="conio.o"
14085          CONS_SRC="conio.c"
14086          got_conio="yes"
14087          support_readline=no
14088
14089 cat >>confdefs.h <<\_ACEOF
14090 #define HAVE_CONIO 1
14091 _ACEOF
14092
14093
14094 else
14095    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14096 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14097 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14098   echo $ECHO_N "(cached) $ECHO_C" >&6
14099 else
14100   ac_check_lib_save_LIBS=$LIBS
14101 LIBS="-lncurses  $LIBS"
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108
14109 /* Override any GCC internal prototype to avoid an error.
14110    Use char because int might match the return type of a GCC
14111    builtin and then its argument prototype would still apply.  */
14112 #ifdef __cplusplus
14113 extern "C"
14114 #endif
14115 char tgetent ();
14116 int
14117 main ()
14118 {
14119 return tgetent ();
14120   ;
14121   return 0;
14122 }
14123 _ACEOF
14124 rm -f conftest.$ac_objext conftest$ac_exeext
14125 if { (ac_try="$ac_link"
14126 case "(($ac_try" in
14127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128   *) ac_try_echo=$ac_try;;
14129 esac
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131   (eval "$ac_link") 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } && {
14138          test -z "$ac_c_werror_flag" ||
14139          test ! -s conftest.err
14140        } && test -s conftest$ac_exeext &&
14141        $as_test_x conftest$ac_exeext; then
14142   ac_cv_lib_ncurses_tgetent=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147         ac_cv_lib_ncurses_tgetent=no
14148 fi
14149
14150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14151       conftest$ac_exeext conftest.$ac_ext
14152 LIBS=$ac_check_lib_save_LIBS
14153 fi
14154 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14155 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14156 if test $ac_cv_lib_ncurses_tgetent = yes; then
14157    CONS_LIBS="-lncurses"
14158            CONS_OBJ="conio.o"
14159            CONS_SRC="conio.c"
14160            got_conio="yes"
14161            support_readline=no
14162
14163 cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_CONIO 1
14165 _ACEOF
14166
14167
14168 fi
14169
14170
14171 fi
14172
14173
14174 else
14175
14176
14177 for ac_header in curses.h
14178 do
14179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14181   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14184   echo $ECHO_N "(cached) $ECHO_C" >&6
14185 fi
14186 ac_res=`eval echo '${'$as_ac_Header'}'`
14187                { echo "$as_me:$LINENO: result: $ac_res" >&5
14188 echo "${ECHO_T}$ac_res" >&6; }
14189 else
14190   # Is the header compilable?
14191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 $ac_includes_default
14200 #include <$ac_header>
14201 _ACEOF
14202 rm -f conftest.$ac_objext
14203 if { (ac_try="$ac_compile"
14204 case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209   (eval "$ac_compile") 2>conftest.er1
14210   ac_status=$?
14211   grep -v '^ *+' conftest.er1 >conftest.err
14212   rm -f conftest.er1
14213   cat conftest.err >&5
14214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215   (exit $ac_status); } && {
14216          test -z "$ac_c_werror_flag" ||
14217          test ! -s conftest.err
14218        } && test -s conftest.$ac_objext; then
14219   ac_header_compiler=yes
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224         ac_header_compiler=no
14225 fi
14226
14227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14229 echo "${ECHO_T}$ac_header_compiler" >&6; }
14230
14231 # Is the header present?
14232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14234 cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h.  */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h.  */
14240 #include <$ac_header>
14241 _ACEOF
14242 if { (ac_try="$ac_cpp conftest.$ac_ext"
14243 case "(($ac_try" in
14244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14245   *) ac_try_echo=$ac_try;;
14246 esac
14247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14248   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14249   ac_status=$?
14250   grep -v '^ *+' conftest.er1 >conftest.err
14251   rm -f conftest.er1
14252   cat conftest.err >&5
14253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254   (exit $ac_status); } >/dev/null && {
14255          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14256          test ! -s conftest.err
14257        }; then
14258   ac_header_preproc=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263   ac_header_preproc=no
14264 fi
14265
14266 rm -f conftest.err conftest.$ac_ext
14267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14268 echo "${ECHO_T}$ac_header_preproc" >&6; }
14269
14270 # So?  What about this header?
14271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14272   yes:no: )
14273     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14275     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14277     ac_header_preproc=yes
14278     ;;
14279   no:yes:* )
14280     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14282     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14283 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14284     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14286     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14287 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14288     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14290     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14292
14293     ;;
14294 esac
14295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14298   echo $ECHO_N "(cached) $ECHO_C" >&6
14299 else
14300   eval "$as_ac_Header=\$ac_header_preproc"
14301 fi
14302 ac_res=`eval echo '${'$as_ac_Header'}'`
14303                { echo "$as_me:$LINENO: result: $ac_res" >&5
14304 echo "${ECHO_T}$ac_res" >&6; }
14305
14306 fi
14307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14308   cat >>confdefs.h <<_ACEOF
14309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14310 _ACEOF
14311
14312 fi
14313
14314 done
14315
14316          { echo "$as_me:$LINENO: checking for term.h" >&5
14317 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14318 if test "${ac_cv_header_term_h+set}" = set; then
14319   echo $ECHO_N "(cached) $ECHO_C" >&6
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327 #if HAVE_CURSES_H
14328 #include <curses.h>
14329 #endif
14330
14331
14332 #include <term.h>
14333 _ACEOF
14334 rm -f conftest.$ac_objext
14335 if { (ac_try="$ac_compile"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_compile") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } && {
14348          test -z "$ac_c_werror_flag" ||
14349          test ! -s conftest.err
14350        } && test -s conftest.$ac_objext; then
14351   ac_cv_header_term_h=yes
14352 else
14353   echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356         ac_cv_header_term_h=no
14357 fi
14358
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 fi
14361 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14362 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14363 if test $ac_cv_header_term_h = yes; then
14364    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14365 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14366 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14367   echo $ECHO_N "(cached) $ECHO_C" >&6
14368 else
14369   ac_check_lib_save_LIBS=$LIBS
14370 LIBS="-lcurses  $LIBS"
14371 cat >conftest.$ac_ext <<_ACEOF
14372 /* confdefs.h.  */
14373 _ACEOF
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h.  */
14377
14378 /* Override any GCC internal prototype to avoid an error.
14379    Use char because int might match the return type of a GCC
14380    builtin and then its argument prototype would still apply.  */
14381 #ifdef __cplusplus
14382 extern "C"
14383 #endif
14384 char tgetent ();
14385 int
14386 main ()
14387 {
14388 return tgetent ();
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 rm -f conftest.$ac_objext conftest$ac_exeext
14394 if { (ac_try="$ac_link"
14395 case "(($ac_try" in
14396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397   *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400   (eval "$ac_link") 2>conftest.er1
14401   ac_status=$?
14402   grep -v '^ *+' conftest.er1 >conftest.err
14403   rm -f conftest.er1
14404   cat conftest.err >&5
14405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406   (exit $ac_status); } && {
14407          test -z "$ac_c_werror_flag" ||
14408          test ! -s conftest.err
14409        } && test -s conftest$ac_exeext &&
14410        $as_test_x conftest$ac_exeext; then
14411   ac_cv_lib_curses_tgetent=yes
14412 else
14413   echo "$as_me: failed program was:" >&5
14414 sed 's/^/| /' conftest.$ac_ext >&5
14415
14416         ac_cv_lib_curses_tgetent=no
14417 fi
14418
14419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14420       conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14422 fi
14423 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14424 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14425 if test $ac_cv_lib_curses_tgetent = yes; then
14426    CONS_LIBS="-lcurses"
14427                    CONS_OBJ="conio.o"
14428                    CONS_SRC="conio.c"
14429                    got_conio="yes"
14430                    support_readline=no
14431
14432 cat >>confdefs.h <<\_ACEOF
14433 #define HAVE_CONIO 1
14434 _ACEOF
14435
14436
14437 fi
14438
14439
14440 else
14441    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14442 fi
14443
14444
14445
14446 fi
14447
14448
14449 fi
14450
14451
14452 # ---------------------------------------------------
14453 # Check for readline support/directory (default off)
14454 # ---------------------------------------------------
14455 # this allows you to turn it completely off
14456 # Check whether --enable-readline was given.
14457 if test "${enable_readline+set}" = set; then
14458   enableval=$enable_readline; if test x$enableval = xno; then
14459     support_readline=no
14460   fi
14461 fi
14462
14463
14464 got_readline="no"
14465 READLINE_SRC=
14466 if test x$support_readline = xyes; then
14467
14468 # Check whether --with-readline was given.
14469 if test "${with_readline+set}" = set; then
14470   withval=$with_readline;
14471         case "$with_readline" in
14472         no) : ;;
14473         yes|*)
14474           if test -f ${with_readline}/readline.h; then
14475              CONS_INC="-I${with_readline}"
14476              CONS_LDFLAGS="-L$with_readline"
14477           elif test -f ${with_readline}/include/readline/readline.h; then
14478              CONS_INC="-I${with_readline}/include/readline"
14479              CONS_LDFLAGS="-L${with_readline}/lib"
14480              with_readline="${with_readline}/include/readline"
14481           else
14482              with_readline="/usr/include/readline"
14483           fi
14484           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14486   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14487 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489   echo $ECHO_N "(cached) $ECHO_C" >&6
14490 fi
14491 ac_res=`eval echo '${'$as_ac_Header'}'`
14492                { echo "$as_me:$LINENO: result: $ac_res" >&5
14493 echo "${ECHO_T}$ac_res" >&6; }
14494 else
14495   # Is the header compilable?
14496 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14497 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14498 cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 #include <${with_readline}/readline.h>
14506 _ACEOF
14507 rm -f conftest.$ac_objext
14508 if { (ac_try="$ac_compile"
14509 case "(($ac_try" in
14510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14511   *) ac_try_echo=$ac_try;;
14512 esac
14513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14514   (eval "$ac_compile") 2>conftest.er1
14515   ac_status=$?
14516   grep -v '^ *+' conftest.er1 >conftest.err
14517   rm -f conftest.er1
14518   cat conftest.err >&5
14519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520   (exit $ac_status); } && {
14521          test -z "$ac_c_werror_flag" ||
14522          test ! -s conftest.err
14523        } && test -s conftest.$ac_objext; then
14524   ac_header_compiler=yes
14525 else
14526   echo "$as_me: failed program was:" >&5
14527 sed 's/^/| /' conftest.$ac_ext >&5
14528
14529         ac_header_compiler=no
14530 fi
14531
14532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14533 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14534 echo "${ECHO_T}$ac_header_compiler" >&6; }
14535
14536 # Is the header present?
14537 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14538 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14539 cat >conftest.$ac_ext <<_ACEOF
14540 /* confdefs.h.  */
14541 _ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h.  */
14545 #include <${with_readline}/readline.h>
14546 _ACEOF
14547 if { (ac_try="$ac_cpp conftest.$ac_ext"
14548 case "(($ac_try" in
14549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550   *) ac_try_echo=$ac_try;;
14551 esac
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14554   ac_status=$?
14555   grep -v '^ *+' conftest.er1 >conftest.err
14556   rm -f conftest.er1
14557   cat conftest.err >&5
14558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559   (exit $ac_status); } >/dev/null && {
14560          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14561          test ! -s conftest.err
14562        }; then
14563   ac_header_preproc=yes
14564 else
14565   echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14567
14568   ac_header_preproc=no
14569 fi
14570
14571 rm -f conftest.err conftest.$ac_ext
14572 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14573 echo "${ECHO_T}$ac_header_preproc" >&6; }
14574
14575 # So?  What about this header?
14576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14577   yes:no: )
14578     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14579 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14580     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14581 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14582     ac_header_preproc=yes
14583     ;;
14584   no:yes:* )
14585     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14586 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14587     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14588 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14589     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14590 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14591     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14593     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14594 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14595     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14596 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14597
14598     ;;
14599 esac
14600 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14601 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   eval "$as_ac_Header=\$ac_header_preproc"
14606 fi
14607 ac_res=`eval echo '${'$as_ac_Header'}'`
14608                { echo "$as_me:$LINENO: result: $ac_res" >&5
14609 echo "${ECHO_T}$ac_res" >&6; }
14610
14611 fi
14612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14613
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_READLINE 1
14616 _ACEOF
14617
14618                CONS_LIBS="-lreadline -lhistory -ltermcap"
14619                got_readline="yes"
14620
14621 else
14622    echo " "
14623                echo "readline.h not found. readline turned off ..."
14624                echo " "
14625
14626
14627 fi
14628
14629
14630           ;;
14631         esac
14632
14633 else
14634
14635        # check for standard readline library
14636        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14637   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14638 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14639 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14640   echo $ECHO_N "(cached) $ECHO_C" >&6
14641 fi
14642 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14643 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14644 else
14645   # Is the header compilable?
14646 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14647 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 $ac_includes_default
14655 #include </usr/include/readline/readline.h>
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661   *) ac_try_echo=$ac_try;;
14662 esac
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664   (eval "$ac_compile") 2>conftest.er1
14665   ac_status=$?
14666   grep -v '^ *+' conftest.er1 >conftest.err
14667   rm -f conftest.er1
14668   cat conftest.err >&5
14669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670   (exit $ac_status); } && {
14671          test -z "$ac_c_werror_flag" ||
14672          test ! -s conftest.err
14673        } && test -s conftest.$ac_objext; then
14674   ac_header_compiler=yes
14675 else
14676   echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679         ac_header_compiler=no
14680 fi
14681
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14684 echo "${ECHO_T}$ac_header_compiler" >&6; }
14685
14686 # Is the header present?
14687 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14688 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h.  */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h.  */
14695 #include </usr/include/readline/readline.h>
14696 _ACEOF
14697 if { (ac_try="$ac_cpp conftest.$ac_ext"
14698 case "(($ac_try" in
14699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700   *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14704   ac_status=$?
14705   grep -v '^ *+' conftest.er1 >conftest.err
14706   rm -f conftest.er1
14707   cat conftest.err >&5
14708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709   (exit $ac_status); } >/dev/null && {
14710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14711          test ! -s conftest.err
14712        }; then
14713   ac_header_preproc=yes
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718   ac_header_preproc=no
14719 fi
14720
14721 rm -f conftest.err conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14723 echo "${ECHO_T}$ac_header_preproc" >&6; }
14724
14725 # So?  What about this header?
14726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14727   yes:no: )
14728     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14729 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14730     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14731 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14732     ac_header_preproc=yes
14733     ;;
14734   no:yes:* )
14735     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14736 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14737     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14738 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14739     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14740 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14741     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14743     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14744 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14745     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14746 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14747
14748     ;;
14749 esac
14750 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14751 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14752 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14756 fi
14757 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14758 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14759
14760 fi
14761 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14762
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_READLINE 1
14765 _ACEOF
14766
14767            got_readline="yes"
14768            CONS_INC="-I/usr/include/readline"
14769            CONS_LIBS="-lreadline -ltermcap"
14770
14771 else
14772
14773            # Did not find standard library, so try Bacula's default
14774             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14776   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14777 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 fi
14781 ac_res=`eval echo '${'$as_ac_Header'}'`
14782                { echo "$as_me:$LINENO: result: $ac_res" >&5
14783 echo "${ECHO_T}$ac_res" >&6; }
14784 else
14785   # Is the header compilable?
14786 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14787 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14788 cat >conftest.$ac_ext <<_ACEOF
14789 /* confdefs.h.  */
14790 _ACEOF
14791 cat confdefs.h >>conftest.$ac_ext
14792 cat >>conftest.$ac_ext <<_ACEOF
14793 /* end confdefs.h.  */
14794 $ac_includes_default
14795 #include <${TOP_DIR}/depkgs/readline/readline.h>
14796 _ACEOF
14797 rm -f conftest.$ac_objext
14798 if { (ac_try="$ac_compile"
14799 case "(($ac_try" in
14800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14801   *) ac_try_echo=$ac_try;;
14802 esac
14803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14804   (eval "$ac_compile") 2>conftest.er1
14805   ac_status=$?
14806   grep -v '^ *+' conftest.er1 >conftest.err
14807   rm -f conftest.er1
14808   cat conftest.err >&5
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } && {
14811          test -z "$ac_c_werror_flag" ||
14812          test ! -s conftest.err
14813        } && test -s conftest.$ac_objext; then
14814   ac_header_compiler=yes
14815 else
14816   echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14818
14819         ac_header_compiler=no
14820 fi
14821
14822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6; }
14825
14826 # Is the header present?
14827 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14828 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 #include <${TOP_DIR}/depkgs/readline/readline.h>
14836 _ACEOF
14837 if { (ac_try="$ac_cpp conftest.$ac_ext"
14838 case "(($ac_try" in
14839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840   *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14844   ac_status=$?
14845   grep -v '^ *+' conftest.er1 >conftest.err
14846   rm -f conftest.er1
14847   cat conftest.err >&5
14848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } >/dev/null && {
14850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14851          test ! -s conftest.err
14852        }; then
14853   ac_header_preproc=yes
14854 else
14855   echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858   ac_header_preproc=no
14859 fi
14860
14861 rm -f conftest.err conftest.$ac_ext
14862 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 echo "${ECHO_T}$ac_header_preproc" >&6; }
14864
14865 # So?  What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14867   yes:no: )
14868     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14869 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14871 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14872     ac_header_preproc=yes
14873     ;;
14874   no:yes:* )
14875     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14876 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14877     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14878 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14879     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14880 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14883     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14884 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14885     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14886 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14887
14888     ;;
14889 esac
14890 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14891 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14893   echo $ECHO_N "(cached) $ECHO_C" >&6
14894 else
14895   eval "$as_ac_Header=\$ac_header_preproc"
14896 fi
14897 ac_res=`eval echo '${'$as_ac_Header'}'`
14898                { echo "$as_me:$LINENO: result: $ac_res" >&5
14899 echo "${ECHO_T}$ac_res" >&6; }
14900
14901 fi
14902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14903
14904 cat >>confdefs.h <<\_ACEOF
14905 #define HAVE_READLINE 1
14906 _ACEOF
14907
14908                  got_readline="yes"
14909                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14910                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14911                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14912                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14913
14914 else
14915    echo " "
14916                 echo "readline.h not found. readline turned off ..."
14917                 echo " "
14918
14919
14920 fi
14921
14922
14923
14924
14925 fi
14926
14927
14928
14929
14930 fi
14931
14932 fi
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943 # Minimal stuff for readline Makefile configuration
14944 MAKE_SHELL=/bin/sh
14945
14946 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14947 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14948 if test "${ac_cv_header_stat_broken+set}" = set; then
14949   echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951   cat >conftest.$ac_ext <<_ACEOF
14952 /* confdefs.h.  */
14953 _ACEOF
14954 cat confdefs.h >>conftest.$ac_ext
14955 cat >>conftest.$ac_ext <<_ACEOF
14956 /* end confdefs.h.  */
14957 #include <sys/types.h>
14958 #include <sys/stat.h>
14959
14960 #if defined S_ISBLK && defined S_IFDIR
14961 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14962 #endif
14963
14964 #if defined S_ISBLK && defined S_IFCHR
14965 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14966 #endif
14967
14968 #if defined S_ISLNK && defined S_IFREG
14969 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14970 #endif
14971
14972 #if defined S_ISSOCK && defined S_IFREG
14973 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14974 #endif
14975
14976 _ACEOF
14977 rm -f conftest.$ac_objext
14978 if { (ac_try="$ac_compile"
14979 case "(($ac_try" in
14980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981   *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984   (eval "$ac_compile") 2>conftest.er1
14985   ac_status=$?
14986   grep -v '^ *+' conftest.er1 >conftest.err
14987   rm -f conftest.er1
14988   cat conftest.err >&5
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); } && {
14991          test -z "$ac_c_werror_flag" ||
14992          test ! -s conftest.err
14993        } && test -s conftest.$ac_objext; then
14994   ac_cv_header_stat_broken=no
14995 else
14996   echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.$ac_ext >&5
14998
14999         ac_cv_header_stat_broken=yes
15000 fi
15001
15002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 fi
15004 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15005 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15006 if test $ac_cv_header_stat_broken = yes; then
15007
15008 cat >>confdefs.h <<\_ACEOF
15009 #define STAT_MACROS_BROKEN 1
15010 _ACEOF
15011
15012 fi
15013
15014
15015
15016
15017
15018
15019 ac_header_dirent=no
15020 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15021   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15022 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15023 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15025   echo $ECHO_N "(cached) $ECHO_C" >&6
15026 else
15027   cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h.  */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h.  */
15033 #include <sys/types.h>
15034 #include <$ac_hdr>
15035
15036 int
15037 main ()
15038 {
15039 if ((DIR *) 0)
15040 return 0;
15041   ;
15042   return 0;
15043 }
15044 _ACEOF
15045 rm -f conftest.$ac_objext
15046 if { (ac_try="$ac_compile"
15047 case "(($ac_try" in
15048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049   *) ac_try_echo=$ac_try;;
15050 esac
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052   (eval "$ac_compile") 2>conftest.er1
15053   ac_status=$?
15054   grep -v '^ *+' conftest.er1 >conftest.err
15055   rm -f conftest.er1
15056   cat conftest.err >&5
15057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058   (exit $ac_status); } && {
15059          test -z "$ac_c_werror_flag" ||
15060          test ! -s conftest.err
15061        } && test -s conftest.$ac_objext; then
15062   eval "$as_ac_Header=yes"
15063 else
15064   echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067         eval "$as_ac_Header=no"
15068 fi
15069
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 fi
15072 ac_res=`eval echo '${'$as_ac_Header'}'`
15073                { echo "$as_me:$LINENO: result: $ac_res" >&5
15074 echo "${ECHO_T}$ac_res" >&6; }
15075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15076   cat >>confdefs.h <<_ACEOF
15077 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15078 _ACEOF
15079
15080 ac_header_dirent=$ac_hdr; break
15081 fi
15082
15083 done
15084 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15085 if test $ac_header_dirent = dirent.h; then
15086   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15087 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15088 if test "${ac_cv_search_opendir+set}" = set; then
15089   echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091   ac_func_search_save_LIBS=$LIBS
15092 cat >conftest.$ac_ext <<_ACEOF
15093 /* confdefs.h.  */
15094 _ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h.  */
15098
15099 /* Override any GCC internal prototype to avoid an error.
15100    Use char because int might match the return type of a GCC
15101    builtin and then its argument prototype would still apply.  */
15102 #ifdef __cplusplus
15103 extern "C"
15104 #endif
15105 char opendir ();
15106 int
15107 main ()
15108 {
15109 return opendir ();
15110   ;
15111   return 0;
15112 }
15113 _ACEOF
15114 for ac_lib in '' dir; do
15115   if test -z "$ac_lib"; then
15116     ac_res="none required"
15117   else
15118     ac_res=-l$ac_lib
15119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15120   fi
15121   rm -f conftest.$ac_objext conftest$ac_exeext
15122 if { (ac_try="$ac_link"
15123 case "(($ac_try" in
15124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125   *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128   (eval "$ac_link") 2>conftest.er1
15129   ac_status=$?
15130   grep -v '^ *+' conftest.er1 >conftest.err
15131   rm -f conftest.er1
15132   cat conftest.err >&5
15133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134   (exit $ac_status); } && {
15135          test -z "$ac_c_werror_flag" ||
15136          test ! -s conftest.err
15137        } && test -s conftest$ac_exeext &&
15138        $as_test_x conftest$ac_exeext; then
15139   ac_cv_search_opendir=$ac_res
15140 else
15141   echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144
15145 fi
15146
15147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15148       conftest$ac_exeext
15149   if test "${ac_cv_search_opendir+set}" = set; then
15150   break
15151 fi
15152 done
15153 if test "${ac_cv_search_opendir+set}" = set; then
15154   :
15155 else
15156   ac_cv_search_opendir=no
15157 fi
15158 rm conftest.$ac_ext
15159 LIBS=$ac_func_search_save_LIBS
15160 fi
15161 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15162 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15163 ac_res=$ac_cv_search_opendir
15164 if test "$ac_res" != no; then
15165   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15166
15167 fi
15168
15169 else
15170   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15171 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15172 if test "${ac_cv_search_opendir+set}" = set; then
15173   echo $ECHO_N "(cached) $ECHO_C" >&6
15174 else
15175   ac_func_search_save_LIBS=$LIBS
15176 cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182
15183 /* Override any GCC internal prototype to avoid an error.
15184    Use char because int might match the return type of a GCC
15185    builtin and then its argument prototype would still apply.  */
15186 #ifdef __cplusplus
15187 extern "C"
15188 #endif
15189 char opendir ();
15190 int
15191 main ()
15192 {
15193 return opendir ();
15194   ;
15195   return 0;
15196 }
15197 _ACEOF
15198 for ac_lib in '' x; do
15199   if test -z "$ac_lib"; then
15200     ac_res="none required"
15201   else
15202     ac_res=-l$ac_lib
15203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15204   fi
15205   rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209   *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212   (eval "$ac_link") 2>conftest.er1
15213   ac_status=$?
15214   grep -v '^ *+' conftest.er1 >conftest.err
15215   rm -f conftest.er1
15216   cat conftest.err >&5
15217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218   (exit $ac_status); } && {
15219          test -z "$ac_c_werror_flag" ||
15220          test ! -s conftest.err
15221        } && test -s conftest$ac_exeext &&
15222        $as_test_x conftest$ac_exeext; then
15223   ac_cv_search_opendir=$ac_res
15224 else
15225   echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228
15229 fi
15230
15231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15232       conftest$ac_exeext
15233   if test "${ac_cv_search_opendir+set}" = set; then
15234   break
15235 fi
15236 done
15237 if test "${ac_cv_search_opendir+set}" = set; then
15238   :
15239 else
15240   ac_cv_search_opendir=no
15241 fi
15242 rm conftest.$ac_ext
15243 LIBS=$ac_func_search_save_LIBS
15244 fi
15245 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15246 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15247 ac_res=$ac_cv_search_opendir
15248 if test "$ac_res" != no; then
15249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15250
15251 fi
15252
15253 fi
15254
15255
15256
15257
15258
15259
15260
15261
15262 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15263 do
15264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15268   echo $ECHO_N "(cached) $ECHO_C" >&6
15269 else
15270   cat >conftest.$ac_ext <<_ACEOF
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15278 #define $ac_func innocuous_$ac_func
15279
15280 /* System header to define __stub macros and hopefully few prototypes,
15281     which can conflict with char $ac_func (); below.
15282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15283     <limits.h> exists even on freestanding compilers.  */
15284
15285 #ifdef __STDC__
15286 # include <limits.h>
15287 #else
15288 # include <assert.h>
15289 #endif
15290
15291 #undef $ac_func
15292
15293 /* Override any GCC internal prototype to avoid an error.
15294    Use char because int might match the return type of a GCC
15295    builtin and then its argument prototype would still apply.  */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char $ac_func ();
15300 /* The GNU C library defines this for functions which it implements
15301     to always fail with ENOSYS.  Some functions are actually named
15302     something starting with __ and the normal name is an alias.  */
15303 #if defined __stub_$ac_func || defined __stub___$ac_func
15304 choke me
15305 #endif
15306
15307 int
15308 main ()
15309 {
15310 return $ac_func ();
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } && {
15329          test -z "$ac_c_werror_flag" ||
15330          test ! -s conftest.err
15331        } && test -s conftest$ac_exeext &&
15332        $as_test_x conftest$ac_exeext; then
15333   eval "$as_ac_var=yes"
15334 else
15335   echo "$as_me: failed program was:" >&5
15336 sed 's/^/| /' conftest.$ac_ext >&5
15337
15338         eval "$as_ac_var=no"
15339 fi
15340
15341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15342       conftest$ac_exeext conftest.$ac_ext
15343 fi
15344 ac_res=`eval echo '${'$as_ac_var'}'`
15345                { echo "$as_me:$LINENO: result: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15347 if test `eval echo '${'$as_ac_var'}'` = yes; then
15348   cat >>confdefs.h <<_ACEOF
15349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15350 _ACEOF
15351
15352 fi
15353 done
15354
15355
15356
15357 for ac_func in nanosleep nl_langinfo
15358 do
15359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15363   echo $ECHO_N "(cached) $ECHO_C" >&6
15364 else
15365   cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15373 #define $ac_func innocuous_$ac_func
15374
15375 /* System header to define __stub macros and hopefully few prototypes,
15376     which can conflict with char $ac_func (); below.
15377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15378     <limits.h> exists even on freestanding compilers.  */
15379
15380 #ifdef __STDC__
15381 # include <limits.h>
15382 #else
15383 # include <assert.h>
15384 #endif
15385
15386 #undef $ac_func
15387
15388 /* Override any GCC internal prototype to avoid an error.
15389    Use char because int might match the return type of a GCC
15390    builtin and then its argument prototype would still apply.  */
15391 #ifdef __cplusplus
15392 extern "C"
15393 #endif
15394 char $ac_func ();
15395 /* The GNU C library defines this for functions which it implements
15396     to always fail with ENOSYS.  Some functions are actually named
15397     something starting with __ and the normal name is an alias.  */
15398 #if defined __stub_$ac_func || defined __stub___$ac_func
15399 choke me
15400 #endif
15401
15402 int
15403 main ()
15404 {
15405 return $ac_func ();
15406   ;
15407   return 0;
15408 }
15409 _ACEOF
15410 rm -f conftest.$ac_objext conftest$ac_exeext
15411 if { (ac_try="$ac_link"
15412 case "(($ac_try" in
15413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15414   *) ac_try_echo=$ac_try;;
15415 esac
15416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15417   (eval "$ac_link") 2>conftest.er1
15418   ac_status=$?
15419   grep -v '^ *+' conftest.er1 >conftest.err
15420   rm -f conftest.er1
15421   cat conftest.err >&5
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); } && {
15424          test -z "$ac_c_werror_flag" ||
15425          test ! -s conftest.err
15426        } && test -s conftest$ac_exeext &&
15427        $as_test_x conftest$ac_exeext; then
15428   eval "$as_ac_var=yes"
15429 else
15430   echo "$as_me: failed program was:" >&5
15431 sed 's/^/| /' conftest.$ac_ext >&5
15432
15433         eval "$as_ac_var=no"
15434 fi
15435
15436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15437       conftest$ac_exeext conftest.$ac_ext
15438 fi
15439 ac_res=`eval echo '${'$as_ac_var'}'`
15440                { echo "$as_me:$LINENO: result: $ac_res" >&5
15441 echo "${ECHO_T}$ac_res" >&6; }
15442 if test `eval echo '${'$as_ac_var'}'` = yes; then
15443   cat >>confdefs.h <<_ACEOF
15444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15445 _ACEOF
15446
15447 fi
15448 done
15449
15450
15451 for ac_header in varargs.h
15452 do
15453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15455   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 fi
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461                { echo "$as_me:$LINENO: result: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15463 else
15464   # Is the header compilable?
15465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h.  */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h.  */
15473 $ac_includes_default
15474 #include <$ac_header>
15475 _ACEOF
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480   *) ac_try_echo=$ac_try;;
15481 esac
15482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15483   (eval "$ac_compile") 2>conftest.er1
15484   ac_status=$?
15485   grep -v '^ *+' conftest.er1 >conftest.err
15486   rm -f conftest.er1
15487   cat conftest.err >&5
15488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489   (exit $ac_status); } && {
15490          test -z "$ac_c_werror_flag" ||
15491          test ! -s conftest.err
15492        } && test -s conftest.$ac_objext; then
15493   ac_header_compiler=yes
15494 else
15495   echo "$as_me: failed program was:" >&5
15496 sed 's/^/| /' conftest.$ac_ext >&5
15497
15498         ac_header_compiler=no
15499 fi
15500
15501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15503 echo "${ECHO_T}$ac_header_compiler" >&6; }
15504
15505 # Is the header present?
15506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15509 /* confdefs.h.  */
15510 _ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h.  */
15514 #include <$ac_header>
15515 _ACEOF
15516 if { (ac_try="$ac_cpp conftest.$ac_ext"
15517 case "(($ac_try" in
15518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519   *) ac_try_echo=$ac_try;;
15520 esac
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15523   ac_status=$?
15524   grep -v '^ *+' conftest.er1 >conftest.err
15525   rm -f conftest.er1
15526   cat conftest.err >&5
15527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528   (exit $ac_status); } >/dev/null && {
15529          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15530          test ! -s conftest.err
15531        }; then
15532   ac_header_preproc=yes
15533 else
15534   echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537   ac_header_preproc=no
15538 fi
15539
15540 rm -f conftest.err conftest.$ac_ext
15541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15542 echo "${ECHO_T}$ac_header_preproc" >&6; }
15543
15544 # So?  What about this header?
15545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15546   yes:no: )
15547     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15549     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15551     ac_header_preproc=yes
15552     ;;
15553   no:yes:* )
15554     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15557 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15558     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15561 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15562     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15564     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15566
15567     ;;
15568 esac
15569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572   echo $ECHO_N "(cached) $ECHO_C" >&6
15573 else
15574   eval "$as_ac_Header=\$ac_header_preproc"
15575 fi
15576 ac_res=`eval echo '${'$as_ac_Header'}'`
15577                { echo "$as_me:$LINENO: result: $ac_res" >&5
15578 echo "${ECHO_T}$ac_res" >&6; }
15579
15580 fi
15581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15582   cat >>confdefs.h <<_ACEOF
15583 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15584 _ACEOF
15585
15586 fi
15587
15588 done
15589
15590
15591 # End of readline/conio stuff
15592 # -----------------------------------------------------------------------
15593
15594 # -----------------------------------------------------------------------
15595 #  Check for Python support
15596 #
15597 { echo "$as_me:$LINENO: checking for Python support" >&5
15598 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15599
15600 # Check whether --with-python was given.
15601 if test "${with_python+set}" = set; then
15602   withval=$with_python;
15603   PYTHON_INCDIR=
15604   PYTHON_LIBS=
15605   if test "$withval" != "no"; then
15606      if test "$withval" = "yes"; then
15607         for python_root in /usr /usr/local /usr/sfw; do
15608           for ver in python2.2 python2.3 python2.4 python2.5; do
15609              if test -f $python_root/include/${ver}/Python.h; then
15610                 PYTHON_INCDIR=-I$python_root/include/${ver}
15611                 if test -d $python_root/lib64/${ver}/config; then
15612                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15613                 else
15614                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15615                 fi
15616                 break
15617              fi
15618           done
15619         done
15620         if test x$PYTHON_INCDIR = x; then
15621           if test -f $prefix/include/Python.h; then
15622              PYTHON_INCDIR=-I$prefix/include
15623              if test -d $prefix/lib64/config; then
15624                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15625              else
15626                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15627              fi
15628           else
15629            { echo "$as_me:$LINENO: result: no" >&5
15630 echo "${ECHO_T}no" >&6; }
15631            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15632 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15633    { (exit 1); exit 1; }; }
15634           fi
15635         fi
15636      else
15637         if test -f $withval/Python.h; then
15638            PYTHON_INCDIR=-I$withval
15639            PYTHON_LIBS="-L$withval/config -lpython"
15640         elif test -f $withval/include/Python.h; then
15641            PYTHON_INCDIR=-I$withval/include
15642            if test -d $withval/lib64/config; then
15643               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15644            else
15645               PYTHON_LIBS="-L$withval/lib/config -lpython"
15646            fi
15647         elif test -f $withval/include/python/Python.h; then
15648            PYTHON_INCDIR=-I$withval/include/python
15649            if test -d $withval/lib64/python/config; then
15650               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15651            else
15652               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15653            fi
15654         else
15655            { echo "$as_me:$LINENO: result: no" >&5
15656 echo "${ECHO_T}no" >&6; }
15657            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15658 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15659    { (exit 1); exit 1; }; }
15660         fi
15661      fi
15662      cat >>confdefs.h <<\_ACEOF
15663 #define HAVE_PYTHON 1
15664 _ACEOF
15665
15666      { echo "$as_me:$LINENO: result: yes" >&5
15667 echo "${ECHO_T}yes" >&6; }
15668      support_python=yes
15669      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15670 echo "$as_me: checking for more Python libs" >&6;}
15671      saved_LIBS="$LIBS"; LIBS=
15672      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15673 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15674 if test "${ac_cv_search_shm_open+set}" = set; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   ac_func_search_save_LIBS=$LIBS
15678 cat >conftest.$ac_ext <<_ACEOF
15679 /* confdefs.h.  */
15680 _ACEOF
15681 cat confdefs.h >>conftest.$ac_ext
15682 cat >>conftest.$ac_ext <<_ACEOF
15683 /* end confdefs.h.  */
15684
15685 /* Override any GCC internal prototype to avoid an error.
15686    Use char because int might match the return type of a GCC
15687    builtin and then its argument prototype would still apply.  */
15688 #ifdef __cplusplus
15689 extern "C"
15690 #endif
15691 char shm_open ();
15692 int
15693 main ()
15694 {
15695 return shm_open ();
15696   ;
15697   return 0;
15698 }
15699 _ACEOF
15700 for ac_lib in '' rt; do
15701   if test -z "$ac_lib"; then
15702     ac_res="none required"
15703   else
15704     ac_res=-l$ac_lib
15705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15706   fi
15707   rm -f conftest.$ac_objext conftest$ac_exeext
15708 if { (ac_try="$ac_link"
15709 case "(($ac_try" in
15710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711   *) ac_try_echo=$ac_try;;
15712 esac
15713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15714   (eval "$ac_link") 2>conftest.er1
15715   ac_status=$?
15716   grep -v '^ *+' conftest.er1 >conftest.err
15717   rm -f conftest.er1
15718   cat conftest.err >&5
15719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720   (exit $ac_status); } && {
15721          test -z "$ac_c_werror_flag" ||
15722          test ! -s conftest.err
15723        } && test -s conftest$ac_exeext &&
15724        $as_test_x conftest$ac_exeext; then
15725   ac_cv_search_shm_open=$ac_res
15726 else
15727   echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15729
15730
15731 fi
15732
15733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15734       conftest$ac_exeext
15735   if test "${ac_cv_search_shm_open+set}" = set; then
15736   break
15737 fi
15738 done
15739 if test "${ac_cv_search_shm_open+set}" = set; then
15740   :
15741 else
15742   ac_cv_search_shm_open=no
15743 fi
15744 rm conftest.$ac_ext
15745 LIBS=$ac_func_search_save_LIBS
15746 fi
15747 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15748 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15749 ac_res=$ac_cv_search_shm_open
15750 if test "$ac_res" != no; then
15751   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15752
15753 fi
15754
15755
15756 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15757 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15758 if test "${ac_cv_lib_util_openpty+set}" = set; then
15759   echo $ECHO_N "(cached) $ECHO_C" >&6
15760 else
15761   ac_check_lib_save_LIBS=$LIBS
15762 LIBS="-lutil  $LIBS"
15763 cat >conftest.$ac_ext <<_ACEOF
15764 /* confdefs.h.  */
15765 _ACEOF
15766 cat confdefs.h >>conftest.$ac_ext
15767 cat >>conftest.$ac_ext <<_ACEOF
15768 /* end confdefs.h.  */
15769
15770 /* Override any GCC internal prototype to avoid an error.
15771    Use char because int might match the return type of a GCC
15772    builtin and then its argument prototype would still apply.  */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 char openpty ();
15777 int
15778 main ()
15779 {
15780 return openpty ();
15781   ;
15782   return 0;
15783 }
15784 _ACEOF
15785 rm -f conftest.$ac_objext conftest$ac_exeext
15786 if { (ac_try="$ac_link"
15787 case "(($ac_try" in
15788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789   *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792   (eval "$ac_link") 2>conftest.er1
15793   ac_status=$?
15794   grep -v '^ *+' conftest.er1 >conftest.err
15795   rm -f conftest.er1
15796   cat conftest.err >&5
15797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798   (exit $ac_status); } && {
15799          test -z "$ac_c_werror_flag" ||
15800          test ! -s conftest.err
15801        } && test -s conftest$ac_exeext &&
15802        $as_test_x conftest$ac_exeext; then
15803   ac_cv_lib_util_openpty=yes
15804 else
15805   echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808         ac_cv_lib_util_openpty=no
15809 fi
15810
15811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15812       conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS
15814 fi
15815 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15816 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15817 if test $ac_cv_lib_util_openpty = yes; then
15818   cat >>confdefs.h <<_ACEOF
15819 #define HAVE_LIBUTIL 1
15820 _ACEOF
15821
15822   LIBS="-lutil $LIBS"
15823
15824 fi
15825
15826      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15827      LIBS="$saved_LIBS"
15828   else
15829      { echo "$as_me:$LINENO: result: no" >&5
15830 echo "${ECHO_T}no" >&6; }
15831   fi
15832
15833 else
15834
15835   { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15837
15838 fi
15839
15840
15841
15842
15843 #
15844 # Find where sockets are (especially for Solaris)
15845 # Do this before the TCP Wrappers test since tcp wrappers
15846 # uses the socket library and some linkers are stupid.
15847 #
15848 { echo "$as_me:$LINENO: checking for socket" >&5
15849 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15850 if test "${ac_cv_func_socket+set}" = set; then
15851   echo $ECHO_N "(cached) $ECHO_C" >&6
15852 else
15853   cat >conftest.$ac_ext <<_ACEOF
15854 /* confdefs.h.  */
15855 _ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h.  */
15859 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15860    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15861 #define socket innocuous_socket
15862
15863 /* System header to define __stub macros and hopefully few prototypes,
15864     which can conflict with char socket (); below.
15865     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15866     <limits.h> exists even on freestanding compilers.  */
15867
15868 #ifdef __STDC__
15869 # include <limits.h>
15870 #else
15871 # include <assert.h>
15872 #endif
15873
15874 #undef socket
15875
15876 /* Override any GCC internal prototype to avoid an error.
15877    Use char because int might match the return type of a GCC
15878    builtin and then its argument prototype would still apply.  */
15879 #ifdef __cplusplus
15880 extern "C"
15881 #endif
15882 char socket ();
15883 /* The GNU C library defines this for functions which it implements
15884     to always fail with ENOSYS.  Some functions are actually named
15885     something starting with __ and the normal name is an alias.  */
15886 #if defined __stub_socket || defined __stub___socket
15887 choke me
15888 #endif
15889
15890 int
15891 main ()
15892 {
15893 return socket ();
15894   ;
15895   return 0;
15896 }
15897 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902   *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905   (eval "$ac_link") 2>conftest.er1
15906   ac_status=$?
15907   grep -v '^ *+' conftest.er1 >conftest.err
15908   rm -f conftest.er1
15909   cat conftest.err >&5
15910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911   (exit $ac_status); } && {
15912          test -z "$ac_c_werror_flag" ||
15913          test ! -s conftest.err
15914        } && test -s conftest$ac_exeext &&
15915        $as_test_x conftest$ac_exeext; then
15916   ac_cv_func_socket=yes
15917 else
15918   echo "$as_me: failed program was:" >&5
15919 sed 's/^/| /' conftest.$ac_ext >&5
15920
15921         ac_cv_func_socket=no
15922 fi
15923
15924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15925       conftest$ac_exeext conftest.$ac_ext
15926 fi
15927 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15928 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15929 if test $ac_cv_func_socket = yes; then
15930   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15931 echo "${ECHO_T}using libc's socket" >&6; }
15932 else
15933
15934 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15935 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15936 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15937   echo $ECHO_N "(cached) $ECHO_C" >&6
15938 else
15939   ac_check_lib_save_LIBS=$LIBS
15940 LIBS="-lxnet  $LIBS"
15941 cat >conftest.$ac_ext <<_ACEOF
15942 /* confdefs.h.  */
15943 _ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h.  */
15947
15948 /* Override any GCC internal prototype to avoid an error.
15949    Use char because int might match the return type of a GCC
15950    builtin and then its argument prototype would still apply.  */
15951 #ifdef __cplusplus
15952 extern "C"
15953 #endif
15954 char socket ();
15955 int
15956 main ()
15957 {
15958 return socket ();
15959   ;
15960   return 0;
15961 }
15962 _ACEOF
15963 rm -f conftest.$ac_objext conftest$ac_exeext
15964 if { (ac_try="$ac_link"
15965 case "(($ac_try" in
15966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967   *) ac_try_echo=$ac_try;;
15968 esac
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970   (eval "$ac_link") 2>conftest.er1
15971   ac_status=$?
15972   grep -v '^ *+' conftest.er1 >conftest.err
15973   rm -f conftest.er1
15974   cat conftest.err >&5
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); } && {
15977          test -z "$ac_c_werror_flag" ||
15978          test ! -s conftest.err
15979        } && test -s conftest$ac_exeext &&
15980        $as_test_x conftest$ac_exeext; then
15981   ac_cv_lib_xnet_socket=yes
15982 else
15983   echo "$as_me: failed program was:" >&5
15984 sed 's/^/| /' conftest.$ac_ext >&5
15985
15986         ac_cv_lib_xnet_socket=no
15987 fi
15988
15989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15990       conftest$ac_exeext conftest.$ac_ext
15991 LIBS=$ac_check_lib_save_LIBS
15992 fi
15993 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15994 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
15995 if test $ac_cv_lib_xnet_socket = yes; then
15996   cat >>confdefs.h <<_ACEOF
15997 #define HAVE_LIBXNET 1
15998 _ACEOF
15999
16000   LIBS="-lxnet $LIBS"
16001
16002 fi
16003
16004
16005 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16006 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16007 if test "${ac_cv_lib_socket_socket+set}" = set; then
16008   echo $ECHO_N "(cached) $ECHO_C" >&6
16009 else
16010   ac_check_lib_save_LIBS=$LIBS
16011 LIBS="-lsocket  $LIBS"
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h.  */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h.  */
16018
16019 /* Override any GCC internal prototype to avoid an error.
16020    Use char because int might match the return type of a GCC
16021    builtin and then its argument prototype would still apply.  */
16022 #ifdef __cplusplus
16023 extern "C"
16024 #endif
16025 char socket ();
16026 int
16027 main ()
16028 {
16029 return socket ();
16030   ;
16031   return 0;
16032 }
16033 _ACEOF
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038   *) ac_try_echo=$ac_try;;
16039 esac
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041   (eval "$ac_link") 2>conftest.er1
16042   ac_status=$?
16043   grep -v '^ *+' conftest.er1 >conftest.err
16044   rm -f conftest.er1
16045   cat conftest.err >&5
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); } && {
16048          test -z "$ac_c_werror_flag" ||
16049          test ! -s conftest.err
16050        } && test -s conftest$ac_exeext &&
16051        $as_test_x conftest$ac_exeext; then
16052   ac_cv_lib_socket_socket=yes
16053 else
16054   echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057         ac_cv_lib_socket_socket=no
16058 fi
16059
16060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16061       conftest$ac_exeext conftest.$ac_ext
16062 LIBS=$ac_check_lib_save_LIBS
16063 fi
16064 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16065 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16066 if test $ac_cv_lib_socket_socket = yes; then
16067   cat >>confdefs.h <<_ACEOF
16068 #define HAVE_LIBSOCKET 1
16069 _ACEOF
16070
16071   LIBS="-lsocket $LIBS"
16072
16073 fi
16074
16075
16076 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16077 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16078 if test "${ac_cv_lib_inet_socket+set}" = set; then
16079   echo $ECHO_N "(cached) $ECHO_C" >&6
16080 else
16081   ac_check_lib_save_LIBS=$LIBS
16082 LIBS="-linet  $LIBS"
16083 cat >conftest.$ac_ext <<_ACEOF
16084 /* confdefs.h.  */
16085 _ACEOF
16086 cat confdefs.h >>conftest.$ac_ext
16087 cat >>conftest.$ac_ext <<_ACEOF
16088 /* end confdefs.h.  */
16089
16090 /* Override any GCC internal prototype to avoid an error.
16091    Use char because int might match the return type of a GCC
16092    builtin and then its argument prototype would still apply.  */
16093 #ifdef __cplusplus
16094 extern "C"
16095 #endif
16096 char socket ();
16097 int
16098 main ()
16099 {
16100 return socket ();
16101   ;
16102   return 0;
16103 }
16104 _ACEOF
16105 rm -f conftest.$ac_objext conftest$ac_exeext
16106 if { (ac_try="$ac_link"
16107 case "(($ac_try" in
16108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109   *) ac_try_echo=$ac_try;;
16110 esac
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112   (eval "$ac_link") 2>conftest.er1
16113   ac_status=$?
16114   grep -v '^ *+' conftest.er1 >conftest.err
16115   rm -f conftest.er1
16116   cat conftest.err >&5
16117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118   (exit $ac_status); } && {
16119          test -z "$ac_c_werror_flag" ||
16120          test ! -s conftest.err
16121        } && test -s conftest$ac_exeext &&
16122        $as_test_x conftest$ac_exeext; then
16123   ac_cv_lib_inet_socket=yes
16124 else
16125   echo "$as_me: failed program was:" >&5
16126 sed 's/^/| /' conftest.$ac_ext >&5
16127
16128         ac_cv_lib_inet_socket=no
16129 fi
16130
16131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16132       conftest$ac_exeext conftest.$ac_ext
16133 LIBS=$ac_check_lib_save_LIBS
16134 fi
16135 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16136 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16137 if test $ac_cv_lib_inet_socket = yes; then
16138   cat >>confdefs.h <<_ACEOF
16139 #define HAVE_LIBINET 1
16140 _ACEOF
16141
16142   LIBS="-linet $LIBS"
16143
16144 fi
16145
16146 fi
16147
16148
16149
16150 # -----------------------------------------------------------
16151 # Check whether user wants TCP wrappers support (default off)
16152 # -----------------------------------------------------------
16153 TCPW_MSG="no"
16154 WRAPLIBS=""
16155
16156 # Check whether --with-tcp-wrappers was given.
16157 if test "${with_tcp_wrappers+set}" = set; then
16158   withval=$with_tcp_wrappers;
16159     if test "x$withval" != "xno" ; then
16160        saved_LIBS="$LIBS"
16161        LIBS="$saved_LIBS -lwrap"
16162        { echo "$as_me:$LINENO: checking for libwrap" >&5
16163 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16164        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16165 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16166 if test "${ac_cv_search_nanosleep+set}" = set; then
16167   echo $ECHO_N "(cached) $ECHO_C" >&6
16168 else
16169   ac_func_search_save_LIBS=$LIBS
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h.  */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h.  */
16176
16177 /* Override any GCC internal prototype to avoid an error.
16178    Use char because int might match the return type of a GCC
16179    builtin and then its argument prototype would still apply.  */
16180 #ifdef __cplusplus
16181 extern "C"
16182 #endif
16183 char nanosleep ();
16184 int
16185 main ()
16186 {
16187 return nanosleep ();
16188   ;
16189   return 0;
16190 }
16191 _ACEOF
16192 for ac_lib in '' rt; do
16193   if test -z "$ac_lib"; then
16194     ac_res="none required"
16195   else
16196     ac_res=-l$ac_lib
16197     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16198   fi
16199   rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (ac_try="$ac_link"
16201 case "(($ac_try" in
16202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203   *) ac_try_echo=$ac_try;;
16204 esac
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206   (eval "$ac_link") 2>conftest.er1
16207   ac_status=$?
16208   grep -v '^ *+' conftest.er1 >conftest.err
16209   rm -f conftest.er1
16210   cat conftest.err >&5
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); } && {
16213          test -z "$ac_c_werror_flag" ||
16214          test ! -s conftest.err
16215        } && test -s conftest$ac_exeext &&
16216        $as_test_x conftest$ac_exeext; then
16217   ac_cv_search_nanosleep=$ac_res
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16221
16222
16223 fi
16224
16225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16226       conftest$ac_exeext
16227   if test "${ac_cv_search_nanosleep+set}" = set; then
16228   break
16229 fi
16230 done
16231 if test "${ac_cv_search_nanosleep+set}" = set; then
16232   :
16233 else
16234   ac_cv_search_nanosleep=no
16235 fi
16236 rm conftest.$ac_ext
16237 LIBS=$ac_func_search_save_LIBS
16238 fi
16239 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16240 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16241 ac_res=$ac_cv_search_nanosleep
16242 if test "$ac_res" != no; then
16243   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16244
16245 fi
16246
16247        cat >conftest.$ac_ext <<_ACEOF
16248 /* confdefs.h.  */
16249 _ACEOF
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h.  */
16253  #include <sys/types.h>
16254             #include <tcpd.h>
16255              int deny_severity = 0;
16256              int allow_severity = 0;
16257              struct request_info *req;
16258 int
16259 main ()
16260 {
16261  hosts_access(req);
16262   ;
16263   return 0;
16264 }
16265 _ACEOF
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (ac_try="$ac_link"
16268 case "(($ac_try" in
16269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16270   *) ac_try_echo=$ac_try;;
16271 esac
16272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16273   (eval "$ac_link") 2>conftest.er1
16274   ac_status=$?
16275   grep -v '^ *+' conftest.er1 >conftest.err
16276   rm -f conftest.er1
16277   cat conftest.err >&5
16278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279   (exit $ac_status); } && {
16280          test -z "$ac_c_werror_flag" ||
16281          test ! -s conftest.err
16282        } && test -s conftest$ac_exeext &&
16283        $as_test_x conftest$ac_exeext; then
16284
16285             { echo "$as_me:$LINENO: result: yes" >&5
16286 echo "${ECHO_T}yes" >&6; }
16287
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_LIBWRAP 1
16290 _ACEOF
16291
16292             TCPW_MSG="yes"
16293             LIBS="$saved_LIBS"
16294             WRAPLIBS="-lwrap"
16295
16296 else
16297   echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16299
16300
16301             LIBS="$saved_LIBS -lwrap -lnsl"
16302             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16303             cat >conftest.$ac_ext <<_ACEOF
16304 /* confdefs.h.  */
16305 _ACEOF
16306 cat confdefs.h >>conftest.$ac_ext
16307 cat >>conftest.$ac_ext <<_ACEOF
16308 /* end confdefs.h.  */
16309  #include <sys/types.h>
16310                  #include <tcpd.h>
16311                  int deny_severity = 0;
16312                  int allow_severity = 0;
16313                  struct request_info *req;
16314 int
16315 main ()
16316 {
16317  hosts_access(req);
16318   ;
16319   return 0;
16320 }
16321 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326   *) ac_try_echo=$ac_try;;
16327 esac
16328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16329   (eval "$ac_link") 2>conftest.er1
16330   ac_status=$?
16331   grep -v '^ *+' conftest.er1 >conftest.err
16332   rm -f conftest.er1
16333   cat conftest.err >&5
16334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16335   (exit $ac_status); } && {
16336          test -z "$ac_c_werror_flag" ||
16337          test ! -s conftest.err
16338        } && test -s conftest$ac_exeext &&
16339        $as_test_x conftest$ac_exeext; then
16340
16341                  { echo "$as_me:$LINENO: result: yes" >&5
16342 echo "${ECHO_T}yes" >&6; }
16343
16344 cat >>confdefs.h <<\_ACEOF
16345 #define HAVE_LIBWRAP 1
16346 _ACEOF
16347
16348                  TCPW_MSG="yes"
16349                  LIBS="$saved_LIBS"
16350                  WRAPLIBS="-lwrap"
16351
16352 else
16353   echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16357 echo "$as_me: error: *** libwrap missing" >&2;}
16358    { (exit 1); exit 1; }; }
16359
16360 fi
16361
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363       conftest$ac_exeext conftest.$ac_ext
16364
16365 fi
16366
16367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16368       conftest$ac_exeext conftest.$ac_ext
16369     fi
16370
16371
16372 fi
16373
16374
16375 # -----------------------------------------------------------
16376 # Check whether OpenSSL is available
16377 # -----------------------------------------------------------
16378 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16379 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16380
16381 # Check whether --with-openssl was given.
16382 if test "${with_openssl+set}" = set; then
16383   withval=$with_openssl; with_openssl_directory=${withval}
16384 fi
16385
16386
16387 if test "x$with_openssl_directory" != "x"; then
16388         OPENSSL_LIBS="-lssl -lcrypto"
16389         OPENSSL_INC=""
16390
16391         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16392                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16393                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16394         fi
16395
16396         saved_LIBS="${LIBS}"
16397         saved_CFLAGS="${CFLAGS}"
16398         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16399         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16400
16401         cat >conftest.$ac_ext <<_ACEOF
16402 /* confdefs.h.  */
16403 _ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h.  */
16407  #include <openssl/ssl.h>
16408 int
16409 main ()
16410 {
16411  CRYPTO_set_id_callback(NULL);
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 rm -f conftest.$ac_objext conftest$ac_exeext
16417 if { (ac_try="$ac_link"
16418 case "(($ac_try" in
16419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420   *) ac_try_echo=$ac_try;;
16421 esac
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423   (eval "$ac_link") 2>conftest.er1
16424   ac_status=$?
16425   grep -v '^ *+' conftest.er1 >conftest.err
16426   rm -f conftest.er1
16427   cat conftest.err >&5
16428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); } && {
16430          test -z "$ac_c_werror_flag" ||
16431          test ! -s conftest.err
16432        } && test -s conftest$ac_exeext &&
16433        $as_test_x conftest$ac_exeext; then
16434
16435                         support_tls="yes"
16436                         support_crypto="yes"
16437
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442          support_tls="no"
16443
16444 fi
16445
16446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16447       conftest$ac_exeext conftest.$ac_ext
16448
16449         cat >conftest.$ac_ext <<_ACEOF
16450 /* confdefs.h.  */
16451 _ACEOF
16452 cat confdefs.h >>conftest.$ac_ext
16453 cat >>conftest.$ac_ext <<_ACEOF
16454 /* end confdefs.h.  */
16455  #include <openssl/evp.h>
16456 int
16457 main ()
16458 {
16459  EVP_sha512();
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_link") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } && {
16478          test -z "$ac_c_werror_flag" ||
16479          test ! -s conftest.err
16480        } && test -s conftest$ac_exeext &&
16481        $as_test_x conftest$ac_exeext; then
16482    ac_cv_openssl_sha2="yes"
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487          ac_cv_openssl_sha2="no"
16488
16489 fi
16490
16491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16492       conftest$ac_exeext conftest.$ac_ext
16493
16494         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16495         # implementation, presumably for export reasons. If 192bit AES
16496         # is available, we assume that we're running with a 'non-export'
16497         # openssl library.
16498         cat >conftest.$ac_ext <<_ACEOF
16499 /* confdefs.h.  */
16500 _ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h.  */
16504  #include <openssl/evp.h>
16505 int
16506 main ()
16507 {
16508  EVP_aes_192_cbc();
16509   ;
16510   return 0;
16511 }
16512 _ACEOF
16513 rm -f conftest.$ac_objext conftest$ac_exeext
16514 if { (ac_try="$ac_link"
16515 case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16520   (eval "$ac_link") 2>conftest.er1
16521   ac_status=$?
16522   grep -v '^ *+' conftest.er1 >conftest.err
16523   rm -f conftest.er1
16524   cat conftest.err >&5
16525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526   (exit $ac_status); } && {
16527          test -z "$ac_c_werror_flag" ||
16528          test ! -s conftest.err
16529        } && test -s conftest$ac_exeext &&
16530        $as_test_x conftest$ac_exeext; then
16531    ac_cv_openssl_export="no"
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536          ac_cv_openssl_export="yes"
16537
16538 fi
16539
16540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16541       conftest$ac_exeext conftest.$ac_ext
16542
16543         LIBS="${saved_LIBS}"
16544         CFLAGS="${saved_CFLAGS}"
16545
16546         if test "$support_tls" = "yes"; then
16547
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_OPENSSL 1
16550 _ACEOF
16551
16552
16553 cat >>confdefs.h <<\_ACEOF
16554 #define HAVE_TLS 1
16555 _ACEOF
16556
16557
16558 cat >>confdefs.h <<\_ACEOF
16559 #define HAVE_CRYPTO 1
16560 _ACEOF
16561
16562         fi
16563
16564         if test "$ac_cv_openssl_sha2" = "yes"; then
16565
16566 cat >>confdefs.h <<\_ACEOF
16567 #define HAVE_SHA2 1
16568 _ACEOF
16569
16570         fi
16571
16572         if test "$ac_cv_openssl_export" = "yes"; then
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16576 _ACEOF
16577
16578         fi
16579 else
16580         support_tls="no"
16581         support_crypto="no"
16582         OPENSSL_LIBS=""
16583         OPENSSL_INC=""
16584 fi
16585
16586 { echo "$as_me:$LINENO: result: $support_tls" >&5
16587 echo "${ECHO_T}$support_tls" >&6; }
16588
16589
16590
16591
16592 # -----------------------------------------------------------
16593 # Python and OpenSSL are using dlopen
16594 # -----------------------------------------------------------
16595
16596 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16597    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16598 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16599 if test "${ac_cv_search_dlopen+set}" = set; then
16600   echo $ECHO_N "(cached) $ECHO_C" >&6
16601 else
16602   ac_func_search_save_LIBS=$LIBS
16603 cat >conftest.$ac_ext <<_ACEOF
16604 /* confdefs.h.  */
16605 _ACEOF
16606 cat confdefs.h >>conftest.$ac_ext
16607 cat >>conftest.$ac_ext <<_ACEOF
16608 /* end confdefs.h.  */
16609
16610 /* Override any GCC internal prototype to avoid an error.
16611    Use char because int might match the return type of a GCC
16612    builtin and then its argument prototype would still apply.  */
16613 #ifdef __cplusplus
16614 extern "C"
16615 #endif
16616 char dlopen ();
16617 int
16618 main ()
16619 {
16620 return dlopen ();
16621   ;
16622   return 0;
16623 }
16624 _ACEOF
16625 for ac_lib in '' dl; do
16626   if test -z "$ac_lib"; then
16627     ac_res="none required"
16628   else
16629     ac_res=-l$ac_lib
16630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16631   fi
16632   rm -f conftest.$ac_objext conftest$ac_exeext
16633 if { (ac_try="$ac_link"
16634 case "(($ac_try" in
16635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636   *) ac_try_echo=$ac_try;;
16637 esac
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639   (eval "$ac_link") 2>conftest.er1
16640   ac_status=$?
16641   grep -v '^ *+' conftest.er1 >conftest.err
16642   rm -f conftest.er1
16643   cat conftest.err >&5
16644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16645   (exit $ac_status); } && {
16646          test -z "$ac_c_werror_flag" ||
16647          test ! -s conftest.err
16648        } && test -s conftest$ac_exeext &&
16649        $as_test_x conftest$ac_exeext; then
16650   ac_cv_search_dlopen=$ac_res
16651 else
16652   echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16654
16655
16656 fi
16657
16658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16659       conftest$ac_exeext
16660   if test "${ac_cv_search_dlopen+set}" = set; then
16661   break
16662 fi
16663 done
16664 if test "${ac_cv_search_dlopen+set}" = set; then
16665   :
16666 else
16667   ac_cv_search_dlopen=no
16668 fi
16669 rm conftest.$ac_ext
16670 LIBS=$ac_func_search_save_LIBS
16671 fi
16672 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16673 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16674 ac_res=$ac_cv_search_dlopen
16675 if test "$ac_res" != no; then
16676   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16677
16678 fi
16679
16680 fi
16681
16682 # ------------------------------------------
16683 # Where to place working dir
16684 # ------------------------------------------
16685 working_dir=`eval echo ${prefix}/var/bacula/working`
16686
16687 # Check whether --with-working-dir was given.
16688 if test "${with_working_dir+set}" = set; then
16689   withval=$with_working_dir;
16690        if test "x$withval" != "xno" ; then
16691               working_dir=$withval
16692        fi
16693
16694
16695 fi
16696
16697
16698
16699
16700 # ------------------------------------------------------------------
16701 # If the user has not set archivedir, we set our default as /tmp
16702 # ------------------------------------------------------------------
16703 archive_dir=/tmp
16704
16705 # Check whether --with-archivedir was given.
16706 if test "${with_archivedir+set}" = set; then
16707   withval=$with_archivedir;
16708        if test "x$withval" != "xno" ; then
16709               archivedir=$withval
16710        fi
16711
16712
16713 fi
16714
16715
16716
16717
16718
16719
16720 # ------------------------------------------
16721 # Where to place scriptdir (script files)
16722 # ------------------------------------------
16723 scriptdir=`eval echo ${sysconfdir}`
16724
16725 # Check whether --with-scriptdir was given.
16726 if test "${with_scriptdir+set}" = set; then
16727   withval=$with_scriptdir;
16728        if test "x$withval" != "xno" ; then
16729               scriptdir=$withval
16730        fi
16731
16732
16733 fi
16734
16735
16736
16737
16738
16739 # ------------------------------------------
16740 # Where to send dump email
16741 # ------------------------------------------
16742 dump_email=root@localhost
16743
16744 # Check whether --with-dump-email was given.
16745 if test "${with_dump_email+set}" = set; then
16746   withval=$with_dump_email;
16747        if test "x$withval" != "xno" ; then
16748               dump_email=$withval
16749        fi
16750
16751
16752 fi
16753
16754
16755
16756
16757 # ------------------------------------------
16758 # Where to send job email
16759 # ------------------------------------------
16760 job_email=root@localhost
16761
16762 # Check whether --with-job-email was given.
16763 if test "${with_job_email+set}" = set; then
16764   withval=$with_job_email;
16765        if test "x$withval" != "xno" ; then
16766               job_email=$withval
16767        fi
16768
16769
16770 fi
16771
16772
16773
16774
16775 # ------------------------------------------
16776 # Where to find smtp host
16777 # ------------------------------------------
16778 smtp_host=localhost
16779
16780 # Check whether --with-smtp_host was given.
16781 if test "${with_smtp_host+set}" = set; then
16782   withval=$with_smtp_host;
16783        if test "x$withval" != "xno" ; then
16784               smtp_host=$withval
16785        fi
16786
16787
16788 fi
16789
16790
16791
16792
16793
16794 # ------------------------------------
16795 # Where to place pid files
16796 # ------------------------------------
16797 piddir=/var/run
16798
16799 # Check whether --with-pid-dir was given.
16800 if test "${with_pid_dir+set}" = set; then
16801   withval=$with_pid_dir;
16802         if test "x$withval" != "xno" ; then
16803             piddir=$withval
16804         fi
16805
16806
16807 fi
16808
16809
16810 cat >>confdefs.h <<_ACEOF
16811 #define _PATH_BACULA_PIDDIR "$piddir"
16812 _ACEOF
16813
16814
16815
16816
16817 # ------------------------------------
16818 # Where to place subsys "lock file"
16819 # ------------------------------------
16820 subsysdir=/var/run/subsys
16821 if test -d /var/run/subsys; then
16822    subsysdir=/var/run/subsys
16823 elif test -d /var/lock/subsys; then
16824    subsysdir=/var/lock/subsys
16825 else
16826    subsysdir=/var/run/subsys
16827 fi
16828
16829 # Check whether --with-subsys-dir was given.
16830 if test "${with_subsys_dir+set}" = set; then
16831   withval=$with_subsys_dir;
16832         if test "x$withval" != "xno" ; then
16833             subsysdir=$withval
16834         fi
16835
16836
16837 fi
16838
16839
16840
16841
16842
16843
16844 # ------------------------------------
16845 # Where to start assigning ports
16846 # ------------------------------------
16847 baseport=9101
16848
16849 # Check whether --with-baseport was given.
16850 if test "${with_baseport+set}" = set; then
16851   withval=$with_baseport;
16852         if test "x$withval" != "xno" ; then
16853              baseport=$withval
16854         fi
16855
16856
16857 fi
16858
16859
16860
16861 dir_port=`expr $baseport`
16862 fd_port=`expr $baseport + 1`
16863 sd_port=`expr $fd_port + 1`
16864
16865
16866
16867
16868
16869
16870 # ------------------------------------------
16871 # Generate passwords
16872 # ------------------------------------------
16873 dir_password=
16874
16875 # Check whether --with-dir-password was given.
16876 if test "${with_dir_password+set}" = set; then
16877   withval=$with_dir_password;
16878        if test "x$withval" != "xno" ; then
16879            dir_password=$withval
16880        fi
16881
16882
16883 fi
16884
16885
16886 if test "x$dir_password" = "x" ; then
16887    if test "x$OPENSSL" = "xnone" ; then
16888       key=`autoconf/randpass 33`
16889    else
16890       key=`openssl rand -base64 33`
16891    fi
16892    dir_password=$key
16893 fi
16894
16895 fd_password=
16896
16897 # Check whether --with-fd-password was given.
16898 if test "${with_fd_password+set}" = set; then
16899   withval=$with_fd_password;
16900        if test "x$withval" != "xno" ; then
16901            fd_password=$withval
16902        fi
16903
16904
16905 fi
16906
16907
16908 if test "x$fd_password" = "x" ; then
16909    if test "x$OPENSSL" = "xnone" ; then
16910       key=`autoconf/randpass 37`
16911    else
16912       key=`openssl rand -base64 33`
16913    fi
16914    fd_password=$key
16915 fi
16916
16917 sd_password=
16918
16919 # Check whether --with-sd-password was given.
16920 if test "${with_sd_password+set}" = set; then
16921   withval=$with_sd_password;
16922        if test "x$withval" != "xno" ; then
16923            sd_password=$withval
16924        fi
16925
16926
16927 fi
16928
16929
16930 if test "x$sd_password" = "x" ; then
16931    if test "x$OPENSSL" = "xnone" ; then
16932       key=`autoconf/randpass 41`
16933    else
16934       key=`openssl rand -base64 33`
16935    fi
16936    sd_password=$key
16937 fi
16938
16939 mon_dir_password=
16940
16941 # Check whether --with-mon-dir-password was given.
16942 if test "${with_mon_dir_password+set}" = set; then
16943   withval=$with_mon_dir_password;
16944        if test "x$withval" != "xno" ; then
16945            mon_dir_password=$withval
16946        fi
16947
16948
16949 fi
16950
16951
16952 if test "x$mon_dir_password" = "x" ; then
16953    if test "x$OPENSSL" = "xnone" ; then
16954       key=`autoconf/randpass 33`
16955    else
16956       key=`openssl rand -base64 33`
16957    fi
16958    mon_dir_password=$key
16959 fi
16960
16961 mon_fd_password=
16962
16963 # Check whether --with-mon-fd-password was given.
16964 if test "${with_mon_fd_password+set}" = set; then
16965   withval=$with_mon_fd_password;
16966        if test "x$withval" != "xno" ; then
16967            mon_fd_password=$withval
16968        fi
16969
16970
16971 fi
16972
16973
16974 if test "x$mon_fd_password" = "x" ; then
16975    if test "x$OPENSSL" = "xnone" ; then
16976       key=`autoconf/randpass 37`
16977    else
16978       key=`openssl rand -base64 33`
16979    fi
16980    mon_fd_password=$key
16981 fi
16982
16983 mon_sd_password=
16984
16985 # Check whether --with-mon-sd-password was given.
16986 if test "${with_mon_sd_password+set}" = set; then
16987   withval=$with_mon_sd_password;
16988        if test "x$withval" != "xno" ; then
16989            mon_sd_password=$withval
16990        fi
16991
16992
16993 fi
16994
16995
16996 if test "x$mon_sd_password" = "x" ; then
16997    if test "x$OPENSSL" = "xnone" ; then
16998       key=`autoconf/randpass 41`
16999    else
17000       key=`openssl rand -base64 33`
17001    fi
17002    mon_sd_password=$key
17003 fi
17004
17005
17006
17007
17008
17009
17010
17011
17012 #
17013 # Pickup any database name
17014 #
17015 db_name=bacula
17016
17017 # Check whether --with-db_name was given.
17018 if test "${with_db_name+set}" = set; then
17019   withval=$with_db_name;
17020         if test "x$withval" != "x" ; then
17021              db_name=$withval
17022         fi
17023
17024
17025 fi
17026
17027
17028
17029 db_user=bacula
17030
17031 # Check whether --with-db_user was given.
17032 if test "${with_db_user+set}" = set; then
17033   withval=$with_db_user;
17034         if test "x$withval" != "x" ; then
17035              db_user=$withval
17036         fi
17037
17038
17039 fi
17040
17041
17042
17043
17044 #
17045 # Handle users and groups for each daemon
17046 #
17047 dir_user=
17048
17049 # Check whether --with-dir_user was given.
17050 if test "${with_dir_user+set}" = set; then
17051   withval=$with_dir_user;
17052         if test "x$withval" != "x" ; then
17053              dir_user=$withval
17054         fi
17055
17056
17057 fi
17058
17059
17060 dir_group=
17061
17062 # Check whether --with-dir_group was given.
17063 if test "${with_dir_group+set}" = set; then
17064   withval=$with_dir_group;
17065         if test "x$withval" != "x" ; then
17066              dir_group=$withval
17067         fi
17068
17069
17070 fi
17071
17072
17073 sd_user=
17074
17075 # Check whether --with-sd_user was given.
17076 if test "${with_sd_user+set}" = set; then
17077   withval=$with_sd_user;
17078         if test "x$withval" != "x" ; then
17079              sd_user=$withval
17080         fi
17081
17082
17083 fi
17084
17085
17086 sd_group=
17087
17088 # Check whether --with-sd_group was given.
17089 if test "${with_sd_group+set}" = set; then
17090   withval=$with_sd_group;
17091         if test "x$withval" != "x" ; then
17092              sd_group=$withval
17093         fi
17094
17095
17096 fi
17097
17098
17099 fd_user=
17100
17101 # Check whether --with-fd_user was given.
17102 if test "${with_fd_user+set}" = set; then
17103   withval=$with_fd_user;
17104         if test "x$withval" != "x" ; then
17105              fd_user=$withval
17106         fi
17107
17108
17109 fi
17110
17111
17112 fd_group=
17113
17114 # Check whether --with-fd_group was given.
17115 if test "${with_fd_group+set}" = set; then
17116   withval=$with_fd_group;
17117         if test "x$withval" != "x" ; then
17118              fd_group=$withval
17119         fi
17120
17121
17122 fi
17123
17124
17125
17126
17127
17128
17129
17130
17131
17132 #
17133 # allow setting default executable permissions
17134 #
17135 SBINPERM=0754
17136
17137 # Check whether --with-sbin-perm was given.
17138 if test "${with_sbin_perm+set}" = set; then
17139   withval=$with_sbin_perm;
17140         if test "x$withval" != "x" ; then
17141             SBINPERM=$withval
17142         fi
17143
17144
17145 fi
17146
17147
17148
17149
17150 # ------------------------------------------------
17151 # Bacula check for various SQL database engines
17152 # ------------------------------------------------
17153 SQL_LIB=
17154
17155 db_found=no
17156 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17157 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17158
17159 # Check whether --with-postgresql was given.
17160 if test "${with_postgresql+set}" = set; then
17161   withval=$with_postgresql;
17162   if test "$withval" != "no"; then
17163       if test "$db_found" = "yes"; then
17164           { echo "$as_me:$LINENO: result: error" >&5
17165 echo "${ECHO_T}error" >&6; }
17166           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17167 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17168    { (exit 1); exit 1; }; };
17169       fi
17170       if test "$withval" = "yes"; then
17171           PG_CONFIG=`which pg_config`
17172           if test -n "$PG_CONFIG";then
17173               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17174               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17175               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17176           elif test -f /usr/local/include/libpq-fe.h; then
17177               POSTGRESQL_INCDIR=/usr/local/include
17178               if test -d /usr/local/lib64; then
17179                  POSTGRESQL_LIBDIR=/usr/local/lib64
17180               else
17181                  POSTGRESQL_LIBDIR=/usr/local/lib
17182               fi
17183               POSTGRESQL_BINDIR=/usr/local/bin
17184           elif test -f /usr/include/libpq-fe.h; then
17185               POSTGRESQL_INCDIR=/usr/include
17186               if test -d /usr/lib64; then
17187                  POSTGRESQL_LIBDIR=/usr/lib64
17188               else
17189                  POSTGRESQL_LIBDIR=/usr/lib
17190               fi
17191               POSTGRESQL_BINDIR=/usr/bin
17192           elif test -f /usr/include/pgsql/libpq-fe.h; then
17193               POSTGRESQL_INCDIR=/usr/include/pgsql
17194               if test -d /usr/lib64/pgsql; then
17195                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17196               else
17197                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17198               fi
17199               POSTGRESQL_BINDIR=/usr/bin
17200           elif test -f /usr/include/postgresql/libpq-fe.h; then
17201               POSTGRESQL_INCDIR=/usr/include/postgresql
17202               if test -d /usr/lib64/postgresql; then
17203                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17204               else
17205                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17206               fi
17207               POSTGRESQL_BINDIR=/usr/bin
17208           else
17209               { echo "$as_me:$LINENO: result: no" >&5
17210 echo "${ECHO_T}no" >&6; }
17211               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17212 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17213    { (exit 1); exit 1; }; }
17214           fi
17215       elif test -f $withval/include/libpq-fe.h; then
17216           POSTGRESQL_INCDIR=$withval/include
17217           POSTGRESQL_LIBDIR=$withval/lib
17218           POSTGRESQL_BINDIR=$withval/bin
17219       elif test -f $withval/include/postgresql/libpq-fe.h; then
17220           POSTGRESQL_INCDIR=$withval/include/postgresql
17221      if test -d $withval/lib64; then
17222          POSTGRESQL_LIBDIR=$withval/lib64
17223      else
17224          POSTGRESQL_LIBDIR=$withval/lib
17225      fi
17226           POSTGRESQL_BINDIR=$withval/bin
17227       else
17228           { echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6; }
17230           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17231 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17232    { (exit 1); exit 1; }; }
17233       fi
17234       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17235       { echo "$as_me:$LINENO: checking for crypt" >&5
17236 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17237 if test "${ac_cv_func_crypt+set}" = set; then
17238   echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240   cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h.  */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h.  */
17246 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17248 #define crypt innocuous_crypt
17249
17250 /* System header to define __stub macros and hopefully few prototypes,
17251     which can conflict with char crypt (); below.
17252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17253     <limits.h> exists even on freestanding compilers.  */
17254
17255 #ifdef __STDC__
17256 # include <limits.h>
17257 #else
17258 # include <assert.h>
17259 #endif
17260
17261 #undef crypt
17262
17263 /* Override any GCC internal prototype to avoid an error.
17264    Use char because int might match the return type of a GCC
17265    builtin and then its argument prototype would still apply.  */
17266 #ifdef __cplusplus
17267 extern "C"
17268 #endif
17269 char crypt ();
17270 /* The GNU C library defines this for functions which it implements
17271     to always fail with ENOSYS.  Some functions are actually named
17272     something starting with __ and the normal name is an alias.  */
17273 #if defined __stub_crypt || defined __stub___crypt
17274 choke me
17275 #endif
17276
17277 int
17278 main ()
17279 {
17280 return crypt ();
17281   ;
17282   return 0;
17283 }
17284 _ACEOF
17285 rm -f conftest.$ac_objext conftest$ac_exeext
17286 if { (ac_try="$ac_link"
17287 case "(($ac_try" in
17288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17289   *) ac_try_echo=$ac_try;;
17290 esac
17291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17292   (eval "$ac_link") 2>conftest.er1
17293   ac_status=$?
17294   grep -v '^ *+' conftest.er1 >conftest.err
17295   rm -f conftest.er1
17296   cat conftest.err >&5
17297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298   (exit $ac_status); } && {
17299          test -z "$ac_c_werror_flag" ||
17300          test ! -s conftest.err
17301        } && test -s conftest$ac_exeext &&
17302        $as_test_x conftest$ac_exeext; then
17303   ac_cv_func_crypt=yes
17304 else
17305   echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17307
17308         ac_cv_func_crypt=no
17309 fi
17310
17311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17312       conftest$ac_exeext conftest.$ac_ext
17313 fi
17314 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17315 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17316 if test $ac_cv_func_crypt = yes; then
17317   :
17318 else
17319   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17320 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17321 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17322   echo $ECHO_N "(cached) $ECHO_C" >&6
17323 else
17324   ac_check_lib_save_LIBS=$LIBS
17325 LIBS="-lcrypt  $LIBS"
17326 cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332
17333 /* Override any GCC internal prototype to avoid an error.
17334    Use char because int might match the return type of a GCC
17335    builtin and then its argument prototype would still apply.  */
17336 #ifdef __cplusplus
17337 extern "C"
17338 #endif
17339 char crypt ();
17340 int
17341 main ()
17342 {
17343 return crypt ();
17344   ;
17345   return 0;
17346 }
17347 _ACEOF
17348 rm -f conftest.$ac_objext conftest$ac_exeext
17349 if { (ac_try="$ac_link"
17350 case "(($ac_try" in
17351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352   *) ac_try_echo=$ac_try;;
17353 esac
17354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17355   (eval "$ac_link") 2>conftest.er1
17356   ac_status=$?
17357   grep -v '^ *+' conftest.er1 >conftest.err
17358   rm -f conftest.er1
17359   cat conftest.err >&5
17360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361   (exit $ac_status); } && {
17362          test -z "$ac_c_werror_flag" ||
17363          test ! -s conftest.err
17364        } && test -s conftest$ac_exeext &&
17365        $as_test_x conftest$ac_exeext; then
17366   ac_cv_lib_crypt_crypt=yes
17367 else
17368   echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17370
17371         ac_cv_lib_crypt_crypt=no
17372 fi
17373
17374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17375       conftest$ac_exeext conftest.$ac_ext
17376 LIBS=$ac_check_lib_save_LIBS
17377 fi
17378 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17379 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17380 if test $ac_cv_lib_crypt_crypt = yes; then
17381   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17382 fi
17383
17384 fi
17385
17386       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17387       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17388       SQL_BINDIR=$POSTGRESQL_BINDIR
17389       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17390
17391       cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_POSTGRESQL 1
17393 _ACEOF
17394
17395       { echo "$as_me:$LINENO: result: yes" >&5
17396 echo "${ECHO_T}yes" >&6; }
17397       db_found=yes
17398       support_postgresql=yes
17399       db_type=PostgreSQL
17400       DB_TYPE=postgresql
17401   else
17402       { echo "$as_me:$LINENO: result: no" >&5
17403 echo "${ECHO_T}no" >&6; }
17404   fi
17405
17406 else
17407
17408   { echo "$as_me:$LINENO: result: no" >&5
17409 echo "${ECHO_T}no" >&6; }
17410
17411 fi
17412
17413
17414
17415
17416
17417
17418
17419
17420 db_found=no
17421 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17422 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17423
17424 # Check whether --with-mysql was given.
17425 if test "${with_mysql+set}" = set; then
17426   withval=$with_mysql;
17427   if test "$withval" != "no"; then
17428         if test "$withval" = "yes"; then
17429            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17430                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17431                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17432                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17433                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17434                    else
17435                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17436                    fi
17437                    MYSQL_BINDIR=/usr/local/mysql/bin
17438            elif test -f /usr/include/mysql/mysql.h; then
17439                    MYSQL_INCDIR=/usr/include/mysql
17440                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17441                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17442                            MYSQL_LIBDIR=/usr/lib64/mysql
17443                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17444                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17445                            MYSQL_LIBDIR=/usr/lib/mysql
17446                    else
17447                            MYSQL_LIBDIR=/usr/lib
17448                    fi
17449                    MYSQL_BINDIR=/usr/bin
17450            elif test -f /usr/include/mysql.h; then
17451                    MYSQL_INCDIR=/usr/include
17452                    if test -f /usr/lib64/libmysqlclient_r.a \
17453                         -o -f /usr/lib64/libmysqlclient_r.so; then
17454                            MYSQL_LIBDIR=/usr/lib64
17455                    else
17456                            MYSQL_LIBDIR=/usr/lib
17457                    fi
17458                    MYSQL_BINDIR=/usr/bin
17459            elif test -f /usr/local/include/mysql/mysql.h; then
17460                    MYSQL_INCDIR=/usr/local/include/mysql
17461                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17462                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17463                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17464                    else
17465                            MYSQL_LIBDIR=/usr/local/lib/mysql
17466                    fi
17467                    MYSQL_BINDIR=/usr/local/bin
17468            elif test -f /usr/local/include/mysql.h; then
17469                    MYSQL_INCDIR=/usr/local/include
17470                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17471                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17472                            MYSQL_LIBDIR=/usr/local/lib64
17473                    else
17474                            MYSQL_LIBDIR=/usr/local/lib
17475                    fi
17476                    MYSQL_BINDIR=/usr/local/bin
17477            else
17478               { echo "$as_me:$LINENO: result: no" >&5
17479 echo "${ECHO_T}no" >&6; }
17480               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17481 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17482    { (exit 1); exit 1; }; }
17483            fi
17484         else
17485            if test -f $withval/include/mysql/mysql.h; then
17486               MYSQL_INCDIR=$withval/include/mysql
17487               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17488                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17489                  MYSQL_LIBDIR=$withval/lib64/mysql
17490               else
17491                  MYSQL_LIBDIR=$withval/lib/mysql
17492                  # Solaris ...
17493                  if test -f $withval/lib/libmysqlclient_r.so; then
17494                     MYSQL_LIBDIR=$withval/lib
17495                  fi
17496               fi
17497               MYSQL_BINDIR=$withval/bin
17498            elif test -f $withval/include/mysql.h; then
17499               MYSQL_INCDIR=$withval/include
17500               if test -f $withval/lib64/libmysqlclient_r.a \
17501                    -o -f $withval/lib64/libmysqlclient_r.so; then
17502                  MYSQL_LIBDIR=$withval/lib64
17503               else
17504                  MYSQL_LIBDIR=$withval/lib
17505               fi
17506               MYSQL_BINDIR=$withval/bin
17507            else
17508               { echo "$as_me:$LINENO: result: no" >&5
17509 echo "${ECHO_T}no" >&6; }
17510               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17511 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17512    { (exit 1); exit 1; }; }
17513            fi
17514         fi
17515     SQL_INCLUDE=-I$MYSQL_INCDIR
17516     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17517          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17518        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17519        cat >>confdefs.h <<\_ACEOF
17520 #define HAVE_THREAD_SAFE_MYSQL 1
17521 _ACEOF
17522
17523     fi
17524     SQL_BINDIR=$MYSQL_BINDIR
17525     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17526
17527     cat >>confdefs.h <<\_ACEOF
17528 #define HAVE_MYSQL 1
17529 _ACEOF
17530
17531     { echo "$as_me:$LINENO: result: yes" >&5
17532 echo "${ECHO_T}yes" >&6; }
17533     db_found=yes
17534     support_mysql=yes
17535     db_type=MySQL
17536     DB_TYPE=mysql
17537
17538   else
17539         { echo "$as_me:$LINENO: result: no" >&5
17540 echo "${ECHO_T}no" >&6; }
17541   fi
17542
17543
17544 fi
17545
17546
17547
17548 # Check whether --with-embedded-mysql was given.
17549 if test "${with_embedded_mysql+set}" = set; then
17550   withval=$with_embedded_mysql;
17551   if test "$withval" != "no"; then
17552         if test "$withval" = "yes"; then
17553                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17554                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17555                         if test -d /usr/local/mysql/lib64/mysql; then
17556                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17557                         else
17558                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17559                         fi
17560                         MYSQL_BINDIR=/usr/local/mysql/bin
17561                 elif test -f /usr/include/mysql/mysql.h; then
17562                         MYSQL_INCDIR=/usr/include/mysql
17563                         if test -d /usr/lib64/mysql; then
17564                                 MYSQL_LIBDIR=/usr/lib64/mysql
17565                         else
17566                                 MYSQL_LIBDIR=/usr/lib/mysql
17567                         fi
17568                         MYSQL_BINDIR=/usr/bin
17569                 elif test -f /usr/include/mysql.h; then
17570                         MYSQL_INCDIR=/usr/include
17571                         if test -d /usr/lib64; then
17572                                 MYSQL_LIBDIR=/usr/lib64
17573                         else
17574                                 MYSQL_LIBDIR=/usr/lib
17575                         fi
17576                         MYSQL_BINDIR=/usr/bin
17577                 elif test -f /usr/local/include/mysql/mysql.h; then
17578                         MYSQL_INCDIR=/usr/local/include/mysql
17579                         if test -d /usr/local/lib64/mysql; then
17580                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17581                         else
17582                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17583                         fi
17584                         MYSQL_BINDIR=/usr/local/bin
17585                 elif test -f /usr/local/include/mysql.h; then
17586                         MYSQL_INCDIR=/usr/local/include
17587                         if test -d /usr/local/lib64; then
17588                                 MYSQL_LIBDIR=/usr/local/lib64
17589                         else
17590                                 MYSQL_LIBDIR=/usr/local/lib
17591                         fi
17592                         MYSQL_BINDIR=/usr/local/bin
17593                 else
17594                    { echo "$as_me:$LINENO: result: no" >&5
17595 echo "${ECHO_T}no" >&6; }
17596                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17597 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17598    { (exit 1); exit 1; }; }
17599                 fi
17600         else
17601                 if test -f $withval/include/mysql/mysql.h; then
17602                         MYSQL_INCDIR=$withval/include/mysql
17603                         if test -d $withval/lib64/mysql; then
17604                                 MYSQL_LIBDIR=$withval/lib64/mysql
17605                         else
17606                                 MYSQL_LIBDIR=$withval/lib/mysql
17607                         fi
17608                         MYSQL_BINDIR=$withval/bin
17609                 elif test -f $withval/include/mysql.h; then
17610                         MYSQL_INCDIR=$withval/include
17611                         if test -d $withval/lib64; then
17612                                 MYSQL_LIBDIR=$withval/lib64
17613                         else
17614                                 MYSQL_LIBDIR=$withval/lib
17615                         fi
17616                         MYSQL_BINDIR=$withval/bin
17617                 else
17618                    { echo "$as_me:$LINENO: result: no" >&5
17619 echo "${ECHO_T}no" >&6; }
17620                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17621 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17622    { (exit 1); exit 1; }; }
17623                 fi
17624         fi
17625     SQL_INCLUDE=-I$MYSQL_INCDIR
17626     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17627     SQL_BINDIR=$MYSQL_BINDIR
17628     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17629
17630     cat >>confdefs.h <<\_ACEOF
17631 #define HAVE_MYSQL 1
17632 _ACEOF
17633
17634     cat >>confdefs.h <<\_ACEOF
17635 #define HAVE_EMBEDDED_MYSQL 1
17636 _ACEOF
17637
17638     { echo "$as_me:$LINENO: result: yes" >&5
17639 echo "${ECHO_T}yes" >&6; }
17640     db_found=yes
17641     support_mysql=yes
17642     db_type=MySQL
17643     DB_TYPE=mysql
17644
17645   else
17646         { echo "$as_me:$LINENO: result: no" >&5
17647 echo "${ECHO_T}no" >&6; }
17648   fi
17649
17650
17651 fi
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662 db_found=no
17663 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17664 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17665
17666 # Check whether --with-sqlite3 was given.
17667 if test "${with_sqlite3+set}" = set; then
17668   withval=$with_sqlite3;
17669   if test "$withval" != "no"; then
17670      if test "$withval" = "yes"; then
17671         if test -f /usr/local/include/sqlite3.h; then
17672            SQLITE_INCDIR=/usr/local/include
17673            if test -d /usr/local/lib64; then
17674               SQLITE_LIBDIR=/usr/local/lib64
17675            else
17676               SQLITE_LIBDIR=/usr/local/lib
17677            fi
17678            SQLITE_BINDIR=/usr/local/bin
17679         elif test -f /usr/include/sqlite3.h; then
17680            SQLITE_INCDIR=/usr/include
17681            if test -d /usr/lib64; then
17682               SQLITE_LIBDIR=/usr/lib64
17683            else
17684               SQLITE_LIBDIR=/usr/lib
17685            fi
17686            SQLITE_BINDIR=/usr/bin
17687         elif test -f $prefix/include/sqlite3.h; then
17688            SQLITE_INCDIR=$prefix/include
17689            if test -d $prefix/lib64; then
17690               SQLITE_LIBDIR=$prefix/lib64
17691            else
17692               SQLITE_LIBDIR=$prefix/lib
17693            fi
17694            SQLITE_BINDIR=$prefix/bin
17695         else
17696            { echo "$as_me:$LINENO: result: no" >&5
17697 echo "${ECHO_T}no" >&6; }
17698            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17699 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17700    { (exit 1); exit 1; }; }
17701         fi
17702      else
17703         if test -f $withval/sqlite3.h; then
17704            SQLITE_INCDIR=$withval
17705            SQLITE_LIBDIR=$withval
17706            SQLITE_BINDIR=$withval
17707         elif test -f $withval/include/sqlite3.h; then
17708            SQLITE_INCDIR=$withval/include
17709            if test -d $withval/lib64; then
17710               SQLITE_LIBDIR=$withval/lib64
17711            else
17712               SQLITE_LIBDIR=$withval/lib
17713            fi
17714            SQLITE_BINDIR=$withval/bin
17715         else
17716            { echo "$as_me:$LINENO: result: no" >&5
17717 echo "${ECHO_T}no" >&6; }
17718            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17719 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17720    { (exit 1); exit 1; }; }
17721         fi
17722      fi
17723      SQL_INCLUDE=-I$SQLITE_INCDIR
17724      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17725      SQL_BINDIR=$SQLITE_BINDIR
17726      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17727
17728      cat >>confdefs.h <<\_ACEOF
17729 #define HAVE_SQLITE3 1
17730 _ACEOF
17731
17732      { echo "$as_me:$LINENO: result: yes" >&5
17733 echo "${ECHO_T}yes" >&6; }
17734      db_found=yes
17735      support_sqlite3=yes
17736      db_type=SQLite3
17737      DB_TYPE=sqlite3
17738
17739   else
17740      { echo "$as_me:$LINENO: result: no" >&5
17741 echo "${ECHO_T}no" >&6; }
17742   fi
17743
17744 else
17745
17746   { echo "$as_me:$LINENO: result: no" >&5
17747 echo "${ECHO_T}no" >&6; }
17748
17749 fi
17750
17751
17752
17753
17754
17755
17756
17757
17758 db_found=no
17759 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17760 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17761
17762 # Check whether --with-sqlite was given.
17763 if test "${with_sqlite+set}" = set; then
17764   withval=$with_sqlite;
17765   if test "$withval" != "no"; then
17766      if test "$withval" = "yes"; then
17767         if test -f /usr/local/include/sqlite.h; then
17768            SQLITE_INCDIR=/usr/local/include
17769            if test -d /usr/local/lib64; then
17770               SQLITE_LIBDIR=/usr/local/lib64
17771            else
17772               SQLITE_LIBDIR=/usr/local/lib
17773            fi
17774            SQLITE_BINDIR=/usr/local/bin
17775         elif test -f /usr/include/sqlite.h; then
17776            SQLITE_INCDIR=/usr/include
17777            if test -d /usr/lib64; then
17778               SQLITE_LIBDIR=/usr/lib64
17779            else
17780               SQLITE_LIBDIR=/usr/lib
17781            fi
17782            SQLITE_BINDIR=/usr/bin
17783         elif test -f $prefix/include/sqlite.h; then
17784            SQLITE_INCDIR=$prefix/include
17785            if test -d $prefix/lib64; then
17786               SQLITE_LIBDIR=$prefix/lib64
17787            else
17788               SQLITE_LIBDIR=$prefix/lib
17789            fi
17790            SQLITE_BINDIR=$prefix/bin
17791         else
17792            { echo "$as_me:$LINENO: result: no" >&5
17793 echo "${ECHO_T}no" >&6; }
17794            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17795 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17796    { (exit 1); exit 1; }; }
17797         fi
17798      else
17799         if test -f $withval/sqlite.h; then
17800            SQLITE_INCDIR=$withval
17801            SQLITE_LIBDIR=$withval
17802            SQLITE_BINDIR=$withval
17803         elif test -f $withval/include/sqlite.h; then
17804            SQLITE_INCDIR=$withval/include
17805            if test -d $withval/lib64; then
17806               SQLITE_LIBDIR=$withval/lib64
17807            else
17808               SQLITE_LIBDIR=$withval/lib
17809            fi
17810            SQLITE_BINDIR=$withval/bin
17811         else
17812            { echo "$as_me:$LINENO: result: no" >&5
17813 echo "${ECHO_T}no" >&6; }
17814            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17815 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17816    { (exit 1); exit 1; }; }
17817         fi
17818      fi
17819      SQL_INCLUDE=-I$SQLITE_INCDIR
17820      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17821      SQL_BINDIR=$SQLITE_BINDIR
17822      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17823
17824      cat >>confdefs.h <<\_ACEOF
17825 #define HAVE_SQLITE 1
17826 _ACEOF
17827
17828      { echo "$as_me:$LINENO: result: yes" >&5
17829 echo "${ECHO_T}yes" >&6; }
17830      db_found=yes
17831      support_sqlite=yes
17832      db_type=SQLite
17833      DB_TYPE=sqlite
17834
17835   else
17836      { echo "$as_me:$LINENO: result: no" >&5
17837 echo "${ECHO_T}no" >&6; }
17838   fi
17839
17840 else
17841
17842   { echo "$as_me:$LINENO: result: no" >&5
17843 echo "${ECHO_T}no" >&6; }
17844
17845 fi
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856 # -------------------------------------------
17857 # enable batch attribute DB insert (default on)
17858 # -------------------------------------------
17859 support_batch_insert=no
17860 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17861 pkg=$?
17862 if test $pkg = 0; then
17863    support_batch_insert=yes
17864    # Check whether --enable-batch-insert was given.
17865 if test "${enable_batch_insert+set}" = set; then
17866   enableval=$enable_batch_insert; if test x$enableval = xno; then
17867        support_batch_insert=no
17868       else
17869        support_batch_insert=yes
17870      fi
17871 fi
17872
17873 fi
17874
17875 # Check if postgresql support batch mode
17876 if test x$DB_TYPE = xpostgresql; then
17877    A=`nm $SQL_LIB | grep PQputCopyData`
17878    pkg=$?
17879    if test $pkg != 0; then
17880       support_batch_insert=no
17881    fi
17882 fi
17883
17884 if test $support_batch_insert = yes ; then
17885
17886 cat >>confdefs.h <<\_ACEOF
17887 #define HAVE_BATCH_FILE_INSERT 1
17888 _ACEOF
17889
17890 fi
17891
17892
17893 cat >>confdefs.h <<\_ACEOF
17894 #define PROTOTYPES 1
17895 _ACEOF
17896
17897
17898 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17899     if test -z "$CCOPTS"; then
17900         CCOPTS='-g -O2 -Wall'
17901     fi
17902     CFLAGS="$CCOPTS"
17903 fi
17904
17905
17906
17907
17908 largefile_support="no"
17909
17910    # Check whether --enable-largefile was given.
17911 if test "${enable_largefile+set}" = set; then
17912   enableval=$enable_largefile;
17913 fi
17914
17915    if test "$enable_largefile" != no; then
17916      if test -n "$ac_tool_prefix"; then
17917   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17918 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17921 if test "${ac_cv_prog_GETCONF+set}" = set; then
17922   echo $ECHO_N "(cached) $ECHO_C" >&6
17923 else
17924   if test -n "$GETCONF"; then
17925   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17926 else
17927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17928 for as_dir in $PATH
17929 do
17930   IFS=$as_save_IFS
17931   test -z "$as_dir" && as_dir=.
17932   for ac_exec_ext in '' $ac_executable_extensions; do
17933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17934     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17935     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17936     break 2
17937   fi
17938 done
17939 done
17940 IFS=$as_save_IFS
17941
17942 fi
17943 fi
17944 GETCONF=$ac_cv_prog_GETCONF
17945 if test -n "$GETCONF"; then
17946   { echo "$as_me:$LINENO: result: $GETCONF" >&5
17947 echo "${ECHO_T}$GETCONF" >&6; }
17948 else
17949   { echo "$as_me:$LINENO: result: no" >&5
17950 echo "${ECHO_T}no" >&6; }
17951 fi
17952
17953
17954 fi
17955 if test -z "$ac_cv_prog_GETCONF"; then
17956   ac_ct_GETCONF=$GETCONF
17957   # Extract the first word of "getconf", so it can be a program name with args.
17958 set dummy getconf; ac_word=$2
17959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17961 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   if test -n "$ac_ct_GETCONF"; then
17965   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17966 else
17967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17968 for as_dir in $PATH
17969 do
17970   IFS=$as_save_IFS
17971   test -z "$as_dir" && as_dir=.
17972   for ac_exec_ext in '' $ac_executable_extensions; do
17973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17974     ac_cv_prog_ac_ct_GETCONF="getconf"
17975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17976     break 2
17977   fi
17978 done
17979 done
17980 IFS=$as_save_IFS
17981
17982 fi
17983 fi
17984 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17985 if test -n "$ac_ct_GETCONF"; then
17986   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17987 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
17988 else
17989   { echo "$as_me:$LINENO: result: no" >&5
17990 echo "${ECHO_T}no" >&6; }
17991 fi
17992
17993   if test "x$ac_ct_GETCONF" = x; then
17994     GETCONF=""
17995   else
17996     case $cross_compiling:$ac_tool_warned in
17997 yes:)
17998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17999 whose name does not start with the host triplet.  If you think this
18000 configuration is useful to you, please write to autoconf@gnu.org." >&5
18001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18002 whose name does not start with the host triplet.  If you think this
18003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18004 ac_tool_warned=yes ;;
18005 esac
18006     GETCONF=$ac_ct_GETCONF
18007   fi
18008 else
18009   GETCONF="$ac_cv_prog_GETCONF"
18010 fi
18011
18012      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18013 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18014 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18015   echo $ECHO_N "(cached) $ECHO_C" >&6
18016 else
18017   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18018         ac_cv_sys_largefile_CFLAGS=no
18019         case "$host_os" in
18020            # IRIX 6.2 and later require cc -n32.
18021            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18022              if test "$GCC" != yes; then
18023                ac_cv_sys_largefile_CFLAGS=-n32
18024              fi
18025              ac_save_CC="$CC"
18026              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18027              cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033
18034 int
18035 main ()
18036 {
18037
18038   ;
18039   return 0;
18040 }
18041 _ACEOF
18042 rm -f conftest.$ac_objext conftest$ac_exeext
18043 if { (ac_try="$ac_link"
18044 case "(($ac_try" in
18045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18046   *) ac_try_echo=$ac_try;;
18047 esac
18048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18049   (eval "$ac_link") 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } && {
18056          test -z "$ac_c_werror_flag" ||
18057          test ! -s conftest.err
18058        } && test -s conftest$ac_exeext &&
18059        $as_test_x conftest$ac_exeext; then
18060   :
18061 else
18062   echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065         ac_cv_sys_largefile_CFLAGS=no
18066 fi
18067
18068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18069       conftest$ac_exeext conftest.$ac_ext
18070              CC="$ac_save_CC"
18071            esac
18072       }
18073 fi
18074 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18075 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18076      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18077 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18078 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18079   echo $ECHO_N "(cached) $ECHO_C" >&6
18080 else
18081   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18082         ac_cv_sys_largefile_LDFLAGS=no
18083
18084       }
18085 fi
18086 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18087 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18088      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18089 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18090 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18091   echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18094         ac_cv_sys_largefile_LIBS=no
18095
18096       }
18097 fi
18098 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18099 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18100
18101      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18102        case "$ac_flag" in
18103        no) ;;
18104        -D_FILE_OFFSET_BITS=*) ;;
18105        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18106        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18107        -D?* | -I?*)
18108          case "$ac_flag" in
18109    no) ;;
18110    ?*)
18111      case "$CPPFLAGS" in
18112      '') CPPFLAGS="$ac_flag" ;;
18113      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18114      esac ;;
18115    esac ;;
18116        *)
18117          case "$ac_flag" in
18118    no) ;;
18119    ?*)
18120      case "$CFLAGS" in
18121      '') CFLAGS="$ac_flag" ;;
18122      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18123      esac ;;
18124    esac ;;
18125        esac
18126      done
18127      case "$ac_cv_sys_largefile_LDFLAGS" in
18128    no) ;;
18129    ?*)
18130      case "$LDFLAGS" in
18131      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18132      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18133      esac ;;
18134    esac
18135      case "$ac_cv_sys_largefile_LIBS" in
18136    no) ;;
18137    ?*)
18138      case "$LIBS" in
18139      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18140      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18141      esac ;;
18142    esac
18143      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18144 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18145 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18146   echo $ECHO_N "(cached) $ECHO_C" >&6
18147 else
18148   ac_cv_sys_file_offset_bits=no
18149       ac_cv_sys_file_offset_bits=64
18150       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18151         case "$ac_flag" in
18152         -D_FILE_OFFSET_BITS)
18153           ac_cv_sys_file_offset_bits=1 ;;
18154         -D_FILE_OFFSET_BITS=*)
18155           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18156         esac
18157       done
18158
18159 fi
18160 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18161 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18162    if test "$ac_cv_sys_file_offset_bits" != no; then
18163
18164 cat >>confdefs.h <<_ACEOF
18165 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18166 _ACEOF
18167
18168    fi
18169      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18170 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18171 if test "${ac_cv_sys_largefile_source+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174   ac_cv_sys_largefile_source=no
18175       ac_cv_sys_largefile_source=1
18176       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18177         case "$ac_flag" in
18178         -D_LARGEFILE_SOURCE)
18179           ac_cv_sys_largefile_source=1 ;;
18180         -D_LARGEFILE_SOURCE=*)
18181           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18182         esac
18183       done
18184
18185 fi
18186 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18187 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18188    if test "$ac_cv_sys_largefile_source" != no; then
18189
18190 cat >>confdefs.h <<_ACEOF
18191 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18192 _ACEOF
18193
18194    fi
18195      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18196 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18197 if test "${ac_cv_sys_large_files+set}" = set; then
18198   echo $ECHO_N "(cached) $ECHO_C" >&6
18199 else
18200   ac_cv_sys_large_files=no
18201       ac_cv_sys_large_files=1
18202       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18203         case "$ac_flag" in
18204         -D_LARGE_FILES)
18205           ac_cv_sys_large_files=1 ;;
18206         -D_LARGE_FILES=*)
18207           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18208         esac
18209       done
18210
18211 fi
18212 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18213 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18214    if test "$ac_cv_sys_large_files" != no; then
18215
18216 cat >>confdefs.h <<_ACEOF
18217 #define _LARGE_FILES $ac_cv_sys_large_files
18218 _ACEOF
18219
18220    fi
18221    fi
18222
18223
18224
18225 { echo "$as_me:$LINENO: checking for X" >&5
18226 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18227
18228
18229 # Check whether --with-x was given.
18230 if test "${with_x+set}" = set; then
18231   withval=$with_x;
18232 fi
18233
18234 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18235 if test "x$with_x" = xno; then
18236   # The user explicitly disabled X.
18237   have_x=disabled
18238 else
18239   case $x_includes,$x_libraries in #(
18240     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18241 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18242    { (exit 1); exit 1; }; };; #(
18243     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18244   echo $ECHO_N "(cached) $ECHO_C" >&6
18245 else
18246   # One or both of the vars are not set, and there is no cached value.
18247 ac_x_includes=no ac_x_libraries=no
18248 rm -f -r conftest.dir
18249 if mkdir conftest.dir; then
18250   cd conftest.dir
18251   cat >Imakefile <<'_ACEOF'
18252 incroot:
18253         @echo incroot='${INCROOT}'
18254 usrlibdir:
18255         @echo usrlibdir='${USRLIBDIR}'
18256 libdir:
18257         @echo libdir='${LIBDIR}'
18258 _ACEOF
18259   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18260     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18261     for ac_var in incroot usrlibdir libdir; do
18262       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18263     done
18264     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18265     for ac_extension in a so sl; do
18266       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18267          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18268         ac_im_usrlibdir=$ac_im_libdir; break
18269       fi
18270     done
18271     # Screen out bogus values from the imake configuration.  They are
18272     # bogus both because they are the default anyway, and because
18273     # using them would break gcc on systems where it needs fixed includes.
18274     case $ac_im_incroot in
18275         /usr/include) ac_x_includes= ;;
18276         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18277     esac
18278     case $ac_im_usrlibdir in
18279         /usr/lib | /lib) ;;
18280         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18281     esac
18282   fi
18283   cd ..
18284   rm -f -r conftest.dir
18285 fi
18286
18287 # Standard set of common directories for X headers.
18288 # Check X11 before X11Rn because it is often a symlink to the current release.
18289 ac_x_header_dirs='
18290 /usr/X11/include
18291 /usr/X11R6/include
18292 /usr/X11R5/include
18293 /usr/X11R4/include
18294
18295 /usr/include/X11
18296 /usr/include/X11R6
18297 /usr/include/X11R5
18298 /usr/include/X11R4
18299
18300 /usr/local/X11/include
18301 /usr/local/X11R6/include
18302 /usr/local/X11R5/include
18303 /usr/local/X11R4/include
18304
18305 /usr/local/include/X11
18306 /usr/local/include/X11R6
18307 /usr/local/include/X11R5
18308 /usr/local/include/X11R4
18309
18310 /usr/X386/include
18311 /usr/x386/include
18312 /usr/XFree86/include/X11
18313
18314 /usr/include
18315 /usr/local/include
18316 /usr/unsupported/include
18317 /usr/athena/include
18318 /usr/local/x11r5/include
18319 /usr/lpp/Xamples/include
18320
18321 /usr/openwin/include
18322 /usr/openwin/share/include'
18323
18324 if test "$ac_x_includes" = no; then
18325   # Guess where to find include files, by looking for Xlib.h.
18326   # First, try using that file with no special directory specified.
18327   cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h.  */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h.  */
18333 #include <X11/Xlib.h>
18334 _ACEOF
18335 if { (ac_try="$ac_cpp conftest.$ac_ext"
18336 case "(($ac_try" in
18337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338   *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18342   ac_status=$?
18343   grep -v '^ *+' conftest.er1 >conftest.err
18344   rm -f conftest.er1
18345   cat conftest.err >&5
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); } >/dev/null && {
18348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18349          test ! -s conftest.err
18350        }; then
18351   # We can compile using X headers with no special include directory.
18352 ac_x_includes=
18353 else
18354   echo "$as_me: failed program was:" >&5
18355 sed 's/^/| /' conftest.$ac_ext >&5
18356
18357   for ac_dir in $ac_x_header_dirs; do
18358   if test -r "$ac_dir/X11/Xlib.h"; then
18359     ac_x_includes=$ac_dir
18360     break
18361   fi
18362 done
18363 fi
18364
18365 rm -f conftest.err conftest.$ac_ext
18366 fi # $ac_x_includes = no
18367
18368 if test "$ac_x_libraries" = no; then
18369   # Check for the libraries.
18370   # See if we find them without any special options.
18371   # Don't add to $LIBS permanently.
18372   ac_save_LIBS=$LIBS
18373   LIBS="-lX11 $LIBS"
18374   cat >conftest.$ac_ext <<_ACEOF
18375 /* confdefs.h.  */
18376 _ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h.  */
18380 #include <X11/Xlib.h>
18381 int
18382 main ()
18383 {
18384 XrmInitialize ()
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 rm -f conftest.$ac_objext conftest$ac_exeext
18390 if { (ac_try="$ac_link"
18391 case "(($ac_try" in
18392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18393   *) ac_try_echo=$ac_try;;
18394 esac
18395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18396   (eval "$ac_link") 2>conftest.er1
18397   ac_status=$?
18398   grep -v '^ *+' conftest.er1 >conftest.err
18399   rm -f conftest.er1
18400   cat conftest.err >&5
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); } && {
18403          test -z "$ac_c_werror_flag" ||
18404          test ! -s conftest.err
18405        } && test -s conftest$ac_exeext &&
18406        $as_test_x conftest$ac_exeext; then
18407   LIBS=$ac_save_LIBS
18408 # We can link X programs with no special library path.
18409 ac_x_libraries=
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414         LIBS=$ac_save_LIBS
18415 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18416 do
18417   # Don't even attempt the hair of trying to link an X program!
18418   for ac_extension in a so sl; do
18419     if test -r "$ac_dir/libX11.$ac_extension"; then
18420       ac_x_libraries=$ac_dir
18421       break 2
18422     fi
18423   done
18424 done
18425 fi
18426
18427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18428       conftest$ac_exeext conftest.$ac_ext
18429 fi # $ac_x_libraries = no
18430
18431 case $ac_x_includes,$ac_x_libraries in #(
18432   no,* | *,no | *\'*)
18433     # Didn't find X, or a directory has "'" in its name.
18434     ac_cv_have_x="have_x=no";; #(
18435   *)
18436     # Record where we found X for the cache.
18437     ac_cv_have_x="have_x=yes\
18438         ac_x_includes='$ac_x_includes'\
18439         ac_x_libraries='$ac_x_libraries'"
18440 esac
18441 fi
18442 ;; #(
18443     *) have_x=yes;;
18444   esac
18445   eval "$ac_cv_have_x"
18446 fi # $with_x != no
18447
18448 if test "$have_x" != yes; then
18449   { echo "$as_me:$LINENO: result: $have_x" >&5
18450 echo "${ECHO_T}$have_x" >&6; }
18451   no_x=yes
18452 else
18453   # If each of the values was on the command line, it overrides each guess.
18454   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18455   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18456   # Update the cache value to reflect the command line values.
18457   ac_cv_have_x="have_x=yes\
18458         ac_x_includes='$x_includes'\
18459         ac_x_libraries='$x_libraries'"
18460   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18461 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18462 fi
18463
18464 if test "$no_x" = yes; then
18465   # Not all programs may use this symbol, but it does not hurt to define it.
18466
18467 cat >>confdefs.h <<\_ACEOF
18468 #define X_DISPLAY_MISSING 1
18469 _ACEOF
18470
18471   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18472 else
18473   if test -n "$x_includes"; then
18474     X_CFLAGS="$X_CFLAGS -I$x_includes"
18475   fi
18476
18477   # It would also be nice to do this for all -L options, not just this one.
18478   if test -n "$x_libraries"; then
18479     X_LIBS="$X_LIBS -L$x_libraries"
18480     # For Solaris; some versions of Sun CC require a space after -R and
18481     # others require no space.  Words are not sufficient . . . .
18482     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18483 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18484     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18485     ac_xsave_c_werror_flag=$ac_c_werror_flag
18486     ac_c_werror_flag=yes
18487     cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h.  */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h.  */
18493
18494 int
18495 main ()
18496 {
18497
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506   *) ac_try_echo=$ac_try;;
18507 esac
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509   (eval "$ac_link") 2>conftest.er1
18510   ac_status=$?
18511   grep -v '^ *+' conftest.er1 >conftest.err
18512   rm -f conftest.er1
18513   cat conftest.err >&5
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); } && {
18516          test -z "$ac_c_werror_flag" ||
18517          test ! -s conftest.err
18518        } && test -s conftest$ac_exeext &&
18519        $as_test_x conftest$ac_exeext; then
18520   { echo "$as_me:$LINENO: result: no" >&5
18521 echo "${ECHO_T}no" >&6; }
18522        X_LIBS="$X_LIBS -R$x_libraries"
18523 else
18524   echo "$as_me: failed program was:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18526
18527         LIBS="$ac_xsave_LIBS -R $x_libraries"
18528        cat >conftest.$ac_ext <<_ACEOF
18529 /* confdefs.h.  */
18530 _ACEOF
18531 cat confdefs.h >>conftest.$ac_ext
18532 cat >>conftest.$ac_ext <<_ACEOF
18533 /* end confdefs.h.  */
18534
18535 int
18536 main ()
18537 {
18538
18539   ;
18540   return 0;
18541 }
18542 _ACEOF
18543 rm -f conftest.$ac_objext conftest$ac_exeext
18544 if { (ac_try="$ac_link"
18545 case "(($ac_try" in
18546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18547   *) ac_try_echo=$ac_try;;
18548 esac
18549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18550   (eval "$ac_link") 2>conftest.er1
18551   ac_status=$?
18552   grep -v '^ *+' conftest.er1 >conftest.err
18553   rm -f conftest.er1
18554   cat conftest.err >&5
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); } && {
18557          test -z "$ac_c_werror_flag" ||
18558          test ! -s conftest.err
18559        } && test -s conftest$ac_exeext &&
18560        $as_test_x conftest$ac_exeext; then
18561   { echo "$as_me:$LINENO: result: yes" >&5
18562 echo "${ECHO_T}yes" >&6; }
18563           X_LIBS="$X_LIBS -R $x_libraries"
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568         { echo "$as_me:$LINENO: result: neither works" >&5
18569 echo "${ECHO_T}neither works" >&6; }
18570 fi
18571
18572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18573       conftest$ac_exeext conftest.$ac_ext
18574 fi
18575
18576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18577       conftest$ac_exeext conftest.$ac_ext
18578     ac_c_werror_flag=$ac_xsave_c_werror_flag
18579     LIBS=$ac_xsave_LIBS
18580   fi
18581
18582   # Check for system-dependent libraries X programs must link with.
18583   # Do this before checking for the system-independent R6 libraries
18584   # (-lICE), since we may need -lsocket or whatever for X linking.
18585
18586   if test "$ISC" = yes; then
18587     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18588   else
18589     # Martyn Johnson says this is needed for Ultrix, if the X
18590     # libraries were built with DECnet support.  And Karl Berry says
18591     # the Alpha needs dnet_stub (dnet does not exist).
18592     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18593     cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h.  */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h.  */
18599
18600 /* Override any GCC internal prototype to avoid an error.
18601    Use char because int might match the return type of a GCC
18602    builtin and then its argument prototype would still apply.  */
18603 #ifdef __cplusplus
18604 extern "C"
18605 #endif
18606 char XOpenDisplay ();
18607 int
18608 main ()
18609 {
18610 return XOpenDisplay ();
18611   ;
18612   return 0;
18613 }
18614 _ACEOF
18615 rm -f conftest.$ac_objext conftest$ac_exeext
18616 if { (ac_try="$ac_link"
18617 case "(($ac_try" in
18618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619   *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622   (eval "$ac_link") 2>conftest.er1
18623   ac_status=$?
18624   grep -v '^ *+' conftest.er1 >conftest.err
18625   rm -f conftest.er1
18626   cat conftest.err >&5
18627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628   (exit $ac_status); } && {
18629          test -z "$ac_c_werror_flag" ||
18630          test ! -s conftest.err
18631        } && test -s conftest$ac_exeext &&
18632        $as_test_x conftest$ac_exeext; then
18633   :
18634 else
18635   echo "$as_me: failed program was:" >&5
18636 sed 's/^/| /' conftest.$ac_ext >&5
18637
18638         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18639 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18640 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18641   echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643   ac_check_lib_save_LIBS=$LIBS
18644 LIBS="-ldnet  $LIBS"
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h.  */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h.  */
18651
18652 /* Override any GCC internal prototype to avoid an error.
18653    Use char because int might match the return type of a GCC
18654    builtin and then its argument prototype would still apply.  */
18655 #ifdef __cplusplus
18656 extern "C"
18657 #endif
18658 char dnet_ntoa ();
18659 int
18660 main ()
18661 {
18662 return dnet_ntoa ();
18663   ;
18664   return 0;
18665 }
18666 _ACEOF
18667 rm -f conftest.$ac_objext conftest$ac_exeext
18668 if { (ac_try="$ac_link"
18669 case "(($ac_try" in
18670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18671   *) ac_try_echo=$ac_try;;
18672 esac
18673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18674   (eval "$ac_link") 2>conftest.er1
18675   ac_status=$?
18676   grep -v '^ *+' conftest.er1 >conftest.err
18677   rm -f conftest.er1
18678   cat conftest.err >&5
18679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680   (exit $ac_status); } && {
18681          test -z "$ac_c_werror_flag" ||
18682          test ! -s conftest.err
18683        } && test -s conftest$ac_exeext &&
18684        $as_test_x conftest$ac_exeext; then
18685   ac_cv_lib_dnet_dnet_ntoa=yes
18686 else
18687   echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18689
18690         ac_cv_lib_dnet_dnet_ntoa=no
18691 fi
18692
18693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18694       conftest$ac_exeext conftest.$ac_ext
18695 LIBS=$ac_check_lib_save_LIBS
18696 fi
18697 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18698 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18699 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18700   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18701 fi
18702
18703     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18704       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18705 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18706 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18707   echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709   ac_check_lib_save_LIBS=$LIBS
18710 LIBS="-ldnet_stub  $LIBS"
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717
18718 /* Override any GCC internal prototype to avoid an error.
18719    Use char because int might match the return type of a GCC
18720    builtin and then its argument prototype would still apply.  */
18721 #ifdef __cplusplus
18722 extern "C"
18723 #endif
18724 char dnet_ntoa ();
18725 int
18726 main ()
18727 {
18728 return dnet_ntoa ();
18729   ;
18730   return 0;
18731 }
18732 _ACEOF
18733 rm -f conftest.$ac_objext conftest$ac_exeext
18734 if { (ac_try="$ac_link"
18735 case "(($ac_try" in
18736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18737   *) ac_try_echo=$ac_try;;
18738 esac
18739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18740   (eval "$ac_link") 2>conftest.er1
18741   ac_status=$?
18742   grep -v '^ *+' conftest.er1 >conftest.err
18743   rm -f conftest.er1
18744   cat conftest.err >&5
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); } && {
18747          test -z "$ac_c_werror_flag" ||
18748          test ! -s conftest.err
18749        } && test -s conftest$ac_exeext &&
18750        $as_test_x conftest$ac_exeext; then
18751   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18752 else
18753   echo "$as_me: failed program was:" >&5
18754 sed 's/^/| /' conftest.$ac_ext >&5
18755
18756         ac_cv_lib_dnet_stub_dnet_ntoa=no
18757 fi
18758
18759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18760       conftest$ac_exeext conftest.$ac_ext
18761 LIBS=$ac_check_lib_save_LIBS
18762 fi
18763 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18764 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18765 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18766   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18767 fi
18768
18769     fi
18770 fi
18771
18772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18773       conftest$ac_exeext conftest.$ac_ext
18774     LIBS="$ac_xsave_LIBS"
18775
18776     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18777     # to get the SysV transport functions.
18778     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18779     # needs -lnsl.
18780     # The nsl library prevents programs from opening the X display
18781     # on Irix 5.2, according to T.E. Dickey.
18782     # The functions gethostbyname, getservbyname, and inet_addr are
18783     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18784     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18785 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18786 if test "${ac_cv_func_gethostbyname+set}" = set; then
18787   echo $ECHO_N "(cached) $ECHO_C" >&6
18788 else
18789   cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h.  */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h.  */
18795 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18796    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18797 #define gethostbyname innocuous_gethostbyname
18798
18799 /* System header to define __stub macros and hopefully few prototypes,
18800     which can conflict with char gethostbyname (); below.
18801     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18802     <limits.h> exists even on freestanding compilers.  */
18803
18804 #ifdef __STDC__
18805 # include <limits.h>
18806 #else
18807 # include <assert.h>
18808 #endif
18809
18810 #undef gethostbyname
18811
18812 /* Override any GCC internal prototype to avoid an error.
18813    Use char because int might match the return type of a GCC
18814    builtin and then its argument prototype would still apply.  */
18815 #ifdef __cplusplus
18816 extern "C"
18817 #endif
18818 char gethostbyname ();
18819 /* The GNU C library defines this for functions which it implements
18820     to always fail with ENOSYS.  Some functions are actually named
18821     something starting with __ and the normal name is an alias.  */
18822 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18823 choke me
18824 #endif
18825
18826 int
18827 main ()
18828 {
18829 return gethostbyname ();
18830   ;
18831   return 0;
18832 }
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838   *) ac_try_echo=$ac_try;;
18839 esac
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841   (eval "$ac_link") 2>conftest.er1
18842   ac_status=$?
18843   grep -v '^ *+' conftest.er1 >conftest.err
18844   rm -f conftest.er1
18845   cat conftest.err >&5
18846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847   (exit $ac_status); } && {
18848          test -z "$ac_c_werror_flag" ||
18849          test ! -s conftest.err
18850        } && test -s conftest$ac_exeext &&
18851        $as_test_x conftest$ac_exeext; then
18852   ac_cv_func_gethostbyname=yes
18853 else
18854   echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18856
18857         ac_cv_func_gethostbyname=no
18858 fi
18859
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861       conftest$ac_exeext conftest.$ac_ext
18862 fi
18863 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18864 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18865
18866     if test $ac_cv_func_gethostbyname = no; then
18867       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18868 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   ac_check_lib_save_LIBS=$LIBS
18873 LIBS="-lnsl  $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880
18881 /* Override any GCC internal prototype to avoid an error.
18882    Use char because int might match the return type of a GCC
18883    builtin and then its argument prototype would still apply.  */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 char gethostbyname ();
18888 int
18889 main ()
18890 {
18891 return gethostbyname ();
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903   (eval "$ac_link") 2>conftest.er1
18904   ac_status=$?
18905   grep -v '^ *+' conftest.er1 >conftest.err
18906   rm -f conftest.er1
18907   cat conftest.err >&5
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } && {
18910          test -z "$ac_c_werror_flag" ||
18911          test ! -s conftest.err
18912        } && test -s conftest$ac_exeext &&
18913        $as_test_x conftest$ac_exeext; then
18914   ac_cv_lib_nsl_gethostbyname=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919         ac_cv_lib_nsl_gethostbyname=no
18920 fi
18921
18922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923       conftest$ac_exeext conftest.$ac_ext
18924 LIBS=$ac_check_lib_save_LIBS
18925 fi
18926 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18927 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18928 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18929   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18930 fi
18931
18932       if test $ac_cv_lib_nsl_gethostbyname = no; then
18933         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18934 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18935 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18936   echo $ECHO_N "(cached) $ECHO_C" >&6
18937 else
18938   ac_check_lib_save_LIBS=$LIBS
18939 LIBS="-lbsd  $LIBS"
18940 cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h.  */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h.  */
18946
18947 /* Override any GCC internal prototype to avoid an error.
18948    Use char because int might match the return type of a GCC
18949    builtin and then its argument prototype would still apply.  */
18950 #ifdef __cplusplus
18951 extern "C"
18952 #endif
18953 char gethostbyname ();
18954 int
18955 main ()
18956 {
18957 return gethostbyname ();
18958   ;
18959   return 0;
18960 }
18961 _ACEOF
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (ac_try="$ac_link"
18964 case "(($ac_try" in
18965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966   *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969   (eval "$ac_link") 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } && {
18976          test -z "$ac_c_werror_flag" ||
18977          test ! -s conftest.err
18978        } && test -s conftest$ac_exeext &&
18979        $as_test_x conftest$ac_exeext; then
18980   ac_cv_lib_bsd_gethostbyname=yes
18981 else
18982   echo "$as_me: failed program was:" >&5
18983 sed 's/^/| /' conftest.$ac_ext >&5
18984
18985         ac_cv_lib_bsd_gethostbyname=no
18986 fi
18987
18988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18989       conftest$ac_exeext conftest.$ac_ext
18990 LIBS=$ac_check_lib_save_LIBS
18991 fi
18992 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18993 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
18994 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18995   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18996 fi
18997
18998       fi
18999     fi
19000
19001     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19002     # socket/setsockopt and other routines are undefined under SCO ODT
19003     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19004     # on later versions), says Simon Leinen: it contains gethostby*
19005     # variants that don't use the name server (or something).  -lsocket
19006     # must be given before -lnsl if both are needed.  We assume that
19007     # if connect needs -lnsl, so does gethostbyname.
19008     { echo "$as_me:$LINENO: checking for connect" >&5
19009 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19010 if test "${ac_cv_func_connect+set}" = set; then
19011   echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013   cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h.  */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h.  */
19019 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19020    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19021 #define connect innocuous_connect
19022
19023 /* System header to define __stub macros and hopefully few prototypes,
19024     which can conflict with char connect (); below.
19025     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026     <limits.h> exists even on freestanding compilers.  */
19027
19028 #ifdef __STDC__
19029 # include <limits.h>
19030 #else
19031 # include <assert.h>
19032 #endif
19033
19034 #undef connect
19035
19036 /* Override any GCC internal prototype to avoid an error.
19037    Use char because int might match the return type of a GCC
19038    builtin and then its argument prototype would still apply.  */
19039 #ifdef __cplusplus
19040 extern "C"
19041 #endif
19042 char connect ();
19043 /* The GNU C library defines this for functions which it implements
19044     to always fail with ENOSYS.  Some functions are actually named
19045     something starting with __ and the normal name is an alias.  */
19046 #if defined __stub_connect || defined __stub___connect
19047 choke me
19048 #endif
19049
19050 int
19051 main ()
19052 {
19053 return connect ();
19054   ;
19055   return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062   *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065   (eval "$ac_link") 2>conftest.er1
19066   ac_status=$?
19067   grep -v '^ *+' conftest.er1 >conftest.err
19068   rm -f conftest.er1
19069   cat conftest.err >&5
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); } && {
19072          test -z "$ac_c_werror_flag" ||
19073          test ! -s conftest.err
19074        } && test -s conftest$ac_exeext &&
19075        $as_test_x conftest$ac_exeext; then
19076   ac_cv_func_connect=yes
19077 else
19078   echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081         ac_cv_func_connect=no
19082 fi
19083
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085       conftest$ac_exeext conftest.$ac_ext
19086 fi
19087 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19088 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19089
19090     if test $ac_cv_func_connect = no; then
19091       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19092 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19093 if test "${ac_cv_lib_socket_connect+set}" = set; then
19094   echo $ECHO_N "(cached) $ECHO_C" >&6
19095 else
19096   ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19098 cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h.  */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h.  */
19104
19105 /* Override any GCC internal prototype to avoid an error.
19106    Use char because int might match the return type of a GCC
19107    builtin and then its argument prototype would still apply.  */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 char connect ();
19112 int
19113 main ()
19114 {
19115 return connect ();
19116   ;
19117   return 0;
19118 }
19119 _ACEOF
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124   *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127   (eval "$ac_link") 2>conftest.er1
19128   ac_status=$?
19129   grep -v '^ *+' conftest.er1 >conftest.err
19130   rm -f conftest.er1
19131   cat conftest.err >&5
19132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133   (exit $ac_status); } && {
19134          test -z "$ac_c_werror_flag" ||
19135          test ! -s conftest.err
19136        } && test -s conftest$ac_exeext &&
19137        $as_test_x conftest$ac_exeext; then
19138   ac_cv_lib_socket_connect=yes
19139 else
19140   echo "$as_me: failed program was:" >&5
19141 sed 's/^/| /' conftest.$ac_ext >&5
19142
19143         ac_cv_lib_socket_connect=no
19144 fi
19145
19146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19147       conftest$ac_exeext conftest.$ac_ext
19148 LIBS=$ac_check_lib_save_LIBS
19149 fi
19150 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19151 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19152 if test $ac_cv_lib_socket_connect = yes; then
19153   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19154 fi
19155
19156     fi
19157
19158     # Guillermo Gomez says -lposix is necessary on A/UX.
19159     { echo "$as_me:$LINENO: checking for remove" >&5
19160 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19161 if test "${ac_cv_func_remove+set}" = set; then
19162   echo $ECHO_N "(cached) $ECHO_C" >&6
19163 else
19164   cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h.  */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h.  */
19170 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19171    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19172 #define remove innocuous_remove
19173
19174 /* System header to define __stub macros and hopefully few prototypes,
19175     which can conflict with char remove (); below.
19176     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19177     <limits.h> exists even on freestanding compilers.  */
19178
19179 #ifdef __STDC__
19180 # include <limits.h>
19181 #else
19182 # include <assert.h>
19183 #endif
19184
19185 #undef remove
19186
19187 /* Override any GCC internal prototype to avoid an error.
19188    Use char because int might match the return type of a GCC
19189    builtin and then its argument prototype would still apply.  */
19190 #ifdef __cplusplus
19191 extern "C"
19192 #endif
19193 char remove ();
19194 /* The GNU C library defines this for functions which it implements
19195     to always fail with ENOSYS.  Some functions are actually named
19196     something starting with __ and the normal name is an alias.  */
19197 #if defined __stub_remove || defined __stub___remove
19198 choke me
19199 #endif
19200
19201 int
19202 main ()
19203 {
19204 return remove ();
19205   ;
19206   return 0;
19207 }
19208 _ACEOF
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_link") 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } && {
19223          test -z "$ac_c_werror_flag" ||
19224          test ! -s conftest.err
19225        } && test -s conftest$ac_exeext &&
19226        $as_test_x conftest$ac_exeext; then
19227   ac_cv_func_remove=yes
19228 else
19229   echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232         ac_cv_func_remove=no
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19236       conftest$ac_exeext conftest.$ac_ext
19237 fi
19238 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19239 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19240
19241     if test $ac_cv_func_remove = no; then
19242       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19243 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19244 if test "${ac_cv_lib_posix_remove+set}" = set; then
19245   echo $ECHO_N "(cached) $ECHO_C" >&6
19246 else
19247   ac_check_lib_save_LIBS=$LIBS
19248 LIBS="-lposix  $LIBS"
19249 cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255
19256 /* Override any GCC internal prototype to avoid an error.
19257    Use char because int might match the return type of a GCC
19258    builtin and then its argument prototype would still apply.  */
19259 #ifdef __cplusplus
19260 extern "C"
19261 #endif
19262 char remove ();
19263 int
19264 main ()
19265 {
19266 return remove ();
19267   ;
19268   return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (ac_try="$ac_link"
19273 case "(($ac_try" in
19274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275   *) ac_try_echo=$ac_try;;
19276 esac
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278   (eval "$ac_link") 2>conftest.er1
19279   ac_status=$?
19280   grep -v '^ *+' conftest.er1 >conftest.err
19281   rm -f conftest.er1
19282   cat conftest.err >&5
19283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284   (exit $ac_status); } && {
19285          test -z "$ac_c_werror_flag" ||
19286          test ! -s conftest.err
19287        } && test -s conftest$ac_exeext &&
19288        $as_test_x conftest$ac_exeext; then
19289   ac_cv_lib_posix_remove=yes
19290 else
19291   echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294         ac_cv_lib_posix_remove=no
19295 fi
19296
19297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19298       conftest$ac_exeext conftest.$ac_ext
19299 LIBS=$ac_check_lib_save_LIBS
19300 fi
19301 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19302 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19303 if test $ac_cv_lib_posix_remove = yes; then
19304   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19305 fi
19306
19307     fi
19308
19309     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19310     { echo "$as_me:$LINENO: checking for shmat" >&5
19311 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19312 if test "${ac_cv_func_shmat+set}" = set; then
19313   echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315   cat >conftest.$ac_ext <<_ACEOF
19316 /* confdefs.h.  */
19317 _ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h.  */
19321 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19323 #define shmat innocuous_shmat
19324
19325 /* System header to define __stub macros and hopefully few prototypes,
19326     which can conflict with char shmat (); below.
19327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328     <limits.h> exists even on freestanding compilers.  */
19329
19330 #ifdef __STDC__
19331 # include <limits.h>
19332 #else
19333 # include <assert.h>
19334 #endif
19335
19336 #undef shmat
19337
19338 /* Override any GCC internal prototype to avoid an error.
19339    Use char because int might match the return type of a GCC
19340    builtin and then its argument prototype would still apply.  */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 char shmat ();
19345 /* The GNU C library defines this for functions which it implements
19346     to always fail with ENOSYS.  Some functions are actually named
19347     something starting with __ and the normal name is an alias.  */
19348 #if defined __stub_shmat || defined __stub___shmat
19349 choke me
19350 #endif
19351
19352 int
19353 main ()
19354 {
19355 return shmat ();
19356   ;
19357   return 0;
19358 }
19359 _ACEOF
19360 rm -f conftest.$ac_objext conftest$ac_exeext
19361 if { (ac_try="$ac_link"
19362 case "(($ac_try" in
19363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364   *) ac_try_echo=$ac_try;;
19365 esac
19366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19367   (eval "$ac_link") 2>conftest.er1
19368   ac_status=$?
19369   grep -v '^ *+' conftest.er1 >conftest.err
19370   rm -f conftest.er1
19371   cat conftest.err >&5
19372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373   (exit $ac_status); } && {
19374          test -z "$ac_c_werror_flag" ||
19375          test ! -s conftest.err
19376        } && test -s conftest$ac_exeext &&
19377        $as_test_x conftest$ac_exeext; then
19378   ac_cv_func_shmat=yes
19379 else
19380   echo "$as_me: failed program was:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19382
19383         ac_cv_func_shmat=no
19384 fi
19385
19386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19387       conftest$ac_exeext conftest.$ac_ext
19388 fi
19389 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19390 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19391
19392     if test $ac_cv_func_shmat = no; then
19393       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19394 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19395 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-lipc  $LIBS"
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406
19407 /* Override any GCC internal prototype to avoid an error.
19408    Use char because int might match the return type of a GCC
19409    builtin and then its argument prototype would still apply.  */
19410 #ifdef __cplusplus
19411 extern "C"
19412 #endif
19413 char shmat ();
19414 int
19415 main ()
19416 {
19417 return shmat ();
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_link") 2>conftest.er1
19430   ac_status=$?
19431   grep -v '^ *+' conftest.er1 >conftest.err
19432   rm -f conftest.er1
19433   cat conftest.err >&5
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); } && {
19436          test -z "$ac_c_werror_flag" ||
19437          test ! -s conftest.err
19438        } && test -s conftest$ac_exeext &&
19439        $as_test_x conftest$ac_exeext; then
19440   ac_cv_lib_ipc_shmat=yes
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445         ac_cv_lib_ipc_shmat=no
19446 fi
19447
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449       conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19451 fi
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19453 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19454 if test $ac_cv_lib_ipc_shmat = yes; then
19455   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19456 fi
19457
19458     fi
19459   fi
19460
19461   # Check for libraries that X11R6 Xt/Xaw programs need.
19462   ac_save_LDFLAGS=$LDFLAGS
19463   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19464   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19465   # check for ICE first), but we must link in the order -lSM -lICE or
19466   # we get undefined symbols.  So assume we have SM if we have ICE.
19467   # These have to be linked with before -lX11, unlike the other
19468   # libraries we check for below, so use a different variable.
19469   # John Interrante, Karl Berry
19470   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19471 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19473   echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475   ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483
19484 /* Override any GCC internal prototype to avoid an error.
19485    Use char because int might match the return type of a GCC
19486    builtin and then its argument prototype would still apply.  */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 char IceConnectionNumber ();
19491 int
19492 main ()
19493 {
19494 return IceConnectionNumber ();
19495   ;
19496   return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_link") 2>conftest.er1
19507   ac_status=$?
19508   grep -v '^ *+' conftest.er1 >conftest.err
19509   rm -f conftest.er1
19510   cat conftest.err >&5
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } && {
19513          test -z "$ac_c_werror_flag" ||
19514          test ! -s conftest.err
19515        } && test -s conftest$ac_exeext &&
19516        $as_test_x conftest$ac_exeext; then
19517   ac_cv_lib_ICE_IceConnectionNumber=yes
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522         ac_cv_lib_ICE_IceConnectionNumber=no
19523 fi
19524
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526       conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19530 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19531 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19532   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19533 fi
19534
19535   LDFLAGS=$ac_save_LDFLAGS
19536
19537 fi
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570 for ac_header in \
19571         assert.h \
19572         fcntl.h \
19573         grp.h \
19574         pwd.h \
19575         libc.h \
19576         limits.h \
19577         stdarg.h \
19578         stdlib.h \
19579         stdint.h \
19580         string.h \
19581         strings.h \
19582         termios.h \
19583         termcap.h \
19584         term.h \
19585         unistd.h \
19586         sys/bitypes.h \
19587         sys/byteorder.h \
19588         sys/ioctl.h \
19589         sys/select.h \
19590         sys/socket.h \
19591         sys/sockio.h \
19592         sys/stat.h \
19593         sys/time.h \
19594         sys/types.h \
19595         arpa/nameser.h \
19596         resolv.h \
19597         mtio.h \
19598         sys/mtio.h \
19599         sys/tape.h \
19600         regex.h \
19601
19602 do
19603 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19605   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19608   echo $ECHO_N "(cached) $ECHO_C" >&6
19609 fi
19610 ac_res=`eval echo '${'$as_ac_Header'}'`
19611                { echo "$as_me:$LINENO: result: $ac_res" >&5
19612 echo "${ECHO_T}$ac_res" >&6; }
19613 else
19614   # Is the header compilable?
19615 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19616 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19617 cat >conftest.$ac_ext <<_ACEOF
19618 /* confdefs.h.  */
19619 _ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h.  */
19623 $ac_includes_default
19624 #include <$ac_header>
19625 _ACEOF
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630   *) ac_try_echo=$ac_try;;
19631 esac
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633   (eval "$ac_compile") 2>conftest.er1
19634   ac_status=$?
19635   grep -v '^ *+' conftest.er1 >conftest.err
19636   rm -f conftest.er1
19637   cat conftest.err >&5
19638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639   (exit $ac_status); } && {
19640          test -z "$ac_c_werror_flag" ||
19641          test ! -s conftest.err
19642        } && test -s conftest.$ac_objext; then
19643   ac_header_compiler=yes
19644 else
19645   echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648         ac_header_compiler=no
19649 fi
19650
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19652 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19653 echo "${ECHO_T}$ac_header_compiler" >&6; }
19654
19655 # Is the header present?
19656 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19657 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h.  */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h.  */
19664 #include <$ac_header>
19665 _ACEOF
19666 if { (ac_try="$ac_cpp conftest.$ac_ext"
19667 case "(($ac_try" in
19668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19669   *) ac_try_echo=$ac_try;;
19670 esac
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19673   ac_status=$?
19674   grep -v '^ *+' conftest.er1 >conftest.err
19675   rm -f conftest.er1
19676   cat conftest.err >&5
19677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678   (exit $ac_status); } >/dev/null && {
19679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19680          test ! -s conftest.err
19681        }; then
19682   ac_header_preproc=yes
19683 else
19684   echo "$as_me: failed program was:" >&5
19685 sed 's/^/| /' conftest.$ac_ext >&5
19686
19687   ac_header_preproc=no
19688 fi
19689
19690 rm -f conftest.err conftest.$ac_ext
19691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19692 echo "${ECHO_T}$ac_header_preproc" >&6; }
19693
19694 # So?  What about this header?
19695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19696   yes:no: )
19697     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19701     ac_header_preproc=yes
19702     ;;
19703   no:yes:* )
19704     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19706     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19707 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19710     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19711 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19712     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19714     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19716
19717     ;;
19718 esac
19719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19722   echo $ECHO_N "(cached) $ECHO_C" >&6
19723 else
19724   eval "$as_ac_Header=\$ac_header_preproc"
19725 fi
19726 ac_res=`eval echo '${'$as_ac_Header'}'`
19727                { echo "$as_me:$LINENO: result: $ac_res" >&5
19728 echo "${ECHO_T}$ac_res" >&6; }
19729
19730 fi
19731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732   cat >>confdefs.h <<_ACEOF
19733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19734 _ACEOF
19735
19736 fi
19737
19738 done
19739
19740 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19741 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19742 if test "${ac_cv_header_stdc+set}" = set; then
19743   echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745   cat >conftest.$ac_ext <<_ACEOF
19746 /* confdefs.h.  */
19747 _ACEOF
19748 cat confdefs.h >>conftest.$ac_ext
19749 cat >>conftest.$ac_ext <<_ACEOF
19750 /* end confdefs.h.  */
19751 #include <stdlib.h>
19752 #include <stdarg.h>
19753 #include <string.h>
19754 #include <float.h>
19755
19756 int
19757 main ()
19758 {
19759
19760   ;
19761   return 0;
19762 }
19763 _ACEOF
19764 rm -f conftest.$ac_objext
19765 if { (ac_try="$ac_compile"
19766 case "(($ac_try" in
19767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19768   *) ac_try_echo=$ac_try;;
19769 esac
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771   (eval "$ac_compile") 2>conftest.er1
19772   ac_status=$?
19773   grep -v '^ *+' conftest.er1 >conftest.err
19774   rm -f conftest.er1
19775   cat conftest.err >&5
19776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777   (exit $ac_status); } && {
19778          test -z "$ac_c_werror_flag" ||
19779          test ! -s conftest.err
19780        } && test -s conftest.$ac_objext; then
19781   ac_cv_header_stdc=yes
19782 else
19783   echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19785
19786         ac_cv_header_stdc=no
19787 fi
19788
19789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19790
19791 if test $ac_cv_header_stdc = yes; then
19792   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19793   cat >conftest.$ac_ext <<_ACEOF
19794 /* confdefs.h.  */
19795 _ACEOF
19796 cat confdefs.h >>conftest.$ac_ext
19797 cat >>conftest.$ac_ext <<_ACEOF
19798 /* end confdefs.h.  */
19799 #include <string.h>
19800
19801 _ACEOF
19802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19803   $EGREP "memchr" >/dev/null 2>&1; then
19804   :
19805 else
19806   ac_cv_header_stdc=no
19807 fi
19808 rm -f conftest*
19809
19810 fi
19811
19812 if test $ac_cv_header_stdc = yes; then
19813   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19814   cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h.  */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h.  */
19820 #include <stdlib.h>
19821
19822 _ACEOF
19823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19824   $EGREP "free" >/dev/null 2>&1; then
19825   :
19826 else
19827   ac_cv_header_stdc=no
19828 fi
19829 rm -f conftest*
19830
19831 fi
19832
19833 if test $ac_cv_header_stdc = yes; then
19834   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19835   if test "$cross_compiling" = yes; then
19836   :
19837 else
19838   cat >conftest.$ac_ext <<_ACEOF
19839 /* confdefs.h.  */
19840 _ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h.  */
19844 #include <ctype.h>
19845 #include <stdlib.h>
19846 #if ((' ' & 0x0FF) == 0x020)
19847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19849 #else
19850 # define ISLOWER(c) \
19851                    (('a' <= (c) && (c) <= 'i') \
19852                      || ('j' <= (c) && (c) <= 'r') \
19853                      || ('s' <= (c) && (c) <= 'z'))
19854 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19855 #endif
19856
19857 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19858 int
19859 main ()
19860 {
19861   int i;
19862   for (i = 0; i < 256; i++)
19863     if (XOR (islower (i), ISLOWER (i))
19864         || toupper (i) != TOUPPER (i))
19865       return 2;
19866   return 0;
19867 }
19868 _ACEOF
19869 rm -f conftest$ac_exeext
19870 if { (ac_try="$ac_link"
19871 case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_link") 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880   { (case "(($ac_try" in
19881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882   *) ac_try_echo=$ac_try;;
19883 esac
19884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19885   (eval "$ac_try") 2>&5
19886   ac_status=$?
19887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888   (exit $ac_status); }; }; then
19889   :
19890 else
19891   echo "$as_me: program exited with status $ac_status" >&5
19892 echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895 ( exit $ac_status )
19896 ac_cv_header_stdc=no
19897 fi
19898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19899 fi
19900
19901
19902 fi
19903 fi
19904 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19905 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19906 if test $ac_cv_header_stdc = yes; then
19907
19908 cat >>confdefs.h <<\_ACEOF
19909 #define STDC_HEADERS 1
19910 _ACEOF
19911
19912 fi
19913
19914 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19915 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19916 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 else
19919   cat >conftest.$ac_ext <<_ACEOF
19920 /* confdefs.h.  */
19921 _ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h.  */
19925 #include <sys/types.h>
19926 int
19927 main ()
19928 {
19929 return makedev(0, 0);
19930   ;
19931   return 0;
19932 }
19933 _ACEOF
19934 rm -f conftest.$ac_objext conftest$ac_exeext
19935 if { (ac_try="$ac_link"
19936 case "(($ac_try" in
19937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938   *) ac_try_echo=$ac_try;;
19939 esac
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941   (eval "$ac_link") 2>conftest.er1
19942   ac_status=$?
19943   grep -v '^ *+' conftest.er1 >conftest.err
19944   rm -f conftest.er1
19945   cat conftest.err >&5
19946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947   (exit $ac_status); } && {
19948          test -z "$ac_c_werror_flag" ||
19949          test ! -s conftest.err
19950        } && test -s conftest$ac_exeext &&
19951        $as_test_x conftest$ac_exeext; then
19952   ac_cv_header_sys_types_h_makedev=yes
19953 else
19954   echo "$as_me: failed program was:" >&5
19955 sed 's/^/| /' conftest.$ac_ext >&5
19956
19957         ac_cv_header_sys_types_h_makedev=no
19958 fi
19959
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961       conftest$ac_exeext conftest.$ac_ext
19962
19963 fi
19964 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19965 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19966
19967 if test $ac_cv_header_sys_types_h_makedev = no; then
19968 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19969   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19970 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19971 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19972   echo $ECHO_N "(cached) $ECHO_C" >&6
19973 fi
19974 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19975 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19976 else
19977   # Is the header compilable?
19978 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19979 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
19980 cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 $ac_includes_default
19987 #include <sys/mkdev.h>
19988 _ACEOF
19989 rm -f conftest.$ac_objext
19990 if { (ac_try="$ac_compile"
19991 case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_compile") 2>conftest.er1
19997   ac_status=$?
19998   grep -v '^ *+' conftest.er1 >conftest.err
19999   rm -f conftest.er1
20000   cat conftest.err >&5
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); } && {
20003          test -z "$ac_c_werror_flag" ||
20004          test ! -s conftest.err
20005        } && test -s conftest.$ac_objext; then
20006   ac_header_compiler=yes
20007 else
20008   echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011         ac_header_compiler=no
20012 fi
20013
20014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20016 echo "${ECHO_T}$ac_header_compiler" >&6; }
20017
20018 # Is the header present?
20019 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20020 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 #include <sys/mkdev.h>
20028 _ACEOF
20029 if { (ac_try="$ac_cpp conftest.$ac_ext"
20030 case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20035   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } >/dev/null && {
20042          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20043          test ! -s conftest.err
20044        }; then
20045   ac_header_preproc=yes
20046 else
20047   echo "$as_me: failed program was:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20049
20050   ac_header_preproc=no
20051 fi
20052
20053 rm -f conftest.err conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20055 echo "${ECHO_T}$ac_header_preproc" >&6; }
20056
20057 # So?  What about this header?
20058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20059   yes:no: )
20060     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20061 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20062     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20063 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20064     ac_header_preproc=yes
20065     ;;
20066   no:yes:* )
20067     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20068 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20069     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20070 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20071     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20072 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20073     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20074 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20075     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20076 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20077     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20078 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20079
20080     ;;
20081 esac
20082 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20083 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20084 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20085   echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20088 fi
20089 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20090 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20091
20092 fi
20093 if test $ac_cv_header_sys_mkdev_h = yes; then
20094
20095 cat >>confdefs.h <<\_ACEOF
20096 #define MAJOR_IN_MKDEV 1
20097 _ACEOF
20098
20099 fi
20100
20101
20102
20103   if test $ac_cv_header_sys_mkdev_h = no; then
20104     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20105   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20106 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20107 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20108   echo $ECHO_N "(cached) $ECHO_C" >&6
20109 fi
20110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20111 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20112 else
20113   # Is the header compilable?
20114 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20115 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20116 cat >conftest.$ac_ext <<_ACEOF
20117 /* confdefs.h.  */
20118 _ACEOF
20119 cat confdefs.h >>conftest.$ac_ext
20120 cat >>conftest.$ac_ext <<_ACEOF
20121 /* end confdefs.h.  */
20122 $ac_includes_default
20123 #include <sys/sysmacros.h>
20124 _ACEOF
20125 rm -f conftest.$ac_objext
20126 if { (ac_try="$ac_compile"
20127 case "(($ac_try" in
20128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129   *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132   (eval "$ac_compile") 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } && {
20139          test -z "$ac_c_werror_flag" ||
20140          test ! -s conftest.err
20141        } && test -s conftest.$ac_objext; then
20142   ac_header_compiler=yes
20143 else
20144   echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147         ac_header_compiler=no
20148 fi
20149
20150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20152 echo "${ECHO_T}$ac_header_compiler" >&6; }
20153
20154 # Is the header present?
20155 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20156 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h.  */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h.  */
20163 #include <sys/sysmacros.h>
20164 _ACEOF
20165 if { (ac_try="$ac_cpp conftest.$ac_ext"
20166 case "(($ac_try" in
20167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20168   *) ac_try_echo=$ac_try;;
20169 esac
20170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20172   ac_status=$?
20173   grep -v '^ *+' conftest.er1 >conftest.err
20174   rm -f conftest.er1
20175   cat conftest.err >&5
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); } >/dev/null && {
20178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20179          test ! -s conftest.err
20180        }; then
20181   ac_header_preproc=yes
20182 else
20183   echo "$as_me: failed program was:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20185
20186   ac_header_preproc=no
20187 fi
20188
20189 rm -f conftest.err conftest.$ac_ext
20190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20191 echo "${ECHO_T}$ac_header_preproc" >&6; }
20192
20193 # So?  What about this header?
20194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20195   yes:no: )
20196     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20197 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20198     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20199 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20200     ac_header_preproc=yes
20201     ;;
20202   no:yes:* )
20203     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20204 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20205     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20206 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20207     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20208 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20209     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20210 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20211     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20212 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20213     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20214 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20215
20216     ;;
20217 esac
20218 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20219 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20220 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20221   echo $ECHO_N "(cached) $ECHO_C" >&6
20222 else
20223   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20224 fi
20225 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20226 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20227
20228 fi
20229 if test $ac_cv_header_sys_sysmacros_h = yes; then
20230
20231 cat >>confdefs.h <<\_ACEOF
20232 #define MAJOR_IN_SYSMACROS 1
20233 _ACEOF
20234
20235 fi
20236
20237
20238   fi
20239 fi
20240
20241
20242
20243
20244
20245
20246 ac_header_dirent=no
20247 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20248   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20249 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20250 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   cat >conftest.$ac_ext <<_ACEOF
20255 /* confdefs.h.  */
20256 _ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h.  */
20260 #include <sys/types.h>
20261 #include <$ac_hdr>
20262
20263 int
20264 main ()
20265 {
20266 if ((DIR *) 0)
20267 return 0;
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 rm -f conftest.$ac_objext
20273 if { (ac_try="$ac_compile"
20274 case "(($ac_try" in
20275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20276   *) ac_try_echo=$ac_try;;
20277 esac
20278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20279   (eval "$ac_compile") 2>conftest.er1
20280   ac_status=$?
20281   grep -v '^ *+' conftest.er1 >conftest.err
20282   rm -f conftest.er1
20283   cat conftest.err >&5
20284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285   (exit $ac_status); } && {
20286          test -z "$ac_c_werror_flag" ||
20287          test ! -s conftest.err
20288        } && test -s conftest.$ac_objext; then
20289   eval "$as_ac_Header=yes"
20290 else
20291   echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20293
20294         eval "$as_ac_Header=no"
20295 fi
20296
20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20298 fi
20299 ac_res=`eval echo '${'$as_ac_Header'}'`
20300                { echo "$as_me:$LINENO: result: $ac_res" >&5
20301 echo "${ECHO_T}$ac_res" >&6; }
20302 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20303   cat >>confdefs.h <<_ACEOF
20304 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20305 _ACEOF
20306
20307 ac_header_dirent=$ac_hdr; break
20308 fi
20309
20310 done
20311 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20312 if test $ac_header_dirent = dirent.h; then
20313   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20314 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20315 if test "${ac_cv_search_opendir+set}" = set; then
20316   echo $ECHO_N "(cached) $ECHO_C" >&6
20317 else
20318   ac_func_search_save_LIBS=$LIBS
20319 cat >conftest.$ac_ext <<_ACEOF
20320 /* confdefs.h.  */
20321 _ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h.  */
20325
20326 /* Override any GCC internal prototype to avoid an error.
20327    Use char because int might match the return type of a GCC
20328    builtin and then its argument prototype would still apply.  */
20329 #ifdef __cplusplus
20330 extern "C"
20331 #endif
20332 char opendir ();
20333 int
20334 main ()
20335 {
20336 return opendir ();
20337   ;
20338   return 0;
20339 }
20340 _ACEOF
20341 for ac_lib in '' dir; do
20342   if test -z "$ac_lib"; then
20343     ac_res="none required"
20344   else
20345     ac_res=-l$ac_lib
20346     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20347   fi
20348   rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (ac_try="$ac_link"
20350 case "(($ac_try" in
20351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20352   *) ac_try_echo=$ac_try;;
20353 esac
20354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20355   (eval "$ac_link") 2>conftest.er1
20356   ac_status=$?
20357   grep -v '^ *+' conftest.er1 >conftest.err
20358   rm -f conftest.er1
20359   cat conftest.err >&5
20360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); } && {
20362          test -z "$ac_c_werror_flag" ||
20363          test ! -s conftest.err
20364        } && test -s conftest$ac_exeext &&
20365        $as_test_x conftest$ac_exeext; then
20366   ac_cv_search_opendir=$ac_res
20367 else
20368   echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20370
20371
20372 fi
20373
20374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20375       conftest$ac_exeext
20376   if test "${ac_cv_search_opendir+set}" = set; then
20377   break
20378 fi
20379 done
20380 if test "${ac_cv_search_opendir+set}" = set; then
20381   :
20382 else
20383   ac_cv_search_opendir=no
20384 fi
20385 rm conftest.$ac_ext
20386 LIBS=$ac_func_search_save_LIBS
20387 fi
20388 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20389 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20390 ac_res=$ac_cv_search_opendir
20391 if test "$ac_res" != no; then
20392   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20393
20394 fi
20395
20396 else
20397   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20398 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20399 if test "${ac_cv_search_opendir+set}" = set; then
20400   echo $ECHO_N "(cached) $ECHO_C" >&6
20401 else
20402   ac_func_search_save_LIBS=$LIBS
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409
20410 /* Override any GCC internal prototype to avoid an error.
20411    Use char because int might match the return type of a GCC
20412    builtin and then its argument prototype would still apply.  */
20413 #ifdef __cplusplus
20414 extern "C"
20415 #endif
20416 char opendir ();
20417 int
20418 main ()
20419 {
20420 return opendir ();
20421   ;
20422   return 0;
20423 }
20424 _ACEOF
20425 for ac_lib in '' x; do
20426   if test -z "$ac_lib"; then
20427     ac_res="none required"
20428   else
20429     ac_res=-l$ac_lib
20430     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20431   fi
20432   rm -f conftest.$ac_objext conftest$ac_exeext
20433 if { (ac_try="$ac_link"
20434 case "(($ac_try" in
20435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436   *) ac_try_echo=$ac_try;;
20437 esac
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439   (eval "$ac_link") 2>conftest.er1
20440   ac_status=$?
20441   grep -v '^ *+' conftest.er1 >conftest.err
20442   rm -f conftest.er1
20443   cat conftest.err >&5
20444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445   (exit $ac_status); } && {
20446          test -z "$ac_c_werror_flag" ||
20447          test ! -s conftest.err
20448        } && test -s conftest$ac_exeext &&
20449        $as_test_x conftest$ac_exeext; then
20450   ac_cv_search_opendir=$ac_res
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455
20456 fi
20457
20458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20459       conftest$ac_exeext
20460   if test "${ac_cv_search_opendir+set}" = set; then
20461   break
20462 fi
20463 done
20464 if test "${ac_cv_search_opendir+set}" = set; then
20465   :
20466 else
20467   ac_cv_search_opendir=no
20468 fi
20469 rm conftest.$ac_ext
20470 LIBS=$ac_func_search_save_LIBS
20471 fi
20472 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20473 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20474 ac_res=$ac_cv_search_opendir
20475 if test "$ac_res" != no; then
20476   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20477
20478 fi
20479
20480 fi
20481
20482 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20483 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20484 if test "${ac_cv_header_stat_broken+set}" = set; then
20485   echo $ECHO_N "(cached) $ECHO_C" >&6
20486 else
20487   cat >conftest.$ac_ext <<_ACEOF
20488 /* confdefs.h.  */
20489 _ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h.  */
20493 #include <sys/types.h>
20494 #include <sys/stat.h>
20495
20496 #if defined S_ISBLK && defined S_IFDIR
20497 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20498 #endif
20499
20500 #if defined S_ISBLK && defined S_IFCHR
20501 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20502 #endif
20503
20504 #if defined S_ISLNK && defined S_IFREG
20505 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20506 #endif
20507
20508 #if defined S_ISSOCK && defined S_IFREG
20509 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20510 #endif
20511
20512 _ACEOF
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517   *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520   (eval "$ac_compile") 2>conftest.er1
20521   ac_status=$?
20522   grep -v '^ *+' conftest.er1 >conftest.err
20523   rm -f conftest.er1
20524   cat conftest.err >&5
20525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526   (exit $ac_status); } && {
20527          test -z "$ac_c_werror_flag" ||
20528          test ! -s conftest.err
20529        } && test -s conftest.$ac_objext; then
20530   ac_cv_header_stat_broken=no
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535         ac_cv_header_stat_broken=yes
20536 fi
20537
20538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539 fi
20540 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20541 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20542 if test $ac_cv_header_stat_broken = yes; then
20543
20544 cat >>confdefs.h <<\_ACEOF
20545 #define STAT_MACROS_BROKEN 1
20546 _ACEOF
20547
20548 fi
20549
20550 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20551 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20552 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555   cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561 #include <sys/types.h>
20562 #include <sys/wait.h>
20563 #ifndef WEXITSTATUS
20564 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20565 #endif
20566 #ifndef WIFEXITED
20567 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20568 #endif
20569
20570 int
20571 main ()
20572 {
20573   int s;
20574   wait (&s);
20575   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20576   ;
20577   return 0;
20578 }
20579 _ACEOF
20580 rm -f conftest.$ac_objext
20581 if { (ac_try="$ac_compile"
20582 case "(($ac_try" in
20583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584   *) ac_try_echo=$ac_try;;
20585 esac
20586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20587   (eval "$ac_compile") 2>conftest.er1
20588   ac_status=$?
20589   grep -v '^ *+' conftest.er1 >conftest.err
20590   rm -f conftest.er1
20591   cat conftest.err >&5
20592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593   (exit $ac_status); } && {
20594          test -z "$ac_c_werror_flag" ||
20595          test ! -s conftest.err
20596        } && test -s conftest.$ac_objext; then
20597   ac_cv_header_sys_wait_h=yes
20598 else
20599   echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602         ac_cv_header_sys_wait_h=no
20603 fi
20604
20605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20606 fi
20607 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20608 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20609 if test $ac_cv_header_sys_wait_h = yes; then
20610
20611 cat >>confdefs.h <<\_ACEOF
20612 #define HAVE_SYS_WAIT_H 1
20613 _ACEOF
20614
20615 fi
20616
20617 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20618 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20619 if test "${ac_cv_header_time+set}" = set; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622   cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628 #include <sys/types.h>
20629 #include <sys/time.h>
20630 #include <time.h>
20631
20632 int
20633 main ()
20634 {
20635 if ((struct tm *) 0)
20636 return 0;
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645   *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648   (eval "$ac_compile") 2>conftest.er1
20649   ac_status=$?
20650   grep -v '^ *+' conftest.er1 >conftest.err
20651   rm -f conftest.er1
20652   cat conftest.err >&5
20653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654   (exit $ac_status); } && {
20655          test -z "$ac_c_werror_flag" ||
20656          test ! -s conftest.err
20657        } && test -s conftest.$ac_objext; then
20658   ac_cv_header_time=yes
20659 else
20660   echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20662
20663         ac_cv_header_time=no
20664 fi
20665
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20667 fi
20668 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20669 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20670 if test $ac_cv_header_time = yes; then
20671
20672 cat >>confdefs.h <<\_ACEOF
20673 #define TIME_WITH_SYS_TIME 1
20674 _ACEOF
20675
20676 fi
20677
20678 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20679 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20680 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20681   echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683   cat >conftest.$ac_ext <<_ACEOF
20684 /* confdefs.h.  */
20685 _ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h.  */
20689 $ac_includes_default
20690 int
20691 main ()
20692 {
20693 static struct stat ac_aggr;
20694 if (ac_aggr.st_blksize)
20695 return 0;
20696   ;
20697   return 0;
20698 }
20699 _ACEOF
20700 rm -f conftest.$ac_objext
20701 if { (ac_try="$ac_compile"
20702 case "(($ac_try" in
20703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20704   *) ac_try_echo=$ac_try;;
20705 esac
20706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20707   (eval "$ac_compile") 2>conftest.er1
20708   ac_status=$?
20709   grep -v '^ *+' conftest.er1 >conftest.err
20710   rm -f conftest.er1
20711   cat conftest.err >&5
20712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713   (exit $ac_status); } && {
20714          test -z "$ac_c_werror_flag" ||
20715          test ! -s conftest.err
20716        } && test -s conftest.$ac_objext; then
20717   ac_cv_member_struct_stat_st_blksize=yes
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722         cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728 $ac_includes_default
20729 int
20730 main ()
20731 {
20732 static struct stat ac_aggr;
20733 if (sizeof ac_aggr.st_blksize)
20734 return 0;
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (ac_try="$ac_compile"
20741 case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746   (eval "$ac_compile") 2>conftest.er1
20747   ac_status=$?
20748   grep -v '^ *+' conftest.er1 >conftest.err
20749   rm -f conftest.er1
20750   cat conftest.err >&5
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } && {
20753          test -z "$ac_c_werror_flag" ||
20754          test ! -s conftest.err
20755        } && test -s conftest.$ac_objext; then
20756   ac_cv_member_struct_stat_st_blksize=yes
20757 else
20758   echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761         ac_cv_member_struct_stat_st_blksize=no
20762 fi
20763
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 fi
20766
20767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20768 fi
20769 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20770 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20771 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20772
20773 cat >>confdefs.h <<_ACEOF
20774 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20775 _ACEOF
20776
20777
20778 cat >>confdefs.h <<\_ACEOF
20779 #define HAVE_ST_BLKSIZE 1
20780 _ACEOF
20781
20782 fi
20783
20784
20785 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20786 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20787 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20788   echo $ECHO_N "(cached) $ECHO_C" >&6
20789 else
20790   cat >conftest.$ac_ext <<_ACEOF
20791 /* confdefs.h.  */
20792 _ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h.  */
20796 $ac_includes_default
20797 int
20798 main ()
20799 {
20800 static struct stat ac_aggr;
20801 if (ac_aggr.st_blocks)
20802 return 0;
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_member_struct_stat_st_blocks=yes
20825 else
20826   echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20828
20829         cat >conftest.$ac_ext <<_ACEOF
20830 /* confdefs.h.  */
20831 _ACEOF
20832 cat confdefs.h >>conftest.$ac_ext
20833 cat >>conftest.$ac_ext <<_ACEOF
20834 /* end confdefs.h.  */
20835 $ac_includes_default
20836 int
20837 main ()
20838 {
20839 static struct stat ac_aggr;
20840 if (sizeof ac_aggr.st_blocks)
20841 return 0;
20842   ;
20843   return 0;
20844 }
20845 _ACEOF
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850   *) ac_try_echo=$ac_try;;
20851 esac
20852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20853   (eval "$ac_compile") 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } && {
20860          test -z "$ac_c_werror_flag" ||
20861          test ! -s conftest.err
20862        } && test -s conftest.$ac_objext; then
20863   ac_cv_member_struct_stat_st_blocks=yes
20864 else
20865   echo "$as_me: failed program was:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20867
20868         ac_cv_member_struct_stat_st_blocks=no
20869 fi
20870
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 fi
20873
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20875 fi
20876 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20877 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20878 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20879
20880 cat >>confdefs.h <<_ACEOF
20881 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20882 _ACEOF
20883
20884
20885 cat >>confdefs.h <<\_ACEOF
20886 #define HAVE_ST_BLOCKS 1
20887 _ACEOF
20888
20889 else
20890   case " $LIBOBJS " in
20891   *" fileblocks.$ac_objext "* ) ;;
20892   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20893  ;;
20894 esac
20895
20896 fi
20897
20898
20899 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20900 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20901 if test "${ac_cv_struct_tm+set}" = set; then
20902   echo $ECHO_N "(cached) $ECHO_C" >&6
20903 else
20904   cat >conftest.$ac_ext <<_ACEOF
20905 /* confdefs.h.  */
20906 _ACEOF
20907 cat confdefs.h >>conftest.$ac_ext
20908 cat >>conftest.$ac_ext <<_ACEOF
20909 /* end confdefs.h.  */
20910 #include <sys/types.h>
20911 #include <time.h>
20912
20913 int
20914 main ()
20915 {
20916 struct tm tm;
20917                                      int *p = &tm.tm_sec;
20918                                      return !p;
20919   ;
20920   return 0;
20921 }
20922 _ACEOF
20923 rm -f conftest.$ac_objext
20924 if { (ac_try="$ac_compile"
20925 case "(($ac_try" in
20926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927   *) ac_try_echo=$ac_try;;
20928 esac
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930   (eval "$ac_compile") 2>conftest.er1
20931   ac_status=$?
20932   grep -v '^ *+' conftest.er1 >conftest.err
20933   rm -f conftest.er1
20934   cat conftest.err >&5
20935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936   (exit $ac_status); } && {
20937          test -z "$ac_c_werror_flag" ||
20938          test ! -s conftest.err
20939        } && test -s conftest.$ac_objext; then
20940   ac_cv_struct_tm=time.h
20941 else
20942   echo "$as_me: failed program was:" >&5
20943 sed 's/^/| /' conftest.$ac_ext >&5
20944
20945         ac_cv_struct_tm=sys/time.h
20946 fi
20947
20948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20949 fi
20950 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20951 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20952 if test $ac_cv_struct_tm = sys/time.h; then
20953
20954 cat >>confdefs.h <<\_ACEOF
20955 #define TM_IN_SYS_TIME 1
20956 _ACEOF
20957
20958 fi
20959
20960 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20961 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20962 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20963   echo $ECHO_N "(cached) $ECHO_C" >&6
20964 else
20965   cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h.  */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h.  */
20971 #include <sys/types.h>
20972 #include <$ac_cv_struct_tm>
20973
20974
20975 int
20976 main ()
20977 {
20978 static struct tm ac_aggr;
20979 if (ac_aggr.tm_zone)
20980 return 0;
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989   *) ac_try_echo=$ac_try;;
20990 esac
20991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20992   (eval "$ac_compile") 2>conftest.er1
20993   ac_status=$?
20994   grep -v '^ *+' conftest.er1 >conftest.err
20995   rm -f conftest.er1
20996   cat conftest.err >&5
20997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998   (exit $ac_status); } && {
20999          test -z "$ac_c_werror_flag" ||
21000          test ! -s conftest.err
21001        } && test -s conftest.$ac_objext; then
21002   ac_cv_member_struct_tm_tm_zone=yes
21003 else
21004   echo "$as_me: failed program was:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21006
21007         cat >conftest.$ac_ext <<_ACEOF
21008 /* confdefs.h.  */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h.  */
21013 #include <sys/types.h>
21014 #include <$ac_cv_struct_tm>
21015
21016
21017 int
21018 main ()
21019 {
21020 static struct tm ac_aggr;
21021 if (sizeof ac_aggr.tm_zone)
21022 return 0;
21023   ;
21024   return 0;
21025 }
21026 _ACEOF
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21034   (eval "$ac_compile") 2>conftest.er1
21035   ac_status=$?
21036   grep -v '^ *+' conftest.er1 >conftest.err
21037   rm -f conftest.er1
21038   cat conftest.err >&5
21039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040   (exit $ac_status); } && {
21041          test -z "$ac_c_werror_flag" ||
21042          test ! -s conftest.err
21043        } && test -s conftest.$ac_objext; then
21044   ac_cv_member_struct_tm_tm_zone=yes
21045 else
21046   echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049         ac_cv_member_struct_tm_tm_zone=no
21050 fi
21051
21052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21053 fi
21054
21055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 fi
21057 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21058 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21059 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21060
21061 cat >>confdefs.h <<_ACEOF
21062 #define HAVE_STRUCT_TM_TM_ZONE 1
21063 _ACEOF
21064
21065
21066 fi
21067
21068 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21069
21070 cat >>confdefs.h <<\_ACEOF
21071 #define HAVE_TM_ZONE 1
21072 _ACEOF
21073
21074 else
21075   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21076 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21077 if test "${ac_cv_have_decl_tzname+set}" = set; then
21078   echo $ECHO_N "(cached) $ECHO_C" >&6
21079 else
21080   cat >conftest.$ac_ext <<_ACEOF
21081 /* confdefs.h.  */
21082 _ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h.  */
21086 #include <time.h>
21087
21088 int
21089 main ()
21090 {
21091 #ifndef tzname
21092   (void) tzname;
21093 #endif
21094
21095   ;
21096   return 0;
21097 }
21098 _ACEOF
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103   *) ac_try_echo=$ac_try;;
21104 esac
21105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106   (eval "$ac_compile") 2>conftest.er1
21107   ac_status=$?
21108   grep -v '^ *+' conftest.er1 >conftest.err
21109   rm -f conftest.er1
21110   cat conftest.err >&5
21111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112   (exit $ac_status); } && {
21113          test -z "$ac_c_werror_flag" ||
21114          test ! -s conftest.err
21115        } && test -s conftest.$ac_objext; then
21116   ac_cv_have_decl_tzname=yes
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121         ac_cv_have_decl_tzname=no
21122 fi
21123
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 fi
21126 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21127 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21128 if test $ac_cv_have_decl_tzname = yes; then
21129
21130 cat >>confdefs.h <<_ACEOF
21131 #define HAVE_DECL_TZNAME 1
21132 _ACEOF
21133
21134
21135 else
21136   cat >>confdefs.h <<_ACEOF
21137 #define HAVE_DECL_TZNAME 0
21138 _ACEOF
21139
21140
21141 fi
21142
21143
21144   { echo "$as_me:$LINENO: checking for tzname" >&5
21145 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21146 if test "${ac_cv_var_tzname+set}" = set; then
21147   echo $ECHO_N "(cached) $ECHO_C" >&6
21148 else
21149   cat >conftest.$ac_ext <<_ACEOF
21150 /* confdefs.h.  */
21151 _ACEOF
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h.  */
21155 #include <time.h>
21156 #if !HAVE_DECL_TZNAME
21157 extern char *tzname[];
21158 #endif
21159
21160 int
21161 main ()
21162 {
21163 return tzname[0][0];
21164   ;
21165   return 0;
21166 }
21167 _ACEOF
21168 rm -f conftest.$ac_objext conftest$ac_exeext
21169 if { (ac_try="$ac_link"
21170 case "(($ac_try" in
21171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21172   *) ac_try_echo=$ac_try;;
21173 esac
21174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21175   (eval "$ac_link") 2>conftest.er1
21176   ac_status=$?
21177   grep -v '^ *+' conftest.er1 >conftest.err
21178   rm -f conftest.er1
21179   cat conftest.err >&5
21180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181   (exit $ac_status); } && {
21182          test -z "$ac_c_werror_flag" ||
21183          test ! -s conftest.err
21184        } && test -s conftest$ac_exeext &&
21185        $as_test_x conftest$ac_exeext; then
21186   ac_cv_var_tzname=yes
21187 else
21188   echo "$as_me: failed program was:" >&5
21189 sed 's/^/| /' conftest.$ac_ext >&5
21190
21191         ac_cv_var_tzname=no
21192 fi
21193
21194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21195       conftest$ac_exeext conftest.$ac_ext
21196 fi
21197 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21198 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21199   if test $ac_cv_var_tzname = yes; then
21200
21201 cat >>confdefs.h <<\_ACEOF
21202 #define HAVE_TZNAME 1
21203 _ACEOF
21204
21205   fi
21206 fi
21207
21208
21209 { echo "$as_me:$LINENO: checking for utime.h" >&5
21210 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21211 if test "${ba_cv_header_utime_h+set}" = set; then
21212   echo $ECHO_N "(cached) $ECHO_C" >&6
21213 else
21214   cat >conftest.$ac_ext <<_ACEOF
21215 /* confdefs.h.  */
21216 _ACEOF
21217 cat confdefs.h >>conftest.$ac_ext
21218 cat >>conftest.$ac_ext <<_ACEOF
21219 /* end confdefs.h.  */
21220
21221 #include <sys/types.h>
21222 #include <utime.h>
21223 int
21224 main ()
21225 {
21226 struct utimbuf foo
21227   ;
21228   return 0;
21229 }
21230 _ACEOF
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235   *) ac_try_echo=$ac_try;;
21236 esac
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238   (eval "$ac_compile") 2>conftest.er1
21239   ac_status=$?
21240   grep -v '^ *+' conftest.er1 >conftest.err
21241   rm -f conftest.er1
21242   cat conftest.err >&5
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } && {
21245          test -z "$ac_c_werror_flag" ||
21246          test ! -s conftest.err
21247        } && test -s conftest.$ac_objext; then
21248   ba_cv_header_utime_h=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253         ba_cv_header_utime_h=no
21254 fi
21255
21256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21257 fi
21258 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21259 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21260 test $ba_cv_header_utime_h = yes &&
21261 cat >>confdefs.h <<\_ACEOF
21262 #define HAVE_UTIME_H 1
21263 _ACEOF
21264
21265
21266 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21267 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21268 if test "${ba_cv_header_socklen_t+set}" = set; then
21269   echo $ECHO_N "(cached) $ECHO_C" >&6
21270 else
21271   cat >conftest.$ac_ext <<_ACEOF
21272 /* confdefs.h.  */
21273 _ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h.  */
21277
21278 #include <sys/types.h>
21279 #include <sys/socket.h>
21280 int
21281 main ()
21282 {
21283 socklen_t x
21284   ;
21285   return 0;
21286 }
21287 _ACEOF
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292   *) ac_try_echo=$ac_try;;
21293 esac
21294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295   (eval "$ac_compile") 2>conftest.er1
21296   ac_status=$?
21297   grep -v '^ *+' conftest.er1 >conftest.err
21298   rm -f conftest.er1
21299   cat conftest.err >&5
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); } && {
21302          test -z "$ac_c_werror_flag" ||
21303          test ! -s conftest.err
21304        } && test -s conftest.$ac_objext; then
21305   ba_cv_header_socklen_t=yes
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310         ba_cv_header_socklen_t=no
21311 fi
21312
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 fi
21315 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21316 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21317 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21318 #define HAVE_SOCKLEN_T 1
21319 _ACEOF
21320
21321
21322 { echo "$as_me:$LINENO: checking for bigendian" >&5
21323 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21324 if test "${ba_cv_bigendian+set}" = set; then
21325   echo $ECHO_N "(cached) $ECHO_C" >&6
21326 else
21327   if test "$cross_compiling" = yes; then
21328   ba_cv_bigendian=no
21329 else
21330   cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21337 _ACEOF
21338 rm -f conftest$ac_exeext
21339 if { (ac_try="$ac_link"
21340 case "(($ac_try" in
21341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342   *) ac_try_echo=$ac_try;;
21343 esac
21344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21345   (eval "$ac_link") 2>&5
21346   ac_status=$?
21347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21349   { (case "(($ac_try" in
21350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351   *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354   (eval "$ac_try") 2>&5
21355   ac_status=$?
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); }; }; then
21358   ba_cv_bigendian=yes
21359 else
21360   echo "$as_me: program exited with status $ac_status" >&5
21361 echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364 ( exit $ac_status )
21365 ba_cv_bigendian=no
21366 fi
21367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21368 fi
21369
21370
21371 fi
21372 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21373 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21374 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_BIGENDIAN 1
21376 _ACEOF
21377
21378
21379 ac_ext=cpp
21380 ac_cpp='$CXXCPP $CPPFLAGS'
21381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21384
21385
21386 { echo "$as_me:$LINENO: checking for typeof" >&5
21387 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21388 if test "${ba_cv_have_typeof+set}" = set; then
21389   echo $ECHO_N "(cached) $ECHO_C" >&6
21390 else
21391   if test "$cross_compiling" = yes; then
21392   ba_cv_have_typeof=no
21393 else
21394   cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h.  */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h.  */
21400 main(){char *a = 0; a = (typeof a)a;}
21401 _ACEOF
21402 rm -f conftest$ac_exeext
21403 if { (ac_try="$ac_link"
21404 case "(($ac_try" in
21405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21406   *) ac_try_echo=$ac_try;;
21407 esac
21408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21409   (eval "$ac_link") 2>&5
21410   ac_status=$?
21411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21413   { (case "(($ac_try" in
21414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415   *) ac_try_echo=$ac_try;;
21416 esac
21417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21418   (eval "$ac_try") 2>&5
21419   ac_status=$?
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); }; }; then
21422   ba_cv_have_typeof=yes
21423 else
21424   echo "$as_me: program exited with status $ac_status" >&5
21425 echo "$as_me: failed program was:" >&5
21426 sed 's/^/| /' conftest.$ac_ext >&5
21427
21428 ( exit $ac_status )
21429 ba_cv_have_typeof=no
21430 fi
21431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21432 fi
21433
21434
21435 fi
21436 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21437 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21438 test $ba_cv_have_typeof = yes &&
21439 cat >>confdefs.h <<\_ACEOF
21440 #define HAVE_TYPEOF 1
21441 _ACEOF
21442
21443 ac_ext=c
21444 ac_cpp='$CPP $CPPFLAGS'
21445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21448
21449
21450 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21451 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21452 if test "${ac_cv_c_const+set}" = set; then
21453   echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455   cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h.  */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h.  */
21461
21462 int
21463 main ()
21464 {
21465 /* FIXME: Include the comments suggested by Paul. */
21466 #ifndef __cplusplus
21467   /* Ultrix mips cc rejects this.  */
21468   typedef int charset[2];
21469   const charset cs;
21470   /* SunOS 4.1.1 cc rejects this.  */
21471   char const *const *pcpcc;
21472   char **ppc;
21473   /* NEC SVR4.0.2 mips cc rejects this.  */
21474   struct point {int x, y;};
21475   static struct point const zero = {0,0};
21476   /* AIX XL C 1.02.0.0 rejects this.
21477      It does not let you subtract one const X* pointer from another in
21478      an arm of an if-expression whose if-part is not a constant
21479      expression */
21480   const char *g = "string";
21481   pcpcc = &g + (g ? g-g : 0);
21482   /* HPUX 7.0 cc rejects these. */
21483   ++pcpcc;
21484   ppc = (char**) pcpcc;
21485   pcpcc = (char const *const *) ppc;
21486   { /* SCO 3.2v4 cc rejects this.  */
21487     char *t;
21488     char const *s = 0 ? (char *) 0 : (char const *) 0;
21489
21490     *t++ = 0;
21491     if (s) return 0;
21492   }
21493   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21494     int x[] = {25, 17};
21495     const int *foo = &x[0];
21496     ++foo;
21497   }
21498   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21499     typedef const int *iptr;
21500     iptr p = 0;
21501     ++p;
21502   }
21503   { /* AIX XL C 1.02.0.0 rejects this saying
21504        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21505     struct s { int j; const int *ap[3]; };
21506     struct s *b; b->j = 5;
21507   }
21508   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21509     const int foo = 10;
21510     if (!foo) return 0;
21511   }
21512   return !cs[0] && !zero.x;
21513 #endif
21514
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523   *) ac_try_echo=$ac_try;;
21524 esac
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526   (eval "$ac_compile") 2>conftest.er1
21527   ac_status=$?
21528   grep -v '^ *+' conftest.er1 >conftest.err
21529   rm -f conftest.er1
21530   cat conftest.err >&5
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } && {
21533          test -z "$ac_c_werror_flag" ||
21534          test ! -s conftest.err
21535        } && test -s conftest.$ac_objext; then
21536   ac_cv_c_const=yes
21537 else
21538   echo "$as_me: failed program was:" >&5
21539 sed 's/^/| /' conftest.$ac_ext >&5
21540
21541         ac_cv_c_const=no
21542 fi
21543
21544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21545 fi
21546 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21547 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21548 if test $ac_cv_c_const = no; then
21549
21550 cat >>confdefs.h <<\_ACEOF
21551 #define const
21552 _ACEOF
21553
21554 fi
21555
21556
21557
21558 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21559 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21560 fstype=no
21561 # The order of these tests is important.
21562 cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h.  */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h.  */
21568 #include <sys/statvfs.h>
21569 #include <sys/fstyp.h>
21570 _ACEOF
21571 if { (ac_try="$ac_cpp conftest.$ac_ext"
21572 case "(($ac_try" in
21573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574   *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21578   ac_status=$?
21579   grep -v '^ *+' conftest.er1 >conftest.err
21580   rm -f conftest.er1
21581   cat conftest.err >&5
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); } >/dev/null && {
21584          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21585          test ! -s conftest.err
21586        }; then
21587   cat >>confdefs.h <<\_ACEOF
21588 #define FSTYPE_STATVFS 1
21589 _ACEOF
21590  fstype=SVR4
21591 else
21592   echo "$as_me: failed program was:" >&5
21593 sed 's/^/| /' conftest.$ac_ext >&5
21594
21595
21596 fi
21597
21598 rm -f conftest.err conftest.$ac_ext
21599 if test $fstype = no; then
21600 cat >conftest.$ac_ext <<_ACEOF
21601 /* confdefs.h.  */
21602 _ACEOF
21603 cat confdefs.h >>conftest.$ac_ext
21604 cat >>conftest.$ac_ext <<_ACEOF
21605 /* end confdefs.h.  */
21606 #include <sys/statfs.h>
21607 #include <sys/fstyp.h>
21608 _ACEOF
21609 if { (ac_try="$ac_cpp conftest.$ac_ext"
21610 case "(($ac_try" in
21611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21612   *) ac_try_echo=$ac_try;;
21613 esac
21614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21616   ac_status=$?
21617   grep -v '^ *+' conftest.er1 >conftest.err
21618   rm -f conftest.er1
21619   cat conftest.err >&5
21620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621   (exit $ac_status); } >/dev/null && {
21622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21623          test ! -s conftest.err
21624        }; then
21625   cat >>confdefs.h <<\_ACEOF
21626 #define FSTYPE_USG_STATFS 1
21627 _ACEOF
21628  fstype=SVR3
21629 else
21630   echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633
21634 fi
21635
21636 rm -f conftest.err conftest.$ac_ext
21637 fi
21638 if test $fstype = no; then
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 #include <sys/statfs.h>
21646 #include <sys/vmount.h>
21647 _ACEOF
21648 if { (ac_try="$ac_cpp conftest.$ac_ext"
21649 case "(($ac_try" in
21650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651   *) ac_try_echo=$ac_try;;
21652 esac
21653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21654   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21655   ac_status=$?
21656   grep -v '^ *+' conftest.er1 >conftest.err
21657   rm -f conftest.er1
21658   cat conftest.err >&5
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); } >/dev/null && {
21661          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21662          test ! -s conftest.err
21663        }; then
21664   cat >>confdefs.h <<\_ACEOF
21665 #define FSTYPE_AIX_STATFS 1
21666 _ACEOF
21667  fstype=AIX
21668 else
21669   echo "$as_me: failed program was:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21671
21672
21673 fi
21674
21675 rm -f conftest.err conftest.$ac_ext
21676 fi
21677 if test $fstype = no; then
21678 cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 #include <mntent.h>
21685 _ACEOF
21686 if { (ac_try="$ac_cpp conftest.$ac_ext"
21687 case "(($ac_try" in
21688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21689   *) ac_try_echo=$ac_try;;
21690 esac
21691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21692   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21693   ac_status=$?
21694   grep -v '^ *+' conftest.er1 >conftest.err
21695   rm -f conftest.er1
21696   cat conftest.err >&5
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); } >/dev/null && {
21699          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21700          test ! -s conftest.err
21701        }; then
21702   cat >>confdefs.h <<\_ACEOF
21703 #define FSTYPE_MNTENT 1
21704 _ACEOF
21705  fstype=4.3BSD
21706 else
21707   echo "$as_me: failed program was:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21709
21710
21711 fi
21712
21713 rm -f conftest.err conftest.$ac_ext
21714 fi
21715 if test $fstype = no; then
21716 cat >conftest.$ac_ext <<_ACEOF
21717 /* confdefs.h.  */
21718 _ACEOF
21719 cat confdefs.h >>conftest.$ac_ext
21720 cat >>conftest.$ac_ext <<_ACEOF
21721 /* end confdefs.h.  */
21722 #include <sys/mount.h>
21723
21724 _ACEOF
21725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21726   $EGREP "f_type;" >/dev/null 2>&1; then
21727   cat >>confdefs.h <<\_ACEOF
21728 #define FSTYPE_STATFS 1
21729 _ACEOF
21730  fstype=4.4BSD/OSF1
21731 fi
21732 rm -f conftest*
21733
21734 fi
21735 if test $fstype = no; then
21736 cat >conftest.$ac_ext <<_ACEOF
21737 /* confdefs.h.  */
21738 _ACEOF
21739 cat confdefs.h >>conftest.$ac_ext
21740 cat >>conftest.$ac_ext <<_ACEOF
21741 /* end confdefs.h.  */
21742 #include <sys/mount.h>
21743 #include <sys/fs_types.h>
21744 _ACEOF
21745 if { (ac_try="$ac_cpp conftest.$ac_ext"
21746 case "(($ac_try" in
21747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748   *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21752   ac_status=$?
21753   grep -v '^ *+' conftest.er1 >conftest.err
21754   rm -f conftest.er1
21755   cat conftest.err >&5
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } >/dev/null && {
21758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21759          test ! -s conftest.err
21760        }; then
21761   cat >>confdefs.h <<\_ACEOF
21762 #define FSTYPE_GETMNT 1
21763 _ACEOF
21764  fstype=Ultrix
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769
21770 fi
21771
21772 rm -f conftest.err conftest.$ac_ext
21773 fi
21774 { echo "$as_me:$LINENO: result: $fstype" >&5
21775 echo "${ECHO_T}$fstype" >&6; }
21776
21777 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21778   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21779 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21780 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21781   echo $ECHO_N "(cached) $ECHO_C" >&6
21782 fi
21783 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21784 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21785 else
21786   # Is the header compilable?
21787 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21788 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
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 $ac_includes_default
21796 #include <sys/statvfs.h>
21797 _ACEOF
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_compile") 2>conftest.er1
21806   ac_status=$?
21807   grep -v '^ *+' conftest.er1 >conftest.err
21808   rm -f conftest.er1
21809   cat conftest.err >&5
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); } && {
21812          test -z "$ac_c_werror_flag" ||
21813          test ! -s conftest.err
21814        } && test -s conftest.$ac_objext; then
21815   ac_header_compiler=yes
21816 else
21817   echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21819
21820         ac_header_compiler=no
21821 fi
21822
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21825 echo "${ECHO_T}$ac_header_compiler" >&6; }
21826
21827 # Is the header present?
21828 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21829 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21830 cat >conftest.$ac_ext <<_ACEOF
21831 /* confdefs.h.  */
21832 _ACEOF
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h.  */
21836 #include <sys/statvfs.h>
21837 _ACEOF
21838 if { (ac_try="$ac_cpp conftest.$ac_ext"
21839 case "(($ac_try" in
21840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21841   *) ac_try_echo=$ac_try;;
21842 esac
21843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21845   ac_status=$?
21846   grep -v '^ *+' conftest.er1 >conftest.err
21847   rm -f conftest.er1
21848   cat conftest.err >&5
21849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850   (exit $ac_status); } >/dev/null && {
21851          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21852          test ! -s conftest.err
21853        }; then
21854   ac_header_preproc=yes
21855 else
21856   echo "$as_me: failed program was:" >&5
21857 sed 's/^/| /' conftest.$ac_ext >&5
21858
21859   ac_header_preproc=no
21860 fi
21861
21862 rm -f conftest.err conftest.$ac_ext
21863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21864 echo "${ECHO_T}$ac_header_preproc" >&6; }
21865
21866 # So?  What about this header?
21867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21868   yes:no: )
21869     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21870 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21871     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21872 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21873     ac_header_preproc=yes
21874     ;;
21875   no:yes:* )
21876     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21877 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21878     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21879 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21880     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21881 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21882     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21883 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21884     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21885 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21886     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21887 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21888
21889     ;;
21890 esac
21891 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21892 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21893 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21894   echo $ECHO_N "(cached) $ECHO_C" >&6
21895 else
21896   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21897 fi
21898 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21899 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21900
21901 fi
21902 if test $ac_cv_header_sys_statvfs_h = yes; then
21903
21904 cat >>confdefs.h <<\_ACEOF
21905 #define HAVE_SYS_STATVFS_H 1
21906 _ACEOF
21907
21908 fi
21909
21910
21911
21912 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21913 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21914 if test "${ac_cv_type_signal+set}" = set; then
21915   echo $ECHO_N "(cached) $ECHO_C" >&6
21916 else
21917   cat >conftest.$ac_ext <<_ACEOF
21918 /* confdefs.h.  */
21919 _ACEOF
21920 cat confdefs.h >>conftest.$ac_ext
21921 cat >>conftest.$ac_ext <<_ACEOF
21922 /* end confdefs.h.  */
21923 #include <sys/types.h>
21924 #include <signal.h>
21925
21926 int
21927 main ()
21928 {
21929 return *(signal (0, 0)) (0) == 1;
21930   ;
21931   return 0;
21932 }
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941   (eval "$ac_compile") 2>conftest.er1
21942   ac_status=$?
21943   grep -v '^ *+' conftest.er1 >conftest.err
21944   rm -f conftest.er1
21945   cat conftest.err >&5
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); } && {
21948          test -z "$ac_c_werror_flag" ||
21949          test ! -s conftest.err
21950        } && test -s conftest.$ac_objext; then
21951   ac_cv_type_signal=int
21952 else
21953   echo "$as_me: failed program was:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21955
21956         ac_cv_type_signal=void
21957 fi
21958
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 fi
21961 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21962 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21963
21964 cat >>confdefs.h <<_ACEOF
21965 #define RETSIGTYPE $ac_cv_type_signal
21966 _ACEOF
21967
21968
21969
21970   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
21971 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
21972   if test "${bash_cv_signal_vintage+set}" = set; then
21973   echo $ECHO_N "(cached) $ECHO_C" >&6
21974 else
21975
21976     cat >conftest.$ac_ext <<_ACEOF
21977 /* confdefs.h.  */
21978 _ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h.  */
21982 #include <signal.h>
21983 int
21984 main ()
21985 {
21986
21987       sigset_t ss;
21988       struct sigaction sa;
21989       sigemptyset(&ss); sigsuspend(&ss);
21990       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21991       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21992
21993   ;
21994   return 0;
21995 }
21996 _ACEOF
21997 rm -f conftest.$ac_objext conftest$ac_exeext
21998 if { (ac_try="$ac_link"
21999 case "(($ac_try" in
22000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001   *) ac_try_echo=$ac_try;;
22002 esac
22003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22004   (eval "$ac_link") 2>conftest.er1
22005   ac_status=$?
22006   grep -v '^ *+' conftest.er1 >conftest.err
22007   rm -f conftest.er1
22008   cat conftest.err >&5
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); } && {
22011          test -z "$ac_c_werror_flag" ||
22012          test ! -s conftest.err
22013        } && test -s conftest$ac_exeext &&
22014        $as_test_x conftest$ac_exeext; then
22015   bash_cv_signal_vintage="posix"
22016 else
22017   echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020
22021       cat >conftest.$ac_ext <<_ACEOF
22022 /* confdefs.h.  */
22023 _ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h.  */
22027 #include <signal.h>
22028 int
22029 main ()
22030 {
22031
22032           int mask = sigmask(SIGINT);
22033           sigsetmask(mask); sigblock(mask); sigpause(mask);
22034
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 rm -f conftest.$ac_objext conftest$ac_exeext
22040 if { (ac_try="$ac_link"
22041 case "(($ac_try" in
22042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043   *) ac_try_echo=$ac_try;;
22044 esac
22045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22046   (eval "$ac_link") 2>conftest.er1
22047   ac_status=$?
22048   grep -v '^ *+' conftest.er1 >conftest.err
22049   rm -f conftest.er1
22050   cat conftest.err >&5
22051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052   (exit $ac_status); } && {
22053          test -z "$ac_c_werror_flag" ||
22054          test ! -s conftest.err
22055        } && test -s conftest$ac_exeext &&
22056        $as_test_x conftest$ac_exeext; then
22057   bash_cv_signal_vintage="4.2bsd"
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062
22063         cat >conftest.$ac_ext <<_ACEOF
22064 /* confdefs.h.  */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h.  */
22069
22070           #include <signal.h>
22071           RETSIGTYPE foo() { }
22072 int
22073 main ()
22074 {
22075
22076                   int mask = sigmask(SIGINT);
22077                   sigset(SIGINT, foo); sigrelse(SIGINT);
22078                   sighold(SIGINT); sigpause(SIGINT);
22079
22080   ;
22081   return 0;
22082 }
22083 _ACEOF
22084 rm -f conftest.$ac_objext conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088   *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091   (eval "$ac_link") 2>conftest.er1
22092   ac_status=$?
22093   grep -v '^ *+' conftest.er1 >conftest.err
22094   rm -f conftest.er1
22095   cat conftest.err >&5
22096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097   (exit $ac_status); } && {
22098          test -z "$ac_c_werror_flag" ||
22099          test ! -s conftest.err
22100        } && test -s conftest$ac_exeext &&
22101        $as_test_x conftest$ac_exeext; then
22102   bash_cv_signal_vintage="svr3"
22103 else
22104   echo "$as_me: failed program was:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22106
22107         bash_cv_signal_vintage="v7"
22108
22109 fi
22110
22111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22112       conftest$ac_exeext conftest.$ac_ext
22113
22114 fi
22115
22116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22117       conftest$ac_exeext conftest.$ac_ext
22118
22119 fi
22120
22121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22122       conftest$ac_exeext conftest.$ac_ext
22123
22124 fi
22125
22126   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22127 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22128   if test "$bash_cv_signal_vintage" = "posix"; then
22129     cat >>confdefs.h <<\_ACEOF
22130 #define HAVE_POSIX_SIGNALS 1
22131 _ACEOF
22132
22133   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22134     cat >>confdefs.h <<\_ACEOF
22135 #define HAVE_BSD_SIGNALS 1
22136 _ACEOF
22137
22138   elif test "$bash_cv_signal_vintage" = "svr3"; then
22139     cat >>confdefs.h <<\_ACEOF
22140 #define HAVE_USG_SIGHOLD 1
22141 _ACEOF
22142
22143   fi
22144
22145 { echo "$as_me:$LINENO: checking for mode_t" >&5
22146 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22147 if test "${ac_cv_type_mode_t+set}" = set; then
22148   echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150   cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156 $ac_includes_default
22157 typedef mode_t ac__type_new_;
22158 int
22159 main ()
22160 {
22161 if ((ac__type_new_ *) 0)
22162   return 0;
22163 if (sizeof (ac__type_new_))
22164   return 0;
22165   ;
22166   return 0;
22167 }
22168 _ACEOF
22169 rm -f conftest.$ac_objext
22170 if { (ac_try="$ac_compile"
22171 case "(($ac_try" in
22172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173   *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176   (eval "$ac_compile") 2>conftest.er1
22177   ac_status=$?
22178   grep -v '^ *+' conftest.er1 >conftest.err
22179   rm -f conftest.er1
22180   cat conftest.err >&5
22181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22182   (exit $ac_status); } && {
22183          test -z "$ac_c_werror_flag" ||
22184          test ! -s conftest.err
22185        } && test -s conftest.$ac_objext; then
22186   ac_cv_type_mode_t=yes
22187 else
22188   echo "$as_me: failed program was:" >&5
22189 sed 's/^/| /' conftest.$ac_ext >&5
22190
22191         ac_cv_type_mode_t=no
22192 fi
22193
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195 fi
22196 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22197 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22198 if test $ac_cv_type_mode_t = yes; then
22199   :
22200 else
22201
22202 cat >>confdefs.h <<_ACEOF
22203 #define mode_t int
22204 _ACEOF
22205
22206 fi
22207
22208 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22209 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22210 if test "${ac_cv_type_uid_t+set}" = set; then
22211   echo $ECHO_N "(cached) $ECHO_C" >&6
22212 else
22213   cat >conftest.$ac_ext <<_ACEOF
22214 /* confdefs.h.  */
22215 _ACEOF
22216 cat confdefs.h >>conftest.$ac_ext
22217 cat >>conftest.$ac_ext <<_ACEOF
22218 /* end confdefs.h.  */
22219 #include <sys/types.h>
22220
22221 _ACEOF
22222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22223   $EGREP "uid_t" >/dev/null 2>&1; then
22224   ac_cv_type_uid_t=yes
22225 else
22226   ac_cv_type_uid_t=no
22227 fi
22228 rm -f conftest*
22229
22230 fi
22231 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22232 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22233 if test $ac_cv_type_uid_t = no; then
22234
22235 cat >>confdefs.h <<\_ACEOF
22236 #define uid_t int
22237 _ACEOF
22238
22239
22240 cat >>confdefs.h <<\_ACEOF
22241 #define gid_t int
22242 _ACEOF
22243
22244 fi
22245
22246 { echo "$as_me:$LINENO: checking for size_t" >&5
22247 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22248 if test "${ac_cv_type_size_t+set}" = set; then
22249   echo $ECHO_N "(cached) $ECHO_C" >&6
22250 else
22251   cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257 $ac_includes_default
22258 typedef size_t ac__type_new_;
22259 int
22260 main ()
22261 {
22262 if ((ac__type_new_ *) 0)
22263   return 0;
22264 if (sizeof (ac__type_new_))
22265   return 0;
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 rm -f conftest.$ac_objext
22271 if { (ac_try="$ac_compile"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_compile") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest.$ac_objext; then
22287   ac_cv_type_size_t=yes
22288 else
22289   echo "$as_me: failed program was:" >&5
22290 sed 's/^/| /' conftest.$ac_ext >&5
22291
22292         ac_cv_type_size_t=no
22293 fi
22294
22295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 fi
22297 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22298 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22299 if test $ac_cv_type_size_t = yes; then
22300   :
22301 else
22302
22303 cat >>confdefs.h <<_ACEOF
22304 #define size_t unsigned int
22305 _ACEOF
22306
22307 fi
22308
22309 { echo "$as_me:$LINENO: checking for pid_t" >&5
22310 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22311 if test "${ac_cv_type_pid_t+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h.  */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h.  */
22320 $ac_includes_default
22321 typedef pid_t ac__type_new_;
22322 int
22323 main ()
22324 {
22325 if ((ac__type_new_ *) 0)
22326   return 0;
22327 if (sizeof (ac__type_new_))
22328   return 0;
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337   *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340   (eval "$ac_compile") 2>conftest.er1
22341   ac_status=$?
22342   grep -v '^ *+' conftest.er1 >conftest.err
22343   rm -f conftest.er1
22344   cat conftest.err >&5
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } && {
22347          test -z "$ac_c_werror_flag" ||
22348          test ! -s conftest.err
22349        } && test -s conftest.$ac_objext; then
22350   ac_cv_type_pid_t=yes
22351 else
22352   echo "$as_me: failed program was:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22354
22355         ac_cv_type_pid_t=no
22356 fi
22357
22358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22359 fi
22360 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22361 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22362 if test $ac_cv_type_pid_t = yes; then
22363   :
22364 else
22365
22366 cat >>confdefs.h <<_ACEOF
22367 #define pid_t int
22368 _ACEOF
22369
22370 fi
22371
22372 { echo "$as_me:$LINENO: checking for off_t" >&5
22373 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22374 if test "${ac_cv_type_off_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 off_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_off_t=yes
22414 else
22415   echo "$as_me: failed program was:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22417
22418         ac_cv_type_off_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_off_t" >&5
22424 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22425 if test $ac_cv_type_off_t = yes; then
22426   :
22427 else
22428
22429 cat >>confdefs.h <<_ACEOF
22430 #define off_t long int
22431 _ACEOF
22432
22433 fi
22434
22435 { echo "$as_me:$LINENO: checking for ino_t" >&5
22436 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22437 if test "${ac_cv_type_ino_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 $ac_includes_default
22447 typedef ino_t ac__type_new_;
22448 int
22449 main ()
22450 {
22451 if ((ac__type_new_ *) 0)
22452   return 0;
22453 if (sizeof (ac__type_new_))
22454   return 0;
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463   *) ac_try_echo=$ac_try;;
22464 esac
22465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22466   (eval "$ac_compile") 2>conftest.er1
22467   ac_status=$?
22468   grep -v '^ *+' conftest.er1 >conftest.err
22469   rm -f conftest.er1
22470   cat conftest.err >&5
22471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472   (exit $ac_status); } && {
22473          test -z "$ac_c_werror_flag" ||
22474          test ! -s conftest.err
22475        } && test -s conftest.$ac_objext; then
22476   ac_cv_type_ino_t=yes
22477 else
22478   echo "$as_me: failed program was:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22480
22481         ac_cv_type_ino_t=no
22482 fi
22483
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 fi
22486 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22487 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22488 if test $ac_cv_type_ino_t = yes; then
22489   :
22490 else
22491
22492 cat >>confdefs.h <<_ACEOF
22493 #define ino_t unsigned long
22494 _ACEOF
22495
22496 fi
22497
22498 { echo "$as_me:$LINENO: checking for dev_t" >&5
22499 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22500 if test "${ac_cv_type_dev_t+set}" = set; then
22501   echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503   cat >conftest.$ac_ext <<_ACEOF
22504 /* confdefs.h.  */
22505 _ACEOF
22506 cat confdefs.h >>conftest.$ac_ext
22507 cat >>conftest.$ac_ext <<_ACEOF
22508 /* end confdefs.h.  */
22509 $ac_includes_default
22510 typedef dev_t ac__type_new_;
22511 int
22512 main ()
22513 {
22514 if ((ac__type_new_ *) 0)
22515   return 0;
22516 if (sizeof (ac__type_new_))
22517   return 0;
22518   ;
22519   return 0;
22520 }
22521 _ACEOF
22522 rm -f conftest.$ac_objext
22523 if { (ac_try="$ac_compile"
22524 case "(($ac_try" in
22525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22526   *) ac_try_echo=$ac_try;;
22527 esac
22528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22529   (eval "$ac_compile") 2>conftest.er1
22530   ac_status=$?
22531   grep -v '^ *+' conftest.er1 >conftest.err
22532   rm -f conftest.er1
22533   cat conftest.err >&5
22534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535   (exit $ac_status); } && {
22536          test -z "$ac_c_werror_flag" ||
22537          test ! -s conftest.err
22538        } && test -s conftest.$ac_objext; then
22539   ac_cv_type_dev_t=yes
22540 else
22541   echo "$as_me: failed program was:" >&5
22542 sed 's/^/| /' conftest.$ac_ext >&5
22543
22544         ac_cv_type_dev_t=no
22545 fi
22546
22547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548 fi
22549 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22550 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22551 if test $ac_cv_type_dev_t = yes; then
22552   :
22553 else
22554
22555 cat >>confdefs.h <<_ACEOF
22556 #define dev_t unsigned long
22557 _ACEOF
22558
22559 fi
22560
22561 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22562 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22563 if test "${ac_cv_type_daddr_t+set}" = set; then
22564   echo $ECHO_N "(cached) $ECHO_C" >&6
22565 else
22566   cat >conftest.$ac_ext <<_ACEOF
22567 /* confdefs.h.  */
22568 _ACEOF
22569 cat confdefs.h >>conftest.$ac_ext
22570 cat >>conftest.$ac_ext <<_ACEOF
22571 /* end confdefs.h.  */
22572 $ac_includes_default
22573 typedef daddr_t ac__type_new_;
22574 int
22575 main ()
22576 {
22577 if ((ac__type_new_ *) 0)
22578   return 0;
22579 if (sizeof (ac__type_new_))
22580   return 0;
22581   ;
22582   return 0;
22583 }
22584 _ACEOF
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589   *) ac_try_echo=$ac_try;;
22590 esac
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592   (eval "$ac_compile") 2>conftest.er1
22593   ac_status=$?
22594   grep -v '^ *+' conftest.er1 >conftest.err
22595   rm -f conftest.er1
22596   cat conftest.err >&5
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); } && {
22599          test -z "$ac_c_werror_flag" ||
22600          test ! -s conftest.err
22601        } && test -s conftest.$ac_objext; then
22602   ac_cv_type_daddr_t=yes
22603 else
22604   echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22606
22607         ac_cv_type_daddr_t=no
22608 fi
22609
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611 fi
22612 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22613 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22614 if test $ac_cv_type_daddr_t = yes; then
22615   :
22616 else
22617
22618 cat >>confdefs.h <<_ACEOF
22619 #define daddr_t long
22620 _ACEOF
22621
22622 fi
22623
22624 { echo "$as_me:$LINENO: checking for major_t" >&5
22625 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22626 if test "${ac_cv_type_major_t+set}" = set; then
22627   echo $ECHO_N "(cached) $ECHO_C" >&6
22628 else
22629   cat >conftest.$ac_ext <<_ACEOF
22630 /* confdefs.h.  */
22631 _ACEOF
22632 cat confdefs.h >>conftest.$ac_ext
22633 cat >>conftest.$ac_ext <<_ACEOF
22634 /* end confdefs.h.  */
22635 $ac_includes_default
22636 typedef major_t ac__type_new_;
22637 int
22638 main ()
22639 {
22640 if ((ac__type_new_ *) 0)
22641   return 0;
22642 if (sizeof (ac__type_new_))
22643   return 0;
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 rm -f conftest.$ac_objext
22649 if { (ac_try="$ac_compile"
22650 case "(($ac_try" in
22651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22652   *) ac_try_echo=$ac_try;;
22653 esac
22654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22655   (eval "$ac_compile") 2>conftest.er1
22656   ac_status=$?
22657   grep -v '^ *+' conftest.er1 >conftest.err
22658   rm -f conftest.er1
22659   cat conftest.err >&5
22660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661   (exit $ac_status); } && {
22662          test -z "$ac_c_werror_flag" ||
22663          test ! -s conftest.err
22664        } && test -s conftest.$ac_objext; then
22665   ac_cv_type_major_t=yes
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670         ac_cv_type_major_t=no
22671 fi
22672
22673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22674 fi
22675 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22676 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22677 if test $ac_cv_type_major_t = yes; then
22678   :
22679 else
22680
22681 cat >>confdefs.h <<_ACEOF
22682 #define major_t int
22683 _ACEOF
22684
22685 fi
22686
22687 { echo "$as_me:$LINENO: checking for minor_t" >&5
22688 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22689 if test "${ac_cv_type_minor_t+set}" = set; then
22690   echo $ECHO_N "(cached) $ECHO_C" >&6
22691 else
22692   cat >conftest.$ac_ext <<_ACEOF
22693 /* confdefs.h.  */
22694 _ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h.  */
22698 $ac_includes_default
22699 typedef minor_t ac__type_new_;
22700 int
22701 main ()
22702 {
22703 if ((ac__type_new_ *) 0)
22704   return 0;
22705 if (sizeof (ac__type_new_))
22706   return 0;
22707   ;
22708   return 0;
22709 }
22710 _ACEOF
22711 rm -f conftest.$ac_objext
22712 if { (ac_try="$ac_compile"
22713 case "(($ac_try" in
22714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715   *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718   (eval "$ac_compile") 2>conftest.er1
22719   ac_status=$?
22720   grep -v '^ *+' conftest.er1 >conftest.err
22721   rm -f conftest.er1
22722   cat conftest.err >&5
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } && {
22725          test -z "$ac_c_werror_flag" ||
22726          test ! -s conftest.err
22727        } && test -s conftest.$ac_objext; then
22728   ac_cv_type_minor_t=yes
22729 else
22730   echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22732
22733         ac_cv_type_minor_t=no
22734 fi
22735
22736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22737 fi
22738 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22739 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22740 if test $ac_cv_type_minor_t = yes; then
22741   :
22742 else
22743
22744 cat >>confdefs.h <<_ACEOF
22745 #define minor_t int
22746 _ACEOF
22747
22748 fi
22749
22750 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22751 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22752 if test "${ac_cv_type_ssize_t+set}" = set; then
22753   echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755   cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h.  */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h.  */
22761 $ac_includes_default
22762 typedef ssize_t ac__type_new_;
22763 int
22764 main ()
22765 {
22766 if ((ac__type_new_ *) 0)
22767   return 0;
22768 if (sizeof (ac__type_new_))
22769   return 0;
22770   ;
22771   return 0;
22772 }
22773 _ACEOF
22774 rm -f conftest.$ac_objext
22775 if { (ac_try="$ac_compile"
22776 case "(($ac_try" in
22777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778   *) ac_try_echo=$ac_try;;
22779 esac
22780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22781   (eval "$ac_compile") 2>conftest.er1
22782   ac_status=$?
22783   grep -v '^ *+' conftest.er1 >conftest.err
22784   rm -f conftest.er1
22785   cat conftest.err >&5
22786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787   (exit $ac_status); } && {
22788          test -z "$ac_c_werror_flag" ||
22789          test ! -s conftest.err
22790        } && test -s conftest.$ac_objext; then
22791   ac_cv_type_ssize_t=yes
22792 else
22793   echo "$as_me: failed program was:" >&5
22794 sed 's/^/| /' conftest.$ac_ext >&5
22795
22796         ac_cv_type_ssize_t=no
22797 fi
22798
22799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 fi
22801 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22802 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22803 if test $ac_cv_type_ssize_t = yes; then
22804   :
22805 else
22806
22807 cat >>confdefs.h <<_ACEOF
22808 #define ssize_t int
22809 _ACEOF
22810
22811 fi
22812
22813 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22814 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22815 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22816   echo $ECHO_N "(cached) $ECHO_C" >&6
22817 else
22818   cat >conftest.$ac_ext <<_ACEOF
22819 /* confdefs.h.  */
22820 _ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h.  */
22824 $ac_includes_default
22825 int
22826 main ()
22827 {
22828 static struct stat ac_aggr;
22829 if (ac_aggr.st_blocks)
22830 return 0;
22831   ;
22832   return 0;
22833 }
22834 _ACEOF
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839   *) ac_try_echo=$ac_try;;
22840 esac
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842   (eval "$ac_compile") 2>conftest.er1
22843   ac_status=$?
22844   grep -v '^ *+' conftest.er1 >conftest.err
22845   rm -f conftest.er1
22846   cat conftest.err >&5
22847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848   (exit $ac_status); } && {
22849          test -z "$ac_c_werror_flag" ||
22850          test ! -s conftest.err
22851        } && test -s conftest.$ac_objext; then
22852   ac_cv_member_struct_stat_st_blocks=yes
22853 else
22854   echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22856
22857         cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 $ac_includes_default
22864 int
22865 main ()
22866 {
22867 static struct stat ac_aggr;
22868 if (sizeof ac_aggr.st_blocks)
22869 return 0;
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
22876 case "(($ac_try" in
22877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878   *) ac_try_echo=$ac_try;;
22879 esac
22880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22881   (eval "$ac_compile") 2>conftest.er1
22882   ac_status=$?
22883   grep -v '^ *+' conftest.er1 >conftest.err
22884   rm -f conftest.er1
22885   cat conftest.err >&5
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); } && {
22888          test -z "$ac_c_werror_flag" ||
22889          test ! -s conftest.err
22890        } && test -s conftest.$ac_objext; then
22891   ac_cv_member_struct_stat_st_blocks=yes
22892 else
22893   echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22895
22896         ac_cv_member_struct_stat_st_blocks=no
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 fi
22901
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22903 fi
22904 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22905 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22906 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22907
22908 cat >>confdefs.h <<_ACEOF
22909 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22910 _ACEOF
22911
22912
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_ST_BLOCKS 1
22915 _ACEOF
22916
22917 else
22918   case " $LIBOBJS " in
22919   *" fileblocks.$ac_objext "* ) ;;
22920   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22921  ;;
22922 esac
22923
22924 fi
22925
22926
22927 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22928 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22929 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22930   echo $ECHO_N "(cached) $ECHO_C" >&6
22931 else
22932   cat >conftest.$ac_ext <<_ACEOF
22933 /* confdefs.h.  */
22934 _ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h.  */
22938 $ac_includes_default
22939 int
22940 main ()
22941 {
22942 static struct stat ac_aggr;
22943 if (ac_aggr.st_rdev)
22944 return 0;
22945   ;
22946   return 0;
22947 }
22948 _ACEOF
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953   *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956   (eval "$ac_compile") 2>conftest.er1
22957   ac_status=$?
22958   grep -v '^ *+' conftest.er1 >conftest.err
22959   rm -f conftest.er1
22960   cat conftest.err >&5
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); } && {
22963          test -z "$ac_c_werror_flag" ||
22964          test ! -s conftest.err
22965        } && test -s conftest.$ac_objext; then
22966   ac_cv_member_struct_stat_st_rdev=yes
22967 else
22968   echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22970
22971         cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h.  */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h.  */
22977 $ac_includes_default
22978 int
22979 main ()
22980 {
22981 static struct stat ac_aggr;
22982 if (sizeof ac_aggr.st_rdev)
22983 return 0;
22984   ;
22985   return 0;
22986 }
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (ac_try="$ac_compile"
22990 case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_compile") 2>conftest.er1
22996   ac_status=$?
22997   grep -v '^ *+' conftest.er1 >conftest.err
22998   rm -f conftest.er1
22999   cat conftest.err >&5
23000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001   (exit $ac_status); } && {
23002          test -z "$ac_c_werror_flag" ||
23003          test ! -s conftest.err
23004        } && test -s conftest.$ac_objext; then
23005   ac_cv_member_struct_stat_st_rdev=yes
23006 else
23007   echo "$as_me: failed program was:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23009
23010         ac_cv_member_struct_stat_st_rdev=no
23011 fi
23012
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014 fi
23015
23016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23017 fi
23018 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23019 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23020 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23021
23022 cat >>confdefs.h <<_ACEOF
23023 #define HAVE_STRUCT_STAT_ST_RDEV 1
23024 _ACEOF
23025
23026
23027 cat >>confdefs.h <<\_ACEOF
23028 #define HAVE_ST_RDEV 1
23029 _ACEOF
23030
23031 fi
23032
23033
23034 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23035 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23036 if test "${ac_cv_struct_tm+set}" = set; then
23037   echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039   cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h.  */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h.  */
23045 #include <sys/types.h>
23046 #include <time.h>
23047
23048 int
23049 main ()
23050 {
23051 struct tm tm;
23052                                      int *p = &tm.tm_sec;
23053                                      return !p;
23054   ;
23055   return 0;
23056 }
23057 _ACEOF
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062   *) ac_try_echo=$ac_try;;
23063 esac
23064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065   (eval "$ac_compile") 2>conftest.er1
23066   ac_status=$?
23067   grep -v '^ *+' conftest.er1 >conftest.err
23068   rm -f conftest.er1
23069   cat conftest.err >&5
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } && {
23072          test -z "$ac_c_werror_flag" ||
23073          test ! -s conftest.err
23074        } && test -s conftest.$ac_objext; then
23075   ac_cv_struct_tm=time.h
23076 else
23077   echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23079
23080         ac_cv_struct_tm=sys/time.h
23081 fi
23082
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23084 fi
23085 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23086 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23087 if test $ac_cv_struct_tm = sys/time.h; then
23088
23089 cat >>confdefs.h <<\_ACEOF
23090 #define TM_IN_SYS_TIME 1
23091 _ACEOF
23092
23093 fi
23094
23095 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23096 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23097 if test "${ac_cv_c_const+set}" = set; then
23098   echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100   cat >conftest.$ac_ext <<_ACEOF
23101 /* confdefs.h.  */
23102 _ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h.  */
23106
23107 int
23108 main ()
23109 {
23110 /* FIXME: Include the comments suggested by Paul. */
23111 #ifndef __cplusplus
23112   /* Ultrix mips cc rejects this.  */
23113   typedef int charset[2];
23114   const charset cs;
23115   /* SunOS 4.1.1 cc rejects this.  */
23116   char const *const *pcpcc;
23117   char **ppc;
23118   /* NEC SVR4.0.2 mips cc rejects this.  */
23119   struct point {int x, y;};
23120   static struct point const zero = {0,0};
23121   /* AIX XL C 1.02.0.0 rejects this.
23122      It does not let you subtract one const X* pointer from another in
23123      an arm of an if-expression whose if-part is not a constant
23124      expression */
23125   const char *g = "string";
23126   pcpcc = &g + (g ? g-g : 0);
23127   /* HPUX 7.0 cc rejects these. */
23128   ++pcpcc;
23129   ppc = (char**) pcpcc;
23130   pcpcc = (char const *const *) ppc;
23131   { /* SCO 3.2v4 cc rejects this.  */
23132     char *t;
23133     char const *s = 0 ? (char *) 0 : (char const *) 0;
23134
23135     *t++ = 0;
23136     if (s) return 0;
23137   }
23138   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23139     int x[] = {25, 17};
23140     const int *foo = &x[0];
23141     ++foo;
23142   }
23143   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23144     typedef const int *iptr;
23145     iptr p = 0;
23146     ++p;
23147   }
23148   { /* AIX XL C 1.02.0.0 rejects this saying
23149        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23150     struct s { int j; const int *ap[3]; };
23151     struct s *b; b->j = 5;
23152   }
23153   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23154     const int foo = 10;
23155     if (!foo) return 0;
23156   }
23157   return !cs[0] && !zero.x;
23158 #endif
23159
23160   ;
23161   return 0;
23162 }
23163 _ACEOF
23164 rm -f conftest.$ac_objext
23165 if { (ac_try="$ac_compile"
23166 case "(($ac_try" in
23167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168   *) ac_try_echo=$ac_try;;
23169 esac
23170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23171   (eval "$ac_compile") 2>conftest.er1
23172   ac_status=$?
23173   grep -v '^ *+' conftest.er1 >conftest.err
23174   rm -f conftest.er1
23175   cat conftest.err >&5
23176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177   (exit $ac_status); } && {
23178          test -z "$ac_c_werror_flag" ||
23179          test ! -s conftest.err
23180        } && test -s conftest.$ac_objext; then
23181   ac_cv_c_const=yes
23182 else
23183   echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23185
23186         ac_cv_c_const=no
23187 fi
23188
23189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23190 fi
23191 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23192 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23193 if test $ac_cv_c_const = no; then
23194
23195 cat >>confdefs.h <<\_ACEOF
23196 #define const
23197 _ACEOF
23198
23199 fi
23200
23201
23202
23203 { echo "$as_me:$LINENO: checking for char" >&5
23204 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23205 if test "${ac_cv_type_char+set}" = set; then
23206   echo $ECHO_N "(cached) $ECHO_C" >&6
23207 else
23208   cat >conftest.$ac_ext <<_ACEOF
23209 /* confdefs.h.  */
23210 _ACEOF
23211 cat confdefs.h >>conftest.$ac_ext
23212 cat >>conftest.$ac_ext <<_ACEOF
23213 /* end confdefs.h.  */
23214 $ac_includes_default
23215 typedef char ac__type_new_;
23216 int
23217 main ()
23218 {
23219 if ((ac__type_new_ *) 0)
23220   return 0;
23221 if (sizeof (ac__type_new_))
23222   return 0;
23223   ;
23224   return 0;
23225 }
23226 _ACEOF
23227 rm -f conftest.$ac_objext
23228 if { (ac_try="$ac_compile"
23229 case "(($ac_try" in
23230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231   *) ac_try_echo=$ac_try;;
23232 esac
23233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23234   (eval "$ac_compile") 2>conftest.er1
23235   ac_status=$?
23236   grep -v '^ *+' conftest.er1 >conftest.err
23237   rm -f conftest.er1
23238   cat conftest.err >&5
23239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23240   (exit $ac_status); } && {
23241          test -z "$ac_c_werror_flag" ||
23242          test ! -s conftest.err
23243        } && test -s conftest.$ac_objext; then
23244   ac_cv_type_char=yes
23245 else
23246   echo "$as_me: failed program was:" >&5
23247 sed 's/^/| /' conftest.$ac_ext >&5
23248
23249         ac_cv_type_char=no
23250 fi
23251
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23253 fi
23254 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23255 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23256
23257 # The cast to long int works around a bug in the HP C Compiler
23258 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23259 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23260 # This bug is HP SR number 8606223364.
23261 { echo "$as_me:$LINENO: checking size of char" >&5
23262 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23263 if test "${ac_cv_sizeof_char+set}" = set; then
23264   echo $ECHO_N "(cached) $ECHO_C" >&6
23265 else
23266   if test "$cross_compiling" = yes; then
23267   # Depending upon the size, compute the lo and hi bounds.
23268 cat >conftest.$ac_ext <<_ACEOF
23269 /* confdefs.h.  */
23270 _ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h.  */
23274 $ac_includes_default
23275    typedef char ac__type_sizeof_;
23276 int
23277 main ()
23278 {
23279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23280 test_array [0] = 0
23281
23282   ;
23283   return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290   *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293   (eval "$ac_compile") 2>conftest.er1
23294   ac_status=$?
23295   grep -v '^ *+' conftest.er1 >conftest.err
23296   rm -f conftest.er1
23297   cat conftest.err >&5
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); } && {
23300          test -z "$ac_c_werror_flag" ||
23301          test ! -s conftest.err
23302        } && test -s conftest.$ac_objext; then
23303   ac_lo=0 ac_mid=0
23304   while :; do
23305     cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 $ac_includes_default
23312    typedef char ac__type_sizeof_;
23313 int
23314 main ()
23315 {
23316 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23317 test_array [0] = 0
23318
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (ac_try="$ac_compile"
23325 case "(($ac_try" in
23326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23327   *) ac_try_echo=$ac_try;;
23328 esac
23329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23330   (eval "$ac_compile") 2>conftest.er1
23331   ac_status=$?
23332   grep -v '^ *+' conftest.er1 >conftest.err
23333   rm -f conftest.er1
23334   cat conftest.err >&5
23335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336   (exit $ac_status); } && {
23337          test -z "$ac_c_werror_flag" ||
23338          test ! -s conftest.err
23339        } && test -s conftest.$ac_objext; then
23340   ac_hi=$ac_mid; break
23341 else
23342   echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23344
23345         ac_lo=`expr $ac_mid + 1`
23346                         if test $ac_lo -le $ac_mid; then
23347                           ac_lo= ac_hi=
23348                           break
23349                         fi
23350                         ac_mid=`expr 2 '*' $ac_mid + 1`
23351 fi
23352
23353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23354   done
23355 else
23356   echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23358
23359         cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h.  */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h.  */
23365 $ac_includes_default
23366    typedef char ac__type_sizeof_;
23367 int
23368 main ()
23369 {
23370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23371 test_array [0] = 0
23372
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 rm -f conftest.$ac_objext
23378 if { (ac_try="$ac_compile"
23379 case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_compile") 2>conftest.er1
23385   ac_status=$?
23386   grep -v '^ *+' conftest.er1 >conftest.err
23387   rm -f conftest.er1
23388   cat conftest.err >&5
23389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390   (exit $ac_status); } && {
23391          test -z "$ac_c_werror_flag" ||
23392          test ! -s conftest.err
23393        } && test -s conftest.$ac_objext; then
23394   ac_hi=-1 ac_mid=-1
23395   while :; do
23396     cat >conftest.$ac_ext <<_ACEOF
23397 /* confdefs.h.  */
23398 _ACEOF
23399 cat confdefs.h >>conftest.$ac_ext
23400 cat >>conftest.$ac_ext <<_ACEOF
23401 /* end confdefs.h.  */
23402 $ac_includes_default
23403    typedef char ac__type_sizeof_;
23404 int
23405 main ()
23406 {
23407 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23408 test_array [0] = 0
23409
23410   ;
23411   return 0;
23412 }
23413 _ACEOF
23414 rm -f conftest.$ac_objext
23415 if { (ac_try="$ac_compile"
23416 case "(($ac_try" in
23417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418   *) ac_try_echo=$ac_try;;
23419 esac
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421   (eval "$ac_compile") 2>conftest.er1
23422   ac_status=$?
23423   grep -v '^ *+' conftest.er1 >conftest.err
23424   rm -f conftest.er1
23425   cat conftest.err >&5
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); } && {
23428          test -z "$ac_c_werror_flag" ||
23429          test ! -s conftest.err
23430        } && test -s conftest.$ac_objext; then
23431   ac_lo=$ac_mid; break
23432 else
23433   echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436         ac_hi=`expr '(' $ac_mid ')' - 1`
23437                         if test $ac_mid -le $ac_hi; then
23438                           ac_lo= ac_hi=
23439                           break
23440                         fi
23441                         ac_mid=`expr 2 '*' $ac_mid`
23442 fi
23443
23444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23445   done
23446 else
23447   echo "$as_me: failed program was:" >&5
23448 sed 's/^/| /' conftest.$ac_ext >&5
23449
23450         ac_lo= ac_hi=
23451 fi
23452
23453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23454 fi
23455
23456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23457 # Binary search between lo and hi bounds.
23458 while test "x$ac_lo" != "x$ac_hi"; do
23459   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23460   cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466 $ac_includes_default
23467    typedef char ac__type_sizeof_;
23468 int
23469 main ()
23470 {
23471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23472 test_array [0] = 0
23473
23474   ;
23475   return 0;
23476 }
23477 _ACEOF
23478 rm -f conftest.$ac_objext
23479 if { (ac_try="$ac_compile"
23480 case "(($ac_try" in
23481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23482   *) ac_try_echo=$ac_try;;
23483 esac
23484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23485   (eval "$ac_compile") 2>conftest.er1
23486   ac_status=$?
23487   grep -v '^ *+' conftest.er1 >conftest.err
23488   rm -f conftest.er1
23489   cat conftest.err >&5
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); } && {
23492          test -z "$ac_c_werror_flag" ||
23493          test ! -s conftest.err
23494        } && test -s conftest.$ac_objext; then
23495   ac_hi=$ac_mid
23496 else
23497   echo "$as_me: failed program was:" >&5
23498 sed 's/^/| /' conftest.$ac_ext >&5
23499
23500         ac_lo=`expr '(' $ac_mid ')' + 1`
23501 fi
23502
23503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23504 done
23505 case $ac_lo in
23506 ?*) ac_cv_sizeof_char=$ac_lo;;
23507 '') if test "$ac_cv_type_char" = yes; then
23508      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23509 See \`config.log' for more details." >&5
23510 echo "$as_me: error: cannot compute sizeof (char)
23511 See \`config.log' for more details." >&2;}
23512    { (exit 77); exit 77; }; }
23513    else
23514      ac_cv_sizeof_char=0
23515    fi ;;
23516 esac
23517 else
23518   cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h.  */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h.  */
23524 $ac_includes_default
23525    typedef char ac__type_sizeof_;
23526 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23527 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23528 #include <stdio.h>
23529 #include <stdlib.h>
23530 int
23531 main ()
23532 {
23533
23534   FILE *f = fopen ("conftest.val", "w");
23535   if (! f)
23536     return 1;
23537   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23538     {
23539       long int i = longval ();
23540       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23541         return 1;
23542       fprintf (f, "%ld\n", i);
23543     }
23544   else
23545     {
23546       unsigned long int i = ulongval ();
23547       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23548         return 1;
23549       fprintf (f, "%lu\n", i);
23550     }
23551   return ferror (f) || fclose (f) != 0;
23552
23553   ;
23554   return 0;
23555 }
23556 _ACEOF
23557 rm -f conftest$ac_exeext
23558 if { (ac_try="$ac_link"
23559 case "(($ac_try" in
23560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561   *) ac_try_echo=$ac_try;;
23562 esac
23563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23564   (eval "$ac_link") 2>&5
23565   ac_status=$?
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23568   { (case "(($ac_try" in
23569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570   *) ac_try_echo=$ac_try;;
23571 esac
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573   (eval "$ac_try") 2>&5
23574   ac_status=$?
23575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576   (exit $ac_status); }; }; then
23577   ac_cv_sizeof_char=`cat conftest.val`
23578 else
23579   echo "$as_me: program exited with status $ac_status" >&5
23580 echo "$as_me: failed program was:" >&5
23581 sed 's/^/| /' conftest.$ac_ext >&5
23582
23583 ( exit $ac_status )
23584 if test "$ac_cv_type_char" = yes; then
23585      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23586 See \`config.log' for more details." >&5
23587 echo "$as_me: error: cannot compute sizeof (char)
23588 See \`config.log' for more details." >&2;}
23589    { (exit 77); exit 77; }; }
23590    else
23591      ac_cv_sizeof_char=0
23592    fi
23593 fi
23594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23595 fi
23596 rm -f conftest.val
23597 fi
23598 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23599 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23600
23601
23602
23603 cat >>confdefs.h <<_ACEOF
23604 #define SIZEOF_CHAR $ac_cv_sizeof_char
23605 _ACEOF
23606
23607
23608 { echo "$as_me:$LINENO: checking for short int" >&5
23609 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23610 if test "${ac_cv_type_short_int+set}" = set; then
23611   echo $ECHO_N "(cached) $ECHO_C" >&6
23612 else
23613   cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h.  */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h.  */
23619 $ac_includes_default
23620 typedef short int ac__type_new_;
23621 int
23622 main ()
23623 {
23624 if ((ac__type_new_ *) 0)
23625   return 0;
23626 if (sizeof (ac__type_new_))
23627   return 0;
23628   ;
23629   return 0;
23630 }
23631 _ACEOF
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636   *) ac_try_echo=$ac_try;;
23637 esac
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639   (eval "$ac_compile") 2>conftest.er1
23640   ac_status=$?
23641   grep -v '^ *+' conftest.er1 >conftest.err
23642   rm -f conftest.er1
23643   cat conftest.err >&5
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); } && {
23646          test -z "$ac_c_werror_flag" ||
23647          test ! -s conftest.err
23648        } && test -s conftest.$ac_objext; then
23649   ac_cv_type_short_int=yes
23650 else
23651   echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654         ac_cv_type_short_int=no
23655 fi
23656
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 fi
23659 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23660 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23661
23662 # The cast to long int works around a bug in the HP C Compiler
23663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23665 # This bug is HP SR number 8606223364.
23666 { echo "$as_me:$LINENO: checking size of short int" >&5
23667 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23668 if test "${ac_cv_sizeof_short_int+set}" = set; then
23669   echo $ECHO_N "(cached) $ECHO_C" >&6
23670 else
23671   if test "$cross_compiling" = yes; then
23672   # Depending upon the size, compute the lo and hi bounds.
23673 cat >conftest.$ac_ext <<_ACEOF
23674 /* confdefs.h.  */
23675 _ACEOF
23676 cat confdefs.h >>conftest.$ac_ext
23677 cat >>conftest.$ac_ext <<_ACEOF
23678 /* end confdefs.h.  */
23679 $ac_includes_default
23680    typedef short int ac__type_sizeof_;
23681 int
23682 main ()
23683 {
23684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23685 test_array [0] = 0
23686
23687   ;
23688   return 0;
23689 }
23690 _ACEOF
23691 rm -f conftest.$ac_objext
23692 if { (ac_try="$ac_compile"
23693 case "(($ac_try" in
23694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23695   *) ac_try_echo=$ac_try;;
23696 esac
23697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23698   (eval "$ac_compile") 2>conftest.er1
23699   ac_status=$?
23700   grep -v '^ *+' conftest.er1 >conftest.err
23701   rm -f conftest.er1
23702   cat conftest.err >&5
23703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23704   (exit $ac_status); } && {
23705          test -z "$ac_c_werror_flag" ||
23706          test ! -s conftest.err
23707        } && test -s conftest.$ac_objext; then
23708   ac_lo=0 ac_mid=0
23709   while :; do
23710     cat >conftest.$ac_ext <<_ACEOF
23711 /* confdefs.h.  */
23712 _ACEOF
23713 cat confdefs.h >>conftest.$ac_ext
23714 cat >>conftest.$ac_ext <<_ACEOF
23715 /* end confdefs.h.  */
23716 $ac_includes_default
23717    typedef short int ac__type_sizeof_;
23718 int
23719 main ()
23720 {
23721 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23722 test_array [0] = 0
23723
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext
23729 if { (ac_try="$ac_compile"
23730 case "(($ac_try" in
23731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23732   *) ac_try_echo=$ac_try;;
23733 esac
23734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23735   (eval "$ac_compile") 2>conftest.er1
23736   ac_status=$?
23737   grep -v '^ *+' conftest.er1 >conftest.err
23738   rm -f conftest.er1
23739   cat conftest.err >&5
23740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23741   (exit $ac_status); } && {
23742          test -z "$ac_c_werror_flag" ||
23743          test ! -s conftest.err
23744        } && test -s conftest.$ac_objext; then
23745   ac_hi=$ac_mid; break
23746 else
23747   echo "$as_me: failed program was:" >&5
23748 sed 's/^/| /' conftest.$ac_ext >&5
23749
23750         ac_lo=`expr $ac_mid + 1`
23751                         if test $ac_lo -le $ac_mid; then
23752                           ac_lo= ac_hi=
23753                           break
23754                         fi
23755                         ac_mid=`expr 2 '*' $ac_mid + 1`
23756 fi
23757
23758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23759   done
23760 else
23761   echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23763
23764         cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h.  */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h.  */
23770 $ac_includes_default
23771    typedef short int ac__type_sizeof_;
23772 int
23773 main ()
23774 {
23775 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23776 test_array [0] = 0
23777
23778   ;
23779   return 0;
23780 }
23781 _ACEOF
23782 rm -f conftest.$ac_objext
23783 if { (ac_try="$ac_compile"
23784 case "(($ac_try" in
23785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786   *) ac_try_echo=$ac_try;;
23787 esac
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789   (eval "$ac_compile") 2>conftest.er1
23790   ac_status=$?
23791   grep -v '^ *+' conftest.er1 >conftest.err
23792   rm -f conftest.er1
23793   cat conftest.err >&5
23794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795   (exit $ac_status); } && {
23796          test -z "$ac_c_werror_flag" ||
23797          test ! -s conftest.err
23798        } && test -s conftest.$ac_objext; then
23799   ac_hi=-1 ac_mid=-1
23800   while :; do
23801     cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h.  */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h.  */
23807 $ac_includes_default
23808    typedef short int ac__type_sizeof_;
23809 int
23810 main ()
23811 {
23812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23813 test_array [0] = 0
23814
23815   ;
23816   return 0;
23817 }
23818 _ACEOF
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823   *) ac_try_echo=$ac_try;;
23824 esac
23825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23826   (eval "$ac_compile") 2>conftest.er1
23827   ac_status=$?
23828   grep -v '^ *+' conftest.er1 >conftest.err
23829   rm -f conftest.er1
23830   cat conftest.err >&5
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); } && {
23833          test -z "$ac_c_werror_flag" ||
23834          test ! -s conftest.err
23835        } && test -s conftest.$ac_objext; then
23836   ac_lo=$ac_mid; break
23837 else
23838   echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841         ac_hi=`expr '(' $ac_mid ')' - 1`
23842                         if test $ac_mid -le $ac_hi; then
23843                           ac_lo= ac_hi=
23844                           break
23845                         fi
23846                         ac_mid=`expr 2 '*' $ac_mid`
23847 fi
23848
23849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850   done
23851 else
23852   echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23854
23855         ac_lo= ac_hi=
23856 fi
23857
23858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23859 fi
23860
23861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23862 # Binary search between lo and hi bounds.
23863 while test "x$ac_lo" != "x$ac_hi"; do
23864   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23865   cat >conftest.$ac_ext <<_ACEOF
23866 /* confdefs.h.  */
23867 _ACEOF
23868 cat confdefs.h >>conftest.$ac_ext
23869 cat >>conftest.$ac_ext <<_ACEOF
23870 /* end confdefs.h.  */
23871 $ac_includes_default
23872    typedef short int ac__type_sizeof_;
23873 int
23874 main ()
23875 {
23876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23877 test_array [0] = 0
23878
23879   ;
23880   return 0;
23881 }
23882 _ACEOF
23883 rm -f conftest.$ac_objext
23884 if { (ac_try="$ac_compile"
23885 case "(($ac_try" in
23886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23887   *) ac_try_echo=$ac_try;;
23888 esac
23889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23890   (eval "$ac_compile") 2>conftest.er1
23891   ac_status=$?
23892   grep -v '^ *+' conftest.er1 >conftest.err
23893   rm -f conftest.er1
23894   cat conftest.err >&5
23895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); } && {
23897          test -z "$ac_c_werror_flag" ||
23898          test ! -s conftest.err
23899        } && test -s conftest.$ac_objext; then
23900   ac_hi=$ac_mid
23901 else
23902   echo "$as_me: failed program was:" >&5
23903 sed 's/^/| /' conftest.$ac_ext >&5
23904
23905         ac_lo=`expr '(' $ac_mid ')' + 1`
23906 fi
23907
23908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909 done
23910 case $ac_lo in
23911 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23912 '') if test "$ac_cv_type_short_int" = yes; then
23913      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23914 See \`config.log' for more details." >&5
23915 echo "$as_me: error: cannot compute sizeof (short int)
23916 See \`config.log' for more details." >&2;}
23917    { (exit 77); exit 77; }; }
23918    else
23919      ac_cv_sizeof_short_int=0
23920    fi ;;
23921 esac
23922 else
23923   cat >conftest.$ac_ext <<_ACEOF
23924 /* confdefs.h.  */
23925 _ACEOF
23926 cat confdefs.h >>conftest.$ac_ext
23927 cat >>conftest.$ac_ext <<_ACEOF
23928 /* end confdefs.h.  */
23929 $ac_includes_default
23930    typedef short int ac__type_sizeof_;
23931 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23932 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23933 #include <stdio.h>
23934 #include <stdlib.h>
23935 int
23936 main ()
23937 {
23938
23939   FILE *f = fopen ("conftest.val", "w");
23940   if (! f)
23941     return 1;
23942   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23943     {
23944       long int i = longval ();
23945       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23946         return 1;
23947       fprintf (f, "%ld\n", i);
23948     }
23949   else
23950     {
23951       unsigned long int i = ulongval ();
23952       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23953         return 1;
23954       fprintf (f, "%lu\n", i);
23955     }
23956   return ferror (f) || fclose (f) != 0;
23957
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest$ac_exeext
23963 if { (ac_try="$ac_link"
23964 case "(($ac_try" in
23965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23966   *) ac_try_echo=$ac_try;;
23967 esac
23968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23969   (eval "$ac_link") 2>&5
23970   ac_status=$?
23971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23973   { (case "(($ac_try" in
23974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975   *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978   (eval "$ac_try") 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); }; }; then
23982   ac_cv_sizeof_short_int=`cat conftest.val`
23983 else
23984   echo "$as_me: program exited with status $ac_status" >&5
23985 echo "$as_me: failed program was:" >&5
23986 sed 's/^/| /' conftest.$ac_ext >&5
23987
23988 ( exit $ac_status )
23989 if test "$ac_cv_type_short_int" = yes; then
23990      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23991 See \`config.log' for more details." >&5
23992 echo "$as_me: error: cannot compute sizeof (short int)
23993 See \`config.log' for more details." >&2;}
23994    { (exit 77); exit 77; }; }
23995    else
23996      ac_cv_sizeof_short_int=0
23997    fi
23998 fi
23999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24000 fi
24001 rm -f conftest.val
24002 fi
24003 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24004 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24005
24006
24007
24008 cat >>confdefs.h <<_ACEOF
24009 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24010 _ACEOF
24011
24012
24013 { echo "$as_me:$LINENO: checking for int" >&5
24014 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24015 if test "${ac_cv_type_int+set}" = set; then
24016   echo $ECHO_N "(cached) $ECHO_C" >&6
24017 else
24018   cat >conftest.$ac_ext <<_ACEOF
24019 /* confdefs.h.  */
24020 _ACEOF
24021 cat confdefs.h >>conftest.$ac_ext
24022 cat >>conftest.$ac_ext <<_ACEOF
24023 /* end confdefs.h.  */
24024 $ac_includes_default
24025 typedef int ac__type_new_;
24026 int
24027 main ()
24028 {
24029 if ((ac__type_new_ *) 0)
24030   return 0;
24031 if (sizeof (ac__type_new_))
24032   return 0;
24033   ;
24034   return 0;
24035 }
24036 _ACEOF
24037 rm -f conftest.$ac_objext
24038 if { (ac_try="$ac_compile"
24039 case "(($ac_try" in
24040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24041   *) ac_try_echo=$ac_try;;
24042 esac
24043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24044   (eval "$ac_compile") 2>conftest.er1
24045   ac_status=$?
24046   grep -v '^ *+' conftest.er1 >conftest.err
24047   rm -f conftest.er1
24048   cat conftest.err >&5
24049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050   (exit $ac_status); } && {
24051          test -z "$ac_c_werror_flag" ||
24052          test ! -s conftest.err
24053        } && test -s conftest.$ac_objext; then
24054   ac_cv_type_int=yes
24055 else
24056   echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059         ac_cv_type_int=no
24060 fi
24061
24062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24063 fi
24064 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24065 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24066
24067 # The cast to long int works around a bug in the HP C Compiler
24068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24070 # This bug is HP SR number 8606223364.
24071 { echo "$as_me:$LINENO: checking size of int" >&5
24072 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24073 if test "${ac_cv_sizeof_int+set}" = set; then
24074   echo $ECHO_N "(cached) $ECHO_C" >&6
24075 else
24076   if test "$cross_compiling" = yes; then
24077   # Depending upon the size, compute the lo and hi bounds.
24078 cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h.  */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h.  */
24084 $ac_includes_default
24085    typedef int ac__type_sizeof_;
24086 int
24087 main ()
24088 {
24089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24090 test_array [0] = 0
24091
24092   ;
24093   return 0;
24094 }
24095 _ACEOF
24096 rm -f conftest.$ac_objext
24097 if { (ac_try="$ac_compile"
24098 case "(($ac_try" in
24099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24100   *) ac_try_echo=$ac_try;;
24101 esac
24102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24103   (eval "$ac_compile") 2>conftest.er1
24104   ac_status=$?
24105   grep -v '^ *+' conftest.er1 >conftest.err
24106   rm -f conftest.er1
24107   cat conftest.err >&5
24108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109   (exit $ac_status); } && {
24110          test -z "$ac_c_werror_flag" ||
24111          test ! -s conftest.err
24112        } && test -s conftest.$ac_objext; then
24113   ac_lo=0 ac_mid=0
24114   while :; do
24115     cat >conftest.$ac_ext <<_ACEOF
24116 /* confdefs.h.  */
24117 _ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h.  */
24121 $ac_includes_default
24122    typedef int ac__type_sizeof_;
24123 int
24124 main ()
24125 {
24126 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24127 test_array [0] = 0
24128
24129   ;
24130   return 0;
24131 }
24132 _ACEOF
24133 rm -f conftest.$ac_objext
24134 if { (ac_try="$ac_compile"
24135 case "(($ac_try" in
24136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24137   *) ac_try_echo=$ac_try;;
24138 esac
24139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24140   (eval "$ac_compile") 2>conftest.er1
24141   ac_status=$?
24142   grep -v '^ *+' conftest.er1 >conftest.err
24143   rm -f conftest.er1
24144   cat conftest.err >&5
24145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146   (exit $ac_status); } && {
24147          test -z "$ac_c_werror_flag" ||
24148          test ! -s conftest.err
24149        } && test -s conftest.$ac_objext; then
24150   ac_hi=$ac_mid; break
24151 else
24152   echo "$as_me: failed program was:" >&5
24153 sed 's/^/| /' conftest.$ac_ext >&5
24154
24155         ac_lo=`expr $ac_mid + 1`
24156                         if test $ac_lo -le $ac_mid; then
24157                           ac_lo= ac_hi=
24158                           break
24159                         fi
24160                         ac_mid=`expr 2 '*' $ac_mid + 1`
24161 fi
24162
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164   done
24165 else
24166   echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169         cat >conftest.$ac_ext <<_ACEOF
24170 /* confdefs.h.  */
24171 _ACEOF
24172 cat confdefs.h >>conftest.$ac_ext
24173 cat >>conftest.$ac_ext <<_ACEOF
24174 /* end confdefs.h.  */
24175 $ac_includes_default
24176    typedef int ac__type_sizeof_;
24177 int
24178 main ()
24179 {
24180 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24181 test_array [0] = 0
24182
24183   ;
24184   return 0;
24185 }
24186 _ACEOF
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191   *) ac_try_echo=$ac_try;;
24192 esac
24193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24194   (eval "$ac_compile") 2>conftest.er1
24195   ac_status=$?
24196   grep -v '^ *+' conftest.er1 >conftest.err
24197   rm -f conftest.er1
24198   cat conftest.err >&5
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } && {
24201          test -z "$ac_c_werror_flag" ||
24202          test ! -s conftest.err
24203        } && test -s conftest.$ac_objext; then
24204   ac_hi=-1 ac_mid=-1
24205   while :; do
24206     cat >conftest.$ac_ext <<_ACEOF
24207 /* confdefs.h.  */
24208 _ACEOF
24209 cat confdefs.h >>conftest.$ac_ext
24210 cat >>conftest.$ac_ext <<_ACEOF
24211 /* end confdefs.h.  */
24212 $ac_includes_default
24213    typedef int ac__type_sizeof_;
24214 int
24215 main ()
24216 {
24217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24218 test_array [0] = 0
24219
24220   ;
24221   return 0;
24222 }
24223 _ACEOF
24224 rm -f conftest.$ac_objext
24225 if { (ac_try="$ac_compile"
24226 case "(($ac_try" in
24227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228   *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231   (eval "$ac_compile") 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } && {
24238          test -z "$ac_c_werror_flag" ||
24239          test ! -s conftest.err
24240        } && test -s conftest.$ac_objext; then
24241   ac_lo=$ac_mid; break
24242 else
24243   echo "$as_me: failed program was:" >&5
24244 sed 's/^/| /' conftest.$ac_ext >&5
24245
24246         ac_hi=`expr '(' $ac_mid ')' - 1`
24247                         if test $ac_mid -le $ac_hi; then
24248                           ac_lo= ac_hi=
24249                           break
24250                         fi
24251                         ac_mid=`expr 2 '*' $ac_mid`
24252 fi
24253
24254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24255   done
24256 else
24257   echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24259
24260         ac_lo= ac_hi=
24261 fi
24262
24263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24264 fi
24265
24266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24267 # Binary search between lo and hi bounds.
24268 while test "x$ac_lo" != "x$ac_hi"; do
24269   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24270   cat >conftest.$ac_ext <<_ACEOF
24271 /* confdefs.h.  */
24272 _ACEOF
24273 cat confdefs.h >>conftest.$ac_ext
24274 cat >>conftest.$ac_ext <<_ACEOF
24275 /* end confdefs.h.  */
24276 $ac_includes_default
24277    typedef int ac__type_sizeof_;
24278 int
24279 main ()
24280 {
24281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24282 test_array [0] = 0
24283
24284   ;
24285   return 0;
24286 }
24287 _ACEOF
24288 rm -f conftest.$ac_objext
24289 if { (ac_try="$ac_compile"
24290 case "(($ac_try" in
24291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292   *) ac_try_echo=$ac_try;;
24293 esac
24294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295   (eval "$ac_compile") 2>conftest.er1
24296   ac_status=$?
24297   grep -v '^ *+' conftest.er1 >conftest.err
24298   rm -f conftest.er1
24299   cat conftest.err >&5
24300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301   (exit $ac_status); } && {
24302          test -z "$ac_c_werror_flag" ||
24303          test ! -s conftest.err
24304        } && test -s conftest.$ac_objext; then
24305   ac_hi=$ac_mid
24306 else
24307   echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24309
24310         ac_lo=`expr '(' $ac_mid ')' + 1`
24311 fi
24312
24313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24314 done
24315 case $ac_lo in
24316 ?*) ac_cv_sizeof_int=$ac_lo;;
24317 '') if test "$ac_cv_type_int" = yes; then
24318      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24319 See \`config.log' for more details." >&5
24320 echo "$as_me: error: cannot compute sizeof (int)
24321 See \`config.log' for more details." >&2;}
24322    { (exit 77); exit 77; }; }
24323    else
24324      ac_cv_sizeof_int=0
24325    fi ;;
24326 esac
24327 else
24328   cat >conftest.$ac_ext <<_ACEOF
24329 /* confdefs.h.  */
24330 _ACEOF
24331 cat confdefs.h >>conftest.$ac_ext
24332 cat >>conftest.$ac_ext <<_ACEOF
24333 /* end confdefs.h.  */
24334 $ac_includes_default
24335    typedef int ac__type_sizeof_;
24336 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24337 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24338 #include <stdio.h>
24339 #include <stdlib.h>
24340 int
24341 main ()
24342 {
24343
24344   FILE *f = fopen ("conftest.val", "w");
24345   if (! f)
24346     return 1;
24347   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24348     {
24349       long int i = longval ();
24350       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24351         return 1;
24352       fprintf (f, "%ld\n", i);
24353     }
24354   else
24355     {
24356       unsigned long int i = ulongval ();
24357       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24358         return 1;
24359       fprintf (f, "%lu\n", i);
24360     }
24361   return ferror (f) || fclose (f) != 0;
24362
24363   ;
24364   return 0;
24365 }
24366 _ACEOF
24367 rm -f conftest$ac_exeext
24368 if { (ac_try="$ac_link"
24369 case "(($ac_try" in
24370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371   *) ac_try_echo=$ac_try;;
24372 esac
24373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24374   (eval "$ac_link") 2>&5
24375   ac_status=$?
24376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24378   { (case "(($ac_try" in
24379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24380   *) ac_try_echo=$ac_try;;
24381 esac
24382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24383   (eval "$ac_try") 2>&5
24384   ac_status=$?
24385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24386   (exit $ac_status); }; }; then
24387   ac_cv_sizeof_int=`cat conftest.val`
24388 else
24389   echo "$as_me: program exited with status $ac_status" >&5
24390 echo "$as_me: failed program was:" >&5
24391 sed 's/^/| /' conftest.$ac_ext >&5
24392
24393 ( exit $ac_status )
24394 if test "$ac_cv_type_int" = yes; then
24395      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24396 See \`config.log' for more details." >&5
24397 echo "$as_me: error: cannot compute sizeof (int)
24398 See \`config.log' for more details." >&2;}
24399    { (exit 77); exit 77; }; }
24400    else
24401      ac_cv_sizeof_int=0
24402    fi
24403 fi
24404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24405 fi
24406 rm -f conftest.val
24407 fi
24408 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24409 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24410
24411
24412
24413 cat >>confdefs.h <<_ACEOF
24414 #define SIZEOF_INT $ac_cv_sizeof_int
24415 _ACEOF
24416
24417
24418 { echo "$as_me:$LINENO: checking for long int" >&5
24419 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24420 if test "${ac_cv_type_long_int+set}" = set; then
24421   echo $ECHO_N "(cached) $ECHO_C" >&6
24422 else
24423   cat >conftest.$ac_ext <<_ACEOF
24424 /* confdefs.h.  */
24425 _ACEOF
24426 cat confdefs.h >>conftest.$ac_ext
24427 cat >>conftest.$ac_ext <<_ACEOF
24428 /* end confdefs.h.  */
24429 $ac_includes_default
24430 typedef long int ac__type_new_;
24431 int
24432 main ()
24433 {
24434 if ((ac__type_new_ *) 0)
24435   return 0;
24436 if (sizeof (ac__type_new_))
24437   return 0;
24438   ;
24439   return 0;
24440 }
24441 _ACEOF
24442 rm -f conftest.$ac_objext
24443 if { (ac_try="$ac_compile"
24444 case "(($ac_try" in
24445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446   *) ac_try_echo=$ac_try;;
24447 esac
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449   (eval "$ac_compile") 2>conftest.er1
24450   ac_status=$?
24451   grep -v '^ *+' conftest.er1 >conftest.err
24452   rm -f conftest.er1
24453   cat conftest.err >&5
24454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455   (exit $ac_status); } && {
24456          test -z "$ac_c_werror_flag" ||
24457          test ! -s conftest.err
24458        } && test -s conftest.$ac_objext; then
24459   ac_cv_type_long_int=yes
24460 else
24461   echo "$as_me: failed program was:" >&5
24462 sed 's/^/| /' conftest.$ac_ext >&5
24463
24464         ac_cv_type_long_int=no
24465 fi
24466
24467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24468 fi
24469 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24470 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24471
24472 # The cast to long int works around a bug in the HP C Compiler
24473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24475 # This bug is HP SR number 8606223364.
24476 { echo "$as_me:$LINENO: checking size of long int" >&5
24477 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24478 if test "${ac_cv_sizeof_long_int+set}" = set; then
24479   echo $ECHO_N "(cached) $ECHO_C" >&6
24480 else
24481   if test "$cross_compiling" = yes; then
24482   # Depending upon the size, compute the lo and hi bounds.
24483 cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489 $ac_includes_default
24490    typedef long int ac__type_sizeof_;
24491 int
24492 main ()
24493 {
24494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24495 test_array [0] = 0
24496
24497   ;
24498   return 0;
24499 }
24500 _ACEOF
24501 rm -f conftest.$ac_objext
24502 if { (ac_try="$ac_compile"
24503 case "(($ac_try" in
24504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24505   *) ac_try_echo=$ac_try;;
24506 esac
24507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24508   (eval "$ac_compile") 2>conftest.er1
24509   ac_status=$?
24510   grep -v '^ *+' conftest.er1 >conftest.err
24511   rm -f conftest.er1
24512   cat conftest.err >&5
24513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514   (exit $ac_status); } && {
24515          test -z "$ac_c_werror_flag" ||
24516          test ! -s conftest.err
24517        } && test -s conftest.$ac_objext; then
24518   ac_lo=0 ac_mid=0
24519   while :; do
24520     cat >conftest.$ac_ext <<_ACEOF
24521 /* confdefs.h.  */
24522 _ACEOF
24523 cat confdefs.h >>conftest.$ac_ext
24524 cat >>conftest.$ac_ext <<_ACEOF
24525 /* end confdefs.h.  */
24526 $ac_includes_default
24527    typedef long int ac__type_sizeof_;
24528 int
24529 main ()
24530 {
24531 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24532 test_array [0] = 0
24533
24534   ;
24535   return 0;
24536 }
24537 _ACEOF
24538 rm -f conftest.$ac_objext
24539 if { (ac_try="$ac_compile"
24540 case "(($ac_try" in
24541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24542   *) ac_try_echo=$ac_try;;
24543 esac
24544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24545   (eval "$ac_compile") 2>conftest.er1
24546   ac_status=$?
24547   grep -v '^ *+' conftest.er1 >conftest.err
24548   rm -f conftest.er1
24549   cat conftest.err >&5
24550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24551   (exit $ac_status); } && {
24552          test -z "$ac_c_werror_flag" ||
24553          test ! -s conftest.err
24554        } && test -s conftest.$ac_objext; then
24555   ac_hi=$ac_mid; break
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560         ac_lo=`expr $ac_mid + 1`
24561                         if test $ac_lo -le $ac_mid; then
24562                           ac_lo= ac_hi=
24563                           break
24564                         fi
24565                         ac_mid=`expr 2 '*' $ac_mid + 1`
24566 fi
24567
24568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24569   done
24570 else
24571   echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24573
24574         cat >conftest.$ac_ext <<_ACEOF
24575 /* confdefs.h.  */
24576 _ACEOF
24577 cat confdefs.h >>conftest.$ac_ext
24578 cat >>conftest.$ac_ext <<_ACEOF
24579 /* end confdefs.h.  */
24580 $ac_includes_default
24581    typedef long int ac__type_sizeof_;
24582 int
24583 main ()
24584 {
24585 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24586 test_array [0] = 0
24587
24588   ;
24589   return 0;
24590 }
24591 _ACEOF
24592 rm -f conftest.$ac_objext
24593 if { (ac_try="$ac_compile"
24594 case "(($ac_try" in
24595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596   *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599   (eval "$ac_compile") 2>conftest.er1
24600   ac_status=$?
24601   grep -v '^ *+' conftest.er1 >conftest.err
24602   rm -f conftest.er1
24603   cat conftest.err >&5
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); } && {
24606          test -z "$ac_c_werror_flag" ||
24607          test ! -s conftest.err
24608        } && test -s conftest.$ac_objext; then
24609   ac_hi=-1 ac_mid=-1
24610   while :; do
24611     cat >conftest.$ac_ext <<_ACEOF
24612 /* confdefs.h.  */
24613 _ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h.  */
24617 $ac_includes_default
24618    typedef long int ac__type_sizeof_;
24619 int
24620 main ()
24621 {
24622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24623 test_array [0] = 0
24624
24625   ;
24626   return 0;
24627 }
24628 _ACEOF
24629 rm -f conftest.$ac_objext
24630 if { (ac_try="$ac_compile"
24631 case "(($ac_try" in
24632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24633   *) ac_try_echo=$ac_try;;
24634 esac
24635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24636   (eval "$ac_compile") 2>conftest.er1
24637   ac_status=$?
24638   grep -v '^ *+' conftest.er1 >conftest.err
24639   rm -f conftest.er1
24640   cat conftest.err >&5
24641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24642   (exit $ac_status); } && {
24643          test -z "$ac_c_werror_flag" ||
24644          test ! -s conftest.err
24645        } && test -s conftest.$ac_objext; then
24646   ac_lo=$ac_mid; break
24647 else
24648   echo "$as_me: failed program was:" >&5
24649 sed 's/^/| /' conftest.$ac_ext >&5
24650
24651         ac_hi=`expr '(' $ac_mid ')' - 1`
24652                         if test $ac_mid -le $ac_hi; then
24653                           ac_lo= ac_hi=
24654                           break
24655                         fi
24656                         ac_mid=`expr 2 '*' $ac_mid`
24657 fi
24658
24659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24660   done
24661 else
24662   echo "$as_me: failed program was:" >&5
24663 sed 's/^/| /' conftest.$ac_ext >&5
24664
24665         ac_lo= ac_hi=
24666 fi
24667
24668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24669 fi
24670
24671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24672 # Binary search between lo and hi bounds.
24673 while test "x$ac_lo" != "x$ac_hi"; do
24674   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24675   cat >conftest.$ac_ext <<_ACEOF
24676 /* confdefs.h.  */
24677 _ACEOF
24678 cat confdefs.h >>conftest.$ac_ext
24679 cat >>conftest.$ac_ext <<_ACEOF
24680 /* end confdefs.h.  */
24681 $ac_includes_default
24682    typedef long int ac__type_sizeof_;
24683 int
24684 main ()
24685 {
24686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24687 test_array [0] = 0
24688
24689   ;
24690   return 0;
24691 }
24692 _ACEOF
24693 rm -f conftest.$ac_objext
24694 if { (ac_try="$ac_compile"
24695 case "(($ac_try" in
24696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697   *) ac_try_echo=$ac_try;;
24698 esac
24699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24700   (eval "$ac_compile") 2>conftest.er1
24701   ac_status=$?
24702   grep -v '^ *+' conftest.er1 >conftest.err
24703   rm -f conftest.er1
24704   cat conftest.err >&5
24705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706   (exit $ac_status); } && {
24707          test -z "$ac_c_werror_flag" ||
24708          test ! -s conftest.err
24709        } && test -s conftest.$ac_objext; then
24710   ac_hi=$ac_mid
24711 else
24712   echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24714
24715         ac_lo=`expr '(' $ac_mid ')' + 1`
24716 fi
24717
24718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24719 done
24720 case $ac_lo in
24721 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24722 '') if test "$ac_cv_type_long_int" = yes; then
24723      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24724 See \`config.log' for more details." >&5
24725 echo "$as_me: error: cannot compute sizeof (long int)
24726 See \`config.log' for more details." >&2;}
24727    { (exit 77); exit 77; }; }
24728    else
24729      ac_cv_sizeof_long_int=0
24730    fi ;;
24731 esac
24732 else
24733   cat >conftest.$ac_ext <<_ACEOF
24734 /* confdefs.h.  */
24735 _ACEOF
24736 cat confdefs.h >>conftest.$ac_ext
24737 cat >>conftest.$ac_ext <<_ACEOF
24738 /* end confdefs.h.  */
24739 $ac_includes_default
24740    typedef long int ac__type_sizeof_;
24741 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24742 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24743 #include <stdio.h>
24744 #include <stdlib.h>
24745 int
24746 main ()
24747 {
24748
24749   FILE *f = fopen ("conftest.val", "w");
24750   if (! f)
24751     return 1;
24752   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24753     {
24754       long int i = longval ();
24755       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24756         return 1;
24757       fprintf (f, "%ld\n", i);
24758     }
24759   else
24760     {
24761       unsigned long int i = ulongval ();
24762       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24763         return 1;
24764       fprintf (f, "%lu\n", i);
24765     }
24766   return ferror (f) || fclose (f) != 0;
24767
24768   ;
24769   return 0;
24770 }
24771 _ACEOF
24772 rm -f conftest$ac_exeext
24773 if { (ac_try="$ac_link"
24774 case "(($ac_try" in
24775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24776   *) ac_try_echo=$ac_try;;
24777 esac
24778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24779   (eval "$ac_link") 2>&5
24780   ac_status=$?
24781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24783   { (case "(($ac_try" in
24784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785   *) ac_try_echo=$ac_try;;
24786 esac
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788   (eval "$ac_try") 2>&5
24789   ac_status=$?
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); }; }; then
24792   ac_cv_sizeof_long_int=`cat conftest.val`
24793 else
24794   echo "$as_me: program exited with status $ac_status" >&5
24795 echo "$as_me: failed program was:" >&5
24796 sed 's/^/| /' conftest.$ac_ext >&5
24797
24798 ( exit $ac_status )
24799 if test "$ac_cv_type_long_int" = yes; then
24800      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24801 See \`config.log' for more details." >&5
24802 echo "$as_me: error: cannot compute sizeof (long int)
24803 See \`config.log' for more details." >&2;}
24804    { (exit 77); exit 77; }; }
24805    else
24806      ac_cv_sizeof_long_int=0
24807    fi
24808 fi
24809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24810 fi
24811 rm -f conftest.val
24812 fi
24813 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24814 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24815
24816
24817
24818 cat >>confdefs.h <<_ACEOF
24819 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24820 _ACEOF
24821
24822
24823 { echo "$as_me:$LINENO: checking for long long int" >&5
24824 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24825 if test "${ac_cv_type_long_long_int+set}" = set; then
24826   echo $ECHO_N "(cached) $ECHO_C" >&6
24827 else
24828   cat >conftest.$ac_ext <<_ACEOF
24829 /* confdefs.h.  */
24830 _ACEOF
24831 cat confdefs.h >>conftest.$ac_ext
24832 cat >>conftest.$ac_ext <<_ACEOF
24833 /* end confdefs.h.  */
24834 $ac_includes_default
24835 typedef long long int ac__type_new_;
24836 int
24837 main ()
24838 {
24839 if ((ac__type_new_ *) 0)
24840   return 0;
24841 if (sizeof (ac__type_new_))
24842   return 0;
24843   ;
24844   return 0;
24845 }
24846 _ACEOF
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851   *) ac_try_echo=$ac_try;;
24852 esac
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854   (eval "$ac_compile") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest.$ac_objext; then
24864   ac_cv_type_long_long_int=yes
24865 else
24866   echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869         ac_cv_type_long_long_int=no
24870 fi
24871
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 fi
24874 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24875 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24876
24877 # The cast to long int works around a bug in the HP C Compiler
24878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24880 # This bug is HP SR number 8606223364.
24881 { echo "$as_me:$LINENO: checking size of long long int" >&5
24882 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24883 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24884   echo $ECHO_N "(cached) $ECHO_C" >&6
24885 else
24886   if test "$cross_compiling" = yes; then
24887   # Depending upon the size, compute the lo and hi bounds.
24888 cat >conftest.$ac_ext <<_ACEOF
24889 /* confdefs.h.  */
24890 _ACEOF
24891 cat confdefs.h >>conftest.$ac_ext
24892 cat >>conftest.$ac_ext <<_ACEOF
24893 /* end confdefs.h.  */
24894 $ac_includes_default
24895    typedef long long int ac__type_sizeof_;
24896 int
24897 main ()
24898 {
24899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24900 test_array [0] = 0
24901
24902   ;
24903   return 0;
24904 }
24905 _ACEOF
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910   *) ac_try_echo=$ac_try;;
24911 esac
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913   (eval "$ac_compile") 2>conftest.er1
24914   ac_status=$?
24915   grep -v '^ *+' conftest.er1 >conftest.err
24916   rm -f conftest.er1
24917   cat conftest.err >&5
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); } && {
24920          test -z "$ac_c_werror_flag" ||
24921          test ! -s conftest.err
24922        } && test -s conftest.$ac_objext; then
24923   ac_lo=0 ac_mid=0
24924   while :; do
24925     cat >conftest.$ac_ext <<_ACEOF
24926 /* confdefs.h.  */
24927 _ACEOF
24928 cat confdefs.h >>conftest.$ac_ext
24929 cat >>conftest.$ac_ext <<_ACEOF
24930 /* end confdefs.h.  */
24931 $ac_includes_default
24932    typedef long long int ac__type_sizeof_;
24933 int
24934 main ()
24935 {
24936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24937 test_array [0] = 0
24938
24939   ;
24940   return 0;
24941 }
24942 _ACEOF
24943 rm -f conftest.$ac_objext
24944 if { (ac_try="$ac_compile"
24945 case "(($ac_try" in
24946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24947   *) ac_try_echo=$ac_try;;
24948 esac
24949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24950   (eval "$ac_compile") 2>conftest.er1
24951   ac_status=$?
24952   grep -v '^ *+' conftest.er1 >conftest.err
24953   rm -f conftest.er1
24954   cat conftest.err >&5
24955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24956   (exit $ac_status); } && {
24957          test -z "$ac_c_werror_flag" ||
24958          test ! -s conftest.err
24959        } && test -s conftest.$ac_objext; then
24960   ac_hi=$ac_mid; break
24961 else
24962   echo "$as_me: failed program was:" >&5
24963 sed 's/^/| /' conftest.$ac_ext >&5
24964
24965         ac_lo=`expr $ac_mid + 1`
24966                         if test $ac_lo -le $ac_mid; then
24967                           ac_lo= ac_hi=
24968                           break
24969                         fi
24970                         ac_mid=`expr 2 '*' $ac_mid + 1`
24971 fi
24972
24973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24974   done
24975 else
24976   echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24978
24979         cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985 $ac_includes_default
24986    typedef long long int ac__type_sizeof_;
24987 int
24988 main ()
24989 {
24990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24991 test_array [0] = 0
24992
24993   ;
24994   return 0;
24995 }
24996 _ACEOF
24997 rm -f conftest.$ac_objext
24998 if { (ac_try="$ac_compile"
24999 case "(($ac_try" in
25000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25001   *) ac_try_echo=$ac_try;;
25002 esac
25003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25004   (eval "$ac_compile") 2>conftest.er1
25005   ac_status=$?
25006   grep -v '^ *+' conftest.er1 >conftest.err
25007   rm -f conftest.er1
25008   cat conftest.err >&5
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } && {
25011          test -z "$ac_c_werror_flag" ||
25012          test ! -s conftest.err
25013        } && test -s conftest.$ac_objext; then
25014   ac_hi=-1 ac_mid=-1
25015   while :; do
25016     cat >conftest.$ac_ext <<_ACEOF
25017 /* confdefs.h.  */
25018 _ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h.  */
25022 $ac_includes_default
25023    typedef long long int ac__type_sizeof_;
25024 int
25025 main ()
25026 {
25027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25028 test_array [0] = 0
25029
25030   ;
25031   return 0;
25032 }
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038   *) ac_try_echo=$ac_try;;
25039 esac
25040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25041   (eval "$ac_compile") 2>conftest.er1
25042   ac_status=$?
25043   grep -v '^ *+' conftest.er1 >conftest.err
25044   rm -f conftest.er1
25045   cat conftest.err >&5
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); } && {
25048          test -z "$ac_c_werror_flag" ||
25049          test ! -s conftest.err
25050        } && test -s conftest.$ac_objext; then
25051   ac_lo=$ac_mid; break
25052 else
25053   echo "$as_me: failed program was:" >&5
25054 sed 's/^/| /' conftest.$ac_ext >&5
25055
25056         ac_hi=`expr '(' $ac_mid ')' - 1`
25057                         if test $ac_mid -le $ac_hi; then
25058                           ac_lo= ac_hi=
25059                           break
25060                         fi
25061                         ac_mid=`expr 2 '*' $ac_mid`
25062 fi
25063
25064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25065   done
25066 else
25067   echo "$as_me: failed program was:" >&5
25068 sed 's/^/| /' conftest.$ac_ext >&5
25069
25070         ac_lo= ac_hi=
25071 fi
25072
25073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25074 fi
25075
25076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077 # Binary search between lo and hi bounds.
25078 while test "x$ac_lo" != "x$ac_hi"; do
25079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25080   cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h.  */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h.  */
25086 $ac_includes_default
25087    typedef long long int ac__type_sizeof_;
25088 int
25089 main ()
25090 {
25091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25092 test_array [0] = 0
25093
25094   ;
25095   return 0;
25096 }
25097 _ACEOF
25098 rm -f conftest.$ac_objext
25099 if { (ac_try="$ac_compile"
25100 case "(($ac_try" in
25101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102   *) ac_try_echo=$ac_try;;
25103 esac
25104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25105   (eval "$ac_compile") 2>conftest.er1
25106   ac_status=$?
25107   grep -v '^ *+' conftest.er1 >conftest.err
25108   rm -f conftest.er1
25109   cat conftest.err >&5
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); } && {
25112          test -z "$ac_c_werror_flag" ||
25113          test ! -s conftest.err
25114        } && test -s conftest.$ac_objext; then
25115   ac_hi=$ac_mid
25116 else
25117   echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25119
25120         ac_lo=`expr '(' $ac_mid ')' + 1`
25121 fi
25122
25123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25124 done
25125 case $ac_lo in
25126 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25127 '') if test "$ac_cv_type_long_long_int" = yes; then
25128      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25129 See \`config.log' for more details." >&5
25130 echo "$as_me: error: cannot compute sizeof (long long int)
25131 See \`config.log' for more details." >&2;}
25132    { (exit 77); exit 77; }; }
25133    else
25134      ac_cv_sizeof_long_long_int=0
25135    fi ;;
25136 esac
25137 else
25138   cat >conftest.$ac_ext <<_ACEOF
25139 /* confdefs.h.  */
25140 _ACEOF
25141 cat confdefs.h >>conftest.$ac_ext
25142 cat >>conftest.$ac_ext <<_ACEOF
25143 /* end confdefs.h.  */
25144 $ac_includes_default
25145    typedef long long int ac__type_sizeof_;
25146 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25147 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25148 #include <stdio.h>
25149 #include <stdlib.h>
25150 int
25151 main ()
25152 {
25153
25154   FILE *f = fopen ("conftest.val", "w");
25155   if (! f)
25156     return 1;
25157   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25158     {
25159       long int i = longval ();
25160       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25161         return 1;
25162       fprintf (f, "%ld\n", i);
25163     }
25164   else
25165     {
25166       unsigned long int i = ulongval ();
25167       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25168         return 1;
25169       fprintf (f, "%lu\n", i);
25170     }
25171   return ferror (f) || fclose (f) != 0;
25172
25173   ;
25174   return 0;
25175 }
25176 _ACEOF
25177 rm -f conftest$ac_exeext
25178 if { (ac_try="$ac_link"
25179 case "(($ac_try" in
25180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181   *) ac_try_echo=$ac_try;;
25182 esac
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184   (eval "$ac_link") 2>&5
25185   ac_status=$?
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25188   { (case "(($ac_try" in
25189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25190   *) ac_try_echo=$ac_try;;
25191 esac
25192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25193   (eval "$ac_try") 2>&5
25194   ac_status=$?
25195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196   (exit $ac_status); }; }; then
25197   ac_cv_sizeof_long_long_int=`cat conftest.val`
25198 else
25199   echo "$as_me: program exited with status $ac_status" >&5
25200 echo "$as_me: failed program was:" >&5
25201 sed 's/^/| /' conftest.$ac_ext >&5
25202
25203 ( exit $ac_status )
25204 if test "$ac_cv_type_long_long_int" = yes; then
25205      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25206 See \`config.log' for more details." >&5
25207 echo "$as_me: error: cannot compute sizeof (long long int)
25208 See \`config.log' for more details." >&2;}
25209    { (exit 77); exit 77; }; }
25210    else
25211      ac_cv_sizeof_long_long_int=0
25212    fi
25213 fi
25214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25215 fi
25216 rm -f conftest.val
25217 fi
25218 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25219 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25220
25221
25222
25223 cat >>confdefs.h <<_ACEOF
25224 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25225 _ACEOF
25226
25227
25228 { echo "$as_me:$LINENO: checking for int *" >&5
25229 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25230 if test "${ac_cv_type_int_p+set}" = set; then
25231   echo $ECHO_N "(cached) $ECHO_C" >&6
25232 else
25233   cat >conftest.$ac_ext <<_ACEOF
25234 /* confdefs.h.  */
25235 _ACEOF
25236 cat confdefs.h >>conftest.$ac_ext
25237 cat >>conftest.$ac_ext <<_ACEOF
25238 /* end confdefs.h.  */
25239 $ac_includes_default
25240 typedef int * ac__type_new_;
25241 int
25242 main ()
25243 {
25244 if ((ac__type_new_ *) 0)
25245   return 0;
25246 if (sizeof (ac__type_new_))
25247   return 0;
25248   ;
25249   return 0;
25250 }
25251 _ACEOF
25252 rm -f conftest.$ac_objext
25253 if { (ac_try="$ac_compile"
25254 case "(($ac_try" in
25255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256   *) ac_try_echo=$ac_try;;
25257 esac
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259   (eval "$ac_compile") 2>conftest.er1
25260   ac_status=$?
25261   grep -v '^ *+' conftest.er1 >conftest.err
25262   rm -f conftest.er1
25263   cat conftest.err >&5
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); } && {
25266          test -z "$ac_c_werror_flag" ||
25267          test ! -s conftest.err
25268        } && test -s conftest.$ac_objext; then
25269   ac_cv_type_int_p=yes
25270 else
25271   echo "$as_me: failed program was:" >&5
25272 sed 's/^/| /' conftest.$ac_ext >&5
25273
25274         ac_cv_type_int_p=no
25275 fi
25276
25277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25278 fi
25279 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25280 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25281
25282 # The cast to long int works around a bug in the HP C Compiler
25283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25285 # This bug is HP SR number 8606223364.
25286 { echo "$as_me:$LINENO: checking size of int *" >&5
25287 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25288 if test "${ac_cv_sizeof_int_p+set}" = set; then
25289   echo $ECHO_N "(cached) $ECHO_C" >&6
25290 else
25291   if test "$cross_compiling" = yes; then
25292   # Depending upon the size, compute the lo and hi bounds.
25293 cat >conftest.$ac_ext <<_ACEOF
25294 /* confdefs.h.  */
25295 _ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h.  */
25299 $ac_includes_default
25300    typedef int * ac__type_sizeof_;
25301 int
25302 main ()
25303 {
25304 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25305 test_array [0] = 0
25306
25307   ;
25308   return 0;
25309 }
25310 _ACEOF
25311 rm -f conftest.$ac_objext
25312 if { (ac_try="$ac_compile"
25313 case "(($ac_try" in
25314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25315   *) ac_try_echo=$ac_try;;
25316 esac
25317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25318   (eval "$ac_compile") 2>conftest.er1
25319   ac_status=$?
25320   grep -v '^ *+' conftest.er1 >conftest.err
25321   rm -f conftest.er1
25322   cat conftest.err >&5
25323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); } && {
25325          test -z "$ac_c_werror_flag" ||
25326          test ! -s conftest.err
25327        } && test -s conftest.$ac_objext; then
25328   ac_lo=0 ac_mid=0
25329   while :; do
25330     cat >conftest.$ac_ext <<_ACEOF
25331 /* confdefs.h.  */
25332 _ACEOF
25333 cat confdefs.h >>conftest.$ac_ext
25334 cat >>conftest.$ac_ext <<_ACEOF
25335 /* end confdefs.h.  */
25336 $ac_includes_default
25337    typedef int * ac__type_sizeof_;
25338 int
25339 main ()
25340 {
25341 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25342 test_array [0] = 0
25343
25344   ;
25345   return 0;
25346 }
25347 _ACEOF
25348 rm -f conftest.$ac_objext
25349 if { (ac_try="$ac_compile"
25350 case "(($ac_try" in
25351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25352   *) ac_try_echo=$ac_try;;
25353 esac
25354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25355   (eval "$ac_compile") 2>conftest.er1
25356   ac_status=$?
25357   grep -v '^ *+' conftest.er1 >conftest.err
25358   rm -f conftest.er1
25359   cat conftest.err >&5
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); } && {
25362          test -z "$ac_c_werror_flag" ||
25363          test ! -s conftest.err
25364        } && test -s conftest.$ac_objext; then
25365   ac_hi=$ac_mid; break
25366 else
25367   echo "$as_me: failed program was:" >&5
25368 sed 's/^/| /' conftest.$ac_ext >&5
25369
25370         ac_lo=`expr $ac_mid + 1`
25371                         if test $ac_lo -le $ac_mid; then
25372                           ac_lo= ac_hi=
25373                           break
25374                         fi
25375                         ac_mid=`expr 2 '*' $ac_mid + 1`
25376 fi
25377
25378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25379   done
25380 else
25381   echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25383
25384         cat >conftest.$ac_ext <<_ACEOF
25385 /* confdefs.h.  */
25386 _ACEOF
25387 cat confdefs.h >>conftest.$ac_ext
25388 cat >>conftest.$ac_ext <<_ACEOF
25389 /* end confdefs.h.  */
25390 $ac_includes_default
25391    typedef int * ac__type_sizeof_;
25392 int
25393 main ()
25394 {
25395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25396 test_array [0] = 0
25397
25398   ;
25399   return 0;
25400 }
25401 _ACEOF
25402 rm -f conftest.$ac_objext
25403 if { (ac_try="$ac_compile"
25404 case "(($ac_try" in
25405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25406   *) ac_try_echo=$ac_try;;
25407 esac
25408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25409   (eval "$ac_compile") 2>conftest.er1
25410   ac_status=$?
25411   grep -v '^ *+' conftest.er1 >conftest.err
25412   rm -f conftest.er1
25413   cat conftest.err >&5
25414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); } && {
25416          test -z "$ac_c_werror_flag" ||
25417          test ! -s conftest.err
25418        } && test -s conftest.$ac_objext; then
25419   ac_hi=-1 ac_mid=-1
25420   while :; do
25421     cat >conftest.$ac_ext <<_ACEOF
25422 /* confdefs.h.  */
25423 _ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h.  */
25427 $ac_includes_default
25428    typedef int * ac__type_sizeof_;
25429 int
25430 main ()
25431 {
25432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25433 test_array [0] = 0
25434
25435   ;
25436   return 0;
25437 }
25438 _ACEOF
25439 rm -f conftest.$ac_objext
25440 if { (ac_try="$ac_compile"
25441 case "(($ac_try" in
25442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25443   *) ac_try_echo=$ac_try;;
25444 esac
25445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25446   (eval "$ac_compile") 2>conftest.er1
25447   ac_status=$?
25448   grep -v '^ *+' conftest.er1 >conftest.err
25449   rm -f conftest.er1
25450   cat conftest.err >&5
25451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25452   (exit $ac_status); } && {
25453          test -z "$ac_c_werror_flag" ||
25454          test ! -s conftest.err
25455        } && test -s conftest.$ac_objext; then
25456   ac_lo=$ac_mid; break
25457 else
25458   echo "$as_me: failed program was:" >&5
25459 sed 's/^/| /' conftest.$ac_ext >&5
25460
25461         ac_hi=`expr '(' $ac_mid ')' - 1`
25462                         if test $ac_mid -le $ac_hi; then
25463                           ac_lo= ac_hi=
25464                           break
25465                         fi
25466                         ac_mid=`expr 2 '*' $ac_mid`
25467 fi
25468
25469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25470   done
25471 else
25472   echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.$ac_ext >&5
25474
25475         ac_lo= ac_hi=
25476 fi
25477
25478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25479 fi
25480
25481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 # Binary search between lo and hi bounds.
25483 while test "x$ac_lo" != "x$ac_hi"; do
25484   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25485   cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h.  */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h.  */
25491 $ac_includes_default
25492    typedef int * ac__type_sizeof_;
25493 int
25494 main ()
25495 {
25496 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25497 test_array [0] = 0
25498
25499   ;
25500   return 0;
25501 }
25502 _ACEOF
25503 rm -f conftest.$ac_objext
25504 if { (ac_try="$ac_compile"
25505 case "(($ac_try" in
25506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25507   *) ac_try_echo=$ac_try;;
25508 esac
25509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25510   (eval "$ac_compile") 2>conftest.er1
25511   ac_status=$?
25512   grep -v '^ *+' conftest.er1 >conftest.err
25513   rm -f conftest.er1
25514   cat conftest.err >&5
25515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516   (exit $ac_status); } && {
25517          test -z "$ac_c_werror_flag" ||
25518          test ! -s conftest.err
25519        } && test -s conftest.$ac_objext; then
25520   ac_hi=$ac_mid
25521 else
25522   echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25524
25525         ac_lo=`expr '(' $ac_mid ')' + 1`
25526 fi
25527
25528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25529 done
25530 case $ac_lo in
25531 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25532 '') if test "$ac_cv_type_int_p" = yes; then
25533      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25534 See \`config.log' for more details." >&5
25535 echo "$as_me: error: cannot compute sizeof (int *)
25536 See \`config.log' for more details." >&2;}
25537    { (exit 77); exit 77; }; }
25538    else
25539      ac_cv_sizeof_int_p=0
25540    fi ;;
25541 esac
25542 else
25543   cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549 $ac_includes_default
25550    typedef int * ac__type_sizeof_;
25551 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25552 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25553 #include <stdio.h>
25554 #include <stdlib.h>
25555 int
25556 main ()
25557 {
25558
25559   FILE *f = fopen ("conftest.val", "w");
25560   if (! f)
25561     return 1;
25562   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25563     {
25564       long int i = longval ();
25565       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25566         return 1;
25567       fprintf (f, "%ld\n", i);
25568     }
25569   else
25570     {
25571       unsigned long int i = ulongval ();
25572       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25573         return 1;
25574       fprintf (f, "%lu\n", i);
25575     }
25576   return ferror (f) || fclose (f) != 0;
25577
25578   ;
25579   return 0;
25580 }
25581 _ACEOF
25582 rm -f conftest$ac_exeext
25583 if { (ac_try="$ac_link"
25584 case "(($ac_try" in
25585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25586   *) ac_try_echo=$ac_try;;
25587 esac
25588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25589   (eval "$ac_link") 2>&5
25590   ac_status=$?
25591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25592   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25593   { (case "(($ac_try" in
25594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595   *) ac_try_echo=$ac_try;;
25596 esac
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598   (eval "$ac_try") 2>&5
25599   ac_status=$?
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); }; }; then
25602   ac_cv_sizeof_int_p=`cat conftest.val`
25603 else
25604   echo "$as_me: program exited with status $ac_status" >&5
25605 echo "$as_me: failed program was:" >&5
25606 sed 's/^/| /' conftest.$ac_ext >&5
25607
25608 ( exit $ac_status )
25609 if test "$ac_cv_type_int_p" = yes; then
25610      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25611 See \`config.log' for more details." >&5
25612 echo "$as_me: error: cannot compute sizeof (int *)
25613 See \`config.log' for more details." >&2;}
25614    { (exit 77); exit 77; }; }
25615    else
25616      ac_cv_sizeof_int_p=0
25617    fi
25618 fi
25619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25620 fi
25621 rm -f conftest.val
25622 fi
25623 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25624 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25625
25626
25627
25628 cat >>confdefs.h <<_ACEOF
25629 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25630 _ACEOF
25631
25632
25633
25634 # Check for sys/types.h types
25635 { echo "$as_me:$LINENO: checking for u_int type" >&5
25636 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25637 if test "${ac_cv_have_u_int+set}" = set; then
25638   echo $ECHO_N "(cached) $ECHO_C" >&6
25639 else
25640
25641     cat >conftest.$ac_ext <<_ACEOF
25642 /* confdefs.h.  */
25643 _ACEOF
25644 cat confdefs.h >>conftest.$ac_ext
25645 cat >>conftest.$ac_ext <<_ACEOF
25646 /* end confdefs.h.  */
25647  #include <sys/types.h>
25648 int
25649 main ()
25650 {
25651  u_int a; a = 1;
25652   ;
25653   return 0;
25654 }
25655 _ACEOF
25656 rm -f conftest.$ac_objext
25657 if { (ac_try="$ac_compile"
25658 case "(($ac_try" in
25659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25660   *) ac_try_echo=$ac_try;;
25661 esac
25662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25663   (eval "$ac_compile") 2>conftest.er1
25664   ac_status=$?
25665   grep -v '^ *+' conftest.er1 >conftest.err
25666   rm -f conftest.er1
25667   cat conftest.err >&5
25668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669   (exit $ac_status); } && {
25670          test -z "$ac_c_werror_flag" ||
25671          test ! -s conftest.err
25672        } && test -s conftest.$ac_objext; then
25673    ac_cv_have_u_int="yes"
25674 else
25675   echo "$as_me: failed program was:" >&5
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678          ac_cv_have_u_int="no"
25679
25680 fi
25681
25682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25683
25684 fi
25685 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25686 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25687 if test "x$ac_cv_have_u_int" = "xyes" ; then
25688    cat >>confdefs.h <<\_ACEOF
25689 #define HAVE_U_INT 1
25690 _ACEOF
25691
25692    have_u_int=1
25693 fi
25694
25695 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25696 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25697 if test "${ac_cv_have_intmax_t+set}" = set; then
25698   echo $ECHO_N "(cached) $ECHO_C" >&6
25699 else
25700
25701    cat >conftest.$ac_ext <<_ACEOF
25702 /* confdefs.h.  */
25703 _ACEOF
25704 cat confdefs.h >>conftest.$ac_ext
25705 cat >>conftest.$ac_ext <<_ACEOF
25706 /* end confdefs.h.  */
25707  #include <sys/types.h>
25708 int
25709 main ()
25710 {
25711  intmax_t a; a = 1;
25712   ;
25713   return 0;
25714 }
25715 _ACEOF
25716 rm -f conftest.$ac_objext
25717 if { (ac_try="$ac_compile"
25718 case "(($ac_try" in
25719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720   *) ac_try_echo=$ac_try;;
25721 esac
25722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25723   (eval "$ac_compile") 2>conftest.er1
25724   ac_status=$?
25725   grep -v '^ *+' conftest.er1 >conftest.err
25726   rm -f conftest.er1
25727   cat conftest.err >&5
25728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729   (exit $ac_status); } && {
25730          test -z "$ac_c_werror_flag" ||
25731          test ! -s conftest.err
25732        } && test -s conftest.$ac_objext; then
25733    ac_cv_have_intmax_t="yes"
25734 else
25735   echo "$as_me: failed program was:" >&5
25736 sed 's/^/| /' conftest.$ac_ext >&5
25737
25738
25739          cat >conftest.$ac_ext <<_ACEOF
25740 /* confdefs.h.  */
25741 _ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h.  */
25745  #include <stdint.h>
25746 int
25747 main ()
25748 {
25749  intmax_t a; a = 1;
25750   ;
25751   return 0;
25752 }
25753 _ACEOF
25754 rm -f conftest.$ac_objext
25755 if { (ac_try="$ac_compile"
25756 case "(($ac_try" in
25757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25758   *) ac_try_echo=$ac_try;;
25759 esac
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761   (eval "$ac_compile") 2>conftest.er1
25762   ac_status=$?
25763   grep -v '^ *+' conftest.er1 >conftest.err
25764   rm -f conftest.er1
25765   cat conftest.err >&5
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); } && {
25768          test -z "$ac_c_werror_flag" ||
25769          test ! -s conftest.err
25770        } && test -s conftest.$ac_objext; then
25771    ac_cv_have_intmax_t="yes"
25772 else
25773   echo "$as_me: failed program was:" >&5
25774 sed 's/^/| /' conftest.$ac_ext >&5
25775
25776          ac_cv_have_intmax_t="no"
25777
25778 fi
25779
25780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25781
25782
25783 fi
25784
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25786
25787
25788 fi
25789 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25790 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25791 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25792    cat >>confdefs.h <<\_ACEOF
25793 #define HAVE_INTMAX_T 1
25794 _ACEOF
25795
25796    have_intmax_t=1
25797 fi
25798
25799
25800 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25801 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25802 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25803   echo $ECHO_N "(cached) $ECHO_C" >&6
25804 else
25805
25806    cat >conftest.$ac_ext <<_ACEOF
25807 /* confdefs.h.  */
25808 _ACEOF
25809 cat confdefs.h >>conftest.$ac_ext
25810 cat >>conftest.$ac_ext <<_ACEOF
25811 /* end confdefs.h.  */
25812  #include <sys/types.h>
25813 int
25814 main ()
25815 {
25816  u_intmax_t a; a = 1;
25817   ;
25818   return 0;
25819 }
25820 _ACEOF
25821 rm -f conftest.$ac_objext
25822 if { (ac_try="$ac_compile"
25823 case "(($ac_try" in
25824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825   *) ac_try_echo=$ac_try;;
25826 esac
25827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25828   (eval "$ac_compile") 2>conftest.er1
25829   ac_status=$?
25830   grep -v '^ *+' conftest.er1 >conftest.err
25831   rm -f conftest.er1
25832   cat conftest.err >&5
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); } && {
25835          test -z "$ac_c_werror_flag" ||
25836          test ! -s conftest.err
25837        } && test -s conftest.$ac_objext; then
25838    ac_cv_have_u_intmax_t="yes"
25839 else
25840   echo "$as_me: failed program was:" >&5
25841 sed 's/^/| /' conftest.$ac_ext >&5
25842
25843
25844          cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850  #include <stdint.h>
25851 int
25852 main ()
25853 {
25854  u_intmax_t a; a = 1;
25855   ;
25856   return 0;
25857 }
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863   *) ac_try_echo=$ac_try;;
25864 esac
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866   (eval "$ac_compile") 2>conftest.er1
25867   ac_status=$?
25868   grep -v '^ *+' conftest.er1 >conftest.err
25869   rm -f conftest.er1
25870   cat conftest.err >&5
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } && {
25873          test -z "$ac_c_werror_flag" ||
25874          test ! -s conftest.err
25875        } && test -s conftest.$ac_objext; then
25876    ac_cv_have_u_intmax_t="yes"
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881          ac_cv_have_u_intmax_t="no"
25882
25883 fi
25884
25885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25886
25887
25888 fi
25889
25890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25891
25892 fi
25893 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25894 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25895 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25896    cat >>confdefs.h <<\_ACEOF
25897 #define HAVE_U_INTMAX_T 1
25898 _ACEOF
25899
25900    have_u_intmax_t=1
25901 fi
25902
25903
25904 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25905 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25906 if test "${ac_cv_have_intxx_t+set}" = set; then
25907   echo $ECHO_N "(cached) $ECHO_C" >&6
25908 else
25909
25910    cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916  #include <sys/types.h>
25917 int
25918 main ()
25919 {
25920  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25921   ;
25922   return 0;
25923 }
25924 _ACEOF
25925 rm -f conftest.$ac_objext
25926 if { (ac_try="$ac_compile"
25927 case "(($ac_try" in
25928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25929   *) ac_try_echo=$ac_try;;
25930 esac
25931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25932   (eval "$ac_compile") 2>conftest.er1
25933   ac_status=$?
25934   grep -v '^ *+' conftest.er1 >conftest.err
25935   rm -f conftest.er1
25936   cat conftest.err >&5
25937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25938   (exit $ac_status); } && {
25939          test -z "$ac_c_werror_flag" ||
25940          test ! -s conftest.err
25941        } && test -s conftest.$ac_objext; then
25942    ac_cv_have_intxx_t="yes"
25943 else
25944   echo "$as_me: failed program was:" >&5
25945 sed 's/^/| /' conftest.$ac_ext >&5
25946
25947          ac_cv_have_intxx_t="no"
25948
25949 fi
25950
25951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25952
25953 fi
25954 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25955 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25956 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25957    cat >>confdefs.h <<\_ACEOF
25958 #define HAVE_INTXX_T 1
25959 _ACEOF
25960
25961    have_intxx_t=1
25962 fi
25963
25964 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25965 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25966 if test "${ac_cv_have_int64_t+set}" = set; then
25967   echo $ECHO_N "(cached) $ECHO_C" >&6
25968 else
25969
25970    cat >conftest.$ac_ext <<_ACEOF
25971 /* confdefs.h.  */
25972 _ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h.  */
25976  #include <sys/types.h>
25977 int
25978 main ()
25979 {
25980  int64_t a; a = 1;
25981   ;
25982   return 0;
25983 }
25984 _ACEOF
25985 rm -f conftest.$ac_objext
25986 if { (ac_try="$ac_compile"
25987 case "(($ac_try" in
25988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989   *) ac_try_echo=$ac_try;;
25990 esac
25991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25992   (eval "$ac_compile") 2>conftest.er1
25993   ac_status=$?
25994   grep -v '^ *+' conftest.er1 >conftest.err
25995   rm -f conftest.er1
25996   cat conftest.err >&5
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); } && {
25999          test -z "$ac_c_werror_flag" ||
26000          test ! -s conftest.err
26001        } && test -s conftest.$ac_objext; then
26002    ac_cv_have_int64_t="yes"
26003 else
26004   echo "$as_me: failed program was:" >&5
26005 sed 's/^/| /' conftest.$ac_ext >&5
26006
26007          ac_cv_have_int64_t="no"
26008
26009 fi
26010
26011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26012
26013 fi
26014 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26015 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26016 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26017    cat >>confdefs.h <<\_ACEOF
26018 #define HAVE_INT64_T 1
26019 _ACEOF
26020
26021    have_int64_t=1
26022 fi
26023
26024 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26025 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26026 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26027   echo $ECHO_N "(cached) $ECHO_C" >&6
26028 else
26029
26030    cat >conftest.$ac_ext <<_ACEOF
26031 /* confdefs.h.  */
26032 _ACEOF
26033 cat confdefs.h >>conftest.$ac_ext
26034 cat >>conftest.$ac_ext <<_ACEOF
26035 /* end confdefs.h.  */
26036  #include <sys/types.h>
26037 int
26038 main ()
26039 {
26040  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26041   ;
26042   return 0;
26043 }
26044 _ACEOF
26045 rm -f conftest.$ac_objext
26046 if { (ac_try="$ac_compile"
26047 case "(($ac_try" in
26048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26049   *) ac_try_echo=$ac_try;;
26050 esac
26051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26052   (eval "$ac_compile") 2>conftest.er1
26053   ac_status=$?
26054   grep -v '^ *+' conftest.er1 >conftest.err
26055   rm -f conftest.er1
26056   cat conftest.err >&5
26057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26058   (exit $ac_status); } && {
26059          test -z "$ac_c_werror_flag" ||
26060          test ! -s conftest.err
26061        } && test -s conftest.$ac_objext; then
26062    ac_cv_have_u_intxx_t="yes"
26063 else
26064   echo "$as_me: failed program was:" >&5
26065 sed 's/^/| /' conftest.$ac_ext >&5
26066
26067          ac_cv_have_u_intxx_t="no"
26068
26069 fi
26070
26071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26072
26073 fi
26074 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26075 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26076 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26077    cat >>confdefs.h <<\_ACEOF
26078 #define HAVE_U_INTXX_T 1
26079 _ACEOF
26080
26081    have_u_intxx_t=1
26082 fi
26083
26084 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26085 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26086 if test "${ac_cv_have_u_int64_t+set}" = set; then
26087   echo $ECHO_N "(cached) $ECHO_C" >&6
26088 else
26089
26090    cat >conftest.$ac_ext <<_ACEOF
26091 /* confdefs.h.  */
26092 _ACEOF
26093 cat confdefs.h >>conftest.$ac_ext
26094 cat >>conftest.$ac_ext <<_ACEOF
26095 /* end confdefs.h.  */
26096  #include <sys/types.h>
26097 int
26098 main ()
26099 {
26100  u_int64_t a; a = 1;
26101   ;
26102   return 0;
26103 }
26104 _ACEOF
26105 rm -f conftest.$ac_objext
26106 if { (ac_try="$ac_compile"
26107 case "(($ac_try" in
26108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26109   *) ac_try_echo=$ac_try;;
26110 esac
26111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26112   (eval "$ac_compile") 2>conftest.er1
26113   ac_status=$?
26114   grep -v '^ *+' conftest.er1 >conftest.err
26115   rm -f conftest.er1
26116   cat conftest.err >&5
26117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26118   (exit $ac_status); } && {
26119          test -z "$ac_c_werror_flag" ||
26120          test ! -s conftest.err
26121        } && test -s conftest.$ac_objext; then
26122    ac_cv_have_u_int64_t="yes"
26123 else
26124   echo "$as_me: failed program was:" >&5
26125 sed 's/^/| /' conftest.$ac_ext >&5
26126
26127          ac_cv_have_u_int64_t="no"
26128
26129 fi
26130
26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26132
26133 fi
26134 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26135 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26136 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26137    cat >>confdefs.h <<\_ACEOF
26138 #define HAVE_U_INT64_T 1
26139 _ACEOF
26140
26141    have_u_int64_t=1
26142 fi
26143
26144 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26145            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26146 then
26147    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26148 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26149    cat >conftest.$ac_ext <<_ACEOF
26150 /* confdefs.h.  */
26151 _ACEOF
26152 cat confdefs.h >>conftest.$ac_ext
26153 cat >>conftest.$ac_ext <<_ACEOF
26154 /* end confdefs.h.  */
26155  #include <sys/bitypes.h>
26156 int
26157 main ()
26158 {
26159  int8_t a; int16_t b; int32_t c;
26160         u_int8_t e; u_int16_t f; u_int32_t g;
26161         a = b = c = e = f = g = 1;
26162   ;
26163   return 0;
26164 }
26165 _ACEOF
26166 rm -f conftest.$ac_objext
26167 if { (ac_try="$ac_compile"
26168 case "(($ac_try" in
26169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26170   *) ac_try_echo=$ac_try;;
26171 esac
26172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26173   (eval "$ac_compile") 2>conftest.er1
26174   ac_status=$?
26175   grep -v '^ *+' conftest.er1 >conftest.err
26176   rm -f conftest.er1
26177   cat conftest.err >&5
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); } && {
26180          test -z "$ac_c_werror_flag" ||
26181          test ! -s conftest.err
26182        } && test -s conftest.$ac_objext; then
26183    cat >>confdefs.h <<\_ACEOF
26184 #define HAVE_U_INTXX_T 1
26185 _ACEOF
26186
26187         cat >>confdefs.h <<\_ACEOF
26188 #define HAVE_INTXX_T 1
26189 _ACEOF
26190
26191         cat >>confdefs.h <<\_ACEOF
26192 #define HAVE_SYS_BITYPES_H 1
26193 _ACEOF
26194
26195         { echo "$as_me:$LINENO: result: yes" >&5
26196 echo "${ECHO_T}yes" >&6; }
26197 else
26198   echo "$as_me: failed program was:" >&5
26199 sed 's/^/| /' conftest.$ac_ext >&5
26200
26201          { echo "$as_me:$LINENO: result: no" >&5
26202 echo "${ECHO_T}no" >&6; }
26203
26204 fi
26205
26206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26207 fi
26208
26209 if test -z "$have_u_intxx_t" ; then
26210    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26211 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26212 if test "${ac_cv_have_uintxx_t+set}" = set; then
26213   echo $ECHO_N "(cached) $ECHO_C" >&6
26214 else
26215
26216       cat >conftest.$ac_ext <<_ACEOF
26217 /* confdefs.h.  */
26218 _ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h.  */
26222  #include <sys/types.h>
26223 int
26224 main ()
26225 {
26226  uint8_t a; uint16_t b;
26227            uint32_t c; a = b = c = 1;
26228   ;
26229   return 0;
26230 }
26231 _ACEOF
26232 rm -f conftest.$ac_objext
26233 if { (ac_try="$ac_compile"
26234 case "(($ac_try" in
26235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26236   *) ac_try_echo=$ac_try;;
26237 esac
26238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26239   (eval "$ac_compile") 2>conftest.er1
26240   ac_status=$?
26241   grep -v '^ *+' conftest.er1 >conftest.err
26242   rm -f conftest.er1
26243   cat conftest.err >&5
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); } && {
26246          test -z "$ac_c_werror_flag" ||
26247          test ! -s conftest.err
26248        } && test -s conftest.$ac_objext; then
26249    ac_cv_have_uintxx_t="yes"
26250 else
26251   echo "$as_me: failed program was:" >&5
26252 sed 's/^/| /' conftest.$ac_ext >&5
26253
26254          ac_cv_have_uintxx_t="no"
26255
26256 fi
26257
26258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259
26260 fi
26261 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26262 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26263    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26264       cat >>confdefs.h <<\_ACEOF
26265 #define HAVE_UINTXX_T 1
26266 _ACEOF
26267
26268    fi
26269 fi
26270
26271 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26272           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26273 then
26274    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26275 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26276    cat >conftest.$ac_ext <<_ACEOF
26277 /* confdefs.h.  */
26278 _ACEOF
26279 cat confdefs.h >>conftest.$ac_ext
26280 cat >>conftest.$ac_ext <<_ACEOF
26281 /* end confdefs.h.  */
26282  #include <sys/bitypes.h>
26283 int
26284 main ()
26285 {
26286  int64_t a; u_int64_t b;
26287        a = b = 1;
26288   ;
26289   return 0;
26290 }
26291 _ACEOF
26292 rm -f conftest.$ac_objext
26293 if { (ac_try="$ac_compile"
26294 case "(($ac_try" in
26295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296   *) ac_try_echo=$ac_try;;
26297 esac
26298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26299   (eval "$ac_compile") 2>conftest.er1
26300   ac_status=$?
26301   grep -v '^ *+' conftest.er1 >conftest.err
26302   rm -f conftest.er1
26303   cat conftest.err >&5
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); } && {
26306          test -z "$ac_c_werror_flag" ||
26307          test ! -s conftest.err
26308        } && test -s conftest.$ac_objext; then
26309    cat >>confdefs.h <<\_ACEOF
26310 #define HAVE_U_INT64_T 1
26311 _ACEOF
26312
26313        cat >>confdefs.h <<\_ACEOF
26314 #define HAVE_INT64_T 1
26315 _ACEOF
26316
26317        { echo "$as_me:$LINENO: result: yes" >&5
26318 echo "${ECHO_T}yes" >&6; }
26319 else
26320   echo "$as_me: failed program was:" >&5
26321 sed 's/^/| /' conftest.$ac_ext >&5
26322
26323          { echo "$as_me:$LINENO: result: no" >&5
26324 echo "${ECHO_T}no" >&6; }
26325
26326 fi
26327
26328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26329 fi
26330
26331 if (test -z "$have_uintxx_t" && \
26332           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26333 then
26334    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26335 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26336    cat >conftest.$ac_ext <<_ACEOF
26337 /* confdefs.h.  */
26338 _ACEOF
26339 cat confdefs.h >>conftest.$ac_ext
26340 cat >>conftest.$ac_ext <<_ACEOF
26341 /* end confdefs.h.  */
26342  #include <sys/bitypes.h>
26343 int
26344 main ()
26345 {
26346  uint8_t a; uint16_t b;
26347           uint32_t c; a = b = c = 1;
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 rm -f conftest.$ac_objext
26353 if { (ac_try="$ac_compile"
26354 case "(($ac_try" in
26355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356   *) ac_try_echo=$ac_try;;
26357 esac
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359   (eval "$ac_compile") 2>conftest.er1
26360   ac_status=$?
26361   grep -v '^ *+' conftest.er1 >conftest.err
26362   rm -f conftest.er1
26363   cat conftest.err >&5
26364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365   (exit $ac_status); } && {
26366          test -z "$ac_c_werror_flag" ||
26367          test ! -s conftest.err
26368        } && test -s conftest.$ac_objext; then
26369    cat >>confdefs.h <<\_ACEOF
26370 #define HAVE_UINTXX_T 1
26371 _ACEOF
26372
26373        { echo "$as_me:$LINENO: result: yes" >&5
26374 echo "${ECHO_T}yes" >&6; }
26375 else
26376   echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26378
26379          { echo "$as_me:$LINENO: result: no" >&5
26380 echo "${ECHO_T}no" >&6; }
26381
26382 fi
26383
26384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26385
26386 fi
26387
26388
26389
26390
26391
26392
26393
26394
26395
26396
26397
26398
26399
26400
26401
26402
26403
26404 for ac_func in \
26405         fork \
26406         getcwd \
26407         gethostname \
26408         getpid \
26409         gettimeofday \
26410         setpgid \
26411         setpgrp \
26412         setsid \
26413         signal \
26414         strerror \
26415         strncmp \
26416         strncpy \
26417         vfprintf \
26418
26419 do
26420 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26421 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26423 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26424   echo $ECHO_N "(cached) $ECHO_C" >&6
26425 else
26426   cat >conftest.$ac_ext <<_ACEOF
26427 /* confdefs.h.  */
26428 _ACEOF
26429 cat confdefs.h >>conftest.$ac_ext
26430 cat >>conftest.$ac_ext <<_ACEOF
26431 /* end confdefs.h.  */
26432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26434 #define $ac_func innocuous_$ac_func
26435
26436 /* System header to define __stub macros and hopefully few prototypes,
26437     which can conflict with char $ac_func (); below.
26438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26439     <limits.h> exists even on freestanding compilers.  */
26440
26441 #ifdef __STDC__
26442 # include <limits.h>
26443 #else
26444 # include <assert.h>
26445 #endif
26446
26447 #undef $ac_func
26448
26449 /* Override any GCC internal prototype to avoid an error.
26450    Use char because int might match the return type of a GCC
26451    builtin and then its argument prototype would still apply.  */
26452 #ifdef __cplusplus
26453 extern "C"
26454 #endif
26455 char $ac_func ();
26456 /* The GNU C library defines this for functions which it implements
26457     to always fail with ENOSYS.  Some functions are actually named
26458     something starting with __ and the normal name is an alias.  */
26459 #if defined __stub_$ac_func || defined __stub___$ac_func
26460 choke me
26461 #endif
26462
26463 int
26464 main ()
26465 {
26466 return $ac_func ();
26467   ;
26468   return 0;
26469 }
26470 _ACEOF
26471 rm -f conftest.$ac_objext conftest$ac_exeext
26472 if { (ac_try="$ac_link"
26473 case "(($ac_try" in
26474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26475   *) ac_try_echo=$ac_try;;
26476 esac
26477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26478   (eval "$ac_link") 2>conftest.er1
26479   ac_status=$?
26480   grep -v '^ *+' conftest.er1 >conftest.err
26481   rm -f conftest.er1
26482   cat conftest.err >&5
26483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484   (exit $ac_status); } && {
26485          test -z "$ac_c_werror_flag" ||
26486          test ! -s conftest.err
26487        } && test -s conftest$ac_exeext &&
26488        $as_test_x conftest$ac_exeext; then
26489   eval "$as_ac_var=yes"
26490 else
26491   echo "$as_me: failed program was:" >&5
26492 sed 's/^/| /' conftest.$ac_ext >&5
26493
26494         eval "$as_ac_var=no"
26495 fi
26496
26497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26498       conftest$ac_exeext conftest.$ac_ext
26499 fi
26500 ac_res=`eval echo '${'$as_ac_var'}'`
26501                { echo "$as_me:$LINENO: result: $ac_res" >&5
26502 echo "${ECHO_T}$ac_res" >&6; }
26503 if test `eval echo '${'$as_ac_var'}'` = yes; then
26504   cat >>confdefs.h <<_ACEOF
26505 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26506 _ACEOF
26507
26508 else
26509   echo 'configure: cannot find needed function.'; exit 1
26510
26511 fi
26512 done
26513
26514
26515
26516 for ac_func in fchdir
26517 do
26518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26522   echo $ECHO_N "(cached) $ECHO_C" >&6
26523 else
26524   cat >conftest.$ac_ext <<_ACEOF
26525 /* confdefs.h.  */
26526 _ACEOF
26527 cat confdefs.h >>conftest.$ac_ext
26528 cat >>conftest.$ac_ext <<_ACEOF
26529 /* end confdefs.h.  */
26530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26532 #define $ac_func innocuous_$ac_func
26533
26534 /* System header to define __stub macros and hopefully few prototypes,
26535     which can conflict with char $ac_func (); below.
26536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26537     <limits.h> exists even on freestanding compilers.  */
26538
26539 #ifdef __STDC__
26540 # include <limits.h>
26541 #else
26542 # include <assert.h>
26543 #endif
26544
26545 #undef $ac_func
26546
26547 /* Override any GCC internal prototype to avoid an error.
26548    Use char because int might match the return type of a GCC
26549    builtin and then its argument prototype would still apply.  */
26550 #ifdef __cplusplus
26551 extern "C"
26552 #endif
26553 char $ac_func ();
26554 /* The GNU C library defines this for functions which it implements
26555     to always fail with ENOSYS.  Some functions are actually named
26556     something starting with __ and the normal name is an alias.  */
26557 #if defined __stub_$ac_func || defined __stub___$ac_func
26558 choke me
26559 #endif
26560
26561 int
26562 main ()
26563 {
26564 return $ac_func ();
26565   ;
26566   return 0;
26567 }
26568 _ACEOF
26569 rm -f conftest.$ac_objext conftest$ac_exeext
26570 if { (ac_try="$ac_link"
26571 case "(($ac_try" in
26572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573   *) ac_try_echo=$ac_try;;
26574 esac
26575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26576   (eval "$ac_link") 2>conftest.er1
26577   ac_status=$?
26578   grep -v '^ *+' conftest.er1 >conftest.err
26579   rm -f conftest.er1
26580   cat conftest.err >&5
26581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582   (exit $ac_status); } && {
26583          test -z "$ac_c_werror_flag" ||
26584          test ! -s conftest.err
26585        } && test -s conftest$ac_exeext &&
26586        $as_test_x conftest$ac_exeext; then
26587   eval "$as_ac_var=yes"
26588 else
26589   echo "$as_me: failed program was:" >&5
26590 sed 's/^/| /' conftest.$ac_ext >&5
26591
26592         eval "$as_ac_var=no"
26593 fi
26594
26595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26596       conftest$ac_exeext conftest.$ac_ext
26597 fi
26598 ac_res=`eval echo '${'$as_ac_var'}'`
26599                { echo "$as_me:$LINENO: result: $ac_res" >&5
26600 echo "${ECHO_T}$ac_res" >&6; }
26601 if test `eval echo '${'$as_ac_var'}'` = yes; then
26602   cat >>confdefs.h <<_ACEOF
26603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26604 _ACEOF
26605  cat >>confdefs.h <<\_ACEOF
26606 #define HAVE_FCHDIR 1
26607 _ACEOF
26608
26609 fi
26610 done
26611
26612
26613 for ac_func in strtoll
26614 do
26615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26619   echo $ECHO_N "(cached) $ECHO_C" >&6
26620 else
26621   cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h.  */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h.  */
26627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26629 #define $ac_func innocuous_$ac_func
26630
26631 /* System header to define __stub macros and hopefully few prototypes,
26632     which can conflict with char $ac_func (); below.
26633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26634     <limits.h> exists even on freestanding compilers.  */
26635
26636 #ifdef __STDC__
26637 # include <limits.h>
26638 #else
26639 # include <assert.h>
26640 #endif
26641
26642 #undef $ac_func
26643
26644 /* Override any GCC internal prototype to avoid an error.
26645    Use char because int might match the return type of a GCC
26646    builtin and then its argument prototype would still apply.  */
26647 #ifdef __cplusplus
26648 extern "C"
26649 #endif
26650 char $ac_func ();
26651 /* The GNU C library defines this for functions which it implements
26652     to always fail with ENOSYS.  Some functions are actually named
26653     something starting with __ and the normal name is an alias.  */
26654 #if defined __stub_$ac_func || defined __stub___$ac_func
26655 choke me
26656 #endif
26657
26658 int
26659 main ()
26660 {
26661 return $ac_func ();
26662   ;
26663   return 0;
26664 }
26665 _ACEOF
26666 rm -f conftest.$ac_objext conftest$ac_exeext
26667 if { (ac_try="$ac_link"
26668 case "(($ac_try" in
26669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26670   *) ac_try_echo=$ac_try;;
26671 esac
26672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26673   (eval "$ac_link") 2>conftest.er1
26674   ac_status=$?
26675   grep -v '^ *+' conftest.er1 >conftest.err
26676   rm -f conftest.er1
26677   cat conftest.err >&5
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); } && {
26680          test -z "$ac_c_werror_flag" ||
26681          test ! -s conftest.err
26682        } && test -s conftest$ac_exeext &&
26683        $as_test_x conftest$ac_exeext; then
26684   eval "$as_ac_var=yes"
26685 else
26686   echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26688
26689         eval "$as_ac_var=no"
26690 fi
26691
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693       conftest$ac_exeext conftest.$ac_ext
26694 fi
26695 ac_res=`eval echo '${'$as_ac_var'}'`
26696                { echo "$as_me:$LINENO: result: $ac_res" >&5
26697 echo "${ECHO_T}$ac_res" >&6; }
26698 if test `eval echo '${'$as_ac_var'}'` = yes; then
26699   cat >>confdefs.h <<_ACEOF
26700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26701 _ACEOF
26702  cat >>confdefs.h <<\_ACEOF
26703 #define HAVE_STRTOLL 1
26704 _ACEOF
26705
26706 fi
26707 done
26708
26709
26710 for ac_func in posix_fadvise
26711 do
26712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26716   echo $ECHO_N "(cached) $ECHO_C" >&6
26717 else
26718   cat >conftest.$ac_ext <<_ACEOF
26719 /* confdefs.h.  */
26720 _ACEOF
26721 cat confdefs.h >>conftest.$ac_ext
26722 cat >>conftest.$ac_ext <<_ACEOF
26723 /* end confdefs.h.  */
26724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26726 #define $ac_func innocuous_$ac_func
26727
26728 /* System header to define __stub macros and hopefully few prototypes,
26729     which can conflict with char $ac_func (); below.
26730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26731     <limits.h> exists even on freestanding compilers.  */
26732
26733 #ifdef __STDC__
26734 # include <limits.h>
26735 #else
26736 # include <assert.h>
26737 #endif
26738
26739 #undef $ac_func
26740
26741 /* Override any GCC internal prototype to avoid an error.
26742    Use char because int might match the return type of a GCC
26743    builtin and then its argument prototype would still apply.  */
26744 #ifdef __cplusplus
26745 extern "C"
26746 #endif
26747 char $ac_func ();
26748 /* The GNU C library defines this for functions which it implements
26749     to always fail with ENOSYS.  Some functions are actually named
26750     something starting with __ and the normal name is an alias.  */
26751 #if defined __stub_$ac_func || defined __stub___$ac_func
26752 choke me
26753 #endif
26754
26755 int
26756 main ()
26757 {
26758 return $ac_func ();
26759   ;
26760   return 0;
26761 }
26762 _ACEOF
26763 rm -f conftest.$ac_objext conftest$ac_exeext
26764 if { (ac_try="$ac_link"
26765 case "(($ac_try" in
26766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26767   *) ac_try_echo=$ac_try;;
26768 esac
26769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26770   (eval "$ac_link") 2>conftest.er1
26771   ac_status=$?
26772   grep -v '^ *+' conftest.er1 >conftest.err
26773   rm -f conftest.er1
26774   cat conftest.err >&5
26775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26776   (exit $ac_status); } && {
26777          test -z "$ac_c_werror_flag" ||
26778          test ! -s conftest.err
26779        } && test -s conftest$ac_exeext &&
26780        $as_test_x conftest$ac_exeext; then
26781   eval "$as_ac_var=yes"
26782 else
26783   echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786         eval "$as_ac_var=no"
26787 fi
26788
26789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26790       conftest$ac_exeext conftest.$ac_ext
26791 fi
26792 ac_res=`eval echo '${'$as_ac_var'}'`
26793                { echo "$as_me:$LINENO: result: $ac_res" >&5
26794 echo "${ECHO_T}$ac_res" >&6; }
26795 if test `eval echo '${'$as_ac_var'}'` = yes; then
26796   cat >>confdefs.h <<_ACEOF
26797 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26798 _ACEOF
26799
26800 fi
26801 done
26802
26803
26804 for ac_func in fdatasync
26805 do
26806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26810   echo $ECHO_N "(cached) $ECHO_C" >&6
26811 else
26812   cat >conftest.$ac_ext <<_ACEOF
26813 /* confdefs.h.  */
26814 _ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h.  */
26818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26820 #define $ac_func innocuous_$ac_func
26821
26822 /* System header to define __stub macros and hopefully few prototypes,
26823     which can conflict with char $ac_func (); below.
26824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26825     <limits.h> exists even on freestanding compilers.  */
26826
26827 #ifdef __STDC__
26828 # include <limits.h>
26829 #else
26830 # include <assert.h>
26831 #endif
26832
26833 #undef $ac_func
26834
26835 /* Override any GCC internal prototype to avoid an error.
26836    Use char because int might match the return type of a GCC
26837    builtin and then its argument prototype would still apply.  */
26838 #ifdef __cplusplus
26839 extern "C"
26840 #endif
26841 char $ac_func ();
26842 /* The GNU C library defines this for functions which it implements
26843     to always fail with ENOSYS.  Some functions are actually named
26844     something starting with __ and the normal name is an alias.  */
26845 #if defined __stub_$ac_func || defined __stub___$ac_func
26846 choke me
26847 #endif
26848
26849 int
26850 main ()
26851 {
26852 return $ac_func ();
26853   ;
26854   return 0;
26855 }
26856 _ACEOF
26857 rm -f conftest.$ac_objext conftest$ac_exeext
26858 if { (ac_try="$ac_link"
26859 case "(($ac_try" in
26860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26861   *) ac_try_echo=$ac_try;;
26862 esac
26863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26864   (eval "$ac_link") 2>conftest.er1
26865   ac_status=$?
26866   grep -v '^ *+' conftest.er1 >conftest.err
26867   rm -f conftest.er1
26868   cat conftest.err >&5
26869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26870   (exit $ac_status); } && {
26871          test -z "$ac_c_werror_flag" ||
26872          test ! -s conftest.err
26873        } && test -s conftest$ac_exeext &&
26874        $as_test_x conftest$ac_exeext; then
26875   eval "$as_ac_var=yes"
26876 else
26877   echo "$as_me: failed program was:" >&5
26878 sed 's/^/| /' conftest.$ac_ext >&5
26879
26880         eval "$as_ac_var=no"
26881 fi
26882
26883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26884       conftest$ac_exeext conftest.$ac_ext
26885 fi
26886 ac_res=`eval echo '${'$as_ac_var'}'`
26887                { echo "$as_me:$LINENO: result: $ac_res" >&5
26888 echo "${ECHO_T}$ac_res" >&6; }
26889 if test `eval echo '${'$as_ac_var'}'` = yes; then
26890   cat >>confdefs.h <<_ACEOF
26891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26892 _ACEOF
26893
26894 fi
26895 done
26896
26897
26898
26899 for ac_func in chflags
26900 do
26901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26902 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26905   echo $ECHO_N "(cached) $ECHO_C" >&6
26906 else
26907   cat >conftest.$ac_ext <<_ACEOF
26908 /* confdefs.h.  */
26909 _ACEOF
26910 cat confdefs.h >>conftest.$ac_ext
26911 cat >>conftest.$ac_ext <<_ACEOF
26912 /* end confdefs.h.  */
26913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26915 #define $ac_func innocuous_$ac_func
26916
26917 /* System header to define __stub macros and hopefully few prototypes,
26918     which can conflict with char $ac_func (); below.
26919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26920     <limits.h> exists even on freestanding compilers.  */
26921
26922 #ifdef __STDC__
26923 # include <limits.h>
26924 #else
26925 # include <assert.h>
26926 #endif
26927
26928 #undef $ac_func
26929
26930 /* Override any GCC internal prototype to avoid an error.
26931    Use char because int might match the return type of a GCC
26932    builtin and then its argument prototype would still apply.  */
26933 #ifdef __cplusplus
26934 extern "C"
26935 #endif
26936 char $ac_func ();
26937 /* The GNU C library defines this for functions which it implements
26938     to always fail with ENOSYS.  Some functions are actually named
26939     something starting with __ and the normal name is an alias.  */
26940 #if defined __stub_$ac_func || defined __stub___$ac_func
26941 choke me
26942 #endif
26943
26944 int
26945 main ()
26946 {
26947 return $ac_func ();
26948   ;
26949   return 0;
26950 }
26951 _ACEOF
26952 rm -f conftest.$ac_objext conftest$ac_exeext
26953 if { (ac_try="$ac_link"
26954 case "(($ac_try" in
26955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26956   *) ac_try_echo=$ac_try;;
26957 esac
26958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26959   (eval "$ac_link") 2>conftest.er1
26960   ac_status=$?
26961   grep -v '^ *+' conftest.er1 >conftest.err
26962   rm -f conftest.er1
26963   cat conftest.err >&5
26964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26965   (exit $ac_status); } && {
26966          test -z "$ac_c_werror_flag" ||
26967          test ! -s conftest.err
26968        } && test -s conftest$ac_exeext &&
26969        $as_test_x conftest$ac_exeext; then
26970   eval "$as_ac_var=yes"
26971 else
26972   echo "$as_me: failed program was:" >&5
26973 sed 's/^/| /' conftest.$ac_ext >&5
26974
26975         eval "$as_ac_var=no"
26976 fi
26977
26978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26979       conftest$ac_exeext conftest.$ac_ext
26980 fi
26981 ac_res=`eval echo '${'$as_ac_var'}'`
26982                { echo "$as_me:$LINENO: result: $ac_res" >&5
26983 echo "${ECHO_T}$ac_res" >&6; }
26984 if test `eval echo '${'$as_ac_var'}'` = yes; then
26985   cat >>confdefs.h <<_ACEOF
26986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26987 _ACEOF
26988
26989 fi
26990 done
26991
26992
26993
26994
26995
26996
26997 for ac_func in snprintf vsnprintf gethostid fseeko
26998 do
26999 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27002 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27003   echo $ECHO_N "(cached) $ECHO_C" >&6
27004 else
27005   cat >conftest.$ac_ext <<_ACEOF
27006 /* confdefs.h.  */
27007 _ACEOF
27008 cat confdefs.h >>conftest.$ac_ext
27009 cat >>conftest.$ac_ext <<_ACEOF
27010 /* end confdefs.h.  */
27011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27012    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27013 #define $ac_func innocuous_$ac_func
27014
27015 /* System header to define __stub macros and hopefully few prototypes,
27016     which can conflict with char $ac_func (); below.
27017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27018     <limits.h> exists even on freestanding compilers.  */
27019
27020 #ifdef __STDC__
27021 # include <limits.h>
27022 #else
27023 # include <assert.h>
27024 #endif
27025
27026 #undef $ac_func
27027
27028 /* Override any GCC internal prototype to avoid an error.
27029    Use char because int might match the return type of a GCC
27030    builtin and then its argument prototype would still apply.  */
27031 #ifdef __cplusplus
27032 extern "C"
27033 #endif
27034 char $ac_func ();
27035 /* The GNU C library defines this for functions which it implements
27036     to always fail with ENOSYS.  Some functions are actually named
27037     something starting with __ and the normal name is an alias.  */
27038 #if defined __stub_$ac_func || defined __stub___$ac_func
27039 choke me
27040 #endif
27041
27042 int
27043 main ()
27044 {
27045 return $ac_func ();
27046   ;
27047   return 0;
27048 }
27049 _ACEOF
27050 rm -f conftest.$ac_objext conftest$ac_exeext
27051 if { (ac_try="$ac_link"
27052 case "(($ac_try" in
27053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27054   *) ac_try_echo=$ac_try;;
27055 esac
27056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27057   (eval "$ac_link") 2>conftest.er1
27058   ac_status=$?
27059   grep -v '^ *+' conftest.er1 >conftest.err
27060   rm -f conftest.er1
27061   cat conftest.err >&5
27062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063   (exit $ac_status); } && {
27064          test -z "$ac_c_werror_flag" ||
27065          test ! -s conftest.err
27066        } && test -s conftest$ac_exeext &&
27067        $as_test_x conftest$ac_exeext; then
27068   eval "$as_ac_var=yes"
27069 else
27070   echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27072
27073         eval "$as_ac_var=no"
27074 fi
27075
27076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27077       conftest$ac_exeext conftest.$ac_ext
27078 fi
27079 ac_res=`eval echo '${'$as_ac_var'}'`
27080                { echo "$as_me:$LINENO: result: $ac_res" >&5
27081 echo "${ECHO_T}$ac_res" >&6; }
27082 if test `eval echo '${'$as_ac_var'}'` = yes; then
27083   cat >>confdefs.h <<_ACEOF
27084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27085 _ACEOF
27086
27087 fi
27088 done
27089
27090
27091 { echo "$as_me:$LINENO: checking for va_copy" >&5
27092 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27093 if test "${ba_cv_va_copy+set}" = set; then
27094   echo $ECHO_N "(cached) $ECHO_C" >&6
27095 else
27096   cat >conftest.$ac_ext <<_ACEOF
27097 /* confdefs.h.  */
27098 _ACEOF
27099 cat confdefs.h >>conftest.$ac_ext
27100 cat >>conftest.$ac_ext <<_ACEOF
27101 /* end confdefs.h.  */
27102
27103 #include <stdarg.h>
27104 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27105 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27106
27107 int
27108 main ()
27109 {
27110 call_use_va_copy(1,2,3)
27111   ;
27112   return 0;
27113 }
27114 _ACEOF
27115 rm -f conftest.$ac_objext conftest$ac_exeext
27116 if { (ac_try="$ac_link"
27117 case "(($ac_try" in
27118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27119   *) ac_try_echo=$ac_try;;
27120 esac
27121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27122   (eval "$ac_link") 2>conftest.er1
27123   ac_status=$?
27124   grep -v '^ *+' conftest.er1 >conftest.err
27125   rm -f conftest.er1
27126   cat conftest.err >&5
27127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128   (exit $ac_status); } && {
27129          test -z "$ac_c_werror_flag" ||
27130          test ! -s conftest.err
27131        } && test -s conftest$ac_exeext &&
27132        $as_test_x conftest$ac_exeext; then
27133   ba_cv_va_copy=yes
27134 else
27135   echo "$as_me: failed program was:" >&5
27136 sed 's/^/| /' conftest.$ac_ext >&5
27137
27138         ba_cv_va_copy=no
27139 fi
27140
27141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27142       conftest$ac_exeext conftest.$ac_ext
27143 fi
27144 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27145 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27146 test $ba_cv_va_copy = yes &&
27147 cat >>confdefs.h <<\_ACEOF
27148 #define HAVE_VA_COPY 1
27149 _ACEOF
27150
27151
27152
27153
27154
27155
27156
27157 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27158 do
27159 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27160 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27161 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27162 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27163   echo $ECHO_N "(cached) $ECHO_C" >&6
27164 else
27165   cat >conftest.$ac_ext <<_ACEOF
27166 /* confdefs.h.  */
27167 _ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h.  */
27171 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27172    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27173 #define $ac_func innocuous_$ac_func
27174
27175 /* System header to define __stub macros and hopefully few prototypes,
27176     which can conflict with char $ac_func (); below.
27177     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27178     <limits.h> exists even on freestanding compilers.  */
27179
27180 #ifdef __STDC__
27181 # include <limits.h>
27182 #else
27183 # include <assert.h>
27184 #endif
27185
27186 #undef $ac_func
27187
27188 /* Override any GCC internal prototype to avoid an error.
27189    Use char because int might match the return type of a GCC
27190    builtin and then its argument prototype would still apply.  */
27191 #ifdef __cplusplus
27192 extern "C"
27193 #endif
27194 char $ac_func ();
27195 /* The GNU C library defines this for functions which it implements
27196     to always fail with ENOSYS.  Some functions are actually named
27197     something starting with __ and the normal name is an alias.  */
27198 #if defined __stub_$ac_func || defined __stub___$ac_func
27199 choke me
27200 #endif
27201
27202 int
27203 main ()
27204 {
27205 return $ac_func ();
27206   ;
27207   return 0;
27208 }
27209 _ACEOF
27210 rm -f conftest.$ac_objext conftest$ac_exeext
27211 if { (ac_try="$ac_link"
27212 case "(($ac_try" in
27213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214   *) ac_try_echo=$ac_try;;
27215 esac
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217   (eval "$ac_link") 2>conftest.er1
27218   ac_status=$?
27219   grep -v '^ *+' conftest.er1 >conftest.err
27220   rm -f conftest.er1
27221   cat conftest.err >&5
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); } && {
27224          test -z "$ac_c_werror_flag" ||
27225          test ! -s conftest.err
27226        } && test -s conftest$ac_exeext &&
27227        $as_test_x conftest$ac_exeext; then
27228   eval "$as_ac_var=yes"
27229 else
27230   echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27232
27233         eval "$as_ac_var=no"
27234 fi
27235
27236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27237       conftest$ac_exeext conftest.$ac_ext
27238 fi
27239 ac_res=`eval echo '${'$as_ac_var'}'`
27240                { echo "$as_me:$LINENO: result: $ac_res" >&5
27241 echo "${ECHO_T}$ac_res" >&6; }
27242 if test `eval echo '${'$as_ac_var'}'` = yes; then
27243   cat >>confdefs.h <<_ACEOF
27244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27245 _ACEOF
27246
27247 fi
27248 done
27249
27250
27251 # If resolver functions are not in libc check for -lnsl or -lresolv.
27252 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27253 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27254 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27255   echo $ECHO_N "(cached) $ECHO_C" >&6
27256 else
27257   cat >conftest.$ac_ext <<_ACEOF
27258 /* confdefs.h.  */
27259 _ACEOF
27260 cat confdefs.h >>conftest.$ac_ext
27261 cat >>conftest.$ac_ext <<_ACEOF
27262 /* end confdefs.h.  */
27263 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27264    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27265 #define gethostbyname_r innocuous_gethostbyname_r
27266
27267 /* System header to define __stub macros and hopefully few prototypes,
27268     which can conflict with char gethostbyname_r (); below.
27269     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27270     <limits.h> exists even on freestanding compilers.  */
27271
27272 #ifdef __STDC__
27273 # include <limits.h>
27274 #else
27275 # include <assert.h>
27276 #endif
27277
27278 #undef gethostbyname_r
27279
27280 /* Override any GCC internal prototype to avoid an error.
27281    Use char because int might match the return type of a GCC
27282    builtin and then its argument prototype would still apply.  */
27283 #ifdef __cplusplus
27284 extern "C"
27285 #endif
27286 char gethostbyname_r ();
27287 /* The GNU C library defines this for functions which it implements
27288     to always fail with ENOSYS.  Some functions are actually named
27289     something starting with __ and the normal name is an alias.  */
27290 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27291 choke me
27292 #endif
27293
27294 int
27295 main ()
27296 {
27297 return gethostbyname_r ();
27298   ;
27299   return 0;
27300 }
27301 _ACEOF
27302 rm -f conftest.$ac_objext conftest$ac_exeext
27303 if { (ac_try="$ac_link"
27304 case "(($ac_try" in
27305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27306   *) ac_try_echo=$ac_try;;
27307 esac
27308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27309   (eval "$ac_link") 2>conftest.er1
27310   ac_status=$?
27311   grep -v '^ *+' conftest.er1 >conftest.err
27312   rm -f conftest.er1
27313   cat conftest.err >&5
27314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315   (exit $ac_status); } && {
27316          test -z "$ac_c_werror_flag" ||
27317          test ! -s conftest.err
27318        } && test -s conftest$ac_exeext &&
27319        $as_test_x conftest$ac_exeext; then
27320   ac_cv_func_gethostbyname_r=yes
27321 else
27322   echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27324
27325         ac_cv_func_gethostbyname_r=no
27326 fi
27327
27328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27329       conftest$ac_exeext conftest.$ac_ext
27330 fi
27331 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27332 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27333 if test $ac_cv_func_gethostbyname_r = yes; then
27334   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27335 echo "${ECHO_T}using libc's resolver" >&6; }
27336 else
27337
27338 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27339 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27340 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27341   echo $ECHO_N "(cached) $ECHO_C" >&6
27342 else
27343   ac_check_lib_save_LIBS=$LIBS
27344 LIBS="-lnsl  $LIBS"
27345 cat >conftest.$ac_ext <<_ACEOF
27346 /* confdefs.h.  */
27347 _ACEOF
27348 cat confdefs.h >>conftest.$ac_ext
27349 cat >>conftest.$ac_ext <<_ACEOF
27350 /* end confdefs.h.  */
27351
27352 /* Override any GCC internal prototype to avoid an error.
27353    Use char because int might match the return type of a GCC
27354    builtin and then its argument prototype would still apply.  */
27355 #ifdef __cplusplus
27356 extern "C"
27357 #endif
27358 char gethostbyname_r ();
27359 int
27360 main ()
27361 {
27362 return gethostbyname_r ();
27363   ;
27364   return 0;
27365 }
27366 _ACEOF
27367 rm -f conftest.$ac_objext conftest$ac_exeext
27368 if { (ac_try="$ac_link"
27369 case "(($ac_try" in
27370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371   *) ac_try_echo=$ac_try;;
27372 esac
27373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27374   (eval "$ac_link") 2>conftest.er1
27375   ac_status=$?
27376   grep -v '^ *+' conftest.er1 >conftest.err
27377   rm -f conftest.er1
27378   cat conftest.err >&5
27379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27380   (exit $ac_status); } && {
27381          test -z "$ac_c_werror_flag" ||
27382          test ! -s conftest.err
27383        } && test -s conftest$ac_exeext &&
27384        $as_test_x conftest$ac_exeext; then
27385   ac_cv_lib_nsl_gethostbyname_r=yes
27386 else
27387   echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27389
27390         ac_cv_lib_nsl_gethostbyname_r=no
27391 fi
27392
27393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27394       conftest$ac_exeext conftest.$ac_ext
27395 LIBS=$ac_check_lib_save_LIBS
27396 fi
27397 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27398 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27399 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27400   cat >>confdefs.h <<_ACEOF
27401 #define HAVE_LIBNSL 1
27402 _ACEOF
27403
27404   LIBS="-lnsl $LIBS"
27405
27406 fi
27407
27408
27409 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27410 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27411 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27412   echo $ECHO_N "(cached) $ECHO_C" >&6
27413 else
27414   ac_check_lib_save_LIBS=$LIBS
27415 LIBS="-lresolv  $LIBS"
27416 cat >conftest.$ac_ext <<_ACEOF
27417 /* confdefs.h.  */
27418 _ACEOF
27419 cat confdefs.h >>conftest.$ac_ext
27420 cat >>conftest.$ac_ext <<_ACEOF
27421 /* end confdefs.h.  */
27422
27423 /* Override any GCC internal prototype to avoid an error.
27424    Use char because int might match the return type of a GCC
27425    builtin and then its argument prototype would still apply.  */
27426 #ifdef __cplusplus
27427 extern "C"
27428 #endif
27429 char gethostbyname_r ();
27430 int
27431 main ()
27432 {
27433 return gethostbyname_r ();
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442   *) ac_try_echo=$ac_try;;
27443 esac
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445   (eval "$ac_link") 2>conftest.er1
27446   ac_status=$?
27447   grep -v '^ *+' conftest.er1 >conftest.err
27448   rm -f conftest.er1
27449   cat conftest.err >&5
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); } && {
27452          test -z "$ac_c_werror_flag" ||
27453          test ! -s conftest.err
27454        } && test -s conftest$ac_exeext &&
27455        $as_test_x conftest$ac_exeext; then
27456   ac_cv_lib_resolv_gethostbyname_r=yes
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461         ac_cv_lib_resolv_gethostbyname_r=no
27462 fi
27463
27464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465       conftest$ac_exeext conftest.$ac_ext
27466 LIBS=$ac_check_lib_save_LIBS
27467 fi
27468 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27469 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27470 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27471   cat >>confdefs.h <<_ACEOF
27472 #define HAVE_LIBRESOLV 1
27473 _ACEOF
27474
27475   LIBS="-lresolv $LIBS"
27476
27477 fi
27478
27479 fi
27480
27481
27482
27483
27484
27485 for ac_func in inet_pton
27486 do
27487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27491   echo $ECHO_N "(cached) $ECHO_C" >&6
27492 else
27493   cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h.  */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h.  */
27499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27501 #define $ac_func innocuous_$ac_func
27502
27503 /* System header to define __stub macros and hopefully few prototypes,
27504     which can conflict with char $ac_func (); below.
27505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27506     <limits.h> exists even on freestanding compilers.  */
27507
27508 #ifdef __STDC__
27509 # include <limits.h>
27510 #else
27511 # include <assert.h>
27512 #endif
27513
27514 #undef $ac_func
27515
27516 /* Override any GCC internal prototype to avoid an error.
27517    Use char because int might match the return type of a GCC
27518    builtin and then its argument prototype would still apply.  */
27519 #ifdef __cplusplus
27520 extern "C"
27521 #endif
27522 char $ac_func ();
27523 /* The GNU C library defines this for functions which it implements
27524     to always fail with ENOSYS.  Some functions are actually named
27525     something starting with __ and the normal name is an alias.  */
27526 #if defined __stub_$ac_func || defined __stub___$ac_func
27527 choke me
27528 #endif
27529
27530 int
27531 main ()
27532 {
27533 return $ac_func ();
27534   ;
27535   return 0;
27536 }
27537 _ACEOF
27538 rm -f conftest.$ac_objext conftest$ac_exeext
27539 if { (ac_try="$ac_link"
27540 case "(($ac_try" in
27541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542   *) ac_try_echo=$ac_try;;
27543 esac
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545   (eval "$ac_link") 2>conftest.er1
27546   ac_status=$?
27547   grep -v '^ *+' conftest.er1 >conftest.err
27548   rm -f conftest.er1
27549   cat conftest.err >&5
27550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); } && {
27552          test -z "$ac_c_werror_flag" ||
27553          test ! -s conftest.err
27554        } && test -s conftest$ac_exeext &&
27555        $as_test_x conftest$ac_exeext; then
27556   eval "$as_ac_var=yes"
27557 else
27558   echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27560
27561         eval "$as_ac_var=no"
27562 fi
27563
27564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27565       conftest$ac_exeext conftest.$ac_ext
27566 fi
27567 ac_res=`eval echo '${'$as_ac_var'}'`
27568                { echo "$as_me:$LINENO: result: $ac_res" >&5
27569 echo "${ECHO_T}$ac_res" >&6; }
27570 if test `eval echo '${'$as_ac_var'}'` = yes; then
27571   cat >>confdefs.h <<_ACEOF
27572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27573 _ACEOF
27574  cat >>confdefs.h <<\_ACEOF
27575 #define HAVE_INET_PTON 1
27576 _ACEOF
27577
27578 fi
27579 done
27580
27581
27582 for ac_func in inet_ntop
27583 do
27584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27588   echo $ECHO_N "(cached) $ECHO_C" >&6
27589 else
27590   cat >conftest.$ac_ext <<_ACEOF
27591 /* confdefs.h.  */
27592 _ACEOF
27593 cat confdefs.h >>conftest.$ac_ext
27594 cat >>conftest.$ac_ext <<_ACEOF
27595 /* end confdefs.h.  */
27596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27598 #define $ac_func innocuous_$ac_func
27599
27600 /* System header to define __stub macros and hopefully few prototypes,
27601     which can conflict with char $ac_func (); below.
27602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27603     <limits.h> exists even on freestanding compilers.  */
27604
27605 #ifdef __STDC__
27606 # include <limits.h>
27607 #else
27608 # include <assert.h>
27609 #endif
27610
27611 #undef $ac_func
27612
27613 /* Override any GCC internal prototype to avoid an error.
27614    Use char because int might match the return type of a GCC
27615    builtin and then its argument prototype would still apply.  */
27616 #ifdef __cplusplus
27617 extern "C"
27618 #endif
27619 char $ac_func ();
27620 /* The GNU C library defines this for functions which it implements
27621     to always fail with ENOSYS.  Some functions are actually named
27622     something starting with __ and the normal name is an alias.  */
27623 #if defined __stub_$ac_func || defined __stub___$ac_func
27624 choke me
27625 #endif
27626
27627 int
27628 main ()
27629 {
27630 return $ac_func ();
27631   ;
27632   return 0;
27633 }
27634 _ACEOF
27635 rm -f conftest.$ac_objext conftest$ac_exeext
27636 if { (ac_try="$ac_link"
27637 case "(($ac_try" in
27638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639   *) ac_try_echo=$ac_try;;
27640 esac
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642   (eval "$ac_link") 2>conftest.er1
27643   ac_status=$?
27644   grep -v '^ *+' conftest.er1 >conftest.err
27645   rm -f conftest.er1
27646   cat conftest.err >&5
27647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27648   (exit $ac_status); } && {
27649          test -z "$ac_c_werror_flag" ||
27650          test ! -s conftest.err
27651        } && test -s conftest$ac_exeext &&
27652        $as_test_x conftest$ac_exeext; then
27653   eval "$as_ac_var=yes"
27654 else
27655   echo "$as_me: failed program was:" >&5
27656 sed 's/^/| /' conftest.$ac_ext >&5
27657
27658         eval "$as_ac_var=no"
27659 fi
27660
27661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27662       conftest$ac_exeext conftest.$ac_ext
27663 fi
27664 ac_res=`eval echo '${'$as_ac_var'}'`
27665                { echo "$as_me:$LINENO: result: $ac_res" >&5
27666 echo "${ECHO_T}$ac_res" >&6; }
27667 if test `eval echo '${'$as_ac_var'}'` = yes; then
27668   cat >>confdefs.h <<_ACEOF
27669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27670 _ACEOF
27671  cat >>confdefs.h <<\_ACEOF
27672 #define HAVE_INET_NTOP 1
27673 _ACEOF
27674
27675 fi
27676 done
27677
27678
27679 for ac_func in gethostbyname2
27680 do
27681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27685   echo $ECHO_N "(cached) $ECHO_C" >&6
27686 else
27687   cat >conftest.$ac_ext <<_ACEOF
27688 /* confdefs.h.  */
27689 _ACEOF
27690 cat confdefs.h >>conftest.$ac_ext
27691 cat >>conftest.$ac_ext <<_ACEOF
27692 /* end confdefs.h.  */
27693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27695 #define $ac_func innocuous_$ac_func
27696
27697 /* System header to define __stub macros and hopefully few prototypes,
27698     which can conflict with char $ac_func (); below.
27699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27700     <limits.h> exists even on freestanding compilers.  */
27701
27702 #ifdef __STDC__
27703 # include <limits.h>
27704 #else
27705 # include <assert.h>
27706 #endif
27707
27708 #undef $ac_func
27709
27710 /* Override any GCC internal prototype to avoid an error.
27711    Use char because int might match the return type of a GCC
27712    builtin and then its argument prototype would still apply.  */
27713 #ifdef __cplusplus
27714 extern "C"
27715 #endif
27716 char $ac_func ();
27717 /* The GNU C library defines this for functions which it implements
27718     to always fail with ENOSYS.  Some functions are actually named
27719     something starting with __ and the normal name is an alias.  */
27720 #if defined __stub_$ac_func || defined __stub___$ac_func
27721 choke me
27722 #endif
27723
27724 int
27725 main ()
27726 {
27727 return $ac_func ();
27728   ;
27729   return 0;
27730 }
27731 _ACEOF
27732 rm -f conftest.$ac_objext conftest$ac_exeext
27733 if { (ac_try="$ac_link"
27734 case "(($ac_try" in
27735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27736   *) ac_try_echo=$ac_try;;
27737 esac
27738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27739   (eval "$ac_link") 2>conftest.er1
27740   ac_status=$?
27741   grep -v '^ *+' conftest.er1 >conftest.err
27742   rm -f conftest.er1
27743   cat conftest.err >&5
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); } && {
27746          test -z "$ac_c_werror_flag" ||
27747          test ! -s conftest.err
27748        } && test -s conftest$ac_exeext &&
27749        $as_test_x conftest$ac_exeext; then
27750   eval "$as_ac_var=yes"
27751 else
27752   echo "$as_me: failed program was:" >&5
27753 sed 's/^/| /' conftest.$ac_ext >&5
27754
27755         eval "$as_ac_var=no"
27756 fi
27757
27758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27759       conftest$ac_exeext conftest.$ac_ext
27760 fi
27761 ac_res=`eval echo '${'$as_ac_var'}'`
27762                { echo "$as_me:$LINENO: result: $ac_res" >&5
27763 echo "${ECHO_T}$ac_res" >&6; }
27764 if test `eval echo '${'$as_ac_var'}'` = yes; then
27765   cat >>confdefs.h <<_ACEOF
27766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27767 _ACEOF
27768  cat >>confdefs.h <<\_ACEOF
27769 #define HAVE_GETHOSTBYNAME2 1
27770 _ACEOF
27771
27772 fi
27773 done
27774
27775
27776 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27777 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27778 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27779   echo $ECHO_N "(cached) $ECHO_C" >&6
27780 else
27781   cat >conftest.$ac_ext <<_ACEOF
27782 /* confdefs.h.  */
27783 _ACEOF
27784 cat confdefs.h >>conftest.$ac_ext
27785 cat >>conftest.$ac_ext <<_ACEOF
27786 /* end confdefs.h.  */
27787 #include <sys/socket.h>
27788 int
27789 main ()
27790 {
27791 struct sockaddr s; s.sa_len;
27792   ;
27793   return 0;
27794 }
27795 _ACEOF
27796 rm -f conftest.$ac_objext
27797 if { (ac_try="$ac_compile"
27798 case "(($ac_try" in
27799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27800   *) ac_try_echo=$ac_try;;
27801 esac
27802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27803   (eval "$ac_compile") 2>conftest.er1
27804   ac_status=$?
27805   grep -v '^ *+' conftest.er1 >conftest.err
27806   rm -f conftest.er1
27807   cat conftest.err >&5
27808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27809   (exit $ac_status); } && {
27810          test -z "$ac_c_werror_flag" ||
27811          test ! -s conftest.err
27812        } && test -s conftest.$ac_objext; then
27813   ac_cv_struct_sockaddr_sa_len=yes
27814 else
27815   echo "$as_me: failed program was:" >&5
27816 sed 's/^/| /' conftest.$ac_ext >&5
27817
27818         ac_cv_struct_sockaddr_sa_len=no
27819 fi
27820
27821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27822 fi
27823 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27824 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27825
27826  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27827
27828 cat >>confdefs.h <<\_ACEOF
27829 #define HAVE_SA_LEN 1
27830 _ACEOF
27831
27832  fi
27833
27834
27835
27836
27837
27838 for ac_func in strftime
27839 do
27840 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27841 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27842 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27843 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27844   echo $ECHO_N "(cached) $ECHO_C" >&6
27845 else
27846   cat >conftest.$ac_ext <<_ACEOF
27847 /* confdefs.h.  */
27848 _ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h.  */
27852 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27853    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27854 #define $ac_func innocuous_$ac_func
27855
27856 /* System header to define __stub macros and hopefully few prototypes,
27857     which can conflict with char $ac_func (); below.
27858     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27859     <limits.h> exists even on freestanding compilers.  */
27860
27861 #ifdef __STDC__
27862 # include <limits.h>
27863 #else
27864 # include <assert.h>
27865 #endif
27866
27867 #undef $ac_func
27868
27869 /* Override any GCC internal prototype to avoid an error.
27870    Use char because int might match the return type of a GCC
27871    builtin and then its argument prototype would still apply.  */
27872 #ifdef __cplusplus
27873 extern "C"
27874 #endif
27875 char $ac_func ();
27876 /* The GNU C library defines this for functions which it implements
27877     to always fail with ENOSYS.  Some functions are actually named
27878     something starting with __ and the normal name is an alias.  */
27879 #if defined __stub_$ac_func || defined __stub___$ac_func
27880 choke me
27881 #endif
27882
27883 int
27884 main ()
27885 {
27886 return $ac_func ();
27887   ;
27888   return 0;
27889 }
27890 _ACEOF
27891 rm -f conftest.$ac_objext conftest$ac_exeext
27892 if { (ac_try="$ac_link"
27893 case "(($ac_try" in
27894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27895   *) ac_try_echo=$ac_try;;
27896 esac
27897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27898   (eval "$ac_link") 2>conftest.er1
27899   ac_status=$?
27900   grep -v '^ *+' conftest.er1 >conftest.err
27901   rm -f conftest.er1
27902   cat conftest.err >&5
27903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904   (exit $ac_status); } && {
27905          test -z "$ac_c_werror_flag" ||
27906          test ! -s conftest.err
27907        } && test -s conftest$ac_exeext &&
27908        $as_test_x conftest$ac_exeext; then
27909   eval "$as_ac_var=yes"
27910 else
27911   echo "$as_me: failed program was:" >&5
27912 sed 's/^/| /' conftest.$ac_ext >&5
27913
27914         eval "$as_ac_var=no"
27915 fi
27916
27917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27918       conftest$ac_exeext conftest.$ac_ext
27919 fi
27920 ac_res=`eval echo '${'$as_ac_var'}'`
27921                { echo "$as_me:$LINENO: result: $ac_res" >&5
27922 echo "${ECHO_T}$ac_res" >&6; }
27923 if test `eval echo '${'$as_ac_var'}'` = yes; then
27924   cat >>confdefs.h <<_ACEOF
27925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27926 _ACEOF
27927
27928 else
27929   # strftime is in -lintl on SCO UNIX.
27930 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27931 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27932 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27933   echo $ECHO_N "(cached) $ECHO_C" >&6
27934 else
27935   ac_check_lib_save_LIBS=$LIBS
27936 LIBS="-lintl  $LIBS"
27937 cat >conftest.$ac_ext <<_ACEOF
27938 /* confdefs.h.  */
27939 _ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h.  */
27943
27944 /* Override any GCC internal prototype to avoid an error.
27945    Use char because int might match the return type of a GCC
27946    builtin and then its argument prototype would still apply.  */
27947 #ifdef __cplusplus
27948 extern "C"
27949 #endif
27950 char strftime ();
27951 int
27952 main ()
27953 {
27954 return strftime ();
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   ac_cv_lib_intl_strftime=yes
27978 else
27979   echo "$as_me: failed program was:" >&5
27980 sed 's/^/| /' conftest.$ac_ext >&5
27981
27982         ac_cv_lib_intl_strftime=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 LIBS=$ac_check_lib_save_LIBS
27988 fi
27989 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27990 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
27991 if test $ac_cv_lib_intl_strftime = yes; then
27992   cat >>confdefs.h <<\_ACEOF
27993 #define HAVE_STRFTIME 1
27994 _ACEOF
27995
27996 LIBS="-lintl $LIBS"
27997 fi
27998
27999 fi
28000 done
28001
28002
28003 for ac_func in vprintf
28004 do
28005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28009   echo $ECHO_N "(cached) $ECHO_C" >&6
28010 else
28011   cat >conftest.$ac_ext <<_ACEOF
28012 /* confdefs.h.  */
28013 _ACEOF
28014 cat confdefs.h >>conftest.$ac_ext
28015 cat >>conftest.$ac_ext <<_ACEOF
28016 /* end confdefs.h.  */
28017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28019 #define $ac_func innocuous_$ac_func
28020
28021 /* System header to define __stub macros and hopefully few prototypes,
28022     which can conflict with char $ac_func (); below.
28023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28024     <limits.h> exists even on freestanding compilers.  */
28025
28026 #ifdef __STDC__
28027 # include <limits.h>
28028 #else
28029 # include <assert.h>
28030 #endif
28031
28032 #undef $ac_func
28033
28034 /* Override any GCC internal prototype to avoid an error.
28035    Use char because int might match the return type of a GCC
28036    builtin and then its argument prototype would still apply.  */
28037 #ifdef __cplusplus
28038 extern "C"
28039 #endif
28040 char $ac_func ();
28041 /* The GNU C library defines this for functions which it implements
28042     to always fail with ENOSYS.  Some functions are actually named
28043     something starting with __ and the normal name is an alias.  */
28044 #if defined __stub_$ac_func || defined __stub___$ac_func
28045 choke me
28046 #endif
28047
28048 int
28049 main ()
28050 {
28051 return $ac_func ();
28052   ;
28053   return 0;
28054 }
28055 _ACEOF
28056 rm -f conftest.$ac_objext conftest$ac_exeext
28057 if { (ac_try="$ac_link"
28058 case "(($ac_try" in
28059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060   *) ac_try_echo=$ac_try;;
28061 esac
28062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063   (eval "$ac_link") 2>conftest.er1
28064   ac_status=$?
28065   grep -v '^ *+' conftest.er1 >conftest.err
28066   rm -f conftest.er1
28067   cat conftest.err >&5
28068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069   (exit $ac_status); } && {
28070          test -z "$ac_c_werror_flag" ||
28071          test ! -s conftest.err
28072        } && test -s conftest$ac_exeext &&
28073        $as_test_x conftest$ac_exeext; then
28074   eval "$as_ac_var=yes"
28075 else
28076   echo "$as_me: failed program was:" >&5
28077 sed 's/^/| /' conftest.$ac_ext >&5
28078
28079         eval "$as_ac_var=no"
28080 fi
28081
28082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28083       conftest$ac_exeext conftest.$ac_ext
28084 fi
28085 ac_res=`eval echo '${'$as_ac_var'}'`
28086                { echo "$as_me:$LINENO: result: $ac_res" >&5
28087 echo "${ECHO_T}$ac_res" >&6; }
28088 if test `eval echo '${'$as_ac_var'}'` = yes; then
28089   cat >>confdefs.h <<_ACEOF
28090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28091 _ACEOF
28092
28093 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28094 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28095 if test "${ac_cv_func__doprnt+set}" = set; then
28096   echo $ECHO_N "(cached) $ECHO_C" >&6
28097 else
28098   cat >conftest.$ac_ext <<_ACEOF
28099 /* confdefs.h.  */
28100 _ACEOF
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h.  */
28104 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28106 #define _doprnt innocuous__doprnt
28107
28108 /* System header to define __stub macros and hopefully few prototypes,
28109     which can conflict with char _doprnt (); below.
28110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28111     <limits.h> exists even on freestanding compilers.  */
28112
28113 #ifdef __STDC__
28114 # include <limits.h>
28115 #else
28116 # include <assert.h>
28117 #endif
28118
28119 #undef _doprnt
28120
28121 /* Override any GCC internal prototype to avoid an error.
28122    Use char because int might match the return type of a GCC
28123    builtin and then its argument prototype would still apply.  */
28124 #ifdef __cplusplus
28125 extern "C"
28126 #endif
28127 char _doprnt ();
28128 /* The GNU C library defines this for functions which it implements
28129     to always fail with ENOSYS.  Some functions are actually named
28130     something starting with __ and the normal name is an alias.  */
28131 #if defined __stub__doprnt || defined __stub____doprnt
28132 choke me
28133 #endif
28134
28135 int
28136 main ()
28137 {
28138 return _doprnt ();
28139   ;
28140   return 0;
28141 }
28142 _ACEOF
28143 rm -f conftest.$ac_objext conftest$ac_exeext
28144 if { (ac_try="$ac_link"
28145 case "(($ac_try" in
28146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28147   *) ac_try_echo=$ac_try;;
28148 esac
28149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28150   (eval "$ac_link") 2>conftest.er1
28151   ac_status=$?
28152   grep -v '^ *+' conftest.er1 >conftest.err
28153   rm -f conftest.er1
28154   cat conftest.err >&5
28155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28156   (exit $ac_status); } && {
28157          test -z "$ac_c_werror_flag" ||
28158          test ! -s conftest.err
28159        } && test -s conftest$ac_exeext &&
28160        $as_test_x conftest$ac_exeext; then
28161   ac_cv_func__doprnt=yes
28162 else
28163   echo "$as_me: failed program was:" >&5
28164 sed 's/^/| /' conftest.$ac_ext >&5
28165
28166         ac_cv_func__doprnt=no
28167 fi
28168
28169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28170       conftest$ac_exeext conftest.$ac_ext
28171 fi
28172 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28173 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28174 if test $ac_cv_func__doprnt = yes; then
28175
28176 cat >>confdefs.h <<\_ACEOF
28177 #define HAVE_DOPRNT 1
28178 _ACEOF
28179
28180 fi
28181
28182 fi
28183 done
28184
28185
28186 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28187 # for constant arguments.  Useless!
28188 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28189 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28190 if test "${ac_cv_working_alloca_h+set}" = set; then
28191   echo $ECHO_N "(cached) $ECHO_C" >&6
28192 else
28193   cat >conftest.$ac_ext <<_ACEOF
28194 /* confdefs.h.  */
28195 _ACEOF
28196 cat confdefs.h >>conftest.$ac_ext
28197 cat >>conftest.$ac_ext <<_ACEOF
28198 /* end confdefs.h.  */
28199 #include <alloca.h>
28200 int
28201 main ()
28202 {
28203 char *p = (char *) alloca (2 * sizeof (int));
28204                           if (p) return 0;
28205   ;
28206   return 0;
28207 }
28208 _ACEOF
28209 rm -f conftest.$ac_objext conftest$ac_exeext
28210 if { (ac_try="$ac_link"
28211 case "(($ac_try" in
28212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28213   *) ac_try_echo=$ac_try;;
28214 esac
28215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28216   (eval "$ac_link") 2>conftest.er1
28217   ac_status=$?
28218   grep -v '^ *+' conftest.er1 >conftest.err
28219   rm -f conftest.er1
28220   cat conftest.err >&5
28221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28222   (exit $ac_status); } && {
28223          test -z "$ac_c_werror_flag" ||
28224          test ! -s conftest.err
28225        } && test -s conftest$ac_exeext &&
28226        $as_test_x conftest$ac_exeext; then
28227   ac_cv_working_alloca_h=yes
28228 else
28229   echo "$as_me: failed program was:" >&5
28230 sed 's/^/| /' conftest.$ac_ext >&5
28231
28232         ac_cv_working_alloca_h=no
28233 fi
28234
28235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28236       conftest$ac_exeext conftest.$ac_ext
28237 fi
28238 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28239 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28240 if test $ac_cv_working_alloca_h = yes; then
28241
28242 cat >>confdefs.h <<\_ACEOF
28243 #define HAVE_ALLOCA_H 1
28244 _ACEOF
28245
28246 fi
28247
28248 { echo "$as_me:$LINENO: checking for alloca" >&5
28249 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28250 if test "${ac_cv_func_alloca_works+set}" = set; then
28251   echo $ECHO_N "(cached) $ECHO_C" >&6
28252 else
28253   cat >conftest.$ac_ext <<_ACEOF
28254 /* confdefs.h.  */
28255 _ACEOF
28256 cat confdefs.h >>conftest.$ac_ext
28257 cat >>conftest.$ac_ext <<_ACEOF
28258 /* end confdefs.h.  */
28259 #ifdef __GNUC__
28260 # define alloca __builtin_alloca
28261 #else
28262 # ifdef _MSC_VER
28263 #  include <malloc.h>
28264 #  define alloca _alloca
28265 # else
28266 #  ifdef HAVE_ALLOCA_H
28267 #   include <alloca.h>
28268 #  else
28269 #   ifdef _AIX
28270  #pragma alloca
28271 #   else
28272 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28273 char *alloca ();
28274 #    endif
28275 #   endif
28276 #  endif
28277 # endif
28278 #endif
28279
28280 int
28281 main ()
28282 {
28283 char *p = (char *) alloca (1);
28284                                     if (p) return 0;
28285   ;
28286   return 0;
28287 }
28288 _ACEOF
28289 rm -f conftest.$ac_objext conftest$ac_exeext
28290 if { (ac_try="$ac_link"
28291 case "(($ac_try" in
28292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28293   *) ac_try_echo=$ac_try;;
28294 esac
28295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28296   (eval "$ac_link") 2>conftest.er1
28297   ac_status=$?
28298   grep -v '^ *+' conftest.er1 >conftest.err
28299   rm -f conftest.er1
28300   cat conftest.err >&5
28301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302   (exit $ac_status); } && {
28303          test -z "$ac_c_werror_flag" ||
28304          test ! -s conftest.err
28305        } && test -s conftest$ac_exeext &&
28306        $as_test_x conftest$ac_exeext; then
28307   ac_cv_func_alloca_works=yes
28308 else
28309   echo "$as_me: failed program was:" >&5
28310 sed 's/^/| /' conftest.$ac_ext >&5
28311
28312         ac_cv_func_alloca_works=no
28313 fi
28314
28315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28316       conftest$ac_exeext conftest.$ac_ext
28317 fi
28318 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28319 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28320
28321 if test $ac_cv_func_alloca_works = yes; then
28322
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_ALLOCA 1
28325 _ACEOF
28326
28327 else
28328   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28329 # that cause trouble.  Some versions do not even contain alloca or
28330 # contain a buggy version.  If you still want to use their alloca,
28331 # use ar to extract alloca.o from them instead of compiling alloca.c.
28332
28333 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28334
28335 cat >>confdefs.h <<\_ACEOF
28336 #define C_ALLOCA 1
28337 _ACEOF
28338
28339
28340 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28341 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28342 if test "${ac_cv_os_cray+set}" = set; then
28343   echo $ECHO_N "(cached) $ECHO_C" >&6
28344 else
28345   cat >conftest.$ac_ext <<_ACEOF
28346 /* confdefs.h.  */
28347 _ACEOF
28348 cat confdefs.h >>conftest.$ac_ext
28349 cat >>conftest.$ac_ext <<_ACEOF
28350 /* end confdefs.h.  */
28351 #if defined CRAY && ! defined CRAY2
28352 webecray
28353 #else
28354 wenotbecray
28355 #endif
28356
28357 _ACEOF
28358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28359   $EGREP "webecray" >/dev/null 2>&1; then
28360   ac_cv_os_cray=yes
28361 else
28362   ac_cv_os_cray=no
28363 fi
28364 rm -f conftest*
28365
28366 fi
28367 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28368 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28369 if test $ac_cv_os_cray = yes; then
28370   for ac_func in _getb67 GETB67 getb67; do
28371     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28375   echo $ECHO_N "(cached) $ECHO_C" >&6
28376 else
28377   cat >conftest.$ac_ext <<_ACEOF
28378 /* confdefs.h.  */
28379 _ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h.  */
28383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28384    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28385 #define $ac_func innocuous_$ac_func
28386
28387 /* System header to define __stub macros and hopefully few prototypes,
28388     which can conflict with char $ac_func (); below.
28389     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28390     <limits.h> exists even on freestanding compilers.  */
28391
28392 #ifdef __STDC__
28393 # include <limits.h>
28394 #else
28395 # include <assert.h>
28396 #endif
28397
28398 #undef $ac_func
28399
28400 /* Override any GCC internal prototype to avoid an error.
28401    Use char because int might match the return type of a GCC
28402    builtin and then its argument prototype would still apply.  */
28403 #ifdef __cplusplus
28404 extern "C"
28405 #endif
28406 char $ac_func ();
28407 /* The GNU C library defines this for functions which it implements
28408     to always fail with ENOSYS.  Some functions are actually named
28409     something starting with __ and the normal name is an alias.  */
28410 #if defined __stub_$ac_func || defined __stub___$ac_func
28411 choke me
28412 #endif
28413
28414 int
28415 main ()
28416 {
28417 return $ac_func ();
28418   ;
28419   return 0;
28420 }
28421 _ACEOF
28422 rm -f conftest.$ac_objext conftest$ac_exeext
28423 if { (ac_try="$ac_link"
28424 case "(($ac_try" in
28425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426   *) ac_try_echo=$ac_try;;
28427 esac
28428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28429   (eval "$ac_link") 2>conftest.er1
28430   ac_status=$?
28431   grep -v '^ *+' conftest.er1 >conftest.err
28432   rm -f conftest.er1
28433   cat conftest.err >&5
28434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435   (exit $ac_status); } && {
28436          test -z "$ac_c_werror_flag" ||
28437          test ! -s conftest.err
28438        } && test -s conftest$ac_exeext &&
28439        $as_test_x conftest$ac_exeext; then
28440   eval "$as_ac_var=yes"
28441 else
28442   echo "$as_me: failed program was:" >&5
28443 sed 's/^/| /' conftest.$ac_ext >&5
28444
28445         eval "$as_ac_var=no"
28446 fi
28447
28448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28449       conftest$ac_exeext conftest.$ac_ext
28450 fi
28451 ac_res=`eval echo '${'$as_ac_var'}'`
28452                { echo "$as_me:$LINENO: result: $ac_res" >&5
28453 echo "${ECHO_T}$ac_res" >&6; }
28454 if test `eval echo '${'$as_ac_var'}'` = yes; then
28455
28456 cat >>confdefs.h <<_ACEOF
28457 #define CRAY_STACKSEG_END $ac_func
28458 _ACEOF
28459
28460     break
28461 fi
28462
28463   done
28464 fi
28465
28466 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28467 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28468 if test "${ac_cv_c_stack_direction+set}" = set; then
28469   echo $ECHO_N "(cached) $ECHO_C" >&6
28470 else
28471   if test "$cross_compiling" = yes; then
28472   ac_cv_c_stack_direction=0
28473 else
28474   cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480 $ac_includes_default
28481 int
28482 find_stack_direction ()
28483 {
28484   static char *addr = 0;
28485   auto char dummy;
28486   if (addr == 0)
28487     {
28488       addr = &dummy;
28489       return find_stack_direction ();
28490     }
28491   else
28492     return (&dummy > addr) ? 1 : -1;
28493 }
28494
28495 int
28496 main ()
28497 {
28498   return find_stack_direction () < 0;
28499 }
28500 _ACEOF
28501 rm -f conftest$ac_exeext
28502 if { (ac_try="$ac_link"
28503 case "(($ac_try" in
28504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28505   *) ac_try_echo=$ac_try;;
28506 esac
28507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28508   (eval "$ac_link") 2>&5
28509   ac_status=$?
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28512   { (case "(($ac_try" in
28513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514   *) ac_try_echo=$ac_try;;
28515 esac
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517   (eval "$ac_try") 2>&5
28518   ac_status=$?
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); }; }; then
28521   ac_cv_c_stack_direction=1
28522 else
28523   echo "$as_me: program exited with status $ac_status" >&5
28524 echo "$as_me: failed program was:" >&5
28525 sed 's/^/| /' conftest.$ac_ext >&5
28526
28527 ( exit $ac_status )
28528 ac_cv_c_stack_direction=-1
28529 fi
28530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28531 fi
28532
28533
28534 fi
28535 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28536 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28537
28538 cat >>confdefs.h <<_ACEOF
28539 #define STACK_DIRECTION $ac_cv_c_stack_direction
28540 _ACEOF
28541
28542
28543 fi
28544
28545 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28546 # -lseq on Dynix/PTX, -lgen on Unixware.
28547 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28548 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28549 if test "${ac_cv_search_getmntent+set}" = set; then
28550   echo $ECHO_N "(cached) $ECHO_C" >&6
28551 else
28552   ac_func_search_save_LIBS=$LIBS
28553 cat >conftest.$ac_ext <<_ACEOF
28554 /* confdefs.h.  */
28555 _ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h.  */
28559
28560 /* Override any GCC internal prototype to avoid an error.
28561    Use char because int might match the return type of a GCC
28562    builtin and then its argument prototype would still apply.  */
28563 #ifdef __cplusplus
28564 extern "C"
28565 #endif
28566 char getmntent ();
28567 int
28568 main ()
28569 {
28570 return getmntent ();
28571   ;
28572   return 0;
28573 }
28574 _ACEOF
28575 for ac_lib in '' sun seq gen; do
28576   if test -z "$ac_lib"; then
28577     ac_res="none required"
28578   else
28579     ac_res=-l$ac_lib
28580     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28581   fi
28582   rm -f conftest.$ac_objext conftest$ac_exeext
28583 if { (ac_try="$ac_link"
28584 case "(($ac_try" in
28585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28586   *) ac_try_echo=$ac_try;;
28587 esac
28588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28589   (eval "$ac_link") 2>conftest.er1
28590   ac_status=$?
28591   grep -v '^ *+' conftest.er1 >conftest.err
28592   rm -f conftest.er1
28593   cat conftest.err >&5
28594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595   (exit $ac_status); } && {
28596          test -z "$ac_c_werror_flag" ||
28597          test ! -s conftest.err
28598        } && test -s conftest$ac_exeext &&
28599        $as_test_x conftest$ac_exeext; then
28600   ac_cv_search_getmntent=$ac_res
28601 else
28602   echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28604
28605
28606 fi
28607
28608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28609       conftest$ac_exeext
28610   if test "${ac_cv_search_getmntent+set}" = set; then
28611   break
28612 fi
28613 done
28614 if test "${ac_cv_search_getmntent+set}" = set; then
28615   :
28616 else
28617   ac_cv_search_getmntent=no
28618 fi
28619 rm conftest.$ac_ext
28620 LIBS=$ac_func_search_save_LIBS
28621 fi
28622 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28623 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28624 ac_res=$ac_cv_search_getmntent
28625 if test "$ac_res" != no; then
28626   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28627   ac_cv_func_getmntent=yes
28628
28629 cat >>confdefs.h <<\_ACEOF
28630 #define HAVE_GETMNTENT 1
28631 _ACEOF
28632
28633 else
28634   ac_cv_func_getmntent=no
28635 fi
28636
28637
28638 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28639 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28640 if test "${ac_cv_func_closedir_void+set}" = set; then
28641   echo $ECHO_N "(cached) $ECHO_C" >&6
28642 else
28643   if test "$cross_compiling" = yes; then
28644   ac_cv_func_closedir_void=yes
28645 else
28646   cat >conftest.$ac_ext <<_ACEOF
28647 /* confdefs.h.  */
28648 _ACEOF
28649 cat confdefs.h >>conftest.$ac_ext
28650 cat >>conftest.$ac_ext <<_ACEOF
28651 /* end confdefs.h.  */
28652 $ac_includes_default
28653 #include <$ac_header_dirent>
28654 #ifndef __cplusplus
28655 int closedir ();
28656 #endif
28657
28658 int
28659 main ()
28660 {
28661 return closedir (opendir (".")) != 0;
28662   ;
28663   return 0;
28664 }
28665 _ACEOF
28666 rm -f conftest$ac_exeext
28667 if { (ac_try="$ac_link"
28668 case "(($ac_try" in
28669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28670   *) ac_try_echo=$ac_try;;
28671 esac
28672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28673   (eval "$ac_link") 2>&5
28674   ac_status=$?
28675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28677   { (case "(($ac_try" in
28678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28679   *) ac_try_echo=$ac_try;;
28680 esac
28681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28682   (eval "$ac_try") 2>&5
28683   ac_status=$?
28684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685   (exit $ac_status); }; }; then
28686   ac_cv_func_closedir_void=no
28687 else
28688   echo "$as_me: program exited with status $ac_status" >&5
28689 echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692 ( exit $ac_status )
28693 ac_cv_func_closedir_void=yes
28694 fi
28695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28696 fi
28697
28698
28699 fi
28700 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28701 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28702 if test $ac_cv_func_closedir_void = yes; then
28703
28704 cat >>confdefs.h <<\_ACEOF
28705 #define CLOSEDIR_VOID 1
28706 _ACEOF
28707
28708 fi
28709
28710 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28711 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28712 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28713   echo $ECHO_N "(cached) $ECHO_C" >&6
28714 else
28715   if test "$cross_compiling" = yes; then
28716   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28717 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28718    { (exit 1); exit 1; }; }
28719 else
28720   cat >conftest.$ac_ext <<_ACEOF
28721 /* confdefs.h.  */
28722 _ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h.  */
28726 $ac_includes_default
28727 int
28728 main ()
28729 {
28730 /* If this system has a BSD-style setpgrp which takes arguments,
28731   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28732   exit successfully. */
28733   return setpgrp (1,1) != -1;
28734   ;
28735   return 0;
28736 }
28737 _ACEOF
28738 rm -f conftest$ac_exeext
28739 if { (ac_try="$ac_link"
28740 case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745   (eval "$ac_link") 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28749   { (case "(($ac_try" in
28750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28751   *) ac_try_echo=$ac_try;;
28752 esac
28753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28754   (eval "$ac_try") 2>&5
28755   ac_status=$?
28756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28757   (exit $ac_status); }; }; then
28758   ac_cv_func_setpgrp_void=no
28759 else
28760   echo "$as_me: program exited with status $ac_status" >&5
28761 echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28763
28764 ( exit $ac_status )
28765 ac_cv_func_setpgrp_void=yes
28766 fi
28767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28768 fi
28769
28770
28771 fi
28772 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28773 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28774 if test $ac_cv_func_setpgrp_void = yes; then
28775
28776 cat >>confdefs.h <<\_ACEOF
28777 #define SETPGRP_VOID 1
28778 _ACEOF
28779
28780 fi
28781                       # AC_FUNC_FNMATCH    dnl use local version
28782
28783
28784 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28785 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28786 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28787   echo $ECHO_N "(cached) $ECHO_C" >&6
28788 else
28789   ac_check_lib_save_LIBS=$LIBS
28790 LIBS="-lintl  $LIBS"
28791 cat >conftest.$ac_ext <<_ACEOF
28792 /* confdefs.h.  */
28793 _ACEOF
28794 cat confdefs.h >>conftest.$ac_ext
28795 cat >>conftest.$ac_ext <<_ACEOF
28796 /* end confdefs.h.  */
28797
28798 /* Override any GCC internal prototype to avoid an error.
28799    Use char because int might match the return type of a GCC
28800    builtin and then its argument prototype would still apply.  */
28801 #ifdef __cplusplus
28802 extern "C"
28803 #endif
28804 char gettext ();
28805 int
28806 main ()
28807 {
28808 return gettext ();
28809   ;
28810   return 0;
28811 }
28812 _ACEOF
28813 rm -f conftest.$ac_objext conftest$ac_exeext
28814 if { (ac_try="$ac_link"
28815 case "(($ac_try" in
28816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28817   *) ac_try_echo=$ac_try;;
28818 esac
28819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28820   (eval "$ac_link") 2>conftest.er1
28821   ac_status=$?
28822   grep -v '^ *+' conftest.er1 >conftest.err
28823   rm -f conftest.er1
28824   cat conftest.err >&5
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); } && {
28827          test -z "$ac_c_werror_flag" ||
28828          test ! -s conftest.err
28829        } && test -s conftest$ac_exeext &&
28830        $as_test_x conftest$ac_exeext; then
28831   ac_cv_lib_intl_gettext=yes
28832 else
28833   echo "$as_me: failed program was:" >&5
28834 sed 's/^/| /' conftest.$ac_ext >&5
28835
28836         ac_cv_lib_intl_gettext=no
28837 fi
28838
28839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28840       conftest$ac_exeext conftest.$ac_ext
28841 LIBS=$ac_check_lib_save_LIBS
28842 fi
28843 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28844 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28845 if test $ac_cv_lib_intl_gettext = yes; then
28846   LIBS="$LIBS -lintl"
28847 fi
28848
28849
28850
28851
28852 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28853 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28854 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28855   echo $ECHO_N "(cached) $ECHO_C" >&6
28856 else
28857   ac_check_lib_save_LIBS=$LIBS
28858 LIBS="-lsun  $LIBS"
28859 cat >conftest.$ac_ext <<_ACEOF
28860 /* confdefs.h.  */
28861 _ACEOF
28862 cat confdefs.h >>conftest.$ac_ext
28863 cat >>conftest.$ac_ext <<_ACEOF
28864 /* end confdefs.h.  */
28865
28866 /* Override any GCC internal prototype to avoid an error.
28867    Use char because int might match the return type of a GCC
28868    builtin and then its argument prototype would still apply.  */
28869 #ifdef __cplusplus
28870 extern "C"
28871 #endif
28872 char getpwnam ();
28873 int
28874 main ()
28875 {
28876 return getpwnam ();
28877   ;
28878   return 0;
28879 }
28880 _ACEOF
28881 rm -f conftest.$ac_objext conftest$ac_exeext
28882 if { (ac_try="$ac_link"
28883 case "(($ac_try" in
28884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28885   *) ac_try_echo=$ac_try;;
28886 esac
28887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28888   (eval "$ac_link") 2>conftest.er1
28889   ac_status=$?
28890   grep -v '^ *+' conftest.er1 >conftest.err
28891   rm -f conftest.er1
28892   cat conftest.err >&5
28893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28894   (exit $ac_status); } && {
28895          test -z "$ac_c_werror_flag" ||
28896          test ! -s conftest.err
28897        } && test -s conftest$ac_exeext &&
28898        $as_test_x conftest$ac_exeext; then
28899   ac_cv_lib_sun_getpwnam=yes
28900 else
28901   echo "$as_me: failed program was:" >&5
28902 sed 's/^/| /' conftest.$ac_ext >&5
28903
28904         ac_cv_lib_sun_getpwnam=no
28905 fi
28906
28907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28908       conftest$ac_exeext conftest.$ac_ext
28909 LIBS=$ac_check_lib_save_LIBS
28910 fi
28911 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28912 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28913 if test $ac_cv_lib_sun_getpwnam = yes; then
28914   cat >>confdefs.h <<_ACEOF
28915 #define HAVE_LIBSUN 1
28916 _ACEOF
28917
28918   LIBS="-lsun $LIBS"
28919
28920 fi
28921
28922
28923
28924 for ac_header in zlib.h
28925 do
28926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28928   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28931   echo $ECHO_N "(cached) $ECHO_C" >&6
28932 fi
28933 ac_res=`eval echo '${'$as_ac_Header'}'`
28934                { echo "$as_me:$LINENO: result: $ac_res" >&5
28935 echo "${ECHO_T}$ac_res" >&6; }
28936 else
28937   # Is the header compilable?
28938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28940 cat >conftest.$ac_ext <<_ACEOF
28941 /* confdefs.h.  */
28942 _ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h.  */
28946 $ac_includes_default
28947 #include <$ac_header>
28948 _ACEOF
28949 rm -f conftest.$ac_objext
28950 if { (ac_try="$ac_compile"
28951 case "(($ac_try" in
28952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28953   *) ac_try_echo=$ac_try;;
28954 esac
28955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28956   (eval "$ac_compile") 2>conftest.er1
28957   ac_status=$?
28958   grep -v '^ *+' conftest.er1 >conftest.err
28959   rm -f conftest.er1
28960   cat conftest.err >&5
28961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); } && {
28963          test -z "$ac_c_werror_flag" ||
28964          test ! -s conftest.err
28965        } && test -s conftest.$ac_objext; then
28966   ac_header_compiler=yes
28967 else
28968   echo "$as_me: failed program was:" >&5
28969 sed 's/^/| /' conftest.$ac_ext >&5
28970
28971         ac_header_compiler=no
28972 fi
28973
28974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28976 echo "${ECHO_T}$ac_header_compiler" >&6; }
28977
28978 # Is the header present?
28979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28981 cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h.  */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h.  */
28987 #include <$ac_header>
28988 _ACEOF
28989 if { (ac_try="$ac_cpp conftest.$ac_ext"
28990 case "(($ac_try" in
28991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992   *) ac_try_echo=$ac_try;;
28993 esac
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28996   ac_status=$?
28997   grep -v '^ *+' conftest.er1 >conftest.err
28998   rm -f conftest.er1
28999   cat conftest.err >&5
29000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001   (exit $ac_status); } >/dev/null && {
29002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29003          test ! -s conftest.err
29004        }; then
29005   ac_header_preproc=yes
29006 else
29007   echo "$as_me: failed program was:" >&5
29008 sed 's/^/| /' conftest.$ac_ext >&5
29009
29010   ac_header_preproc=no
29011 fi
29012
29013 rm -f conftest.err conftest.$ac_ext
29014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29015 echo "${ECHO_T}$ac_header_preproc" >&6; }
29016
29017 # So?  What about this header?
29018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29019   yes:no: )
29020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29024     ac_header_preproc=yes
29025     ;;
29026   no:yes:* )
29027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29039
29040     ;;
29041 esac
29042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29045   echo $ECHO_N "(cached) $ECHO_C" >&6
29046 else
29047   eval "$as_ac_Header=\$ac_header_preproc"
29048 fi
29049 ac_res=`eval echo '${'$as_ac_Header'}'`
29050                { echo "$as_me:$LINENO: result: $ac_res" >&5
29051 echo "${ECHO_T}$ac_res" >&6; }
29052
29053 fi
29054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29055   cat >>confdefs.h <<_ACEOF
29056 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29057 _ACEOF
29058
29059 fi
29060
29061 done
29062
29063 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29064 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29065 if test "${ac_cv_lib_z_deflate+set}" = set; then
29066   echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068   ac_check_lib_save_LIBS=$LIBS
29069 LIBS="-lz  $LIBS"
29070 cat >conftest.$ac_ext <<_ACEOF
29071 /* confdefs.h.  */
29072 _ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h.  */
29076
29077 /* Override any GCC internal prototype to avoid an error.
29078    Use char because int might match the return type of a GCC
29079    builtin and then its argument prototype would still apply.  */
29080 #ifdef __cplusplus
29081 extern "C"
29082 #endif
29083 char deflate ();
29084 int
29085 main ()
29086 {
29087 return deflate ();
29088   ;
29089   return 0;
29090 }
29091 _ACEOF
29092 rm -f conftest.$ac_objext conftest$ac_exeext
29093 if { (ac_try="$ac_link"
29094 case "(($ac_try" in
29095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096   *) ac_try_echo=$ac_try;;
29097 esac
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099   (eval "$ac_link") 2>conftest.er1
29100   ac_status=$?
29101   grep -v '^ *+' conftest.er1 >conftest.err
29102   rm -f conftest.er1
29103   cat conftest.err >&5
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); } && {
29106          test -z "$ac_c_werror_flag" ||
29107          test ! -s conftest.err
29108        } && test -s conftest$ac_exeext &&
29109        $as_test_x conftest$ac_exeext; then
29110   ac_cv_lib_z_deflate=yes
29111 else
29112   echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29114
29115         ac_cv_lib_z_deflate=no
29116 fi
29117
29118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29119       conftest$ac_exeext conftest.$ac_ext
29120 LIBS=$ac_check_lib_save_LIBS
29121 fi
29122 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29123 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29124 if test $ac_cv_lib_z_deflate = yes; then
29125   FDLIBS="-lz"
29126 fi
29127
29128 have_zlib=no
29129 if test x$FDLIBS = x-lz; then
29130   cat >>confdefs.h <<\_ACEOF
29131 #define HAVE_LIBZ 1
29132 _ACEOF
29133
29134   have_zlib=yes
29135 fi
29136
29137 #
29138 # Check for ACL libraries
29139 #
29140 have_acl=no
29141 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29142   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29143 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29144 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29145   echo $ECHO_N "(cached) $ECHO_C" >&6
29146 fi
29147 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29148 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29149 else
29150   # Is the header compilable?
29151 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29152 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29153 cat >conftest.$ac_ext <<_ACEOF
29154 /* confdefs.h.  */
29155 _ACEOF
29156 cat confdefs.h >>conftest.$ac_ext
29157 cat >>conftest.$ac_ext <<_ACEOF
29158 /* end confdefs.h.  */
29159 $ac_includes_default
29160 #include <sys/acl.h>
29161 _ACEOF
29162 rm -f conftest.$ac_objext
29163 if { (ac_try="$ac_compile"
29164 case "(($ac_try" in
29165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166   *) ac_try_echo=$ac_try;;
29167 esac
29168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29169   (eval "$ac_compile") 2>conftest.er1
29170   ac_status=$?
29171   grep -v '^ *+' conftest.er1 >conftest.err
29172   rm -f conftest.er1
29173   cat conftest.err >&5
29174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29175   (exit $ac_status); } && {
29176          test -z "$ac_c_werror_flag" ||
29177          test ! -s conftest.err
29178        } && test -s conftest.$ac_objext; then
29179   ac_header_compiler=yes
29180 else
29181   echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.$ac_ext >&5
29183
29184         ac_header_compiler=no
29185 fi
29186
29187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29189 echo "${ECHO_T}$ac_header_compiler" >&6; }
29190
29191 # Is the header present?
29192 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29193 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29194 cat >conftest.$ac_ext <<_ACEOF
29195 /* confdefs.h.  */
29196 _ACEOF
29197 cat confdefs.h >>conftest.$ac_ext
29198 cat >>conftest.$ac_ext <<_ACEOF
29199 /* end confdefs.h.  */
29200 #include <sys/acl.h>
29201 _ACEOF
29202 if { (ac_try="$ac_cpp conftest.$ac_ext"
29203 case "(($ac_try" in
29204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29205   *) ac_try_echo=$ac_try;;
29206 esac
29207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29209   ac_status=$?
29210   grep -v '^ *+' conftest.er1 >conftest.err
29211   rm -f conftest.er1
29212   cat conftest.err >&5
29213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214   (exit $ac_status); } >/dev/null && {
29215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29216          test ! -s conftest.err
29217        }; then
29218   ac_header_preproc=yes
29219 else
29220   echo "$as_me: failed program was:" >&5
29221 sed 's/^/| /' conftest.$ac_ext >&5
29222
29223   ac_header_preproc=no
29224 fi
29225
29226 rm -f conftest.err conftest.$ac_ext
29227 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29228 echo "${ECHO_T}$ac_header_preproc" >&6; }
29229
29230 # So?  What about this header?
29231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29232   yes:no: )
29233     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29234 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29235     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29236 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29237     ac_header_preproc=yes
29238     ;;
29239   no:yes:* )
29240     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29241 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29242     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29243 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29244     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29245 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29246     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29247 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29248     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29249 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29250     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29251 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29252
29253     ;;
29254 esac
29255 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29256 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29257 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29258   echo $ECHO_N "(cached) $ECHO_C" >&6
29259 else
29260   ac_cv_header_sys_acl_h=$ac_header_preproc
29261 fi
29262 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29263 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29264
29265 fi
29266
29267
29268 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29269 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29270 if test "${ac_cv_func_acl_get_file+set}" = set; then
29271   echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273   cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h.  */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h.  */
29279 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29280    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29281 #define acl_get_file innocuous_acl_get_file
29282
29283 /* System header to define __stub macros and hopefully few prototypes,
29284     which can conflict with char acl_get_file (); below.
29285     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29286     <limits.h> exists even on freestanding compilers.  */
29287
29288 #ifdef __STDC__
29289 # include <limits.h>
29290 #else
29291 # include <assert.h>
29292 #endif
29293
29294 #undef acl_get_file
29295
29296 /* Override any GCC internal prototype to avoid an error.
29297    Use char because int might match the return type of a GCC
29298    builtin and then its argument prototype would still apply.  */
29299 #ifdef __cplusplus
29300 extern "C"
29301 #endif
29302 char acl_get_file ();
29303 /* The GNU C library defines this for functions which it implements
29304     to always fail with ENOSYS.  Some functions are actually named
29305     something starting with __ and the normal name is an alias.  */
29306 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29307 choke me
29308 #endif
29309
29310 int
29311 main ()
29312 {
29313 return acl_get_file ();
29314   ;
29315   return 0;
29316 }
29317 _ACEOF
29318 rm -f conftest.$ac_objext conftest$ac_exeext
29319 if { (ac_try="$ac_link"
29320 case "(($ac_try" in
29321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322   *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325   (eval "$ac_link") 2>conftest.er1
29326   ac_status=$?
29327   grep -v '^ *+' conftest.er1 >conftest.err
29328   rm -f conftest.er1
29329   cat conftest.err >&5
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); } && {
29332          test -z "$ac_c_werror_flag" ||
29333          test ! -s conftest.err
29334        } && test -s conftest$ac_exeext &&
29335        $as_test_x conftest$ac_exeext; then
29336   ac_cv_func_acl_get_file=yes
29337 else
29338   echo "$as_me: failed program was:" >&5
29339 sed 's/^/| /' conftest.$ac_ext >&5
29340
29341         ac_cv_func_acl_get_file=no
29342 fi
29343
29344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29345       conftest$ac_exeext conftest.$ac_ext
29346 fi
29347 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29348 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29349 if test $ac_cv_func_acl_get_file = yes; then
29350   have_acl=yes
29351 else
29352   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29353 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29354 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29355   echo $ECHO_N "(cached) $ECHO_C" >&6
29356 else
29357   ac_check_lib_save_LIBS=$LIBS
29358 LIBS="-lacl  $LIBS"
29359 cat >conftest.$ac_ext <<_ACEOF
29360 /* confdefs.h.  */
29361 _ACEOF
29362 cat confdefs.h >>conftest.$ac_ext
29363 cat >>conftest.$ac_ext <<_ACEOF
29364 /* end confdefs.h.  */
29365
29366 /* Override any GCC internal prototype to avoid an error.
29367    Use char because int might match the return type of a GCC
29368    builtin and then its argument prototype would still apply.  */
29369 #ifdef __cplusplus
29370 extern "C"
29371 #endif
29372 char acl_get_file ();
29373 int
29374 main ()
29375 {
29376 return acl_get_file ();
29377   ;
29378   return 0;
29379 }
29380 _ACEOF
29381 rm -f conftest.$ac_objext conftest$ac_exeext
29382 if { (ac_try="$ac_link"
29383 case "(($ac_try" in
29384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29385   *) ac_try_echo=$ac_try;;
29386 esac
29387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29388   (eval "$ac_link") 2>conftest.er1
29389   ac_status=$?
29390   grep -v '^ *+' conftest.er1 >conftest.err
29391   rm -f conftest.er1
29392   cat conftest.err >&5
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); } && {
29395          test -z "$ac_c_werror_flag" ||
29396          test ! -s conftest.err
29397        } && test -s conftest$ac_exeext &&
29398        $as_test_x conftest$ac_exeext; then
29399   ac_cv_lib_acl_acl_get_file=yes
29400 else
29401   echo "$as_me: failed program was:" >&5
29402 sed 's/^/| /' conftest.$ac_ext >&5
29403
29404         ac_cv_lib_acl_acl_get_file=no
29405 fi
29406
29407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29408       conftest$ac_exeext conftest.$ac_ext
29409 LIBS=$ac_check_lib_save_LIBS
29410 fi
29411 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29412 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29413 if test $ac_cv_lib_acl_acl_get_file = yes; then
29414   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29415 else
29416   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29417 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29418 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29419   echo $ECHO_N "(cached) $ECHO_C" >&6
29420 else
29421   ac_check_lib_save_LIBS=$LIBS
29422 LIBS="-lsec  $LIBS"
29423 cat >conftest.$ac_ext <<_ACEOF
29424 /* confdefs.h.  */
29425 _ACEOF
29426 cat confdefs.h >>conftest.$ac_ext
29427 cat >>conftest.$ac_ext <<_ACEOF
29428 /* end confdefs.h.  */
29429
29430 /* Override any GCC internal prototype to avoid an error.
29431    Use char because int might match the return type of a GCC
29432    builtin and then its argument prototype would still apply.  */
29433 #ifdef __cplusplus
29434 extern "C"
29435 #endif
29436 char acltotext ();
29437 int
29438 main ()
29439 {
29440 return acltotext ();
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 rm -f conftest.$ac_objext conftest$ac_exeext
29446 if { (ac_try="$ac_link"
29447 case "(($ac_try" in
29448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29449   *) ac_try_echo=$ac_try;;
29450 esac
29451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29452   (eval "$ac_link") 2>conftest.er1
29453   ac_status=$?
29454   grep -v '^ *+' conftest.er1 >conftest.err
29455   rm -f conftest.er1
29456   cat conftest.err >&5
29457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458   (exit $ac_status); } && {
29459          test -z "$ac_c_werror_flag" ||
29460          test ! -s conftest.err
29461        } && test -s conftest$ac_exeext &&
29462        $as_test_x conftest$ac_exeext; then
29463   ac_cv_lib_sec_acltotext=yes
29464 else
29465   echo "$as_me: failed program was:" >&5
29466 sed 's/^/| /' conftest.$ac_ext >&5
29467
29468         ac_cv_lib_sec_acltotext=no
29469 fi
29470
29471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29472       conftest$ac_exeext conftest.$ac_ext
29473 LIBS=$ac_check_lib_save_LIBS
29474 fi
29475 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29476 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29477 if test $ac_cv_lib_sec_acltotext = yes; then
29478   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29479 fi
29480
29481
29482 fi
29483
29484
29485 fi
29486
29487 if test $have_acl = yes; then
29488    cat >>confdefs.h <<\_ACEOF
29489 #define HAVE_ACL 1
29490 _ACEOF
29491
29492 fi
29493
29494 PTHREAD_LIB=""
29495 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29496 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29497 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29498   echo $ECHO_N "(cached) $ECHO_C" >&6
29499 else
29500   ac_check_lib_save_LIBS=$LIBS
29501 LIBS="-lpthread  $LIBS"
29502 cat >conftest.$ac_ext <<_ACEOF
29503 /* confdefs.h.  */
29504 _ACEOF
29505 cat confdefs.h >>conftest.$ac_ext
29506 cat >>conftest.$ac_ext <<_ACEOF
29507 /* end confdefs.h.  */
29508
29509 /* Override any GCC internal prototype to avoid an error.
29510    Use char because int might match the return type of a GCC
29511    builtin and then its argument prototype would still apply.  */
29512 #ifdef __cplusplus
29513 extern "C"
29514 #endif
29515 char pthread_create ();
29516 int
29517 main ()
29518 {
29519 return pthread_create ();
29520   ;
29521   return 0;
29522 }
29523 _ACEOF
29524 rm -f conftest.$ac_objext conftest$ac_exeext
29525 if { (ac_try="$ac_link"
29526 case "(($ac_try" in
29527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29528   *) ac_try_echo=$ac_try;;
29529 esac
29530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29531   (eval "$ac_link") 2>conftest.er1
29532   ac_status=$?
29533   grep -v '^ *+' conftest.er1 >conftest.err
29534   rm -f conftest.er1
29535   cat conftest.err >&5
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); } && {
29538          test -z "$ac_c_werror_flag" ||
29539          test ! -s conftest.err
29540        } && test -s conftest$ac_exeext &&
29541        $as_test_x conftest$ac_exeext; then
29542   ac_cv_lib_pthread_pthread_create=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547         ac_cv_lib_pthread_pthread_create=no
29548 fi
29549
29550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29551       conftest$ac_exeext conftest.$ac_ext
29552 LIBS=$ac_check_lib_save_LIBS
29553 fi
29554 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29555 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29556 if test $ac_cv_lib_pthread_pthread_create = yes; then
29557   PTHREAD_LIB="-lpthread"
29558 else
29559   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29560 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29561 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29562   echo $ECHO_N "(cached) $ECHO_C" >&6
29563 else
29564   ac_check_lib_save_LIBS=$LIBS
29565 LIBS="-lpthreads  $LIBS"
29566 cat >conftest.$ac_ext <<_ACEOF
29567 /* confdefs.h.  */
29568 _ACEOF
29569 cat confdefs.h >>conftest.$ac_ext
29570 cat >>conftest.$ac_ext <<_ACEOF
29571 /* end confdefs.h.  */
29572
29573 /* Override any GCC internal prototype to avoid an error.
29574    Use char because int might match the return type of a GCC
29575    builtin and then its argument prototype would still apply.  */
29576 #ifdef __cplusplus
29577 extern "C"
29578 #endif
29579 char pthread_create ();
29580 int
29581 main ()
29582 {
29583 return pthread_create ();
29584   ;
29585   return 0;
29586 }
29587 _ACEOF
29588 rm -f conftest.$ac_objext conftest$ac_exeext
29589 if { (ac_try="$ac_link"
29590 case "(($ac_try" in
29591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29592   *) ac_try_echo=$ac_try;;
29593 esac
29594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29595   (eval "$ac_link") 2>conftest.er1
29596   ac_status=$?
29597   grep -v '^ *+' conftest.er1 >conftest.err
29598   rm -f conftest.er1
29599   cat conftest.err >&5
29600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29601   (exit $ac_status); } && {
29602          test -z "$ac_c_werror_flag" ||
29603          test ! -s conftest.err
29604        } && test -s conftest$ac_exeext &&
29605        $as_test_x conftest$ac_exeext; then
29606   ac_cv_lib_pthreads_pthread_create=yes
29607 else
29608   echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29610
29611         ac_cv_lib_pthreads_pthread_create=no
29612 fi
29613
29614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29615       conftest$ac_exeext conftest.$ac_ext
29616 LIBS=$ac_check_lib_save_LIBS
29617 fi
29618 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29619 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29620 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29621   PTHREAD_LIB="-lpthreads"
29622 else
29623   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29624 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29625 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29626   echo $ECHO_N "(cached) $ECHO_C" >&6
29627 else
29628   ac_check_lib_save_LIBS=$LIBS
29629 LIBS="-lc_r  $LIBS"
29630 cat >conftest.$ac_ext <<_ACEOF
29631 /* confdefs.h.  */
29632 _ACEOF
29633 cat confdefs.h >>conftest.$ac_ext
29634 cat >>conftest.$ac_ext <<_ACEOF
29635 /* end confdefs.h.  */
29636
29637 /* Override any GCC internal prototype to avoid an error.
29638    Use char because int might match the return type of a GCC
29639    builtin and then its argument prototype would still apply.  */
29640 #ifdef __cplusplus
29641 extern "C"
29642 #endif
29643 char pthread_create ();
29644 int
29645 main ()
29646 {
29647 return pthread_create ();
29648   ;
29649   return 0;
29650 }
29651 _ACEOF
29652 rm -f conftest.$ac_objext conftest$ac_exeext
29653 if { (ac_try="$ac_link"
29654 case "(($ac_try" in
29655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656   *) ac_try_echo=$ac_try;;
29657 esac
29658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29659   (eval "$ac_link") 2>conftest.er1
29660   ac_status=$?
29661   grep -v '^ *+' conftest.er1 >conftest.err
29662   rm -f conftest.er1
29663   cat conftest.err >&5
29664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29665   (exit $ac_status); } && {
29666          test -z "$ac_c_werror_flag" ||
29667          test ! -s conftest.err
29668        } && test -s conftest$ac_exeext &&
29669        $as_test_x conftest$ac_exeext; then
29670   ac_cv_lib_c_r_pthread_create=yes
29671 else
29672   echo "$as_me: failed program was:" >&5
29673 sed 's/^/| /' conftest.$ac_ext >&5
29674
29675         ac_cv_lib_c_r_pthread_create=no
29676 fi
29677
29678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29679       conftest$ac_exeext conftest.$ac_ext
29680 LIBS=$ac_check_lib_save_LIBS
29681 fi
29682 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29683 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29684 if test $ac_cv_lib_c_r_pthread_create = yes; then
29685   PTHREAD_LIB="-lc_r"
29686 else
29687   { echo "$as_me:$LINENO: checking for pthread_create" >&5
29688 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29689 if test "${ac_cv_func_pthread_create+set}" = set; then
29690   echo $ECHO_N "(cached) $ECHO_C" >&6
29691 else
29692   cat >conftest.$ac_ext <<_ACEOF
29693 /* confdefs.h.  */
29694 _ACEOF
29695 cat confdefs.h >>conftest.$ac_ext
29696 cat >>conftest.$ac_ext <<_ACEOF
29697 /* end confdefs.h.  */
29698 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29700 #define pthread_create innocuous_pthread_create
29701
29702 /* System header to define __stub macros and hopefully few prototypes,
29703     which can conflict with char pthread_create (); below.
29704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29705     <limits.h> exists even on freestanding compilers.  */
29706
29707 #ifdef __STDC__
29708 # include <limits.h>
29709 #else
29710 # include <assert.h>
29711 #endif
29712
29713 #undef pthread_create
29714
29715 /* Override any GCC internal prototype to avoid an error.
29716    Use char because int might match the return type of a GCC
29717    builtin and then its argument prototype would still apply.  */
29718 #ifdef __cplusplus
29719 extern "C"
29720 #endif
29721 char pthread_create ();
29722 /* The GNU C library defines this for functions which it implements
29723     to always fail with ENOSYS.  Some functions are actually named
29724     something starting with __ and the normal name is an alias.  */
29725 #if defined __stub_pthread_create || defined __stub___pthread_create
29726 choke me
29727 #endif
29728
29729 int
29730 main ()
29731 {
29732 return pthread_create ();
29733   ;
29734   return 0;
29735 }
29736 _ACEOF
29737 rm -f conftest.$ac_objext conftest$ac_exeext
29738 if { (ac_try="$ac_link"
29739 case "(($ac_try" in
29740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741   *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744   (eval "$ac_link") 2>conftest.er1
29745   ac_status=$?
29746   grep -v '^ *+' conftest.er1 >conftest.err
29747   rm -f conftest.er1
29748   cat conftest.err >&5
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); } && {
29751          test -z "$ac_c_werror_flag" ||
29752          test ! -s conftest.err
29753        } && test -s conftest$ac_exeext &&
29754        $as_test_x conftest$ac_exeext; then
29755   ac_cv_func_pthread_create=yes
29756 else
29757   echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29759
29760         ac_cv_func_pthread_create=no
29761 fi
29762
29763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29764       conftest$ac_exeext conftest.$ac_ext
29765 fi
29766 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29767 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29768
29769
29770 fi
29771
29772
29773 fi
29774
29775
29776 fi
29777
29778
29779
29780 cat >>confdefs.h <<\_ACEOF
29781 #define FDLIBS 1
29782 _ACEOF
29783
29784
29785
29786 CFLAGS=${CFLAGS--O}
29787
29788 if test x$have_gcc = xyes ; then
29789    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29790    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29791 fi
29792 LDFLAGS=${LDFLAGS--O}
29793 DB_LIBS="${SQL_LFLAGS}"
29794 CPPFLAGS="$CPPFLAGS"
29795 CFLAGS="$CFLAGS"
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812 OBJLIST=
29813
29814
29815 lld="lld"
29816 llu="llu"
29817
29818 WCFLAGS=
29819 WLDFLAGS=
29820
29821 #
29822 # Finally we set appropriate distribution specific
29823 #  variables and defaults
29824 #
29825 # PFILES are platform specific files
29826 PFILES="platforms/Makefile"
29827 PSCMD="ps -e"
29828 WIN32=
29829 MACOSX=
29830 hostname=`uname -n | cut -d '.' -f 1`
29831 if test x${hostname} = x ; then
29832   hostname="localhost"
29833 fi
29834 case "$DISTNAME" in
29835 aix)
29836         DISTVER=`uname -r`
29837         PSCMD="ps -e -o pid,comm"
29838         PFILES="${PFILES} \
29839            platforms/aix/Makefile"
29840         TAPEDRIVE="/dev/rmt0.1"
29841   ;;
29842 alpha)
29843         DISTVER=`uname -r`
29844         PTHREAD_LIB="-lpthread -lexc"
29845         if test "${CC}" = "gcc" ; then
29846            lld="lld"
29847            llu="llu"
29848         else
29849            lld="ld"
29850            llu="lu"
29851         fi
29852         TAPEDRIVE="/dev/nrmt0"
29853   ;;
29854 bsdi)
29855         DISTVER=`uname -a |awk '{print $3}'`
29856         TAPEDRIVE="/dev/nrmt0"
29857         PTHREAD_LIB="-pthread"
29858         CFLAGS="${CFLAGS} -pthread"
29859         PSCMD="ps -ax -o pid,command"
29860         lld="qd"
29861         llu="qu"
29862         PFILES="${PFILES} \
29863             platforms/bsdi/Makefile \
29864             platforms/bsdi/bacula-fd \
29865             platforms/bsdi/bacula-sd \
29866             platforms/bsdi/bacula-dir"
29867         largefile_support="yes"
29868   ;;
29869 cygwin)
29870         DISTVER=`uname -a |awk '{print $3}'`
29871         TAPEDRIVE="/dev/nrst0"
29872         WIN32=win32
29873         WCFLAGS="-mwindows"
29874         WLDFLAGS="-mwindows"
29875   ;;
29876 darwin)
29877         DISTVER=`uname -r`
29878         TAPEDRIVE="/dev/nst0"
29879         PSCMD="ps -e -o pid,command"
29880         MACOSX=macosx
29881         PFILES="${PFILES} \
29882            platforms/darwin/Makefile"
29883   ;;
29884 debian)
29885         DISTVER=`cat /etc/debian_version`
29886         TAPEDRIVE="/dev/nrst0"
29887         PSCMD="ps -e -o pid,command"
29888         PFILES="${PFILES} \
29889             platforms/debian/Makefile \
29890             platforms/debian/bacula-fd \
29891             platforms/debian/bacula-sd \
29892             platforms/debian/bacula-dir"
29893   ;;
29894 freebsd)
29895         DISTVER=`uname -a |awk '{print $3}'`
29896         VER=`echo $DISTVER | cut -c 1`
29897         if test x$VER = x4 ; then
29898            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29899            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29900         fi
29901         lld="qd"
29902         llu="qu"
29903         TAPEDRIVE="/dev/nrsa0"
29904         PSCMD="ps -ax -o pid,command"
29905         PFILES="${PFILES} \
29906             platforms/freebsd/Makefile \
29907             platforms/freebsd/bacula-fd \
29908             platforms/freebsd/bacula-sd \
29909             platforms/freebsd/bacula-dir"
29910         largefile_support="yes"
29911   ;;
29912 hpux)
29913         PSCMD="UNIX95=1; ps -e -o pid,comm"
29914         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29915         DISTVER=`uname -r`
29916         TAPEDRIVE="/dev/rmt/0hnb"
29917         PTHREAD_LIB="-lpthread"
29918         cat >>confdefs.h <<\_ACEOF
29919 #define _INCLUDE_LONGLONG 1
29920 _ACEOF
29921
29922   ;;
29923 irix)
29924         DISTVER=`uname -r`
29925         TAPEDRIVE="/dev/rmt/0cbn"
29926         PSCMD="ps -e -o pid,comm"
29927         PFILES="${PFILES} \
29928             platforms/irix/Makefile \
29929             platforms/irix/bacula-fd \
29930             platforms/irix/bacula-sd \
29931             platforms/irix/bacula-dir"
29932   ;;
29933 netbsd)
29934         DISTVER=`uname -a |awk '{print $3}'`
29935         lld="qd"
29936         llu="qu"
29937         TAPEDRIVE="/dev/nrst0"
29938         PSCMD="ps -ax -o pid,command"
29939         PTHREAD_LIB="-pthread"
29940         CFLAGS="${CFLAGS} -pthread"
29941   ;;
29942 openbsd)
29943         DISTVER=`uname -a |awk '{print $3}'`
29944         lld="qd"
29945         llu="qu"
29946         TAPEDRIVE="/dev/nrst0"
29947         PSCMD="ps -ax -o pid,command"
29948         PTHREAD_LIB="-pthread"
29949         CFLAGS="${CFLAGS} -pthread"
29950         PFILES="${PFILES} \
29951             platforms/openbsd/Makefile \
29952             platforms/openbsd/bacula-fd \
29953             platforms/openbsd/bacula-sd \
29954             platforms/openbsd/bacula-dir"
29955   ;;
29956 redhat)
29957         if test -f /etc/whitebox-release ; then
29958            f=/etc/whitebox-release
29959         else
29960            f=/etc/redhat-release
29961         fi
29962         if test `cat $f | grep release |\
29963                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29964            DISTVER="Enterprise "`cat $f | grep release |\
29965                     cut -f 6 -d ' '`
29966         else
29967             DISTVER=`cat /etc/redhat-release | grep release |\
29968                      cut -f 5 -d ' '`
29969         fi
29970         TAPEDRIVE="/dev/nst0"
29971         PSCMD="ps -e -o pid,command"
29972         PFILES="${PFILES} \
29973             platforms/redhat/Makefile \
29974             platforms/redhat/bacula-fd \
29975             platforms/redhat/bacula-sd \
29976             platforms/redhat/bacula-dir \
29977             platforms/redhat/bacula.spec \
29978             "
29979   ;;
29980 mandrake)
29981         DISTVER=`cat /etc/mandrake-release | grep release |\
29982            cut -f 5 -d ' '`
29983         TAPEDRIVE="/dev/nst0"
29984         PSCMD="ps -e -o pid,command"
29985         PFILES="${PFILES} \
29986             platforms/mandrake/Makefile \
29987             platforms/mandrake/bacula-fd \
29988             platforms/mandrake/bacula-sd \
29989             platforms/mandrake/bacula-dir \
29990             platforms/mandrake/bacula.spec \
29991             "
29992   ;;
29993 gentoo)
29994         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29995         TAPEDRIVE="/dev/nst0"
29996         PSCMD="ps -e -o pid,command"
29997         PFILES="${PFILES} \
29998             platforms/gentoo/Makefile \
29999          platforms/gentoo/bacula-init \
30000             platforms/gentoo/bacula-fd \
30001             platforms/gentoo/bacula-sd \
30002             platforms/gentoo/bacula-dir"
30003   ;;
30004 slackware)
30005         DISTVER=`cat /etc/slackware-version`
30006         TAPEDRIVE="/dev/nst0"
30007         PSCMD="ps -e -o pid,command"
30008         PFILES="${PFILES} \
30009             platforms/slackware/Makefile \
30010             platforms/slackware/rc.bacula-fd \
30011             platforms/slackware/rc.bacula-sd \
30012             platforms/slackware/rc.bacula-dir\
30013             platforms/slackware/functions.bacula"
30014   ;;
30015 solaris)
30016         DISTVER=`uname -r`
30017         TAPEDRIVE="/dev/rmt/0cbn"
30018         PSCMD="ps -e -o pid,comm"
30019         PFILES="${PFILES} \
30020             platforms/solaris/Makefile \
30021             platforms/solaris/bacula-fd \
30022             platforms/solaris/bacula-sd \
30023             platforms/solaris/bacula-dir"
30024         if test x$DISTVER = x5.6 ; then
30025             cat >>confdefs.h <<\_ACEOF
30026 #define HAVE_OLD_SOCKOPT 1
30027 _ACEOF
30028
30029         fi
30030         LIBS="$LIBS -lresolv"
30031   ;;
30032 suse)
30033         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30034             cut -f 3 -d ' '`
30035         TAPEDRIVE="/dev/nst0"
30036         PSCMD="ps -e -o pid,command"
30037         PFILES="${PFILES} \
30038             platforms/suse/Makefile \
30039             platforms/suse/bacula-fd \
30040             platforms/suse/bacula-sd \
30041             platforms/suse/bacula-dir \
30042             platforms/suse/bacula \
30043             platforms/suse/bacula.spec"
30044   ;;
30045 suse5)
30046         DISTNAME=suse
30047         DISTVER=5.x
30048         TAPEDRIVE="/dev/nst0"
30049         PSCMD="ps -e -o pid,command"
30050         PFILES="${PFILES} \
30051             platforms/suse/Makefile \
30052             platforms/suse/bacula-fd \
30053             platforms/suse/bacula-sd \
30054             platforms/suse/bacula-dir"
30055   ;;
30056 unknown)
30057         DISTVER=unknown
30058         TAPEDRIVE="/dev/nst0"
30059   ;;
30060 *)
30061   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30062   ;;
30063 esac
30064
30065
30066
30067 LIBS="$PTHREAD_LIB $LIBS"
30068
30069 cat >>confdefs.h <<_ACEOF
30070 #define lld "$lld"
30071 _ACEOF
30072
30073 cat >>confdefs.h <<_ACEOF
30074 #define llu "$llu"
30075 _ACEOF
30076
30077
30078
30079
30080
30081
30082
30083
30084 MCOMMON=./autoconf/Make.common
30085
30086
30087 if test "x${subsysdir}" = "x${sbindir}" ; then
30088    echo " "
30089    echo " "
30090    echo "You have set both --sbindir and --with-subsys-dir"
30091    echo "  equal to: ${subsysdir} "
30092    echo "This is not permitted. Please reconfigure."
30093    echo " "
30094    echo "Aborting configuration ..."
30095    echo " "
30096    echo " "
30097    exit 1
30098 fi
30099
30100 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"
30101
30102 ac_config_commands="$ac_config_commands default"
30103
30104 cat >confcache <<\_ACEOF
30105 # This file is a shell script that caches the results of configure
30106 # tests run on this system so they can be shared between configure
30107 # scripts and configure runs, see configure's option --config-cache.
30108 # It is not useful on other systems.  If it contains results you don't
30109 # want to keep, you may remove or edit it.
30110 #
30111 # config.status only pays attention to the cache file if you give it
30112 # the --recheck option to rerun configure.
30113 #
30114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30116 # following values.
30117
30118 _ACEOF
30119
30120 # The following way of writing the cache mishandles newlines in values,
30121 # but we know of no workaround that is simple, portable, and efficient.
30122 # So, we kill variables containing newlines.
30123 # Ultrix sh set writes to stderr and can't be redirected directly,
30124 # and sets the high bit in the cache file unless we assign to the vars.
30125 (
30126   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30127     eval ac_val=\$$ac_var
30128     case $ac_val in #(
30129     *${as_nl}*)
30130       case $ac_var in #(
30131       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30132 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30133       esac
30134       case $ac_var in #(
30135       _ | IFS | as_nl) ;; #(
30136       *) $as_unset $ac_var ;;
30137       esac ;;
30138     esac
30139   done
30140
30141   (set) 2>&1 |
30142     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30143     *${as_nl}ac_space=\ *)
30144       # `set' does not quote correctly, so add quotes (double-quote
30145       # substitution turns \\\\ into \\, and sed turns \\ into \).
30146       sed -n \
30147         "s/'/'\\\\''/g;
30148           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30149       ;; #(
30150     *)
30151       # `set' quotes correctly as required by POSIX, so do not add quotes.
30152       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30153       ;;
30154     esac |
30155     sort
30156 ) |
30157   sed '
30158      /^ac_cv_env_/b end
30159      t clear
30160      :clear
30161      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30162      t end
30163      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30164      :end' >>confcache
30165 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30166   if test -w "$cache_file"; then
30167     test "x$cache_file" != "x/dev/null" &&
30168       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30169 echo "$as_me: updating cache $cache_file" >&6;}
30170     cat confcache >$cache_file
30171   else
30172     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30173 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30174   fi
30175 fi
30176 rm -f confcache
30177
30178 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30179 # Let make expand exec_prefix.
30180 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30181
30182 DEFS=-DHAVE_CONFIG_H
30183
30184 ac_libobjs=
30185 ac_ltlibobjs=
30186 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30187   # 1. Remove the extension, and $U if already installed.
30188   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30189   ac_i=`echo "$ac_i" | sed "$ac_script"`
30190   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30191   #    will be set to the directory where LIBOBJS objects are built.
30192   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30193   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30194 done
30195 LIBOBJS=$ac_libobjs
30196
30197 LTLIBOBJS=$ac_ltlibobjs
30198
30199
30200
30201 : ${CONFIG_STATUS=./config.status}
30202 ac_clean_files_save=$ac_clean_files
30203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30204 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30205 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30206 cat >$CONFIG_STATUS <<_ACEOF
30207 #! $SHELL
30208 # Generated by $as_me.
30209 # Run this file to recreate the current configuration.
30210 # Compiler output produced by configure, useful for debugging
30211 # configure, is in config.log if it exists.
30212
30213 debug=false
30214 ac_cs_recheck=false
30215 ac_cs_silent=false
30216 SHELL=\${CONFIG_SHELL-$SHELL}
30217 _ACEOF
30218
30219 cat >>$CONFIG_STATUS <<\_ACEOF
30220 ## --------------------- ##
30221 ## M4sh Initialization.  ##
30222 ## --------------------- ##
30223
30224 # Be more Bourne compatible
30225 DUALCASE=1; export DUALCASE # for MKS sh
30226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30227   emulate sh
30228   NULLCMD=:
30229   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30230   # is contrary to our usage.  Disable this feature.
30231   alias -g '${1+"$@"}'='"$@"'
30232   setopt NO_GLOB_SUBST
30233 else
30234   case `(set -o) 2>/dev/null` in
30235   *posix*) set -o posix ;;
30236 esac
30237
30238 fi
30239
30240
30241
30242
30243 # PATH needs CR
30244 # Avoid depending upon Character Ranges.
30245 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30246 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30247 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30248 as_cr_digits='0123456789'
30249 as_cr_alnum=$as_cr_Letters$as_cr_digits
30250
30251 # The user is always right.
30252 if test "${PATH_SEPARATOR+set}" != set; then
30253   echo "#! /bin/sh" >conf$$.sh
30254   echo  "exit 0"   >>conf$$.sh
30255   chmod +x conf$$.sh
30256   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30257     PATH_SEPARATOR=';'
30258   else
30259     PATH_SEPARATOR=:
30260   fi
30261   rm -f conf$$.sh
30262 fi
30263
30264 # Support unset when possible.
30265 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30266   as_unset=unset
30267 else
30268   as_unset=false
30269 fi
30270
30271
30272 # IFS
30273 # We need space, tab and new line, in precisely that order.  Quoting is
30274 # there to prevent editors from complaining about space-tab.
30275 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30276 # splitting by setting IFS to empty value.)
30277 as_nl='
30278 '
30279 IFS=" ""        $as_nl"
30280
30281 # Find who we are.  Look in the path if we contain no directory separator.
30282 case $0 in
30283   *[\\/]* ) as_myself=$0 ;;
30284   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30285 for as_dir in $PATH
30286 do
30287   IFS=$as_save_IFS
30288   test -z "$as_dir" && as_dir=.
30289   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30290 done
30291 IFS=$as_save_IFS
30292
30293      ;;
30294 esac
30295 # We did not find ourselves, most probably we were run as `sh COMMAND'
30296 # in which case we are not to be found in the path.
30297 if test "x$as_myself" = x; then
30298   as_myself=$0
30299 fi
30300 if test ! -f "$as_myself"; then
30301   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30302   { (exit 1); exit 1; }
30303 fi
30304
30305 # Work around bugs in pre-3.0 UWIN ksh.
30306 for as_var in ENV MAIL MAILPATH
30307 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30308 done
30309 PS1='$ '
30310 PS2='> '
30311 PS4='+ '
30312
30313 # NLS nuisances.
30314 for as_var in \
30315   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30316   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30317   LC_TELEPHONE LC_TIME
30318 do
30319   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30320     eval $as_var=C; export $as_var
30321   else
30322     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30323   fi
30324 done
30325
30326 # Required to use basename.
30327 if expr a : '\(a\)' >/dev/null 2>&1 &&
30328    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30329   as_expr=expr
30330 else
30331   as_expr=false
30332 fi
30333
30334 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30335   as_basename=basename
30336 else
30337   as_basename=false
30338 fi
30339
30340
30341 # Name of the executable.
30342 as_me=`$as_basename -- "$0" ||
30343 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30344          X"$0" : 'X\(//\)$' \| \
30345          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30346 echo X/"$0" |
30347     sed '/^.*\/\([^/][^/]*\)\/*$/{
30348             s//\1/
30349             q
30350           }
30351           /^X\/\(\/\/\)$/{
30352             s//\1/
30353             q
30354           }
30355           /^X\/\(\/\).*/{
30356             s//\1/
30357             q
30358           }
30359           s/.*/./; q'`
30360
30361 # CDPATH.
30362 $as_unset CDPATH
30363
30364
30365
30366   as_lineno_1=$LINENO
30367   as_lineno_2=$LINENO
30368   test "x$as_lineno_1" != "x$as_lineno_2" &&
30369   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30370
30371   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30372   # uniformly replaced by the line number.  The first 'sed' inserts a
30373   # line-number line after each line using $LINENO; the second 'sed'
30374   # does the real work.  The second script uses 'N' to pair each
30375   # line-number line with the line containing $LINENO, and appends
30376   # trailing '-' during substitution so that $LINENO is not a special
30377   # case at line end.
30378   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30379   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30380   # E. McMahon (1931-1989) for sed's syntax.  :-)
30381   sed -n '
30382     p
30383     /[$]LINENO/=
30384   ' <$as_myself |
30385     sed '
30386       s/[$]LINENO.*/&-/
30387       t lineno
30388       b
30389       :lineno
30390       N
30391       :loop
30392       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30393       t loop
30394       s/-\n.*//
30395     ' >$as_me.lineno &&
30396   chmod +x "$as_me.lineno" ||
30397     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30398    { (exit 1); exit 1; }; }
30399
30400   # Don't try to exec as it changes $[0], causing all sort of problems
30401   # (the dirname of $[0] is not the place where we might find the
30402   # original and so on.  Autoconf is especially sensitive to this).
30403   . "./$as_me.lineno"
30404   # Exit status is that of the last command.
30405   exit
30406 }
30407
30408
30409 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30410   as_dirname=dirname
30411 else
30412   as_dirname=false
30413 fi
30414
30415 ECHO_C= ECHO_N= ECHO_T=
30416 case `echo -n x` in
30417 -n*)
30418   case `echo 'x\c'` in
30419   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30420   *)   ECHO_C='\c';;
30421   esac;;
30422 *)
30423   ECHO_N='-n';;
30424 esac
30425
30426 if expr a : '\(a\)' >/dev/null 2>&1 &&
30427    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30428   as_expr=expr
30429 else
30430   as_expr=false
30431 fi
30432
30433 rm -f conf$$ conf$$.exe conf$$.file
30434 if test -d conf$$.dir; then
30435   rm -f conf$$.dir/conf$$.file
30436 else
30437   rm -f conf$$.dir
30438   mkdir conf$$.dir
30439 fi
30440 echo >conf$$.file
30441 if ln -s conf$$.file conf$$ 2>/dev/null; then
30442   as_ln_s='ln -s'
30443   # ... but there are two gotchas:
30444   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30445   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30446   # In both cases, we have to default to `cp -p'.
30447   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30448     as_ln_s='cp -p'
30449 elif ln conf$$.file conf$$ 2>/dev/null; then
30450   as_ln_s=ln
30451 else
30452   as_ln_s='cp -p'
30453 fi
30454 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30455 rmdir conf$$.dir 2>/dev/null
30456
30457 if mkdir -p . 2>/dev/null; then
30458   as_mkdir_p=:
30459 else
30460   test -d ./-p && rmdir ./-p
30461   as_mkdir_p=false
30462 fi
30463
30464 if test -x / >/dev/null 2>&1; then
30465   as_test_x='test -x'
30466 else
30467   if ls -dL / >/dev/null 2>&1; then
30468     as_ls_L_option=L
30469   else
30470     as_ls_L_option=
30471   fi
30472   as_test_x='
30473     eval sh -c '\''
30474       if test -d "$1"; then
30475         test -d "$1/.";
30476       else
30477         case $1 in
30478         -*)set "./$1";;
30479         esac;
30480         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30481         ???[sx]*):;;*)false;;esac;fi
30482     '\'' sh
30483   '
30484 fi
30485 as_executable_p=$as_test_x
30486
30487 # Sed expression to map a string onto a valid CPP name.
30488 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30489
30490 # Sed expression to map a string onto a valid variable name.
30491 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30492
30493
30494 exec 6>&1
30495
30496 # Save the log message, to keep $[0] and so on meaningful, and to
30497 # report actual input values of CONFIG_FILES etc. instead of their
30498 # values after options handling.
30499 ac_log="
30500 This file was extended by $as_me, which was
30501 generated by GNU Autoconf 2.61.  Invocation command line was
30502
30503   CONFIG_FILES    = $CONFIG_FILES
30504   CONFIG_HEADERS  = $CONFIG_HEADERS
30505   CONFIG_LINKS    = $CONFIG_LINKS
30506   CONFIG_COMMANDS = $CONFIG_COMMANDS
30507   $ $0 $@
30508
30509 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30510 "
30511
30512 _ACEOF
30513
30514 cat >>$CONFIG_STATUS <<_ACEOF
30515 # Files that config.status was made for.
30516 config_files="$ac_config_files"
30517 config_headers="$ac_config_headers"
30518 config_commands="$ac_config_commands"
30519
30520 _ACEOF
30521
30522 cat >>$CONFIG_STATUS <<\_ACEOF
30523 ac_cs_usage="\
30524 \`$as_me' instantiates files from templates according to the
30525 current configuration.
30526
30527 Usage: $0 [OPTIONS] [FILE]...
30528
30529   -h, --help       print this help, then exit
30530   -V, --version    print version number and configuration settings, then exit
30531   -q, --quiet      do not print progress messages
30532   -d, --debug      don't remove temporary files
30533       --recheck    update $as_me by reconfiguring in the same conditions
30534   --file=FILE[:TEMPLATE]
30535                    instantiate the configuration file FILE
30536   --header=FILE[:TEMPLATE]
30537                    instantiate the configuration header FILE
30538
30539 Configuration files:
30540 $config_files
30541
30542 Configuration headers:
30543 $config_headers
30544
30545 Configuration commands:
30546 $config_commands
30547
30548 Report bugs to <bug-autoconf@gnu.org>."
30549
30550 _ACEOF
30551 cat >>$CONFIG_STATUS <<_ACEOF
30552 ac_cs_version="\\
30553 config.status
30554 configured by $0, generated by GNU Autoconf 2.61,
30555   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30556
30557 Copyright (C) 2006 Free Software Foundation, Inc.
30558 This config.status script is free software; the Free Software Foundation
30559 gives unlimited permission to copy, distribute and modify it."
30560
30561 ac_pwd='$ac_pwd'
30562 srcdir='$srcdir'
30563 INSTALL='$INSTALL'
30564 _ACEOF
30565
30566 cat >>$CONFIG_STATUS <<\_ACEOF
30567 # If no file are specified by the user, then we need to provide default
30568 # value.  By we need to know if files were specified by the user.
30569 ac_need_defaults=:
30570 while test $# != 0
30571 do
30572   case $1 in
30573   --*=*)
30574     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30575     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30576     ac_shift=:
30577     ;;
30578   *)
30579     ac_option=$1
30580     ac_optarg=$2
30581     ac_shift=shift
30582     ;;
30583   esac
30584
30585   case $ac_option in
30586   # Handling of the options.
30587   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30588     ac_cs_recheck=: ;;
30589   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30590     echo "$ac_cs_version"; exit ;;
30591   --debug | --debu | --deb | --de | --d | -d )
30592     debug=: ;;
30593   --file | --fil | --fi | --f )
30594     $ac_shift
30595     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30596     ac_need_defaults=false;;
30597   --header | --heade | --head | --hea )
30598     $ac_shift
30599     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30600     ac_need_defaults=false;;
30601   --he | --h)
30602     # Conflict between --help and --header
30603     { echo "$as_me: error: ambiguous option: $1
30604 Try \`$0 --help' for more information." >&2
30605    { (exit 1); exit 1; }; };;
30606   --help | --hel | -h )
30607     echo "$ac_cs_usage"; exit ;;
30608   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30609   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30610     ac_cs_silent=: ;;
30611
30612   # This is an error.
30613   -*) { echo "$as_me: error: unrecognized option: $1
30614 Try \`$0 --help' for more information." >&2
30615    { (exit 1); exit 1; }; } ;;
30616
30617   *) ac_config_targets="$ac_config_targets $1"
30618      ac_need_defaults=false ;;
30619
30620   esac
30621   shift
30622 done
30623
30624 ac_configure_extra_args=
30625
30626 if $ac_cs_silent; then
30627   exec 6>/dev/null
30628   ac_configure_extra_args="$ac_configure_extra_args --silent"
30629 fi
30630
30631 _ACEOF
30632 cat >>$CONFIG_STATUS <<_ACEOF
30633 if \$ac_cs_recheck; then
30634   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30635   CONFIG_SHELL=$SHELL
30636   export CONFIG_SHELL
30637   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30638 fi
30639
30640 _ACEOF
30641 cat >>$CONFIG_STATUS <<\_ACEOF
30642 exec 5>>config.log
30643 {
30644   echo
30645   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30646 ## Running $as_me. ##
30647 _ASBOX
30648   echo "$ac_log"
30649 } >&5
30650
30651 _ACEOF
30652 cat >>$CONFIG_STATUS <<_ACEOF
30653 #
30654 # INIT-COMMANDS
30655 #
30656 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30657     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30658     # from automake.
30659     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30660     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30661     LINGUAS="${LINGUAS-%UNSET%}"
30662
30663
30664 _ACEOF
30665
30666 cat >>$CONFIG_STATUS <<\_ACEOF
30667
30668 # Handling of arguments.
30669 for ac_config_target in $ac_config_targets
30670 do
30671   case $ac_config_target in
30672     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30673     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30674     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30675     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30676     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30677     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30678     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30679     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30680     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30681     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30682     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30683     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30684     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30685     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30686     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30687     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30688     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30689     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30690     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30691     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30692     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30693     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30694     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30695     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30696     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30697     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30698     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30699     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30700     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30701     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30702     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30703     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30704     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30705     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30706     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30707     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30708     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30709     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30710     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30711     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30712     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30713     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30714     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30715     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30716     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30717     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30718     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30719     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30720     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30721     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30722     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30723     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30724     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30725     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30726     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30727     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30728     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30729     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30730     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30731     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30732     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30733     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30734     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30735     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30736     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30737     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30738     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30739     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30740     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30741     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30742     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30743     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30744     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30745     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30746     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30747     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30748     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30749     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30750     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30751     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30752     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30753     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30754     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30755     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30756     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30757     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30758     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30759     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30760     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30761     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30762     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30763     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30764     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30765     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30766     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30767     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30768     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30769     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30770     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30771     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30772     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30773     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30774     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30775     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30776     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30777     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30778
30779   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30780 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30781    { (exit 1); exit 1; }; };;
30782   esac
30783 done
30784
30785
30786 # If the user did not use the arguments to specify the items to instantiate,
30787 # then the envvar interface is used.  Set only those that are not.
30788 # We use the long form for the default assignment because of an extremely
30789 # bizarre bug on SunOS 4.1.3.
30790 if $ac_need_defaults; then
30791   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30792   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30793   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30794 fi
30795
30796 # Have a temporary directory for convenience.  Make it in the build tree
30797 # simply because there is no reason against having it here, and in addition,
30798 # creating and moving files from /tmp can sometimes cause problems.
30799 # Hook for its removal unless debugging.
30800 # Note that there is a small window in which the directory will not be cleaned:
30801 # after its creation but before its name has been assigned to `$tmp'.
30802 $debug ||
30803 {
30804   tmp=
30805   trap 'exit_status=$?
30806   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30807 ' 0
30808   trap '{ (exit 1); exit 1; }' 1 2 13 15
30809 }
30810 # Create a (secure) tmp directory for tmp files.
30811
30812 {
30813   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30814   test -n "$tmp" && test -d "$tmp"
30815 }  ||
30816 {
30817   tmp=./conf$$-$RANDOM
30818   (umask 077 && mkdir "$tmp")
30819 } ||
30820 {
30821    echo "$me: cannot create a temporary directory in ." >&2
30822    { (exit 1); exit 1; }
30823 }
30824
30825 #
30826 # Set up the sed scripts for CONFIG_FILES section.
30827 #
30828
30829 # No need to generate the scripts if there are no CONFIG_FILES.
30830 # This happens for instance when ./config.status config.h
30831 if test -n "$CONFIG_FILES"; then
30832
30833 _ACEOF
30834
30835 # Create sed commands to just substitute file output variables.
30836
30837 # Remaining file output variables are in a fragment that also has non-file
30838 # output varibles.
30839
30840
30841
30842 ac_delim='%!_!# '
30843 for ac_last_try in false false false false false :; do
30844   cat >conf$$subs.sed <<_ACEOF
30845 SHELL!$SHELL$ac_delim
30846 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30847 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30848 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30849 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30850 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30851 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30852 exec_prefix!$exec_prefix$ac_delim
30853 prefix!$prefix$ac_delim
30854 program_transform_name!$program_transform_name$ac_delim
30855 bindir!$bindir$ac_delim
30856 sbindir!$sbindir$ac_delim
30857 libexecdir!$libexecdir$ac_delim
30858 datarootdir!$datarootdir$ac_delim
30859 datadir!$datadir$ac_delim
30860 sysconfdir!$sysconfdir$ac_delim
30861 sharedstatedir!$sharedstatedir$ac_delim
30862 localstatedir!$localstatedir$ac_delim
30863 includedir!$includedir$ac_delim
30864 oldincludedir!$oldincludedir$ac_delim
30865 docdir!$docdir$ac_delim
30866 infodir!$infodir$ac_delim
30867 htmldir!$htmldir$ac_delim
30868 dvidir!$dvidir$ac_delim
30869 pdfdir!$pdfdir$ac_delim
30870 psdir!$psdir$ac_delim
30871 libdir!$libdir$ac_delim
30872 localedir!$localedir$ac_delim
30873 mandir!$mandir$ac_delim
30874 DEFS!$DEFS$ac_delim
30875 ECHO_C!$ECHO_C$ac_delim
30876 ECHO_N!$ECHO_N$ac_delim
30877 ECHO_T!$ECHO_T$ac_delim
30878 LIBS!$LIBS$ac_delim
30879 build_alias!$build_alias$ac_delim
30880 host_alias!$host_alias$ac_delim
30881 target_alias!$target_alias$ac_delim
30882 BUILD_DIR!$BUILD_DIR$ac_delim
30883 TOP_DIR!$TOP_DIR$ac_delim
30884 TRUEPRG!$TRUEPRG$ac_delim
30885 FALSEPRG!$FALSEPRG$ac_delim
30886 VERSION!$VERSION$ac_delim
30887 DATE!$DATE$ac_delim
30888 LSMDATE!$LSMDATE$ac_delim
30889 CC!$CC$ac_delim
30890 CFLAGS!$CFLAGS$ac_delim
30891 LDFLAGS!$LDFLAGS$ac_delim
30892 CPPFLAGS!$CPPFLAGS$ac_delim
30893 ac_ct_CC!$ac_ct_CC$ac_delim
30894 EXEEXT!$EXEEXT$ac_delim
30895 OBJEXT!$OBJEXT$ac_delim
30896 CXX!$CXX$ac_delim
30897 CXXFLAGS!$CXXFLAGS$ac_delim
30898 ac_ct_CXX!$ac_ct_CXX$ac_delim
30899 CPP!$CPP$ac_delim
30900 GREP!$GREP$ac_delim
30901 EGREP!$EGREP$ac_delim
30902 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30903 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30904 INSTALL_DATA!$INSTALL_DATA$ac_delim
30905 RANLIB!$RANLIB$ac_delim
30906 MV!$MV$ac_delim
30907 RM!$RM$ac_delim
30908 CP!$CP$ac_delim
30909 SED!$SED$ac_delim
30910 ECHO!$ECHO$ac_delim
30911 CMP!$CMP$ac_delim
30912 TBL!$TBL$ac_delim
30913 AR!$AR$ac_delim
30914 OPENSSL!$OPENSSL$ac_delim
30915 MTX!$MTX$ac_delim
30916 DD!$DD$ac_delim
30917 MKISOFS!$MKISOFS$ac_delim
30918 PYTHON!$PYTHON$ac_delim
30919 GROWISOFS!$GROWISOFS$ac_delim
30920 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30921 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30922 PKGCONFIG!$PKGCONFIG$ac_delim
30923 QMAKE!$QMAKE$ac_delim
30924 QMAKEQT4!$QMAKEQT4$ac_delim
30925 WXCONFIG!$WXCONFIG$ac_delim
30926 WXFLAGS!$WXFLAGS$ac_delim
30927 CDRECORD!$CDRECORD$ac_delim
30928 PIDOF!$PIDOF$ac_delim
30929 AWK!$AWK$ac_delim
30930 ARFLAGS!$ARFLAGS$ac_delim
30931 MAKE_SHELL!$MAKE_SHELL$ac_delim
30932 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30933 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30934 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30935 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30936 build!$build$ac_delim
30937 build_cpu!$build_cpu$ac_delim
30938 build_vendor!$build_vendor$ac_delim
30939 _ACEOF
30940
30941   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30942     break
30943   elif $ac_last_try; then
30944     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30945 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30946    { (exit 1); exit 1; }; }
30947   else
30948     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30949   fi
30950 done
30951
30952 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30953 if test -n "$ac_eof"; then
30954   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30955   ac_eof=`expr $ac_eof + 1`
30956 fi
30957
30958 cat >>$CONFIG_STATUS <<_ACEOF
30959 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30960 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30961 /^[      ]*@MCOMMON@[    ]*$/{
30962 r $MCOMMON
30963 d
30964 }
30965 _ACEOF
30966 sed '
30967 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30968 s/^/s,@/; s/!/@,|#_!!_#|/
30969 :n
30970 t n
30971 s/'"$ac_delim"'$/,g/; t
30972 s/$/\\/; p
30973 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30974 ' >>$CONFIG_STATUS <conf$$subs.sed
30975 rm -f conf$$subs.sed
30976 cat >>$CONFIG_STATUS <<_ACEOF
30977 CEOF$ac_eof
30978 _ACEOF
30979
30980
30981 ac_delim='%!_!# '
30982 for ac_last_try in false false false false false :; do
30983   cat >conf$$subs.sed <<_ACEOF
30984 build_os!$build_os$ac_delim
30985 host!$host$ac_delim
30986 host_cpu!$host_cpu$ac_delim
30987 host_vendor!$host_vendor$ac_delim
30988 host_os!$host_os$ac_delim
30989 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
30990 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
30991 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
30992 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
30993 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
30994 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
30995 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
30996 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
30997 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
30998 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
30999 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31000 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31001 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31002 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31003 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31004 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31005 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31006 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31007 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31008 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31009 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31010 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31011 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31012 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31013 SET_MAKE!$SET_MAKE$ac_delim
31014 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31015 USE_NLS!$USE_NLS$ac_delim
31016 MSGFMT!$MSGFMT$ac_delim
31017 GMSGFMT!$GMSGFMT$ac_delim
31018 XGETTEXT!$XGETTEXT$ac_delim
31019 MSGMERGE!$MSGMERGE$ac_delim
31020 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31021 LIBICONV!$LIBICONV$ac_delim
31022 LTLIBICONV!$LTLIBICONV$ac_delim
31023 INTLLIBS!$INTLLIBS$ac_delim
31024 LIBINTL!$LIBINTL$ac_delim
31025 LTLIBINTL!$LTLIBINTL$ac_delim
31026 POSUB!$POSUB$ac_delim
31027 GLIBC2!$GLIBC2$ac_delim
31028 ALLOCA!$ALLOCA$ac_delim
31029 GLIBC21!$GLIBC21$ac_delim
31030 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31031 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31032 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31033 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31034 INTLBISON!$INTLBISON$ac_delim
31035 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31036 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31037 CATOBJEXT!$CATOBJEXT$ac_delim
31038 DATADIRNAME!$DATADIRNAME$ac_delim
31039 INSTOBJEXT!$INSTOBJEXT$ac_delim
31040 GENCAT!$GENCAT$ac_delim
31041 INTLOBJS!$INTLOBJS$ac_delim
31042 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31043 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31044 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31045 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31046 GNOME_LIBS!$GNOME_LIBS$ac_delim
31047 GNOME_DIR!$GNOME_DIR$ac_delim
31048 BAT_DIR!$BAT_DIR$ac_delim
31049 QWT_INC!$QWT_INC$ac_delim
31050 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31051 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31052 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31053 WX_DIR!$WX_DIR$ac_delim
31054 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31055 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31056 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31057 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31058 STATIC_FD!$STATIC_FD$ac_delim
31059 STATIC_SD!$STATIC_SD$ac_delim
31060 STATIC_DIR!$STATIC_DIR$ac_delim
31061 STATIC_CONS!$STATIC_CONS$ac_delim
31062 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31063 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31064 ALL_DIRS!$ALL_DIRS$ac_delim
31065 DIRD_DIR!$DIRD_DIR$ac_delim
31066 DIR_TOOLS!$DIR_TOOLS$ac_delim
31067 STORED_DIR!$STORED_DIR$ac_delim
31068 CONS_INC!$CONS_INC$ac_delim
31069 CONS_OBJ!$CONS_OBJ$ac_delim
31070 CONS_SRC!$CONS_SRC$ac_delim
31071 CONS_LIBS!$CONS_LIBS$ac_delim
31072 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31073 READLINE_SRC!$READLINE_SRC$ac_delim
31074 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31075 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31076 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31077 OPENSSL_INC!$OPENSSL_INC$ac_delim
31078 working_dir!$working_dir$ac_delim
31079 archivedir!$archivedir$ac_delim
31080 scriptdir!$scriptdir$ac_delim
31081 _ACEOF
31082
31083   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31084     break
31085   elif $ac_last_try; then
31086     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31087 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31088    { (exit 1); exit 1; }; }
31089   else
31090     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31091   fi
31092 done
31093
31094 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31095 if test -n "$ac_eof"; then
31096   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31097   ac_eof=`expr $ac_eof + 1`
31098 fi
31099
31100 cat >>$CONFIG_STATUS <<_ACEOF
31101 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31102 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31103 _ACEOF
31104 sed '
31105 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31106 s/^/s,@/; s/!/@,|#_!!_#|/
31107 :n
31108 t n
31109 s/'"$ac_delim"'$/,g/; t
31110 s/$/\\/; p
31111 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31112 ' >>$CONFIG_STATUS <conf$$subs.sed
31113 rm -f conf$$subs.sed
31114 cat >>$CONFIG_STATUS <<_ACEOF
31115 CEOF$ac_eof
31116 _ACEOF
31117
31118
31119 ac_delim='%!_!# '
31120 for ac_last_try in false false false false false :; do
31121   cat >conf$$subs.sed <<_ACEOF
31122 dump_email!$dump_email$ac_delim
31123 job_email!$job_email$ac_delim
31124 smtp_host!$smtp_host$ac_delim
31125 piddir!$piddir$ac_delim
31126 subsysdir!$subsysdir$ac_delim
31127 baseport!$baseport$ac_delim
31128 dir_port!$dir_port$ac_delim
31129 fd_port!$fd_port$ac_delim
31130 sd_port!$sd_port$ac_delim
31131 dir_password!$dir_password$ac_delim
31132 fd_password!$fd_password$ac_delim
31133 sd_password!$sd_password$ac_delim
31134 mon_dir_password!$mon_dir_password$ac_delim
31135 mon_fd_password!$mon_fd_password$ac_delim
31136 mon_sd_password!$mon_sd_password$ac_delim
31137 db_name!$db_name$ac_delim
31138 db_user!$db_user$ac_delim
31139 dir_user!$dir_user$ac_delim
31140 dir_group!$dir_group$ac_delim
31141 sd_user!$sd_user$ac_delim
31142 sd_group!$sd_group$ac_delim
31143 fd_user!$fd_user$ac_delim
31144 fd_group!$fd_group$ac_delim
31145 SBINPERM!$SBINPERM$ac_delim
31146 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31147 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31148 SQL_BINDIR!$SQL_BINDIR$ac_delim
31149 cats!$cats$ac_delim
31150 DB_TYPE!$DB_TYPE$ac_delim
31151 GETCONF!$GETCONF$ac_delim
31152 XMKMF!$XMKMF$ac_delim
31153 X_CFLAGS!$X_CFLAGS$ac_delim
31154 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31155 X_LIBS!$X_LIBS$ac_delim
31156 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31157 LIBOBJS!$LIBOBJS$ac_delim
31158 FDLIBS!$FDLIBS$ac_delim
31159 DEBUG!$DEBUG$ac_delim
31160 DINCLUDE!$DINCLUDE$ac_delim
31161 DLIB!$DLIB$ac_delim
31162 DB_LIBS!$DB_LIBS$ac_delim
31163 WCFLAGS!$WCFLAGS$ac_delim
31164 WLDFLAGS!$WLDFLAGS$ac_delim
31165 WRAPLIBS!$WRAPLIBS$ac_delim
31166 OBJLIST!$OBJLIST$ac_delim
31167 hostname!$hostname$ac_delim
31168 TAPEDRIVE!$TAPEDRIVE$ac_delim
31169 PSCMD!$PSCMD$ac_delim
31170 WIN32!$WIN32$ac_delim
31171 MACOSX!$MACOSX$ac_delim
31172 DISTNAME!$DISTNAME$ac_delim
31173 DISTVER!$DISTVER$ac_delim
31174 LTLIBOBJS!$LTLIBOBJS$ac_delim
31175 _ACEOF
31176
31177   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
31178     break
31179   elif $ac_last_try; then
31180     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31181 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31182    { (exit 1); exit 1; }; }
31183   else
31184     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31185   fi
31186 done
31187
31188 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31189 if test -n "$ac_eof"; then
31190   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31191   ac_eof=`expr $ac_eof + 1`
31192 fi
31193
31194 cat >>$CONFIG_STATUS <<_ACEOF
31195 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31196 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31197 _ACEOF
31198 sed '
31199 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31200 s/^/s,@/; s/!/@,|#_!!_#|/
31201 :n
31202 t n
31203 s/'"$ac_delim"'$/,g/; t
31204 s/$/\\/; p
31205 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31206 ' >>$CONFIG_STATUS <conf$$subs.sed
31207 rm -f conf$$subs.sed
31208 cat >>$CONFIG_STATUS <<_ACEOF
31209 :end
31210 s/|#_!!_#|//g
31211 CEOF$ac_eof
31212 _ACEOF
31213
31214
31215 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31216 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31217 # trailing colons and then remove the whole line if VPATH becomes empty
31218 # (actually we leave an empty line to preserve line numbers).
31219 if test "x$srcdir" = x.; then
31220   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31221 s/:*\$(srcdir):*/:/
31222 s/:*\${srcdir}:*/:/
31223 s/:*@srcdir@:*/:/
31224 s/^\([^=]*=[     ]*\):*/\1/
31225 s/:*$//
31226 s/^[^=]*=[       ]*$//
31227 }'
31228 fi
31229
31230 cat >>$CONFIG_STATUS <<\_ACEOF
31231 fi # test -n "$CONFIG_FILES"
31232
31233
31234 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31235 do
31236   case $ac_tag in
31237   :[FHLC]) ac_mode=$ac_tag; continue;;
31238   esac
31239   case $ac_mode$ac_tag in
31240   :[FHL]*:*);;
31241   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31242 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31243    { (exit 1); exit 1; }; };;
31244   :[FH]-) ac_tag=-:-;;
31245   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31246   esac
31247   ac_save_IFS=$IFS
31248   IFS=:
31249   set x $ac_tag
31250   IFS=$ac_save_IFS
31251   shift
31252   ac_file=$1
31253   shift
31254
31255   case $ac_mode in
31256   :L) ac_source=$1;;
31257   :[FH])
31258     ac_file_inputs=
31259     for ac_f
31260     do
31261       case $ac_f in
31262       -) ac_f="$tmp/stdin";;
31263       *) # Look for the file first in the build tree, then in the source tree
31264          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31265          # because $ac_f cannot contain `:'.
31266          test -f "$ac_f" ||
31267            case $ac_f in
31268            [\\/$]*) false;;
31269            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31270            esac ||
31271            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31272 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31273    { (exit 1); exit 1; }; };;
31274       esac
31275       ac_file_inputs="$ac_file_inputs $ac_f"
31276     done
31277
31278     # Let's still pretend it is `configure' which instantiates (i.e., don't
31279     # use $as_me), people would be surprised to read:
31280     #    /* config.h.  Generated by config.status.  */
31281     configure_input="Generated from "`IFS=:
31282           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31283     if test x"$ac_file" != x-; then
31284       configure_input="$ac_file.  $configure_input"
31285       { echo "$as_me:$LINENO: creating $ac_file" >&5
31286 echo "$as_me: creating $ac_file" >&6;}
31287     fi
31288
31289     case $ac_tag in
31290     *:-:* | *:-) cat >"$tmp/stdin";;
31291     esac
31292     ;;
31293   esac
31294
31295   ac_dir=`$as_dirname -- "$ac_file" ||
31296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31297          X"$ac_file" : 'X\(//\)[^/]' \| \
31298          X"$ac_file" : 'X\(//\)$' \| \
31299          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31300 echo X"$ac_file" |
31301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31302             s//\1/
31303             q
31304           }
31305           /^X\(\/\/\)[^/].*/{
31306             s//\1/
31307             q
31308           }
31309           /^X\(\/\/\)$/{
31310             s//\1/
31311             q
31312           }
31313           /^X\(\/\).*/{
31314             s//\1/
31315             q
31316           }
31317           s/.*/./; q'`
31318   { as_dir="$ac_dir"
31319   case $as_dir in #(
31320   -*) as_dir=./$as_dir;;
31321   esac
31322   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31323     as_dirs=
31324     while :; do
31325       case $as_dir in #(
31326       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31327       *) as_qdir=$as_dir;;
31328       esac
31329       as_dirs="'$as_qdir' $as_dirs"
31330       as_dir=`$as_dirname -- "$as_dir" ||
31331 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31332          X"$as_dir" : 'X\(//\)[^/]' \| \
31333          X"$as_dir" : 'X\(//\)$' \| \
31334          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31335 echo X"$as_dir" |
31336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31337             s//\1/
31338             q
31339           }
31340           /^X\(\/\/\)[^/].*/{
31341             s//\1/
31342             q
31343           }
31344           /^X\(\/\/\)$/{
31345             s//\1/
31346             q
31347           }
31348           /^X\(\/\).*/{
31349             s//\1/
31350             q
31351           }
31352           s/.*/./; q'`
31353       test -d "$as_dir" && break
31354     done
31355     test -z "$as_dirs" || eval "mkdir $as_dirs"
31356   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31357 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31358    { (exit 1); exit 1; }; }; }
31359   ac_builddir=.
31360
31361 case "$ac_dir" in
31362 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31363 *)
31364   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31365   # A ".." for each directory in $ac_dir_suffix.
31366   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31367   case $ac_top_builddir_sub in
31368   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31369   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31370   esac ;;
31371 esac
31372 ac_abs_top_builddir=$ac_pwd
31373 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31374 # for backward compatibility:
31375 ac_top_builddir=$ac_top_build_prefix
31376
31377 case $srcdir in
31378   .)  # We are building in place.
31379     ac_srcdir=.
31380     ac_top_srcdir=$ac_top_builddir_sub
31381     ac_abs_top_srcdir=$ac_pwd ;;
31382   [\\/]* | ?:[\\/]* )  # Absolute name.
31383     ac_srcdir=$srcdir$ac_dir_suffix;
31384     ac_top_srcdir=$srcdir
31385     ac_abs_top_srcdir=$srcdir ;;
31386   *) # Relative name.
31387     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31388     ac_top_srcdir=$ac_top_build_prefix$srcdir
31389     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31390 esac
31391 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31392
31393
31394   case $ac_mode in
31395   :F)
31396   #
31397   # CONFIG_FILE
31398   #
31399
31400   case $INSTALL in
31401   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31402   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31403   esac
31404 _ACEOF
31405
31406 cat >>$CONFIG_STATUS <<\_ACEOF
31407 # If the template does not know about datarootdir, expand it.
31408 # FIXME: This hack should be removed a few years after 2.60.
31409 ac_datarootdir_hack=; ac_datarootdir_seen=
31410
31411 case `sed -n '/datarootdir/ {
31412   p
31413   q
31414 }
31415 /@datadir@/p
31416 /@docdir@/p
31417 /@infodir@/p
31418 /@localedir@/p
31419 /@mandir@/p
31420 ' $ac_file_inputs` in
31421 *datarootdir*) ac_datarootdir_seen=yes;;
31422 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31423   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31424 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31425 _ACEOF
31426 cat >>$CONFIG_STATUS <<_ACEOF
31427   ac_datarootdir_hack='
31428   s&@datadir@&$datadir&g
31429   s&@docdir@&$docdir&g
31430   s&@infodir@&$infodir&g
31431   s&@localedir@&$localedir&g
31432   s&@mandir@&$mandir&g
31433     s&\\\${datarootdir}&$datarootdir&g' ;;
31434 esac
31435 _ACEOF
31436
31437 # Neutralize VPATH when `$srcdir' = `.'.
31438 # Shell code in configure.ac might set extrasub.
31439 # FIXME: do we really want to maintain this feature?
31440 cat >>$CONFIG_STATUS <<_ACEOF
31441   sed "$ac_vpsub
31442 $extrasub
31443 _ACEOF
31444 cat >>$CONFIG_STATUS <<\_ACEOF
31445 :t
31446 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31447 s&@configure_input@&$configure_input&;t t
31448 s&@top_builddir@&$ac_top_builddir_sub&;t t
31449 s&@srcdir@&$ac_srcdir&;t t
31450 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31451 s&@top_srcdir@&$ac_top_srcdir&;t t
31452 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31453 s&@builddir@&$ac_builddir&;t t
31454 s&@abs_builddir@&$ac_abs_builddir&;t t
31455 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31456 s&@INSTALL@&$ac_INSTALL&;t t
31457 $ac_datarootdir_hack
31458 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31459
31460 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31461   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31462   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31463   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31464 which seems to be undefined.  Please make sure it is defined." >&5
31465 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31466 which seems to be undefined.  Please make sure it is defined." >&2;}
31467
31468   rm -f "$tmp/stdin"
31469   case $ac_file in
31470   -) cat "$tmp/out"; rm -f "$tmp/out";;
31471   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31472   esac
31473  ;;
31474   :H)
31475   #
31476   # CONFIG_HEADER
31477   #
31478 _ACEOF
31479
31480 # Transform confdefs.h into a sed script `conftest.defines', that
31481 # substitutes the proper values into config.h.in to produce config.h.
31482 rm -f conftest.defines conftest.tail
31483 # First, append a space to every undef/define line, to ease matching.
31484 echo 's/$/ /' >conftest.defines
31485 # Then, protect against being on the right side of a sed subst, or in
31486 # an unquoted here document, in config.status.  If some macros were
31487 # called several times there might be several #defines for the same
31488 # symbol, which is useless.  But do not sort them, since the last
31489 # AC_DEFINE must be honored.
31490 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31491 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31492 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31493 # PARAMS is the parameter list in the macro definition--in most cases, it's
31494 # just an empty string.
31495 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31496 ac_dB='\\)[      (].*,\\1define\\2'
31497 ac_dC=' '
31498 ac_dD=' ,'
31499
31500 uniq confdefs.h |
31501   sed -n '
31502         t rset
31503         :rset
31504         s/^[     ]*#[    ]*define[       ][      ]*//
31505         t ok
31506         d
31507         :ok
31508         s/[\\&,]/\\&/g
31509         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31510         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31511   ' >>conftest.defines
31512
31513 # Remove the space that was appended to ease matching.
31514 # Then replace #undef with comments.  This is necessary, for
31515 # example, in the case of _POSIX_SOURCE, which is predefined and required
31516 # on some systems where configure will not decide to define it.
31517 # (The regexp can be short, since the line contains either #define or #undef.)
31518 echo 's/ $//
31519 s,^[     #]*u.*,/* & */,' >>conftest.defines
31520
31521 # Break up conftest.defines:
31522 ac_max_sed_lines=50
31523
31524 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31525 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31526 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31527 # et cetera.
31528 ac_in='$ac_file_inputs'
31529 ac_out='"$tmp/out1"'
31530 ac_nxt='"$tmp/out2"'
31531
31532 while :
31533 do
31534   # Write a here document:
31535     cat >>$CONFIG_STATUS <<_ACEOF
31536     # First, check the format of the line:
31537     cat >"\$tmp/defines.sed" <<\\CEOF
31538 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31539 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31540 b
31541 :def
31542 _ACEOF
31543   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31544   echo 'CEOF
31545     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31546   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31547   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31548   grep . conftest.tail >/dev/null || break
31549   rm -f conftest.defines
31550   mv conftest.tail conftest.defines
31551 done
31552 rm -f conftest.defines conftest.tail
31553
31554 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31555 cat >>$CONFIG_STATUS <<\_ACEOF
31556   if test x"$ac_file" != x-; then
31557     echo "/* $configure_input  */" >"$tmp/config.h"
31558     cat "$ac_result" >>"$tmp/config.h"
31559     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31560       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31561 echo "$as_me: $ac_file is unchanged" >&6;}
31562     else
31563       rm -f $ac_file
31564       mv "$tmp/config.h" $ac_file
31565     fi
31566   else
31567     echo "/* $configure_input  */"
31568     cat "$ac_result"
31569   fi
31570   rm -f "$tmp/out12"
31571  ;;
31572
31573   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31574 echo "$as_me: executing $ac_file commands" >&6;}
31575  ;;
31576   esac
31577
31578
31579   case $ac_file$ac_mode in
31580     "default-1":C)
31581     for ac_file in $CONFIG_FILES; do
31582       # Support "outfile[:infile[:infile...]]"
31583       case "$ac_file" in
31584         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31585       esac
31586       # PO directories have a Makefile.in generated from Makefile.in.in.
31587       case "$ac_file" in */Makefile.in)
31588         # Adjust a relative srcdir.
31589         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31590         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31591         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31592         # In autoconf-2.13 it is called $ac_given_srcdir.
31593         # In autoconf-2.50 it is called $srcdir.
31594         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31595         case "$ac_given_srcdir" in
31596           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31597           /*) top_srcdir="$ac_given_srcdir" ;;
31598           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31599         esac
31600         # Treat a directory as a PO directory if and only if it has a
31601         # POTFILES.in file. This allows packages to have multiple PO
31602         # directories under different names or in different locations.
31603         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31604           rm -f "$ac_dir/POTFILES"
31605           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31606           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31607           POMAKEFILEDEPS="POTFILES.in"
31608           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31609           # on $ac_dir but don't depend on user-specified configuration
31610           # parameters.
31611           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31612             # The LINGUAS file contains the set of available languages.
31613             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31614               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31615             fi
31616             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31617             # Hide the ALL_LINGUAS assigment from automake.
31618             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31619             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31620           else
31621             # The set of available languages was given in configure.in.
31622             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31623           fi
31624           # Compute POFILES
31625           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31626           # Compute UPDATEPOFILES
31627           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31628           # Compute DUMMYPOFILES
31629           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31630           # Compute GMOFILES
31631           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31632           case "$ac_given_srcdir" in
31633             .) srcdirpre= ;;
31634             *) srcdirpre='$(srcdir)/' ;;
31635           esac
31636           POFILES=
31637           UPDATEPOFILES=
31638           DUMMYPOFILES=
31639           GMOFILES=
31640           for lang in $ALL_LINGUAS; do
31641             POFILES="$POFILES $srcdirpre$lang.po"
31642             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31643             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31644             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31645           done
31646           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31647           # environment variable.
31648           INST_LINGUAS=
31649           if test -n "$ALL_LINGUAS"; then
31650             for presentlang in $ALL_LINGUAS; do
31651               useit=no
31652               if test "%UNSET%" != "$LINGUAS"; then
31653                 desiredlanguages="$LINGUAS"
31654               else
31655                 desiredlanguages="$ALL_LINGUAS"
31656               fi
31657               for desiredlang in $desiredlanguages; do
31658                 # Use the presentlang catalog if desiredlang is
31659                 #   a. equal to presentlang, or
31660                 #   b. a variant of presentlang (because in this case,
31661                 #      presentlang can be used as a fallback for messages
31662                 #      which are not translated in the desiredlang catalog).
31663                 case "$desiredlang" in
31664                   "$presentlang"*) useit=yes;;
31665                 esac
31666               done
31667               if test $useit = yes; then
31668                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31669               fi
31670             done
31671           fi
31672           CATALOGS=
31673           if test -n "$INST_LINGUAS"; then
31674             for lang in $INST_LINGUAS; do
31675               CATALOGS="$CATALOGS $lang.gmo"
31676             done
31677           fi
31678           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31679           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"
31680           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31681             if test -f "$f"; then
31682               case "$f" in
31683                 *.orig | *.bak | *~) ;;
31684                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31685               esac
31686             fi
31687           done
31688         fi
31689         ;;
31690       esac
31691     done ;;
31692     "default":C)
31693  ;;
31694
31695   esac
31696 done # for ac_tag
31697
31698
31699 { (exit 0); exit 0; }
31700 _ACEOF
31701 chmod +x $CONFIG_STATUS
31702 ac_clean_files=$ac_clean_files_save
31703
31704
31705 # configure is writing to config.log, and then calls config.status.
31706 # config.status does its own redirection, appending to config.log.
31707 # Unfortunately, on DOS this fails, as config.log is still kept open
31708 # by configure, so config.status won't be able to write to it; its
31709 # output is simply discarded.  So we exec the FD to /dev/null,
31710 # effectively closing config.log, so it can be properly (re)opened and
31711 # appended to by config.status.  When coming back to configure, we
31712 # need to make the FD available again.
31713 if test "$no_create" != yes; then
31714   ac_cs_success=:
31715   ac_config_status_args=
31716   test "$silent" = yes &&
31717     ac_config_status_args="$ac_config_status_args --quiet"
31718   exec 5>/dev/null
31719   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31720   exec 5>>config.log
31721   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31722   # would make configure fail if this is the last instruction.
31723   $ac_cs_success || { (exit 1); exit 1; }
31724 fi
31725
31726
31727 if test "${support_bat}" = "yes" ; then
31728   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31729   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31730   exit 1
31731   fi
31732
31733   QMAKEBIN="qmake"
31734
31735   if test "x$QMAKEQT4" != "xnone"; then
31736     QMAKEBIN=qmake-qt4
31737   fi
31738
31739
31740
31741   cd src/qt-console
31742   chmod 755 install_conf_file build-depkgs-qt-console
31743   echo "Creating bat Makefile"
31744   $QMAKEBIN
31745   cd ${BUILD_DIR}
31746 fi
31747
31748 echo "Doing make of dependencies"
31749 ${MAKE:-make} depend
31750
31751 cd scripts
31752 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31753 chmod 755 dvd-handler dvd-simulator
31754 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31755 cd ..
31756
31757 c=src/cats
31758
31759 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31760 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31761
31762 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31763 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31764
31765 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31766 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31767
31768 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31769 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31770
31771 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31772 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31773
31774 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31775 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31776
31777 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31778 chmod 755 $c/sqlite
31779 chmod 755 $c/mysql
31780
31781 chmod 755 src/win32/build-depkgs-mingw32
31782
31783
31784
31785 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31786    largefile_support="yes"
31787 fi
31788
31789 #
31790 # A whole lot of hand springs to get the compiler version.
31791 #  This is because gcc changed the output in version 3.0
31792 #
31793 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31794 if test "x${CCVERSION}" = "x" ; then
31795   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31796 fi
31797 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31798 if test x"${CXXVERSION}" = x ; then
31799   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31800 fi
31801
31802 if test "x${subsysdir}" = "x${sbindir}" ; then
31803    echo " "
31804    echo " "
31805    echo "You have set --sbindir and --with-subsys-dir"
31806    echo "  both equal to: ${subsysdir} "
31807    echo "  This is not permitted. Please reconfigure."
31808    echo " "
31809    echo "Aborting configuration ..."
31810    echo " "
31811    echo " "
31812    exit 1
31813 fi
31814
31815 if test "x${db_type}" = "xInternal" ; then
31816    echo " "
31817    echo " "
31818    echo "You have not specified either --enable-client-only or one of the"
31819    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31820    echo "  This is not permitted. Please reconfigure."
31821    echo " "
31822    echo "Aborting the configuration ..."
31823    echo " "
31824    echo " "
31825    exit 1
31826 fi
31827
31828 echo "
31829 Configuration on `date`:
31830
31831   Host:                       $host -- ${DISTNAME} ${DISTVER}
31832   Bacula version:             ${VERSION} (${DATE})
31833   Source code location:       ${srcdir}
31834   Install binaries:           ${sbindir}
31835   Install config files:       ${sysconfdir}
31836   Scripts directory:          ${scriptdir}
31837   Archive directory:          ${archivedir}
31838   Working directory:          ${working_dir}
31839   PID directory:              ${piddir}
31840   Subsys directory:           ${subsysdir}
31841   Man directory:              ${mandir}
31842   Data directory:             ${datadir}
31843   C Compiler:                 ${CC} ${CCVERSION}
31844   C++ Compiler:               ${CXX} ${CXXVERSION}
31845   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31846   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31847   Libraries:                  ${LIBS}
31848   Statically Linked Tools:    ${support_static_tools}
31849   Statically Linked FD:       ${support_static_fd}
31850   Statically Linked SD:       ${support_static_sd}
31851   Statically Linked DIR:      ${support_static_dir}
31852   Statically Linked CONS:     ${support_static_cons}
31853   Database type:              ${db_type}
31854   Database lib:               ${DB_LIBS}
31855   Database name:              ${db_name}
31856   Database user:              ${db_user}
31857
31858   Job Output Email:           ${job_email}
31859   Traceback Email:            ${dump_email}
31860   SMTP Host Address:          ${smtp_host}
31861
31862   Director Port:              ${dir_port}
31863   File daemon Port:           ${fd_port}
31864   Storage daemon Port:        ${sd_port}
31865
31866   Director User:              ${dir_user}
31867   Director Group:             ${dir_group}
31868   Storage Daemon User:        ${sd_user}
31869   Storage DaemonGroup:        ${sd_group}
31870   File Daemon User:           ${fd_user}
31871   File Daemon Group:          ${fd_group}
31872
31873   SQL binaries Directory      ${SQL_BINDIR}
31874
31875   Large file support:         $largefile_support
31876   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31877   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31878   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31879   TLS support:                ${support_tls}
31880   Encryption support:         ${support_crypto}
31881   ZLIB support:               ${have_zlib}
31882   enable-smartalloc:          ${support_smartalloc}
31883   bat support:                ${support_bat} ${QWT_LDFLAGS}
31884   enable-gnome:               ${support_gnome} ${gnome_version}
31885   enable-bwx-console:         ${support_wx_console} ${wx_version}
31886   enable-tray-monitor:        ${support_tray_monitor}
31887   client-only:                ${build_client_only}
31888   build-dird:                 ${build_dird}
31889   build-stored:               ${build_stored}
31890   ACL support:                ${have_acl}
31891   Python support:             ${support_python} ${PYTHON_LIBS}
31892   Batch insert enabled:       ${support_batch_insert}
31893
31894   " > config.out
31895
31896 cat config.out