]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Apply patch (with some difficulties) from Joao Henrique Freitas
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 WXCONS_CPPFLAGS
778 WXCONS_LDFLAGS
779 WX_DIR
780 TRAY_MONITOR_CPPFLAGS
781 TRAY_MONITOR_LDFLAGS
782 TRAY_MONITOR_DIR
783 TTOOL_LDFLAGS
784 STATIC_FD
785 STATIC_SD
786 STATIC_DIR
787 STATIC_CONS
788 STATIC_GNOME_CONS
789 STATIC_WX_CONS
790 ALL_DIRS
791 DIRD_DIR
792 DIR_TOOLS
793 STORED_DIR
794 CONS_INC
795 CONS_OBJ
796 CONS_SRC
797 CONS_LIBS
798 CONS_LDFLAGS
799 READLINE_SRC
800 PYTHON_LIBS
801 PYTHON_INCDIR
802 OPENSSL_LIBS
803 OPENSSL_INC
804 working_dir
805 archivedir
806 scriptdir
807 dump_email
808 job_email
809 smtp_host
810 piddir
811 subsysdir
812 baseport
813 dir_port
814 fd_port
815 sd_port
816 dir_password
817 fd_password
818 sd_password
819 mon_dir_password
820 mon_fd_password
821 mon_sd_password
822 db_name
823 db_user
824 dir_user
825 dir_group
826 sd_user
827 sd_group
828 fd_user
829 fd_group
830 SBINPERM
831 SQL_LFLAGS
832 SQL_INCLUDE
833 SQL_BINDIR
834 DBI_DBD_DRIVERDIR
835 cats
836 DB_TYPE
837 GETCONF
838 XMKMF
839 X_CFLAGS
840 X_PRE_LIBS
841 X_LIBS
842 X_EXTRA_LIBS
843 LIBOBJS
844 FDLIBS
845 DEBUG
846 DINCLUDE
847 DLIB
848 DB_LIBS
849 WCFLAGS
850 WLDFLAGS
851 WRAPLIBS
852 OBJLIST
853 hostname
854 TAPEDRIVE
855 PSCMD
856 WIN32
857 MACOSX
858 DISTNAME
859 DISTVER
860 LTLIBOBJS'
861 ac_subst_files='MCOMMON'
862       ac_precious_vars='build_alias
863 host_alias
864 target_alias
865 CC
866 CFLAGS
867 LDFLAGS
868 LIBS
869 CPPFLAGS
870 CXX
871 CXXFLAGS
872 CCC
873 CPP
874 WXCONFIG
875 WXFLAGS
876 XMKMF'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
898
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
924
925 ac_prev=
926 ac_dashdash=
927 for ac_option
928 do
929   # If the previous option needs an argument, assign it.
930   if test -n "$ac_prev"; then
931     eval $ac_prev=\$ac_option
932     ac_prev=
933     continue
934   fi
935
936   case $ac_option in
937   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938   *)    ac_optarg=yes ;;
939   esac
940
941   # Accept the important Cygnus configure options, so we can diagnose typos.
942
943   case $ac_dashdash$ac_option in
944   --)
945     ac_dashdash=yes ;;
946
947   -bindir | --bindir | --bindi | --bind | --bin | --bi)
948     ac_prev=bindir ;;
949   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
950     bindir=$ac_optarg ;;
951
952   -build | --build | --buil | --bui | --bu)
953     ac_prev=build_alias ;;
954   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
955     build_alias=$ac_optarg ;;
956
957   -cache-file | --cache-file | --cache-fil | --cache-fi \
958   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
959     ac_prev=cache_file ;;
960   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
961   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
962     cache_file=$ac_optarg ;;
963
964   --config-cache | -C)
965     cache_file=config.cache ;;
966
967   -datadir | --datadir | --datadi | --datad)
968     ac_prev=datadir ;;
969   -datadir=* | --datadir=* | --datadi=* | --datad=*)
970     datadir=$ac_optarg ;;
971
972   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
973   | --dataroo | --dataro | --datar)
974     ac_prev=datarootdir ;;
975   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
976   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
977     datarootdir=$ac_optarg ;;
978
979   -disable-* | --disable-*)
980     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
981     # Reject names that are not valid shell variable names.
982     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
983       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
984    { (exit 1); exit 1; }; }
985     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
986     eval enable_$ac_feature=no ;;
987
988   -docdir | --docdir | --docdi | --doc | --do)
989     ac_prev=docdir ;;
990   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991     docdir=$ac_optarg ;;
992
993   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994     ac_prev=dvidir ;;
995   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996     dvidir=$ac_optarg ;;
997
998   -enable-* | --enable-*)
999     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003    { (exit 1); exit 1; }; }
1004     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005     eval enable_$ac_feature=\$ac_optarg ;;
1006
1007   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009   | --exec | --exe | --ex)
1010     ac_prev=exec_prefix ;;
1011   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013   | --exec=* | --exe=* | --ex=*)
1014     exec_prefix=$ac_optarg ;;
1015
1016   -gas | --gas | --ga | --g)
1017     # Obsolete; use --with-gas.
1018     with_gas=yes ;;
1019
1020   -help | --help | --hel | --he | -h)
1021     ac_init_help=long ;;
1022   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023     ac_init_help=recursive ;;
1024   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025     ac_init_help=short ;;
1026
1027   -host | --host | --hos | --ho)
1028     ac_prev=host_alias ;;
1029   -host=* | --host=* | --hos=* | --ho=*)
1030     host_alias=$ac_optarg ;;
1031
1032   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033     ac_prev=htmldir ;;
1034   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035   | --ht=*)
1036     htmldir=$ac_optarg ;;
1037
1038   -includedir | --includedir | --includedi | --included | --include \
1039   | --includ | --inclu | --incl | --inc)
1040     ac_prev=includedir ;;
1041   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042   | --includ=* | --inclu=* | --incl=* | --inc=*)
1043     includedir=$ac_optarg ;;
1044
1045   -infodir | --infodir | --infodi | --infod | --info | --inf)
1046     ac_prev=infodir ;;
1047   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048     infodir=$ac_optarg ;;
1049
1050   -libdir | --libdir | --libdi | --libd)
1051     ac_prev=libdir ;;
1052   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053     libdir=$ac_optarg ;;
1054
1055   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056   | --libexe | --libex | --libe)
1057     ac_prev=libexecdir ;;
1058   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059   | --libexe=* | --libex=* | --libe=*)
1060     libexecdir=$ac_optarg ;;
1061
1062   -localedir | --localedir | --localedi | --localed | --locale)
1063     ac_prev=localedir ;;
1064   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065     localedir=$ac_optarg ;;
1066
1067   -localstatedir | --localstatedir | --localstatedi | --localstated \
1068   | --localstate | --localstat | --localsta | --localst | --locals)
1069     ac_prev=localstatedir ;;
1070   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072     localstatedir=$ac_optarg ;;
1073
1074   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075     ac_prev=mandir ;;
1076   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077     mandir=$ac_optarg ;;
1078
1079   -nfp | --nfp | --nf)
1080     # Obsolete; use --without-fp.
1081     with_fp=no ;;
1082
1083   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084   | --no-cr | --no-c | -n)
1085     no_create=yes ;;
1086
1087   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089     no_recursion=yes ;;
1090
1091   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093   | --oldin | --oldi | --old | --ol | --o)
1094     ac_prev=oldincludedir ;;
1095   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098     oldincludedir=$ac_optarg ;;
1099
1100   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101     ac_prev=prefix ;;
1102   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103     prefix=$ac_optarg ;;
1104
1105   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106   | --program-pre | --program-pr | --program-p)
1107     ac_prev=program_prefix ;;
1108   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110     program_prefix=$ac_optarg ;;
1111
1112   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113   | --program-suf | --program-su | --program-s)
1114     ac_prev=program_suffix ;;
1115   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117     program_suffix=$ac_optarg ;;
1118
1119   -program-transform-name | --program-transform-name \
1120   | --program-transform-nam | --program-transform-na \
1121   | --program-transform-n | --program-transform- \
1122   | --program-transform | --program-transfor \
1123   | --program-transfo | --program-transf \
1124   | --program-trans | --program-tran \
1125   | --progr-tra | --program-tr | --program-t)
1126     ac_prev=program_transform_name ;;
1127   -program-transform-name=* | --program-transform-name=* \
1128   | --program-transform-nam=* | --program-transform-na=* \
1129   | --program-transform-n=* | --program-transform-=* \
1130   | --program-transform=* | --program-transfor=* \
1131   | --program-transfo=* | --program-transf=* \
1132   | --program-trans=* | --program-tran=* \
1133   | --progr-tra=* | --program-tr=* | --program-t=*)
1134     program_transform_name=$ac_optarg ;;
1135
1136   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137     ac_prev=pdfdir ;;
1138   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139     pdfdir=$ac_optarg ;;
1140
1141   -psdir | --psdir | --psdi | --psd | --ps)
1142     ac_prev=psdir ;;
1143   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144     psdir=$ac_optarg ;;
1145
1146   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147   | -silent | --silent | --silen | --sile | --sil)
1148     silent=yes ;;
1149
1150   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151     ac_prev=sbindir ;;
1152   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153   | --sbi=* | --sb=*)
1154     sbindir=$ac_optarg ;;
1155
1156   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158   | --sharedst | --shareds | --shared | --share | --shar \
1159   | --sha | --sh)
1160     ac_prev=sharedstatedir ;;
1161   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164   | --sha=* | --sh=*)
1165     sharedstatedir=$ac_optarg ;;
1166
1167   -site | --site | --sit)
1168     ac_prev=site ;;
1169   -site=* | --site=* | --sit=*)
1170     site=$ac_optarg ;;
1171
1172   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173     ac_prev=srcdir ;;
1174   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175     srcdir=$ac_optarg ;;
1176
1177   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178   | --syscon | --sysco | --sysc | --sys | --sy)
1179     ac_prev=sysconfdir ;;
1180   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182     sysconfdir=$ac_optarg ;;
1183
1184   -target | --target | --targe | --targ | --tar | --ta | --t)
1185     ac_prev=target_alias ;;
1186   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187     target_alias=$ac_optarg ;;
1188
1189   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190     verbose=yes ;;
1191
1192   -version | --version | --versio | --versi | --vers | -V)
1193     ac_init_version=: ;;
1194
1195   -with-* | --with-*)
1196     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197     # Reject names that are not valid shell variable names.
1198     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1199       { echo "$as_me: error: invalid package name: $ac_package" >&2
1200    { (exit 1); exit 1; }; }
1201     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1202     eval with_$ac_package=\$ac_optarg ;;
1203
1204   -without-* | --without-*)
1205     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206     # Reject names that are not valid shell variable names.
1207     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208       { echo "$as_me: error: invalid package name: $ac_package" >&2
1209    { (exit 1); exit 1; }; }
1210     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1211     eval with_$ac_package=no ;;
1212
1213   --x)
1214     # Obsolete; use --with-x.
1215     with_x=yes ;;
1216
1217   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218   | --x-incl | --x-inc | --x-in | --x-i)
1219     ac_prev=x_includes ;;
1220   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1222     x_includes=$ac_optarg ;;
1223
1224   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226     ac_prev=x_libraries ;;
1227   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1229     x_libraries=$ac_optarg ;;
1230
1231   -*) { echo "$as_me: error: unrecognized option: $ac_option
1232 Try \`$0 --help' for more information." >&2
1233    { (exit 1); exit 1; }; }
1234     ;;
1235
1236   *=*)
1237     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1238     # Reject names that are not valid shell variable names.
1239     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1240       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1241    { (exit 1); exit 1; }; }
1242     eval $ac_envvar=\$ac_optarg
1243     export $ac_envvar ;;
1244
1245   *)
1246     # FIXME: should be removed in autoconf 3.0.
1247     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1248     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1249       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1250     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251     ;;
1252
1253   esac
1254 done
1255
1256 if test -n "$ac_prev"; then
1257   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1258   { echo "$as_me: error: missing argument to $ac_option" >&2
1259    { (exit 1); exit 1; }; }
1260 fi
1261
1262 # Be sure to have absolute directory names.
1263 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264                 datadir sysconfdir sharedstatedir localstatedir includedir \
1265                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266                 libdir localedir mandir
1267 do
1268   eval ac_val=\$$ac_var
1269   case $ac_val in
1270     [\\/$]* | ?:[\\/]* )  continue;;
1271     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272   esac
1273   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1274    { (exit 1); exit 1; }; }
1275 done
1276
1277 # There might be people who depend on the old broken behavior: `$host'
1278 # used to hold the argument of --host etc.
1279 # FIXME: To remove some day.
1280 build=$build_alias
1281 host=$host_alias
1282 target=$target_alias
1283
1284 # FIXME: To remove some day.
1285 if test "x$host_alias" != x; then
1286   if test "x$build_alias" = x; then
1287     cross_compiling=maybe
1288     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1289     If a cross compiler is detected then cross compile mode will be used." >&2
1290   elif test "x$build_alias" != "x$host_alias"; then
1291     cross_compiling=yes
1292   fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304   { echo "$as_me: error: Working directory cannot be determined" >&2
1305    { (exit 1); exit 1; }; }
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   { echo "$as_me: error: pwd does not report name of working directory" >&2
1308    { (exit 1); exit 1; }; }
1309
1310
1311 # Find the source files, if location was not specified.
1312 if test -z "$srcdir"; then
1313   ac_srcdir_defaulted=yes
1314   # Try the directory containing this script, then the parent directory.
1315   ac_confdir=`$as_dirname -- "$0" ||
1316 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317          X"$0" : 'X\(//\)[^/]' \| \
1318          X"$0" : 'X\(//\)$' \| \
1319          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 echo X"$0" |
1321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322             s//\1/
1323             q
1324           }
1325           /^X\(\/\/\)[^/].*/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\).*/{
1334             s//\1/
1335             q
1336           }
1337           s/.*/./; q'`
1338   srcdir=$ac_confdir
1339   if test ! -r "$srcdir/$ac_unique_file"; then
1340     srcdir=..
1341   fi
1342 else
1343   ac_srcdir_defaulted=no
1344 fi
1345 if test ! -r "$srcdir/$ac_unique_file"; then
1346   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1347   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1348    { (exit 1); exit 1; }; }
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1353    { (exit 1); exit 1; }; }
1354         pwd)`
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1357   srcdir=.
1358 fi
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1362 case $srcdir in
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 esac
1365 for ac_var in $ac_precious_vars; do
1366   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367   eval ac_env_${ac_var}_value=\$${ac_var}
1368   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370 done
1371
1372 #
1373 # Report the --help message.
1374 #
1375 if test "$ac_init_help" = "long"; then
1376   # Omit some internal or obsolete options to make the list less imposing.
1377   # This message is too long to be a string in the A/UX 3.1 sh.
1378   cat <<_ACEOF
1379 \`configure' configures this package to adapt to many kinds of systems.
1380
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE.  See below for descriptions of some of the useful variables.
1385
1386 Defaults for the options are specified in brackets.
1387
1388 Configuration:
1389   -h, --help              display this help and exit
1390       --help=short        display options specific to this package
1391       --help=recursive    display the short help of all the included packages
1392   -V, --version           display version information and exit
1393   -q, --quiet, --silent   do not print \`checking...' messages
1394       --cache-file=FILE   cache test results in FILE [disabled]
1395   -C, --config-cache      alias for \`--cache-file=config.cache'
1396   -n, --no-create         do not create output files
1397       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1398
1399 Installation directories:
1400   --prefix=PREFIX         install architecture-independent files in PREFIX
1401                           [$ac_default_prefix]
1402   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1403                           [PREFIX]
1404
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1409
1410 For better control, use the options below.
1411
1412 Fine tuning of the installation directories:
1413   --bindir=DIR           user executables [EPREFIX/bin]
1414   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1415   --libexecdir=DIR       program executables [EPREFIX/libexec]
1416   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1417   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1418   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1419   --libdir=DIR           object code libraries [EPREFIX/lib]
1420   --includedir=DIR       C header files [PREFIX/include]
1421   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1422   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1423   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1424   --infodir=DIR          info documentation [DATAROOTDIR/info]
1425   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1426   --mandir=DIR           man documentation [DATAROOTDIR/man]
1427   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1428   --htmldir=DIR          html documentation [DOCDIR]
1429   --dvidir=DIR           dvi documentation [DOCDIR]
1430   --pdfdir=DIR           pdf documentation [DOCDIR]
1431   --psdir=DIR            ps documentation [DOCDIR]
1432 _ACEOF
1433
1434   cat <<\_ACEOF
1435
1436 X features:
1437   --x-includes=DIR    X include files are in DIR
1438   --x-libraries=DIR   X library files are in DIR
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1444 fi
1445
1446 if test -n "$ac_init_help"; then
1447
1448   cat <<\_ACEOF
1449
1450 Optional Features:
1451   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1452   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1453   --disable-nls           do not use Native Language Support
1454   --disable-rpath         do not hardcode runtime library paths
1455   --enable-gnome          enable build of bgnome-console GUI disabled
1456   --enable-bat  enable build of bat Qt4 GUI disabled
1457   --enable-bwx-console     enable build of wxWidgets console disabled
1458   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1459   --enable-smartalloc     enable smartalloc debugging support disabled
1460   --enable-static-tools   enable static tape tools disabled
1461   --enable-static-fd      enable static File daemon disabled
1462   --enable-static-sd      enable static Storage daemon disabled
1463   --enable-static-dir     enable static Director disabled
1464   --enable-static-cons    enable static Console disabled
1465   --enable-client-only    build client (File daemon) only disabled
1466   --enable-build-dird     enable building of dird (Director) enabled
1467   --enable-build-stored   enable building of stored (Storage daemon) enabled
1468  --disable-conio disable conio support enabled
1469
1470   --enable-ipv6             enable ipv6 support enabled
1471
1472   --disable-readline      disable readline support disable
1473
1474         --enable-batch-insert       enable the DB batch insert code disabled
1475   --disable-largefile     omit support for large files
1476
1477 Optional Packages:
1478   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1479   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1480   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1481   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1482   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1483   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1484   --without-libintl-prefix     don't search for libintl in includedir and libdir
1485   --with-included-gettext use the GNU gettext library included here
1486  --with-qwt[=DIR]                 specify qwt library directory
1487  --with-readline[=DIR]         specify readline library directory
1488
1489   --with-python[=DIR]   Include Python support.  DIR is the Python base
1490                           install directory, default is to search through
1491                           a number of common places for the Python files.
1492   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1493   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1494   --with-working-dir=PATH        specify path of Bacula working directory
1495   --with-archivedir=PATH        specify path of SD archive directory
1496   --with-scriptdir=PATH    specify path of Bacula scripts directory
1497   --with-dump-email=EMAIL        dump email address
1498   --with-job-email=EMAIL         job output email address
1499   --with-smtp-host=HOST          SMTP mail host address
1500   --with-pid-dir=PATH            specify location of Bacula pid files
1501   --with-subsys-dir=PATH         specify location of Bacula subsys file
1502   --with-baseport=PORT           specify base port address for daemons
1503   --with-dir-password=PASSWORD   specify Director's password
1504   --with-fd-password=PASSWORD    specify Client's password
1505   --with-sd-password=PASSWORD    specify Storage daemon's password
1506   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1507   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1508   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1509   --with-db-name=DBNAME        specify database name (default bacula)
1510   --with-db-user=UNAME         specify database user (default bacula)
1511   --with-dir-user=USER           specify user for Director daemon
1512   --with-dir-group=GROUP                 specify group for Director daemon
1513   --with-sd-user=USER            specify user for Storage daemon
1514   --with-sd-group=GROUP          specify group for Storage daemon
1515   --with-fd-user=USER            specify user for File daemon
1516   --with-fd-group=GROUP          specify group for File daemon
1517   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1518   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1519                           base install directory, defaults to /usr/local/pgsql
1520
1521   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1522                           install directory, default is to search through
1523                           a number of common places for the MySQL files.
1524
1525   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1526                           install directory, default is to search through
1527                           a number of common places for the MySQL files.
1528
1529   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1530                           install directory, default is to search through
1531                           a number of common places for the SQLite3 files.
1532
1533   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1534                           install directory, default is to search through
1535                           a number of common places for the SQLite files.
1536
1537   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1538                           install directory, default is to search through
1539                           a number of common places for the DBI files.
1540   --with-x                use the X Window System
1541
1542 Some influential environment variables:
1543   CC          C compiler command
1544   CFLAGS      C compiler flags
1545   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1546               nonstandard directory <lib dir>
1547   LIBS        libraries to pass to the linker, e.g. -l<library>
1548   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1549               you have headers in a nonstandard directory <include dir>
1550   CXX         C++ compiler command
1551   CXXFLAGS    C++ compiler flags
1552   CPP         C preprocessor
1553   WXCONFIG    wx-config command. On some systems, you must set it to
1554               wx-config-2.6 to use wxWidgets 2.6.
1555   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1556   XMKMF       Path to xmkmf, Makefile generator for X Window System
1557
1558 Use these variables to override the choices made by `configure' or to help
1559 it to find libraries and programs with nonstandard names/locations.
1560
1561 _ACEOF
1562 ac_status=$?
1563 fi
1564
1565 if test "$ac_init_help" = "recursive"; then
1566   # If there are subdirs, report their specific --help.
1567   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568     test -d "$ac_dir" || continue
1569     ac_builddir=.
1570
1571 case "$ac_dir" in
1572 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 *)
1574   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1575   # A ".." for each directory in $ac_dir_suffix.
1576   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1577   case $ac_top_builddir_sub in
1578   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580   esac ;;
1581 esac
1582 ac_abs_top_builddir=$ac_pwd
1583 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584 # for backward compatibility:
1585 ac_top_builddir=$ac_top_build_prefix
1586
1587 case $srcdir in
1588   .)  # We are building in place.
1589     ac_srcdir=.
1590     ac_top_srcdir=$ac_top_builddir_sub
1591     ac_abs_top_srcdir=$ac_pwd ;;
1592   [\\/]* | ?:[\\/]* )  # Absolute name.
1593     ac_srcdir=$srcdir$ac_dir_suffix;
1594     ac_top_srcdir=$srcdir
1595     ac_abs_top_srcdir=$srcdir ;;
1596   *) # Relative name.
1597     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598     ac_top_srcdir=$ac_top_build_prefix$srcdir
1599     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 esac
1601 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603     cd "$ac_dir" || { ac_status=$?; continue; }
1604     # Check for guested configure.
1605     if test -f "$ac_srcdir/configure.gnu"; then
1606       echo &&
1607       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608     elif test -f "$ac_srcdir/configure"; then
1609       echo &&
1610       $SHELL "$ac_srcdir/configure" --help=recursive
1611     else
1612       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613     fi || ac_status=$?
1614     cd "$ac_pwd" || { ac_status=$?; break; }
1615   done
1616 fi
1617
1618 test -n "$ac_init_help" && exit $ac_status
1619 if $ac_init_version; then
1620   cat <<\_ACEOF
1621 configure
1622 generated by GNU Autoconf 2.61
1623
1624 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1625 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629   exit
1630 fi
1631 cat >config.log <<_ACEOF
1632 This file contains any messages produced by compilers while
1633 running configure, to aid debugging if configure makes a mistake.
1634
1635 It was created by $as_me, which was
1636 generated by GNU Autoconf 2.61.  Invocation command line was
1637
1638   $ $0 $@
1639
1640 _ACEOF
1641 exec 5>>config.log
1642 {
1643 cat <<_ASUNAME
1644 ## --------- ##
1645 ## Platform. ##
1646 ## --------- ##
1647
1648 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1649 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1650 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1651 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1652 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1653
1654 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1655 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1656
1657 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1658 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1659 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1660 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1661 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1662 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1663 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1664
1665 _ASUNAME
1666
1667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668 for as_dir in $PATH
1669 do
1670   IFS=$as_save_IFS
1671   test -z "$as_dir" && as_dir=.
1672   echo "PATH: $as_dir"
1673 done
1674 IFS=$as_save_IFS
1675
1676 } >&5
1677
1678 cat >&5 <<_ACEOF
1679
1680
1681 ## ----------- ##
1682 ## Core tests. ##
1683 ## ----------- ##
1684
1685 _ACEOF
1686
1687
1688 # Keep a trace of the command line.
1689 # Strip out --no-create and --no-recursion so they do not pile up.
1690 # Strip out --silent because we don't want to record it for future runs.
1691 # Also quote any args containing shell meta-characters.
1692 # Make two passes to allow for proper duplicate-argument suppression.
1693 ac_configure_args=
1694 ac_configure_args0=
1695 ac_configure_args1=
1696 ac_must_keep_next=false
1697 for ac_pass in 1 2
1698 do
1699   for ac_arg
1700   do
1701     case $ac_arg in
1702     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1703     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1704     | -silent | --silent | --silen | --sile | --sil)
1705       continue ;;
1706     *\'*)
1707       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1708     esac
1709     case $ac_pass in
1710     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1711     2)
1712       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1713       if test $ac_must_keep_next = true; then
1714         ac_must_keep_next=false # Got value, back to normal.
1715       else
1716         case $ac_arg in
1717           *=* | --config-cache | -C | -disable-* | --disable-* \
1718           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1719           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1720           | -with-* | --with-* | -without-* | --without-* | --x)
1721             case "$ac_configure_args0 " in
1722               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1723             esac
1724             ;;
1725           -* ) ac_must_keep_next=true ;;
1726         esac
1727       fi
1728       ac_configure_args="$ac_configure_args '$ac_arg'"
1729       ;;
1730     esac
1731   done
1732 done
1733 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1734 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1735
1736 # When interrupted or exit'd, cleanup temporary files, and complete
1737 # config.log.  We remove comments because anyway the quotes in there
1738 # would cause problems or look ugly.
1739 # WARNING: Use '\'' to represent an apostrophe within the trap.
1740 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1741 trap 'exit_status=$?
1742   # Save into config.log some information that might help in debugging.
1743   {
1744     echo
1745
1746     cat <<\_ASBOX
1747 ## ---------------- ##
1748 ## Cache variables. ##
1749 ## ---------------- ##
1750 _ASBOX
1751     echo
1752     # The following way of writing the cache mishandles newlines in values,
1753 (
1754   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1755     eval ac_val=\$$ac_var
1756     case $ac_val in #(
1757     *${as_nl}*)
1758       case $ac_var in #(
1759       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1760 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1761       esac
1762       case $ac_var in #(
1763       _ | IFS | as_nl) ;; #(
1764       *) $as_unset $ac_var ;;
1765       esac ;;
1766     esac
1767   done
1768   (set) 2>&1 |
1769     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1770     *${as_nl}ac_space=\ *)
1771       sed -n \
1772         "s/'\''/'\''\\\\'\'''\''/g;
1773           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1774       ;; #(
1775     *)
1776       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1777       ;;
1778     esac |
1779     sort
1780 )
1781     echo
1782
1783     cat <<\_ASBOX
1784 ## ----------------- ##
1785 ## Output variables. ##
1786 ## ----------------- ##
1787 _ASBOX
1788     echo
1789     for ac_var in $ac_subst_vars
1790     do
1791       eval ac_val=\$$ac_var
1792       case $ac_val in
1793       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794       esac
1795       echo "$ac_var='\''$ac_val'\''"
1796     done | sort
1797     echo
1798
1799     if test -n "$ac_subst_files"; then
1800       cat <<\_ASBOX
1801 ## ------------------- ##
1802 ## File substitutions. ##
1803 ## ------------------- ##
1804 _ASBOX
1805       echo
1806       for ac_var in $ac_subst_files
1807       do
1808         eval ac_val=\$$ac_var
1809         case $ac_val in
1810         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811         esac
1812         echo "$ac_var='\''$ac_val'\''"
1813       done | sort
1814       echo
1815     fi
1816
1817     if test -s confdefs.h; then
1818       cat <<\_ASBOX
1819 ## ----------- ##
1820 ## confdefs.h. ##
1821 ## ----------- ##
1822 _ASBOX
1823       echo
1824       cat confdefs.h
1825       echo
1826     fi
1827     test "$ac_signal" != 0 &&
1828       echo "$as_me: caught signal $ac_signal"
1829     echo "$as_me: exit $exit_status"
1830   } >&5
1831   rm -f core *.core core.conftest.* &&
1832     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1833     exit $exit_status
1834 ' 0
1835 for ac_signal in 1 2 13 15; do
1836   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1837 done
1838 ac_signal=0
1839
1840 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1841 rm -f -r conftest* confdefs.h
1842
1843 # Predefined preprocessor variables.
1844
1845 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_NAME "$PACKAGE_NAME"
1847 _ACEOF
1848
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_STRING "$PACKAGE_STRING"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1867 _ACEOF
1868
1869
1870 # Let the site file select an alternate cache file if it wants to.
1871 # Prefer explicitly selected file to automatically selected ones.
1872 if test -n "$CONFIG_SITE"; then
1873   set x "$CONFIG_SITE"
1874 elif test "x$prefix" != xNONE; then
1875   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1876 else
1877   set x "$ac_default_prefix/share/config.site" \
1878         "$ac_default_prefix/etc/config.site"
1879 fi
1880 shift
1881 for ac_site_file
1882 do
1883   if test -r "$ac_site_file"; then
1884     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1885 echo "$as_me: loading site script $ac_site_file" >&6;}
1886     sed 's/^/| /' "$ac_site_file" >&5
1887     . "$ac_site_file"
1888   fi
1889 done
1890
1891 if test -r "$cache_file"; then
1892   # Some versions of bash will fail to source /dev/null (special
1893   # files actually), so we avoid doing that.
1894   if test -f "$cache_file"; then
1895     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1896 echo "$as_me: loading cache $cache_file" >&6;}
1897     case $cache_file in
1898       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1899       *)                      . "./$cache_file";;
1900     esac
1901   fi
1902 else
1903   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1904 echo "$as_me: creating cache $cache_file" >&6;}
1905   >$cache_file
1906 fi
1907
1908 # Check that the precious variables saved in the cache have kept the same
1909 # value.
1910 ac_cache_corrupted=false
1911 for ac_var in $ac_precious_vars; do
1912   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1913   eval ac_new_set=\$ac_env_${ac_var}_set
1914   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1915   eval ac_new_val=\$ac_env_${ac_var}_value
1916   case $ac_old_set,$ac_new_set in
1917     set,)
1918       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1919 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1920       ac_cache_corrupted=: ;;
1921     ,set)
1922       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1923 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1924       ac_cache_corrupted=: ;;
1925     ,);;
1926     *)
1927       if test "x$ac_old_val" != "x$ac_new_val"; then
1928         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1929 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1930         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1931 echo "$as_me:   former value:  $ac_old_val" >&2;}
1932         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1933 echo "$as_me:   current value: $ac_new_val" >&2;}
1934         ac_cache_corrupted=:
1935       fi;;
1936   esac
1937   # Pass precious variables to config.status.
1938   if test "$ac_new_set" = set; then
1939     case $ac_new_val in
1940     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1941     *) ac_arg=$ac_var=$ac_new_val ;;
1942     esac
1943     case " $ac_configure_args " in
1944       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1945       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1946     esac
1947   fi
1948 done
1949 if $ac_cache_corrupted; then
1950   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1951 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1952   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1953 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1954    { (exit 1); exit 1; }; }
1955 fi
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973 ac_ext=c
1974 ac_cpp='$CPP $CPPFLAGS'
1975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978
1979
1980 BUILD_DIR=`pwd`
1981 cd ..
1982 TOP_DIR=`pwd`
1983 cd ${BUILD_DIR}
1984
1985
1986 ac_aux_dir=
1987 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1988   if test -f "$ac_dir/install-sh"; then
1989     ac_aux_dir=$ac_dir
1990     ac_install_sh="$ac_aux_dir/install-sh -c"
1991     break
1992   elif test -f "$ac_dir/install.sh"; then
1993     ac_aux_dir=$ac_dir
1994     ac_install_sh="$ac_aux_dir/install.sh -c"
1995     break
1996   elif test -f "$ac_dir/shtool"; then
1997     ac_aux_dir=$ac_dir
1998     ac_install_sh="$ac_aux_dir/shtool install -c"
1999     break
2000   fi
2001 done
2002 if test -z "$ac_aux_dir"; then
2003   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2004 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2005    { (exit 1); exit 1; }; }
2006 fi
2007
2008 # These three variables are undocumented and unsupported,
2009 # and are intended to be withdrawn in a future Autoconf release.
2010 # They can cause serious problems if a builder's source tree is in a directory
2011 # whose full name contains unusual characters.
2012 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2013 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2014 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2015
2016
2017 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2018
2019
2020
2021
2022
2023 for ac_prog in true
2024 do
2025   # Extract the first word of "$ac_prog", so it can be a program name with args.
2026 set dummy $ac_prog; ac_word=$2
2027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2029 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   case $TRUEPRG in
2033   [\\/]* | ?:[\\/]*)
2034   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2035   ;;
2036   *)
2037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040   IFS=$as_save_IFS
2041   test -z "$as_dir" && as_dir=.
2042   for ac_exec_ext in '' $ac_executable_extensions; do
2043   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2045     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046     break 2
2047   fi
2048 done
2049 done
2050 IFS=$as_save_IFS
2051
2052   ;;
2053 esac
2054 fi
2055 TRUEPRG=$ac_cv_path_TRUEPRG
2056 if test -n "$TRUEPRG"; then
2057   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2058 echo "${ECHO_T}$TRUEPRG" >&6; }
2059 else
2060   { echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6; }
2062 fi
2063
2064
2065   test -n "$TRUEPRG" && break
2066 done
2067 test -n "$TRUEPRG" || TRUEPRG=":"
2068
2069 for ac_prog in false
2070 do
2071   # Extract the first word of "$ac_prog", so it can be a program name with args.
2072 set dummy $ac_prog; ac_word=$2
2073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2075 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2076   echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078   case $FALSEPRG in
2079   [\\/]* | ?:[\\/]*)
2080   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2081   ;;
2082   *)
2083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2090     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2091     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2092     break 2
2093   fi
2094 done
2095 done
2096 IFS=$as_save_IFS
2097
2098   ;;
2099 esac
2100 fi
2101 FALSEPRG=$ac_cv_path_FALSEPRG
2102 if test -n "$FALSEPRG"; then
2103   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2104 echo "${ECHO_T}$FALSEPRG" >&6; }
2105 else
2106   { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2108 fi
2109
2110
2111   test -n "$FALSEPRG" && break
2112 done
2113 test -n "$FALSEPRG" || FALSEPRG=":"
2114
2115
2116
2117 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2118 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2119 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2120 echo "configuring for bacula $VERSION ($DATE)"
2121
2122
2123
2124 ac_ext=c
2125 ac_cpp='$CPP $CPPFLAGS'
2126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2129 if test -n "$ac_tool_prefix"; then
2130   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2131 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   if test -n "$CC"; then
2138   ac_cv_prog_CC="$CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2142 do
2143   IFS=$as_save_IFS
2144   test -z "$as_dir" && as_dir=.
2145   for ac_exec_ext in '' $ac_executable_extensions; do
2146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2147     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2148     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149     break 2
2150   fi
2151 done
2152 done
2153 IFS=$as_save_IFS
2154
2155 fi
2156 fi
2157 CC=$ac_cv_prog_CC
2158 if test -n "$CC"; then
2159   { echo "$as_me:$LINENO: result: $CC" >&5
2160 echo "${ECHO_T}$CC" >&6; }
2161 else
2162   { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2164 fi
2165
2166
2167 fi
2168 if test -z "$ac_cv_prog_CC"; then
2169   ac_ct_CC=$CC
2170   # Extract the first word of "gcc", so it can be a program name with args.
2171 set dummy gcc; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2175   echo $ECHO_N "(cached) $ECHO_C" >&6
2176 else
2177   if test -n "$ac_ct_CC"; then
2178   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2179 else
2180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 for as_dir in $PATH
2182 do
2183   IFS=$as_save_IFS
2184   test -z "$as_dir" && as_dir=.
2185   for ac_exec_ext in '' $ac_executable_extensions; do
2186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2187     ac_cv_prog_ac_ct_CC="gcc"
2188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189     break 2
2190   fi
2191 done
2192 done
2193 IFS=$as_save_IFS
2194
2195 fi
2196 fi
2197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198 if test -n "$ac_ct_CC"; then
2199   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200 echo "${ECHO_T}$ac_ct_CC" >&6; }
2201 else
2202   { echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6; }
2204 fi
2205
2206   if test "x$ac_ct_CC" = x; then
2207     CC=""
2208   else
2209     case $cross_compiling:$ac_tool_warned in
2210 yes:)
2211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2212 whose name does not start with the host triplet.  If you think this
2213 configuration is useful to you, please write to autoconf@gnu.org." >&5
2214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2215 whose name does not start with the host triplet.  If you think this
2216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2217 ac_tool_warned=yes ;;
2218 esac
2219     CC=$ac_ct_CC
2220   fi
2221 else
2222   CC="$ac_cv_prog_CC"
2223 fi
2224
2225 if test -z "$CC"; then
2226           if test -n "$ac_tool_prefix"; then
2227     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2228 set dummy ${ac_tool_prefix}cc; ac_word=$2
2229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2231 if test "${ac_cv_prog_CC+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   if test -n "$CC"; then
2235   ac_cv_prog_CC="$CC" # Let the user override the test.
2236 else
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242   for ac_exec_ext in '' $ac_executable_extensions; do
2243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2244     ac_cv_prog_CC="${ac_tool_prefix}cc"
2245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246     break 2
2247   fi
2248 done
2249 done
2250 IFS=$as_save_IFS
2251
2252 fi
2253 fi
2254 CC=$ac_cv_prog_CC
2255 if test -n "$CC"; then
2256   { echo "$as_me:$LINENO: result: $CC" >&5
2257 echo "${ECHO_T}$CC" >&6; }
2258 else
2259   { echo "$as_me:$LINENO: result: no" >&5
2260 echo "${ECHO_T}no" >&6; }
2261 fi
2262
2263
2264   fi
2265 fi
2266 if test -z "$CC"; then
2267   # Extract the first word of "cc", so it can be a program name with args.
2268 set dummy cc; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277   ac_prog_rejected=no
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2286        ac_prog_rejected=yes
2287        continue
2288      fi
2289     ac_cv_prog_CC="cc"
2290     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291     break 2
2292   fi
2293 done
2294 done
2295 IFS=$as_save_IFS
2296
2297 if test $ac_prog_rejected = yes; then
2298   # We found a bogon in the path, so make sure we never use it.
2299   set dummy $ac_cv_prog_CC
2300   shift
2301   if test $# != 0; then
2302     # We chose a different compiler from the bogus one.
2303     # However, it has the same basename, so the bogon will be chosen
2304     # first if we set CC to just the basename; use the full file name.
2305     shift
2306     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2307   fi
2308 fi
2309 fi
2310 fi
2311 CC=$ac_cv_prog_CC
2312 if test -n "$CC"; then
2313   { echo "$as_me:$LINENO: result: $CC" >&5
2314 echo "${ECHO_T}$CC" >&6; }
2315 else
2316   { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2318 fi
2319
2320
2321 fi
2322 if test -z "$CC"; then
2323   if test -n "$ac_tool_prefix"; then
2324   for ac_prog in cl.exe
2325   do
2326     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_prog_CC+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   if test -n "$CC"; then
2334   ac_cv_prog_CC="$CC" # Let the user override the test.
2335 else
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339   IFS=$as_save_IFS
2340   test -z "$as_dir" && as_dir=.
2341   for ac_exec_ext in '' $ac_executable_extensions; do
2342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2343     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345     break 2
2346   fi
2347 done
2348 done
2349 IFS=$as_save_IFS
2350
2351 fi
2352 fi
2353 CC=$ac_cv_prog_CC
2354 if test -n "$CC"; then
2355   { echo "$as_me:$LINENO: result: $CC" >&5
2356 echo "${ECHO_T}$CC" >&6; }
2357 else
2358   { echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6; }
2360 fi
2361
2362
2363     test -n "$CC" && break
2364   done
2365 fi
2366 if test -z "$CC"; then
2367   ac_ct_CC=$CC
2368   for ac_prog in cl.exe
2369 do
2370   # Extract the first word of "$ac_prog", so it can be a program name with args.
2371 set dummy $ac_prog; ac_word=$2
2372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2375   echo $ECHO_N "(cached) $ECHO_C" >&6
2376 else
2377   if test -n "$ac_ct_CC"; then
2378   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2379 else
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381 for as_dir in $PATH
2382 do
2383   IFS=$as_save_IFS
2384   test -z "$as_dir" && as_dir=.
2385   for ac_exec_ext in '' $ac_executable_extensions; do
2386   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2387     ac_cv_prog_ac_ct_CC="$ac_prog"
2388     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2389     break 2
2390   fi
2391 done
2392 done
2393 IFS=$as_save_IFS
2394
2395 fi
2396 fi
2397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2398 if test -n "$ac_ct_CC"; then
2399   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2400 echo "${ECHO_T}$ac_ct_CC" >&6; }
2401 else
2402   { echo "$as_me:$LINENO: result: no" >&5
2403 echo "${ECHO_T}no" >&6; }
2404 fi
2405
2406
2407   test -n "$ac_ct_CC" && break
2408 done
2409
2410   if test "x$ac_ct_CC" = x; then
2411     CC=""
2412   else
2413     case $cross_compiling:$ac_tool_warned in
2414 yes:)
2415 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2416 whose name does not start with the host triplet.  If you think this
2417 configuration is useful to you, please write to autoconf@gnu.org." >&5
2418 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2419 whose name does not start with the host triplet.  If you think this
2420 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2421 ac_tool_warned=yes ;;
2422 esac
2423     CC=$ac_ct_CC
2424   fi
2425 fi
2426
2427 fi
2428
2429
2430 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: no acceptable C compiler found in \$PATH
2433 See \`config.log' for more details." >&2;}
2434    { (exit 1); exit 1; }; }
2435
2436 # Provide some information about the compiler.
2437 echo "$as_me:$LINENO: checking for C compiler version" >&5
2438 ac_compiler=`set X $ac_compile; echo $2`
2439 { (ac_try="$ac_compiler --version >&5"
2440 case "(($ac_try" in
2441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442   *) ac_try_echo=$ac_try;;
2443 esac
2444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2445   (eval "$ac_compiler --version >&5") 2>&5
2446   ac_status=$?
2447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448   (exit $ac_status); }
2449 { (ac_try="$ac_compiler -v >&5"
2450 case "(($ac_try" in
2451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452   *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455   (eval "$ac_compiler -v >&5") 2>&5
2456   ac_status=$?
2457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458   (exit $ac_status); }
2459 { (ac_try="$ac_compiler -V >&5"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_compiler -V >&5") 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }
2469
2470 cat >conftest.$ac_ext <<_ACEOF
2471 /* confdefs.h.  */
2472 _ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h.  */
2476
2477 int
2478 main ()
2479 {
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 ac_clean_files_save=$ac_clean_files
2486 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2487 # Try to create an executable without -o first, disregard a.out.
2488 # It will help us diagnose broken compilers, and finding out an intuition
2489 # of exeext.
2490 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2491 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2492 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 #
2494 # List of possible output files, starting from the most likely.
2495 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2496 # only as a last resort.  b.out is created by i960 compilers.
2497 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2498 #
2499 # The IRIX 6 linker writes into existing files which may not be
2500 # executable, retaining their permissions.  Remove them first so a
2501 # subsequent execution test works.
2502 ac_rmfiles=
2503 for ac_file in $ac_files
2504 do
2505   case $ac_file in
2506     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2507     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2508   esac
2509 done
2510 rm -f $ac_rmfiles
2511
2512 if { (ac_try="$ac_link_default"
2513 case "(($ac_try" in
2514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515   *) ac_try_echo=$ac_try;;
2516 esac
2517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2518   (eval "$ac_link_default") 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; then
2522   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2523 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2524 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2525 # so that the user can short-circuit this test for compilers unknown to
2526 # Autoconf.
2527 for ac_file in $ac_files ''
2528 do
2529   test -f "$ac_file" || continue
2530   case $ac_file in
2531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2532         ;;
2533     [ab].out )
2534         # We found the default executable, but exeext='' is most
2535         # certainly right.
2536         break;;
2537     *.* )
2538         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2539         then :; else
2540            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541         fi
2542         # We set ac_cv_exeext here because the later test for it is not
2543         # safe: cross compilers may not add the suffix if given an `-o'
2544         # argument, so we may need to know it at that point already.
2545         # Even if this section looks crufty: it has the advantage of
2546         # actually working.
2547         break;;
2548     * )
2549         break;;
2550   esac
2551 done
2552 test "$ac_cv_exeext" = no && ac_cv_exeext=
2553
2554 else
2555   ac_file=''
2556 fi
2557
2558 { echo "$as_me:$LINENO: result: $ac_file" >&5
2559 echo "${ECHO_T}$ac_file" >&6; }
2560 if test -z "$ac_file"; then
2561   echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2563
2564 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: C compiler cannot create executables
2567 See \`config.log' for more details." >&2;}
2568    { (exit 77); exit 77; }; }
2569 fi
2570
2571 ac_exeext=$ac_cv_exeext
2572
2573 # Check that the compiler produces executables we can run.  If not, either
2574 # the compiler is broken, or we cross compile.
2575 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2576 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2577 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2578 # If not cross compiling, check that we can run a simple program.
2579 if test "$cross_compiling" != yes; then
2580   if { ac_try='./$ac_file'
2581   { (case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586   (eval "$ac_try") 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; }; then
2590     cross_compiling=no
2591   else
2592     if test "$cross_compiling" = maybe; then
2593         cross_compiling=yes
2594     else
2595         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2596 If you meant to cross compile, use \`--host'.
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: cannot run C compiled programs.
2599 If you meant to cross compile, use \`--host'.
2600 See \`config.log' for more details." >&2;}
2601    { (exit 1); exit 1; }; }
2602     fi
2603   fi
2604 fi
2605 { echo "$as_me:$LINENO: result: yes" >&5
2606 echo "${ECHO_T}yes" >&6; }
2607
2608 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2609 ac_clean_files=$ac_clean_files_save
2610 # Check that the compiler produces executables we can run.  If not, either
2611 # the compiler is broken, or we cross compile.
2612 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2613 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2614 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2615 echo "${ECHO_T}$cross_compiling" >&6; }
2616
2617 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2618 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2619 if { (ac_try="$ac_link"
2620 case "(($ac_try" in
2621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2622   *) ac_try_echo=$ac_try;;
2623 esac
2624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2625   (eval "$ac_link") 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; then
2629   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2630 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2631 # work properly (i.e., refer to `conftest.exe'), while it won't with
2632 # `rm'.
2633 for ac_file in conftest.exe conftest conftest.*; do
2634   test -f "$ac_file" || continue
2635   case $ac_file in
2636     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2637     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638           break;;
2639     * ) break;;
2640   esac
2641 done
2642 else
2643   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2644 See \`config.log' for more details." >&5
2645 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2646 See \`config.log' for more details." >&2;}
2647    { (exit 1); exit 1; }; }
2648 fi
2649
2650 rm -f conftest$ac_cv_exeext
2651 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2652 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2653
2654 rm -f conftest.$ac_ext
2655 EXEEXT=$ac_cv_exeext
2656 ac_exeext=$EXEEXT
2657 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2658 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2659 if test "${ac_cv_objext+set}" = set; then
2660   echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662   cat >conftest.$ac_ext <<_ACEOF
2663 /* confdefs.h.  */
2664 _ACEOF
2665 cat confdefs.h >>conftest.$ac_ext
2666 cat >>conftest.$ac_ext <<_ACEOF
2667 /* end confdefs.h.  */
2668
2669 int
2670 main ()
2671 {
2672
2673   ;
2674   return 0;
2675 }
2676 _ACEOF
2677 rm -f conftest.o conftest.obj
2678 if { (ac_try="$ac_compile"
2679 case "(($ac_try" in
2680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681   *) ac_try_echo=$ac_try;;
2682 esac
2683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2684   (eval "$ac_compile") 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; then
2688   for ac_file in conftest.o conftest.obj conftest.*; do
2689   test -f "$ac_file" || continue;
2690   case $ac_file in
2691     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2692     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2693        break;;
2694   esac
2695 done
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2701 See \`config.log' for more details." >&5
2702 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2703 See \`config.log' for more details." >&2;}
2704    { (exit 1); exit 1; }; }
2705 fi
2706
2707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2708 fi
2709 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2710 echo "${ECHO_T}$ac_cv_objext" >&6; }
2711 OBJEXT=$ac_cv_objext
2712 ac_objext=$OBJEXT
2713 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2714 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2715 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2716   echo $ECHO_N "(cached) $ECHO_C" >&6
2717 else
2718   cat >conftest.$ac_ext <<_ACEOF
2719 /* confdefs.h.  */
2720 _ACEOF
2721 cat confdefs.h >>conftest.$ac_ext
2722 cat >>conftest.$ac_ext <<_ACEOF
2723 /* end confdefs.h.  */
2724
2725 int
2726 main ()
2727 {
2728 #ifndef __GNUC__
2729        choke me
2730 #endif
2731
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2738 case "(($ac_try" in
2739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2740   *) ac_try_echo=$ac_try;;
2741 esac
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743   (eval "$ac_compile") 2>conftest.er1
2744   ac_status=$?
2745   grep -v '^ *+' conftest.er1 >conftest.err
2746   rm -f conftest.er1
2747   cat conftest.err >&5
2748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749   (exit $ac_status); } && {
2750          test -z "$ac_c_werror_flag" ||
2751          test ! -s conftest.err
2752        } && test -s conftest.$ac_objext; then
2753   ac_compiler_gnu=yes
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758         ac_compiler_gnu=no
2759 fi
2760
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2763
2764 fi
2765 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2766 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2767 GCC=`test $ac_compiler_gnu = yes && echo yes`
2768 ac_test_CFLAGS=${CFLAGS+set}
2769 ac_save_CFLAGS=$CFLAGS
2770 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2771 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2772 if test "${ac_cv_prog_cc_g+set}" = set; then
2773   echo $ECHO_N "(cached) $ECHO_C" >&6
2774 else
2775   ac_save_c_werror_flag=$ac_c_werror_flag
2776    ac_c_werror_flag=yes
2777    ac_cv_prog_cc_g=no
2778    CFLAGS="-g"
2779    cat >conftest.$ac_ext <<_ACEOF
2780 /* confdefs.h.  */
2781 _ACEOF
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h.  */
2785
2786 int
2787 main ()
2788 {
2789
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 rm -f conftest.$ac_objext
2795 if { (ac_try="$ac_compile"
2796 case "(($ac_try" in
2797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798   *) ac_try_echo=$ac_try;;
2799 esac
2800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801   (eval "$ac_compile") 2>conftest.er1
2802   ac_status=$?
2803   grep -v '^ *+' conftest.er1 >conftest.err
2804   rm -f conftest.er1
2805   cat conftest.err >&5
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } && {
2808          test -z "$ac_c_werror_flag" ||
2809          test ! -s conftest.err
2810        } && test -s conftest.$ac_objext; then
2811   ac_cv_prog_cc_g=yes
2812 else
2813   echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2815
2816         CFLAGS=""
2817       cat >conftest.$ac_ext <<_ACEOF
2818 /* confdefs.h.  */
2819 _ACEOF
2820 cat confdefs.h >>conftest.$ac_ext
2821 cat >>conftest.$ac_ext <<_ACEOF
2822 /* end confdefs.h.  */
2823
2824 int
2825 main ()
2826 {
2827
2828   ;
2829   return 0;
2830 }
2831 _ACEOF
2832 rm -f conftest.$ac_objext
2833 if { (ac_try="$ac_compile"
2834 case "(($ac_try" in
2835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2836   *) ac_try_echo=$ac_try;;
2837 esac
2838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2839   (eval "$ac_compile") 2>conftest.er1
2840   ac_status=$?
2841   grep -v '^ *+' conftest.er1 >conftest.err
2842   rm -f conftest.er1
2843   cat conftest.err >&5
2844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845   (exit $ac_status); } && {
2846          test -z "$ac_c_werror_flag" ||
2847          test ! -s conftest.err
2848        } && test -s conftest.$ac_objext; then
2849   :
2850 else
2851   echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2853
2854         ac_c_werror_flag=$ac_save_c_werror_flag
2855          CFLAGS="-g"
2856          cat >conftest.$ac_ext <<_ACEOF
2857 /* confdefs.h.  */
2858 _ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h.  */
2862
2863 int
2864 main ()
2865 {
2866
2867   ;
2868   return 0;
2869 }
2870 _ACEOF
2871 rm -f conftest.$ac_objext
2872 if { (ac_try="$ac_compile"
2873 case "(($ac_try" in
2874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875   *) ac_try_echo=$ac_try;;
2876 esac
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878   (eval "$ac_compile") 2>conftest.er1
2879   ac_status=$?
2880   grep -v '^ *+' conftest.er1 >conftest.err
2881   rm -f conftest.er1
2882   cat conftest.err >&5
2883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884   (exit $ac_status); } && {
2885          test -z "$ac_c_werror_flag" ||
2886          test ! -s conftest.err
2887        } && test -s conftest.$ac_objext; then
2888   ac_cv_prog_cc_g=yes
2889 else
2890   echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2892
2893
2894 fi
2895
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 fi
2898
2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2900 fi
2901
2902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903    ac_c_werror_flag=$ac_save_c_werror_flag
2904 fi
2905 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2906 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2907 if test "$ac_test_CFLAGS" = set; then
2908   CFLAGS=$ac_save_CFLAGS
2909 elif test $ac_cv_prog_cc_g = yes; then
2910   if test "$GCC" = yes; then
2911     CFLAGS="-g -O2"
2912   else
2913     CFLAGS="-g"
2914   fi
2915 else
2916   if test "$GCC" = yes; then
2917     CFLAGS="-O2"
2918   else
2919     CFLAGS=
2920   fi
2921 fi
2922 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2923 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2924 if test "${ac_cv_prog_cc_c89+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   ac_cv_prog_cc_c89=no
2928 ac_save_CC=$CC
2929 cat >conftest.$ac_ext <<_ACEOF
2930 /* confdefs.h.  */
2931 _ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h.  */
2935 #include <stdarg.h>
2936 #include <stdio.h>
2937 #include <sys/types.h>
2938 #include <sys/stat.h>
2939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2940 struct buf { int x; };
2941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2942 static char *e (p, i)
2943      char **p;
2944      int i;
2945 {
2946   return p[i];
2947 }
2948 static char *f (char * (*g) (char **, int), char **p, ...)
2949 {
2950   char *s;
2951   va_list v;
2952   va_start (v,p);
2953   s = g (p, va_arg (v,int));
2954   va_end (v);
2955   return s;
2956 }
2957
2958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2959    function prototypes and stuff, but not '\xHH' hex character constants.
2960    These don't provoke an error unfortunately, instead are silently treated
2961    as 'x'.  The following induces an error, until -std is added to get
2962    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2963    array size at least.  It's necessary to write '\x00'==0 to get something
2964    that's true only with -std.  */
2965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2966
2967 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2968    inside strings and character constants.  */
2969 #define FOO(x) 'x'
2970 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2971
2972 int test (int i, double x);
2973 struct s1 {int (*f) (int a);};
2974 struct s2 {int (*f) (double a);};
2975 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2976 int argc;
2977 char **argv;
2978 int
2979 main ()
2980 {
2981 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2982   ;
2983   return 0;
2984 }
2985 _ACEOF
2986 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2987         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2988 do
2989   CC="$ac_save_CC $ac_arg"
2990   rm -f conftest.$ac_objext
2991 if { (ac_try="$ac_compile"
2992 case "(($ac_try" in
2993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994   *) ac_try_echo=$ac_try;;
2995 esac
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997   (eval "$ac_compile") 2>conftest.er1
2998   ac_status=$?
2999   grep -v '^ *+' conftest.er1 >conftest.err
3000   rm -f conftest.er1
3001   cat conftest.err >&5
3002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003   (exit $ac_status); } && {
3004          test -z "$ac_c_werror_flag" ||
3005          test ! -s conftest.err
3006        } && test -s conftest.$ac_objext; then
3007   ac_cv_prog_cc_c89=$ac_arg
3008 else
3009   echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3011
3012
3013 fi
3014
3015 rm -f core conftest.err conftest.$ac_objext
3016   test "x$ac_cv_prog_cc_c89" != "xno" && break
3017 done
3018 rm -f conftest.$ac_ext
3019 CC=$ac_save_CC
3020
3021 fi
3022 # AC_CACHE_VAL
3023 case "x$ac_cv_prog_cc_c89" in
3024   x)
3025     { echo "$as_me:$LINENO: result: none needed" >&5
3026 echo "${ECHO_T}none needed" >&6; } ;;
3027   xno)
3028     { echo "$as_me:$LINENO: result: unsupported" >&5
3029 echo "${ECHO_T}unsupported" >&6; } ;;
3030   *)
3031     CC="$CC $ac_cv_prog_cc_c89"
3032     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3033 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3034 esac
3035
3036
3037 ac_ext=c
3038 ac_cpp='$CPP $CPPFLAGS'
3039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3042
3043 ac_ext=cpp
3044 ac_cpp='$CXXCPP $CPPFLAGS'
3045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3048 if test -z "$CXX"; then
3049   if test -n "$CCC"; then
3050     CXX=$CCC
3051   else
3052     if test -n "$ac_tool_prefix"; then
3053   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3054   do
3055     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3059 if test "${ac_cv_prog_CXX+set}" = set; then
3060   echo $ECHO_N "(cached) $ECHO_C" >&6
3061 else
3062   if test -n "$CXX"; then
3063   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3067 do
3068   IFS=$as_save_IFS
3069   test -z "$as_dir" && as_dir=.
3070   for ac_exec_ext in '' $ac_executable_extensions; do
3071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3074     break 2
3075   fi
3076 done
3077 done
3078 IFS=$as_save_IFS
3079
3080 fi
3081 fi
3082 CXX=$ac_cv_prog_CXX
3083 if test -n "$CXX"; then
3084   { echo "$as_me:$LINENO: result: $CXX" >&5
3085 echo "${ECHO_T}$CXX" >&6; }
3086 else
3087   { echo "$as_me:$LINENO: result: no" >&5
3088 echo "${ECHO_T}no" >&6; }
3089 fi
3090
3091
3092     test -n "$CXX" && break
3093   done
3094 fi
3095 if test -z "$CXX"; then
3096   ac_ct_CXX=$CXX
3097   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3098 do
3099   # Extract the first word of "$ac_prog", so it can be a program name with args.
3100 set dummy $ac_prog; ac_word=$2
3101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3103 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   if test -n "$ac_ct_CXX"; then
3107   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114   for ac_exec_ext in '' $ac_executable_extensions; do
3115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116     ac_cv_prog_ac_ct_CXX="$ac_prog"
3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3127 if test -n "$ac_ct_CXX"; then
3128   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3129 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3130 else
3131   { echo "$as_me:$LINENO: result: no" >&5
3132 echo "${ECHO_T}no" >&6; }
3133 fi
3134
3135
3136   test -n "$ac_ct_CXX" && break
3137 done
3138
3139   if test "x$ac_ct_CXX" = x; then
3140     CXX="g++"
3141   else
3142     case $cross_compiling:$ac_tool_warned in
3143 yes:)
3144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3145 whose name does not start with the host triplet.  If you think this
3146 configuration is useful to you, please write to autoconf@gnu.org." >&5
3147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3148 whose name does not start with the host triplet.  If you think this
3149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3150 ac_tool_warned=yes ;;
3151 esac
3152     CXX=$ac_ct_CXX
3153   fi
3154 fi
3155
3156   fi
3157 fi
3158 # Provide some information about the compiler.
3159 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3160 ac_compiler=`set X $ac_compile; echo $2`
3161 { (ac_try="$ac_compiler --version >&5"
3162 case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167   (eval "$ac_compiler --version >&5") 2>&5
3168   ac_status=$?
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }
3171 { (ac_try="$ac_compiler -v >&5"
3172 case "(($ac_try" in
3173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174   *) ac_try_echo=$ac_try;;
3175 esac
3176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3177   (eval "$ac_compiler -v >&5") 2>&5
3178   ac_status=$?
3179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180   (exit $ac_status); }
3181 { (ac_try="$ac_compiler -V >&5"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compiler -V >&5") 2>&5
3188   ac_status=$?
3189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3190   (exit $ac_status); }
3191
3192 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3193 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3194 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3195   echo $ECHO_N "(cached) $ECHO_C" >&6
3196 else
3197   cat >conftest.$ac_ext <<_ACEOF
3198 /* confdefs.h.  */
3199 _ACEOF
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h.  */
3203
3204 int
3205 main ()
3206 {
3207 #ifndef __GNUC__
3208        choke me
3209 #endif
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 rm -f conftest.$ac_objext
3216 if { (ac_try="$ac_compile"
3217 case "(($ac_try" in
3218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219   *) ac_try_echo=$ac_try;;
3220 esac
3221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3222   (eval "$ac_compile") 2>conftest.er1
3223   ac_status=$?
3224   grep -v '^ *+' conftest.er1 >conftest.err
3225   rm -f conftest.er1
3226   cat conftest.err >&5
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); } && {
3229          test -z "$ac_cxx_werror_flag" ||
3230          test ! -s conftest.err
3231        } && test -s conftest.$ac_objext; then
3232   ac_compiler_gnu=yes
3233 else
3234   echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237         ac_compiler_gnu=no
3238 fi
3239
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3242
3243 fi
3244 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3246 GXX=`test $ac_compiler_gnu = yes && echo yes`
3247 ac_test_CXXFLAGS=${CXXFLAGS+set}
3248 ac_save_CXXFLAGS=$CXXFLAGS
3249 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3250 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cxx_g+set}" = set; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3255    ac_cxx_werror_flag=yes
3256    ac_cv_prog_cxx_g=no
3257    CXXFLAGS="-g"
3258    cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264
3265 int
3266 main ()
3267 {
3268
3269   ;
3270   return 0;
3271 }
3272 _ACEOF
3273 rm -f conftest.$ac_objext
3274 if { (ac_try="$ac_compile"
3275 case "(($ac_try" in
3276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277   *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280   (eval "$ac_compile") 2>conftest.er1
3281   ac_status=$?
3282   grep -v '^ *+' conftest.er1 >conftest.err
3283   rm -f conftest.er1
3284   cat conftest.err >&5
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); } && {
3287          test -z "$ac_cxx_werror_flag" ||
3288          test ! -s conftest.err
3289        } && test -s conftest.$ac_objext; then
3290   ac_cv_prog_cxx_g=yes
3291 else
3292   echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3294
3295         CXXFLAGS=""
3296       cat >conftest.$ac_ext <<_ACEOF
3297 /* confdefs.h.  */
3298 _ACEOF
3299 cat confdefs.h >>conftest.$ac_ext
3300 cat >>conftest.$ac_ext <<_ACEOF
3301 /* end confdefs.h.  */
3302
3303 int
3304 main ()
3305 {
3306
3307   ;
3308   return 0;
3309 }
3310 _ACEOF
3311 rm -f conftest.$ac_objext
3312 if { (ac_try="$ac_compile"
3313 case "(($ac_try" in
3314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315   *) ac_try_echo=$ac_try;;
3316 esac
3317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318   (eval "$ac_compile") 2>conftest.er1
3319   ac_status=$?
3320   grep -v '^ *+' conftest.er1 >conftest.err
3321   rm -f conftest.er1
3322   cat conftest.err >&5
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); } && {
3325          test -z "$ac_cxx_werror_flag" ||
3326          test ! -s conftest.err
3327        } && test -s conftest.$ac_objext; then
3328   :
3329 else
3330   echo "$as_me: failed program was:" >&5
3331 sed 's/^/| /' conftest.$ac_ext >&5
3332
3333         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3334          CXXFLAGS="-g"
3335          cat >conftest.$ac_ext <<_ACEOF
3336 /* confdefs.h.  */
3337 _ACEOF
3338 cat confdefs.h >>conftest.$ac_ext
3339 cat >>conftest.$ac_ext <<_ACEOF
3340 /* end confdefs.h.  */
3341
3342 int
3343 main ()
3344 {
3345
3346   ;
3347   return 0;
3348 }
3349 _ACEOF
3350 rm -f conftest.$ac_objext
3351 if { (ac_try="$ac_compile"
3352 case "(($ac_try" in
3353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354   *) ac_try_echo=$ac_try;;
3355 esac
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357   (eval "$ac_compile") 2>conftest.er1
3358   ac_status=$?
3359   grep -v '^ *+' conftest.er1 >conftest.err
3360   rm -f conftest.er1
3361   cat conftest.err >&5
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); } && {
3364          test -z "$ac_cxx_werror_flag" ||
3365          test ! -s conftest.err
3366        } && test -s conftest.$ac_objext; then
3367   ac_cv_prog_cxx_g=yes
3368 else
3369   echo "$as_me: failed program was:" >&5
3370 sed 's/^/| /' conftest.$ac_ext >&5
3371
3372
3373 fi
3374
3375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3376 fi
3377
3378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379 fi
3380
3381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3382    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3383 fi
3384 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3385 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3386 if test "$ac_test_CXXFLAGS" = set; then
3387   CXXFLAGS=$ac_save_CXXFLAGS
3388 elif test $ac_cv_prog_cxx_g = yes; then
3389   if test "$GXX" = yes; then
3390     CXXFLAGS="-g -O2"
3391   else
3392     CXXFLAGS="-g"
3393   fi
3394 else
3395   if test "$GXX" = yes; then
3396     CXXFLAGS="-O2"
3397   else
3398     CXXFLAGS=
3399   fi
3400 fi
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407 if test "x$CC" != xcc; then
3408   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3409 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3410 else
3411   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3412 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3413 fi
3414 set dummy $CC; ac_cc=`echo $2 |
3415                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3416 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3417   echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419   cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h.  */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 # Make sure it works both with $CC and with simple cc.
3435 # We do the test twice because some compilers refuse to overwrite an
3436 # existing .o file with -o, though they will create one.
3437 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3438 rm -f conftest2.*
3439 if { (case "(($ac_try" in
3440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441   *) ac_try_echo=$ac_try;;
3442 esac
3443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3444   (eval "$ac_try") 2>&5
3445   ac_status=$?
3446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447   (exit $ac_status); } &&
3448    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450   *) ac_try_echo=$ac_try;;
3451 esac
3452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453   (eval "$ac_try") 2>&5
3454   ac_status=$?
3455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456   (exit $ac_status); };
3457 then
3458   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3459   if test "x$CC" != xcc; then
3460     # Test first that cc exists at all.
3461     if { ac_try='cc -c conftest.$ac_ext >&5'
3462   { (case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; }; then
3471       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3472       rm -f conftest2.*
3473       if { (case "(($ac_try" in
3474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475   *) ac_try_echo=$ac_try;;
3476 esac
3477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3478   (eval "$ac_try") 2>&5
3479   ac_status=$?
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } &&
3482          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_try") 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); };
3491       then
3492         # cc works too.
3493         :
3494       else
3495         # cc exists but doesn't like -o.
3496         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3497       fi
3498     fi
3499   fi
3500 else
3501   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3502 fi
3503 rm -f core conftest*
3504
3505 fi
3506 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3507   { echo "$as_me:$LINENO: result: yes" >&5
3508 echo "${ECHO_T}yes" >&6; }
3509 else
3510   { echo "$as_me:$LINENO: result: no" >&5
3511 echo "${ECHO_T}no" >&6; }
3512
3513 cat >>confdefs.h <<\_ACEOF
3514 #define NO_MINUS_C_MINUS_O 1
3515 _ACEOF
3516
3517 fi
3518
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3524 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3526 # On Suns, sometimes $CPP names a directory.
3527 if test -n "$CPP" && test -d "$CPP"; then
3528   CPP=
3529 fi
3530 if test -z "$CPP"; then
3531   if test "${ac_cv_prog_CPP+set}" = set; then
3532   echo $ECHO_N "(cached) $ECHO_C" >&6
3533 else
3534       # Double quotes because CPP needs to be expanded
3535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3536     do
3537       ac_preproc_ok=false
3538 for ac_c_preproc_warn_flag in '' yes
3539 do
3540   # Use a header file that comes with gcc, so configuring glibc
3541   # with a fresh cross-compiler works.
3542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3543   # <limits.h> exists even on freestanding compilers.
3544   # On the NeXT, cc -E runs the code through the compiler's parser,
3545   # not just through cpp. "Syntax error" is here to catch this case.
3546   cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552 #ifdef __STDC__
3553 # include <limits.h>
3554 #else
3555 # include <assert.h>
3556 #endif
3557                      Syntax error
3558 _ACEOF
3559 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566   ac_status=$?
3567   grep -v '^ *+' conftest.er1 >conftest.err
3568   rm -f conftest.er1
3569   cat conftest.err >&5
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } >/dev/null && {
3572          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3573          test ! -s conftest.err
3574        }; then
3575   :
3576 else
3577   echo "$as_me: failed program was:" >&5
3578 sed 's/^/| /' conftest.$ac_ext >&5
3579
3580   # Broken: fails on valid input.
3581 continue
3582 fi
3583
3584 rm -f conftest.err conftest.$ac_ext
3585
3586   # OK, works on sane cases.  Now check whether nonexistent headers
3587   # can be detected and how.
3588   cat >conftest.$ac_ext <<_ACEOF
3589 /* confdefs.h.  */
3590 _ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h.  */
3594 #include <ac_nonexistent.h>
3595 _ACEOF
3596 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603   ac_status=$?
3604   grep -v '^ *+' conftest.er1 >conftest.err
3605   rm -f conftest.er1
3606   cat conftest.err >&5
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } >/dev/null && {
3609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610          test ! -s conftest.err
3611        }; then
3612   # Broken: success on invalid input.
3613 continue
3614 else
3615   echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3617
3618   # Passes both tests.
3619 ac_preproc_ok=:
3620 break
3621 fi
3622
3623 rm -f conftest.err conftest.$ac_ext
3624
3625 done
3626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627 rm -f conftest.err conftest.$ac_ext
3628 if $ac_preproc_ok; then
3629   break
3630 fi
3631
3632     done
3633     ac_cv_prog_CPP=$CPP
3634
3635 fi
3636   CPP=$ac_cv_prog_CPP
3637 else
3638   ac_cv_prog_CPP=$CPP
3639 fi
3640 { echo "$as_me:$LINENO: result: $CPP" >&5
3641 echo "${ECHO_T}$CPP" >&6; }
3642 ac_preproc_ok=false
3643 for ac_c_preproc_warn_flag in '' yes
3644 do
3645   # Use a header file that comes with gcc, so configuring glibc
3646   # with a fresh cross-compiler works.
3647   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648   # <limits.h> exists even on freestanding compilers.
3649   # On the NeXT, cc -E runs the code through the compiler's parser,
3650   # not just through cpp. "Syntax error" is here to catch this case.
3651   cat >conftest.$ac_ext <<_ACEOF
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #ifdef __STDC__
3658 # include <limits.h>
3659 #else
3660 # include <assert.h>
3661 #endif
3662                      Syntax error
3663 _ACEOF
3664 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } >/dev/null && {
3677          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3678          test ! -s conftest.err
3679        }; then
3680   :
3681 else
3682   echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685   # Broken: fails on valid input.
3686 continue
3687 fi
3688
3689 rm -f conftest.err conftest.$ac_ext
3690
3691   # OK, works on sane cases.  Now check whether nonexistent headers
3692   # can be detected and how.
3693   cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h.  */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h.  */
3699 #include <ac_nonexistent.h>
3700 _ACEOF
3701 if { (ac_try="$ac_cpp conftest.$ac_ext"
3702 case "(($ac_try" in
3703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704   *) ac_try_echo=$ac_try;;
3705 esac
3706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708   ac_status=$?
3709   grep -v '^ *+' conftest.er1 >conftest.err
3710   rm -f conftest.er1
3711   cat conftest.err >&5
3712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713   (exit $ac_status); } >/dev/null && {
3714          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3715          test ! -s conftest.err
3716        }; then
3717   # Broken: success on invalid input.
3718 continue
3719 else
3720   echo "$as_me: failed program was:" >&5
3721 sed 's/^/| /' conftest.$ac_ext >&5
3722
3723   # Passes both tests.
3724 ac_preproc_ok=:
3725 break
3726 fi
3727
3728 rm -f conftest.err conftest.$ac_ext
3729
3730 done
3731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3732 rm -f conftest.err conftest.$ac_ext
3733 if $ac_preproc_ok; then
3734   :
3735 else
3736   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3737 See \`config.log' for more details." >&5
3738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3739 See \`config.log' for more details." >&2;}
3740    { (exit 1); exit 1; }; }
3741 fi
3742
3743 ac_ext=c
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748
3749
3750 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3751 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3752 if test "${ac_cv_path_GREP+set}" = set; then
3753   echo $ECHO_N "(cached) $ECHO_C" >&6
3754 else
3755   # Extract the first word of "grep ggrep" to use in msg output
3756 if test -z "$GREP"; then
3757 set dummy grep ggrep; ac_prog_name=$2
3758 if test "${ac_cv_path_GREP+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   ac_path_GREP_found=false
3762 # Loop through the user's path and test for each of PROGNAME-LIST
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3765 do
3766   IFS=$as_save_IFS
3767   test -z "$as_dir" && as_dir=.
3768   for ac_prog in grep ggrep; do
3769   for ac_exec_ext in '' $ac_executable_extensions; do
3770     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3771     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3772     # Check for GNU ac_path_GREP and select it if it is found.
3773   # Check for GNU $ac_path_GREP
3774 case `"$ac_path_GREP" --version 2>&1` in
3775 *GNU*)
3776   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3777 *)
3778   ac_count=0
3779   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3780   while :
3781   do
3782     cat "conftest.in" "conftest.in" >"conftest.tmp"
3783     mv "conftest.tmp" "conftest.in"
3784     cp "conftest.in" "conftest.nl"
3785     echo 'GREP' >> "conftest.nl"
3786     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3788     ac_count=`expr $ac_count + 1`
3789     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3790       # Best one so far, save it but keep looking for a better one
3791       ac_cv_path_GREP="$ac_path_GREP"
3792       ac_path_GREP_max=$ac_count
3793     fi
3794     # 10*(2^10) chars as input seems more than enough
3795     test $ac_count -gt 10 && break
3796   done
3797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3798 esac
3799
3800
3801     $ac_path_GREP_found && break 3
3802   done
3803 done
3804
3805 done
3806 IFS=$as_save_IFS
3807
3808
3809 fi
3810
3811 GREP="$ac_cv_path_GREP"
3812 if test -z "$GREP"; then
3813   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3814 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3815    { (exit 1); exit 1; }; }
3816 fi
3817
3818 else
3819   ac_cv_path_GREP=$GREP
3820 fi
3821
3822
3823 fi
3824 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3825 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3826  GREP="$ac_cv_path_GREP"
3827
3828
3829 { echo "$as_me:$LINENO: checking for egrep" >&5
3830 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3831 if test "${ac_cv_path_EGREP+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3835    then ac_cv_path_EGREP="$GREP -E"
3836    else
3837      # Extract the first word of "egrep" to use in msg output
3838 if test -z "$EGREP"; then
3839 set dummy egrep; ac_prog_name=$2
3840 if test "${ac_cv_path_EGREP+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   ac_path_EGREP_found=false
3844 # Loop through the user's path and test for each of PROGNAME-LIST
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3847 do
3848   IFS=$as_save_IFS
3849   test -z "$as_dir" && as_dir=.
3850   for ac_prog in egrep; do
3851   for ac_exec_ext in '' $ac_executable_extensions; do
3852     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3853     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3854     # Check for GNU ac_path_EGREP and select it if it is found.
3855   # Check for GNU $ac_path_EGREP
3856 case `"$ac_path_EGREP" --version 2>&1` in
3857 *GNU*)
3858   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3859 *)
3860   ac_count=0
3861   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3862   while :
3863   do
3864     cat "conftest.in" "conftest.in" >"conftest.tmp"
3865     mv "conftest.tmp" "conftest.in"
3866     cp "conftest.in" "conftest.nl"
3867     echo 'EGREP' >> "conftest.nl"
3868     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3869     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3870     ac_count=`expr $ac_count + 1`
3871     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3872       # Best one so far, save it but keep looking for a better one
3873       ac_cv_path_EGREP="$ac_path_EGREP"
3874       ac_path_EGREP_max=$ac_count
3875     fi
3876     # 10*(2^10) chars as input seems more than enough
3877     test $ac_count -gt 10 && break
3878   done
3879   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3880 esac
3881
3882
3883     $ac_path_EGREP_found && break 3
3884   done
3885 done
3886
3887 done
3888 IFS=$as_save_IFS
3889
3890
3891 fi
3892
3893 EGREP="$ac_cv_path_EGREP"
3894 if test -z "$EGREP"; then
3895   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3896 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3897    { (exit 1); exit 1; }; }
3898 fi
3899
3900 else
3901   ac_cv_path_EGREP=$EGREP
3902 fi
3903
3904
3905    fi
3906 fi
3907 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3908 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3909  EGREP="$ac_cv_path_EGREP"
3910
3911
3912 if test $ac_cv_c_compiler_gnu = yes; then
3913     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3914 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3915 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3916   echo $ECHO_N "(cached) $ECHO_C" >&6
3917 else
3918     ac_pattern="Autoconf.*'x'"
3919   cat >conftest.$ac_ext <<_ACEOF
3920 /* confdefs.h.  */
3921 _ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h.  */
3925 #include <sgtty.h>
3926 Autoconf TIOCGETP
3927 _ACEOF
3928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3929   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3930   ac_cv_prog_gcc_traditional=yes
3931 else
3932   ac_cv_prog_gcc_traditional=no
3933 fi
3934 rm -f conftest*
3935
3936
3937   if test $ac_cv_prog_gcc_traditional = no; then
3938     cat >conftest.$ac_ext <<_ACEOF
3939 /* confdefs.h.  */
3940 _ACEOF
3941 cat confdefs.h >>conftest.$ac_ext
3942 cat >>conftest.$ac_ext <<_ACEOF
3943 /* end confdefs.h.  */
3944 #include <termio.h>
3945 Autoconf TCGETA
3946 _ACEOF
3947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3948   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3949   ac_cv_prog_gcc_traditional=yes
3950 fi
3951 rm -f conftest*
3952
3953   fi
3954 fi
3955 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3956 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3957   if test $ac_cv_prog_gcc_traditional = yes; then
3958     CC="$CC -traditional"
3959   fi
3960 fi
3961
3962 BASECC=`basename $CC`
3963 have_gcc=no
3964 if test "x$BASECC" = xgcc; then
3965    cat >>confdefs.h <<\_ACEOF
3966 #define HAVE_GCC 1
3967 _ACEOF
3968
3969    have_gcc=yes
3970 fi
3971 # Extract the first word of "$CXX", so it can be a program name with args.
3972 set dummy $CXX; ac_word=$2
3973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_CXX+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   case $CXX in
3979   [\\/]* | ?:[\\/]*)
3980   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3981   ;;
3982   *)
3983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 for as_dir in $PATH
3985 do
3986   IFS=$as_save_IFS
3987   test -z "$as_dir" && as_dir=.
3988   for ac_exec_ext in '' $ac_executable_extensions; do
3989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3990     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3991     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992     break 2
3993   fi
3994 done
3995 done
3996 IFS=$as_save_IFS
3997
3998   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3999   ;;
4000 esac
4001 fi
4002 CXX=$ac_cv_path_CXX
4003 if test -n "$CXX"; then
4004   { echo "$as_me:$LINENO: result: $CXX" >&5
4005 echo "${ECHO_T}$CXX" >&6; }
4006 else
4007   { echo "$as_me:$LINENO: result: no" >&5
4008 echo "${ECHO_T}no" >&6; }
4009 fi
4010
4011
4012 if test ! -e $CXX; then
4013    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4014 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4015    { (exit 1); exit 1; }; }
4016 fi
4017
4018 # Find a good install program.  We prefer a C program (faster),
4019 # so one script is as good as another.  But avoid the broken or
4020 # incompatible versions:
4021 # SysV /etc/install, /usr/sbin/install
4022 # SunOS /usr/etc/install
4023 # IRIX /sbin/install
4024 # AIX /bin/install
4025 # AmigaOS /C/install, which installs bootblocks on floppy discs
4026 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4027 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4028 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4029 # OS/2's system install, which has a completely different semantic
4030 # ./install, which can be erroneously created by make from ./install.sh.
4031 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4032 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4033 if test -z "$INSTALL"; then
4034 if test "${ac_cv_path_install+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4039 do
4040   IFS=$as_save_IFS
4041   test -z "$as_dir" && as_dir=.
4042   # Account for people who put trailing slashes in PATH elements.
4043 case $as_dir/ in
4044   ./ | .// | /cC/* | \
4045   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4046   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4047   /usr/ucb/* ) ;;
4048   *)
4049     # OSF1 and SCO ODT 3.0 have their own names for install.
4050     # Don't use installbsd from OSF since it installs stuff as root
4051     # by default.
4052     for ac_prog in ginstall scoinst install; do
4053       for ac_exec_ext in '' $ac_executable_extensions; do
4054         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4055           if test $ac_prog = install &&
4056             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057             # AIX install.  It has an incompatible calling convention.
4058             :
4059           elif test $ac_prog = install &&
4060             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4061             # program-specific install script used by HP pwplus--don't use.
4062             :
4063           else
4064             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4065             break 3
4066           fi
4067         fi
4068       done
4069     done
4070     ;;
4071 esac
4072 done
4073 IFS=$as_save_IFS
4074
4075
4076 fi
4077   if test "${ac_cv_path_install+set}" = set; then
4078     INSTALL=$ac_cv_path_install
4079   else
4080     # As a last resort, use the slow shell script.  Don't cache a
4081     # value for INSTALL within a source directory, because that will
4082     # break other packages using the cache if that directory is
4083     # removed, or if the value is a relative name.
4084     INSTALL=$ac_install_sh
4085   fi
4086 fi
4087 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4088 echo "${ECHO_T}$INSTALL" >&6; }
4089
4090 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4091 # It thinks the first close brace ends the variable substitution.
4092 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4093
4094 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4095
4096 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4097
4098 if test -n "$ac_tool_prefix"; then
4099   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4103 if test "${ac_cv_prog_RANLIB+set}" = set; then
4104   echo $ECHO_N "(cached) $ECHO_C" >&6
4105 else
4106   if test -n "$RANLIB"; then
4107   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112   IFS=$as_save_IFS
4113   test -z "$as_dir" && as_dir=.
4114   for ac_exec_ext in '' $ac_executable_extensions; do
4115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118     break 2
4119   fi
4120 done
4121 done
4122 IFS=$as_save_IFS
4123
4124 fi
4125 fi
4126 RANLIB=$ac_cv_prog_RANLIB
4127 if test -n "$RANLIB"; then
4128   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4129 echo "${ECHO_T}$RANLIB" >&6; }
4130 else
4131   { echo "$as_me:$LINENO: result: no" >&5
4132 echo "${ECHO_T}no" >&6; }
4133 fi
4134
4135
4136 fi
4137 if test -z "$ac_cv_prog_RANLIB"; then
4138   ac_ct_RANLIB=$RANLIB
4139   # Extract the first word of "ranlib", so it can be a program name with args.
4140 set dummy ranlib; ac_word=$2
4141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4143 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4144   echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146   if test -n "$ac_ct_RANLIB"; then
4147   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154   for ac_exec_ext in '' $ac_executable_extensions; do
4155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156     ac_cv_prog_ac_ct_RANLIB="ranlib"
4157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161 done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4167 if test -n "$ac_ct_RANLIB"; then
4168   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4169 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4170 else
4171   { echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6; }
4173 fi
4174
4175   if test "x$ac_ct_RANLIB" = x; then
4176     RANLIB=":"
4177   else
4178     case $cross_compiling:$ac_tool_warned in
4179 yes:)
4180 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4181 whose name does not start with the host triplet.  If you think this
4182 configuration is useful to you, please write to autoconf@gnu.org." >&5
4183 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4184 whose name does not start with the host triplet.  If you think this
4185 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188     RANLIB=$ac_ct_RANLIB
4189   fi
4190 else
4191   RANLIB="$ac_cv_prog_RANLIB"
4192 fi
4193
4194 # Extract the first word of "mv", so it can be a program name with args.
4195 set dummy mv; ac_word=$2
4196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4198 if test "${ac_cv_path_MV+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $MV in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219 IFS=$as_save_IFS
4220
4221   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4222   ;;
4223 esac
4224 fi
4225 MV=$ac_cv_path_MV
4226 if test -n "$MV"; then
4227   { echo "$as_me:$LINENO: result: $MV" >&5
4228 echo "${ECHO_T}$MV" >&6; }
4229 else
4230   { echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6; }
4232 fi
4233
4234
4235 # Extract the first word of "rm", so it can be a program name with args.
4236 set dummy rm; ac_word=$2
4237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4239 if test "${ac_cv_path_RM+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   case $RM in
4243   [\\/]* | ?:[\\/]*)
4244   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4245   ;;
4246   *)
4247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252   for ac_exec_ext in '' $ac_executable_extensions; do
4253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4254     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259 done
4260 IFS=$as_save_IFS
4261
4262   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4263   ;;
4264 esac
4265 fi
4266 RM=$ac_cv_path_RM
4267 if test -n "$RM"; then
4268   { echo "$as_me:$LINENO: result: $RM" >&5
4269 echo "${ECHO_T}$RM" >&6; }
4270 else
4271   { echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6; }
4273 fi
4274
4275
4276 # Extract the first word of "cp", so it can be a program name with args.
4277 set dummy cp; ac_word=$2
4278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4280 if test "${ac_cv_path_CP+set}" = set; then
4281   echo $ECHO_N "(cached) $ECHO_C" >&6
4282 else
4283   case $CP in
4284   [\\/]* | ?:[\\/]*)
4285   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4286   ;;
4287   *)
4288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289 for as_dir in $PATH
4290 do
4291   IFS=$as_save_IFS
4292   test -z "$as_dir" && as_dir=.
4293   for ac_exec_ext in '' $ac_executable_extensions; do
4294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4295     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297     break 2
4298   fi
4299 done
4300 done
4301 IFS=$as_save_IFS
4302
4303   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4304   ;;
4305 esac
4306 fi
4307 CP=$ac_cv_path_CP
4308 if test -n "$CP"; then
4309   { echo "$as_me:$LINENO: result: $CP" >&5
4310 echo "${ECHO_T}$CP" >&6; }
4311 else
4312   { echo "$as_me:$LINENO: result: no" >&5
4313 echo "${ECHO_T}no" >&6; }
4314 fi
4315
4316
4317 # Extract the first word of "sed", so it can be a program name with args.
4318 set dummy sed; ac_word=$2
4319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4321 if test "${ac_cv_path_SED+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   case $SED in
4325   [\\/]* | ?:[\\/]*)
4326   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4327   ;;
4328   *)
4329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4331 do
4332   IFS=$as_save_IFS
4333   test -z "$as_dir" && as_dir=.
4334   for ac_exec_ext in '' $ac_executable_extensions; do
4335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4336     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4337     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338     break 2
4339   fi
4340 done
4341 done
4342 IFS=$as_save_IFS
4343
4344   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4345   ;;
4346 esac
4347 fi
4348 SED=$ac_cv_path_SED
4349 if test -n "$SED"; then
4350   { echo "$as_me:$LINENO: result: $SED" >&5
4351 echo "${ECHO_T}$SED" >&6; }
4352 else
4353   { echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6; }
4355 fi
4356
4357
4358 # Extract the first word of "echo", so it can be a program name with args.
4359 set dummy echo; ac_word=$2
4360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4362 if test "${ac_cv_path_ECHO+set}" = set; then
4363   echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365   case $ECHO in
4366   [\\/]* | ?:[\\/]*)
4367   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4368   ;;
4369   *)
4370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4372 do
4373   IFS=$as_save_IFS
4374   test -z "$as_dir" && as_dir=.
4375   for ac_exec_ext in '' $ac_executable_extensions; do
4376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4377     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379     break 2
4380   fi
4381 done
4382 done
4383 IFS=$as_save_IFS
4384
4385   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4386   ;;
4387 esac
4388 fi
4389 ECHO=$ac_cv_path_ECHO
4390 if test -n "$ECHO"; then
4391   { echo "$as_me:$LINENO: result: $ECHO" >&5
4392 echo "${ECHO_T}$ECHO" >&6; }
4393 else
4394   { echo "$as_me:$LINENO: result: no" >&5
4395 echo "${ECHO_T}no" >&6; }
4396 fi
4397
4398
4399 # Extract the first word of "cmp", so it can be a program name with args.
4400 set dummy cmp; ac_word=$2
4401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4403 if test "${ac_cv_path_CMP+set}" = set; then
4404   echo $ECHO_N "(cached) $ECHO_C" >&6
4405 else
4406   case $CMP in
4407   [\\/]* | ?:[\\/]*)
4408   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4409   ;;
4410   *)
4411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414   IFS=$as_save_IFS
4415   test -z "$as_dir" && as_dir=.
4416   for ac_exec_ext in '' $ac_executable_extensions; do
4417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4418     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4419     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420     break 2
4421   fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4427   ;;
4428 esac
4429 fi
4430 CMP=$ac_cv_path_CMP
4431 if test -n "$CMP"; then
4432   { echo "$as_me:$LINENO: result: $CMP" >&5
4433 echo "${ECHO_T}$CMP" >&6; }
4434 else
4435   { echo "$as_me:$LINENO: result: no" >&5
4436 echo "${ECHO_T}no" >&6; }
4437 fi
4438
4439
4440 # Extract the first word of "tbl", so it can be a program name with args.
4441 set dummy tbl; ac_word=$2
4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444 if test "${ac_cv_path_TBL+set}" = set; then
4445   echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447   case $TBL in
4448   [\\/]* | ?:[\\/]*)
4449   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4450   ;;
4451   *)
4452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457   for ac_exec_ext in '' $ac_executable_extensions; do
4458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4459     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4468   ;;
4469 esac
4470 fi
4471 TBL=$ac_cv_path_TBL
4472 if test -n "$TBL"; then
4473   { echo "$as_me:$LINENO: result: $TBL" >&5
4474 echo "${ECHO_T}$TBL" >&6; }
4475 else
4476   { echo "$as_me:$LINENO: result: no" >&5
4477 echo "${ECHO_T}no" >&6; }
4478 fi
4479
4480
4481 # Extract the first word of "ar", so it can be a program name with args.
4482 set dummy ar; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_path_AR+set}" = set; then
4486   echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488   case $AR in
4489   [\\/]* | ?:[\\/]*)
4490   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4491   ;;
4492   *)
4493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498   for ac_exec_ext in '' $ac_executable_extensions; do
4499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4502     break 2
4503   fi
4504 done
4505 done
4506 IFS=$as_save_IFS
4507
4508   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4509   ;;
4510 esac
4511 fi
4512 AR=$ac_cv_path_AR
4513 if test -n "$AR"; then
4514   { echo "$as_me:$LINENO: result: $AR" >&5
4515 echo "${ECHO_T}$AR" >&6; }
4516 else
4517   { echo "$as_me:$LINENO: result: no" >&5
4518 echo "${ECHO_T}no" >&6; }
4519 fi
4520
4521
4522 # Extract the first word of "openssl", so it can be a program name with args.
4523 set dummy openssl; ac_word=$2
4524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4526 if test "${ac_cv_path_OPENSSL+set}" = set; then
4527   echo $ECHO_N "(cached) $ECHO_C" >&6
4528 else
4529   case $OPENSSL in
4530   [\\/]* | ?:[\\/]*)
4531   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4532   ;;
4533   *)
4534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4536 do
4537   IFS=$as_save_IFS
4538   test -z "$as_dir" && as_dir=.
4539   for ac_exec_ext in '' $ac_executable_extensions; do
4540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4542     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543     break 2
4544   fi
4545 done
4546 done
4547 IFS=$as_save_IFS
4548
4549   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4550   ;;
4551 esac
4552 fi
4553 OPENSSL=$ac_cv_path_OPENSSL
4554 if test -n "$OPENSSL"; then
4555   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4556 echo "${ECHO_T}$OPENSSL" >&6; }
4557 else
4558   { echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6; }
4560 fi
4561
4562
4563 # Extract the first word of "mtx", so it can be a program name with args.
4564 set dummy mtx; ac_word=$2
4565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4567 if test "${ac_cv_path_MTX+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   case $MTX in
4571   [\\/]* | ?:[\\/]*)
4572   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4573   ;;
4574   *)
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580   for ac_exec_ext in '' $ac_executable_extensions; do
4581   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587 done
4588 IFS=$as_save_IFS
4589
4590   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4591   ;;
4592 esac
4593 fi
4594 MTX=$ac_cv_path_MTX
4595 if test -n "$MTX"; then
4596   { echo "$as_me:$LINENO: result: $MTX" >&5
4597 echo "${ECHO_T}$MTX" >&6; }
4598 else
4599   { echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6; }
4601 fi
4602
4603
4604 # Extract the first word of "dd", so it can be a program name with args.
4605 set dummy dd; ac_word=$2
4606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4608 if test "${ac_cv_path_DD+set}" = set; then
4609   echo $ECHO_N "(cached) $ECHO_C" >&6
4610 else
4611   case $DD in
4612   [\\/]* | ?:[\\/]*)
4613   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4614   ;;
4615   *)
4616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621   for ac_exec_ext in '' $ac_executable_extensions; do
4622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4625     break 2
4626   fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4632   ;;
4633 esac
4634 fi
4635 DD=$ac_cv_path_DD
4636 if test -n "$DD"; then
4637   { echo "$as_me:$LINENO: result: $DD" >&5
4638 echo "${ECHO_T}$DD" >&6; }
4639 else
4640   { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4642 fi
4643
4644
4645 # Extract the first word of "mkisofs", so it can be a program name with args.
4646 set dummy mkisofs; ac_word=$2
4647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649 if test "${ac_cv_path_MKISOFS+set}" = set; then
4650   echo $ECHO_N "(cached) $ECHO_C" >&6
4651 else
4652   case $MKISOFS in
4653   [\\/]* | ?:[\\/]*)
4654   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4655   ;;
4656   *)
4657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660   IFS=$as_save_IFS
4661   test -z "$as_dir" && as_dir=.
4662   for ac_exec_ext in '' $ac_executable_extensions; do
4663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4664     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666     break 2
4667   fi
4668 done
4669 done
4670 IFS=$as_save_IFS
4671
4672   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4673   ;;
4674 esac
4675 fi
4676 MKISOFS=$ac_cv_path_MKISOFS
4677 if test -n "$MKISOFS"; then
4678   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4679 echo "${ECHO_T}$MKISOFS" >&6; }
4680 else
4681   { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683 fi
4684
4685
4686 # Extract the first word of "python", so it can be a program name with args.
4687 set dummy python; ac_word=$2
4688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4690 if test "${ac_cv_path_PYTHON+set}" = set; then
4691   echo $ECHO_N "(cached) $ECHO_C" >&6
4692 else
4693   case $PYTHON in
4694   [\\/]* | ?:[\\/]*)
4695   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4696   ;;
4697   *)
4698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699 for as_dir in $PATH
4700 do
4701   IFS=$as_save_IFS
4702   test -z "$as_dir" && as_dir=.
4703   for ac_exec_ext in '' $ac_executable_extensions; do
4704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4705     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4706     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707     break 2
4708   fi
4709 done
4710 done
4711 IFS=$as_save_IFS
4712
4713   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4714   ;;
4715 esac
4716 fi
4717 PYTHON=$ac_cv_path_PYTHON
4718 if test -n "$PYTHON"; then
4719   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4720 echo "${ECHO_T}$PYTHON" >&6; }
4721 else
4722   { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4724 fi
4725
4726
4727 # Extract the first word of "growisofs", so it can be a program name with args.
4728 set dummy growisofs; ac_word=$2
4729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4732   echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734   case $GROWISOFS in
4735   [\\/]* | ?:[\\/]*)
4736   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4737   ;;
4738   *)
4739   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744   for ac_exec_ext in '' $ac_executable_extensions; do
4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4747     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4755   ;;
4756 esac
4757 fi
4758 GROWISOFS=$ac_cv_path_GROWISOFS
4759 if test -n "$GROWISOFS"; then
4760   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4761 echo "${ECHO_T}$GROWISOFS" >&6; }
4762 else
4763   { echo "$as_me:$LINENO: result: no" >&5
4764 echo "${ECHO_T}no" >&6; }
4765 fi
4766
4767
4768 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4769 set dummy dvd+rw-mediainfo; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4773   echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775   case $DVDRWMEDIAINFO in
4776   [\\/]* | ?:[\\/]*)
4777   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4778   ;;
4779   *)
4780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785   for ac_exec_ext in '' $ac_executable_extensions; do
4786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4788     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4796   ;;
4797 esac
4798 fi
4799 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4800 if test -n "$DVDRWMEDIAINFO"; then
4801   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4802 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4803 else
4804   { echo "$as_me:$LINENO: result: no" >&5
4805 echo "${ECHO_T}no" >&6; }
4806 fi
4807
4808
4809 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4810 set dummy dvd+rw-format; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4814   echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816   case $DVDRWFORMAT in
4817   [\\/]* | ?:[\\/]*)
4818   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4819   ;;
4820   *)
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826   for ac_exec_ext in '' $ac_executable_extensions; do
4827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830     break 2
4831   fi
4832 done
4833 done
4834 IFS=$as_save_IFS
4835
4836   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4837   ;;
4838 esac
4839 fi
4840 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4841 if test -n "$DVDRWFORMAT"; then
4842   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4843 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4844 else
4845   { echo "$as_me:$LINENO: result: no" >&5
4846 echo "${ECHO_T}no" >&6; }
4847 fi
4848
4849
4850 # Extract the first word of "pkg-config", so it can be a program name with args.
4851 set dummy pkg-config; ac_word=$2
4852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4854 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   case $PKGCONFIG in
4858   [\\/]* | ?:[\\/]*)
4859   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4860   ;;
4861   *)
4862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4864 do
4865   IFS=$as_save_IFS
4866   test -z "$as_dir" && as_dir=.
4867   for ac_exec_ext in '' $ac_executable_extensions; do
4868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871     break 2
4872   fi
4873 done
4874 done
4875 IFS=$as_save_IFS
4876
4877   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4878   ;;
4879 esac
4880 fi
4881 PKGCONFIG=$ac_cv_path_PKGCONFIG
4882 if test -n "$PKGCONFIG"; then
4883   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4884 echo "${ECHO_T}$PKGCONFIG" >&6; }
4885 else
4886   { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4888 fi
4889
4890
4891 # Extract the first word of "qmake", so it can be a program name with args.
4892 set dummy qmake; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_path_QMAKE+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   case $QMAKE in
4899   [\\/]* | ?:[\\/]*)
4900   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4901   ;;
4902   *)
4903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in $PATH
4905 do
4906   IFS=$as_save_IFS
4907   test -z "$as_dir" && as_dir=.
4908   for ac_exec_ext in '' $ac_executable_extensions; do
4909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4911     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4919   ;;
4920 esac
4921 fi
4922 QMAKE=$ac_cv_path_QMAKE
4923 if test -n "$QMAKE"; then
4924   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4925 echo "${ECHO_T}$QMAKE" >&6; }
4926 else
4927   { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4929 fi
4930
4931
4932 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4933 set dummy qmake-qt4; ac_word=$2
4934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4936 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   case $QMAKEQT4 in
4940   [\\/]* | ?:[\\/]*)
4941   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4942   ;;
4943   *)
4944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949   for ac_exec_ext in '' $ac_executable_extensions; do
4950   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4951     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4952     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956 done
4957 IFS=$as_save_IFS
4958
4959   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4960   ;;
4961 esac
4962 fi
4963 QMAKEQT4=$ac_cv_path_QMAKEQT4
4964 if test -n "$QMAKEQT4"; then
4965   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4966 echo "${ECHO_T}$QMAKEQT4" >&6; }
4967 else
4968   { echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6; }
4970 fi
4971
4972
4973
4974 if test "x$WXCONFIG" = x; then
4975   WXCONFIG=wx-config
4976 fi
4977 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4978 set dummy ${WXCONFIG}; ac_word=$2
4979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4981 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   case $WXCONFIG in
4985   [\\/]* | ?:[\\/]*)
4986   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4987   ;;
4988   *)
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_exec_ext in '' $ac_executable_extensions; do
4995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4996     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998     break 2
4999   fi
5000 done
5001 done
5002 IFS=$as_save_IFS
5003
5004   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5005   ;;
5006 esac
5007 fi
5008 WXCONFIG=$ac_cv_path_WXCONFIG
5009 if test -n "$WXCONFIG"; then
5010   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5011 echo "${ECHO_T}$WXCONFIG" >&6; }
5012 else
5013   { echo "$as_me:$LINENO: result: no" >&5
5014 echo "${ECHO_T}no" >&6; }
5015 fi
5016
5017
5018
5019 # Extract the first word of "cdrecord", so it can be a program name with args.
5020 set dummy cdrecord; ac_word=$2
5021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5023 if test "${ac_cv_path_CDRECORD+set}" = set; then
5024   echo $ECHO_N "(cached) $ECHO_C" >&6
5025 else
5026   case $CDRECORD in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036   for ac_exec_ext in '' $ac_executable_extensions; do
5037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5039     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043 done
5044 IFS=$as_save_IFS
5045
5046   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5047   ;;
5048 esac
5049 fi
5050 CDRECORD=$ac_cv_path_CDRECORD
5051 if test -n "$CDRECORD"; then
5052   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5053 echo "${ECHO_T}$CDRECORD" >&6; }
5054 else
5055   { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5057 fi
5058
5059
5060 # Extract the first word of "pidof", so it can be a program name with args.
5061 set dummy pidof; ac_word=$2
5062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5064 if test "${ac_cv_path_PIDOF+set}" = set; then
5065   echo $ECHO_N "(cached) $ECHO_C" >&6
5066 else
5067   case $PIDOF in
5068   [\\/]* | ?:[\\/]*)
5069   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5070   ;;
5071   *)
5072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075   IFS=$as_save_IFS
5076   test -z "$as_dir" && as_dir=.
5077   for ac_exec_ext in '' $ac_executable_extensions; do
5078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5079     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5081     break 2
5082   fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5088   ;;
5089 esac
5090 fi
5091 PIDOF=$ac_cv_path_PIDOF
5092 if test -n "$PIDOF"; then
5093   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5094 echo "${ECHO_T}$PIDOF" >&6; }
5095 else
5096   { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5098 fi
5099
5100
5101 for ac_prog in gawk mawk nawk awk
5102 do
5103   # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_prog_AWK+set}" = set; then
5108   echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110   if test -n "$AWK"; then
5111   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118   for ac_exec_ext in '' $ac_executable_extensions; do
5119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120     ac_cv_prog_AWK="$ac_prog"
5121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 AWK=$ac_cv_prog_AWK
5131 if test -n "$AWK"; then
5132   { echo "$as_me:$LINENO: result: $AWK" >&5
5133 echo "${ECHO_T}$AWK" >&6; }
5134 else
5135   { echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6; }
5137 fi
5138
5139
5140   test -n "$AWK" && break
5141 done
5142
5143 # Some AWK programs fail, so test it and warn the user
5144 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5145       { if ((prog == $2) || (("(" prog ")") == $2) ||
5146            (("" prog "") == $2) ||
5147            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5148 else
5149   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5150    The regex engine of $AWK is too broken to be used you
5151    might want to install GNU AWK.
5152    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5153 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5154    The regex engine of $AWK is too broken to be used you
5155    might want to install GNU AWK.
5156    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5157    { (exit 1); exit 1; }; }
5158 fi
5159 THE_AWK=$AWK
5160 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5161 set dummy $THE_AWK; ac_word=$2
5162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5164 if test "${ac_cv_path_AWK+set}" = set; then
5165   echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167   case $AWK in
5168   [\\/]* | ?:[\\/]*)
5169   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5170   ;;
5171   *)
5172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5174 do
5175   IFS=$as_save_IFS
5176   test -z "$as_dir" && as_dir=.
5177   for ac_exec_ext in '' $ac_executable_extensions; do
5178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181     break 2
5182   fi
5183 done
5184 done
5185 IFS=$as_save_IFS
5186
5187   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5188   ;;
5189 esac
5190 fi
5191 AWK=$ac_cv_path_AWK
5192 if test -n "$AWK"; then
5193   { echo "$as_me:$LINENO: result: $AWK" >&5
5194 echo "${ECHO_T}$AWK" >&6; }
5195 else
5196   { echo "$as_me:$LINENO: result: no" >&5
5197 echo "${ECHO_T}no" >&6; }
5198 fi
5199
5200
5201
5202
5203 test -n "$ARFLAG" || ARFLAGS="cr"
5204
5205
5206 MAKE_SHELL=/bin/sh
5207
5208
5209
5210
5211
5212
5213
5214 # Make sure we can run config.sub.
5215 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5216   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5217 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5218    { (exit 1); exit 1; }; }
5219
5220 { echo "$as_me:$LINENO: checking build system type" >&5
5221 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5222 if test "${ac_cv_build+set}" = set; then
5223   echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225   ac_build_alias=$build_alias
5226 test "x$ac_build_alias" = x &&
5227   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5228 test "x$ac_build_alias" = x &&
5229   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5230 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5231    { (exit 1); exit 1; }; }
5232 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5233   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5234 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5235    { (exit 1); exit 1; }; }
5236
5237 fi
5238 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5239 echo "${ECHO_T}$ac_cv_build" >&6; }
5240 case $ac_cv_build in
5241 *-*-*) ;;
5242 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5243 echo "$as_me: error: invalid value of canonical build" >&2;}
5244    { (exit 1); exit 1; }; };;
5245 esac
5246 build=$ac_cv_build
5247 ac_save_IFS=$IFS; IFS='-'
5248 set x $ac_cv_build
5249 shift
5250 build_cpu=$1
5251 build_vendor=$2
5252 shift; shift
5253 # Remember, the first character of IFS is used to create $*,
5254 # except with old shells:
5255 build_os=$*
5256 IFS=$ac_save_IFS
5257 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5258
5259
5260
5261 { echo "$as_me:$LINENO: checking host system type" >&5
5262 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5263 if test "${ac_cv_host+set}" = set; then
5264   echo $ECHO_N "(cached) $ECHO_C" >&6
5265 else
5266   if test "x$host_alias" = x; then
5267   ac_cv_host=$ac_cv_build
5268 else
5269   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5270     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5271 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5272    { (exit 1); exit 1; }; }
5273 fi
5274
5275 fi
5276 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5277 echo "${ECHO_T}$ac_cv_host" >&6; }
5278 case $ac_cv_host in
5279 *-*-*) ;;
5280 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5281 echo "$as_me: error: invalid value of canonical host" >&2;}
5282    { (exit 1); exit 1; }; };;
5283 esac
5284 host=$ac_cv_host
5285 ac_save_IFS=$IFS; IFS='-'
5286 set x $ac_cv_host
5287 shift
5288 host_cpu=$1
5289 host_vendor=$2
5290 shift; shift
5291 # Remember, the first character of IFS is used to create $*,
5292 # except with old shells:
5293 host_os=$*
5294 IFS=$ac_save_IFS
5295 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5296
5297
5298 case $host_os in
5299   *cygwin* ) CYGWIN=yes;;
5300          * ) CYGWIN=no;;
5301 esac
5302
5303 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5304 then
5305
5306
5307 if $TRUEPRG; then
5308   HAVE_SUN_OS_TRUE=
5309   HAVE_SUN_OS_FALSE='#'
5310 else
5311   HAVE_SUN_OS_TRUE='#'
5312   HAVE_SUN_OS_FALSE=
5313 fi
5314         cat >>confdefs.h <<\_ACEOF
5315 #define HAVE_SUN_OS 1
5316 _ACEOF
5317
5318 else
5319
5320
5321 if $FALSEPRG; then
5322   HAVE_SUN_OS_TRUE=
5323   HAVE_SUN_OS_FALSE='#'
5324 else
5325   HAVE_SUN_OS_TRUE='#'
5326   HAVE_SUN_OS_FALSE=
5327 fi
5328 fi
5329
5330 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5331 then
5332
5333
5334 if $TRUEPRG; then
5335   HAVE_OSF1_OS_TRUE=
5336   HAVE_OSF1_OS_FALSE='#'
5337 else
5338   HAVE_OSF1_OS_TRUE='#'
5339   HAVE_OSF1_OS_FALSE=
5340 fi
5341         cat >>confdefs.h <<\_ACEOF
5342 #define HAVE_OSF1_OS 1
5343 _ACEOF
5344
5345 else
5346
5347
5348 if $FALSEPRG; then
5349   HAVE_OSF1_OS_TRUE=
5350   HAVE_OSF1_OS_FALSE='#'
5351 else
5352   HAVE_OSF1_OS_TRUE='#'
5353   HAVE_OSF1_OS_FALSE=
5354 fi
5355 fi
5356
5357 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5358 then
5359
5360
5361 if $TRUEPRG; then
5362   HAVE_AIX_OS_TRUE=
5363   HAVE_AIX_OS_FALSE='#'
5364 else
5365   HAVE_AIX_OS_TRUE='#'
5366   HAVE_AIX_OS_FALSE=
5367 fi
5368         cat >>confdefs.h <<\_ACEOF
5369 #define HAVE_AIX_OS 1
5370 _ACEOF
5371
5372 else
5373
5374
5375 if $FALSEPRG; then
5376   HAVE_AIX_OS_TRUE=
5377   HAVE_AIX_OS_FALSE='#'
5378 else
5379   HAVE_AIX_OS_TRUE='#'
5380   HAVE_AIX_OS_FALSE=
5381 fi
5382 fi
5383
5384 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5385 then
5386
5387
5388 if $TRUEPRG; then
5389   HAVE_HPUX_OS_TRUE=
5390   HAVE_HPUX_OS_FALSE='#'
5391 else
5392   HAVE_HPUX_OS_TRUE='#'
5393   HAVE_HPUX_OS_FALSE=
5394 fi
5395         cat >>confdefs.h <<\_ACEOF
5396 #define HAVE_HPUX_OS 1
5397 _ACEOF
5398
5399 else
5400
5401
5402 if $FALSEPRG; then
5403   HAVE_HPUX_OS_TRUE=
5404   HAVE_HPUX_OS_FALSE='#'
5405 else
5406   HAVE_HPUX_OS_TRUE='#'
5407   HAVE_HPUX_OS_FALSE=
5408 fi
5409 fi
5410
5411 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5412 then
5413
5414
5415 if $TRUEPRG; then
5416   HAVE_LINUX_OS_TRUE=
5417   HAVE_LINUX_OS_FALSE='#'
5418 else
5419   HAVE_LINUX_OS_TRUE='#'
5420   HAVE_LINUX_OS_FALSE=
5421 fi
5422         cat >>confdefs.h <<\_ACEOF
5423 #define HAVE_LINUX_OS 1
5424 _ACEOF
5425
5426 else
5427
5428
5429 if $FALSEPRG; then
5430   HAVE_LINUX_OS_TRUE=
5431   HAVE_LINUX_OS_FALSE='#'
5432 else
5433   HAVE_LINUX_OS_TRUE='#'
5434   HAVE_LINUX_OS_FALSE=
5435 fi
5436 fi
5437
5438 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5439 then
5440
5441
5442 if $TRUEPRG; then
5443   HAVE_FREEBSD_OS_TRUE=
5444   HAVE_FREEBSD_OS_FALSE='#'
5445 else
5446   HAVE_FREEBSD_OS_TRUE='#'
5447   HAVE_FREEBSD_OS_FALSE=
5448 fi
5449         cat >>confdefs.h <<\_ACEOF
5450 #define HAVE_FREEBSD_OS 1
5451 _ACEOF
5452
5453 else
5454
5455
5456 if $FALSEPRG; then
5457   HAVE_FREEBSD_OS_TRUE=
5458   HAVE_FREEBSD_OS_FALSE='#'
5459 else
5460   HAVE_FREEBSD_OS_TRUE='#'
5461   HAVE_FREEBSD_OS_FALSE=
5462 fi
5463 fi
5464
5465 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5466 then
5467
5468
5469 if $TRUEPRG; then
5470   HAVE_NETBSD_OS_TRUE=
5471   HAVE_NETBSD_OS_FALSE='#'
5472 else
5473   HAVE_NETBSD_OS_TRUE='#'
5474   HAVE_NETBSD_OS_FALSE=
5475 fi
5476         cat >>confdefs.h <<\_ACEOF
5477 #define HAVE_NETBSD_OS 1
5478 _ACEOF
5479
5480 else
5481
5482
5483 if $FALSEPRG; then
5484   HAVE_NETBSD_OS_TRUE=
5485   HAVE_NETBSD_OS_FALSE='#'
5486 else
5487   HAVE_NETBSD_OS_TRUE='#'
5488   HAVE_NETBSD_OS_FALSE=
5489 fi
5490 fi
5491
5492 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5493 then
5494
5495
5496 if $TRUEPRG; then
5497   HAVE_OPENBSD_OS_TRUE=
5498   HAVE_OPENBSD_OS_FALSE='#'
5499 else
5500   HAVE_OPENBSD_OS_TRUE='#'
5501   HAVE_OPENBSD_OS_FALSE=
5502 fi
5503         cat >>confdefs.h <<\_ACEOF
5504 #define HAVE_OPENBSD_OS 1
5505 _ACEOF
5506
5507 else
5508
5509
5510 if $FALSEPRG; then
5511   HAVE_OPENBSD_OS_TRUE=
5512   HAVE_OPENBSD_OS_FALSE='#'
5513 else
5514   HAVE_OPENBSD_OS_TRUE='#'
5515   HAVE_OPENBSD_OS_FALSE=
5516 fi
5517 fi
5518
5519 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5520 then
5521
5522
5523 if $TRUEPRG; then
5524   HAVE_BSDI_OS_TRUE=
5525   HAVE_BSDI_OS_FALSE='#'
5526 else
5527   HAVE_BSDI_OS_TRUE='#'
5528   HAVE_BSDI_OS_FALSE=
5529 fi
5530         cat >>confdefs.h <<\_ACEOF
5531 #define HAVE_BSDI_OS 1
5532 _ACEOF
5533
5534 else
5535
5536
5537 if $FALSEPRG; then
5538   HAVE_BSDI_OS_TRUE=
5539   HAVE_BSDI_OS_FALSE='#'
5540 else
5541   HAVE_BSDI_OS_TRUE='#'
5542   HAVE_BSDI_OS_FALSE=
5543 fi
5544 fi
5545
5546 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5547 then
5548
5549
5550 if $TRUEPRG; then
5551   HAVE_SGI_OS_TRUE=
5552   HAVE_SGI_OS_FALSE='#'
5553 else
5554   HAVE_SGI_OS_TRUE='#'
5555   HAVE_SGI_OS_FALSE=
5556 fi
5557         cat >>confdefs.h <<\_ACEOF
5558 #define HAVE_SGI_OS 1
5559 _ACEOF
5560
5561 else
5562
5563
5564 if $FALSEPRG; then
5565   HAVE_SGI_OS_TRUE=
5566   HAVE_SGI_OS_FALSE='#'
5567 else
5568   HAVE_SGI_OS_TRUE='#'
5569   HAVE_SGI_OS_FALSE=
5570 fi
5571 fi
5572
5573 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5574 then
5575
5576
5577 if $TRUEPRG; then
5578   HAVE_IRIX_OS_TRUE=
5579   HAVE_IRIX_OS_FALSE='#'
5580 else
5581   HAVE_IRIX_OS_TRUE='#'
5582   HAVE_IRIX_OS_FALSE=
5583 fi
5584         cat >>confdefs.h <<\_ACEOF
5585 #define HAVE_IRIX_OS 1
5586 _ACEOF
5587
5588 else
5589
5590
5591 if $FALSEPRG; then
5592   HAVE_IRIX_OS_TRUE=
5593   HAVE_IRIX_OS_FALSE='#'
5594 else
5595   HAVE_IRIX_OS_TRUE='#'
5596   HAVE_IRIX_OS_FALSE=
5597 fi
5598 fi
5599
5600 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5601 then
5602
5603
5604 if $TRUEPRG; then
5605   HAVE_DARWIN_OS_TRUE=
5606   HAVE_DARWIN_OS_FALSE='#'
5607 else
5608   HAVE_DARWIN_OS_TRUE='#'
5609   HAVE_DARWIN_OS_FALSE=
5610 fi
5611     cat >>confdefs.h <<\_ACEOF
5612 #define HAVE_DARWIN_OS 1
5613 _ACEOF
5614
5615 else
5616
5617
5618 if $FALSEPRG; then
5619   HAVE_DARWIN_OS_TRUE=
5620   HAVE_DARWIN_OS_FALSE='#'
5621 else
5622   HAVE_DARWIN_OS_TRUE='#'
5623   HAVE_DARWIN_OS_FALSE=
5624 fi
5625 fi
5626
5627
5628 # -----------------------------------------------------------
5629 # ----------------------------------------------------------
5630 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5631 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5632 if test "x$DISTNAME" != "x"
5633 then
5634         echo "distname set to $DISTNAME"
5635 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5636 then
5637         DISTNAME=alpha
5638 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5639 then
5640         DISTNAME=aix
5641 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5642 then
5643         DISTNAME=hpux
5644 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5645 then
5646         DISTNAME=solaris
5647 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5648 then
5649         DISTNAME=freebsd
5650 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5651 then
5652         DISTNAME=netbsd
5653 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5654 then
5655         DISTNAME=openbsd
5656 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5657 then
5658         DISTNAME=irix
5659 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5660 then
5661         DISTNAME=bsdi
5662 elif test -f /etc/SuSE-release
5663 then
5664         DISTNAME=suse
5665 elif test -d /etc/SuSEconfig
5666 then
5667         DISTNAME=suse5
5668 elif test -f /etc/mandrake-release
5669 then
5670         DISTNAME=mandrake
5671 elif test -f /etc/whitebox-release
5672 then
5673        DISTNAME=redhat
5674 elif test -f /etc/redhat-release
5675 then
5676         DISTNAME=redhat
5677 elif test -f /etc/gentoo-release
5678 then
5679         DISTNAME=gentoo
5680 elif test -f /etc/debian_version
5681 then
5682         DISTNAME=debian
5683 elif test -f /etc/slackware-version
5684 then
5685         DISTNAME=slackware
5686 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5687 then
5688     DISTNAME=darwin
5689 elif test -f /etc/engarde-version
5690 then
5691         DISTNAME=engarde
5692 elif test "$CYGWIN" = yes
5693 then
5694         DISTNAME=cygwin
5695         cat >>confdefs.h <<\_ACEOF
5696 #define HAVE_CYGWIN 1
5697 _ACEOF
5698
5699 else
5700         DISTNAME=unknown
5701 fi
5702 { echo "$as_me:$LINENO: result: done" >&5
5703 echo "${ECHO_T}done" >&6; }
5704
5705
5706 # --------------------------------------------------
5707 # Suppport for gettext (translations)
5708 # By default, $datadir is ${prefix}/share
5709 # --------------------------------------------------
5710 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5711 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5712 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5713 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   cat >conftest.make <<\_ACEOF
5717 SHELL = /bin/sh
5718 all:
5719         @echo '@@@%%%=$(MAKE)=@@@%%%'
5720 _ACEOF
5721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5722 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5723   *@@@%%%=?*=@@@%%%*)
5724     eval ac_cv_prog_make_${ac_make}_set=yes;;
5725   *)
5726     eval ac_cv_prog_make_${ac_make}_set=no;;
5727 esac
5728 rm -f conftest.make
5729 fi
5730 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5731   { echo "$as_me:$LINENO: result: yes" >&5
5732 echo "${ECHO_T}yes" >&6; }
5733   SET_MAKE=
5734 else
5735   { echo "$as_me:$LINENO: result: no" >&5
5736 echo "${ECHO_T}no" >&6; }
5737   SET_MAKE="MAKE=${MAKE-make}"
5738 fi
5739
5740
5741
5742         MKINSTALLDIRS=
5743   if test -n "$ac_aux_dir"; then
5744     case "$ac_aux_dir" in
5745       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5746       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5747     esac
5748   fi
5749   if test -z "$MKINSTALLDIRS"; then
5750     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5751   fi
5752
5753
5754
5755   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5756 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5757     # Check whether --enable-nls was given.
5758 if test "${enable_nls+set}" = set; then
5759   enableval=$enable_nls; USE_NLS=$enableval
5760 else
5761   USE_NLS=yes
5762 fi
5763
5764   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5765 echo "${ECHO_T}$USE_NLS" >&6; }
5766
5767
5768
5769
5770
5771
5772 # Prepare PATH_SEPARATOR.
5773 # The user is always right.
5774 if test "${PATH_SEPARATOR+set}" != set; then
5775   echo "#! /bin/sh" >conf$$.sh
5776   echo  "exit 0"   >>conf$$.sh
5777   chmod +x conf$$.sh
5778   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5779     PATH_SEPARATOR=';'
5780   else
5781     PATH_SEPARATOR=:
5782   fi
5783   rm -f conf$$.sh
5784 fi
5785
5786 # Find out how to test for executable files. Don't use a zero-byte file,
5787 # as systems may use methods other than mode bits to determine executability.
5788 cat >conf$$.file <<_ASEOF
5789 #! /bin/sh
5790 exit 0
5791 _ASEOF
5792 chmod +x conf$$.file
5793 if test -x conf$$.file >/dev/null 2>&1; then
5794   ac_executable_p="test -x"
5795 else
5796   ac_executable_p="test -f"
5797 fi
5798 rm -f conf$$.file
5799
5800 # Extract the first word of "msgfmt", so it can be a program name with args.
5801 set dummy msgfmt; ac_word=$2
5802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804 if test "${ac_cv_path_MSGFMT+set}" = set; then
5805   echo $ECHO_N "(cached) $ECHO_C" >&6
5806 else
5807   case "$MSGFMT" in
5808   [\\/]* | ?:[\\/]*)
5809     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5810     ;;
5811   *)
5812     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5813     for ac_dir in $PATH; do
5814       IFS="$ac_save_IFS"
5815       test -z "$ac_dir" && ac_dir=.
5816       for ac_exec_ext in '' $ac_executable_extensions; do
5817         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5818           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5819           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5820      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5821             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5822             break 2
5823           fi
5824         fi
5825       done
5826     done
5827     IFS="$ac_save_IFS"
5828   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5829     ;;
5830 esac
5831 fi
5832 MSGFMT="$ac_cv_path_MSGFMT"
5833 if test "$MSGFMT" != ":"; then
5834   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5835 echo "${ECHO_T}$MSGFMT" >&6; }
5836 else
5837   { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5839 fi
5840
5841   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5842 set dummy gmsgfmt; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5846   echo $ECHO_N "(cached) $ECHO_C" >&6
5847 else
5848   case $GMSGFMT in
5849   [\\/]* | ?:[\\/]*)
5850   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5851   ;;
5852   *)
5853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858   for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865 done
5866 IFS=$as_save_IFS
5867
5868   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5869   ;;
5870 esac
5871 fi
5872 GMSGFMT=$ac_cv_path_GMSGFMT
5873 if test -n "$GMSGFMT"; then
5874   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5875 echo "${ECHO_T}$GMSGFMT" >&6; }
5876 else
5877   { echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6; }
5879 fi
5880
5881
5882
5883
5884 # Prepare PATH_SEPARATOR.
5885 # The user is always right.
5886 if test "${PATH_SEPARATOR+set}" != set; then
5887   echo "#! /bin/sh" >conf$$.sh
5888   echo  "exit 0"   >>conf$$.sh
5889   chmod +x conf$$.sh
5890   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5891     PATH_SEPARATOR=';'
5892   else
5893     PATH_SEPARATOR=:
5894   fi
5895   rm -f conf$$.sh
5896 fi
5897
5898 # Find out how to test for executable files. Don't use a zero-byte file,
5899 # as systems may use methods other than mode bits to determine executability.
5900 cat >conf$$.file <<_ASEOF
5901 #! /bin/sh
5902 exit 0
5903 _ASEOF
5904 chmod +x conf$$.file
5905 if test -x conf$$.file >/dev/null 2>&1; then
5906   ac_executable_p="test -x"
5907 else
5908   ac_executable_p="test -f"
5909 fi
5910 rm -f conf$$.file
5911
5912 # Extract the first word of "xgettext", so it can be a program name with args.
5913 set dummy xgettext; ac_word=$2
5914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5916 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5917   echo $ECHO_N "(cached) $ECHO_C" >&6
5918 else
5919   case "$XGETTEXT" in
5920   [\\/]* | ?:[\\/]*)
5921     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5922     ;;
5923   *)
5924     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5925     for ac_dir in $PATH; do
5926       IFS="$ac_save_IFS"
5927       test -z "$ac_dir" && ac_dir=.
5928       for ac_exec_ext in '' $ac_executable_extensions; do
5929         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5930           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5931           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5932      (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
5933             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5934             break 2
5935           fi
5936         fi
5937       done
5938     done
5939     IFS="$ac_save_IFS"
5940   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5941     ;;
5942 esac
5943 fi
5944 XGETTEXT="$ac_cv_path_XGETTEXT"
5945 if test "$XGETTEXT" != ":"; then
5946   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5947 echo "${ECHO_T}$XGETTEXT" >&6; }
5948 else
5949   { echo "$as_me:$LINENO: result: no" >&5
5950 echo "${ECHO_T}no" >&6; }
5951 fi
5952
5953     rm -f messages.po
5954
5955
5956 # Prepare PATH_SEPARATOR.
5957 # The user is always right.
5958 if test "${PATH_SEPARATOR+set}" != set; then
5959   echo "#! /bin/sh" >conf$$.sh
5960   echo  "exit 0"   >>conf$$.sh
5961   chmod +x conf$$.sh
5962   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5963     PATH_SEPARATOR=';'
5964   else
5965     PATH_SEPARATOR=:
5966   fi
5967   rm -f conf$$.sh
5968 fi
5969
5970 # Find out how to test for executable files. Don't use a zero-byte file,
5971 # as systems may use methods other than mode bits to determine executability.
5972 cat >conf$$.file <<_ASEOF
5973 #! /bin/sh
5974 exit 0
5975 _ASEOF
5976 chmod +x conf$$.file
5977 if test -x conf$$.file >/dev/null 2>&1; then
5978   ac_executable_p="test -x"
5979 else
5980   ac_executable_p="test -f"
5981 fi
5982 rm -f conf$$.file
5983
5984 # Extract the first word of "msgmerge", so it can be a program name with args.
5985 set dummy msgmerge; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5989   echo $ECHO_N "(cached) $ECHO_C" >&6
5990 else
5991   case "$MSGMERGE" in
5992   [\\/]* | ?:[\\/]*)
5993     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5994     ;;
5995   *)
5996     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5997     for ac_dir in $PATH; do
5998       IFS="$ac_save_IFS"
5999       test -z "$ac_dir" && ac_dir=.
6000       for ac_exec_ext in '' $ac_executable_extensions; do
6001         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6002           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6003           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6004             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6005             break 2
6006           fi
6007         fi
6008       done
6009     done
6010     IFS="$ac_save_IFS"
6011   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6012     ;;
6013 esac
6014 fi
6015 MSGMERGE="$ac_cv_path_MSGMERGE"
6016 if test "$MSGMERGE" != ":"; then
6017   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6018 echo "${ECHO_T}$MSGMERGE" >&6; }
6019 else
6020   { echo "$as_me:$LINENO: result: no" >&5
6021 echo "${ECHO_T}no" >&6; }
6022 fi
6023
6024
6025       if test "$GMSGFMT" != ":"; then
6026             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6027        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6028       : ;
6029     else
6030       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6031       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6032 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6033       GMSGFMT=":"
6034     fi
6035   fi
6036
6037       if test "$XGETTEXT" != ":"; then
6038             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6039        (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
6040       : ;
6041     else
6042       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6043 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6044       XGETTEXT=":"
6045     fi
6046         rm -f messages.po
6047   fi
6048
6049   ac_config_commands="$ac_config_commands default-1"
6050
6051
6052
6053       if test "X$prefix" = "XNONE"; then
6054     acl_final_prefix="$ac_default_prefix"
6055   else
6056     acl_final_prefix="$prefix"
6057   fi
6058   if test "X$exec_prefix" = "XNONE"; then
6059     acl_final_exec_prefix='${prefix}'
6060   else
6061     acl_final_exec_prefix="$exec_prefix"
6062   fi
6063   acl_save_prefix="$prefix"
6064   prefix="$acl_final_prefix"
6065   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6066   prefix="$acl_save_prefix"
6067
6068
6069 # Check whether --with-gnu-ld was given.
6070 if test "${with_gnu_ld+set}" = set; then
6071   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6072 else
6073   with_gnu_ld=no
6074 fi
6075
6076 # Prepare PATH_SEPARATOR.
6077 # The user is always right.
6078 if test "${PATH_SEPARATOR+set}" != set; then
6079   echo "#! /bin/sh" >conf$$.sh
6080   echo  "exit 0"   >>conf$$.sh
6081   chmod +x conf$$.sh
6082   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6083     PATH_SEPARATOR=';'
6084   else
6085     PATH_SEPARATOR=:
6086   fi
6087   rm -f conf$$.sh
6088 fi
6089 ac_prog=ld
6090 if test "$GCC" = yes; then
6091   # Check if gcc -print-prog-name=ld gives a path.
6092   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6093 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6094   case $host in
6095   *-*-mingw*)
6096     # gcc leaves a trailing carriage return which upsets mingw
6097     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6098   *)
6099     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6100   esac
6101   case $ac_prog in
6102     # Accept absolute paths.
6103     [\\/]* | [A-Za-z]:[\\/]*)
6104       re_direlt='/[^/][^/]*/\.\./'
6105       # Canonicalize the path of ld
6106       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6107       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6108         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6109       done
6110       test -z "$LD" && LD="$ac_prog"
6111       ;;
6112   "")
6113     # If it fails, then pretend we aren't using GCC.
6114     ac_prog=ld
6115     ;;
6116   *)
6117     # If it is relative, then search for the first ld in PATH.
6118     with_gnu_ld=unknown
6119     ;;
6120   esac
6121 elif test "$with_gnu_ld" = yes; then
6122   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6123 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6124 else
6125   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6126 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6127 fi
6128 if test "${acl_cv_path_LD+set}" = set; then
6129   echo $ECHO_N "(cached) $ECHO_C" >&6
6130 else
6131   if test -z "$LD"; then
6132   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6133   for ac_dir in $PATH; do
6134     test -z "$ac_dir" && ac_dir=.
6135     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6136       acl_cv_path_LD="$ac_dir/$ac_prog"
6137       # Check to see if the program is GNU ld.  I'd rather use --version,
6138       # but apparently some GNU ld's only accept -v.
6139       # Break only if it was the GNU/non-GNU ld that we prefer.
6140       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6141       *GNU* | *'with BFD'*)
6142         test "$with_gnu_ld" != no && break ;;
6143       *)
6144         test "$with_gnu_ld" != yes && break ;;
6145       esac
6146     fi
6147   done
6148   IFS="$ac_save_ifs"
6149 else
6150   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6151 fi
6152 fi
6153
6154 LD="$acl_cv_path_LD"
6155 if test -n "$LD"; then
6156   { echo "$as_me:$LINENO: result: $LD" >&5
6157 echo "${ECHO_T}$LD" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6164    { (exit 1); exit 1; }; }
6165 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6167 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6171 case `$LD -v 2>&1 </dev/null` in
6172 *GNU* | *'with BFD'*)
6173   acl_cv_prog_gnu_ld=yes ;;
6174 *)
6175   acl_cv_prog_gnu_ld=no ;;
6176 esac
6177 fi
6178 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6179 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6180 with_gnu_ld=$acl_cv_prog_gnu_ld
6181
6182
6183
6184
6185                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6186 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6187 if test "${acl_cv_rpath+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190
6191     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6192     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6193     . ./conftest.sh
6194     rm -f ./conftest.sh
6195     acl_cv_rpath=done
6196
6197 fi
6198 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6199 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6200   wl="$acl_cv_wl"
6201   libext="$acl_cv_libext"
6202   shlibext="$acl_cv_shlibext"
6203   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6204   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6205   hardcode_direct="$acl_cv_hardcode_direct"
6206   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6207     # Check whether --enable-rpath was given.
6208 if test "${enable_rpath+set}" = set; then
6209   enableval=$enable_rpath; :
6210 else
6211   enable_rpath=yes
6212 fi
6213
6214
6215
6216
6217
6218
6219
6220
6221     use_additional=yes
6222
6223   acl_save_prefix="$prefix"
6224   prefix="$acl_final_prefix"
6225   acl_save_exec_prefix="$exec_prefix"
6226   exec_prefix="$acl_final_exec_prefix"
6227
6228     eval additional_includedir=\"$includedir\"
6229     eval additional_libdir=\"$libdir\"
6230
6231   exec_prefix="$acl_save_exec_prefix"
6232   prefix="$acl_save_prefix"
6233
6234
6235 # Check whether --with-libiconv-prefix was given.
6236 if test "${with_libiconv_prefix+set}" = set; then
6237   withval=$with_libiconv_prefix;
6238     if test "X$withval" = "Xno"; then
6239       use_additional=no
6240     else
6241       if test "X$withval" = "X"; then
6242
6243   acl_save_prefix="$prefix"
6244   prefix="$acl_final_prefix"
6245   acl_save_exec_prefix="$exec_prefix"
6246   exec_prefix="$acl_final_exec_prefix"
6247
6248           eval additional_includedir=\"$includedir\"
6249           eval additional_libdir=\"$libdir\"
6250
6251   exec_prefix="$acl_save_exec_prefix"
6252   prefix="$acl_save_prefix"
6253
6254       else
6255         additional_includedir="$withval/include"
6256         additional_libdir="$withval/lib"
6257       fi
6258     fi
6259
6260 fi
6261
6262       LIBICONV=
6263   LTLIBICONV=
6264   INCICONV=
6265   rpathdirs=
6266   ltrpathdirs=
6267   names_already_handled=
6268   names_next_round='iconv '
6269   while test -n "$names_next_round"; do
6270     names_this_round="$names_next_round"
6271     names_next_round=
6272     for name in $names_this_round; do
6273       already_handled=
6274       for n in $names_already_handled; do
6275         if test "$n" = "$name"; then
6276           already_handled=yes
6277           break
6278         fi
6279       done
6280       if test -z "$already_handled"; then
6281         names_already_handled="$names_already_handled $name"
6282                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6283         eval value=\"\$HAVE_LIB$uppername\"
6284         if test -n "$value"; then
6285           if test "$value" = yes; then
6286             eval value=\"\$LIB$uppername\"
6287             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6288             eval value=\"\$LTLIB$uppername\"
6289             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6290           else
6291                                     :
6292           fi
6293         else
6294                               found_dir=
6295           found_la=
6296           found_so=
6297           found_a=
6298           if test $use_additional = yes; then
6299             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6300               found_dir="$additional_libdir"
6301               found_so="$additional_libdir/lib$name.$shlibext"
6302               if test -f "$additional_libdir/lib$name.la"; then
6303                 found_la="$additional_libdir/lib$name.la"
6304               fi
6305             else
6306               if test -f "$additional_libdir/lib$name.$libext"; then
6307                 found_dir="$additional_libdir"
6308                 found_a="$additional_libdir/lib$name.$libext"
6309                 if test -f "$additional_libdir/lib$name.la"; then
6310                   found_la="$additional_libdir/lib$name.la"
6311                 fi
6312               fi
6313             fi
6314           fi
6315           if test "X$found_dir" = "X"; then
6316             for x in $LDFLAGS $LTLIBICONV; do
6317
6318   acl_save_prefix="$prefix"
6319   prefix="$acl_final_prefix"
6320   acl_save_exec_prefix="$exec_prefix"
6321   exec_prefix="$acl_final_exec_prefix"
6322   eval x=\"$x\"
6323   exec_prefix="$acl_save_exec_prefix"
6324   prefix="$acl_save_prefix"
6325
6326               case "$x" in
6327                 -L*)
6328                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6329                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6330                     found_dir="$dir"
6331                     found_so="$dir/lib$name.$shlibext"
6332                     if test -f "$dir/lib$name.la"; then
6333                       found_la="$dir/lib$name.la"
6334                     fi
6335                   else
6336                     if test -f "$dir/lib$name.$libext"; then
6337                       found_dir="$dir"
6338                       found_a="$dir/lib$name.$libext"
6339                       if test -f "$dir/lib$name.la"; then
6340                         found_la="$dir/lib$name.la"
6341                       fi
6342                     fi
6343                   fi
6344                   ;;
6345               esac
6346               if test "X$found_dir" != "X"; then
6347                 break
6348               fi
6349             done
6350           fi
6351           if test "X$found_dir" != "X"; then
6352                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6353             if test "X$found_so" != "X"; then
6354                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6355                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6356               else
6357                                                                                 haveit=
6358                 for x in $ltrpathdirs; do
6359                   if test "X$x" = "X$found_dir"; then
6360                     haveit=yes
6361                     break
6362                   fi
6363                 done
6364                 if test -z "$haveit"; then
6365                   ltrpathdirs="$ltrpathdirs $found_dir"
6366                 fi
6367                                 if test "$hardcode_direct" = yes; then
6368                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6369                 else
6370                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6371                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6372                                                             haveit=
6373                     for x in $rpathdirs; do
6374                       if test "X$x" = "X$found_dir"; then
6375                         haveit=yes
6376                         break
6377                       fi
6378                     done
6379                     if test -z "$haveit"; then
6380                       rpathdirs="$rpathdirs $found_dir"
6381                     fi
6382                   else
6383                                                                                 haveit=
6384                     for x in $LDFLAGS $LIBICONV; do
6385
6386   acl_save_prefix="$prefix"
6387   prefix="$acl_final_prefix"
6388   acl_save_exec_prefix="$exec_prefix"
6389   exec_prefix="$acl_final_exec_prefix"
6390   eval x=\"$x\"
6391   exec_prefix="$acl_save_exec_prefix"
6392   prefix="$acl_save_prefix"
6393
6394                       if test "X$x" = "X-L$found_dir"; then
6395                         haveit=yes
6396                         break
6397                       fi
6398                     done
6399                     if test -z "$haveit"; then
6400                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6401                     fi
6402                     if test "$hardcode_minus_L" != no; then
6403                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6404                     else
6405                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6406                     fi
6407                   fi
6408                 fi
6409               fi
6410             else
6411               if test "X$found_a" != "X"; then
6412                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6413               else
6414                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6415               fi
6416             fi
6417                         additional_includedir=
6418             case "$found_dir" in
6419               */lib | */lib/)
6420                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6421                 additional_includedir="$basedir/include"
6422                 ;;
6423             esac
6424             if test "X$additional_includedir" != "X"; then
6425                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6426                 haveit=
6427                 if test "X$additional_includedir" = "X/usr/local/include"; then
6428                   if test -n "$GCC"; then
6429                     case $host_os in
6430                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6431                     esac
6432                   fi
6433                 fi
6434                 if test -z "$haveit"; then
6435                   for x in $CPPFLAGS $INCICONV; do
6436
6437   acl_save_prefix="$prefix"
6438   prefix="$acl_final_prefix"
6439   acl_save_exec_prefix="$exec_prefix"
6440   exec_prefix="$acl_final_exec_prefix"
6441   eval x=\"$x\"
6442   exec_prefix="$acl_save_exec_prefix"
6443   prefix="$acl_save_prefix"
6444
6445                     if test "X$x" = "X-I$additional_includedir"; then
6446                       haveit=yes
6447                       break
6448                     fi
6449                   done
6450                   if test -z "$haveit"; then
6451                     if test -d "$additional_includedir"; then
6452                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6453                     fi
6454                   fi
6455                 fi
6456               fi
6457             fi
6458                         if test -n "$found_la"; then
6459                                                         save_libdir="$libdir"
6460               case "$found_la" in
6461                 */* | *\\*) . "$found_la" ;;
6462                 *) . "./$found_la" ;;
6463               esac
6464               libdir="$save_libdir"
6465                             for dep in $dependency_libs; do
6466                 case "$dep" in
6467                   -L*)
6468                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6469                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6470                       haveit=
6471                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6472                         if test -n "$GCC"; then
6473                           case $host_os in
6474                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6475                           esac
6476                         fi
6477                       fi
6478                       if test -z "$haveit"; then
6479                         haveit=
6480                         for x in $LDFLAGS $LIBICONV; do
6481
6482   acl_save_prefix="$prefix"
6483   prefix="$acl_final_prefix"
6484   acl_save_exec_prefix="$exec_prefix"
6485   exec_prefix="$acl_final_exec_prefix"
6486   eval x=\"$x\"
6487   exec_prefix="$acl_save_exec_prefix"
6488   prefix="$acl_save_prefix"
6489
6490                           if test "X$x" = "X-L$additional_libdir"; then
6491                             haveit=yes
6492                             break
6493                           fi
6494                         done
6495                         if test -z "$haveit"; then
6496                           if test -d "$additional_libdir"; then
6497                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6498                           fi
6499                         fi
6500                         haveit=
6501                         for x in $LDFLAGS $LTLIBICONV; do
6502
6503   acl_save_prefix="$prefix"
6504   prefix="$acl_final_prefix"
6505   acl_save_exec_prefix="$exec_prefix"
6506   exec_prefix="$acl_final_exec_prefix"
6507   eval x=\"$x\"
6508   exec_prefix="$acl_save_exec_prefix"
6509   prefix="$acl_save_prefix"
6510
6511                           if test "X$x" = "X-L$additional_libdir"; then
6512                             haveit=yes
6513                             break
6514                           fi
6515                         done
6516                         if test -z "$haveit"; then
6517                           if test -d "$additional_libdir"; then
6518                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6519                           fi
6520                         fi
6521                       fi
6522                     fi
6523                     ;;
6524                   -R*)
6525                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6526                     if test "$enable_rpath" != no; then
6527                                                                   haveit=
6528                       for x in $rpathdirs; do
6529                         if test "X$x" = "X$dir"; then
6530                           haveit=yes
6531                           break
6532                         fi
6533                       done
6534                       if test -z "$haveit"; then
6535                         rpathdirs="$rpathdirs $dir"
6536                       fi
6537                                                                   haveit=
6538                       for x in $ltrpathdirs; do
6539                         if test "X$x" = "X$dir"; then
6540                           haveit=yes
6541                           break
6542                         fi
6543                       done
6544                       if test -z "$haveit"; then
6545                         ltrpathdirs="$ltrpathdirs $dir"
6546                       fi
6547                     fi
6548                     ;;
6549                   -l*)
6550                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6551                     ;;
6552                   *.la)
6553                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6554                     ;;
6555                   *)
6556                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6557                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6558                     ;;
6559                 esac
6560               done
6561             fi
6562           else
6563                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6564             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6565           fi
6566         fi
6567       fi
6568     done
6569   done
6570   if test "X$rpathdirs" != "X"; then
6571     if test -n "$hardcode_libdir_separator"; then
6572                         alldirs=
6573       for found_dir in $rpathdirs; do
6574         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6575       done
6576             acl_save_libdir="$libdir"
6577       libdir="$alldirs"
6578       eval flag=\"$hardcode_libdir_flag_spec\"
6579       libdir="$acl_save_libdir"
6580       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6581     else
6582             for found_dir in $rpathdirs; do
6583         acl_save_libdir="$libdir"
6584         libdir="$found_dir"
6585         eval flag=\"$hardcode_libdir_flag_spec\"
6586         libdir="$acl_save_libdir"
6587         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6588       done
6589     fi
6590   fi
6591   if test "X$ltrpathdirs" != "X"; then
6592             for found_dir in $ltrpathdirs; do
6593       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6594     done
6595   fi
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6615 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6616 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6617   echo $ECHO_N "(cached) $ECHO_C" >&6
6618 else
6619   gt_save_CPPFLAGS="$CPPFLAGS"
6620      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6621      gt_save_LIBS="$LIBS"
6622      LIBS="$LIBS -framework CoreFoundation"
6623      cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 #include <CFPreferences.h>
6630 int
6631 main ()
6632 {
6633 CFPreferencesCopyAppValue(NULL, NULL)
6634   ;
6635   return 0;
6636 }
6637 _ACEOF
6638 rm -f conftest.$ac_objext conftest$ac_exeext
6639 if { (ac_try="$ac_link"
6640 case "(($ac_try" in
6641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642   *) ac_try_echo=$ac_try;;
6643 esac
6644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6645   (eval "$ac_link") 2>conftest.er1
6646   ac_status=$?
6647   grep -v '^ *+' conftest.er1 >conftest.err
6648   rm -f conftest.er1
6649   cat conftest.err >&5
6650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651   (exit $ac_status); } && {
6652          test -z "$ac_c_werror_flag" ||
6653          test ! -s conftest.err
6654        } && test -s conftest$ac_exeext &&
6655        $as_test_x conftest$ac_exeext; then
6656   gt_cv_func_CFPreferencesCopyAppValue=yes
6657 else
6658   echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661         gt_cv_func_CFPreferencesCopyAppValue=no
6662 fi
6663
6664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6665       conftest$ac_exeext conftest.$ac_ext
6666      CPPFLAGS="$gt_save_CPPFLAGS"
6667      LIBS="$gt_save_LIBS"
6668 fi
6669 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6670 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6671   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6672
6673 cat >>confdefs.h <<\_ACEOF
6674 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6675 _ACEOF
6676
6677   fi
6678     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6679 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6680 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6681   echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683   gt_save_CPPFLAGS="$CPPFLAGS"
6684      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6685      gt_save_LIBS="$LIBS"
6686      LIBS="$LIBS -framework CoreFoundation"
6687      cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h.  */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h.  */
6693 #include <CFLocale.h>
6694 int
6695 main ()
6696 {
6697 CFLocaleCopyCurrent();
6698   ;
6699   return 0;
6700 }
6701 _ACEOF
6702 rm -f conftest.$ac_objext conftest$ac_exeext
6703 if { (ac_try="$ac_link"
6704 case "(($ac_try" in
6705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706   *) ac_try_echo=$ac_try;;
6707 esac
6708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709   (eval "$ac_link") 2>conftest.er1
6710   ac_status=$?
6711   grep -v '^ *+' conftest.er1 >conftest.err
6712   rm -f conftest.er1
6713   cat conftest.err >&5
6714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715   (exit $ac_status); } && {
6716          test -z "$ac_c_werror_flag" ||
6717          test ! -s conftest.err
6718        } && test -s conftest$ac_exeext &&
6719        $as_test_x conftest$ac_exeext; then
6720   gt_cv_func_CFLocaleCopyCurrent=yes
6721 else
6722   echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6724
6725         gt_cv_func_CFLocaleCopyCurrent=no
6726 fi
6727
6728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6729       conftest$ac_exeext conftest.$ac_ext
6730      CPPFLAGS="$gt_save_CPPFLAGS"
6731      LIBS="$gt_save_LIBS"
6732 fi
6733 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6734 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6735   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6736
6737 cat >>confdefs.h <<\_ACEOF
6738 #define HAVE_CFLOCALECOPYCURRENT 1
6739 _ACEOF
6740
6741   fi
6742   INTL_MACOSX_LIBS=
6743   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6744     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6745   fi
6746
6747
6748
6749
6750   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6751 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6752     # Check whether --enable-nls was given.
6753 if test "${enable_nls+set}" = set; then
6754   enableval=$enable_nls; USE_NLS=$enableval
6755 else
6756   USE_NLS=yes
6757 fi
6758
6759   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6760 echo "${ECHO_T}$USE_NLS" >&6; }
6761
6762
6763
6764
6765   LIBINTL=
6766   LTLIBINTL=
6767   POSUB=
6768
6769     if test "$USE_NLS" = "yes"; then
6770     gt_use_preinstalled_gnugettext=no
6771
6772
6773
6774
6775
6776
6777         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6778 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6779 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h.  */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h.  */
6788 #include <libintl.h>
6789 extern int _nl_msg_cat_cntr;
6790 extern int *_nl_domain_bindings;
6791 int
6792 main ()
6793 {
6794 bindtextdomain ("", "");
6795 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6796   ;
6797   return 0;
6798 }
6799 _ACEOF
6800 rm -f conftest.$ac_objext conftest$ac_exeext
6801 if { (ac_try="$ac_link"
6802 case "(($ac_try" in
6803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804   *) ac_try_echo=$ac_try;;
6805 esac
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807   (eval "$ac_link") 2>conftest.er1
6808   ac_status=$?
6809   grep -v '^ *+' conftest.er1 >conftest.err
6810   rm -f conftest.er1
6811   cat conftest.err >&5
6812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813   (exit $ac_status); } && {
6814          test -z "$ac_c_werror_flag" ||
6815          test ! -s conftest.err
6816        } && test -s conftest$ac_exeext &&
6817        $as_test_x conftest$ac_exeext; then
6818   gt_cv_func_gnugettext1_libc=yes
6819 else
6820   echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6822
6823         gt_cv_func_gnugettext1_libc=no
6824 fi
6825
6826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6827       conftest$ac_exeext conftest.$ac_ext
6828 fi
6829 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6830 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6831
6832         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6833
6834
6835
6836
6837
6838           am_save_CPPFLAGS="$CPPFLAGS"
6839
6840   for element in $INCICONV; do
6841     haveit=
6842     for x in $CPPFLAGS; do
6843
6844   acl_save_prefix="$prefix"
6845   prefix="$acl_final_prefix"
6846   acl_save_exec_prefix="$exec_prefix"
6847   exec_prefix="$acl_final_exec_prefix"
6848   eval x=\"$x\"
6849   exec_prefix="$acl_save_exec_prefix"
6850   prefix="$acl_save_prefix"
6851
6852       if test "X$x" = "X$element"; then
6853         haveit=yes
6854         break
6855       fi
6856     done
6857     if test -z "$haveit"; then
6858       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6859     fi
6860   done
6861
6862
6863   { echo "$as_me:$LINENO: checking for iconv" >&5
6864 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6865 if test "${am_cv_func_iconv+set}" = set; then
6866   echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6868
6869     am_cv_func_iconv="no, consider installing GNU libiconv"
6870     am_cv_lib_iconv=no
6871     cat >conftest.$ac_ext <<_ACEOF
6872 /* confdefs.h.  */
6873 _ACEOF
6874 cat confdefs.h >>conftest.$ac_ext
6875 cat >>conftest.$ac_ext <<_ACEOF
6876 /* end confdefs.h.  */
6877 #include <stdlib.h>
6878 #include <iconv.h>
6879 int
6880 main ()
6881 {
6882 iconv_t cd = iconv_open("","");
6883        iconv(cd,NULL,NULL,NULL,NULL);
6884        iconv_close(cd);
6885   ;
6886   return 0;
6887 }
6888 _ACEOF
6889 rm -f conftest.$ac_objext conftest$ac_exeext
6890 if { (ac_try="$ac_link"
6891 case "(($ac_try" in
6892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893   *) ac_try_echo=$ac_try;;
6894 esac
6895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6896   (eval "$ac_link") 2>conftest.er1
6897   ac_status=$?
6898   grep -v '^ *+' conftest.er1 >conftest.err
6899   rm -f conftest.er1
6900   cat conftest.err >&5
6901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902   (exit $ac_status); } && {
6903          test -z "$ac_c_werror_flag" ||
6904          test ! -s conftest.err
6905        } && test -s conftest$ac_exeext &&
6906        $as_test_x conftest$ac_exeext; then
6907   am_cv_func_iconv=yes
6908 else
6909   echo "$as_me: failed program was:" >&5
6910 sed 's/^/| /' conftest.$ac_ext >&5
6911
6912
6913 fi
6914
6915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6916       conftest$ac_exeext conftest.$ac_ext
6917     if test "$am_cv_func_iconv" != yes; then
6918       am_save_LIBS="$LIBS"
6919       LIBS="$LIBS $LIBICONV"
6920       cat >conftest.$ac_ext <<_ACEOF
6921 /* confdefs.h.  */
6922 _ACEOF
6923 cat confdefs.h >>conftest.$ac_ext
6924 cat >>conftest.$ac_ext <<_ACEOF
6925 /* end confdefs.h.  */
6926 #include <stdlib.h>
6927 #include <iconv.h>
6928 int
6929 main ()
6930 {
6931 iconv_t cd = iconv_open("","");
6932          iconv(cd,NULL,NULL,NULL,NULL);
6933          iconv_close(cd);
6934   ;
6935   return 0;
6936 }
6937 _ACEOF
6938 rm -f conftest.$ac_objext conftest$ac_exeext
6939 if { (ac_try="$ac_link"
6940 case "(($ac_try" in
6941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942   *) ac_try_echo=$ac_try;;
6943 esac
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945   (eval "$ac_link") 2>conftest.er1
6946   ac_status=$?
6947   grep -v '^ *+' conftest.er1 >conftest.err
6948   rm -f conftest.er1
6949   cat conftest.err >&5
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); } && {
6952          test -z "$ac_c_werror_flag" ||
6953          test ! -s conftest.err
6954        } && test -s conftest$ac_exeext &&
6955        $as_test_x conftest$ac_exeext; then
6956   am_cv_lib_iconv=yes
6957         am_cv_func_iconv=yes
6958 else
6959   echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.$ac_ext >&5
6961
6962
6963 fi
6964
6965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6966       conftest$ac_exeext conftest.$ac_ext
6967       LIBS="$am_save_LIBS"
6968     fi
6969
6970 fi
6971 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6972 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6973   if test "$am_cv_func_iconv" = yes; then
6974
6975 cat >>confdefs.h <<\_ACEOF
6976 #define HAVE_ICONV 1
6977 _ACEOF
6978
6979   fi
6980   if test "$am_cv_lib_iconv" = yes; then
6981     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6982 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6983     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6984 echo "${ECHO_T}$LIBICONV" >&6; }
6985   else
6986             CPPFLAGS="$am_save_CPPFLAGS"
6987     LIBICONV=
6988     LTLIBICONV=
6989   fi
6990
6991
6992
6993
6994
6995
6996     use_additional=yes
6997
6998   acl_save_prefix="$prefix"
6999   prefix="$acl_final_prefix"
7000   acl_save_exec_prefix="$exec_prefix"
7001   exec_prefix="$acl_final_exec_prefix"
7002
7003     eval additional_includedir=\"$includedir\"
7004     eval additional_libdir=\"$libdir\"
7005
7006   exec_prefix="$acl_save_exec_prefix"
7007   prefix="$acl_save_prefix"
7008
7009
7010 # Check whether --with-libintl-prefix was given.
7011 if test "${with_libintl_prefix+set}" = set; then
7012   withval=$with_libintl_prefix;
7013     if test "X$withval" = "Xno"; then
7014       use_additional=no
7015     else
7016       if test "X$withval" = "X"; then
7017
7018   acl_save_prefix="$prefix"
7019   prefix="$acl_final_prefix"
7020   acl_save_exec_prefix="$exec_prefix"
7021   exec_prefix="$acl_final_exec_prefix"
7022
7023           eval additional_includedir=\"$includedir\"
7024           eval additional_libdir=\"$libdir\"
7025
7026   exec_prefix="$acl_save_exec_prefix"
7027   prefix="$acl_save_prefix"
7028
7029       else
7030         additional_includedir="$withval/include"
7031         additional_libdir="$withval/lib"
7032       fi
7033     fi
7034
7035 fi
7036
7037       LIBINTL=
7038   LTLIBINTL=
7039   INCINTL=
7040   rpathdirs=
7041   ltrpathdirs=
7042   names_already_handled=
7043   names_next_round='intl '
7044   while test -n "$names_next_round"; do
7045     names_this_round="$names_next_round"
7046     names_next_round=
7047     for name in $names_this_round; do
7048       already_handled=
7049       for n in $names_already_handled; do
7050         if test "$n" = "$name"; then
7051           already_handled=yes
7052           break
7053         fi
7054       done
7055       if test -z "$already_handled"; then
7056         names_already_handled="$names_already_handled $name"
7057                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7058         eval value=\"\$HAVE_LIB$uppername\"
7059         if test -n "$value"; then
7060           if test "$value" = yes; then
7061             eval value=\"\$LIB$uppername\"
7062             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7063             eval value=\"\$LTLIB$uppername\"
7064             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7065           else
7066                                     :
7067           fi
7068         else
7069                               found_dir=
7070           found_la=
7071           found_so=
7072           found_a=
7073           if test $use_additional = yes; then
7074             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7075               found_dir="$additional_libdir"
7076               found_so="$additional_libdir/lib$name.$shlibext"
7077               if test -f "$additional_libdir/lib$name.la"; then
7078                 found_la="$additional_libdir/lib$name.la"
7079               fi
7080             else
7081               if test -f "$additional_libdir/lib$name.$libext"; then
7082                 found_dir="$additional_libdir"
7083                 found_a="$additional_libdir/lib$name.$libext"
7084                 if test -f "$additional_libdir/lib$name.la"; then
7085                   found_la="$additional_libdir/lib$name.la"
7086                 fi
7087               fi
7088             fi
7089           fi
7090           if test "X$found_dir" = "X"; then
7091             for x in $LDFLAGS $LTLIBINTL; do
7092
7093   acl_save_prefix="$prefix"
7094   prefix="$acl_final_prefix"
7095   acl_save_exec_prefix="$exec_prefix"
7096   exec_prefix="$acl_final_exec_prefix"
7097   eval x=\"$x\"
7098   exec_prefix="$acl_save_exec_prefix"
7099   prefix="$acl_save_prefix"
7100
7101               case "$x" in
7102                 -L*)
7103                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7104                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7105                     found_dir="$dir"
7106                     found_so="$dir/lib$name.$shlibext"
7107                     if test -f "$dir/lib$name.la"; then
7108                       found_la="$dir/lib$name.la"
7109                     fi
7110                   else
7111                     if test -f "$dir/lib$name.$libext"; then
7112                       found_dir="$dir"
7113                       found_a="$dir/lib$name.$libext"
7114                       if test -f "$dir/lib$name.la"; then
7115                         found_la="$dir/lib$name.la"
7116                       fi
7117                     fi
7118                   fi
7119                   ;;
7120               esac
7121               if test "X$found_dir" != "X"; then
7122                 break
7123               fi
7124             done
7125           fi
7126           if test "X$found_dir" != "X"; then
7127                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7128             if test "X$found_so" != "X"; then
7129                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7130                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7131               else
7132                                                                                 haveit=
7133                 for x in $ltrpathdirs; do
7134                   if test "X$x" = "X$found_dir"; then
7135                     haveit=yes
7136                     break
7137                   fi
7138                 done
7139                 if test -z "$haveit"; then
7140                   ltrpathdirs="$ltrpathdirs $found_dir"
7141                 fi
7142                                 if test "$hardcode_direct" = yes; then
7143                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7144                 else
7145                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7146                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7147                                                             haveit=
7148                     for x in $rpathdirs; do
7149                       if test "X$x" = "X$found_dir"; then
7150                         haveit=yes
7151                         break
7152                       fi
7153                     done
7154                     if test -z "$haveit"; then
7155                       rpathdirs="$rpathdirs $found_dir"
7156                     fi
7157                   else
7158                                                                                 haveit=
7159                     for x in $LDFLAGS $LIBINTL; do
7160
7161   acl_save_prefix="$prefix"
7162   prefix="$acl_final_prefix"
7163   acl_save_exec_prefix="$exec_prefix"
7164   exec_prefix="$acl_final_exec_prefix"
7165   eval x=\"$x\"
7166   exec_prefix="$acl_save_exec_prefix"
7167   prefix="$acl_save_prefix"
7168
7169                       if test "X$x" = "X-L$found_dir"; then
7170                         haveit=yes
7171                         break
7172                       fi
7173                     done
7174                     if test -z "$haveit"; then
7175                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7176                     fi
7177                     if test "$hardcode_minus_L" != no; then
7178                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7179                     else
7180                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7181                     fi
7182                   fi
7183                 fi
7184               fi
7185             else
7186               if test "X$found_a" != "X"; then
7187                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7188               else
7189                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7190               fi
7191             fi
7192                         additional_includedir=
7193             case "$found_dir" in
7194               */lib | */lib/)
7195                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7196                 additional_includedir="$basedir/include"
7197                 ;;
7198             esac
7199             if test "X$additional_includedir" != "X"; then
7200                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7201                 haveit=
7202                 if test "X$additional_includedir" = "X/usr/local/include"; then
7203                   if test -n "$GCC"; then
7204                     case $host_os in
7205                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7206                     esac
7207                   fi
7208                 fi
7209                 if test -z "$haveit"; then
7210                   for x in $CPPFLAGS $INCINTL; do
7211
7212   acl_save_prefix="$prefix"
7213   prefix="$acl_final_prefix"
7214   acl_save_exec_prefix="$exec_prefix"
7215   exec_prefix="$acl_final_exec_prefix"
7216   eval x=\"$x\"
7217   exec_prefix="$acl_save_exec_prefix"
7218   prefix="$acl_save_prefix"
7219
7220                     if test "X$x" = "X-I$additional_includedir"; then
7221                       haveit=yes
7222                       break
7223                     fi
7224                   done
7225                   if test -z "$haveit"; then
7226                     if test -d "$additional_includedir"; then
7227                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7228                     fi
7229                   fi
7230                 fi
7231               fi
7232             fi
7233                         if test -n "$found_la"; then
7234                                                         save_libdir="$libdir"
7235               case "$found_la" in
7236                 */* | *\\*) . "$found_la" ;;
7237                 *) . "./$found_la" ;;
7238               esac
7239               libdir="$save_libdir"
7240                             for dep in $dependency_libs; do
7241                 case "$dep" in
7242                   -L*)
7243                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7244                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7245                       haveit=
7246                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7247                         if test -n "$GCC"; then
7248                           case $host_os in
7249                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7250                           esac
7251                         fi
7252                       fi
7253                       if test -z "$haveit"; then
7254                         haveit=
7255                         for x in $LDFLAGS $LIBINTL; do
7256
7257   acl_save_prefix="$prefix"
7258   prefix="$acl_final_prefix"
7259   acl_save_exec_prefix="$exec_prefix"
7260   exec_prefix="$acl_final_exec_prefix"
7261   eval x=\"$x\"
7262   exec_prefix="$acl_save_exec_prefix"
7263   prefix="$acl_save_prefix"
7264
7265                           if test "X$x" = "X-L$additional_libdir"; then
7266                             haveit=yes
7267                             break
7268                           fi
7269                         done
7270                         if test -z "$haveit"; then
7271                           if test -d "$additional_libdir"; then
7272                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7273                           fi
7274                         fi
7275                         haveit=
7276                         for x in $LDFLAGS $LTLIBINTL; do
7277
7278   acl_save_prefix="$prefix"
7279   prefix="$acl_final_prefix"
7280   acl_save_exec_prefix="$exec_prefix"
7281   exec_prefix="$acl_final_exec_prefix"
7282   eval x=\"$x\"
7283   exec_prefix="$acl_save_exec_prefix"
7284   prefix="$acl_save_prefix"
7285
7286                           if test "X$x" = "X-L$additional_libdir"; then
7287                             haveit=yes
7288                             break
7289                           fi
7290                         done
7291                         if test -z "$haveit"; then
7292                           if test -d "$additional_libdir"; then
7293                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7294                           fi
7295                         fi
7296                       fi
7297                     fi
7298                     ;;
7299                   -R*)
7300                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7301                     if test "$enable_rpath" != no; then
7302                                                                   haveit=
7303                       for x in $rpathdirs; do
7304                         if test "X$x" = "X$dir"; then
7305                           haveit=yes
7306                           break
7307                         fi
7308                       done
7309                       if test -z "$haveit"; then
7310                         rpathdirs="$rpathdirs $dir"
7311                       fi
7312                                                                   haveit=
7313                       for x in $ltrpathdirs; do
7314                         if test "X$x" = "X$dir"; then
7315                           haveit=yes
7316                           break
7317                         fi
7318                       done
7319                       if test -z "$haveit"; then
7320                         ltrpathdirs="$ltrpathdirs $dir"
7321                       fi
7322                     fi
7323                     ;;
7324                   -l*)
7325                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7326                     ;;
7327                   *.la)
7328                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7329                     ;;
7330                   *)
7331                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7332                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7333                     ;;
7334                 esac
7335               done
7336             fi
7337           else
7338                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7339             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7340           fi
7341         fi
7342       fi
7343     done
7344   done
7345   if test "X$rpathdirs" != "X"; then
7346     if test -n "$hardcode_libdir_separator"; then
7347                         alldirs=
7348       for found_dir in $rpathdirs; do
7349         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7350       done
7351             acl_save_libdir="$libdir"
7352       libdir="$alldirs"
7353       eval flag=\"$hardcode_libdir_flag_spec\"
7354       libdir="$acl_save_libdir"
7355       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7356     else
7357             for found_dir in $rpathdirs; do
7358         acl_save_libdir="$libdir"
7359         libdir="$found_dir"
7360         eval flag=\"$hardcode_libdir_flag_spec\"
7361         libdir="$acl_save_libdir"
7362         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7363       done
7364     fi
7365   fi
7366   if test "X$ltrpathdirs" != "X"; then
7367             for found_dir in $ltrpathdirs; do
7368       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7369     done
7370   fi
7371
7372           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7373 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7374 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7375   echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377   gt_save_CPPFLAGS="$CPPFLAGS"
7378             CPPFLAGS="$CPPFLAGS $INCINTL"
7379             gt_save_LIBS="$LIBS"
7380             LIBS="$LIBS $LIBINTL"
7381                         cat >conftest.$ac_ext <<_ACEOF
7382 /* confdefs.h.  */
7383 _ACEOF
7384 cat confdefs.h >>conftest.$ac_ext
7385 cat >>conftest.$ac_ext <<_ACEOF
7386 /* end confdefs.h.  */
7387 #include <libintl.h>
7388 extern int _nl_msg_cat_cntr;
7389 extern
7390 #ifdef __cplusplus
7391 "C"
7392 #endif
7393 const char *_nl_expand_alias (const char *);
7394 int
7395 main ()
7396 {
7397 bindtextdomain ("", "");
7398 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 rm -f conftest.$ac_objext conftest$ac_exeext
7404 if { (ac_try="$ac_link"
7405 case "(($ac_try" in
7406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407   *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410   (eval "$ac_link") 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } && {
7417          test -z "$ac_c_werror_flag" ||
7418          test ! -s conftest.err
7419        } && test -s conftest$ac_exeext &&
7420        $as_test_x conftest$ac_exeext; then
7421   gt_cv_func_gnugettext1_libintl=yes
7422 else
7423   echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7425
7426         gt_cv_func_gnugettext1_libintl=no
7427 fi
7428
7429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7430       conftest$ac_exeext conftest.$ac_ext
7431                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7432               LIBS="$LIBS $LIBICONV"
7433               cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 #include <libintl.h>
7440 extern int _nl_msg_cat_cntr;
7441 extern
7442 #ifdef __cplusplus
7443 "C"
7444 #endif
7445 const char *_nl_expand_alias (const char *);
7446 int
7447 main ()
7448 {
7449 bindtextdomain ("", "");
7450 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7451   ;
7452   return 0;
7453 }
7454 _ACEOF
7455 rm -f conftest.$ac_objext conftest$ac_exeext
7456 if { (ac_try="$ac_link"
7457 case "(($ac_try" in
7458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459   *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462   (eval "$ac_link") 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } && {
7469          test -z "$ac_c_werror_flag" ||
7470          test ! -s conftest.err
7471        } && test -s conftest$ac_exeext &&
7472        $as_test_x conftest$ac_exeext; then
7473   LIBINTL="$LIBINTL $LIBICONV"
7474                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7475                 gt_cv_func_gnugettext1_libintl=yes
7476
7477 else
7478   echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7480
7481
7482 fi
7483
7484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7485       conftest$ac_exeext conftest.$ac_ext
7486             fi
7487             CPPFLAGS="$gt_save_CPPFLAGS"
7488             LIBS="$gt_save_LIBS"
7489 fi
7490 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7491 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7492         fi
7493
7494                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7495            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7496                 && test "$PACKAGE" != gettext-runtime \
7497                 && test "$PACKAGE" != gettext-tools; }; then
7498           gt_use_preinstalled_gnugettext=yes
7499         else
7500                     LIBINTL=
7501           LTLIBINTL=
7502           INCINTL=
7503         fi
7504
7505
7506
7507     if test -n "$INTL_MACOSX_LIBS"; then
7508       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7509          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7510                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7511         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7512       fi
7513     fi
7514
7515     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7516        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7517
7518 cat >>confdefs.h <<\_ACEOF
7519 #define ENABLE_NLS 1
7520 _ACEOF
7521
7522     else
7523       USE_NLS=no
7524     fi
7525   fi
7526
7527   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7528 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7529   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7530 echo "${ECHO_T}$USE_NLS" >&6; }
7531   if test "$USE_NLS" = "yes"; then
7532     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7533 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7534     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7535       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7536         gt_source="external libintl"
7537       else
7538         gt_source="libc"
7539       fi
7540     else
7541       gt_source="included intl directory"
7542     fi
7543     { echo "$as_me:$LINENO: result: $gt_source" >&5
7544 echo "${ECHO_T}$gt_source" >&6; }
7545   fi
7546
7547   if test "$USE_NLS" = "yes"; then
7548
7549     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7550       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7551         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7552 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7553         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7554 echo "${ECHO_T}$LIBINTL" >&6; }
7555
7556   for element in $INCINTL; do
7557     haveit=
7558     for x in $CPPFLAGS; do
7559
7560   acl_save_prefix="$prefix"
7561   prefix="$acl_final_prefix"
7562   acl_save_exec_prefix="$exec_prefix"
7563   exec_prefix="$acl_final_exec_prefix"
7564   eval x=\"$x\"
7565   exec_prefix="$acl_save_exec_prefix"
7566   prefix="$acl_save_prefix"
7567
7568       if test "X$x" = "X$element"; then
7569         haveit=yes
7570         break
7571       fi
7572     done
7573     if test -z "$haveit"; then
7574       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7575     fi
7576   done
7577
7578       fi
7579
7580
7581 cat >>confdefs.h <<\_ACEOF
7582 #define HAVE_GETTEXT 1
7583 _ACEOF
7584
7585
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_DCGETTEXT 1
7588 _ACEOF
7589
7590     fi
7591
7592         POSUB=po
7593   fi
7594
7595
7596
7597     INTLLIBS="$LIBINTL"
7598
7599
7600
7601
7602
7603
7604 if test x${prefix} = xNONE ; then
7605    if test `eval echo ${datadir}` = NONE/share ; then
7606       datadir=/usr/share
7607    fi
7608 fi
7609
7610 # ------------------------------------------------------------------
7611 #  If the user has not set --prefix, we set our default to nothing.
7612 #  In this case, if the user has not set --sysconfdir, we set it
7613 #  to the package default of /etc/bacula.  If either --prefix or
7614 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7615 # ------------------------------------------------------------------
7616 if test x${prefix} = xNONE ; then
7617     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7618         sysconfdir=/etc/bacula
7619     fi
7620     prefix=
7621 fi
7622 sysconfdir=`eval echo ${sysconfdir}`
7623 datadir=`eval echo ${datadir}`
7624 localedir=`eval echo ${datadir}/locale`
7625 cat >>confdefs.h <<_ACEOF
7626 #define LOCALEDIR "$localedir"
7627 _ACEOF
7628
7629 cat >>confdefs.h <<_ACEOF
7630 #define SYSCONFDIR "$sysconfdir"
7631 _ACEOF
7632
7633
7634 # -------------------------------------------------------------------------
7635 #  If the user has not set --exec-prefix, we default to ${prefix}
7636 # -------------------------------------------------------------------------
7637 if test x${exec_prefix} = xNONE ; then
7638     exec_prefix=${prefix}
7639 fi
7640
7641 # ------------------------------------------------------------------
7642 # If the user has not set --sbindir, we set our default as /sbin
7643 # ------------------------------------------------------------------
7644 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7645     sbindir=${exec_prefix}/sbin
7646 fi
7647 sbindir=`eval echo ${sbindir}`
7648
7649
7650 # -------------------------------------------------------------------------
7651 #  If the user has not set --mandir, we default to /usr/share/man
7652 # -------------------------------------------------------------------------
7653 if test x$mandir = x'${prefix}/man' ; then
7654    mandir=/usr/share/man
7655 fi
7656
7657
7658 for ac_prog in msgfmt
7659 do
7660   # Extract the first word of "$ac_prog", so it can be a program name with args.
7661 set dummy $ac_prog; ac_word=$2
7662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7664 if test "${ac_cv_path_MSGFMT+set}" = set; then
7665   echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667   case $MSGFMT in
7668   [\\/]* | ?:[\\/]*)
7669   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7670   ;;
7671   *)
7672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7674 do
7675   IFS=$as_save_IFS
7676   test -z "$as_dir" && as_dir=.
7677   for ac_exec_ext in '' $ac_executable_extensions; do
7678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7681     break 2
7682   fi
7683 done
7684 done
7685 IFS=$as_save_IFS
7686
7687   ;;
7688 esac
7689 fi
7690 MSGFMT=$ac_cv_path_MSGFMT
7691 if test -n "$MSGFMT"; then
7692   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7693 echo "${ECHO_T}$MSGFMT" >&6; }
7694 else
7695   { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7697 fi
7698
7699
7700   test -n "$MSGFMT" && break
7701 done
7702 test -n "$MSGFMT" || MSGFMT="no"
7703
7704 if test "$MSGFMT" = "no"
7705 then
7706    echo 'msgfmt program not found, disabling NLS !'
7707    USE_NLS=no
7708    USE_INCLUDED_LIBINTL=no
7709 #else
7710
7711     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7712 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7713 if test "${ac_cv_gnu_library_2+set}" = set; then
7714   echo $ECHO_N "(cached) $ECHO_C" >&6
7715 else
7716   cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h.  */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h.  */
7722
7723 #include <features.h>
7724 #ifdef __GNU_LIBRARY__
7725  #if (__GLIBC__ >= 2)
7726   Lucky GNU user
7727  #endif
7728 #endif
7729
7730 _ACEOF
7731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7733   ac_cv_gnu_library_2=yes
7734 else
7735   ac_cv_gnu_library_2=no
7736 fi
7737 rm -f conftest*
7738
7739
7740
7741 fi
7742 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7743 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7744
7745     GLIBC2="$ac_cv_gnu_library_2"
7746
7747
7748
7749         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7750 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7751 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   ac_check_lib_save_LIBS=$LIBS
7755 LIBS="-lcposix  $LIBS"
7756 cat >conftest.$ac_ext <<_ACEOF
7757 /* confdefs.h.  */
7758 _ACEOF
7759 cat confdefs.h >>conftest.$ac_ext
7760 cat >>conftest.$ac_ext <<_ACEOF
7761 /* end confdefs.h.  */
7762
7763 /* Override any GCC internal prototype to avoid an error.
7764    Use char because int might match the return type of a GCC
7765    builtin and then its argument prototype would still apply.  */
7766 #ifdef __cplusplus
7767 extern "C"
7768 #endif
7769 char strerror ();
7770 int
7771 main ()
7772 {
7773 return strerror ();
7774   ;
7775   return 0;
7776 }
7777 _ACEOF
7778 rm -f conftest.$ac_objext conftest$ac_exeext
7779 if { (ac_try="$ac_link"
7780 case "(($ac_try" in
7781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782   *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785   (eval "$ac_link") 2>conftest.er1
7786   ac_status=$?
7787   grep -v '^ *+' conftest.er1 >conftest.err
7788   rm -f conftest.er1
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } && {
7792          test -z "$ac_c_werror_flag" ||
7793          test ! -s conftest.err
7794        } && test -s conftest$ac_exeext &&
7795        $as_test_x conftest$ac_exeext; then
7796   ac_cv_lib_cposix_strerror=yes
7797 else
7798   echo "$as_me: failed program was:" >&5
7799 sed 's/^/| /' conftest.$ac_ext >&5
7800
7801         ac_cv_lib_cposix_strerror=no
7802 fi
7803
7804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7805       conftest$ac_exeext conftest.$ac_ext
7806 LIBS=$ac_check_lib_save_LIBS
7807 fi
7808 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7809 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7810 if test $ac_cv_lib_cposix_strerror = yes; then
7811   LIBS="$LIBS -lcposix"
7812 fi
7813
7814
7815
7816 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7817 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7818 if test "${ac_cv_header_stdc+set}" = set; then
7819   echo $ECHO_N "(cached) $ECHO_C" >&6
7820 else
7821   cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h.  */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h.  */
7827 #include <stdlib.h>
7828 #include <stdarg.h>
7829 #include <string.h>
7830 #include <float.h>
7831
7832 int
7833 main ()
7834 {
7835
7836   ;
7837   return 0;
7838 }
7839 _ACEOF
7840 rm -f conftest.$ac_objext
7841 if { (ac_try="$ac_compile"
7842 case "(($ac_try" in
7843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844   *) ac_try_echo=$ac_try;;
7845 esac
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847   (eval "$ac_compile") 2>conftest.er1
7848   ac_status=$?
7849   grep -v '^ *+' conftest.er1 >conftest.err
7850   rm -f conftest.er1
7851   cat conftest.err >&5
7852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853   (exit $ac_status); } && {
7854          test -z "$ac_c_werror_flag" ||
7855          test ! -s conftest.err
7856        } && test -s conftest.$ac_objext; then
7857   ac_cv_header_stdc=yes
7858 else
7859   echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.$ac_ext >&5
7861
7862         ac_cv_header_stdc=no
7863 fi
7864
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866
7867 if test $ac_cv_header_stdc = yes; then
7868   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7869   cat >conftest.$ac_ext <<_ACEOF
7870 /* confdefs.h.  */
7871 _ACEOF
7872 cat confdefs.h >>conftest.$ac_ext
7873 cat >>conftest.$ac_ext <<_ACEOF
7874 /* end confdefs.h.  */
7875 #include <string.h>
7876
7877 _ACEOF
7878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7879   $EGREP "memchr" >/dev/null 2>&1; then
7880   :
7881 else
7882   ac_cv_header_stdc=no
7883 fi
7884 rm -f conftest*
7885
7886 fi
7887
7888 if test $ac_cv_header_stdc = yes; then
7889   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7890   cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 #include <stdlib.h>
7897
7898 _ACEOF
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900   $EGREP "free" >/dev/null 2>&1; then
7901   :
7902 else
7903   ac_cv_header_stdc=no
7904 fi
7905 rm -f conftest*
7906
7907 fi
7908
7909 if test $ac_cv_header_stdc = yes; then
7910   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7911   if test "$cross_compiling" = yes; then
7912   :
7913 else
7914   cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h.  */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h.  */
7920 #include <ctype.h>
7921 #include <stdlib.h>
7922 #if ((' ' & 0x0FF) == 0x020)
7923 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7924 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7925 #else
7926 # define ISLOWER(c) \
7927                    (('a' <= (c) && (c) <= 'i') \
7928                      || ('j' <= (c) && (c) <= 'r') \
7929                      || ('s' <= (c) && (c) <= 'z'))
7930 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7931 #endif
7932
7933 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7934 int
7935 main ()
7936 {
7937   int i;
7938   for (i = 0; i < 256; i++)
7939     if (XOR (islower (i), ISLOWER (i))
7940         || toupper (i) != TOUPPER (i))
7941       return 2;
7942   return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest$ac_exeext
7946 if { (ac_try="$ac_link"
7947 case "(($ac_try" in
7948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949   *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952   (eval "$ac_link") 2>&5
7953   ac_status=$?
7954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7956   { (case "(($ac_try" in
7957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958   *) ac_try_echo=$ac_try;;
7959 esac
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961   (eval "$ac_try") 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); }; }; then
7965   :
7966 else
7967   echo "$as_me: program exited with status $ac_status" >&5
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 ( exit $ac_status )
7972 ac_cv_header_stdc=no
7973 fi
7974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7975 fi
7976
7977
7978 fi
7979 fi
7980 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7981 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7982 if test $ac_cv_header_stdc = yes; then
7983
7984 cat >>confdefs.h <<\_ACEOF
7985 #define STDC_HEADERS 1
7986 _ACEOF
7987
7988 fi
7989
7990 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7991 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7992 if test "${ac_cv_c_const+set}" = set; then
7993   echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995   cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h.  */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h.  */
8001
8002 int
8003 main ()
8004 {
8005 /* FIXME: Include the comments suggested by Paul. */
8006 #ifndef __cplusplus
8007   /* Ultrix mips cc rejects this.  */
8008   typedef int charset[2];
8009   const charset cs;
8010   /* SunOS 4.1.1 cc rejects this.  */
8011   char const *const *pcpcc;
8012   char **ppc;
8013   /* NEC SVR4.0.2 mips cc rejects this.  */
8014   struct point {int x, y;};
8015   static struct point const zero = {0,0};
8016   /* AIX XL C 1.02.0.0 rejects this.
8017      It does not let you subtract one const X* pointer from another in
8018      an arm of an if-expression whose if-part is not a constant
8019      expression */
8020   const char *g = "string";
8021   pcpcc = &g + (g ? g-g : 0);
8022   /* HPUX 7.0 cc rejects these. */
8023   ++pcpcc;
8024   ppc = (char**) pcpcc;
8025   pcpcc = (char const *const *) ppc;
8026   { /* SCO 3.2v4 cc rejects this.  */
8027     char *t;
8028     char const *s = 0 ? (char *) 0 : (char const *) 0;
8029
8030     *t++ = 0;
8031     if (s) return 0;
8032   }
8033   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8034     int x[] = {25, 17};
8035     const int *foo = &x[0];
8036     ++foo;
8037   }
8038   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8039     typedef const int *iptr;
8040     iptr p = 0;
8041     ++p;
8042   }
8043   { /* AIX XL C 1.02.0.0 rejects this saying
8044        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8045     struct s { int j; const int *ap[3]; };
8046     struct s *b; b->j = 5;
8047   }
8048   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8049     const int foo = 10;
8050     if (!foo) return 0;
8051   }
8052   return !cs[0] && !zero.x;
8053 #endif
8054
8055   ;
8056   return 0;
8057 }
8058 _ACEOF
8059 rm -f conftest.$ac_objext
8060 if { (ac_try="$ac_compile"
8061 case "(($ac_try" in
8062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063   *) ac_try_echo=$ac_try;;
8064 esac
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066   (eval "$ac_compile") 2>conftest.er1
8067   ac_status=$?
8068   grep -v '^ *+' conftest.er1 >conftest.err
8069   rm -f conftest.er1
8070   cat conftest.err >&5
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); } && {
8073          test -z "$ac_c_werror_flag" ||
8074          test ! -s conftest.err
8075        } && test -s conftest.$ac_objext; then
8076   ac_cv_c_const=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         ac_cv_c_const=no
8082 fi
8083
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 fi
8086 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8087 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8088 if test $ac_cv_c_const = no; then
8089
8090 cat >>confdefs.h <<\_ACEOF
8091 #define const
8092 _ACEOF
8093
8094 fi
8095
8096
8097   { echo "$as_me:$LINENO: checking for signed" >&5
8098 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8099 if test "${bh_cv_c_signed+set}" = set; then
8100   echo $ECHO_N "(cached) $ECHO_C" >&6
8101 else
8102   cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108
8109 int
8110 main ()
8111 {
8112 signed char x;
8113   ;
8114   return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8119 case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_compile") 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } && {
8131          test -z "$ac_c_werror_flag" ||
8132          test ! -s conftest.err
8133        } && test -s conftest.$ac_objext; then
8134   bh_cv_c_signed=yes
8135 else
8136   echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139         bh_cv_c_signed=no
8140 fi
8141
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 fi
8144 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8145 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8146   if test $bh_cv_c_signed = no; then
8147
8148 cat >>confdefs.h <<\_ACEOF
8149 #define signed
8150 _ACEOF
8151
8152   fi
8153
8154 { echo "$as_me:$LINENO: checking for inline" >&5
8155 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8156 if test "${ac_cv_c_inline+set}" = set; then
8157   echo $ECHO_N "(cached) $ECHO_C" >&6
8158 else
8159   ac_cv_c_inline=no
8160 for ac_kw in inline __inline__ __inline; do
8161   cat >conftest.$ac_ext <<_ACEOF
8162 /* confdefs.h.  */
8163 _ACEOF
8164 cat confdefs.h >>conftest.$ac_ext
8165 cat >>conftest.$ac_ext <<_ACEOF
8166 /* end confdefs.h.  */
8167 #ifndef __cplusplus
8168 typedef int foo_t;
8169 static $ac_kw foo_t static_foo () {return 0; }
8170 $ac_kw foo_t foo () {return 0; }
8171 #endif
8172
8173 _ACEOF
8174 rm -f conftest.$ac_objext
8175 if { (ac_try="$ac_compile"
8176 case "(($ac_try" in
8177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8178   *) ac_try_echo=$ac_try;;
8179 esac
8180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8181   (eval "$ac_compile") 2>conftest.er1
8182   ac_status=$?
8183   grep -v '^ *+' conftest.er1 >conftest.err
8184   rm -f conftest.er1
8185   cat conftest.err >&5
8186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187   (exit $ac_status); } && {
8188          test -z "$ac_c_werror_flag" ||
8189          test ! -s conftest.err
8190        } && test -s conftest.$ac_objext; then
8191   ac_cv_c_inline=$ac_kw
8192 else
8193   echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8195
8196
8197 fi
8198
8199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200   test "$ac_cv_c_inline" != no && break
8201 done
8202
8203 fi
8204 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8205 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8206
8207
8208 case $ac_cv_c_inline in
8209   inline | yes) ;;
8210   *)
8211     case $ac_cv_c_inline in
8212       no) ac_val=;;
8213       *) ac_val=$ac_cv_c_inline;;
8214     esac
8215     cat >>confdefs.h <<_ACEOF
8216 #ifndef __cplusplus
8217 #define inline $ac_val
8218 #endif
8219 _ACEOF
8220     ;;
8221 esac
8222
8223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8234                   inttypes.h stdint.h unistd.h
8235 do
8236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248 $ac_includes_default
8249
8250 #include <$ac_header>
8251 _ACEOF
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8254 case "(($ac_try" in
8255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256   *) ac_try_echo=$ac_try;;
8257 esac
8258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8259   (eval "$ac_compile") 2>conftest.er1
8260   ac_status=$?
8261   grep -v '^ *+' conftest.er1 >conftest.err
8262   rm -f conftest.er1
8263   cat conftest.err >&5
8264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265   (exit $ac_status); } && {
8266          test -z "$ac_c_werror_flag" ||
8267          test ! -s conftest.err
8268        } && test -s conftest.$ac_objext; then
8269   eval "$as_ac_Header=yes"
8270 else
8271   echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274         eval "$as_ac_Header=no"
8275 fi
8276
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 fi
8279 ac_res=`eval echo '${'$as_ac_Header'}'`
8280                { echo "$as_me:$LINENO: result: $ac_res" >&5
8281 echo "${ECHO_T}$ac_res" >&6; }
8282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8283   cat >>confdefs.h <<_ACEOF
8284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8285 _ACEOF
8286
8287 fi
8288
8289 done
8290
8291
8292 { echo "$as_me:$LINENO: checking for off_t" >&5
8293 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8294 if test "${ac_cv_type_off_t+set}" = set; then
8295   echo $ECHO_N "(cached) $ECHO_C" >&6
8296 else
8297   cat >conftest.$ac_ext <<_ACEOF
8298 /* confdefs.h.  */
8299 _ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h.  */
8303 $ac_includes_default
8304 typedef off_t ac__type_new_;
8305 int
8306 main ()
8307 {
8308 if ((ac__type_new_ *) 0)
8309   return 0;
8310 if (sizeof (ac__type_new_))
8311   return 0;
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320   *) ac_try_echo=$ac_try;;
8321 esac
8322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8323   (eval "$ac_compile") 2>conftest.er1
8324   ac_status=$?
8325   grep -v '^ *+' conftest.er1 >conftest.err
8326   rm -f conftest.er1
8327   cat conftest.err >&5
8328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329   (exit $ac_status); } && {
8330          test -z "$ac_c_werror_flag" ||
8331          test ! -s conftest.err
8332        } && test -s conftest.$ac_objext; then
8333   ac_cv_type_off_t=yes
8334 else
8335   echo "$as_me: failed program was:" >&5
8336 sed 's/^/| /' conftest.$ac_ext >&5
8337
8338         ac_cv_type_off_t=no
8339 fi
8340
8341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 fi
8343 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8344 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8345 if test $ac_cv_type_off_t = yes; then
8346   :
8347 else
8348
8349 cat >>confdefs.h <<_ACEOF
8350 #define off_t long int
8351 _ACEOF
8352
8353 fi
8354
8355 { echo "$as_me:$LINENO: checking for size_t" >&5
8356 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8357 if test "${ac_cv_type_size_t+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   cat >conftest.$ac_ext <<_ACEOF
8361 /* confdefs.h.  */
8362 _ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h.  */
8366 $ac_includes_default
8367 typedef size_t ac__type_new_;
8368 int
8369 main ()
8370 {
8371 if ((ac__type_new_ *) 0)
8372   return 0;
8373 if (sizeof (ac__type_new_))
8374   return 0;
8375   ;
8376   return 0;
8377 }
8378 _ACEOF
8379 rm -f conftest.$ac_objext
8380 if { (ac_try="$ac_compile"
8381 case "(($ac_try" in
8382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8383   *) ac_try_echo=$ac_try;;
8384 esac
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386   (eval "$ac_compile") 2>conftest.er1
8387   ac_status=$?
8388   grep -v '^ *+' conftest.er1 >conftest.err
8389   rm -f conftest.er1
8390   cat conftest.err >&5
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); } && {
8393          test -z "$ac_c_werror_flag" ||
8394          test ! -s conftest.err
8395        } && test -s conftest.$ac_objext; then
8396   ac_cv_type_size_t=yes
8397 else
8398   echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8400
8401         ac_cv_type_size_t=no
8402 fi
8403
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8407 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8408 if test $ac_cv_type_size_t = yes; then
8409   :
8410 else
8411
8412 cat >>confdefs.h <<_ACEOF
8413 #define size_t unsigned int
8414 _ACEOF
8415
8416 fi
8417
8418
8419   { echo "$as_me:$LINENO: checking for long long" >&5
8420 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8421 if test "${ac_cv_type_long_long+set}" = set; then
8422   echo $ECHO_N "(cached) $ECHO_C" >&6
8423 else
8424   cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430 long long ll = 1LL; int i = 63;
8431 int
8432 main ()
8433 {
8434 long long llmax = (long long) -1;
8435      return ll << i | ll >> i | llmax / ll | llmax % ll;
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_link") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } && {
8454          test -z "$ac_c_werror_flag" ||
8455          test ! -s conftest.err
8456        } && test -s conftest$ac_exeext &&
8457        $as_test_x conftest$ac_exeext; then
8458   ac_cv_type_long_long=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463         ac_cv_type_long_long=no
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467       conftest$ac_exeext conftest.$ac_ext
8468 fi
8469 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8470 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8471   if test $ac_cv_type_long_long = yes; then
8472
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_LONG_LONG 1
8475 _ACEOF
8476
8477   fi
8478
8479
8480   { echo "$as_me:$LINENO: checking for long double" >&5
8481 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8482 if test "${gt_cv_c_long_double+set}" = set; then
8483   echo $ECHO_N "(cached) $ECHO_C" >&6
8484 else
8485   if test "$GCC" = yes; then
8486        gt_cv_c_long_double=yes
8487      else
8488        cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h.  */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h.  */
8494
8495          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8496          long double foo = 0.0;
8497          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8498          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8499
8500 int
8501 main ()
8502 {
8503
8504   ;
8505   return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512   *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515   (eval "$ac_compile") 2>conftest.er1
8516   ac_status=$?
8517   grep -v '^ *+' conftest.er1 >conftest.err
8518   rm -f conftest.er1
8519   cat conftest.err >&5
8520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521   (exit $ac_status); } && {
8522          test -z "$ac_c_werror_flag" ||
8523          test ! -s conftest.err
8524        } && test -s conftest.$ac_objext; then
8525   gt_cv_c_long_double=yes
8526 else
8527   echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530         gt_cv_c_long_double=no
8531 fi
8532
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534      fi
8535 fi
8536 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8537 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8538   if test $gt_cv_c_long_double = yes; then
8539
8540 cat >>confdefs.h <<\_ACEOF
8541 #define HAVE_LONG_DOUBLE 1
8542 _ACEOF
8543
8544   fi
8545
8546
8547   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8548 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8549 if test "${gt_cv_c_wchar_t+set}" = set; then
8550   echo $ECHO_N "(cached) $ECHO_C" >&6
8551 else
8552   cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558 #include <stddef.h>
8559        wchar_t foo = (wchar_t)'\0';
8560 int
8561 main ()
8562 {
8563
8564   ;
8565   return 0;
8566 }
8567 _ACEOF
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8570 case "(($ac_try" in
8571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8572   *) ac_try_echo=$ac_try;;
8573 esac
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575   (eval "$ac_compile") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } && {
8582          test -z "$ac_c_werror_flag" ||
8583          test ! -s conftest.err
8584        } && test -s conftest.$ac_objext; then
8585   gt_cv_c_wchar_t=yes
8586 else
8587   echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590         gt_cv_c_wchar_t=no
8591 fi
8592
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 fi
8595 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8596 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8597   if test $gt_cv_c_wchar_t = yes; then
8598
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_WCHAR_T 1
8601 _ACEOF
8602
8603   fi
8604
8605
8606   { echo "$as_me:$LINENO: checking for wint_t" >&5
8607 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8608 if test "${gt_cv_c_wint_t+set}" = set; then
8609   echo $ECHO_N "(cached) $ECHO_C" >&6
8610 else
8611   cat >conftest.$ac_ext <<_ACEOF
8612 /* confdefs.h.  */
8613 _ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h.  */
8617 #include <wchar.h>
8618        wint_t foo = (wchar_t)'\0';
8619 int
8620 main ()
8621 {
8622
8623   ;
8624   return 0;
8625 }
8626 _ACEOF
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8629 case "(($ac_try" in
8630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631   *) ac_try_echo=$ac_try;;
8632 esac
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634   (eval "$ac_compile") 2>conftest.er1
8635   ac_status=$?
8636   grep -v '^ *+' conftest.er1 >conftest.err
8637   rm -f conftest.er1
8638   cat conftest.err >&5
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); } && {
8641          test -z "$ac_c_werror_flag" ||
8642          test ! -s conftest.err
8643        } && test -s conftest.$ac_objext; then
8644   gt_cv_c_wint_t=yes
8645 else
8646   echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.$ac_ext >&5
8648
8649         gt_cv_c_wint_t=no
8650 fi
8651
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8655 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8656   if test $gt_cv_c_wint_t = yes; then
8657
8658 cat >>confdefs.h <<\_ACEOF
8659 #define HAVE_WINT_T 1
8660 _ACEOF
8661
8662   fi
8663
8664
8665   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8666 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8667 if test "${gl_cv_header_inttypes_h+set}" = set; then
8668   echo $ECHO_N "(cached) $ECHO_C" >&6
8669 else
8670   cat >conftest.$ac_ext <<_ACEOF
8671 /* confdefs.h.  */
8672 _ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h.  */
8676 #include <sys/types.h>
8677 #include <inttypes.h>
8678 int
8679 main ()
8680 {
8681 uintmax_t i = (uintmax_t) -1;
8682   ;
8683   return 0;
8684 }
8685 _ACEOF
8686 rm -f conftest.$ac_objext
8687 if { (ac_try="$ac_compile"
8688 case "(($ac_try" in
8689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690   *) ac_try_echo=$ac_try;;
8691 esac
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693   (eval "$ac_compile") 2>conftest.er1
8694   ac_status=$?
8695   grep -v '^ *+' conftest.er1 >conftest.err
8696   rm -f conftest.er1
8697   cat conftest.err >&5
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); } && {
8700          test -z "$ac_c_werror_flag" ||
8701          test ! -s conftest.err
8702        } && test -s conftest.$ac_objext; then
8703   gl_cv_header_inttypes_h=yes
8704 else
8705   echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8707
8708         gl_cv_header_inttypes_h=no
8709 fi
8710
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 fi
8713 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8714 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8715   if test $gl_cv_header_inttypes_h = yes; then
8716
8717 cat >>confdefs.h <<_ACEOF
8718 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8719 _ACEOF
8720
8721   fi
8722
8723
8724   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8725 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8726 if test "${gl_cv_header_stdint_h+set}" = set; then
8727   echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729   cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 #include <sys/types.h>
8736 #include <stdint.h>
8737 int
8738 main ()
8739 {
8740 uintmax_t i = (uintmax_t) -1;
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8747 case "(($ac_try" in
8748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749   *) ac_try_echo=$ac_try;;
8750 esac
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752   (eval "$ac_compile") 2>conftest.er1
8753   ac_status=$?
8754   grep -v '^ *+' conftest.er1 >conftest.err
8755   rm -f conftest.er1
8756   cat conftest.err >&5
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); } && {
8759          test -z "$ac_c_werror_flag" ||
8760          test ! -s conftest.err
8761        } && test -s conftest.$ac_objext; then
8762   gl_cv_header_stdint_h=yes
8763 else
8764   echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767         gl_cv_header_stdint_h=no
8768 fi
8769
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8773 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8774   if test $gl_cv_header_stdint_h = yes; then
8775
8776 cat >>confdefs.h <<_ACEOF
8777 #define HAVE_STDINT_H_WITH_UINTMAX 1
8778 _ACEOF
8779
8780   fi
8781
8782
8783
8784
8785   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8786 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8787 if test "${gt_cv_c_intmax_t+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h.  */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h.  */
8796
8797 #include <stddef.h>
8798 #include <stdlib.h>
8799 #if HAVE_STDINT_H_WITH_UINTMAX
8800 #include <stdint.h>
8801 #endif
8802 #if HAVE_INTTYPES_H_WITH_UINTMAX
8803 #include <inttypes.h>
8804 #endif
8805
8806 int
8807 main ()
8808 {
8809 intmax_t x = -1;
8810   ;
8811   return 0;
8812 }
8813 _ACEOF
8814 rm -f conftest.$ac_objext
8815 if { (ac_try="$ac_compile"
8816 case "(($ac_try" in
8817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8818   *) ac_try_echo=$ac_try;;
8819 esac
8820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8821   (eval "$ac_compile") 2>conftest.er1
8822   ac_status=$?
8823   grep -v '^ *+' conftest.er1 >conftest.err
8824   rm -f conftest.er1
8825   cat conftest.err >&5
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); } && {
8828          test -z "$ac_c_werror_flag" ||
8829          test ! -s conftest.err
8830        } && test -s conftest.$ac_objext; then
8831   gt_cv_c_intmax_t=yes
8832 else
8833   echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8835
8836         gt_cv_c_intmax_t=no
8837 fi
8838
8839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 fi
8841 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8842 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8843   if test $gt_cv_c_intmax_t = yes; then
8844
8845 cat >>confdefs.h <<\_ACEOF
8846 #define HAVE_INTMAX_T 1
8847 _ACEOF
8848
8849   fi
8850
8851
8852
8853   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8854 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8855 if test "${gt_cv_func_printf_posix+set}" = set; then
8856   echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858
8859       if test "$cross_compiling" = yes; then
8860
8861         cat >conftest.$ac_ext <<_ACEOF
8862 /* confdefs.h.  */
8863 _ACEOF
8864 cat confdefs.h >>conftest.$ac_ext
8865 cat >>conftest.$ac_ext <<_ACEOF
8866 /* end confdefs.h.  */
8867
8868 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8869   notposix
8870 #endif
8871
8872 _ACEOF
8873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8874   $EGREP "notposix" >/dev/null 2>&1; then
8875   gt_cv_func_printf_posix="guessing no"
8876 else
8877   gt_cv_func_printf_posix="guessing yes"
8878 fi
8879 rm -f conftest*
8880
8881
8882 else
8883   cat >conftest.$ac_ext <<_ACEOF
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889
8890 #include <stdio.h>
8891 #include <string.h>
8892 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8893    dollar expansion (possibly an autoconf bug).  */
8894 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8895 static char buf[100];
8896 int main ()
8897 {
8898   sprintf (buf, format, 33, 55);
8899   return (strcmp (buf, "55 33") != 0);
8900 }
8901 _ACEOF
8902 rm -f conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8904 case "(($ac_try" in
8905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906   *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909   (eval "$ac_link") 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8913   { (case "(($ac_try" in
8914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8915   *) ac_try_echo=$ac_try;;
8916 esac
8917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8918   (eval "$ac_try") 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); }; }; then
8922   gt_cv_func_printf_posix=yes
8923 else
8924   echo "$as_me: program exited with status $ac_status" >&5
8925 echo "$as_me: failed program was:" >&5
8926 sed 's/^/| /' conftest.$ac_ext >&5
8927
8928 ( exit $ac_status )
8929 gt_cv_func_printf_posix=no
8930 fi
8931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8932 fi
8933
8934
8935
8936 fi
8937 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8938 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8939   case $gt_cv_func_printf_posix in
8940     *yes)
8941
8942 cat >>confdefs.h <<\_ACEOF
8943 #define HAVE_POSIX_PRINTF 1
8944 _ACEOF
8945
8946       ;;
8947   esac
8948
8949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8950 # for constant arguments.  Useless!
8951 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8952 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8953 if test "${ac_cv_working_alloca_h+set}" = set; then
8954   echo $ECHO_N "(cached) $ECHO_C" >&6
8955 else
8956   cat >conftest.$ac_ext <<_ACEOF
8957 /* confdefs.h.  */
8958 _ACEOF
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h.  */
8962 #include <alloca.h>
8963 int
8964 main ()
8965 {
8966 char *p = (char *) alloca (2 * sizeof (int));
8967                           if (p) return 0;
8968   ;
8969   return 0;
8970 }
8971 _ACEOF
8972 rm -f conftest.$ac_objext conftest$ac_exeext
8973 if { (ac_try="$ac_link"
8974 case "(($ac_try" in
8975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976   *) ac_try_echo=$ac_try;;
8977 esac
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979   (eval "$ac_link") 2>conftest.er1
8980   ac_status=$?
8981   grep -v '^ *+' conftest.er1 >conftest.err
8982   rm -f conftest.er1
8983   cat conftest.err >&5
8984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985   (exit $ac_status); } && {
8986          test -z "$ac_c_werror_flag" ||
8987          test ! -s conftest.err
8988        } && test -s conftest$ac_exeext &&
8989        $as_test_x conftest$ac_exeext; then
8990   ac_cv_working_alloca_h=yes
8991 else
8992   echo "$as_me: failed program was:" >&5
8993 sed 's/^/| /' conftest.$ac_ext >&5
8994
8995         ac_cv_working_alloca_h=no
8996 fi
8997
8998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8999       conftest$ac_exeext conftest.$ac_ext
9000 fi
9001 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9002 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9003 if test $ac_cv_working_alloca_h = yes; then
9004
9005 cat >>confdefs.h <<\_ACEOF
9006 #define HAVE_ALLOCA_H 1
9007 _ACEOF
9008
9009 fi
9010
9011 { echo "$as_me:$LINENO: checking for alloca" >&5
9012 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9013 if test "${ac_cv_func_alloca_works+set}" = set; then
9014   echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016   cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022 #ifdef __GNUC__
9023 # define alloca __builtin_alloca
9024 #else
9025 # ifdef _MSC_VER
9026 #  include <malloc.h>
9027 #  define alloca _alloca
9028 # else
9029 #  ifdef HAVE_ALLOCA_H
9030 #   include <alloca.h>
9031 #  else
9032 #   ifdef _AIX
9033  #pragma alloca
9034 #   else
9035 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9036 char *alloca ();
9037 #    endif
9038 #   endif
9039 #  endif
9040 # endif
9041 #endif
9042
9043 int
9044 main ()
9045 {
9046 char *p = (char *) alloca (1);
9047                                     if (p) return 0;
9048   ;
9049   return 0;
9050 }
9051 _ACEOF
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (ac_try="$ac_link"
9054 case "(($ac_try" in
9055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9056   *) ac_try_echo=$ac_try;;
9057 esac
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059   (eval "$ac_link") 2>conftest.er1
9060   ac_status=$?
9061   grep -v '^ *+' conftest.er1 >conftest.err
9062   rm -f conftest.er1
9063   cat conftest.err >&5
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); } && {
9066          test -z "$ac_c_werror_flag" ||
9067          test ! -s conftest.err
9068        } && test -s conftest$ac_exeext &&
9069        $as_test_x conftest$ac_exeext; then
9070   ac_cv_func_alloca_works=yes
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075         ac_cv_func_alloca_works=no
9076 fi
9077
9078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079       conftest$ac_exeext conftest.$ac_ext
9080 fi
9081 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9082 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9083
9084 if test $ac_cv_func_alloca_works = yes; then
9085
9086 cat >>confdefs.h <<\_ACEOF
9087 #define HAVE_ALLOCA 1
9088 _ACEOF
9089
9090 else
9091   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9092 # that cause trouble.  Some versions do not even contain alloca or
9093 # contain a buggy version.  If you still want to use their alloca,
9094 # use ar to extract alloca.o from them instead of compiling alloca.c.
9095
9096 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9097
9098 cat >>confdefs.h <<\_ACEOF
9099 #define C_ALLOCA 1
9100 _ACEOF
9101
9102
9103 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9104 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9105 if test "${ac_cv_os_cray+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114 #if defined CRAY && ! defined CRAY2
9115 webecray
9116 #else
9117 wenotbecray
9118 #endif
9119
9120 _ACEOF
9121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9122   $EGREP "webecray" >/dev/null 2>&1; then
9123   ac_cv_os_cray=yes
9124 else
9125   ac_cv_os_cray=no
9126 fi
9127 rm -f conftest*
9128
9129 fi
9130 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9131 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9132 if test $ac_cv_os_cray = yes; then
9133   for ac_func in _getb67 GETB67 getb67; do
9134     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9138   echo $ECHO_N "(cached) $ECHO_C" >&6
9139 else
9140   cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h.  */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h.  */
9146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9148 #define $ac_func innocuous_$ac_func
9149
9150 /* System header to define __stub macros and hopefully few prototypes,
9151     which can conflict with char $ac_func (); below.
9152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9153     <limits.h> exists even on freestanding compilers.  */
9154
9155 #ifdef __STDC__
9156 # include <limits.h>
9157 #else
9158 # include <assert.h>
9159 #endif
9160
9161 #undef $ac_func
9162
9163 /* Override any GCC internal prototype to avoid an error.
9164    Use char because int might match the return type of a GCC
9165    builtin and then its argument prototype would still apply.  */
9166 #ifdef __cplusplus
9167 extern "C"
9168 #endif
9169 char $ac_func ();
9170 /* The GNU C library defines this for functions which it implements
9171     to always fail with ENOSYS.  Some functions are actually named
9172     something starting with __ and the normal name is an alias.  */
9173 #if defined __stub_$ac_func || defined __stub___$ac_func
9174 choke me
9175 #endif
9176
9177 int
9178 main ()
9179 {
9180 return $ac_func ();
9181   ;
9182   return 0;
9183 }
9184 _ACEOF
9185 rm -f conftest.$ac_objext conftest$ac_exeext
9186 if { (ac_try="$ac_link"
9187 case "(($ac_try" in
9188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189   *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192   (eval "$ac_link") 2>conftest.er1
9193   ac_status=$?
9194   grep -v '^ *+' conftest.er1 >conftest.err
9195   rm -f conftest.er1
9196   cat conftest.err >&5
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); } && {
9199          test -z "$ac_c_werror_flag" ||
9200          test ! -s conftest.err
9201        } && test -s conftest$ac_exeext &&
9202        $as_test_x conftest$ac_exeext; then
9203   eval "$as_ac_var=yes"
9204 else
9205   echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208         eval "$as_ac_var=no"
9209 fi
9210
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212       conftest$ac_exeext conftest.$ac_ext
9213 fi
9214 ac_res=`eval echo '${'$as_ac_var'}'`
9215                { echo "$as_me:$LINENO: result: $ac_res" >&5
9216 echo "${ECHO_T}$ac_res" >&6; }
9217 if test `eval echo '${'$as_ac_var'}'` = yes; then
9218
9219 cat >>confdefs.h <<_ACEOF
9220 #define CRAY_STACKSEG_END $ac_func
9221 _ACEOF
9222
9223     break
9224 fi
9225
9226   done
9227 fi
9228
9229 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9230 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9231 if test "${ac_cv_c_stack_direction+set}" = set; then
9232   echo $ECHO_N "(cached) $ECHO_C" >&6
9233 else
9234   if test "$cross_compiling" = yes; then
9235   ac_cv_c_stack_direction=0
9236 else
9237   cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243 $ac_includes_default
9244 int
9245 find_stack_direction ()
9246 {
9247   static char *addr = 0;
9248   auto char dummy;
9249   if (addr == 0)
9250     {
9251       addr = &dummy;
9252       return find_stack_direction ();
9253     }
9254   else
9255     return (&dummy > addr) ? 1 : -1;
9256 }
9257
9258 int
9259 main ()
9260 {
9261   return find_stack_direction () < 0;
9262 }
9263 _ACEOF
9264 rm -f conftest$ac_exeext
9265 if { (ac_try="$ac_link"
9266 case "(($ac_try" in
9267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268   *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271   (eval "$ac_link") 2>&5
9272   ac_status=$?
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9275   { (case "(($ac_try" in
9276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277   *) ac_try_echo=$ac_try;;
9278 esac
9279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9280   (eval "$ac_try") 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; }; then
9284   ac_cv_c_stack_direction=1
9285 else
9286   echo "$as_me: program exited with status $ac_status" >&5
9287 echo "$as_me: failed program was:" >&5
9288 sed 's/^/| /' conftest.$ac_ext >&5
9289
9290 ( exit $ac_status )
9291 ac_cv_c_stack_direction=-1
9292 fi
9293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9294 fi
9295
9296
9297 fi
9298 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9299 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9300
9301 cat >>confdefs.h <<_ACEOF
9302 #define STACK_DIRECTION $ac_cv_c_stack_direction
9303 _ACEOF
9304
9305
9306 fi
9307
9308
9309
9310 for ac_header in stdlib.h unistd.h
9311 do
9312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9314   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9317   echo $ECHO_N "(cached) $ECHO_C" >&6
9318 fi
9319 ac_res=`eval echo '${'$as_ac_Header'}'`
9320                { echo "$as_me:$LINENO: result: $ac_res" >&5
9321 echo "${ECHO_T}$ac_res" >&6; }
9322 else
9323   # Is the header compilable?
9324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9326 cat >conftest.$ac_ext <<_ACEOF
9327 /* confdefs.h.  */
9328 _ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h.  */
9332 $ac_includes_default
9333 #include <$ac_header>
9334 _ACEOF
9335 rm -f conftest.$ac_objext
9336 if { (ac_try="$ac_compile"
9337 case "(($ac_try" in
9338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339   *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342   (eval "$ac_compile") 2>conftest.er1
9343   ac_status=$?
9344   grep -v '^ *+' conftest.er1 >conftest.err
9345   rm -f conftest.er1
9346   cat conftest.err >&5
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } && {
9349          test -z "$ac_c_werror_flag" ||
9350          test ! -s conftest.err
9351        } && test -s conftest.$ac_objext; then
9352   ac_header_compiler=yes
9353 else
9354   echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9356
9357         ac_header_compiler=no
9358 fi
9359
9360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 echo "${ECHO_T}$ac_header_compiler" >&6; }
9363
9364 # Is the header present?
9365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373 #include <$ac_header>
9374 _ACEOF
9375 if { (ac_try="$ac_cpp conftest.$ac_ext"
9376 case "(($ac_try" in
9377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378   *) ac_try_echo=$ac_try;;
9379 esac
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9382   ac_status=$?
9383   grep -v '^ *+' conftest.er1 >conftest.err
9384   rm -f conftest.er1
9385   cat conftest.err >&5
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); } >/dev/null && {
9388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9389          test ! -s conftest.err
9390        }; then
9391   ac_header_preproc=yes
9392 else
9393   echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9395
9396   ac_header_preproc=no
9397 fi
9398
9399 rm -f conftest.err conftest.$ac_ext
9400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401 echo "${ECHO_T}$ac_header_preproc" >&6; }
9402
9403 # So?  What about this header?
9404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9405   yes:no: )
9406     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9410     ac_header_preproc=yes
9411     ;;
9412   no:yes:* )
9413     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9415     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9416 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9417     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9419     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9420 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9421     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9423     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9425
9426     ;;
9427 esac
9428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9431   echo $ECHO_N "(cached) $ECHO_C" >&6
9432 else
9433   eval "$as_ac_Header=\$ac_header_preproc"
9434 fi
9435 ac_res=`eval echo '${'$as_ac_Header'}'`
9436                { echo "$as_me:$LINENO: result: $ac_res" >&5
9437 echo "${ECHO_T}$ac_res" >&6; }
9438
9439 fi
9440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9441   cat >>confdefs.h <<_ACEOF
9442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9443 _ACEOF
9444
9445 fi
9446
9447 done
9448
9449
9450 for ac_func in getpagesize
9451 do
9452 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9453 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9454 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9455 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9456   echo $ECHO_N "(cached) $ECHO_C" >&6
9457 else
9458   cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h.  */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h.  */
9464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9466 #define $ac_func innocuous_$ac_func
9467
9468 /* System header to define __stub macros and hopefully few prototypes,
9469     which can conflict with char $ac_func (); below.
9470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9471     <limits.h> exists even on freestanding compilers.  */
9472
9473 #ifdef __STDC__
9474 # include <limits.h>
9475 #else
9476 # include <assert.h>
9477 #endif
9478
9479 #undef $ac_func
9480
9481 /* Override any GCC internal prototype to avoid an error.
9482    Use char because int might match the return type of a GCC
9483    builtin and then its argument prototype would still apply.  */
9484 #ifdef __cplusplus
9485 extern "C"
9486 #endif
9487 char $ac_func ();
9488 /* The GNU C library defines this for functions which it implements
9489     to always fail with ENOSYS.  Some functions are actually named
9490     something starting with __ and the normal name is an alias.  */
9491 #if defined __stub_$ac_func || defined __stub___$ac_func
9492 choke me
9493 #endif
9494
9495 int
9496 main ()
9497 {
9498 return $ac_func ();
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507   *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510   (eval "$ac_link") 2>conftest.er1
9511   ac_status=$?
9512   grep -v '^ *+' conftest.er1 >conftest.err
9513   rm -f conftest.er1
9514   cat conftest.err >&5
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } && {
9517          test -z "$ac_c_werror_flag" ||
9518          test ! -s conftest.err
9519        } && test -s conftest$ac_exeext &&
9520        $as_test_x conftest$ac_exeext; then
9521   eval "$as_ac_var=yes"
9522 else
9523   echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9525
9526         eval "$as_ac_var=no"
9527 fi
9528
9529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9530       conftest$ac_exeext conftest.$ac_ext
9531 fi
9532 ac_res=`eval echo '${'$as_ac_var'}'`
9533                { echo "$as_me:$LINENO: result: $ac_res" >&5
9534 echo "${ECHO_T}$ac_res" >&6; }
9535 if test `eval echo '${'$as_ac_var'}'` = yes; then
9536   cat >>confdefs.h <<_ACEOF
9537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538 _ACEOF
9539
9540 fi
9541 done
9542
9543 { echo "$as_me:$LINENO: checking for working mmap" >&5
9544 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9545 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9546   echo $ECHO_N "(cached) $ECHO_C" >&6
9547 else
9548   if test "$cross_compiling" = yes; then
9549   ac_cv_func_mmap_fixed_mapped=no
9550 else
9551   cat >conftest.$ac_ext <<_ACEOF
9552 /* confdefs.h.  */
9553 _ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h.  */
9557 $ac_includes_default
9558 /* malloc might have been renamed as rpl_malloc. */
9559 #undef malloc
9560
9561 /* Thanks to Mike Haertel and Jim Avera for this test.
9562    Here is a matrix of mmap possibilities:
9563         mmap private not fixed
9564         mmap private fixed at somewhere currently unmapped
9565         mmap private fixed at somewhere already mapped
9566         mmap shared not fixed
9567         mmap shared fixed at somewhere currently unmapped
9568         mmap shared fixed at somewhere already mapped
9569    For private mappings, we should verify that changes cannot be read()
9570    back from the file, nor mmap's back from the file at a different
9571    address.  (There have been systems where private was not correctly
9572    implemented like the infamous i386 svr4.0, and systems where the
9573    VM page cache was not coherent with the file system buffer cache
9574    like early versions of FreeBSD and possibly contemporary NetBSD.)
9575    For shared mappings, we should conversely verify that changes get
9576    propagated back to all the places they're supposed to be.
9577
9578    Grep wants private fixed already mapped.
9579    The main things grep needs to know about mmap are:
9580    * does it exist and is it safe to write into the mmap'd area
9581    * how to use it (BSD variants)  */
9582
9583 #include <fcntl.h>
9584 #include <sys/mman.h>
9585
9586 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9587 char *malloc ();
9588 #endif
9589
9590 /* This mess was copied from the GNU getpagesize.h.  */
9591 #ifndef HAVE_GETPAGESIZE
9592 /* Assume that all systems that can run configure have sys/param.h.  */
9593 # ifndef HAVE_SYS_PARAM_H
9594 #  define HAVE_SYS_PARAM_H 1
9595 # endif
9596
9597 # ifdef _SC_PAGESIZE
9598 #  define getpagesize() sysconf(_SC_PAGESIZE)
9599 # else /* no _SC_PAGESIZE */
9600 #  ifdef HAVE_SYS_PARAM_H
9601 #   include <sys/param.h>
9602 #   ifdef EXEC_PAGESIZE
9603 #    define getpagesize() EXEC_PAGESIZE
9604 #   else /* no EXEC_PAGESIZE */
9605 #    ifdef NBPG
9606 #     define getpagesize() NBPG * CLSIZE
9607 #     ifndef CLSIZE
9608 #      define CLSIZE 1
9609 #     endif /* no CLSIZE */
9610 #    else /* no NBPG */
9611 #     ifdef NBPC
9612 #      define getpagesize() NBPC
9613 #     else /* no NBPC */
9614 #      ifdef PAGESIZE
9615 #       define getpagesize() PAGESIZE
9616 #      endif /* PAGESIZE */
9617 #     endif /* no NBPC */
9618 #    endif /* no NBPG */
9619 #   endif /* no EXEC_PAGESIZE */
9620 #  else /* no HAVE_SYS_PARAM_H */
9621 #   define getpagesize() 8192   /* punt totally */
9622 #  endif /* no HAVE_SYS_PARAM_H */
9623 # endif /* no _SC_PAGESIZE */
9624
9625 #endif /* no HAVE_GETPAGESIZE */
9626
9627 int
9628 main ()
9629 {
9630   char *data, *data2, *data3;
9631   int i, pagesize;
9632   int fd;
9633
9634   pagesize = getpagesize ();
9635
9636   /* First, make a file with some known garbage in it. */
9637   data = (char *) malloc (pagesize);
9638   if (!data)
9639     return 1;
9640   for (i = 0; i < pagesize; ++i)
9641     *(data + i) = rand ();
9642   umask (0);
9643   fd = creat ("conftest.mmap", 0600);
9644   if (fd < 0)
9645     return 1;
9646   if (write (fd, data, pagesize) != pagesize)
9647     return 1;
9648   close (fd);
9649
9650   /* Next, try to mmap the file at a fixed address which already has
9651      something else allocated at it.  If we can, also make sure that
9652      we see the same garbage.  */
9653   fd = open ("conftest.mmap", O_RDWR);
9654   if (fd < 0)
9655     return 1;
9656   data2 = (char *) malloc (2 * pagesize);
9657   if (!data2)
9658     return 1;
9659   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9660   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9661                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9662     return 1;
9663   for (i = 0; i < pagesize; ++i)
9664     if (*(data + i) != *(data2 + i))
9665       return 1;
9666
9667   /* Finally, make sure that changes to the mapped area do not
9668      percolate back to the file as seen by read().  (This is a bug on
9669      some variants of i386 svr4.0.)  */
9670   for (i = 0; i < pagesize; ++i)
9671     *(data2 + i) = *(data2 + i) + 1;
9672   data3 = (char *) malloc (pagesize);
9673   if (!data3)
9674     return 1;
9675   if (read (fd, data3, pagesize) != pagesize)
9676     return 1;
9677   for (i = 0; i < pagesize; ++i)
9678     if (*(data + i) != *(data3 + i))
9679       return 1;
9680   close (fd);
9681   return 0;
9682 }
9683 _ACEOF
9684 rm -f conftest$ac_exeext
9685 if { (ac_try="$ac_link"
9686 case "(($ac_try" in
9687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688   *) ac_try_echo=$ac_try;;
9689 esac
9690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691   (eval "$ac_link") 2>&5
9692   ac_status=$?
9693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9695   { (case "(($ac_try" in
9696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9697   *) ac_try_echo=$ac_try;;
9698 esac
9699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9700   (eval "$ac_try") 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); }; }; then
9704   ac_cv_func_mmap_fixed_mapped=yes
9705 else
9706   echo "$as_me: program exited with status $ac_status" >&5
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 ( exit $ac_status )
9711 ac_cv_func_mmap_fixed_mapped=no
9712 fi
9713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9714 fi
9715
9716
9717 fi
9718 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9719 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9720 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9721
9722 cat >>confdefs.h <<\_ACEOF
9723 #define HAVE_MMAP 1
9724 _ACEOF
9725
9726 fi
9727 rm -f conftest.mmap
9728
9729
9730     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9731 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9732 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9733   echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735   cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h.  */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h.  */
9741
9742 #include <features.h>
9743 #ifdef __GNU_LIBRARY__
9744  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9745   Lucky GNU user
9746  #endif
9747 #endif
9748
9749 _ACEOF
9750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9751   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9752   ac_cv_gnu_library_2_1=yes
9753 else
9754   ac_cv_gnu_library_2_1=no
9755 fi
9756 rm -f conftest*
9757
9758
9759
9760 fi
9761 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9762 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9763
9764     GLIBC21="$ac_cv_gnu_library_2_1"
9765
9766
9767
9768
9769   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9770 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9771 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9772   echo $ECHO_N "(cached) $ECHO_C" >&6
9773 else
9774
9775       if test "$cross_compiling" = yes; then
9776
9777           # Guess based on the CPU.
9778           case "$host_cpu" in
9779             alpha* | i3456786 | m68k | s390*)
9780               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9781             *)
9782               gt_cv_int_divbyzero_sigfpe="guessing no";;
9783           esac
9784
9785 else
9786   cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792
9793 #include <stdlib.h>
9794 #include <signal.h>
9795
9796 static void
9797 #ifdef __cplusplus
9798 sigfpe_handler (int sig)
9799 #else
9800 sigfpe_handler (sig) int sig;
9801 #endif
9802 {
9803   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9804   exit (sig != SIGFPE);
9805 }
9806
9807 int x = 1;
9808 int y = 0;
9809 int z;
9810 int nan;
9811
9812 int main ()
9813 {
9814   signal (SIGFPE, sigfpe_handler);
9815 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9816 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9817   signal (SIGTRAP, sigfpe_handler);
9818 #endif
9819 /* Linux/SPARC yields signal SIGILL.  */
9820 #if defined (__sparc__) && defined (__linux__)
9821   signal (SIGILL, sigfpe_handler);
9822 #endif
9823
9824   z = x / y;
9825   nan = y / y;
9826   exit (1);
9827 }
9828
9829 _ACEOF
9830 rm -f conftest$ac_exeext
9831 if { (ac_try="$ac_link"
9832 case "(($ac_try" in
9833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834   *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837   (eval "$ac_link") 2>&5
9838   ac_status=$?
9839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9841   { (case "(($ac_try" in
9842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9843   *) ac_try_echo=$ac_try;;
9844 esac
9845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9846   (eval "$ac_try") 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; }; then
9850   gt_cv_int_divbyzero_sigfpe=yes
9851 else
9852   echo "$as_me: program exited with status $ac_status" >&5
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9855
9856 ( exit $ac_status )
9857 gt_cv_int_divbyzero_sigfpe=no
9858 fi
9859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9860 fi
9861
9862
9863
9864 fi
9865 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9866 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9867   case "$gt_cv_int_divbyzero_sigfpe" in
9868     *yes) value=1;;
9869     *) value=0;;
9870   esac
9871
9872 cat >>confdefs.h <<_ACEOF
9873 #define INTDIV0_RAISES_SIGFPE $value
9874 _ACEOF
9875
9876
9877
9878   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9879 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9880 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9881   echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883   cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h.  */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h.  */
9889 unsigned long long ull = 1ULL; int i = 63;
9890 int
9891 main ()
9892 {
9893 unsigned long long ullmax = (unsigned long long) -1;
9894      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9895   ;
9896   return 0;
9897 }
9898 _ACEOF
9899 rm -f conftest.$ac_objext conftest$ac_exeext
9900 if { (ac_try="$ac_link"
9901 case "(($ac_try" in
9902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9903   *) ac_try_echo=$ac_try;;
9904 esac
9905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9906   (eval "$ac_link") 2>conftest.er1
9907   ac_status=$?
9908   grep -v '^ *+' conftest.er1 >conftest.err
9909   rm -f conftest.er1
9910   cat conftest.err >&5
9911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912   (exit $ac_status); } && {
9913          test -z "$ac_c_werror_flag" ||
9914          test ! -s conftest.err
9915        } && test -s conftest$ac_exeext &&
9916        $as_test_x conftest$ac_exeext; then
9917   ac_cv_type_unsigned_long_long=yes
9918 else
9919   echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9921
9922         ac_cv_type_unsigned_long_long=no
9923 fi
9924
9925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9926       conftest$ac_exeext conftest.$ac_ext
9927 fi
9928 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9929 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9930   if test $ac_cv_type_unsigned_long_long = yes; then
9931
9932 cat >>confdefs.h <<\_ACEOF
9933 #define HAVE_UNSIGNED_LONG_LONG 1
9934 _ACEOF
9935
9936   fi
9937
9938
9939
9940
9941   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9942
9943     test $ac_cv_type_unsigned_long_long = yes \
9944       && ac_type='unsigned long long' \
9945       || ac_type='unsigned long'
9946
9947 cat >>confdefs.h <<_ACEOF
9948 #define uintmax_t $ac_type
9949 _ACEOF
9950
9951   else
9952
9953 cat >>confdefs.h <<\_ACEOF
9954 #define HAVE_UINTMAX_T 1
9955 _ACEOF
9956
9957   fi
9958
9959
9960   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9961 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9962 if test "${gt_cv_header_inttypes_h+set}" = set; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965
9966     cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 #include <sys/types.h>
9973 #include <inttypes.h>
9974 int
9975 main ()
9976 {
9977
9978   ;
9979   return 0;
9980 }
9981 _ACEOF
9982 rm -f conftest.$ac_objext
9983 if { (ac_try="$ac_compile"
9984 case "(($ac_try" in
9985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986   *) ac_try_echo=$ac_try;;
9987 esac
9988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9989   (eval "$ac_compile") 2>conftest.er1
9990   ac_status=$?
9991   grep -v '^ *+' conftest.er1 >conftest.err
9992   rm -f conftest.er1
9993   cat conftest.err >&5
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } && {
9996          test -z "$ac_c_werror_flag" ||
9997          test ! -s conftest.err
9998        } && test -s conftest.$ac_objext; then
9999   gt_cv_header_inttypes_h=yes
10000 else
10001   echo "$as_me: failed program was:" >&5
10002 sed 's/^/| /' conftest.$ac_ext >&5
10003
10004         gt_cv_header_inttypes_h=no
10005 fi
10006
10007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10008
10009 fi
10010 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10011 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10012   if test $gt_cv_header_inttypes_h = yes; then
10013
10014 cat >>confdefs.h <<_ACEOF
10015 #define HAVE_INTTYPES_H 1
10016 _ACEOF
10017
10018   fi
10019
10020
10021
10022   if test $gt_cv_header_inttypes_h = yes; then
10023     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10024 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10025 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10026   echo $ECHO_N "(cached) $ECHO_C" >&6
10027 else
10028
10029         cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035 #include <inttypes.h>
10036 #ifdef PRId32
10037 char *p = PRId32;
10038 #endif
10039
10040 int
10041 main ()
10042 {
10043
10044   ;
10045   return 0;
10046 }
10047 _ACEOF
10048 rm -f conftest.$ac_objext
10049 if { (ac_try="$ac_compile"
10050 case "(($ac_try" in
10051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10052   *) ac_try_echo=$ac_try;;
10053 esac
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055   (eval "$ac_compile") 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } && {
10062          test -z "$ac_c_werror_flag" ||
10063          test ! -s conftest.err
10064        } && test -s conftest.$ac_objext; then
10065   gt_cv_inttypes_pri_broken=no
10066 else
10067   echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.$ac_ext >&5
10069
10070         gt_cv_inttypes_pri_broken=yes
10071 fi
10072
10073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10074
10075 fi
10076 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10077 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10078   fi
10079   if test "$gt_cv_inttypes_pri_broken" = yes; then
10080
10081 cat >>confdefs.h <<_ACEOF
10082 #define PRI_MACROS_BROKEN 1
10083 _ACEOF
10084
10085   fi
10086
10087
10088
10089 for ac_header in stdint.h
10090 do
10091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10093   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 fi
10098 ac_res=`eval echo '${'$as_ac_Header'}'`
10099                { echo "$as_me:$LINENO: result: $ac_res" >&5
10100 echo "${ECHO_T}$ac_res" >&6; }
10101 else
10102   # Is the header compilable?
10103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10105 cat >conftest.$ac_ext <<_ACEOF
10106 /* confdefs.h.  */
10107 _ACEOF
10108 cat confdefs.h >>conftest.$ac_ext
10109 cat >>conftest.$ac_ext <<_ACEOF
10110 /* end confdefs.h.  */
10111 $ac_includes_default
10112 #include <$ac_header>
10113 _ACEOF
10114 rm -f conftest.$ac_objext
10115 if { (ac_try="$ac_compile"
10116 case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_compile") 2>conftest.er1
10122   ac_status=$?
10123   grep -v '^ *+' conftest.er1 >conftest.err
10124   rm -f conftest.er1
10125   cat conftest.err >&5
10126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127   (exit $ac_status); } && {
10128          test -z "$ac_c_werror_flag" ||
10129          test ! -s conftest.err
10130        } && test -s conftest.$ac_objext; then
10131   ac_header_compiler=yes
10132 else
10133   echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10135
10136         ac_header_compiler=no
10137 fi
10138
10139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10141 echo "${ECHO_T}$ac_header_compiler" >&6; }
10142
10143 # Is the header present?
10144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10146 cat >conftest.$ac_ext <<_ACEOF
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152 #include <$ac_header>
10153 _ACEOF
10154 if { (ac_try="$ac_cpp conftest.$ac_ext"
10155 case "(($ac_try" in
10156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157   *) ac_try_echo=$ac_try;;
10158 esac
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10161   ac_status=$?
10162   grep -v '^ *+' conftest.er1 >conftest.err
10163   rm -f conftest.er1
10164   cat conftest.err >&5
10165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166   (exit $ac_status); } >/dev/null && {
10167          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10168          test ! -s conftest.err
10169        }; then
10170   ac_header_preproc=yes
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175   ac_header_preproc=no
10176 fi
10177
10178 rm -f conftest.err conftest.$ac_ext
10179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10180 echo "${ECHO_T}$ac_header_preproc" >&6; }
10181
10182 # So?  What about this header?
10183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10184   yes:no: )
10185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10189     ac_header_preproc=yes
10190     ;;
10191   no:yes:* )
10192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10204
10205     ;;
10206 esac
10207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10210   echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212   eval "$as_ac_Header=\$ac_header_preproc"
10213 fi
10214 ac_res=`eval echo '${'$as_ac_Header'}'`
10215                { echo "$as_me:$LINENO: result: $ac_res" >&5
10216 echo "${ECHO_T}$ac_res" >&6; }
10217
10218 fi
10219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10220   cat >>confdefs.h <<_ACEOF
10221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10222 _ACEOF
10223
10224 fi
10225
10226 done
10227
10228     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10229 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10230   result=
10231   cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h.  */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h.  */
10237
10238 #include <limits.h>
10239 #if HAVE_STDINT_H
10240 #include <stdint.h>
10241 #endif
10242 #ifdef SIZE_MAX
10243 Found it
10244 #endif
10245
10246 _ACEOF
10247 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10248   $EGREP "Found it" >/dev/null 2>&1; then
10249   result=yes
10250 fi
10251 rm -f conftest*
10252
10253   if test -z "$result"; then
10254                     if test "$cross_compiling" = yes; then
10255   # Depending upon the size, compute the lo and hi bounds.
10256 cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262 #include <stddef.h>
10263 int
10264 main ()
10265 {
10266 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10267 test_array [0] = 0
10268
10269   ;
10270   return 0;
10271 }
10272 _ACEOF
10273 rm -f conftest.$ac_objext
10274 if { (ac_try="$ac_compile"
10275 case "(($ac_try" in
10276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10277   *) ac_try_echo=$ac_try;;
10278 esac
10279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10280   (eval "$ac_compile") 2>conftest.er1
10281   ac_status=$?
10282   grep -v '^ *+' conftest.er1 >conftest.err
10283   rm -f conftest.er1
10284   cat conftest.err >&5
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); } && {
10287          test -z "$ac_c_werror_flag" ||
10288          test ! -s conftest.err
10289        } && test -s conftest.$ac_objext; then
10290   ac_lo=0 ac_mid=0
10291   while :; do
10292     cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298 #include <stddef.h>
10299 int
10300 main ()
10301 {
10302 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10303 test_array [0] = 0
10304
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (ac_try="$ac_compile"
10311 case "(($ac_try" in
10312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313   *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316   (eval "$ac_compile") 2>conftest.er1
10317   ac_status=$?
10318   grep -v '^ *+' conftest.er1 >conftest.err
10319   rm -f conftest.er1
10320   cat conftest.err >&5
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } && {
10323          test -z "$ac_c_werror_flag" ||
10324          test ! -s conftest.err
10325        } && test -s conftest.$ac_objext; then
10326   ac_hi=$ac_mid; break
10327 else
10328   echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10330
10331         ac_lo=`expr $ac_mid + 1`
10332                         if test $ac_lo -le $ac_mid; then
10333                           ac_lo= ac_hi=
10334                           break
10335                         fi
10336                         ac_mid=`expr 2 '*' $ac_mid + 1`
10337 fi
10338
10339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10340   done
10341 else
10342   echo "$as_me: failed program was:" >&5
10343 sed 's/^/| /' conftest.$ac_ext >&5
10344
10345         cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351 #include <stddef.h>
10352 int
10353 main ()
10354 {
10355 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10356 test_array [0] = 0
10357
10358   ;
10359   return 0;
10360 }
10361 _ACEOF
10362 rm -f conftest.$ac_objext
10363 if { (ac_try="$ac_compile"
10364 case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_compile") 2>conftest.er1
10370   ac_status=$?
10371   grep -v '^ *+' conftest.er1 >conftest.err
10372   rm -f conftest.er1
10373   cat conftest.err >&5
10374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10375   (exit $ac_status); } && {
10376          test -z "$ac_c_werror_flag" ||
10377          test ! -s conftest.err
10378        } && test -s conftest.$ac_objext; then
10379   ac_hi=-1 ac_mid=-1
10380   while :; do
10381     cat >conftest.$ac_ext <<_ACEOF
10382 /* confdefs.h.  */
10383 _ACEOF
10384 cat confdefs.h >>conftest.$ac_ext
10385 cat >>conftest.$ac_ext <<_ACEOF
10386 /* end confdefs.h.  */
10387 #include <stddef.h>
10388 int
10389 main ()
10390 {
10391 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10392 test_array [0] = 0
10393
10394   ;
10395   return 0;
10396 }
10397 _ACEOF
10398 rm -f conftest.$ac_objext
10399 if { (ac_try="$ac_compile"
10400 case "(($ac_try" in
10401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402   *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405   (eval "$ac_compile") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } && {
10412          test -z "$ac_c_werror_flag" ||
10413          test ! -s conftest.err
10414        } && test -s conftest.$ac_objext; then
10415   ac_lo=$ac_mid; break
10416 else
10417   echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420         ac_hi=`expr '(' $ac_mid ')' - 1`
10421                         if test $ac_mid -le $ac_hi; then
10422                           ac_lo= ac_hi=
10423                           break
10424                         fi
10425                         ac_mid=`expr 2 '*' $ac_mid`
10426 fi
10427
10428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10429   done
10430 else
10431   echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434         ac_lo= ac_hi=
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438 fi
10439
10440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10441 # Binary search between lo and hi bounds.
10442 while test "x$ac_lo" != "x$ac_hi"; do
10443   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10444   cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h.  */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h.  */
10450 #include <stddef.h>
10451 int
10452 main ()
10453 {
10454 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10455 test_array [0] = 0
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest.$ac_objext
10462 if { (ac_try="$ac_compile"
10463 case "(($ac_try" in
10464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10465   *) ac_try_echo=$ac_try;;
10466 esac
10467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10468   (eval "$ac_compile") 2>conftest.er1
10469   ac_status=$?
10470   grep -v '^ *+' conftest.er1 >conftest.err
10471   rm -f conftest.er1
10472   cat conftest.err >&5
10473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474   (exit $ac_status); } && {
10475          test -z "$ac_c_werror_flag" ||
10476          test ! -s conftest.err
10477        } && test -s conftest.$ac_objext; then
10478   ac_hi=$ac_mid
10479 else
10480   echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483         ac_lo=`expr '(' $ac_mid ')' + 1`
10484 fi
10485
10486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10487 done
10488 case $ac_lo in
10489 ?*) res_hi=$ac_lo;;
10490 '') result=? ;;
10491 esac
10492 else
10493   cat >conftest.$ac_ext <<_ACEOF
10494 /* confdefs.h.  */
10495 _ACEOF
10496 cat confdefs.h >>conftest.$ac_ext
10497 cat >>conftest.$ac_ext <<_ACEOF
10498 /* end confdefs.h.  */
10499 #include <stddef.h>
10500 static long int longval () { return ~(size_t)0 / 10; }
10501 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10502 #include <stdio.h>
10503 #include <stdlib.h>
10504 int
10505 main ()
10506 {
10507
10508   FILE *f = fopen ("conftest.val", "w");
10509   if (! f)
10510     return 1;
10511   if ((~(size_t)0 / 10) < 0)
10512     {
10513       long int i = longval ();
10514       if (i != (~(size_t)0 / 10))
10515         return 1;
10516       fprintf (f, "%ld\n", i);
10517     }
10518   else
10519     {
10520       unsigned long int i = ulongval ();
10521       if (i != (~(size_t)0 / 10))
10522         return 1;
10523       fprintf (f, "%lu\n", i);
10524     }
10525   return ferror (f) || fclose (f) != 0;
10526
10527   ;
10528   return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535   *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538   (eval "$ac_link") 2>&5
10539   ac_status=$?
10540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10542   { (case "(($ac_try" in
10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544   *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547   (eval "$ac_try") 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   res_hi=`cat conftest.val`
10552 else
10553   echo "$as_me: program exited with status $ac_status" >&5
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 ( exit $ac_status )
10558 result=?
10559 fi
10560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10561 fi
10562 rm -f conftest.val
10563
10564     if test "$cross_compiling" = yes; then
10565   # Depending upon the size, compute the lo and hi bounds.
10566 cat >conftest.$ac_ext <<_ACEOF
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572 #include <stddef.h>
10573 int
10574 main ()
10575 {
10576 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10577 test_array [0] = 0
10578
10579   ;
10580   return 0;
10581 }
10582 _ACEOF
10583 rm -f conftest.$ac_objext
10584 if { (ac_try="$ac_compile"
10585 case "(($ac_try" in
10586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587   *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590   (eval "$ac_compile") 2>conftest.er1
10591   ac_status=$?
10592   grep -v '^ *+' conftest.er1 >conftest.err
10593   rm -f conftest.er1
10594   cat conftest.err >&5
10595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596   (exit $ac_status); } && {
10597          test -z "$ac_c_werror_flag" ||
10598          test ! -s conftest.err
10599        } && test -s conftest.$ac_objext; then
10600   ac_lo=0 ac_mid=0
10601   while :; do
10602     cat >conftest.$ac_ext <<_ACEOF
10603 /* confdefs.h.  */
10604 _ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h.  */
10608 #include <stddef.h>
10609 int
10610 main ()
10611 {
10612 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10613 test_array [0] = 0
10614
10615   ;
10616   return 0;
10617 }
10618 _ACEOF
10619 rm -f conftest.$ac_objext
10620 if { (ac_try="$ac_compile"
10621 case "(($ac_try" in
10622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10623   *) ac_try_echo=$ac_try;;
10624 esac
10625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10626   (eval "$ac_compile") 2>conftest.er1
10627   ac_status=$?
10628   grep -v '^ *+' conftest.er1 >conftest.err
10629   rm -f conftest.er1
10630   cat conftest.err >&5
10631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632   (exit $ac_status); } && {
10633          test -z "$ac_c_werror_flag" ||
10634          test ! -s conftest.err
10635        } && test -s conftest.$ac_objext; then
10636   ac_hi=$ac_mid; break
10637 else
10638   echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10640
10641         ac_lo=`expr $ac_mid + 1`
10642                         if test $ac_lo -le $ac_mid; then
10643                           ac_lo= ac_hi=
10644                           break
10645                         fi
10646                         ac_mid=`expr 2 '*' $ac_mid + 1`
10647 fi
10648
10649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10650   done
10651 else
10652   echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.$ac_ext >&5
10654
10655         cat >conftest.$ac_ext <<_ACEOF
10656 /* confdefs.h.  */
10657 _ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h.  */
10661 #include <stddef.h>
10662 int
10663 main ()
10664 {
10665 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10666 test_array [0] = 0
10667
10668   ;
10669   return 0;
10670 }
10671 _ACEOF
10672 rm -f conftest.$ac_objext
10673 if { (ac_try="$ac_compile"
10674 case "(($ac_try" in
10675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10676   *) ac_try_echo=$ac_try;;
10677 esac
10678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10679   (eval "$ac_compile") 2>conftest.er1
10680   ac_status=$?
10681   grep -v '^ *+' conftest.er1 >conftest.err
10682   rm -f conftest.er1
10683   cat conftest.err >&5
10684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685   (exit $ac_status); } && {
10686          test -z "$ac_c_werror_flag" ||
10687          test ! -s conftest.err
10688        } && test -s conftest.$ac_objext; then
10689   ac_hi=-1 ac_mid=-1
10690   while :; do
10691     cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697 #include <stddef.h>
10698 int
10699 main ()
10700 {
10701 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10702 test_array [0] = 0
10703
10704   ;
10705   return 0;
10706 }
10707 _ACEOF
10708 rm -f conftest.$ac_objext
10709 if { (ac_try="$ac_compile"
10710 case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715   (eval "$ac_compile") 2>conftest.er1
10716   ac_status=$?
10717   grep -v '^ *+' conftest.er1 >conftest.err
10718   rm -f conftest.er1
10719   cat conftest.err >&5
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); } && {
10722          test -z "$ac_c_werror_flag" ||
10723          test ! -s conftest.err
10724        } && test -s conftest.$ac_objext; then
10725   ac_lo=$ac_mid; break
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730         ac_hi=`expr '(' $ac_mid ')' - 1`
10731                         if test $ac_mid -le $ac_hi; then
10732                           ac_lo= ac_hi=
10733                           break
10734                         fi
10735                         ac_mid=`expr 2 '*' $ac_mid`
10736 fi
10737
10738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10739   done
10740 else
10741   echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744         ac_lo= ac_hi=
10745 fi
10746
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 fi
10749
10750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10751 # Binary search between lo and hi bounds.
10752 while test "x$ac_lo" != "x$ac_hi"; do
10753   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10754   cat >conftest.$ac_ext <<_ACEOF
10755 /* confdefs.h.  */
10756 _ACEOF
10757 cat confdefs.h >>conftest.$ac_ext
10758 cat >>conftest.$ac_ext <<_ACEOF
10759 /* end confdefs.h.  */
10760 #include <stddef.h>
10761 int
10762 main ()
10763 {
10764 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10765 test_array [0] = 0
10766
10767   ;
10768   return 0;
10769 }
10770 _ACEOF
10771 rm -f conftest.$ac_objext
10772 if { (ac_try="$ac_compile"
10773 case "(($ac_try" in
10774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775   *) ac_try_echo=$ac_try;;
10776 esac
10777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10778   (eval "$ac_compile") 2>conftest.er1
10779   ac_status=$?
10780   grep -v '^ *+' conftest.er1 >conftest.err
10781   rm -f conftest.er1
10782   cat conftest.err >&5
10783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784   (exit $ac_status); } && {
10785          test -z "$ac_c_werror_flag" ||
10786          test ! -s conftest.err
10787        } && test -s conftest.$ac_objext; then
10788   ac_hi=$ac_mid
10789 else
10790   echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10792
10793         ac_lo=`expr '(' $ac_mid ')' + 1`
10794 fi
10795
10796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10797 done
10798 case $ac_lo in
10799 ?*) res_lo=$ac_lo;;
10800 '') result=? ;;
10801 esac
10802 else
10803   cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h.  */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h.  */
10809 #include <stddef.h>
10810 static long int longval () { return ~(size_t)0 % 10; }
10811 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10812 #include <stdio.h>
10813 #include <stdlib.h>
10814 int
10815 main ()
10816 {
10817
10818   FILE *f = fopen ("conftest.val", "w");
10819   if (! f)
10820     return 1;
10821   if ((~(size_t)0 % 10) < 0)
10822     {
10823       long int i = longval ();
10824       if (i != (~(size_t)0 % 10))
10825         return 1;
10826       fprintf (f, "%ld\n", i);
10827     }
10828   else
10829     {
10830       unsigned long int i = ulongval ();
10831       if (i != (~(size_t)0 % 10))
10832         return 1;
10833       fprintf (f, "%lu\n", i);
10834     }
10835   return ferror (f) || fclose (f) != 0;
10836
10837   ;
10838   return 0;
10839 }
10840 _ACEOF
10841 rm -f conftest$ac_exeext
10842 if { (ac_try="$ac_link"
10843 case "(($ac_try" in
10844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845   *) ac_try_echo=$ac_try;;
10846 esac
10847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848   (eval "$ac_link") 2>&5
10849   ac_status=$?
10850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10852   { (case "(($ac_try" in
10853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854   *) ac_try_echo=$ac_try;;
10855 esac
10856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857   (eval "$ac_try") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); }; }; then
10861   res_lo=`cat conftest.val`
10862 else
10863   echo "$as_me: program exited with status $ac_status" >&5
10864 echo "$as_me: failed program was:" >&5
10865 sed 's/^/| /' conftest.$ac_ext >&5
10866
10867 ( exit $ac_status )
10868 result=?
10869 fi
10870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10871 fi
10872 rm -f conftest.val
10873
10874     if test "$cross_compiling" = yes; then
10875   # Depending upon the size, compute the lo and hi bounds.
10876 cat >conftest.$ac_ext <<_ACEOF
10877 /* confdefs.h.  */
10878 _ACEOF
10879 cat confdefs.h >>conftest.$ac_ext
10880 cat >>conftest.$ac_ext <<_ACEOF
10881 /* end confdefs.h.  */
10882 #include <stddef.h>
10883 int
10884 main ()
10885 {
10886 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10887 test_array [0] = 0
10888
10889   ;
10890   return 0;
10891 }
10892 _ACEOF
10893 rm -f conftest.$ac_objext
10894 if { (ac_try="$ac_compile"
10895 case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_compile") 2>conftest.er1
10901   ac_status=$?
10902   grep -v '^ *+' conftest.er1 >conftest.err
10903   rm -f conftest.er1
10904   cat conftest.err >&5
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); } && {
10907          test -z "$ac_c_werror_flag" ||
10908          test ! -s conftest.err
10909        } && test -s conftest.$ac_objext; then
10910   ac_lo=0 ac_mid=0
10911   while :; do
10912     cat >conftest.$ac_ext <<_ACEOF
10913 /* confdefs.h.  */
10914 _ACEOF
10915 cat confdefs.h >>conftest.$ac_ext
10916 cat >>conftest.$ac_ext <<_ACEOF
10917 /* end confdefs.h.  */
10918 #include <stddef.h>
10919 int
10920 main ()
10921 {
10922 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10923 test_array [0] = 0
10924
10925   ;
10926   return 0;
10927 }
10928 _ACEOF
10929 rm -f conftest.$ac_objext
10930 if { (ac_try="$ac_compile"
10931 case "(($ac_try" in
10932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933   *) ac_try_echo=$ac_try;;
10934 esac
10935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936   (eval "$ac_compile") 2>conftest.er1
10937   ac_status=$?
10938   grep -v '^ *+' conftest.er1 >conftest.err
10939   rm -f conftest.er1
10940   cat conftest.err >&5
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); } && {
10943          test -z "$ac_c_werror_flag" ||
10944          test ! -s conftest.err
10945        } && test -s conftest.$ac_objext; then
10946   ac_hi=$ac_mid; break
10947 else
10948   echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10950
10951         ac_lo=`expr $ac_mid + 1`
10952                         if test $ac_lo -le $ac_mid; then
10953                           ac_lo= ac_hi=
10954                           break
10955                         fi
10956                         ac_mid=`expr 2 '*' $ac_mid + 1`
10957 fi
10958
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960   done
10961 else
10962   echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10964
10965         cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971 #include <stddef.h>
10972 int
10973 main ()
10974 {
10975 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10976 test_array [0] = 0
10977
10978   ;
10979   return 0;
10980 }
10981 _ACEOF
10982 rm -f conftest.$ac_objext
10983 if { (ac_try="$ac_compile"
10984 case "(($ac_try" in
10985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10986   *) ac_try_echo=$ac_try;;
10987 esac
10988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10989   (eval "$ac_compile") 2>conftest.er1
10990   ac_status=$?
10991   grep -v '^ *+' conftest.er1 >conftest.err
10992   rm -f conftest.er1
10993   cat conftest.err >&5
10994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10995   (exit $ac_status); } && {
10996          test -z "$ac_c_werror_flag" ||
10997          test ! -s conftest.err
10998        } && test -s conftest.$ac_objext; then
10999   ac_hi=-1 ac_mid=-1
11000   while :; do
11001     cat >conftest.$ac_ext <<_ACEOF
11002 /* confdefs.h.  */
11003 _ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h.  */
11007 #include <stddef.h>
11008 int
11009 main ()
11010 {
11011 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11012 test_array [0] = 0
11013
11014   ;
11015   return 0;
11016 }
11017 _ACEOF
11018 rm -f conftest.$ac_objext
11019 if { (ac_try="$ac_compile"
11020 case "(($ac_try" in
11021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11022   *) ac_try_echo=$ac_try;;
11023 esac
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025   (eval "$ac_compile") 2>conftest.er1
11026   ac_status=$?
11027   grep -v '^ *+' conftest.er1 >conftest.err
11028   rm -f conftest.er1
11029   cat conftest.err >&5
11030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031   (exit $ac_status); } && {
11032          test -z "$ac_c_werror_flag" ||
11033          test ! -s conftest.err
11034        } && test -s conftest.$ac_objext; then
11035   ac_lo=$ac_mid; break
11036 else
11037   echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11039
11040         ac_hi=`expr '(' $ac_mid ')' - 1`
11041                         if test $ac_mid -le $ac_hi; then
11042                           ac_lo= ac_hi=
11043                           break
11044                         fi
11045                         ac_mid=`expr 2 '*' $ac_mid`
11046 fi
11047
11048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049   done
11050 else
11051   echo "$as_me: failed program was:" >&5
11052 sed 's/^/| /' conftest.$ac_ext >&5
11053
11054         ac_lo= ac_hi=
11055 fi
11056
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058 fi
11059
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 # Binary search between lo and hi bounds.
11062 while test "x$ac_lo" != "x$ac_hi"; do
11063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11064   cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h.  */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h.  */
11070 #include <stddef.h>
11071 int
11072 main ()
11073 {
11074 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11075 test_array [0] = 0
11076
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext
11082 if { (ac_try="$ac_compile"
11083 case "(($ac_try" in
11084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085   *) ac_try_echo=$ac_try;;
11086 esac
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088   (eval "$ac_compile") 2>conftest.er1
11089   ac_status=$?
11090   grep -v '^ *+' conftest.er1 >conftest.err
11091   rm -f conftest.er1
11092   cat conftest.err >&5
11093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094   (exit $ac_status); } && {
11095          test -z "$ac_c_werror_flag" ||
11096          test ! -s conftest.err
11097        } && test -s conftest.$ac_objext; then
11098   ac_hi=$ac_mid
11099 else
11100   echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103         ac_lo=`expr '(' $ac_mid ')' + 1`
11104 fi
11105
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 done
11108 case $ac_lo in
11109 ?*) fits_in_uint=$ac_lo;;
11110 '') result=? ;;
11111 esac
11112 else
11113   cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119 #include <stddef.h>
11120 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11121 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11122 #include <stdio.h>
11123 #include <stdlib.h>
11124 int
11125 main ()
11126 {
11127
11128   FILE *f = fopen ("conftest.val", "w");
11129   if (! f)
11130     return 1;
11131   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11132     {
11133       long int i = longval ();
11134       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11135         return 1;
11136       fprintf (f, "%ld\n", i);
11137     }
11138   else
11139     {
11140       unsigned long int i = ulongval ();
11141       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11142         return 1;
11143       fprintf (f, "%lu\n", i);
11144     }
11145   return ferror (f) || fclose (f) != 0;
11146
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest$ac_exeext
11152 if { (ac_try="$ac_link"
11153 case "(($ac_try" in
11154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11155   *) ac_try_echo=$ac_try;;
11156 esac
11157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11158   (eval "$ac_link") 2>&5
11159   ac_status=$?
11160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11162   { (case "(($ac_try" in
11163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11164   *) ac_try_echo=$ac_try;;
11165 esac
11166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11167   (eval "$ac_try") 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); }; }; then
11171   fits_in_uint=`cat conftest.val`
11172 else
11173   echo "$as_me: program exited with status $ac_status" >&5
11174 echo "$as_me: failed program was:" >&5
11175 sed 's/^/| /' conftest.$ac_ext >&5
11176
11177 ( exit $ac_status )
11178 result=?
11179 fi
11180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11181 fi
11182 rm -f conftest.val
11183
11184     if test "$fits_in_uint" = 1; then
11185                   cat >conftest.$ac_ext <<_ACEOF
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191 #include <stddef.h>
11192         extern size_t foo;
11193         extern unsigned long foo;
11194
11195 int
11196 main ()
11197 {
11198
11199   ;
11200   return 0;
11201 }
11202 _ACEOF
11203 rm -f conftest.$ac_objext
11204 if { (ac_try="$ac_compile"
11205 case "(($ac_try" in
11206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207   *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210   (eval "$ac_compile") 2>conftest.er1
11211   ac_status=$?
11212   grep -v '^ *+' conftest.er1 >conftest.err
11213   rm -f conftest.er1
11214   cat conftest.err >&5
11215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216   (exit $ac_status); } && {
11217          test -z "$ac_c_werror_flag" ||
11218          test ! -s conftest.err
11219        } && test -s conftest.$ac_objext; then
11220   fits_in_uint=0
11221 else
11222   echo "$as_me: failed program was:" >&5
11223 sed 's/^/| /' conftest.$ac_ext >&5
11224
11225
11226 fi
11227
11228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229     fi
11230     if test -z "$result"; then
11231       if test "$fits_in_uint" = 1; then
11232         result="$res_hi$res_lo"U
11233       else
11234         result="$res_hi$res_lo"UL
11235       fi
11236     else
11237             result='~(size_t)0'
11238     fi
11239   fi
11240   { echo "$as_me:$LINENO: result: $result" >&5
11241 echo "${ECHO_T}$result" >&6; }
11242   if test "$result" != yes; then
11243
11244 cat >>confdefs.h <<_ACEOF
11245 #define SIZE_MAX $result
11246 _ACEOF
11247
11248   fi
11249
11250
11251
11252
11253
11254 for ac_header in stdint.h
11255 do
11256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11258   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11261   echo $ECHO_N "(cached) $ECHO_C" >&6
11262 fi
11263 ac_res=`eval echo '${'$as_ac_Header'}'`
11264                { echo "$as_me:$LINENO: result: $ac_res" >&5
11265 echo "${ECHO_T}$ac_res" >&6; }
11266 else
11267   # Is the header compilable?
11268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11270 cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h.  */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h.  */
11276 $ac_includes_default
11277 #include <$ac_header>
11278 _ACEOF
11279 rm -f conftest.$ac_objext
11280 if { (ac_try="$ac_compile"
11281 case "(($ac_try" in
11282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283   *) ac_try_echo=$ac_try;;
11284 esac
11285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11286   (eval "$ac_compile") 2>conftest.er1
11287   ac_status=$?
11288   grep -v '^ *+' conftest.er1 >conftest.err
11289   rm -f conftest.er1
11290   cat conftest.err >&5
11291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292   (exit $ac_status); } && {
11293          test -z "$ac_c_werror_flag" ||
11294          test ! -s conftest.err
11295        } && test -s conftest.$ac_objext; then
11296   ac_header_compiler=yes
11297 else
11298   echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11300
11301         ac_header_compiler=no
11302 fi
11303
11304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11306 echo "${ECHO_T}$ac_header_compiler" >&6; }
11307
11308 # Is the header present?
11309 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11310 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11311 cat >conftest.$ac_ext <<_ACEOF
11312 /* confdefs.h.  */
11313 _ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h.  */
11317 #include <$ac_header>
11318 _ACEOF
11319 if { (ac_try="$ac_cpp conftest.$ac_ext"
11320 case "(($ac_try" in
11321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322   *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } >/dev/null && {
11332          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11333          test ! -s conftest.err
11334        }; then
11335   ac_header_preproc=yes
11336 else
11337   echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11339
11340   ac_header_preproc=no
11341 fi
11342
11343 rm -f conftest.err conftest.$ac_ext
11344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11345 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346
11347 # So?  What about this header?
11348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349   yes:no: )
11350     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11351 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11352     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11353 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11354     ac_header_preproc=yes
11355     ;;
11356   no:yes:* )
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11358 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11359     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11360 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11362 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11363     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11364 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11365     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11366 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11367     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11368 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11369
11370     ;;
11371 esac
11372 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11375   echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377   eval "$as_ac_Header=\$ac_header_preproc"
11378 fi
11379 ac_res=`eval echo '${'$as_ac_Header'}'`
11380                { echo "$as_me:$LINENO: result: $ac_res" >&5
11381 echo "${ECHO_T}$ac_res" >&6; }
11382
11383 fi
11384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11385   cat >>confdefs.h <<_ACEOF
11386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11387 _ACEOF
11388
11389 fi
11390
11391 done
11392
11393
11394
11395
11396
11397
11398
11399
11400   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11401 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11402 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11403   echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405   cat >conftest.$ac_ext <<_ACEOF
11406 /* confdefs.h.  */
11407 _ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h.  */
11411 $ac_includes_default
11412 typedef ptrdiff_t ac__type_new_;
11413 int
11414 main ()
11415 {
11416 if ((ac__type_new_ *) 0)
11417   return 0;
11418 if (sizeof (ac__type_new_))
11419   return 0;
11420   ;
11421   return 0;
11422 }
11423 _ACEOF
11424 rm -f conftest.$ac_objext
11425 if { (ac_try="$ac_compile"
11426 case "(($ac_try" in
11427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11428   *) ac_try_echo=$ac_try;;
11429 esac
11430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11431   (eval "$ac_compile") 2>conftest.er1
11432   ac_status=$?
11433   grep -v '^ *+' conftest.er1 >conftest.err
11434   rm -f conftest.er1
11435   cat conftest.err >&5
11436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437   (exit $ac_status); } && {
11438          test -z "$ac_c_werror_flag" ||
11439          test ! -s conftest.err
11440        } && test -s conftest.$ac_objext; then
11441   ac_cv_type_ptrdiff_t=yes
11442 else
11443   echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446         ac_cv_type_ptrdiff_t=no
11447 fi
11448
11449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 fi
11451 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11452 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11453 if test $ac_cv_type_ptrdiff_t = yes; then
11454   :
11455 else
11456
11457 cat >>confdefs.h <<\_ACEOF
11458 #define ptrdiff_t long
11459 _ACEOF
11460
11461
11462 fi
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11475 stdlib.h string.h unistd.h sys/param.h
11476 do
11477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11482   echo $ECHO_N "(cached) $ECHO_C" >&6
11483 fi
11484 ac_res=`eval echo '${'$as_ac_Header'}'`
11485                { echo "$as_me:$LINENO: result: $ac_res" >&5
11486 echo "${ECHO_T}$ac_res" >&6; }
11487 else
11488   # Is the header compilable?
11489 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11491 cat >conftest.$ac_ext <<_ACEOF
11492 /* confdefs.h.  */
11493 _ACEOF
11494 cat confdefs.h >>conftest.$ac_ext
11495 cat >>conftest.$ac_ext <<_ACEOF
11496 /* end confdefs.h.  */
11497 $ac_includes_default
11498 #include <$ac_header>
11499 _ACEOF
11500 rm -f conftest.$ac_objext
11501 if { (ac_try="$ac_compile"
11502 case "(($ac_try" in
11503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11504   *) ac_try_echo=$ac_try;;
11505 esac
11506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11507   (eval "$ac_compile") 2>conftest.er1
11508   ac_status=$?
11509   grep -v '^ *+' conftest.er1 >conftest.err
11510   rm -f conftest.er1
11511   cat conftest.err >&5
11512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513   (exit $ac_status); } && {
11514          test -z "$ac_c_werror_flag" ||
11515          test ! -s conftest.err
11516        } && test -s conftest.$ac_objext; then
11517   ac_header_compiler=yes
11518 else
11519   echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522         ac_header_compiler=no
11523 fi
11524
11525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11527 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528
11529 # Is the header present?
11530 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h.  */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h.  */
11538 #include <$ac_header>
11539 _ACEOF
11540 if { (ac_try="$ac_cpp conftest.$ac_ext"
11541 case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11547   ac_status=$?
11548   grep -v '^ *+' conftest.er1 >conftest.err
11549   rm -f conftest.er1
11550   cat conftest.err >&5
11551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552   (exit $ac_status); } >/dev/null && {
11553          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11554          test ! -s conftest.err
11555        }; then
11556   ac_header_preproc=yes
11557 else
11558   echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.$ac_ext >&5
11560
11561   ac_header_preproc=no
11562 fi
11563
11564 rm -f conftest.err conftest.$ac_ext
11565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11566 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567
11568 # So?  What about this header?
11569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570   yes:no: )
11571     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11575     ac_header_preproc=yes
11576     ;;
11577   no:yes:* )
11578     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11580     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11581 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11584     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11585 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11588     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11590
11591     ;;
11592 esac
11593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11596   echo $ECHO_N "(cached) $ECHO_C" >&6
11597 else
11598   eval "$as_ac_Header=\$ac_header_preproc"
11599 fi
11600 ac_res=`eval echo '${'$as_ac_Header'}'`
11601                { echo "$as_me:$LINENO: result: $ac_res" >&5
11602 echo "${ECHO_T}$ac_res" >&6; }
11603
11604 fi
11605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11606   cat >>confdefs.h <<_ACEOF
11607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11608 _ACEOF
11609
11610 fi
11611
11612 done
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11638 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11639 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11640 __fsetlocking
11641 do
11642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11643 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 /* confdefs.h.  */
11650 _ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h.  */
11654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11656 #define $ac_func innocuous_$ac_func
11657
11658 /* System header to define __stub macros and hopefully few prototypes,
11659     which can conflict with char $ac_func (); below.
11660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11661     <limits.h> exists even on freestanding compilers.  */
11662
11663 #ifdef __STDC__
11664 # include <limits.h>
11665 #else
11666 # include <assert.h>
11667 #endif
11668
11669 #undef $ac_func
11670
11671 /* Override any GCC internal prototype to avoid an error.
11672    Use char because int might match the return type of a GCC
11673    builtin and then its argument prototype would still apply.  */
11674 #ifdef __cplusplus
11675 extern "C"
11676 #endif
11677 char $ac_func ();
11678 /* The GNU C library defines this for functions which it implements
11679     to always fail with ENOSYS.  Some functions are actually named
11680     something starting with __ and the normal name is an alias.  */
11681 #if defined __stub_$ac_func || defined __stub___$ac_func
11682 choke me
11683 #endif
11684
11685 int
11686 main ()
11687 {
11688 return $ac_func ();
11689   ;
11690   return 0;
11691 }
11692 _ACEOF
11693 rm -f conftest.$ac_objext conftest$ac_exeext
11694 if { (ac_try="$ac_link"
11695 case "(($ac_try" in
11696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11697   *) ac_try_echo=$ac_try;;
11698 esac
11699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11700   (eval "$ac_link") 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } && {
11707          test -z "$ac_c_werror_flag" ||
11708          test ! -s conftest.err
11709        } && test -s conftest$ac_exeext &&
11710        $as_test_x conftest$ac_exeext; then
11711   eval "$as_ac_var=yes"
11712 else
11713   echo "$as_me: failed program was:" >&5
11714 sed 's/^/| /' conftest.$ac_ext >&5
11715
11716         eval "$as_ac_var=no"
11717 fi
11718
11719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11720       conftest$ac_exeext conftest.$ac_ext
11721 fi
11722 ac_res=`eval echo '${'$as_ac_var'}'`
11723                { echo "$as_me:$LINENO: result: $ac_res" >&5
11724 echo "${ECHO_T}$ac_res" >&6; }
11725 if test `eval echo '${'$as_ac_var'}'` = yes; then
11726   cat >>confdefs.h <<_ACEOF
11727 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11728 _ACEOF
11729
11730 fi
11731 done
11732
11733
11734
11735   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11736 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11737 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11738   echo $ECHO_N "(cached) $ECHO_C" >&6
11739 else
11740   cat >conftest.$ac_ext <<_ACEOF
11741 /* confdefs.h.  */
11742 _ACEOF
11743 cat confdefs.h >>conftest.$ac_ext
11744 cat >>conftest.$ac_ext <<_ACEOF
11745 /* end confdefs.h.  */
11746 #include <stdio.h>
11747 int
11748 main ()
11749 {
11750
11751 #ifndef _snprintf
11752   char *p = (char *) _snprintf;
11753 #endif
11754
11755   ;
11756   return 0;
11757 }
11758 _ACEOF
11759 rm -f conftest.$ac_objext
11760 if { (ac_try="$ac_compile"
11761 case "(($ac_try" in
11762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763   *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766   (eval "$ac_compile") 2>conftest.er1
11767   ac_status=$?
11768   grep -v '^ *+' conftest.er1 >conftest.err
11769   rm -f conftest.er1
11770   cat conftest.err >&5
11771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772   (exit $ac_status); } && {
11773          test -z "$ac_c_werror_flag" ||
11774          test ! -s conftest.err
11775        } && test -s conftest.$ac_objext; then
11776   ac_cv_have_decl__snprintf=yes
11777 else
11778   echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11780
11781         ac_cv_have_decl__snprintf=no
11782 fi
11783
11784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 fi
11786 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11787 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11788   if test $ac_cv_have_decl__snprintf = yes; then
11789     gt_value=1
11790   else
11791     gt_value=0
11792   fi
11793
11794 cat >>confdefs.h <<_ACEOF
11795 #define HAVE_DECL__SNPRINTF $gt_value
11796 _ACEOF
11797
11798
11799
11800   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11801 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11802 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11803   echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805   cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h.  */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h.  */
11811 #include <stdio.h>
11812 int
11813 main ()
11814 {
11815
11816 #ifndef _snwprintf
11817   char *p = (char *) _snwprintf;
11818 #endif
11819
11820   ;
11821   return 0;
11822 }
11823 _ACEOF
11824 rm -f conftest.$ac_objext
11825 if { (ac_try="$ac_compile"
11826 case "(($ac_try" in
11827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11828   *) ac_try_echo=$ac_try;;
11829 esac
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831   (eval "$ac_compile") 2>conftest.er1
11832   ac_status=$?
11833   grep -v '^ *+' conftest.er1 >conftest.err
11834   rm -f conftest.er1
11835   cat conftest.err >&5
11836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837   (exit $ac_status); } && {
11838          test -z "$ac_c_werror_flag" ||
11839          test ! -s conftest.err
11840        } && test -s conftest.$ac_objext; then
11841   ac_cv_have_decl__snwprintf=yes
11842 else
11843   echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11845
11846         ac_cv_have_decl__snwprintf=no
11847 fi
11848
11849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 fi
11851 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11852 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11853   if test $ac_cv_have_decl__snwprintf = yes; then
11854     gt_value=1
11855   else
11856     gt_value=0
11857   fi
11858
11859 cat >>confdefs.h <<_ACEOF
11860 #define HAVE_DECL__SNWPRINTF $gt_value
11861 _ACEOF
11862
11863
11864
11865
11866   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11867 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11868 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11869   echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871   cat >conftest.$ac_ext <<_ACEOF
11872 /* confdefs.h.  */
11873 _ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h.  */
11877 #include <stdio.h>
11878 int
11879 main ()
11880 {
11881
11882 #ifndef feof_unlocked
11883   char *p = (char *) feof_unlocked;
11884 #endif
11885
11886   ;
11887   return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext
11891 if { (ac_try="$ac_compile"
11892 case "(($ac_try" in
11893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894   *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897   (eval "$ac_compile") 2>conftest.er1
11898   ac_status=$?
11899   grep -v '^ *+' conftest.er1 >conftest.err
11900   rm -f conftest.er1
11901   cat conftest.err >&5
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); } && {
11904          test -z "$ac_c_werror_flag" ||
11905          test ! -s conftest.err
11906        } && test -s conftest.$ac_objext; then
11907   ac_cv_have_decl_feof_unlocked=yes
11908 else
11909   echo "$as_me: failed program was:" >&5
11910 sed 's/^/| /' conftest.$ac_ext >&5
11911
11912         ac_cv_have_decl_feof_unlocked=no
11913 fi
11914
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 fi
11917 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11918 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11919   if test $ac_cv_have_decl_feof_unlocked = yes; then
11920     gt_value=1
11921   else
11922     gt_value=0
11923   fi
11924
11925 cat >>confdefs.h <<_ACEOF
11926 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11927 _ACEOF
11928
11929
11930
11931   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11932 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11933 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11934   echo $ECHO_N "(cached) $ECHO_C" >&6
11935 else
11936   cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942 #include <stdio.h>
11943 int
11944 main ()
11945 {
11946
11947 #ifndef fgets_unlocked
11948   char *p = (char *) fgets_unlocked;
11949 #endif
11950
11951   ;
11952   return 0;
11953 }
11954 _ACEOF
11955 rm -f conftest.$ac_objext
11956 if { (ac_try="$ac_compile"
11957 case "(($ac_try" in
11958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959   *) ac_try_echo=$ac_try;;
11960 esac
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962   (eval "$ac_compile") 2>conftest.er1
11963   ac_status=$?
11964   grep -v '^ *+' conftest.er1 >conftest.err
11965   rm -f conftest.er1
11966   cat conftest.err >&5
11967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968   (exit $ac_status); } && {
11969          test -z "$ac_c_werror_flag" ||
11970          test ! -s conftest.err
11971        } && test -s conftest.$ac_objext; then
11972   ac_cv_have_decl_fgets_unlocked=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977         ac_cv_have_decl_fgets_unlocked=no
11978 fi
11979
11980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 fi
11982 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11983 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11984   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11985     gt_value=1
11986   else
11987     gt_value=0
11988   fi
11989
11990 cat >>confdefs.h <<_ACEOF
11991 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11992 _ACEOF
11993
11994
11995
11996   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11997 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11998 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11999   echo $ECHO_N "(cached) $ECHO_C" >&6
12000 else
12001   cat >conftest.$ac_ext <<_ACEOF
12002 /* confdefs.h.  */
12003 _ACEOF
12004 cat confdefs.h >>conftest.$ac_ext
12005 cat >>conftest.$ac_ext <<_ACEOF
12006 /* end confdefs.h.  */
12007 #include <stdio.h>
12008 int
12009 main ()
12010 {
12011
12012 #ifndef getc_unlocked
12013   char *p = (char *) getc_unlocked;
12014 #endif
12015
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext
12021 if { (ac_try="$ac_compile"
12022 case "(($ac_try" in
12023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024   *) ac_try_echo=$ac_try;;
12025 esac
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027   (eval "$ac_compile") 2>conftest.er1
12028   ac_status=$?
12029   grep -v '^ *+' conftest.er1 >conftest.err
12030   rm -f conftest.er1
12031   cat conftest.err >&5
12032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033   (exit $ac_status); } && {
12034          test -z "$ac_c_werror_flag" ||
12035          test ! -s conftest.err
12036        } && test -s conftest.$ac_objext; then
12037   ac_cv_have_decl_getc_unlocked=yes
12038 else
12039   echo "$as_me: failed program was:" >&5
12040 sed 's/^/| /' conftest.$ac_ext >&5
12041
12042         ac_cv_have_decl_getc_unlocked=no
12043 fi
12044
12045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 fi
12047 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12048 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12049   if test $ac_cv_have_decl_getc_unlocked = yes; then
12050     gt_value=1
12051   else
12052     gt_value=0
12053   fi
12054
12055 cat >>confdefs.h <<_ACEOF
12056 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12057 _ACEOF
12058
12059
12060
12061   case $gt_cv_func_printf_posix in
12062     *yes) HAVE_POSIX_PRINTF=1 ;;
12063     *) HAVE_POSIX_PRINTF=0 ;;
12064   esac
12065
12066   if test "$ac_cv_func_asprintf" = yes; then
12067     HAVE_ASPRINTF=1
12068   else
12069     HAVE_ASPRINTF=0
12070   fi
12071
12072   if test "$ac_cv_func_snprintf" = yes; then
12073     HAVE_SNPRINTF=1
12074   else
12075     HAVE_SNPRINTF=0
12076   fi
12077
12078   if test "$ac_cv_func_wprintf" = yes; then
12079     HAVE_WPRINTF=1
12080   else
12081     HAVE_WPRINTF=0
12082   fi
12083
12084
12085
12086
12087
12088
12089
12090           am_save_CPPFLAGS="$CPPFLAGS"
12091
12092   for element in $INCICONV; do
12093     haveit=
12094     for x in $CPPFLAGS; do
12095
12096   acl_save_prefix="$prefix"
12097   prefix="$acl_final_prefix"
12098   acl_save_exec_prefix="$exec_prefix"
12099   exec_prefix="$acl_final_exec_prefix"
12100   eval x=\"$x\"
12101   exec_prefix="$acl_save_exec_prefix"
12102   prefix="$acl_save_prefix"
12103
12104       if test "X$x" = "X$element"; then
12105         haveit=yes
12106         break
12107       fi
12108     done
12109     if test -z "$haveit"; then
12110       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12111     fi
12112   done
12113
12114
12115   { echo "$as_me:$LINENO: checking for iconv" >&5
12116 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12117 if test "${am_cv_func_iconv+set}" = set; then
12118   echo $ECHO_N "(cached) $ECHO_C" >&6
12119 else
12120
12121     am_cv_func_iconv="no, consider installing GNU libiconv"
12122     am_cv_lib_iconv=no
12123     cat >conftest.$ac_ext <<_ACEOF
12124 /* confdefs.h.  */
12125 _ACEOF
12126 cat confdefs.h >>conftest.$ac_ext
12127 cat >>conftest.$ac_ext <<_ACEOF
12128 /* end confdefs.h.  */
12129 #include <stdlib.h>
12130 #include <iconv.h>
12131 int
12132 main ()
12133 {
12134 iconv_t cd = iconv_open("","");
12135        iconv(cd,NULL,NULL,NULL,NULL);
12136        iconv_close(cd);
12137   ;
12138   return 0;
12139 }
12140 _ACEOF
12141 rm -f conftest.$ac_objext conftest$ac_exeext
12142 if { (ac_try="$ac_link"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_link") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } && {
12155          test -z "$ac_c_werror_flag" ||
12156          test ! -s conftest.err
12157        } && test -s conftest$ac_exeext &&
12158        $as_test_x conftest$ac_exeext; then
12159   am_cv_func_iconv=yes
12160 else
12161   echo "$as_me: failed program was:" >&5
12162 sed 's/^/| /' conftest.$ac_ext >&5
12163
12164
12165 fi
12166
12167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12168       conftest$ac_exeext conftest.$ac_ext
12169     if test "$am_cv_func_iconv" != yes; then
12170       am_save_LIBS="$LIBS"
12171       LIBS="$LIBS $LIBICONV"
12172       cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h.  */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h.  */
12178 #include <stdlib.h>
12179 #include <iconv.h>
12180 int
12181 main ()
12182 {
12183 iconv_t cd = iconv_open("","");
12184          iconv(cd,NULL,NULL,NULL,NULL);
12185          iconv_close(cd);
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 rm -f conftest.$ac_objext conftest$ac_exeext
12191 if { (ac_try="$ac_link"
12192 case "(($ac_try" in
12193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12194   *) ac_try_echo=$ac_try;;
12195 esac
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197   (eval "$ac_link") 2>conftest.er1
12198   ac_status=$?
12199   grep -v '^ *+' conftest.er1 >conftest.err
12200   rm -f conftest.er1
12201   cat conftest.err >&5
12202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203   (exit $ac_status); } && {
12204          test -z "$ac_c_werror_flag" ||
12205          test ! -s conftest.err
12206        } && test -s conftest$ac_exeext &&
12207        $as_test_x conftest$ac_exeext; then
12208   am_cv_lib_iconv=yes
12209         am_cv_func_iconv=yes
12210 else
12211   echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12213
12214
12215 fi
12216
12217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12218       conftest$ac_exeext conftest.$ac_ext
12219       LIBS="$am_save_LIBS"
12220     fi
12221
12222 fi
12223 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12224 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12225   if test "$am_cv_func_iconv" = yes; then
12226
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_ICONV 1
12229 _ACEOF
12230
12231   fi
12232   if test "$am_cv_lib_iconv" = yes; then
12233     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12234 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12235     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12236 echo "${ECHO_T}$LIBICONV" >&6; }
12237   else
12238             CPPFLAGS="$am_save_CPPFLAGS"
12239     LIBICONV=
12240     LTLIBICONV=
12241   fi
12242
12243
12244
12245   if test "$am_cv_func_iconv" = yes; then
12246     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12247 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12248     if test "${am_cv_proto_iconv+set}" = set; then
12249   echo $ECHO_N "(cached) $ECHO_C" >&6
12250 else
12251
12252       cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h.  */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h.  */
12258
12259 #include <stdlib.h>
12260 #include <iconv.h>
12261 extern
12262 #ifdef __cplusplus
12263 "C"
12264 #endif
12265 #if defined(__STDC__) || defined(__cplusplus)
12266 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12267 #else
12268 size_t iconv();
12269 #endif
12270
12271 int
12272 main ()
12273 {
12274
12275   ;
12276   return 0;
12277 }
12278 _ACEOF
12279 rm -f conftest.$ac_objext
12280 if { (ac_try="$ac_compile"
12281 case "(($ac_try" in
12282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12283   *) ac_try_echo=$ac_try;;
12284 esac
12285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12286   (eval "$ac_compile") 2>conftest.er1
12287   ac_status=$?
12288   grep -v '^ *+' conftest.er1 >conftest.err
12289   rm -f conftest.er1
12290   cat conftest.err >&5
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } && {
12293          test -z "$ac_c_werror_flag" ||
12294          test ! -s conftest.err
12295        } && test -s conftest.$ac_objext; then
12296   am_cv_proto_iconv_arg1=""
12297 else
12298   echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12300
12301         am_cv_proto_iconv_arg1="const"
12302 fi
12303
12304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12305       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);"
12306 fi
12307
12308     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12309     { echo "$as_me:$LINENO: result: ${ac_t:-
12310          }$am_cv_proto_iconv" >&5
12311 echo "${ECHO_T}${ac_t:-
12312          }$am_cv_proto_iconv" >&6; }
12313
12314 cat >>confdefs.h <<_ACEOF
12315 #define ICONV_CONST $am_cv_proto_iconv_arg1
12316 _ACEOF
12317
12318   fi
12319
12320
12321   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12322 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12323 if test "${am_cv_langinfo_codeset+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h.  */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h.  */
12332 #include <langinfo.h>
12333 int
12334 main ()
12335 {
12336 char* cs = nl_langinfo(CODESET);
12337   ;
12338   return 0;
12339 }
12340 _ACEOF
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (ac_try="$ac_link"
12343 case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_link") 2>conftest.er1
12349   ac_status=$?
12350   grep -v '^ *+' conftest.er1 >conftest.err
12351   rm -f conftest.er1
12352   cat conftest.err >&5
12353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354   (exit $ac_status); } && {
12355          test -z "$ac_c_werror_flag" ||
12356          test ! -s conftest.err
12357        } && test -s conftest$ac_exeext &&
12358        $as_test_x conftest$ac_exeext; then
12359   am_cv_langinfo_codeset=yes
12360 else
12361   echo "$as_me: failed program was:" >&5
12362 sed 's/^/| /' conftest.$ac_ext >&5
12363
12364         am_cv_langinfo_codeset=no
12365 fi
12366
12367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12368       conftest$ac_exeext conftest.$ac_ext
12369
12370 fi
12371 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12372 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12373   if test $am_cv_langinfo_codeset = yes; then
12374
12375 cat >>confdefs.h <<\_ACEOF
12376 #define HAVE_LANGINFO_CODESET 1
12377 _ACEOF
12378
12379   fi
12380
12381   if test $ac_cv_header_locale_h = yes; then
12382
12383   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12384 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12385 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12386   echo $ECHO_N "(cached) $ECHO_C" >&6
12387 else
12388   cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394 #include <locale.h>
12395 int
12396 main ()
12397 {
12398 return LC_MESSAGES
12399   ;
12400   return 0;
12401 }
12402 _ACEOF
12403 rm -f conftest.$ac_objext conftest$ac_exeext
12404 if { (ac_try="$ac_link"
12405 case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_link") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } && {
12417          test -z "$ac_c_werror_flag" ||
12418          test ! -s conftest.err
12419        } && test -s conftest$ac_exeext &&
12420        $as_test_x conftest$ac_exeext; then
12421   gt_cv_val_LC_MESSAGES=yes
12422 else
12423   echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12425
12426         gt_cv_val_LC_MESSAGES=no
12427 fi
12428
12429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12430       conftest$ac_exeext conftest.$ac_ext
12431 fi
12432 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12433 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12434   if test $gt_cv_val_LC_MESSAGES = yes; then
12435
12436 cat >>confdefs.h <<\_ACEOF
12437 #define HAVE_LC_MESSAGES 1
12438 _ACEOF
12439
12440   fi
12441
12442   fi
12443
12444   if test -n "$INTL_MACOSX_LIBS"; then
12445     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12446   fi
12447
12448                       for ac_prog in bison
12449 do
12450   # Extract the first word of "$ac_prog", so it can be a program name with args.
12451 set dummy $ac_prog; ac_word=$2
12452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12454 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12455   echo $ECHO_N "(cached) $ECHO_C" >&6
12456 else
12457   if test -n "$INTLBISON"; then
12458   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463   IFS=$as_save_IFS
12464   test -z "$as_dir" && as_dir=.
12465   for ac_exec_ext in '' $ac_executable_extensions; do
12466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467     ac_cv_prog_INTLBISON="$ac_prog"
12468     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12469     break 2
12470   fi
12471 done
12472 done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 INTLBISON=$ac_cv_prog_INTLBISON
12478 if test -n "$INTLBISON"; then
12479   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12480 echo "${ECHO_T}$INTLBISON" >&6; }
12481 else
12482   { echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6; }
12484 fi
12485
12486
12487   test -n "$INTLBISON" && break
12488 done
12489
12490   if test -z "$INTLBISON"; then
12491     ac_verc_fail=yes
12492   else
12493         { echo "$as_me:$LINENO: checking version of bison" >&5
12494 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12495     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12496     case $ac_prog_version in
12497       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12498       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12499          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12500       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12501     esac
12502     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12503 echo "${ECHO_T}$ac_prog_version" >&6; }
12504   fi
12505   if test $ac_verc_fail = yes; then
12506     INTLBISON=:
12507   fi
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12525 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12526 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12527   echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529   gt_save_CPPFLAGS="$CPPFLAGS"
12530      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12531      gt_save_LIBS="$LIBS"
12532      LIBS="$LIBS -framework CoreFoundation"
12533      cat >conftest.$ac_ext <<_ACEOF
12534 /* confdefs.h.  */
12535 _ACEOF
12536 cat confdefs.h >>conftest.$ac_ext
12537 cat >>conftest.$ac_ext <<_ACEOF
12538 /* end confdefs.h.  */
12539 #include <CFPreferences.h>
12540 int
12541 main ()
12542 {
12543 CFPreferencesCopyAppValue(NULL, NULL)
12544   ;
12545   return 0;
12546 }
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (ac_try="$ac_link"
12550 case "(($ac_try" in
12551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552   *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555   (eval "$ac_link") 2>conftest.er1
12556   ac_status=$?
12557   grep -v '^ *+' conftest.er1 >conftest.err
12558   rm -f conftest.er1
12559   cat conftest.err >&5
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); } && {
12562          test -z "$ac_c_werror_flag" ||
12563          test ! -s conftest.err
12564        } && test -s conftest$ac_exeext &&
12565        $as_test_x conftest$ac_exeext; then
12566   gt_cv_func_CFPreferencesCopyAppValue=yes
12567 else
12568   echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.$ac_ext >&5
12570
12571         gt_cv_func_CFPreferencesCopyAppValue=no
12572 fi
12573
12574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12575       conftest$ac_exeext conftest.$ac_ext
12576      CPPFLAGS="$gt_save_CPPFLAGS"
12577      LIBS="$gt_save_LIBS"
12578 fi
12579 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12580 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12581   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12582
12583 cat >>confdefs.h <<\_ACEOF
12584 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12585 _ACEOF
12586
12587   fi
12588     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12589 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12590 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12591   echo $ECHO_N "(cached) $ECHO_C" >&6
12592 else
12593   gt_save_CPPFLAGS="$CPPFLAGS"
12594      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12595      gt_save_LIBS="$LIBS"
12596      LIBS="$LIBS -framework CoreFoundation"
12597      cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h.  */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h.  */
12603 #include <CFLocale.h>
12604 int
12605 main ()
12606 {
12607 CFLocaleCopyCurrent();
12608   ;
12609   return 0;
12610 }
12611 _ACEOF
12612 rm -f conftest.$ac_objext conftest$ac_exeext
12613 if { (ac_try="$ac_link"
12614 case "(($ac_try" in
12615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12616   *) ac_try_echo=$ac_try;;
12617 esac
12618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12619   (eval "$ac_link") 2>conftest.er1
12620   ac_status=$?
12621   grep -v '^ *+' conftest.er1 >conftest.err
12622   rm -f conftest.er1
12623   cat conftest.err >&5
12624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625   (exit $ac_status); } && {
12626          test -z "$ac_c_werror_flag" ||
12627          test ! -s conftest.err
12628        } && test -s conftest$ac_exeext &&
12629        $as_test_x conftest$ac_exeext; then
12630   gt_cv_func_CFLocaleCopyCurrent=yes
12631 else
12632   echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12634
12635         gt_cv_func_CFLocaleCopyCurrent=no
12636 fi
12637
12638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12639       conftest$ac_exeext conftest.$ac_ext
12640      CPPFLAGS="$gt_save_CPPFLAGS"
12641      LIBS="$gt_save_LIBS"
12642 fi
12643 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12644 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12645   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define HAVE_CFLOCALECOPYCURRENT 1
12649 _ACEOF
12650
12651   fi
12652   INTL_MACOSX_LIBS=
12653   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12654     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12655   fi
12656
12657
12658
12659
12660   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12661 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12662     # Check whether --enable-nls was given.
12663 if test "${enable_nls+set}" = set; then
12664   enableval=$enable_nls; USE_NLS=$enableval
12665 else
12666   USE_NLS=yes
12667 fi
12668
12669   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12670 echo "${ECHO_T}$USE_NLS" >&6; }
12671
12672
12673
12674
12675     BUILD_INCLUDED_LIBINTL=no
12676     USE_INCLUDED_LIBINTL=no
12677
12678   LIBINTL=
12679   LTLIBINTL=
12680   POSUB=
12681
12682     if test "$USE_NLS" = "yes"; then
12683     gt_use_preinstalled_gnugettext=no
12684
12685       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12686 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12687
12688 # Check whether --with-included-gettext was given.
12689 if test "${with_included_gettext+set}" = set; then
12690   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12691 else
12692   nls_cv_force_use_gnu_gettext=no
12693 fi
12694
12695       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12696 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12697
12698       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12699       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12700
12701
12702
12703
12704
12705
12706         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12707 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12708 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12709   echo $ECHO_N "(cached) $ECHO_C" >&6
12710 else
12711   cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h.  */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h.  */
12717 #include <libintl.h>
12718 extern int _nl_msg_cat_cntr;
12719 extern int *_nl_domain_bindings;
12720 int
12721 main ()
12722 {
12723 bindtextdomain ("", "");
12724 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12725   ;
12726   return 0;
12727 }
12728 _ACEOF
12729 rm -f conftest.$ac_objext conftest$ac_exeext
12730 if { (ac_try="$ac_link"
12731 case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_link") 2>conftest.er1
12737   ac_status=$?
12738   grep -v '^ *+' conftest.er1 >conftest.err
12739   rm -f conftest.er1
12740   cat conftest.err >&5
12741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742   (exit $ac_status); } && {
12743          test -z "$ac_c_werror_flag" ||
12744          test ! -s conftest.err
12745        } && test -s conftest$ac_exeext &&
12746        $as_test_x conftest$ac_exeext; then
12747   gt_cv_func_gnugettext1_libc=yes
12748 else
12749   echo "$as_me: failed program was:" >&5
12750 sed 's/^/| /' conftest.$ac_ext >&5
12751
12752         gt_cv_func_gnugettext1_libc=no
12753 fi
12754
12755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12756       conftest$ac_exeext conftest.$ac_ext
12757 fi
12758 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12759 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12760
12761         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12762
12763
12764
12765     use_additional=yes
12766
12767   acl_save_prefix="$prefix"
12768   prefix="$acl_final_prefix"
12769   acl_save_exec_prefix="$exec_prefix"
12770   exec_prefix="$acl_final_exec_prefix"
12771
12772     eval additional_includedir=\"$includedir\"
12773     eval additional_libdir=\"$libdir\"
12774
12775   exec_prefix="$acl_save_exec_prefix"
12776   prefix="$acl_save_prefix"
12777
12778
12779 # Check whether --with-libintl-prefix was given.
12780 if test "${with_libintl_prefix+set}" = set; then
12781   withval=$with_libintl_prefix;
12782     if test "X$withval" = "Xno"; then
12783       use_additional=no
12784     else
12785       if test "X$withval" = "X"; then
12786
12787   acl_save_prefix="$prefix"
12788   prefix="$acl_final_prefix"
12789   acl_save_exec_prefix="$exec_prefix"
12790   exec_prefix="$acl_final_exec_prefix"
12791
12792           eval additional_includedir=\"$includedir\"
12793           eval additional_libdir=\"$libdir\"
12794
12795   exec_prefix="$acl_save_exec_prefix"
12796   prefix="$acl_save_prefix"
12797
12798       else
12799         additional_includedir="$withval/include"
12800         additional_libdir="$withval/lib"
12801       fi
12802     fi
12803
12804 fi
12805
12806       LIBINTL=
12807   LTLIBINTL=
12808   INCINTL=
12809   rpathdirs=
12810   ltrpathdirs=
12811   names_already_handled=
12812   names_next_round='intl '
12813   while test -n "$names_next_round"; do
12814     names_this_round="$names_next_round"
12815     names_next_round=
12816     for name in $names_this_round; do
12817       already_handled=
12818       for n in $names_already_handled; do
12819         if test "$n" = "$name"; then
12820           already_handled=yes
12821           break
12822         fi
12823       done
12824       if test -z "$already_handled"; then
12825         names_already_handled="$names_already_handled $name"
12826                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12827         eval value=\"\$HAVE_LIB$uppername\"
12828         if test -n "$value"; then
12829           if test "$value" = yes; then
12830             eval value=\"\$LIB$uppername\"
12831             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12832             eval value=\"\$LTLIB$uppername\"
12833             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12834           else
12835                                     :
12836           fi
12837         else
12838                               found_dir=
12839           found_la=
12840           found_so=
12841           found_a=
12842           if test $use_additional = yes; then
12843             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12844               found_dir="$additional_libdir"
12845               found_so="$additional_libdir/lib$name.$shlibext"
12846               if test -f "$additional_libdir/lib$name.la"; then
12847                 found_la="$additional_libdir/lib$name.la"
12848               fi
12849             else
12850               if test -f "$additional_libdir/lib$name.$libext"; then
12851                 found_dir="$additional_libdir"
12852                 found_a="$additional_libdir/lib$name.$libext"
12853                 if test -f "$additional_libdir/lib$name.la"; then
12854                   found_la="$additional_libdir/lib$name.la"
12855                 fi
12856               fi
12857             fi
12858           fi
12859           if test "X$found_dir" = "X"; then
12860             for x in $LDFLAGS $LTLIBINTL; do
12861
12862   acl_save_prefix="$prefix"
12863   prefix="$acl_final_prefix"
12864   acl_save_exec_prefix="$exec_prefix"
12865   exec_prefix="$acl_final_exec_prefix"
12866   eval x=\"$x\"
12867   exec_prefix="$acl_save_exec_prefix"
12868   prefix="$acl_save_prefix"
12869
12870               case "$x" in
12871                 -L*)
12872                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12873                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12874                     found_dir="$dir"
12875                     found_so="$dir/lib$name.$shlibext"
12876                     if test -f "$dir/lib$name.la"; then
12877                       found_la="$dir/lib$name.la"
12878                     fi
12879                   else
12880                     if test -f "$dir/lib$name.$libext"; then
12881                       found_dir="$dir"
12882                       found_a="$dir/lib$name.$libext"
12883                       if test -f "$dir/lib$name.la"; then
12884                         found_la="$dir/lib$name.la"
12885                       fi
12886                     fi
12887                   fi
12888                   ;;
12889               esac
12890               if test "X$found_dir" != "X"; then
12891                 break
12892               fi
12893             done
12894           fi
12895           if test "X$found_dir" != "X"; then
12896                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12897             if test "X$found_so" != "X"; then
12898                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12899                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12900               else
12901                                                                                 haveit=
12902                 for x in $ltrpathdirs; do
12903                   if test "X$x" = "X$found_dir"; then
12904                     haveit=yes
12905                     break
12906                   fi
12907                 done
12908                 if test -z "$haveit"; then
12909                   ltrpathdirs="$ltrpathdirs $found_dir"
12910                 fi
12911                                 if test "$hardcode_direct" = yes; then
12912                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12913                 else
12914                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12915                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12916                                                             haveit=
12917                     for x in $rpathdirs; do
12918                       if test "X$x" = "X$found_dir"; then
12919                         haveit=yes
12920                         break
12921                       fi
12922                     done
12923                     if test -z "$haveit"; then
12924                       rpathdirs="$rpathdirs $found_dir"
12925                     fi
12926                   else
12927                                                                                 haveit=
12928                     for x in $LDFLAGS $LIBINTL; do
12929
12930   acl_save_prefix="$prefix"
12931   prefix="$acl_final_prefix"
12932   acl_save_exec_prefix="$exec_prefix"
12933   exec_prefix="$acl_final_exec_prefix"
12934   eval x=\"$x\"
12935   exec_prefix="$acl_save_exec_prefix"
12936   prefix="$acl_save_prefix"
12937
12938                       if test "X$x" = "X-L$found_dir"; then
12939                         haveit=yes
12940                         break
12941                       fi
12942                     done
12943                     if test -z "$haveit"; then
12944                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12945                     fi
12946                     if test "$hardcode_minus_L" != no; then
12947                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12948                     else
12949                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12950                     fi
12951                   fi
12952                 fi
12953               fi
12954             else
12955               if test "X$found_a" != "X"; then
12956                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12957               else
12958                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12959               fi
12960             fi
12961                         additional_includedir=
12962             case "$found_dir" in
12963               */lib | */lib/)
12964                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12965                 additional_includedir="$basedir/include"
12966                 ;;
12967             esac
12968             if test "X$additional_includedir" != "X"; then
12969                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12970                 haveit=
12971                 if test "X$additional_includedir" = "X/usr/local/include"; then
12972                   if test -n "$GCC"; then
12973                     case $host_os in
12974                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12975                     esac
12976                   fi
12977                 fi
12978                 if test -z "$haveit"; then
12979                   for x in $CPPFLAGS $INCINTL; do
12980
12981   acl_save_prefix="$prefix"
12982   prefix="$acl_final_prefix"
12983   acl_save_exec_prefix="$exec_prefix"
12984   exec_prefix="$acl_final_exec_prefix"
12985   eval x=\"$x\"
12986   exec_prefix="$acl_save_exec_prefix"
12987   prefix="$acl_save_prefix"
12988
12989                     if test "X$x" = "X-I$additional_includedir"; then
12990                       haveit=yes
12991                       break
12992                     fi
12993                   done
12994                   if test -z "$haveit"; then
12995                     if test -d "$additional_includedir"; then
12996                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12997                     fi
12998                   fi
12999                 fi
13000               fi
13001             fi
13002                         if test -n "$found_la"; then
13003                                                         save_libdir="$libdir"
13004               case "$found_la" in
13005                 */* | *\\*) . "$found_la" ;;
13006                 *) . "./$found_la" ;;
13007               esac
13008               libdir="$save_libdir"
13009                             for dep in $dependency_libs; do
13010                 case "$dep" in
13011                   -L*)
13012                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13013                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13014                       haveit=
13015                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13016                         if test -n "$GCC"; then
13017                           case $host_os in
13018                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13019                           esac
13020                         fi
13021                       fi
13022                       if test -z "$haveit"; then
13023                         haveit=
13024                         for x in $LDFLAGS $LIBINTL; do
13025
13026   acl_save_prefix="$prefix"
13027   prefix="$acl_final_prefix"
13028   acl_save_exec_prefix="$exec_prefix"
13029   exec_prefix="$acl_final_exec_prefix"
13030   eval x=\"$x\"
13031   exec_prefix="$acl_save_exec_prefix"
13032   prefix="$acl_save_prefix"
13033
13034                           if test "X$x" = "X-L$additional_libdir"; then
13035                             haveit=yes
13036                             break
13037                           fi
13038                         done
13039                         if test -z "$haveit"; then
13040                           if test -d "$additional_libdir"; then
13041                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13042                           fi
13043                         fi
13044                         haveit=
13045                         for x in $LDFLAGS $LTLIBINTL; do
13046
13047   acl_save_prefix="$prefix"
13048   prefix="$acl_final_prefix"
13049   acl_save_exec_prefix="$exec_prefix"
13050   exec_prefix="$acl_final_exec_prefix"
13051   eval x=\"$x\"
13052   exec_prefix="$acl_save_exec_prefix"
13053   prefix="$acl_save_prefix"
13054
13055                           if test "X$x" = "X-L$additional_libdir"; then
13056                             haveit=yes
13057                             break
13058                           fi
13059                         done
13060                         if test -z "$haveit"; then
13061                           if test -d "$additional_libdir"; then
13062                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13063                           fi
13064                         fi
13065                       fi
13066                     fi
13067                     ;;
13068                   -R*)
13069                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13070                     if test "$enable_rpath" != no; then
13071                                                                   haveit=
13072                       for x in $rpathdirs; do
13073                         if test "X$x" = "X$dir"; then
13074                           haveit=yes
13075                           break
13076                         fi
13077                       done
13078                       if test -z "$haveit"; then
13079                         rpathdirs="$rpathdirs $dir"
13080                       fi
13081                                                                   haveit=
13082                       for x in $ltrpathdirs; do
13083                         if test "X$x" = "X$dir"; then
13084                           haveit=yes
13085                           break
13086                         fi
13087                       done
13088                       if test -z "$haveit"; then
13089                         ltrpathdirs="$ltrpathdirs $dir"
13090                       fi
13091                     fi
13092                     ;;
13093                   -l*)
13094                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13095                     ;;
13096                   *.la)
13097                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13098                     ;;
13099                   *)
13100                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13101                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13102                     ;;
13103                 esac
13104               done
13105             fi
13106           else
13107                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13108             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13109           fi
13110         fi
13111       fi
13112     done
13113   done
13114   if test "X$rpathdirs" != "X"; then
13115     if test -n "$hardcode_libdir_separator"; then
13116                         alldirs=
13117       for found_dir in $rpathdirs; do
13118         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13119       done
13120             acl_save_libdir="$libdir"
13121       libdir="$alldirs"
13122       eval flag=\"$hardcode_libdir_flag_spec\"
13123       libdir="$acl_save_libdir"
13124       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13125     else
13126             for found_dir in $rpathdirs; do
13127         acl_save_libdir="$libdir"
13128         libdir="$found_dir"
13129         eval flag=\"$hardcode_libdir_flag_spec\"
13130         libdir="$acl_save_libdir"
13131         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13132       done
13133     fi
13134   fi
13135   if test "X$ltrpathdirs" != "X"; then
13136             for found_dir in $ltrpathdirs; do
13137       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13138     done
13139   fi
13140
13141           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13142 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13143 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   gt_save_CPPFLAGS="$CPPFLAGS"
13147             CPPFLAGS="$CPPFLAGS $INCINTL"
13148             gt_save_LIBS="$LIBS"
13149             LIBS="$LIBS $LIBINTL"
13150                         cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 #include <libintl.h>
13157 extern int _nl_msg_cat_cntr;
13158 extern
13159 #ifdef __cplusplus
13160 "C"
13161 #endif
13162 const char *_nl_expand_alias (const char *);
13163 int
13164 main ()
13165 {
13166 bindtextdomain ("", "");
13167 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13168   ;
13169   return 0;
13170 }
13171 _ACEOF
13172 rm -f conftest.$ac_objext conftest$ac_exeext
13173 if { (ac_try="$ac_link"
13174 case "(($ac_try" in
13175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176   *) ac_try_echo=$ac_try;;
13177 esac
13178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13179   (eval "$ac_link") 2>conftest.er1
13180   ac_status=$?
13181   grep -v '^ *+' conftest.er1 >conftest.err
13182   rm -f conftest.er1
13183   cat conftest.err >&5
13184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185   (exit $ac_status); } && {
13186          test -z "$ac_c_werror_flag" ||
13187          test ! -s conftest.err
13188        } && test -s conftest$ac_exeext &&
13189        $as_test_x conftest$ac_exeext; then
13190   gt_cv_func_gnugettext1_libintl=yes
13191 else
13192   echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13194
13195         gt_cv_func_gnugettext1_libintl=no
13196 fi
13197
13198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13199       conftest$ac_exeext conftest.$ac_ext
13200                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13201               LIBS="$LIBS $LIBICONV"
13202               cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 #include <libintl.h>
13209 extern int _nl_msg_cat_cntr;
13210 extern
13211 #ifdef __cplusplus
13212 "C"
13213 #endif
13214 const char *_nl_expand_alias (const char *);
13215 int
13216 main ()
13217 {
13218 bindtextdomain ("", "");
13219 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 rm -f conftest.$ac_objext conftest$ac_exeext
13225 if { (ac_try="$ac_link"
13226 case "(($ac_try" in
13227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13228   *) ac_try_echo=$ac_try;;
13229 esac
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231   (eval "$ac_link") 2>conftest.er1
13232   ac_status=$?
13233   grep -v '^ *+' conftest.er1 >conftest.err
13234   rm -f conftest.er1
13235   cat conftest.err >&5
13236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237   (exit $ac_status); } && {
13238          test -z "$ac_c_werror_flag" ||
13239          test ! -s conftest.err
13240        } && test -s conftest$ac_exeext &&
13241        $as_test_x conftest$ac_exeext; then
13242   LIBINTL="$LIBINTL $LIBICONV"
13243                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13244                 gt_cv_func_gnugettext1_libintl=yes
13245
13246 else
13247   echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250
13251 fi
13252
13253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13254       conftest$ac_exeext conftest.$ac_ext
13255             fi
13256             CPPFLAGS="$gt_save_CPPFLAGS"
13257             LIBS="$gt_save_LIBS"
13258 fi
13259 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13260 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13261         fi
13262
13263                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13264            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13265                 && test "$PACKAGE" != gettext-runtime \
13266                 && test "$PACKAGE" != gettext-tools; }; then
13267           gt_use_preinstalled_gnugettext=yes
13268         else
13269                     LIBINTL=
13270           LTLIBINTL=
13271           INCINTL=
13272         fi
13273
13274
13275         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13276                               nls_cv_use_gnu_gettext=yes
13277         fi
13278       fi
13279
13280       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13281                 BUILD_INCLUDED_LIBINTL=yes
13282         USE_INCLUDED_LIBINTL=yes
13283         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13284         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13285         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13286       fi
13287
13288       CATOBJEXT=
13289       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13290          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13291                 CATOBJEXT=.gmo
13292       fi
13293
13294
13295     if test -n "$INTL_MACOSX_LIBS"; then
13296       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13297          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13298                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13299         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13300       fi
13301     fi
13302
13303     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13304        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13305
13306 cat >>confdefs.h <<\_ACEOF
13307 #define ENABLE_NLS 1
13308 _ACEOF
13309
13310     else
13311       USE_NLS=no
13312     fi
13313   fi
13314
13315   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13316 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13317   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13318 echo "${ECHO_T}$USE_NLS" >&6; }
13319   if test "$USE_NLS" = "yes"; then
13320     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13321 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13322     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13323       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13324         gt_source="external libintl"
13325       else
13326         gt_source="libc"
13327       fi
13328     else
13329       gt_source="included intl directory"
13330     fi
13331     { echo "$as_me:$LINENO: result: $gt_source" >&5
13332 echo "${ECHO_T}$gt_source" >&6; }
13333   fi
13334
13335   if test "$USE_NLS" = "yes"; then
13336
13337     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13338       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13339         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13340 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13341         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13342 echo "${ECHO_T}$LIBINTL" >&6; }
13343
13344   for element in $INCINTL; do
13345     haveit=
13346     for x in $CPPFLAGS; do
13347
13348   acl_save_prefix="$prefix"
13349   prefix="$acl_final_prefix"
13350   acl_save_exec_prefix="$exec_prefix"
13351   exec_prefix="$acl_final_exec_prefix"
13352   eval x=\"$x\"
13353   exec_prefix="$acl_save_exec_prefix"
13354   prefix="$acl_save_prefix"
13355
13356       if test "X$x" = "X$element"; then
13357         haveit=yes
13358         break
13359       fi
13360     done
13361     if test -z "$haveit"; then
13362       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13363     fi
13364   done
13365
13366       fi
13367
13368
13369 cat >>confdefs.h <<\_ACEOF
13370 #define HAVE_GETTEXT 1
13371 _ACEOF
13372
13373
13374 cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_DCGETTEXT 1
13376 _ACEOF
13377
13378     fi
13379
13380         POSUB=po
13381   fi
13382
13383
13384             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13385       BUILD_INCLUDED_LIBINTL=yes
13386     fi
13387
13388
13389
13390
13391
13392         nls_cv_header_intl=
13393     nls_cv_header_libgt=
13394
13395         DATADIRNAME=share
13396
13397
13398         INSTOBJEXT=.mo
13399
13400
13401         GENCAT=gencat
13402
13403
13404         INTLOBJS=
13405     if test "$USE_INCLUDED_LIBINTL" = yes; then
13406       INTLOBJS="\$(GETTOBJS)"
13407     fi
13408
13409
13410         INTL_LIBTOOL_SUFFIX_PREFIX=
13411
13412
13413
13414     INTLLIBS="$LIBINTL"
13415
13416
13417
13418
13419
13420
13421 fi
13422
13423
13424 support_mysql=no
13425 support_sqlite=no
13426 support_sqlite3=no
13427 support_postgresql=no
13428 support_dbi=no
13429 support_smartalloc=yes
13430 support_readline=yes
13431 support_conio=yes
13432 support_gnome=no
13433 support_bat=no
13434 support_wx_console=no
13435 support_tls=no
13436 support_crypto=no
13437 gnome_version=
13438 wx_version=
13439 support_static_tools=no
13440 support_static_fd=no
13441 support_static_sd=no
13442 support_static_dir=no
13443 support_static_cons=no
13444 support_python=no
13445 build_client_only=no
13446 build_dird=yes
13447 build_stored=yes
13448 cats=
13449 db_type=Internal
13450 DB_TYPE=bdb
13451
13452
13453 # -------------------------------------------
13454 # gnome (default off)
13455 # -------------------------------------------
13456 # Check whether --enable-gnome was given.
13457 if test "${enable_gnome+set}" = set; then
13458   enableval=$enable_gnome; if test x$enableval = xyes; then
13459     support_gnome=yes
13460   fi
13461 fi
13462
13463
13464 GNOME_DIR=
13465 if test x$support_gnome = xyes; then
13466   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13467   pkg=$?
13468   if test $pkg = 0; then
13469      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13470      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13471      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13472      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13473
13474
13475
13476
13477      GNOME_DIR=src/gnome2-console
13478      gnome_version="Version 2.x"
13479   else
13480      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13481 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13482    { (exit 1); exit 1; }; }
13483   fi
13484 fi
13485
13486
13487 # -------------------------------------------
13488 # bat (default off)
13489 # -------------------------------------------
13490 # Check whether --enable-bat was given.
13491 if test "${enable_bat+set}" = set; then
13492   enableval=$enable_bat; if test x$enableval = xyes; then
13493
13494 cat >>confdefs.h <<\_ACEOF
13495 #define HAVE_BAT 1
13496 _ACEOF
13497
13498     support_bat=yes
13499   fi
13500 fi
13501
13502
13503 BAT_DIR=
13504 if test x$support_bat = xyes; then
13505   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13506   pkg=$?
13507   if test $pkg = 0; then
13508      BAT_DIR=src/qt-console
13509   else
13510      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13511 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13512    { (exit 1); exit 1; }; }
13513   fi
13514 fi
13515
13516 #
13517 #  If bat is enabled, we need the qwt library
13518 got_qwt=no
13519 QWT_INC=
13520 QWT_LDFLAGS=
13521 if test x$support_bat = xyes; then
13522    { echo "$as_me:$LINENO: checking for qwt support" >&5
13523 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13524
13525 # Check whether --with-qwt was given.
13526 if test "${with_qwt+set}" = set; then
13527   withval=$with_qwt;
13528         case "$with_qwt" in
13529         no)
13530           ;;
13531         yes|*)
13532           if test -f ${with_qwt}/include/qwt.h; then
13533              QWT_INC="${with_qwt}/include"
13534              QWT_LDFLAGS="-L${with_qwt}/lib"
13535           fi
13536           ;;
13537         esac
13538
13539
13540 fi
13541
13542 #
13543 # Search in standard places, or --with-qwt not specified
13544 #
13545    if test x$QWT_INC = x; then
13546       for root in /usr /usr/local; do
13547          for ver in qwt qwt5 qwt-qt4; do
13548             if test -f ${root}/include/${ver}/qwt.h; then
13549                QWT_INC="${root}/include/${ver}"
13550                if test -d ${root}/lib64/; then
13551                   QWT_LDFLAGS="-L${root}/lib64"
13552                else
13553                   QWT_LDFLAGS="-L${root}/lib"
13554                fi
13555                got_qwt=yes
13556                break;
13557             fi
13558          done
13559       done
13560    fi
13561    if test x$QWT_INC = x; then
13562       { echo "$as_me:$LINENO: result: no" >&5
13563 echo "${ECHO_T}no" >&6; }
13564       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13565 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13566    { (exit 1); exit 1; }; }
13567       BAT_DIR=
13568       support_bat=no
13569    else
13570       { echo "$as_me:$LINENO: result: yes" >&5
13571 echo "${ECHO_T}yes" >&6; }
13572    fi
13573 fi
13574
13575
13576
13577
13578
13579
13580 # -------------------------------------------
13581 # bwx-console (default off)
13582 # -------------------------------------------
13583 # Check whether --enable-bwx-console was given.
13584 if test "${enable_bwx_console+set}" = set; then
13585   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13586     support_wx_console=yes
13587   fi
13588 fi
13589
13590
13591 WX_DIR=
13592 if test x$support_wx_console = xyes; then
13593   abc=`$WXCONFIG $WXFLAGS --cppflags`
13594   pkg=$?
13595   if test $pkg = 0; then
13596      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13597      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13598      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13599
13600
13601
13602      WX_DIR=src/wx-console
13603   else
13604      echo " "
13605      echo "wx-config program not found. bwx-console disabled."
13606      echo " "
13607      support_wx_console=no
13608   fi
13609 fi
13610
13611
13612
13613 # -------------------------------------------
13614 # tray-monitor (default off)
13615 # -------------------------------------------
13616 # Check whether --enable-tray-monitor was given.
13617 if test "${enable_tray_monitor+set}" = set; then
13618   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13619     support_tray_monitor=yes
13620   fi
13621 fi
13622
13623
13624 TRAY_MONITOR_DIR=
13625 if test x$support_tray_monitor = xyes; then
13626   abc=`$PKGCONFIG --exists gtk+-2.0`
13627   pkg=$?
13628   if test $pkg = 0; then
13629      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13630      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13631
13632
13633      TRAY_MONITOR_DIR=src/tray-monitor
13634      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13635      pkg=$?
13636      if test $pkg = 0; then
13637
13638 cat >>confdefs.h <<\_ACEOF
13639 #define HAVE_GTK_2_4 1
13640 _ACEOF
13641
13642      fi
13643   fi
13644 fi
13645
13646
13647 # -------------------------------------------
13648 # smartalloc (default off)
13649 # -------------------------------------------
13650 # Check whether --enable-smartalloc was given.
13651 if test "${enable_smartalloc+set}" = set; then
13652   enableval=$enable_smartalloc; if test x$enableval = xno; then
13653     support_smartalloc=no
13654   fi
13655 fi
13656
13657
13658 if test x$support_smartalloc = xyes; then
13659
13660 cat >>confdefs.h <<\_ACEOF
13661 #define SMARTALLOC 1
13662 _ACEOF
13663
13664 fi
13665
13666 # -------------------------------------------
13667 # static-tools (default off)
13668 # -------------------------------------------
13669 # Check whether --enable-static-tools was given.
13670 if test "${enable_static_tools+set}" = set; then
13671   enableval=$enable_static_tools; if test x$enableval = xyes; then
13672      support_static_tools=yes
13673    fi
13674 fi
13675
13676
13677 TTOOL_LDFLAGS=
13678 if test x$support_static_tools = xyes; then
13679    TTOOL_LDFLAGS="-static"
13680 fi
13681
13682
13683 # -------------------------------------------
13684 # static-fd    (default off)
13685 # -------------------------------------------
13686 # Check whether --enable-static-fd was given.
13687 if test "${enable_static_fd+set}" = set; then
13688   enableval=$enable_static_fd; if test x$enableval = xyes; then
13689      support_static_fd=yes
13690    fi
13691 fi
13692
13693
13694 STATIC_FD=
13695 if test x$support_static_fd = xyes; then
13696    STATIC_FD="static-bacula-fd"
13697 fi
13698
13699
13700 # -------------------------------------------
13701 # static-sd    (default off)
13702 # -------------------------------------------
13703 # Check whether --enable-static-sd was given.
13704 if test "${enable_static_sd+set}" = set; then
13705   enableval=$enable_static_sd; if test x$enableval = xyes; then
13706      support_static_sd=yes
13707    fi
13708 fi
13709
13710
13711 STATIC_SD=
13712 if test x$support_static_sd = xyes; then
13713    STATIC_SD="static-bacula-sd"
13714 fi
13715
13716
13717 # -------------------------------------------
13718 # static-dir   (default off)
13719 # -------------------------------------------
13720 # Check whether --enable-static-dir was given.
13721 if test "${enable_static_dir+set}" = set; then
13722   enableval=$enable_static_dir; if test x$enableval = xyes; then
13723      support_static_dir=yes
13724    fi
13725 fi
13726
13727
13728 STATIC_DIR=
13729 if test x$support_static_dir = xyes; then
13730    STATIC_DIR="static-bacula-dir"
13731 fi
13732
13733
13734 # -------------------------------------------
13735 # static-cons  (default off)
13736 # -------------------------------------------
13737 # Check whether --enable-static-cons was given.
13738 if test "${enable_static_cons+set}" = set; then
13739   enableval=$enable_static_cons; if test x$enableval = xyes; then
13740      support_static_cons=yes
13741    fi
13742 fi
13743
13744
13745 STATIC_CONS=
13746 STATIC_GNOME_CONS=
13747 STATIC_WX_CONS=
13748 if test x$support_static_cons = xyes; then
13749    STATIC_CONS="static-bconsole"
13750    STATIC_GNOME_CONS="static-bgnome-console"
13751    STATIC_WX_CONS="static-bwx-console"
13752 fi
13753
13754
13755
13756
13757 # -------------------------------------------
13758 # client_only  (default off)
13759 # -------------------------------------------
13760 # Check whether --enable-client-only was given.
13761 if test "${enable_client_only+set}" = set; then
13762   enableval=$enable_client_only; if test x$enableval = xyes; then
13763       build_client_only=yes
13764       db_type=None
13765       DB_TYPE=none
13766    fi
13767 fi
13768
13769 if test x$build_client_only = xno; then
13770    ALL_DIRS="subdirs"
13771 else
13772    ALL_DIRS=""
13773 fi
13774
13775
13776 # -------------------------------------------
13777 # director  (default on)
13778 # -------------------------------------------
13779 # Check whether --enable-build-dird was given.
13780 if test "${enable_build_dird+set}" = set; then
13781   enableval=$enable_build_dird; if test x$enableval = xno; then
13782       build_dird=no
13783    fi
13784 fi
13785
13786 if test x$build_dird = xyes; then
13787    DIRD_DIR="src/dird"
13788    DIR_TOOLS="DIRTOOLS"
13789 else
13790    DIRD_DIR=""
13791    DIR_TOOLS="NODIRTOOLS"
13792 fi
13793
13794
13795
13796 # -------------------------------------------
13797 # stored  (default on)
13798 # -------------------------------------------
13799 # Check whether --enable-build-stored was given.
13800 if test "${enable_build_stored+set}" = set; then
13801   enableval=$enable_build_stored; if test x$enableval = xno; then
13802       build_stored=no
13803    fi
13804 fi
13805
13806 if test x$build_stored = xyes; then
13807    STORED_DIR="src/stored"
13808 else
13809    STORED_DIR=""
13810 fi
13811
13812
13813 # ---------------------------------------------------
13814 # Check for conio (Bacula readline substitute)(
13815 # ---------------------------------------------------
13816 # this allows you to turn it completely off
13817 # Check whether --enable-conio was given.
13818 if test "${enable_conio+set}" = set; then
13819   enableval=$enable_conio; if test x$enableval = xno; then
13820      support_conio=no
13821   fi
13822
13823 fi
13824
13825
13826
13827 # ---------------------------------------------------
13828 # Check for IPv6 support
13829 # ---------------------------------------------------
13830 # this allows you to turn it completely off
13831 support_ipv6=yes
13832 # Check whether --enable-ipv6 was given.
13833 if test "${enable_ipv6+set}" = set; then
13834   enableval=$enable_ipv6; if test x$enableval = xno; then
13835      support_ipv6=no
13836   fi
13837
13838 fi
13839
13840
13841 if test x$support_ipv6 = xyes; then
13842     cat >conftest.$ac_ext <<_ACEOF
13843 /* confdefs.h.  */
13844 _ACEOF
13845 cat confdefs.h >>conftest.$ac_ext
13846 cat >>conftest.$ac_ext <<_ACEOF
13847 /* end confdefs.h.  */
13848  #include <sys/types.h>
13849 #include <sys/socket.h>
13850 #include <netinet/in.h>
13851 int
13852 main ()
13853 {
13854 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13855   ;
13856   return 0;
13857 }
13858 _ACEOF
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863   *) ac_try_echo=$ac_try;;
13864 esac
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866   (eval "$ac_link") 2>conftest.er1
13867   ac_status=$?
13868   grep -v '^ *+' conftest.er1 >conftest.err
13869   rm -f conftest.er1
13870   cat conftest.err >&5
13871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872   (exit $ac_status); } && {
13873          test -z "$ac_c_werror_flag" ||
13874          test ! -s conftest.err
13875        } && test -s conftest$ac_exeext &&
13876        $as_test_x conftest$ac_exeext; then
13877   support_ipv6=yes
13878 else
13879   echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13881
13882         support_ipv6=no
13883 fi
13884
13885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13886       conftest$ac_exeext conftest.$ac_ext
13887 fi
13888
13889 if test x$support_ipv6 = xyes; then
13890
13891 cat >>confdefs.h <<\_ACEOF
13892 #define HAVE_IPV6 1
13893 _ACEOF
13894
13895 fi
13896
13897
13898
13899 got_conio="no"
13900 if test x$support_conio = xyes; then
13901    if test "${ac_cv_header_termcap_h+set}" = set; then
13902   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13903 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13904 if test "${ac_cv_header_termcap_h+set}" = set; then
13905   echo $ECHO_N "(cached) $ECHO_C" >&6
13906 fi
13907 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13908 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13909 else
13910   # Is the header compilable?
13911 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13912 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13913 cat >conftest.$ac_ext <<_ACEOF
13914 /* confdefs.h.  */
13915 _ACEOF
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h.  */
13919 $ac_includes_default
13920 #include <termcap.h>
13921 _ACEOF
13922 rm -f conftest.$ac_objext
13923 if { (ac_try="$ac_compile"
13924 case "(($ac_try" in
13925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926   *) ac_try_echo=$ac_try;;
13927 esac
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929   (eval "$ac_compile") 2>conftest.er1
13930   ac_status=$?
13931   grep -v '^ *+' conftest.er1 >conftest.err
13932   rm -f conftest.er1
13933   cat conftest.err >&5
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); } && {
13936          test -z "$ac_c_werror_flag" ||
13937          test ! -s conftest.err
13938        } && test -s conftest.$ac_objext; then
13939   ac_header_compiler=yes
13940 else
13941   echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13943
13944         ac_header_compiler=no
13945 fi
13946
13947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13949 echo "${ECHO_T}$ac_header_compiler" >&6; }
13950
13951 # Is the header present?
13952 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13953 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13954 cat >conftest.$ac_ext <<_ACEOF
13955 /* confdefs.h.  */
13956 _ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h.  */
13960 #include <termcap.h>
13961 _ACEOF
13962 if { (ac_try="$ac_cpp conftest.$ac_ext"
13963 case "(($ac_try" in
13964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13965   *) ac_try_echo=$ac_try;;
13966 esac
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13969   ac_status=$?
13970   grep -v '^ *+' conftest.er1 >conftest.err
13971   rm -f conftest.er1
13972   cat conftest.err >&5
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); } >/dev/null && {
13975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13976          test ! -s conftest.err
13977        }; then
13978   ac_header_preproc=yes
13979 else
13980   echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983   ac_header_preproc=no
13984 fi
13985
13986 rm -f conftest.err conftest.$ac_ext
13987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13988 echo "${ECHO_T}$ac_header_preproc" >&6; }
13989
13990 # So?  What about this header?
13991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13992   yes:no: )
13993     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13994 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13995     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13996 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13997     ac_header_preproc=yes
13998     ;;
13999   no:yes:* )
14000     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14001 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14002     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14003 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14004     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14005 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14006     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14007 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14008     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14009 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14010     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14011 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14012
14013     ;;
14014 esac
14015 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14016 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14017 if test "${ac_cv_header_termcap_h+set}" = set; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 else
14020   ac_cv_header_termcap_h=$ac_header_preproc
14021 fi
14022 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14023 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14024
14025 fi
14026 if test $ac_cv_header_termcap_h = yes; then
14027    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14028 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14029 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14030   echo $ECHO_N "(cached) $ECHO_C" >&6
14031 else
14032   ac_check_lib_save_LIBS=$LIBS
14033 LIBS="-ltermcap  $LIBS"
14034 cat >conftest.$ac_ext <<_ACEOF
14035 /* confdefs.h.  */
14036 _ACEOF
14037 cat confdefs.h >>conftest.$ac_ext
14038 cat >>conftest.$ac_ext <<_ACEOF
14039 /* end confdefs.h.  */
14040
14041 /* Override any GCC internal prototype to avoid an error.
14042    Use char because int might match the return type of a GCC
14043    builtin and then its argument prototype would still apply.  */
14044 #ifdef __cplusplus
14045 extern "C"
14046 #endif
14047 char tgetent ();
14048 int
14049 main ()
14050 {
14051 return tgetent ();
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (ac_try="$ac_link"
14058 case "(($ac_try" in
14059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060   *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063   (eval "$ac_link") 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } && {
14070          test -z "$ac_c_werror_flag" ||
14071          test ! -s conftest.err
14072        } && test -s conftest$ac_exeext &&
14073        $as_test_x conftest$ac_exeext; then
14074   ac_cv_lib_termcap_tgetent=yes
14075 else
14076   echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14078
14079         ac_cv_lib_termcap_tgetent=no
14080 fi
14081
14082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14083       conftest$ac_exeext conftest.$ac_ext
14084 LIBS=$ac_check_lib_save_LIBS
14085 fi
14086 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14087 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14088 if test $ac_cv_lib_termcap_tgetent = yes; then
14089    CONS_LIBS="-ltermcap"
14090          CONS_OBJ="conio.o"
14091          CONS_SRC="conio.c"
14092          got_conio="yes"
14093          support_readline=no
14094
14095 cat >>confdefs.h <<\_ACEOF
14096 #define HAVE_CONIO 1
14097 _ACEOF
14098
14099
14100 else
14101    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14102 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14103 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14104   echo $ECHO_N "(cached) $ECHO_C" >&6
14105 else
14106   ac_check_lib_save_LIBS=$LIBS
14107 LIBS="-lncurses  $LIBS"
14108 cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h.  */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h.  */
14114
14115 /* Override any GCC internal prototype to avoid an error.
14116    Use char because int might match the return type of a GCC
14117    builtin and then its argument prototype would still apply.  */
14118 #ifdef __cplusplus
14119 extern "C"
14120 #endif
14121 char tgetent ();
14122 int
14123 main ()
14124 {
14125 return tgetent ();
14126   ;
14127   return 0;
14128 }
14129 _ACEOF
14130 rm -f conftest.$ac_objext conftest$ac_exeext
14131 if { (ac_try="$ac_link"
14132 case "(($ac_try" in
14133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14134   *) ac_try_echo=$ac_try;;
14135 esac
14136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14137   (eval "$ac_link") 2>conftest.er1
14138   ac_status=$?
14139   grep -v '^ *+' conftest.er1 >conftest.err
14140   rm -f conftest.er1
14141   cat conftest.err >&5
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } && {
14144          test -z "$ac_c_werror_flag" ||
14145          test ! -s conftest.err
14146        } && test -s conftest$ac_exeext &&
14147        $as_test_x conftest$ac_exeext; then
14148   ac_cv_lib_ncurses_tgetent=yes
14149 else
14150   echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14152
14153         ac_cv_lib_ncurses_tgetent=no
14154 fi
14155
14156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14157       conftest$ac_exeext conftest.$ac_ext
14158 LIBS=$ac_check_lib_save_LIBS
14159 fi
14160 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14161 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14162 if test $ac_cv_lib_ncurses_tgetent = yes; then
14163    CONS_LIBS="-lncurses"
14164            CONS_OBJ="conio.o"
14165            CONS_SRC="conio.c"
14166            got_conio="yes"
14167            support_readline=no
14168
14169 cat >>confdefs.h <<\_ACEOF
14170 #define HAVE_CONIO 1
14171 _ACEOF
14172
14173
14174 fi
14175
14176
14177 fi
14178
14179
14180 else
14181
14182
14183 for ac_header in curses.h
14184 do
14185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14187   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14190   echo $ECHO_N "(cached) $ECHO_C" >&6
14191 fi
14192 ac_res=`eval echo '${'$as_ac_Header'}'`
14193                { echo "$as_me:$LINENO: result: $ac_res" >&5
14194 echo "${ECHO_T}$ac_res" >&6; }
14195 else
14196   # Is the header compilable?
14197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14199 cat >conftest.$ac_ext <<_ACEOF
14200 /* confdefs.h.  */
14201 _ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h.  */
14205 $ac_includes_default
14206 #include <$ac_header>
14207 _ACEOF
14208 rm -f conftest.$ac_objext
14209 if { (ac_try="$ac_compile"
14210 case "(($ac_try" in
14211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212   *) ac_try_echo=$ac_try;;
14213 esac
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215   (eval "$ac_compile") 2>conftest.er1
14216   ac_status=$?
14217   grep -v '^ *+' conftest.er1 >conftest.err
14218   rm -f conftest.er1
14219   cat conftest.err >&5
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); } && {
14222          test -z "$ac_c_werror_flag" ||
14223          test ! -s conftest.err
14224        } && test -s conftest.$ac_objext; then
14225   ac_header_compiler=yes
14226 else
14227   echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.$ac_ext >&5
14229
14230         ac_header_compiler=no
14231 fi
14232
14233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14235 echo "${ECHO_T}$ac_header_compiler" >&6; }
14236
14237 # Is the header present?
14238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 #include <$ac_header>
14247 _ACEOF
14248 if { (ac_try="$ac_cpp conftest.$ac_ext"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } >/dev/null && {
14261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14262          test ! -s conftest.err
14263        }; then
14264   ac_header_preproc=yes
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269   ac_header_preproc=no
14270 fi
14271
14272 rm -f conftest.err conftest.$ac_ext
14273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14274 echo "${ECHO_T}$ac_header_preproc" >&6; }
14275
14276 # So?  What about this header?
14277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14278   yes:no: )
14279     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14283     ac_header_preproc=yes
14284     ;;
14285   no:yes:* )
14286     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14288     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14289 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14290     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14292     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14293 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14294     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14296     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14298
14299     ;;
14300 esac
14301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14304   echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306   eval "$as_ac_Header=\$ac_header_preproc"
14307 fi
14308 ac_res=`eval echo '${'$as_ac_Header'}'`
14309                { echo "$as_me:$LINENO: result: $ac_res" >&5
14310 echo "${ECHO_T}$ac_res" >&6; }
14311
14312 fi
14313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14314   cat >>confdefs.h <<_ACEOF
14315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14316 _ACEOF
14317
14318 fi
14319
14320 done
14321
14322          { echo "$as_me:$LINENO: checking for term.h" >&5
14323 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14324 if test "${ac_cv_header_term_h+set}" = set; then
14325   echo $ECHO_N "(cached) $ECHO_C" >&6
14326 else
14327   cat >conftest.$ac_ext <<_ACEOF
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333 #if HAVE_CURSES_H
14334 #include <curses.h>
14335 #endif
14336
14337
14338 #include <term.h>
14339 _ACEOF
14340 rm -f conftest.$ac_objext
14341 if { (ac_try="$ac_compile"
14342 case "(($ac_try" in
14343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344   *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347   (eval "$ac_compile") 2>conftest.er1
14348   ac_status=$?
14349   grep -v '^ *+' conftest.er1 >conftest.err
14350   rm -f conftest.er1
14351   cat conftest.err >&5
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); } && {
14354          test -z "$ac_c_werror_flag" ||
14355          test ! -s conftest.err
14356        } && test -s conftest.$ac_objext; then
14357   ac_cv_header_term_h=yes
14358 else
14359   echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14361
14362         ac_cv_header_term_h=no
14363 fi
14364
14365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14366 fi
14367 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14368 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14369 if test $ac_cv_header_term_h = yes; then
14370    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14371 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14372 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lcurses  $LIBS"
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h.  */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h.  */
14383
14384 /* Override any GCC internal prototype to avoid an error.
14385    Use char because int might match the return type of a GCC
14386    builtin and then its argument prototype would still apply.  */
14387 #ifdef __cplusplus
14388 extern "C"
14389 #endif
14390 char tgetent ();
14391 int
14392 main ()
14393 {
14394 return tgetent ();
14395   ;
14396   return 0;
14397 }
14398 _ACEOF
14399 rm -f conftest.$ac_objext conftest$ac_exeext
14400 if { (ac_try="$ac_link"
14401 case "(($ac_try" in
14402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14403   *) ac_try_echo=$ac_try;;
14404 esac
14405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14406   (eval "$ac_link") 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } && {
14413          test -z "$ac_c_werror_flag" ||
14414          test ! -s conftest.err
14415        } && test -s conftest$ac_exeext &&
14416        $as_test_x conftest$ac_exeext; then
14417   ac_cv_lib_curses_tgetent=yes
14418 else
14419   echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14421
14422         ac_cv_lib_curses_tgetent=no
14423 fi
14424
14425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14426       conftest$ac_exeext conftest.$ac_ext
14427 LIBS=$ac_check_lib_save_LIBS
14428 fi
14429 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14430 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14431 if test $ac_cv_lib_curses_tgetent = yes; then
14432    CONS_LIBS="-lcurses"
14433                    CONS_OBJ="conio.o"
14434                    CONS_SRC="conio.c"
14435                    got_conio="yes"
14436                    support_readline=no
14437
14438 cat >>confdefs.h <<\_ACEOF
14439 #define HAVE_CONIO 1
14440 _ACEOF
14441
14442
14443 fi
14444
14445
14446 else
14447    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14448 fi
14449
14450
14451
14452 fi
14453
14454
14455 fi
14456
14457
14458 # ---------------------------------------------------
14459 # Check for readline support/directory (default off)
14460 # ---------------------------------------------------
14461 # this allows you to turn it completely off
14462 # Check whether --enable-readline was given.
14463 if test "${enable_readline+set}" = set; then
14464   enableval=$enable_readline; if test x$enableval = xno; then
14465     support_readline=no
14466   fi
14467 fi
14468
14469
14470 got_readline="no"
14471 READLINE_SRC=
14472 if test x$support_readline = xyes; then
14473
14474 # Check whether --with-readline was given.
14475 if test "${with_readline+set}" = set; then
14476   withval=$with_readline;
14477         case "$with_readline" in
14478         no) : ;;
14479         yes|*)
14480           if test -f ${with_readline}/readline.h; then
14481              CONS_INC="-I${with_readline}"
14482              CONS_LDFLAGS="-L$with_readline"
14483           elif test -f ${with_readline}/include/readline/readline.h; then
14484              CONS_INC="-I${with_readline}/include/readline"
14485              CONS_LDFLAGS="-L${with_readline}/lib"
14486              with_readline="${with_readline}/include/readline"
14487           else
14488              with_readline="/usr/include/readline"
14489           fi
14490           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14493 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14495   echo $ECHO_N "(cached) $ECHO_C" >&6
14496 fi
14497 ac_res=`eval echo '${'$as_ac_Header'}'`
14498                { echo "$as_me:$LINENO: result: $ac_res" >&5
14499 echo "${ECHO_T}$ac_res" >&6; }
14500 else
14501   # Is the header compilable?
14502 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14503 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14504 cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 $ac_includes_default
14511 #include <${with_readline}/readline.h>
14512 _ACEOF
14513 rm -f conftest.$ac_objext
14514 if { (ac_try="$ac_compile"
14515 case "(($ac_try" in
14516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517   *) ac_try_echo=$ac_try;;
14518 esac
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520   (eval "$ac_compile") 2>conftest.er1
14521   ac_status=$?
14522   grep -v '^ *+' conftest.er1 >conftest.err
14523   rm -f conftest.er1
14524   cat conftest.err >&5
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); } && {
14527          test -z "$ac_c_werror_flag" ||
14528          test ! -s conftest.err
14529        } && test -s conftest.$ac_objext; then
14530   ac_header_compiler=yes
14531 else
14532   echo "$as_me: failed program was:" >&5
14533 sed 's/^/| /' conftest.$ac_ext >&5
14534
14535         ac_header_compiler=no
14536 fi
14537
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14540 echo "${ECHO_T}$ac_header_compiler" >&6; }
14541
14542 # Is the header present?
14543 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14544 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h.  */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h.  */
14551 #include <${with_readline}/readline.h>
14552 _ACEOF
14553 if { (ac_try="$ac_cpp conftest.$ac_ext"
14554 case "(($ac_try" in
14555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556   *) ac_try_echo=$ac_try;;
14557 esac
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14560   ac_status=$?
14561   grep -v '^ *+' conftest.er1 >conftest.err
14562   rm -f conftest.er1
14563   cat conftest.err >&5
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); } >/dev/null && {
14566          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14567          test ! -s conftest.err
14568        }; then
14569   ac_header_preproc=yes
14570 else
14571   echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574   ac_header_preproc=no
14575 fi
14576
14577 rm -f conftest.err conftest.$ac_ext
14578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14579 echo "${ECHO_T}$ac_header_preproc" >&6; }
14580
14581 # So?  What about this header?
14582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14583   yes:no: )
14584     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14585 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14586     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14587 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14588     ac_header_preproc=yes
14589     ;;
14590   no:yes:* )
14591     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14593     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14594 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14595     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14596 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14597     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14598 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14599     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14600 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14601     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14602 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14603
14604     ;;
14605 esac
14606 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14607 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14609   echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611   eval "$as_ac_Header=\$ac_header_preproc"
14612 fi
14613 ac_res=`eval echo '${'$as_ac_Header'}'`
14614                { echo "$as_me:$LINENO: result: $ac_res" >&5
14615 echo "${ECHO_T}$ac_res" >&6; }
14616
14617 fi
14618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14619
14620 cat >>confdefs.h <<\_ACEOF
14621 #define HAVE_READLINE 1
14622 _ACEOF
14623
14624                CONS_LIBS="-lreadline -lhistory -ltermcap"
14625                got_readline="yes"
14626
14627 else
14628    echo " "
14629                echo "readline.h not found. readline turned off ..."
14630                echo " "
14631
14632
14633 fi
14634
14635
14636           ;;
14637         esac
14638
14639 else
14640
14641        # check for standard readline library
14642        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14643   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14644 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14645 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14646   echo $ECHO_N "(cached) $ECHO_C" >&6
14647 fi
14648 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14649 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14650 else
14651   # Is the header compilable?
14652 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14653 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14654 cat >conftest.$ac_ext <<_ACEOF
14655 /* confdefs.h.  */
14656 _ACEOF
14657 cat confdefs.h >>conftest.$ac_ext
14658 cat >>conftest.$ac_ext <<_ACEOF
14659 /* end confdefs.h.  */
14660 $ac_includes_default
14661 #include </usr/include/readline/readline.h>
14662 _ACEOF
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667   *) ac_try_echo=$ac_try;;
14668 esac
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670   (eval "$ac_compile") 2>conftest.er1
14671   ac_status=$?
14672   grep -v '^ *+' conftest.er1 >conftest.err
14673   rm -f conftest.er1
14674   cat conftest.err >&5
14675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); } && {
14677          test -z "$ac_c_werror_flag" ||
14678          test ! -s conftest.err
14679        } && test -s conftest.$ac_objext; then
14680   ac_header_compiler=yes
14681 else
14682   echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14684
14685         ac_header_compiler=no
14686 fi
14687
14688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14690 echo "${ECHO_T}$ac_header_compiler" >&6; }
14691
14692 # Is the header present?
14693 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14694 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14695 cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h.  */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h.  */
14701 #include </usr/include/readline/readline.h>
14702 _ACEOF
14703 if { (ac_try="$ac_cpp conftest.$ac_ext"
14704 case "(($ac_try" in
14705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14706   *) ac_try_echo=$ac_try;;
14707 esac
14708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14710   ac_status=$?
14711   grep -v '^ *+' conftest.er1 >conftest.err
14712   rm -f conftest.er1
14713   cat conftest.err >&5
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); } >/dev/null && {
14716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14717          test ! -s conftest.err
14718        }; then
14719   ac_header_preproc=yes
14720 else
14721   echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14723
14724   ac_header_preproc=no
14725 fi
14726
14727 rm -f conftest.err conftest.$ac_ext
14728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14729 echo "${ECHO_T}$ac_header_preproc" >&6; }
14730
14731 # So?  What about this header?
14732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14733   yes:no: )
14734     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14735 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14736     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14737 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14738     ac_header_preproc=yes
14739     ;;
14740   no:yes:* )
14741     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14743     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14744 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14745     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14746 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14747     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14748 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14749     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14750 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14751     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14752 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14753
14754     ;;
14755 esac
14756 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14757 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14758 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14759   echo $ECHO_N "(cached) $ECHO_C" >&6
14760 else
14761   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14762 fi
14763 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14764 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14765
14766 fi
14767 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14768
14769 cat >>confdefs.h <<\_ACEOF
14770 #define HAVE_READLINE 1
14771 _ACEOF
14772
14773            got_readline="yes"
14774            CONS_INC="-I/usr/include/readline"
14775            CONS_LIBS="-lreadline -ltermcap"
14776
14777 else
14778
14779            # Did not find standard library, so try Bacula's default
14780             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14782   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14783 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14785   echo $ECHO_N "(cached) $ECHO_C" >&6
14786 fi
14787 ac_res=`eval echo '${'$as_ac_Header'}'`
14788                { echo "$as_me:$LINENO: result: $ac_res" >&5
14789 echo "${ECHO_T}$ac_res" >&6; }
14790 else
14791   # Is the header compilable?
14792 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14793 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14794 cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800 $ac_includes_default
14801 #include <${TOP_DIR}/depkgs/readline/readline.h>
14802 _ACEOF
14803 rm -f conftest.$ac_objext
14804 if { (ac_try="$ac_compile"
14805 case "(($ac_try" in
14806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14807   *) ac_try_echo=$ac_try;;
14808 esac
14809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14810   (eval "$ac_compile") 2>conftest.er1
14811   ac_status=$?
14812   grep -v '^ *+' conftest.er1 >conftest.err
14813   rm -f conftest.er1
14814   cat conftest.err >&5
14815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816   (exit $ac_status); } && {
14817          test -z "$ac_c_werror_flag" ||
14818          test ! -s conftest.err
14819        } && test -s conftest.$ac_objext; then
14820   ac_header_compiler=yes
14821 else
14822   echo "$as_me: failed program was:" >&5
14823 sed 's/^/| /' conftest.$ac_ext >&5
14824
14825         ac_header_compiler=no
14826 fi
14827
14828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14830 echo "${ECHO_T}$ac_header_compiler" >&6; }
14831
14832 # Is the header present?
14833 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14834 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14835 cat >conftest.$ac_ext <<_ACEOF
14836 /* confdefs.h.  */
14837 _ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h.  */
14841 #include <${TOP_DIR}/depkgs/readline/readline.h>
14842 _ACEOF
14843 if { (ac_try="$ac_cpp conftest.$ac_ext"
14844 case "(($ac_try" in
14845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14846   *) ac_try_echo=$ac_try;;
14847 esac
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14850   ac_status=$?
14851   grep -v '^ *+' conftest.er1 >conftest.err
14852   rm -f conftest.er1
14853   cat conftest.err >&5
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } >/dev/null && {
14856          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14857          test ! -s conftest.err
14858        }; then
14859   ac_header_preproc=yes
14860 else
14861   echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.$ac_ext >&5
14863
14864   ac_header_preproc=no
14865 fi
14866
14867 rm -f conftest.err conftest.$ac_ext
14868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14869 echo "${ECHO_T}$ac_header_preproc" >&6; }
14870
14871 # So?  What about this header?
14872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14873   yes:no: )
14874     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14875 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14876     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14877 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14878     ac_header_preproc=yes
14879     ;;
14880   no:yes:* )
14881     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14883     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14884 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14885     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14886 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14887     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14888 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14889     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14890 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14891     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14892 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14893
14894     ;;
14895 esac
14896 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14897 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14899   echo $ECHO_N "(cached) $ECHO_C" >&6
14900 else
14901   eval "$as_ac_Header=\$ac_header_preproc"
14902 fi
14903 ac_res=`eval echo '${'$as_ac_Header'}'`
14904                { echo "$as_me:$LINENO: result: $ac_res" >&5
14905 echo "${ECHO_T}$ac_res" >&6; }
14906
14907 fi
14908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14909
14910 cat >>confdefs.h <<\_ACEOF
14911 #define HAVE_READLINE 1
14912 _ACEOF
14913
14914                  got_readline="yes"
14915                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14916                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14917                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14918                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14919
14920 else
14921    echo " "
14922                 echo "readline.h not found. readline turned off ..."
14923                 echo " "
14924
14925
14926 fi
14927
14928
14929
14930
14931 fi
14932
14933
14934
14935
14936 fi
14937
14938 fi
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949 # Minimal stuff for readline Makefile configuration
14950 MAKE_SHELL=/bin/sh
14951
14952 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14953 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14954 if test "${ac_cv_header_stat_broken+set}" = set; then
14955   echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957   cat >conftest.$ac_ext <<_ACEOF
14958 /* confdefs.h.  */
14959 _ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h.  */
14963 #include <sys/types.h>
14964 #include <sys/stat.h>
14965
14966 #if defined S_ISBLK && defined S_IFDIR
14967 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14968 #endif
14969
14970 #if defined S_ISBLK && defined S_IFCHR
14971 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14972 #endif
14973
14974 #if defined S_ISLNK && defined S_IFREG
14975 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14976 #endif
14977
14978 #if defined S_ISSOCK && defined S_IFREG
14979 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14980 #endif
14981
14982 _ACEOF
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990   (eval "$ac_compile") 2>conftest.er1
14991   ac_status=$?
14992   grep -v '^ *+' conftest.er1 >conftest.err
14993   rm -f conftest.er1
14994   cat conftest.err >&5
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } && {
14997          test -z "$ac_c_werror_flag" ||
14998          test ! -s conftest.err
14999        } && test -s conftest.$ac_objext; then
15000   ac_cv_header_stat_broken=no
15001 else
15002   echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005         ac_cv_header_stat_broken=yes
15006 fi
15007
15008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15009 fi
15010 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15011 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15012 if test $ac_cv_header_stat_broken = yes; then
15013
15014 cat >>confdefs.h <<\_ACEOF
15015 #define STAT_MACROS_BROKEN 1
15016 _ACEOF
15017
15018 fi
15019
15020
15021
15022
15023
15024
15025 ac_header_dirent=no
15026 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15027   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15028 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15029 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031   echo $ECHO_N "(cached) $ECHO_C" >&6
15032 else
15033   cat >conftest.$ac_ext <<_ACEOF
15034 /* confdefs.h.  */
15035 _ACEOF
15036 cat confdefs.h >>conftest.$ac_ext
15037 cat >>conftest.$ac_ext <<_ACEOF
15038 /* end confdefs.h.  */
15039 #include <sys/types.h>
15040 #include <$ac_hdr>
15041
15042 int
15043 main ()
15044 {
15045 if ((DIR *) 0)
15046 return 0;
15047   ;
15048   return 0;
15049 }
15050 _ACEOF
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055   *) ac_try_echo=$ac_try;;
15056 esac
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058   (eval "$ac_compile") 2>conftest.er1
15059   ac_status=$?
15060   grep -v '^ *+' conftest.er1 >conftest.err
15061   rm -f conftest.er1
15062   cat conftest.err >&5
15063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064   (exit $ac_status); } && {
15065          test -z "$ac_c_werror_flag" ||
15066          test ! -s conftest.err
15067        } && test -s conftest.$ac_objext; then
15068   eval "$as_ac_Header=yes"
15069 else
15070   echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15072
15073         eval "$as_ac_Header=no"
15074 fi
15075
15076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077 fi
15078 ac_res=`eval echo '${'$as_ac_Header'}'`
15079                { echo "$as_me:$LINENO: result: $ac_res" >&5
15080 echo "${ECHO_T}$ac_res" >&6; }
15081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15082   cat >>confdefs.h <<_ACEOF
15083 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15084 _ACEOF
15085
15086 ac_header_dirent=$ac_hdr; break
15087 fi
15088
15089 done
15090 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15091 if test $ac_header_dirent = dirent.h; then
15092   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15093 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15094 if test "${ac_cv_search_opendir+set}" = set; then
15095   echo $ECHO_N "(cached) $ECHO_C" >&6
15096 else
15097   ac_func_search_save_LIBS=$LIBS
15098 cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104
15105 /* Override any GCC internal prototype to avoid an error.
15106    Use char because int might match the return type of a GCC
15107    builtin and then its argument prototype would still apply.  */
15108 #ifdef __cplusplus
15109 extern "C"
15110 #endif
15111 char opendir ();
15112 int
15113 main ()
15114 {
15115 return opendir ();
15116   ;
15117   return 0;
15118 }
15119 _ACEOF
15120 for ac_lib in '' dir; do
15121   if test -z "$ac_lib"; then
15122     ac_res="none required"
15123   else
15124     ac_res=-l$ac_lib
15125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15126   fi
15127   rm -f conftest.$ac_objext conftest$ac_exeext
15128 if { (ac_try="$ac_link"
15129 case "(($ac_try" in
15130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15131   *) ac_try_echo=$ac_try;;
15132 esac
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134   (eval "$ac_link") 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } && {
15141          test -z "$ac_c_werror_flag" ||
15142          test ! -s conftest.err
15143        } && test -s conftest$ac_exeext &&
15144        $as_test_x conftest$ac_exeext; then
15145   ac_cv_search_opendir=$ac_res
15146 else
15147   echo "$as_me: failed program was:" >&5
15148 sed 's/^/| /' conftest.$ac_ext >&5
15149
15150
15151 fi
15152
15153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15154       conftest$ac_exeext
15155   if test "${ac_cv_search_opendir+set}" = set; then
15156   break
15157 fi
15158 done
15159 if test "${ac_cv_search_opendir+set}" = set; then
15160   :
15161 else
15162   ac_cv_search_opendir=no
15163 fi
15164 rm conftest.$ac_ext
15165 LIBS=$ac_func_search_save_LIBS
15166 fi
15167 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15168 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15169 ac_res=$ac_cv_search_opendir
15170 if test "$ac_res" != no; then
15171   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15172
15173 fi
15174
15175 else
15176   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15177 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15178 if test "${ac_cv_search_opendir+set}" = set; then
15179   echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181   ac_func_search_save_LIBS=$LIBS
15182 cat >conftest.$ac_ext <<_ACEOF
15183 /* confdefs.h.  */
15184 _ACEOF
15185 cat confdefs.h >>conftest.$ac_ext
15186 cat >>conftest.$ac_ext <<_ACEOF
15187 /* end confdefs.h.  */
15188
15189 /* Override any GCC internal prototype to avoid an error.
15190    Use char because int might match the return type of a GCC
15191    builtin and then its argument prototype would still apply.  */
15192 #ifdef __cplusplus
15193 extern "C"
15194 #endif
15195 char opendir ();
15196 int
15197 main ()
15198 {
15199 return opendir ();
15200   ;
15201   return 0;
15202 }
15203 _ACEOF
15204 for ac_lib in '' x; do
15205   if test -z "$ac_lib"; then
15206     ac_res="none required"
15207   else
15208     ac_res=-l$ac_lib
15209     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15210   fi
15211   rm -f conftest.$ac_objext conftest$ac_exeext
15212 if { (ac_try="$ac_link"
15213 case "(($ac_try" in
15214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215   *) ac_try_echo=$ac_try;;
15216 esac
15217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15218   (eval "$ac_link") 2>conftest.er1
15219   ac_status=$?
15220   grep -v '^ *+' conftest.er1 >conftest.err
15221   rm -f conftest.er1
15222   cat conftest.err >&5
15223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224   (exit $ac_status); } && {
15225          test -z "$ac_c_werror_flag" ||
15226          test ! -s conftest.err
15227        } && test -s conftest$ac_exeext &&
15228        $as_test_x conftest$ac_exeext; then
15229   ac_cv_search_opendir=$ac_res
15230 else
15231   echo "$as_me: failed program was:" >&5
15232 sed 's/^/| /' conftest.$ac_ext >&5
15233
15234
15235 fi
15236
15237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15238       conftest$ac_exeext
15239   if test "${ac_cv_search_opendir+set}" = set; then
15240   break
15241 fi
15242 done
15243 if test "${ac_cv_search_opendir+set}" = set; then
15244   :
15245 else
15246   ac_cv_search_opendir=no
15247 fi
15248 rm conftest.$ac_ext
15249 LIBS=$ac_func_search_save_LIBS
15250 fi
15251 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15252 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15253 ac_res=$ac_cv_search_opendir
15254 if test "$ac_res" != no; then
15255   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15256
15257 fi
15258
15259 fi
15260
15261
15262
15263
15264
15265
15266
15267
15268 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15269 do
15270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h.  */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h.  */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15284 #define $ac_func innocuous_$ac_func
15285
15286 /* System header to define __stub macros and hopefully few prototypes,
15287     which can conflict with char $ac_func (); below.
15288     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289     <limits.h> exists even on freestanding compilers.  */
15290
15291 #ifdef __STDC__
15292 # include <limits.h>
15293 #else
15294 # include <assert.h>
15295 #endif
15296
15297 #undef $ac_func
15298
15299 /* Override any GCC internal prototype to avoid an error.
15300    Use char because int might match the return type of a GCC
15301    builtin and then its argument prototype would still apply.  */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 char $ac_func ();
15306 /* The GNU C library defines this for functions which it implements
15307     to always fail with ENOSYS.  Some functions are actually named
15308     something starting with __ and the normal name is an alias.  */
15309 #if defined __stub_$ac_func || defined __stub___$ac_func
15310 choke me
15311 #endif
15312
15313 int
15314 main ()
15315 {
15316 return $ac_func ();
15317   ;
15318   return 0;
15319 }
15320 _ACEOF
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (ac_try="$ac_link"
15323 case "(($ac_try" in
15324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325   *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328   (eval "$ac_link") 2>conftest.er1
15329   ac_status=$?
15330   grep -v '^ *+' conftest.er1 >conftest.err
15331   rm -f conftest.er1
15332   cat conftest.err >&5
15333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334   (exit $ac_status); } && {
15335          test -z "$ac_c_werror_flag" ||
15336          test ! -s conftest.err
15337        } && test -s conftest$ac_exeext &&
15338        $as_test_x conftest$ac_exeext; then
15339   eval "$as_ac_var=yes"
15340 else
15341   echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15343
15344         eval "$as_ac_var=no"
15345 fi
15346
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348       conftest$ac_exeext conftest.$ac_ext
15349 fi
15350 ac_res=`eval echo '${'$as_ac_var'}'`
15351                { echo "$as_me:$LINENO: result: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15354   cat >>confdefs.h <<_ACEOF
15355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15356 _ACEOF
15357
15358 fi
15359 done
15360
15361
15362
15363 for ac_func in nanosleep nl_langinfo
15364 do
15365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15369   echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371   cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h.  */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h.  */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15379 #define $ac_func innocuous_$ac_func
15380
15381 /* System header to define __stub macros and hopefully few prototypes,
15382     which can conflict with char $ac_func (); below.
15383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384     <limits.h> exists even on freestanding compilers.  */
15385
15386 #ifdef __STDC__
15387 # include <limits.h>
15388 #else
15389 # include <assert.h>
15390 #endif
15391
15392 #undef $ac_func
15393
15394 /* Override any GCC internal prototype to avoid an error.
15395    Use char because int might match the return type of a GCC
15396    builtin and then its argument prototype would still apply.  */
15397 #ifdef __cplusplus
15398 extern "C"
15399 #endif
15400 char $ac_func ();
15401 /* The GNU C library defines this for functions which it implements
15402     to always fail with ENOSYS.  Some functions are actually named
15403     something starting with __ and the normal name is an alias.  */
15404 #if defined __stub_$ac_func || defined __stub___$ac_func
15405 choke me
15406 #endif
15407
15408 int
15409 main ()
15410 {
15411 return $ac_func ();
15412   ;
15413   return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (ac_try="$ac_link"
15418 case "(($ac_try" in
15419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420   *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423   (eval "$ac_link") 2>conftest.er1
15424   ac_status=$?
15425   grep -v '^ *+' conftest.er1 >conftest.err
15426   rm -f conftest.er1
15427   cat conftest.err >&5
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); } && {
15430          test -z "$ac_c_werror_flag" ||
15431          test ! -s conftest.err
15432        } && test -s conftest$ac_exeext &&
15433        $as_test_x conftest$ac_exeext; then
15434   eval "$as_ac_var=yes"
15435 else
15436   echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439         eval "$as_ac_var=no"
15440 fi
15441
15442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15443       conftest$ac_exeext conftest.$ac_ext
15444 fi
15445 ac_res=`eval echo '${'$as_ac_var'}'`
15446                { echo "$as_me:$LINENO: result: $ac_res" >&5
15447 echo "${ECHO_T}$ac_res" >&6; }
15448 if test `eval echo '${'$as_ac_var'}'` = yes; then
15449   cat >>confdefs.h <<_ACEOF
15450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15451 _ACEOF
15452
15453 fi
15454 done
15455
15456
15457 for ac_header in varargs.h
15458 do
15459 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15464   echo $ECHO_N "(cached) $ECHO_C" >&6
15465 fi
15466 ac_res=`eval echo '${'$as_ac_Header'}'`
15467                { echo "$as_me:$LINENO: result: $ac_res" >&5
15468 echo "${ECHO_T}$ac_res" >&6; }
15469 else
15470   # Is the header compilable?
15471 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15473 cat >conftest.$ac_ext <<_ACEOF
15474 /* confdefs.h.  */
15475 _ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h.  */
15479 $ac_includes_default
15480 #include <$ac_header>
15481 _ACEOF
15482 rm -f conftest.$ac_objext
15483 if { (ac_try="$ac_compile"
15484 case "(($ac_try" in
15485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15486   *) ac_try_echo=$ac_try;;
15487 esac
15488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15489   (eval "$ac_compile") 2>conftest.er1
15490   ac_status=$?
15491   grep -v '^ *+' conftest.er1 >conftest.err
15492   rm -f conftest.er1
15493   cat conftest.err >&5
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); } && {
15496          test -z "$ac_c_werror_flag" ||
15497          test ! -s conftest.err
15498        } && test -s conftest.$ac_objext; then
15499   ac_header_compiler=yes
15500 else
15501   echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15503
15504         ac_header_compiler=no
15505 fi
15506
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509 echo "${ECHO_T}$ac_header_compiler" >&6; }
15510
15511 # Is the header present?
15512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520 #include <$ac_header>
15521 _ACEOF
15522 if { (ac_try="$ac_cpp conftest.$ac_ext"
15523 case "(($ac_try" in
15524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525   *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15529   ac_status=$?
15530   grep -v '^ *+' conftest.er1 >conftest.err
15531   rm -f conftest.er1
15532   cat conftest.err >&5
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); } >/dev/null && {
15535          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15536          test ! -s conftest.err
15537        }; then
15538   ac_header_preproc=yes
15539 else
15540   echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543   ac_header_preproc=no
15544 fi
15545
15546 rm -f conftest.err conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15548 echo "${ECHO_T}$ac_header_preproc" >&6; }
15549
15550 # So?  What about this header?
15551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15552   yes:no: )
15553     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15554 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15556 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15557     ac_header_preproc=yes
15558     ;;
15559   no:yes:* )
15560     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15561 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15562     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15563 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15564     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15565 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15566     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15567 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15568     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15571 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15572
15573     ;;
15574 esac
15575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15578   echo $ECHO_N "(cached) $ECHO_C" >&6
15579 else
15580   eval "$as_ac_Header=\$ac_header_preproc"
15581 fi
15582 ac_res=`eval echo '${'$as_ac_Header'}'`
15583                { echo "$as_me:$LINENO: result: $ac_res" >&5
15584 echo "${ECHO_T}$ac_res" >&6; }
15585
15586 fi
15587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15588   cat >>confdefs.h <<_ACEOF
15589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15590 _ACEOF
15591
15592 fi
15593
15594 done
15595
15596
15597 # End of readline/conio stuff
15598 # -----------------------------------------------------------------------
15599
15600 # -----------------------------------------------------------------------
15601 #  Check for Python support
15602 #
15603 { echo "$as_me:$LINENO: checking for Python support" >&5
15604 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15605
15606 # Check whether --with-python was given.
15607 if test "${with_python+set}" = set; then
15608   withval=$with_python;
15609   PYTHON_INCDIR=
15610   PYTHON_LIBS=
15611   if test "$withval" != "no"; then
15612      if test "$withval" = "yes"; then
15613         for python_root in /usr /usr/local /usr/sfw; do
15614           for ver in python2.2 python2.3 python2.4 python2.5; do
15615              if test -f $python_root/include/${ver}/Python.h; then
15616                 PYTHON_INCDIR=-I$python_root/include/${ver}
15617                 if test -d $python_root/lib64/${ver}/config; then
15618                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15619                 else
15620                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15621                 fi
15622                 break
15623              fi
15624           done
15625         done
15626         if test x$PYTHON_INCDIR = x; then
15627           if test -f $prefix/include/Python.h; then
15628              PYTHON_INCDIR=-I$prefix/include
15629              if test -d $prefix/lib64/config; then
15630                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15631              else
15632                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15633              fi
15634           else
15635            { echo "$as_me:$LINENO: result: no" >&5
15636 echo "${ECHO_T}no" >&6; }
15637            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15638 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15639    { (exit 1); exit 1; }; }
15640           fi
15641         fi
15642      else
15643         if test -f $withval/Python.h; then
15644            PYTHON_INCDIR=-I$withval
15645            PYTHON_LIBS="-L$withval/config -lpython"
15646         elif test -f $withval/include/Python.h; then
15647            PYTHON_INCDIR=-I$withval/include
15648            if test -d $withval/lib64/config; then
15649               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15650            else
15651               PYTHON_LIBS="-L$withval/lib/config -lpython"
15652            fi
15653         elif test -f $withval/include/python/Python.h; then
15654            PYTHON_INCDIR=-I$withval/include/python
15655            if test -d $withval/lib64/python/config; then
15656               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15657            else
15658               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15659            fi
15660         else
15661            { echo "$as_me:$LINENO: result: no" >&5
15662 echo "${ECHO_T}no" >&6; }
15663            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15664 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15665    { (exit 1); exit 1; }; }
15666         fi
15667      fi
15668      cat >>confdefs.h <<\_ACEOF
15669 #define HAVE_PYTHON 1
15670 _ACEOF
15671
15672      { echo "$as_me:$LINENO: result: yes" >&5
15673 echo "${ECHO_T}yes" >&6; }
15674      support_python=yes
15675      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15676 echo "$as_me: checking for more Python libs" >&6;}
15677      saved_LIBS="$LIBS"; LIBS=
15678      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15679 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15680 if test "${ac_cv_search_shm_open+set}" = set; then
15681   echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683   ac_func_search_save_LIBS=$LIBS
15684 cat >conftest.$ac_ext <<_ACEOF
15685 /* confdefs.h.  */
15686 _ACEOF
15687 cat confdefs.h >>conftest.$ac_ext
15688 cat >>conftest.$ac_ext <<_ACEOF
15689 /* end confdefs.h.  */
15690
15691 /* Override any GCC internal prototype to avoid an error.
15692    Use char because int might match the return type of a GCC
15693    builtin and then its argument prototype would still apply.  */
15694 #ifdef __cplusplus
15695 extern "C"
15696 #endif
15697 char shm_open ();
15698 int
15699 main ()
15700 {
15701 return shm_open ();
15702   ;
15703   return 0;
15704 }
15705 _ACEOF
15706 for ac_lib in '' rt; do
15707   if test -z "$ac_lib"; then
15708     ac_res="none required"
15709   else
15710     ac_res=-l$ac_lib
15711     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15712   fi
15713   rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (ac_try="$ac_link"
15715 case "(($ac_try" in
15716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717   *) ac_try_echo=$ac_try;;
15718 esac
15719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15720   (eval "$ac_link") 2>conftest.er1
15721   ac_status=$?
15722   grep -v '^ *+' conftest.er1 >conftest.err
15723   rm -f conftest.er1
15724   cat conftest.err >&5
15725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726   (exit $ac_status); } && {
15727          test -z "$ac_c_werror_flag" ||
15728          test ! -s conftest.err
15729        } && test -s conftest$ac_exeext &&
15730        $as_test_x conftest$ac_exeext; then
15731   ac_cv_search_shm_open=$ac_res
15732 else
15733   echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736
15737 fi
15738
15739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15740       conftest$ac_exeext
15741   if test "${ac_cv_search_shm_open+set}" = set; then
15742   break
15743 fi
15744 done
15745 if test "${ac_cv_search_shm_open+set}" = set; then
15746   :
15747 else
15748   ac_cv_search_shm_open=no
15749 fi
15750 rm conftest.$ac_ext
15751 LIBS=$ac_func_search_save_LIBS
15752 fi
15753 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15754 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15755 ac_res=$ac_cv_search_shm_open
15756 if test "$ac_res" != no; then
15757   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15758
15759 fi
15760
15761
15762 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15763 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15764 if test "${ac_cv_lib_util_openpty+set}" = set; then
15765   echo $ECHO_N "(cached) $ECHO_C" >&6
15766 else
15767   ac_check_lib_save_LIBS=$LIBS
15768 LIBS="-lutil  $LIBS"
15769 cat >conftest.$ac_ext <<_ACEOF
15770 /* confdefs.h.  */
15771 _ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h.  */
15775
15776 /* Override any GCC internal prototype to avoid an error.
15777    Use char because int might match the return type of a GCC
15778    builtin and then its argument prototype would still apply.  */
15779 #ifdef __cplusplus
15780 extern "C"
15781 #endif
15782 char openpty ();
15783 int
15784 main ()
15785 {
15786 return openpty ();
15787   ;
15788   return 0;
15789 }
15790 _ACEOF
15791 rm -f conftest.$ac_objext conftest$ac_exeext
15792 if { (ac_try="$ac_link"
15793 case "(($ac_try" in
15794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15795   *) ac_try_echo=$ac_try;;
15796 esac
15797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15798   (eval "$ac_link") 2>conftest.er1
15799   ac_status=$?
15800   grep -v '^ *+' conftest.er1 >conftest.err
15801   rm -f conftest.er1
15802   cat conftest.err >&5
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); } && {
15805          test -z "$ac_c_werror_flag" ||
15806          test ! -s conftest.err
15807        } && test -s conftest$ac_exeext &&
15808        $as_test_x conftest$ac_exeext; then
15809   ac_cv_lib_util_openpty=yes
15810 else
15811   echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15813
15814         ac_cv_lib_util_openpty=no
15815 fi
15816
15817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15818       conftest$ac_exeext conftest.$ac_ext
15819 LIBS=$ac_check_lib_save_LIBS
15820 fi
15821 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15822 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15823 if test $ac_cv_lib_util_openpty = yes; then
15824   cat >>confdefs.h <<_ACEOF
15825 #define HAVE_LIBUTIL 1
15826 _ACEOF
15827
15828   LIBS="-lutil $LIBS"
15829
15830 fi
15831
15832      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15833      LIBS="$saved_LIBS"
15834   else
15835      { echo "$as_me:$LINENO: result: no" >&5
15836 echo "${ECHO_T}no" >&6; }
15837   fi
15838
15839 else
15840
15841   { echo "$as_me:$LINENO: result: no" >&5
15842 echo "${ECHO_T}no" >&6; }
15843
15844 fi
15845
15846
15847
15848
15849 #
15850 # Find where sockets are (especially for Solaris)
15851 # Do this before the TCP Wrappers test since tcp wrappers
15852 # uses the socket library and some linkers are stupid.
15853 #
15854 { echo "$as_me:$LINENO: checking for socket" >&5
15855 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15856 if test "${ac_cv_func_socket+set}" = set; then
15857   echo $ECHO_N "(cached) $ECHO_C" >&6
15858 else
15859   cat >conftest.$ac_ext <<_ACEOF
15860 /* confdefs.h.  */
15861 _ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h.  */
15865 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15867 #define socket innocuous_socket
15868
15869 /* System header to define __stub macros and hopefully few prototypes,
15870     which can conflict with char socket (); below.
15871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15872     <limits.h> exists even on freestanding compilers.  */
15873
15874 #ifdef __STDC__
15875 # include <limits.h>
15876 #else
15877 # include <assert.h>
15878 #endif
15879
15880 #undef socket
15881
15882 /* Override any GCC internal prototype to avoid an error.
15883    Use char because int might match the return type of a GCC
15884    builtin and then its argument prototype would still apply.  */
15885 #ifdef __cplusplus
15886 extern "C"
15887 #endif
15888 char socket ();
15889 /* The GNU C library defines this for functions which it implements
15890     to always fail with ENOSYS.  Some functions are actually named
15891     something starting with __ and the normal name is an alias.  */
15892 #if defined __stub_socket || defined __stub___socket
15893 choke me
15894 #endif
15895
15896 int
15897 main ()
15898 {
15899 return socket ();
15900   ;
15901   return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908   *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911   (eval "$ac_link") 2>conftest.er1
15912   ac_status=$?
15913   grep -v '^ *+' conftest.er1 >conftest.err
15914   rm -f conftest.er1
15915   cat conftest.err >&5
15916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917   (exit $ac_status); } && {
15918          test -z "$ac_c_werror_flag" ||
15919          test ! -s conftest.err
15920        } && test -s conftest$ac_exeext &&
15921        $as_test_x conftest$ac_exeext; then
15922   ac_cv_func_socket=yes
15923 else
15924   echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15926
15927         ac_cv_func_socket=no
15928 fi
15929
15930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15931       conftest$ac_exeext conftest.$ac_ext
15932 fi
15933 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15934 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15935 if test $ac_cv_func_socket = yes; then
15936   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15937 echo "${ECHO_T}using libc's socket" >&6; }
15938 else
15939
15940 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15941 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15942 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15943   echo $ECHO_N "(cached) $ECHO_C" >&6
15944 else
15945   ac_check_lib_save_LIBS=$LIBS
15946 LIBS="-lxnet  $LIBS"
15947 cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h.  */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h.  */
15953
15954 /* Override any GCC internal prototype to avoid an error.
15955    Use char because int might match the return type of a GCC
15956    builtin and then its argument prototype would still apply.  */
15957 #ifdef __cplusplus
15958 extern "C"
15959 #endif
15960 char socket ();
15961 int
15962 main ()
15963 {
15964 return socket ();
15965   ;
15966   return 0;
15967 }
15968 _ACEOF
15969 rm -f conftest.$ac_objext conftest$ac_exeext
15970 if { (ac_try="$ac_link"
15971 case "(($ac_try" in
15972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973   *) ac_try_echo=$ac_try;;
15974 esac
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976   (eval "$ac_link") 2>conftest.er1
15977   ac_status=$?
15978   grep -v '^ *+' conftest.er1 >conftest.err
15979   rm -f conftest.er1
15980   cat conftest.err >&5
15981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982   (exit $ac_status); } && {
15983          test -z "$ac_c_werror_flag" ||
15984          test ! -s conftest.err
15985        } && test -s conftest$ac_exeext &&
15986        $as_test_x conftest$ac_exeext; then
15987   ac_cv_lib_xnet_socket=yes
15988 else
15989   echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992         ac_cv_lib_xnet_socket=no
15993 fi
15994
15995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15996       conftest$ac_exeext conftest.$ac_ext
15997 LIBS=$ac_check_lib_save_LIBS
15998 fi
15999 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16000 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16001 if test $ac_cv_lib_xnet_socket = yes; then
16002   cat >>confdefs.h <<_ACEOF
16003 #define HAVE_LIBXNET 1
16004 _ACEOF
16005
16006   LIBS="-lxnet $LIBS"
16007
16008 fi
16009
16010
16011 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16012 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16013 if test "${ac_cv_lib_socket_socket+set}" = set; then
16014   echo $ECHO_N "(cached) $ECHO_C" >&6
16015 else
16016   ac_check_lib_save_LIBS=$LIBS
16017 LIBS="-lsocket  $LIBS"
16018 cat >conftest.$ac_ext <<_ACEOF
16019 /* confdefs.h.  */
16020 _ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h.  */
16024
16025 /* Override any GCC internal prototype to avoid an error.
16026    Use char because int might match the return type of a GCC
16027    builtin and then its argument prototype would still apply.  */
16028 #ifdef __cplusplus
16029 extern "C"
16030 #endif
16031 char socket ();
16032 int
16033 main ()
16034 {
16035 return socket ();
16036   ;
16037   return 0;
16038 }
16039 _ACEOF
16040 rm -f conftest.$ac_objext conftest$ac_exeext
16041 if { (ac_try="$ac_link"
16042 case "(($ac_try" in
16043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044   *) ac_try_echo=$ac_try;;
16045 esac
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047   (eval "$ac_link") 2>conftest.er1
16048   ac_status=$?
16049   grep -v '^ *+' conftest.er1 >conftest.err
16050   rm -f conftest.er1
16051   cat conftest.err >&5
16052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053   (exit $ac_status); } && {
16054          test -z "$ac_c_werror_flag" ||
16055          test ! -s conftest.err
16056        } && test -s conftest$ac_exeext &&
16057        $as_test_x conftest$ac_exeext; then
16058   ac_cv_lib_socket_socket=yes
16059 else
16060   echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063         ac_cv_lib_socket_socket=no
16064 fi
16065
16066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16067       conftest$ac_exeext conftest.$ac_ext
16068 LIBS=$ac_check_lib_save_LIBS
16069 fi
16070 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16071 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16072 if test $ac_cv_lib_socket_socket = yes; then
16073   cat >>confdefs.h <<_ACEOF
16074 #define HAVE_LIBSOCKET 1
16075 _ACEOF
16076
16077   LIBS="-lsocket $LIBS"
16078
16079 fi
16080
16081
16082 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16083 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16084 if test "${ac_cv_lib_inet_socket+set}" = set; then
16085   echo $ECHO_N "(cached) $ECHO_C" >&6
16086 else
16087   ac_check_lib_save_LIBS=$LIBS
16088 LIBS="-linet  $LIBS"
16089 cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095
16096 /* Override any GCC internal prototype to avoid an error.
16097    Use char because int might match the return type of a GCC
16098    builtin and then its argument prototype would still apply.  */
16099 #ifdef __cplusplus
16100 extern "C"
16101 #endif
16102 char socket ();
16103 int
16104 main ()
16105 {
16106 return socket ();
16107   ;
16108   return 0;
16109 }
16110 _ACEOF
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (ac_try="$ac_link"
16113 case "(($ac_try" in
16114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115   *) ac_try_echo=$ac_try;;
16116 esac
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118   (eval "$ac_link") 2>conftest.er1
16119   ac_status=$?
16120   grep -v '^ *+' conftest.er1 >conftest.err
16121   rm -f conftest.er1
16122   cat conftest.err >&5
16123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124   (exit $ac_status); } && {
16125          test -z "$ac_c_werror_flag" ||
16126          test ! -s conftest.err
16127        } && test -s conftest$ac_exeext &&
16128        $as_test_x conftest$ac_exeext; then
16129   ac_cv_lib_inet_socket=yes
16130 else
16131   echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134         ac_cv_lib_inet_socket=no
16135 fi
16136
16137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16138       conftest$ac_exeext conftest.$ac_ext
16139 LIBS=$ac_check_lib_save_LIBS
16140 fi
16141 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16142 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16143 if test $ac_cv_lib_inet_socket = yes; then
16144   cat >>confdefs.h <<_ACEOF
16145 #define HAVE_LIBINET 1
16146 _ACEOF
16147
16148   LIBS="-linet $LIBS"
16149
16150 fi
16151
16152 fi
16153
16154
16155
16156 # -----------------------------------------------------------
16157 # Check whether user wants TCP wrappers support (default off)
16158 # -----------------------------------------------------------
16159 TCPW_MSG="no"
16160 WRAPLIBS=""
16161
16162 # Check whether --with-tcp-wrappers was given.
16163 if test "${with_tcp_wrappers+set}" = set; then
16164   withval=$with_tcp_wrappers;
16165     if test "x$withval" != "xno" ; then
16166        saved_LIBS="$LIBS"
16167        LIBS="$saved_LIBS -lwrap"
16168        { echo "$as_me:$LINENO: checking for libwrap" >&5
16169 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16170        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16171 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16172 if test "${ac_cv_search_nanosleep+set}" = set; then
16173   echo $ECHO_N "(cached) $ECHO_C" >&6
16174 else
16175   ac_func_search_save_LIBS=$LIBS
16176 cat >conftest.$ac_ext <<_ACEOF
16177 /* confdefs.h.  */
16178 _ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h.  */
16182
16183 /* Override any GCC internal prototype to avoid an error.
16184    Use char because int might match the return type of a GCC
16185    builtin and then its argument prototype would still apply.  */
16186 #ifdef __cplusplus
16187 extern "C"
16188 #endif
16189 char nanosleep ();
16190 int
16191 main ()
16192 {
16193 return nanosleep ();
16194   ;
16195   return 0;
16196 }
16197 _ACEOF
16198 for ac_lib in '' rt; do
16199   if test -z "$ac_lib"; then
16200     ac_res="none required"
16201   else
16202     ac_res=-l$ac_lib
16203     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16204   fi
16205   rm -f conftest.$ac_objext conftest$ac_exeext
16206 if { (ac_try="$ac_link"
16207 case "(($ac_try" in
16208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16209   *) ac_try_echo=$ac_try;;
16210 esac
16211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16212   (eval "$ac_link") 2>conftest.er1
16213   ac_status=$?
16214   grep -v '^ *+' conftest.er1 >conftest.err
16215   rm -f conftest.er1
16216   cat conftest.err >&5
16217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218   (exit $ac_status); } && {
16219          test -z "$ac_c_werror_flag" ||
16220          test ! -s conftest.err
16221        } && test -s conftest$ac_exeext &&
16222        $as_test_x conftest$ac_exeext; then
16223   ac_cv_search_nanosleep=$ac_res
16224 else
16225   echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16227
16228
16229 fi
16230
16231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16232       conftest$ac_exeext
16233   if test "${ac_cv_search_nanosleep+set}" = set; then
16234   break
16235 fi
16236 done
16237 if test "${ac_cv_search_nanosleep+set}" = set; then
16238   :
16239 else
16240   ac_cv_search_nanosleep=no
16241 fi
16242 rm conftest.$ac_ext
16243 LIBS=$ac_func_search_save_LIBS
16244 fi
16245 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16246 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16247 ac_res=$ac_cv_search_nanosleep
16248 if test "$ac_res" != no; then
16249   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16250
16251 fi
16252
16253        cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259  #include <sys/types.h>
16260             #include <tcpd.h>
16261              int deny_severity = 0;
16262              int allow_severity = 0;
16263              struct request_info *req;
16264 int
16265 main ()
16266 {
16267  hosts_access(req);
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (ac_try="$ac_link"
16274 case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_link") 2>conftest.er1
16280   ac_status=$?
16281   grep -v '^ *+' conftest.er1 >conftest.err
16282   rm -f conftest.er1
16283   cat conftest.err >&5
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); } && {
16286          test -z "$ac_c_werror_flag" ||
16287          test ! -s conftest.err
16288        } && test -s conftest$ac_exeext &&
16289        $as_test_x conftest$ac_exeext; then
16290
16291             { echo "$as_me:$LINENO: result: yes" >&5
16292 echo "${ECHO_T}yes" >&6; }
16293
16294 cat >>confdefs.h <<\_ACEOF
16295 #define HAVE_LIBWRAP 1
16296 _ACEOF
16297
16298             TCPW_MSG="yes"
16299             LIBS="$saved_LIBS"
16300             WRAPLIBS="-lwrap"
16301
16302 else
16303   echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306
16307             LIBS="$saved_LIBS -lwrap -lnsl"
16308             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16309             cat >conftest.$ac_ext <<_ACEOF
16310 /* confdefs.h.  */
16311 _ACEOF
16312 cat confdefs.h >>conftest.$ac_ext
16313 cat >>conftest.$ac_ext <<_ACEOF
16314 /* end confdefs.h.  */
16315  #include <sys/types.h>
16316                  #include <tcpd.h>
16317                  int deny_severity = 0;
16318                  int allow_severity = 0;
16319                  struct request_info *req;
16320 int
16321 main ()
16322 {
16323  hosts_access(req);
16324   ;
16325   return 0;
16326 }
16327 _ACEOF
16328 rm -f conftest.$ac_objext conftest$ac_exeext
16329 if { (ac_try="$ac_link"
16330 case "(($ac_try" in
16331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16332   *) ac_try_echo=$ac_try;;
16333 esac
16334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16335   (eval "$ac_link") 2>conftest.er1
16336   ac_status=$?
16337   grep -v '^ *+' conftest.er1 >conftest.err
16338   rm -f conftest.er1
16339   cat conftest.err >&5
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } && {
16342          test -z "$ac_c_werror_flag" ||
16343          test ! -s conftest.err
16344        } && test -s conftest$ac_exeext &&
16345        $as_test_x conftest$ac_exeext; then
16346
16347                  { echo "$as_me:$LINENO: result: yes" >&5
16348 echo "${ECHO_T}yes" >&6; }
16349
16350 cat >>confdefs.h <<\_ACEOF
16351 #define HAVE_LIBWRAP 1
16352 _ACEOF
16353
16354                  TCPW_MSG="yes"
16355                  LIBS="$saved_LIBS"
16356                  WRAPLIBS="-lwrap"
16357
16358 else
16359   echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16361
16362         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16363 echo "$as_me: error: *** libwrap missing" >&2;}
16364    { (exit 1); exit 1; }; }
16365
16366 fi
16367
16368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16369       conftest$ac_exeext conftest.$ac_ext
16370
16371 fi
16372
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374       conftest$ac_exeext conftest.$ac_ext
16375     fi
16376
16377
16378 fi
16379
16380
16381 # -----------------------------------------------------------
16382 # Check whether OpenSSL is available
16383 # -----------------------------------------------------------
16384 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16385 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16386
16387 # Check whether --with-openssl was given.
16388 if test "${with_openssl+set}" = set; then
16389   withval=$with_openssl; with_openssl_directory=${withval}
16390 fi
16391
16392
16393 if test "x$with_openssl_directory" != "x"; then
16394         OPENSSL_LIBS="-lssl -lcrypto"
16395         OPENSSL_INC=""
16396
16397         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16398                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16399                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16400         fi
16401
16402         saved_LIBS="${LIBS}"
16403         saved_CFLAGS="${CFLAGS}"
16404         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16405         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16406
16407         cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h.  */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h.  */
16413  #include <openssl/ssl.h>
16414 int
16415 main ()
16416 {
16417  CRYPTO_set_id_callback(NULL);
16418   ;
16419   return 0;
16420 }
16421 _ACEOF
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426   *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429   (eval "$ac_link") 2>conftest.er1
16430   ac_status=$?
16431   grep -v '^ *+' conftest.er1 >conftest.err
16432   rm -f conftest.er1
16433   cat conftest.err >&5
16434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435   (exit $ac_status); } && {
16436          test -z "$ac_c_werror_flag" ||
16437          test ! -s conftest.err
16438        } && test -s conftest$ac_exeext &&
16439        $as_test_x conftest$ac_exeext; then
16440
16441                         support_tls="yes"
16442                         support_crypto="yes"
16443
16444 else
16445   echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448          support_tls="no"
16449
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16453       conftest$ac_exeext conftest.$ac_ext
16454
16455         cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h.  */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h.  */
16461  #include <openssl/evp.h>
16462 int
16463 main ()
16464 {
16465  EVP_sha512();
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (ac_try="$ac_link"
16472 case "(($ac_try" in
16473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16474   *) ac_try_echo=$ac_try;;
16475 esac
16476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16477   (eval "$ac_link") 2>conftest.er1
16478   ac_status=$?
16479   grep -v '^ *+' conftest.er1 >conftest.err
16480   rm -f conftest.er1
16481   cat conftest.err >&5
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); } && {
16484          test -z "$ac_c_werror_flag" ||
16485          test ! -s conftest.err
16486        } && test -s conftest$ac_exeext &&
16487        $as_test_x conftest$ac_exeext; then
16488    ac_cv_openssl_sha2="yes"
16489 else
16490   echo "$as_me: failed program was:" >&5
16491 sed 's/^/| /' conftest.$ac_ext >&5
16492
16493          ac_cv_openssl_sha2="no"
16494
16495 fi
16496
16497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16498       conftest$ac_exeext conftest.$ac_ext
16499
16500         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16501         # implementation, presumably for export reasons. If 192bit AES
16502         # is available, we assume that we're running with a 'non-export'
16503         # openssl library.
16504         cat >conftest.$ac_ext <<_ACEOF
16505 /* confdefs.h.  */
16506 _ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h.  */
16510  #include <openssl/evp.h>
16511 int
16512 main ()
16513 {
16514  EVP_aes_192_cbc();
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext conftest$ac_exeext
16520 if { (ac_try="$ac_link"
16521 case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_link") 2>conftest.er1
16527   ac_status=$?
16528   grep -v '^ *+' conftest.er1 >conftest.err
16529   rm -f conftest.er1
16530   cat conftest.err >&5
16531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532   (exit $ac_status); } && {
16533          test -z "$ac_c_werror_flag" ||
16534          test ! -s conftest.err
16535        } && test -s conftest$ac_exeext &&
16536        $as_test_x conftest$ac_exeext; then
16537    ac_cv_openssl_export="no"
16538 else
16539   echo "$as_me: failed program was:" >&5
16540 sed 's/^/| /' conftest.$ac_ext >&5
16541
16542          ac_cv_openssl_export="yes"
16543
16544 fi
16545
16546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16547       conftest$ac_exeext conftest.$ac_ext
16548
16549         LIBS="${saved_LIBS}"
16550         CFLAGS="${saved_CFLAGS}"
16551
16552         if test "$support_tls" = "yes"; then
16553
16554 cat >>confdefs.h <<\_ACEOF
16555 #define HAVE_OPENSSL 1
16556 _ACEOF
16557
16558
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_TLS 1
16561 _ACEOF
16562
16563
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_CRYPTO 1
16566 _ACEOF
16567
16568         fi
16569
16570         if test "$ac_cv_openssl_sha2" = "yes"; then
16571
16572 cat >>confdefs.h <<\_ACEOF
16573 #define HAVE_SHA2 1
16574 _ACEOF
16575
16576         fi
16577
16578         if test "$ac_cv_openssl_export" = "yes"; then
16579
16580 cat >>confdefs.h <<\_ACEOF
16581 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16582 _ACEOF
16583
16584         fi
16585 else
16586         support_tls="no"
16587         support_crypto="no"
16588         OPENSSL_LIBS=""
16589         OPENSSL_INC=""
16590 fi
16591
16592 { echo "$as_me:$LINENO: result: $support_tls" >&5
16593 echo "${ECHO_T}$support_tls" >&6; }
16594
16595
16596
16597
16598 # -----------------------------------------------------------
16599 # dlopen is needed for plugins
16600 # -----------------------------------------------------------
16601 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16602 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16603 if test "${ac_cv_search_dlopen+set}" = set; then
16604   echo $ECHO_N "(cached) $ECHO_C" >&6
16605 else
16606   ac_func_search_save_LIBS=$LIBS
16607 cat >conftest.$ac_ext <<_ACEOF
16608 /* confdefs.h.  */
16609 _ACEOF
16610 cat confdefs.h >>conftest.$ac_ext
16611 cat >>conftest.$ac_ext <<_ACEOF
16612 /* end confdefs.h.  */
16613
16614 /* Override any GCC internal prototype to avoid an error.
16615    Use char because int might match the return type of a GCC
16616    builtin and then its argument prototype would still apply.  */
16617 #ifdef __cplusplus
16618 extern "C"
16619 #endif
16620 char dlopen ();
16621 int
16622 main ()
16623 {
16624 return dlopen ();
16625   ;
16626   return 0;
16627 }
16628 _ACEOF
16629 for ac_lib in '' dl; do
16630   if test -z "$ac_lib"; then
16631     ac_res="none required"
16632   else
16633     ac_res=-l$ac_lib
16634     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16635   fi
16636   rm -f conftest.$ac_objext conftest$ac_exeext
16637 if { (ac_try="$ac_link"
16638 case "(($ac_try" in
16639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16640   *) ac_try_echo=$ac_try;;
16641 esac
16642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16643   (eval "$ac_link") 2>conftest.er1
16644   ac_status=$?
16645   grep -v '^ *+' conftest.er1 >conftest.err
16646   rm -f conftest.er1
16647   cat conftest.err >&5
16648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649   (exit $ac_status); } && {
16650          test -z "$ac_c_werror_flag" ||
16651          test ! -s conftest.err
16652        } && test -s conftest$ac_exeext &&
16653        $as_test_x conftest$ac_exeext; then
16654   ac_cv_search_dlopen=$ac_res
16655 else
16656   echo "$as_me: failed program was:" >&5
16657 sed 's/^/| /' conftest.$ac_ext >&5
16658
16659
16660 fi
16661
16662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16663       conftest$ac_exeext
16664   if test "${ac_cv_search_dlopen+set}" = set; then
16665   break
16666 fi
16667 done
16668 if test "${ac_cv_search_dlopen+set}" = set; then
16669   :
16670 else
16671   ac_cv_search_dlopen=no
16672 fi
16673 rm conftest.$ac_ext
16674 LIBS=$ac_func_search_save_LIBS
16675 fi
16676 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16677 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16678 ac_res=$ac_cv_search_dlopen
16679 if test "$ac_res" != no; then
16680   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16681
16682 fi
16683
16684
16685 # ------------------------------------------
16686 # Where to place working dir
16687 # ------------------------------------------
16688 working_dir=`eval echo ${prefix}/var/bacula/working`
16689
16690 # Check whether --with-working-dir was given.
16691 if test "${with_working_dir+set}" = set; then
16692   withval=$with_working_dir;
16693        if test "x$withval" != "xno" ; then
16694               working_dir=$withval
16695        fi
16696
16697
16698 fi
16699
16700
16701
16702
16703 # ------------------------------------------------------------------
16704 # If the user has not set archivedir, we set our default as /tmp
16705 # ------------------------------------------------------------------
16706 archive_dir=/tmp
16707
16708 # Check whether --with-archivedir was given.
16709 if test "${with_archivedir+set}" = set; then
16710   withval=$with_archivedir;
16711        if test "x$withval" != "xno" ; then
16712               archivedir=$withval
16713        fi
16714
16715
16716 fi
16717
16718
16719
16720
16721
16722
16723 # ------------------------------------------
16724 # Where to place scriptdir (script files)
16725 # ------------------------------------------
16726 scriptdir=`eval echo ${sysconfdir}`
16727
16728 # Check whether --with-scriptdir was given.
16729 if test "${with_scriptdir+set}" = set; then
16730   withval=$with_scriptdir;
16731        if test "x$withval" != "xno" ; then
16732               scriptdir=$withval
16733        fi
16734
16735
16736 fi
16737
16738
16739
16740
16741
16742 # ------------------------------------------
16743 # Where to send dump email
16744 # ------------------------------------------
16745 dump_email=root@localhost
16746
16747 # Check whether --with-dump-email was given.
16748 if test "${with_dump_email+set}" = set; then
16749   withval=$with_dump_email;
16750        if test "x$withval" != "xno" ; then
16751               dump_email=$withval
16752        fi
16753
16754
16755 fi
16756
16757
16758
16759
16760 # ------------------------------------------
16761 # Where to send job email
16762 # ------------------------------------------
16763 job_email=root@localhost
16764
16765 # Check whether --with-job-email was given.
16766 if test "${with_job_email+set}" = set; then
16767   withval=$with_job_email;
16768        if test "x$withval" != "xno" ; then
16769               job_email=$withval
16770        fi
16771
16772
16773 fi
16774
16775
16776
16777
16778 # ------------------------------------------
16779 # Where to find smtp host
16780 # ------------------------------------------
16781 smtp_host=localhost
16782
16783 # Check whether --with-smtp_host was given.
16784 if test "${with_smtp_host+set}" = set; then
16785   withval=$with_smtp_host;
16786        if test "x$withval" != "xno" ; then
16787               smtp_host=$withval
16788        fi
16789
16790
16791 fi
16792
16793
16794
16795
16796
16797 # ------------------------------------
16798 # Where to place pid files
16799 # ------------------------------------
16800 piddir=/var/run
16801
16802 # Check whether --with-pid-dir was given.
16803 if test "${with_pid_dir+set}" = set; then
16804   withval=$with_pid_dir;
16805         if test "x$withval" != "xno" ; then
16806             piddir=$withval
16807         fi
16808
16809
16810 fi
16811
16812
16813 cat >>confdefs.h <<_ACEOF
16814 #define _PATH_BACULA_PIDDIR "$piddir"
16815 _ACEOF
16816
16817
16818
16819
16820 # ------------------------------------
16821 # Where to place subsys "lock file"
16822 # ------------------------------------
16823 subsysdir=/var/run/subsys
16824 if test -d /var/run/subsys; then
16825    subsysdir=/var/run/subsys
16826 elif test -d /var/lock/subsys; then
16827    subsysdir=/var/lock/subsys
16828 else
16829    subsysdir=/var/run/subsys
16830 fi
16831
16832 # Check whether --with-subsys-dir was given.
16833 if test "${with_subsys_dir+set}" = set; then
16834   withval=$with_subsys_dir;
16835         if test "x$withval" != "xno" ; then
16836             subsysdir=$withval
16837         fi
16838
16839
16840 fi
16841
16842
16843
16844
16845
16846
16847 # ------------------------------------
16848 # Where to start assigning ports
16849 # ------------------------------------
16850 baseport=9101
16851
16852 # Check whether --with-baseport was given.
16853 if test "${with_baseport+set}" = set; then
16854   withval=$with_baseport;
16855         if test "x$withval" != "xno" ; then
16856              baseport=$withval
16857         fi
16858
16859
16860 fi
16861
16862
16863
16864 dir_port=`expr $baseport`
16865 fd_port=`expr $baseport + 1`
16866 sd_port=`expr $fd_port + 1`
16867
16868
16869
16870
16871
16872
16873 # ------------------------------------------
16874 # Generate passwords
16875 # ------------------------------------------
16876 dir_password=
16877
16878 # Check whether --with-dir-password was given.
16879 if test "${with_dir_password+set}" = set; then
16880   withval=$with_dir_password;
16881        if test "x$withval" != "xno" ; then
16882            dir_password=$withval
16883        fi
16884
16885
16886 fi
16887
16888
16889 if test "x$dir_password" = "x" ; then
16890    if test "x$OPENSSL" = "xnone" ; then
16891       key=`autoconf/randpass 33`
16892    else
16893       key=`openssl rand -base64 33`
16894    fi
16895    dir_password=$key
16896 fi
16897
16898 fd_password=
16899
16900 # Check whether --with-fd-password was given.
16901 if test "${with_fd_password+set}" = set; then
16902   withval=$with_fd_password;
16903        if test "x$withval" != "xno" ; then
16904            fd_password=$withval
16905        fi
16906
16907
16908 fi
16909
16910
16911 if test "x$fd_password" = "x" ; then
16912    if test "x$OPENSSL" = "xnone" ; then
16913       key=`autoconf/randpass 37`
16914    else
16915       key=`openssl rand -base64 33`
16916    fi
16917    fd_password=$key
16918 fi
16919
16920 sd_password=
16921
16922 # Check whether --with-sd-password was given.
16923 if test "${with_sd_password+set}" = set; then
16924   withval=$with_sd_password;
16925        if test "x$withval" != "xno" ; then
16926            sd_password=$withval
16927        fi
16928
16929
16930 fi
16931
16932
16933 if test "x$sd_password" = "x" ; then
16934    if test "x$OPENSSL" = "xnone" ; then
16935       key=`autoconf/randpass 41`
16936    else
16937       key=`openssl rand -base64 33`
16938    fi
16939    sd_password=$key
16940 fi
16941
16942 mon_dir_password=
16943
16944 # Check whether --with-mon-dir-password was given.
16945 if test "${with_mon_dir_password+set}" = set; then
16946   withval=$with_mon_dir_password;
16947        if test "x$withval" != "xno" ; then
16948            mon_dir_password=$withval
16949        fi
16950
16951
16952 fi
16953
16954
16955 if test "x$mon_dir_password" = "x" ; then
16956    if test "x$OPENSSL" = "xnone" ; then
16957       key=`autoconf/randpass 33`
16958    else
16959       key=`openssl rand -base64 33`
16960    fi
16961    mon_dir_password=$key
16962 fi
16963
16964 mon_fd_password=
16965
16966 # Check whether --with-mon-fd-password was given.
16967 if test "${with_mon_fd_password+set}" = set; then
16968   withval=$with_mon_fd_password;
16969        if test "x$withval" != "xno" ; then
16970            mon_fd_password=$withval
16971        fi
16972
16973
16974 fi
16975
16976
16977 if test "x$mon_fd_password" = "x" ; then
16978    if test "x$OPENSSL" = "xnone" ; then
16979       key=`autoconf/randpass 37`
16980    else
16981       key=`openssl rand -base64 33`
16982    fi
16983    mon_fd_password=$key
16984 fi
16985
16986 mon_sd_password=
16987
16988 # Check whether --with-mon-sd-password was given.
16989 if test "${with_mon_sd_password+set}" = set; then
16990   withval=$with_mon_sd_password;
16991        if test "x$withval" != "xno" ; then
16992            mon_sd_password=$withval
16993        fi
16994
16995
16996 fi
16997
16998
16999 if test "x$mon_sd_password" = "x" ; then
17000    if test "x$OPENSSL" = "xnone" ; then
17001       key=`autoconf/randpass 41`
17002    else
17003       key=`openssl rand -base64 33`
17004    fi
17005    mon_sd_password=$key
17006 fi
17007
17008
17009
17010
17011
17012
17013
17014
17015 #
17016 # Pickup any database name
17017 #
17018 db_name=bacula
17019
17020 # Check whether --with-db_name was given.
17021 if test "${with_db_name+set}" = set; then
17022   withval=$with_db_name;
17023         if test "x$withval" != "x" ; then
17024              db_name=$withval
17025         fi
17026
17027
17028 fi
17029
17030
17031
17032 db_user=bacula
17033
17034 # Check whether --with-db_user was given.
17035 if test "${with_db_user+set}" = set; then
17036   withval=$with_db_user;
17037         if test "x$withval" != "x" ; then
17038              db_user=$withval
17039         fi
17040
17041
17042 fi
17043
17044
17045
17046
17047 #
17048 # Handle users and groups for each daemon
17049 #
17050 dir_user=
17051
17052 # Check whether --with-dir_user was given.
17053 if test "${with_dir_user+set}" = set; then
17054   withval=$with_dir_user;
17055         if test "x$withval" != "x" ; then
17056              dir_user=$withval
17057         fi
17058
17059
17060 fi
17061
17062
17063 dir_group=
17064
17065 # Check whether --with-dir_group was given.
17066 if test "${with_dir_group+set}" = set; then
17067   withval=$with_dir_group;
17068         if test "x$withval" != "x" ; then
17069              dir_group=$withval
17070         fi
17071
17072
17073 fi
17074
17075
17076 sd_user=
17077
17078 # Check whether --with-sd_user was given.
17079 if test "${with_sd_user+set}" = set; then
17080   withval=$with_sd_user;
17081         if test "x$withval" != "x" ; then
17082              sd_user=$withval
17083         fi
17084
17085
17086 fi
17087
17088
17089 sd_group=
17090
17091 # Check whether --with-sd_group was given.
17092 if test "${with_sd_group+set}" = set; then
17093   withval=$with_sd_group;
17094         if test "x$withval" != "x" ; then
17095              sd_group=$withval
17096         fi
17097
17098
17099 fi
17100
17101
17102 fd_user=
17103
17104 # Check whether --with-fd_user was given.
17105 if test "${with_fd_user+set}" = set; then
17106   withval=$with_fd_user;
17107         if test "x$withval" != "x" ; then
17108              fd_user=$withval
17109         fi
17110
17111
17112 fi
17113
17114
17115 fd_group=
17116
17117 # Check whether --with-fd_group was given.
17118 if test "${with_fd_group+set}" = set; then
17119   withval=$with_fd_group;
17120         if test "x$withval" != "x" ; then
17121              fd_group=$withval
17122         fi
17123
17124
17125 fi
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135 #
17136 # allow setting default executable permissions
17137 #
17138 SBINPERM=0754
17139
17140 # Check whether --with-sbin-perm was given.
17141 if test "${with_sbin_perm+set}" = set; then
17142   withval=$with_sbin_perm;
17143         if test "x$withval" != "x" ; then
17144             SBINPERM=$withval
17145         fi
17146
17147
17148 fi
17149
17150
17151
17152
17153 # ------------------------------------------------
17154 # Bacula check for various SQL database engines
17155 # ------------------------------------------------
17156 SQL_LIB=
17157
17158 db_found=no
17159 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17160 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17161
17162 # Check whether --with-postgresql was given.
17163 if test "${with_postgresql+set}" = set; then
17164   withval=$with_postgresql;
17165   if test "$withval" != "no"; then
17166       if test "$db_found" = "yes"; then
17167           { echo "$as_me:$LINENO: result: error" >&5
17168 echo "${ECHO_T}error" >&6; }
17169           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17170 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17171    { (exit 1); exit 1; }; };
17172       fi
17173       if test "$withval" = "yes"; then
17174           PG_CONFIG=`which pg_config`
17175           if test -n "$PG_CONFIG";then
17176               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17177               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17178               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17179           elif test -f /usr/local/include/libpq-fe.h; then
17180               POSTGRESQL_INCDIR=/usr/local/include
17181               if test -d /usr/local/lib64; then
17182                  POSTGRESQL_LIBDIR=/usr/local/lib64
17183               else
17184                  POSTGRESQL_LIBDIR=/usr/local/lib
17185               fi
17186               POSTGRESQL_BINDIR=/usr/local/bin
17187           elif test -f /usr/include/libpq-fe.h; then
17188               POSTGRESQL_INCDIR=/usr/include
17189               if test -d /usr/lib64; then
17190                  POSTGRESQL_LIBDIR=/usr/lib64
17191               else
17192                  POSTGRESQL_LIBDIR=/usr/lib
17193               fi
17194               POSTGRESQL_BINDIR=/usr/bin
17195           elif test -f /usr/include/pgsql/libpq-fe.h; then
17196               POSTGRESQL_INCDIR=/usr/include/pgsql
17197               if test -d /usr/lib64/pgsql; then
17198                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17199               else
17200                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17201               fi
17202               POSTGRESQL_BINDIR=/usr/bin
17203           elif test -f /usr/include/postgresql/libpq-fe.h; then
17204               POSTGRESQL_INCDIR=/usr/include/postgresql
17205               if test -d /usr/lib64/postgresql; then
17206                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17207               else
17208                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17209               fi
17210               POSTGRESQL_BINDIR=/usr/bin
17211           else
17212               { echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6; }
17214               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17215 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17216    { (exit 1); exit 1; }; }
17217           fi
17218       elif test -f $withval/include/libpq-fe.h; then
17219           POSTGRESQL_INCDIR=$withval/include
17220           POSTGRESQL_LIBDIR=$withval/lib
17221           POSTGRESQL_BINDIR=$withval/bin
17222       elif test -f $withval/include/postgresql/libpq-fe.h; then
17223           POSTGRESQL_INCDIR=$withval/include/postgresql
17224      if test -d $withval/lib64; then
17225          POSTGRESQL_LIBDIR=$withval/lib64
17226      else
17227          POSTGRESQL_LIBDIR=$withval/lib
17228      fi
17229           POSTGRESQL_BINDIR=$withval/bin
17230       else
17231           { echo "$as_me:$LINENO: result: no" >&5
17232 echo "${ECHO_T}no" >&6; }
17233           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17234 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17235    { (exit 1); exit 1; }; }
17236       fi
17237       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17238       { echo "$as_me:$LINENO: checking for crypt" >&5
17239 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17240 if test "${ac_cv_func_crypt+set}" = set; then
17241   echo $ECHO_N "(cached) $ECHO_C" >&6
17242 else
17243   cat >conftest.$ac_ext <<_ACEOF
17244 /* confdefs.h.  */
17245 _ACEOF
17246 cat confdefs.h >>conftest.$ac_ext
17247 cat >>conftest.$ac_ext <<_ACEOF
17248 /* end confdefs.h.  */
17249 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17250    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17251 #define crypt innocuous_crypt
17252
17253 /* System header to define __stub macros and hopefully few prototypes,
17254     which can conflict with char crypt (); below.
17255     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17256     <limits.h> exists even on freestanding compilers.  */
17257
17258 #ifdef __STDC__
17259 # include <limits.h>
17260 #else
17261 # include <assert.h>
17262 #endif
17263
17264 #undef crypt
17265
17266 /* Override any GCC internal prototype to avoid an error.
17267    Use char because int might match the return type of a GCC
17268    builtin and then its argument prototype would still apply.  */
17269 #ifdef __cplusplus
17270 extern "C"
17271 #endif
17272 char crypt ();
17273 /* The GNU C library defines this for functions which it implements
17274     to always fail with ENOSYS.  Some functions are actually named
17275     something starting with __ and the normal name is an alias.  */
17276 #if defined __stub_crypt || defined __stub___crypt
17277 choke me
17278 #endif
17279
17280 int
17281 main ()
17282 {
17283 return crypt ();
17284   ;
17285   return 0;
17286 }
17287 _ACEOF
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (ac_try="$ac_link"
17290 case "(($ac_try" in
17291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292   *) ac_try_echo=$ac_try;;
17293 esac
17294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17295   (eval "$ac_link") 2>conftest.er1
17296   ac_status=$?
17297   grep -v '^ *+' conftest.er1 >conftest.err
17298   rm -f conftest.er1
17299   cat conftest.err >&5
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); } && {
17302          test -z "$ac_c_werror_flag" ||
17303          test ! -s conftest.err
17304        } && test -s conftest$ac_exeext &&
17305        $as_test_x conftest$ac_exeext; then
17306   ac_cv_func_crypt=yes
17307 else
17308   echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17310
17311         ac_cv_func_crypt=no
17312 fi
17313
17314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17315       conftest$ac_exeext conftest.$ac_ext
17316 fi
17317 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17318 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17319 if test $ac_cv_func_crypt = yes; then
17320   :
17321 else
17322   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17323 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17324 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17325   echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327   ac_check_lib_save_LIBS=$LIBS
17328 LIBS="-lcrypt  $LIBS"
17329 cat >conftest.$ac_ext <<_ACEOF
17330 /* confdefs.h.  */
17331 _ACEOF
17332 cat confdefs.h >>conftest.$ac_ext
17333 cat >>conftest.$ac_ext <<_ACEOF
17334 /* end confdefs.h.  */
17335
17336 /* Override any GCC internal prototype to avoid an error.
17337    Use char because int might match the return type of a GCC
17338    builtin and then its argument prototype would still apply.  */
17339 #ifdef __cplusplus
17340 extern "C"
17341 #endif
17342 char crypt ();
17343 int
17344 main ()
17345 {
17346 return crypt ();
17347   ;
17348   return 0;
17349 }
17350 _ACEOF
17351 rm -f conftest.$ac_objext conftest$ac_exeext
17352 if { (ac_try="$ac_link"
17353 case "(($ac_try" in
17354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17355   *) ac_try_echo=$ac_try;;
17356 esac
17357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17358   (eval "$ac_link") 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } && {
17365          test -z "$ac_c_werror_flag" ||
17366          test ! -s conftest.err
17367        } && test -s conftest$ac_exeext &&
17368        $as_test_x conftest$ac_exeext; then
17369   ac_cv_lib_crypt_crypt=yes
17370 else
17371   echo "$as_me: failed program was:" >&5
17372 sed 's/^/| /' conftest.$ac_ext >&5
17373
17374         ac_cv_lib_crypt_crypt=no
17375 fi
17376
17377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17378       conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17380 fi
17381 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17382 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17383 if test $ac_cv_lib_crypt_crypt = yes; then
17384   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17385 fi
17386
17387 fi
17388
17389       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17390       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17391       SQL_BINDIR=$POSTGRESQL_BINDIR
17392       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17393
17394       cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_POSTGRESQL 1
17396 _ACEOF
17397
17398       { echo "$as_me:$LINENO: result: yes" >&5
17399 echo "${ECHO_T}yes" >&6; }
17400       db_found=yes
17401       support_postgresql=yes
17402       db_type=PostgreSQL
17403       DB_TYPE=postgresql
17404   else
17405       { echo "$as_me:$LINENO: result: no" >&5
17406 echo "${ECHO_T}no" >&6; }
17407   fi
17408
17409 else
17410
17411   { echo "$as_me:$LINENO: result: no" >&5
17412 echo "${ECHO_T}no" >&6; }
17413
17414 fi
17415
17416
17417
17418
17419
17420
17421
17422
17423 db_found=no
17424 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17425 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17426
17427 # Check whether --with-mysql was given.
17428 if test "${with_mysql+set}" = set; then
17429   withval=$with_mysql;
17430   if test "$withval" != "no"; then
17431         if test "$withval" = "yes"; then
17432            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17433                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17434                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17435                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17436                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17437                    else
17438                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17439                    fi
17440                    MYSQL_BINDIR=/usr/local/mysql/bin
17441            elif test -f /usr/include/mysql/mysql.h; then
17442                    MYSQL_INCDIR=/usr/include/mysql
17443                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17444                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17445                            MYSQL_LIBDIR=/usr/lib64/mysql
17446                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17447                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17448                            MYSQL_LIBDIR=/usr/lib/mysql
17449                    else
17450                            MYSQL_LIBDIR=/usr/lib
17451                    fi
17452                    MYSQL_BINDIR=/usr/bin
17453            elif test -f /usr/include/mysql.h; then
17454                    MYSQL_INCDIR=/usr/include
17455                    if test -f /usr/lib64/libmysqlclient_r.a \
17456                         -o -f /usr/lib64/libmysqlclient_r.so; then
17457                            MYSQL_LIBDIR=/usr/lib64
17458                    else
17459                            MYSQL_LIBDIR=/usr/lib
17460                    fi
17461                    MYSQL_BINDIR=/usr/bin
17462            elif test -f /usr/local/include/mysql/mysql.h; then
17463                    MYSQL_INCDIR=/usr/local/include/mysql
17464                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17465                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17466                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17467                    else
17468                            MYSQL_LIBDIR=/usr/local/lib/mysql
17469                    fi
17470                    MYSQL_BINDIR=/usr/local/bin
17471            elif test -f /usr/local/include/mysql.h; then
17472                    MYSQL_INCDIR=/usr/local/include
17473                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17474                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17475                            MYSQL_LIBDIR=/usr/local/lib64
17476                    else
17477                            MYSQL_LIBDIR=/usr/local/lib
17478                    fi
17479                    MYSQL_BINDIR=/usr/local/bin
17480            else
17481               { echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6; }
17483               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17484 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17485    { (exit 1); exit 1; }; }
17486            fi
17487         else
17488            if test -f $withval/include/mysql/mysql.h; then
17489               MYSQL_INCDIR=$withval/include/mysql
17490               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17491                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17492                  MYSQL_LIBDIR=$withval/lib64/mysql
17493               else
17494                  MYSQL_LIBDIR=$withval/lib/mysql
17495                  # Solaris ...
17496                  if test -f $withval/lib/libmysqlclient_r.so; then
17497                     MYSQL_LIBDIR=$withval/lib
17498                  fi
17499               fi
17500               MYSQL_BINDIR=$withval/bin
17501            elif test -f $withval/include/mysql.h; then
17502               MYSQL_INCDIR=$withval/include
17503               if test -f $withval/lib64/libmysqlclient_r.a \
17504                    -o -f $withval/lib64/libmysqlclient_r.so; then
17505                  MYSQL_LIBDIR=$withval/lib64
17506               else
17507                  MYSQL_LIBDIR=$withval/lib
17508               fi
17509               MYSQL_BINDIR=$withval/bin
17510            else
17511               { echo "$as_me:$LINENO: result: no" >&5
17512 echo "${ECHO_T}no" >&6; }
17513               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17514 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17515    { (exit 1); exit 1; }; }
17516            fi
17517         fi
17518     SQL_INCLUDE=-I$MYSQL_INCDIR
17519     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17520          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17521        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17522        cat >>confdefs.h <<\_ACEOF
17523 #define HAVE_THREAD_SAFE_MYSQL 1
17524 _ACEOF
17525
17526     fi
17527     SQL_BINDIR=$MYSQL_BINDIR
17528     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17529
17530     cat >>confdefs.h <<\_ACEOF
17531 #define HAVE_MYSQL 1
17532 _ACEOF
17533
17534     { echo "$as_me:$LINENO: result: yes" >&5
17535 echo "${ECHO_T}yes" >&6; }
17536     db_found=yes
17537     support_mysql=yes
17538     db_type=MySQL
17539     DB_TYPE=mysql
17540
17541   else
17542         { echo "$as_me:$LINENO: result: no" >&5
17543 echo "${ECHO_T}no" >&6; }
17544   fi
17545
17546
17547 fi
17548
17549
17550
17551 # Check whether --with-embedded-mysql was given.
17552 if test "${with_embedded_mysql+set}" = set; then
17553   withval=$with_embedded_mysql;
17554   if test "$withval" != "no"; then
17555         if test "$withval" = "yes"; then
17556                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17557                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17558                         if test -d /usr/local/mysql/lib64/mysql; then
17559                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17560                         else
17561                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17562                         fi
17563                         MYSQL_BINDIR=/usr/local/mysql/bin
17564                 elif test -f /usr/include/mysql/mysql.h; then
17565                         MYSQL_INCDIR=/usr/include/mysql
17566                         if test -d /usr/lib64/mysql; then
17567                                 MYSQL_LIBDIR=/usr/lib64/mysql
17568                         else
17569                                 MYSQL_LIBDIR=/usr/lib/mysql
17570                         fi
17571                         MYSQL_BINDIR=/usr/bin
17572                 elif test -f /usr/include/mysql.h; then
17573                         MYSQL_INCDIR=/usr/include
17574                         if test -d /usr/lib64; then
17575                                 MYSQL_LIBDIR=/usr/lib64
17576                         else
17577                                 MYSQL_LIBDIR=/usr/lib
17578                         fi
17579                         MYSQL_BINDIR=/usr/bin
17580                 elif test -f /usr/local/include/mysql/mysql.h; then
17581                         MYSQL_INCDIR=/usr/local/include/mysql
17582                         if test -d /usr/local/lib64/mysql; then
17583                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17584                         else
17585                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17586                         fi
17587                         MYSQL_BINDIR=/usr/local/bin
17588                 elif test -f /usr/local/include/mysql.h; then
17589                         MYSQL_INCDIR=/usr/local/include
17590                         if test -d /usr/local/lib64; then
17591                                 MYSQL_LIBDIR=/usr/local/lib64
17592                         else
17593                                 MYSQL_LIBDIR=/usr/local/lib
17594                         fi
17595                         MYSQL_BINDIR=/usr/local/bin
17596                 else
17597                    { echo "$as_me:$LINENO: result: no" >&5
17598 echo "${ECHO_T}no" >&6; }
17599                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17600 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17601    { (exit 1); exit 1; }; }
17602                 fi
17603         else
17604                 if test -f $withval/include/mysql/mysql.h; then
17605                         MYSQL_INCDIR=$withval/include/mysql
17606                         if test -d $withval/lib64/mysql; then
17607                                 MYSQL_LIBDIR=$withval/lib64/mysql
17608                         else
17609                                 MYSQL_LIBDIR=$withval/lib/mysql
17610                         fi
17611                         MYSQL_BINDIR=$withval/bin
17612                 elif test -f $withval/include/mysql.h; then
17613                         MYSQL_INCDIR=$withval/include
17614                         if test -d $withval/lib64; then
17615                                 MYSQL_LIBDIR=$withval/lib64
17616                         else
17617                                 MYSQL_LIBDIR=$withval/lib
17618                         fi
17619                         MYSQL_BINDIR=$withval/bin
17620                 else
17621                    { echo "$as_me:$LINENO: result: no" >&5
17622 echo "${ECHO_T}no" >&6; }
17623                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17624 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17625    { (exit 1); exit 1; }; }
17626                 fi
17627         fi
17628     SQL_INCLUDE=-I$MYSQL_INCDIR
17629     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17630     SQL_BINDIR=$MYSQL_BINDIR
17631     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17632
17633     cat >>confdefs.h <<\_ACEOF
17634 #define HAVE_MYSQL 1
17635 _ACEOF
17636
17637     cat >>confdefs.h <<\_ACEOF
17638 #define HAVE_EMBEDDED_MYSQL 1
17639 _ACEOF
17640
17641     { echo "$as_me:$LINENO: result: yes" >&5
17642 echo "${ECHO_T}yes" >&6; }
17643     db_found=yes
17644     support_mysql=yes
17645     db_type=MySQL
17646     DB_TYPE=mysql
17647
17648   else
17649         { echo "$as_me:$LINENO: result: no" >&5
17650 echo "${ECHO_T}no" >&6; }
17651   fi
17652
17653
17654 fi
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665 db_found=no
17666 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17667 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17668
17669 # Check whether --with-sqlite3 was given.
17670 if test "${with_sqlite3+set}" = set; then
17671   withval=$with_sqlite3;
17672   if test "$withval" != "no"; then
17673      if test "$withval" = "yes"; then
17674         if test -f /usr/local/include/sqlite3.h; then
17675            SQLITE_INCDIR=/usr/local/include
17676            if test -d /usr/local/lib64; then
17677               SQLITE_LIBDIR=/usr/local/lib64
17678            else
17679               SQLITE_LIBDIR=/usr/local/lib
17680            fi
17681            SQLITE_BINDIR=/usr/local/bin
17682         elif test -f /usr/include/sqlite3.h; then
17683            SQLITE_INCDIR=/usr/include
17684            if test -d /usr/lib64; then
17685               SQLITE_LIBDIR=/usr/lib64
17686            else
17687               SQLITE_LIBDIR=/usr/lib
17688            fi
17689            SQLITE_BINDIR=/usr/bin
17690         elif test -f $prefix/include/sqlite3.h; then
17691            SQLITE_INCDIR=$prefix/include
17692            if test -d $prefix/lib64; then
17693               SQLITE_LIBDIR=$prefix/lib64
17694            else
17695               SQLITE_LIBDIR=$prefix/lib
17696            fi
17697            SQLITE_BINDIR=$prefix/bin
17698         else
17699            { echo "$as_me:$LINENO: result: no" >&5
17700 echo "${ECHO_T}no" >&6; }
17701            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17702 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17703    { (exit 1); exit 1; }; }
17704         fi
17705      else
17706         if test -f $withval/sqlite3.h; then
17707            SQLITE_INCDIR=$withval
17708            SQLITE_LIBDIR=$withval
17709            SQLITE_BINDIR=$withval
17710         elif test -f $withval/include/sqlite3.h; then
17711            SQLITE_INCDIR=$withval/include
17712            if test -d $withval/lib64; then
17713               SQLITE_LIBDIR=$withval/lib64
17714            else
17715               SQLITE_LIBDIR=$withval/lib
17716            fi
17717            SQLITE_BINDIR=$withval/bin
17718         else
17719            { echo "$as_me:$LINENO: result: no" >&5
17720 echo "${ECHO_T}no" >&6; }
17721            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17722 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17723    { (exit 1); exit 1; }; }
17724         fi
17725      fi
17726      SQL_INCLUDE=-I$SQLITE_INCDIR
17727      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17728      SQL_BINDIR=$SQLITE_BINDIR
17729      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17730
17731      cat >>confdefs.h <<\_ACEOF
17732 #define HAVE_SQLITE3 1
17733 _ACEOF
17734
17735      { echo "$as_me:$LINENO: result: yes" >&5
17736 echo "${ECHO_T}yes" >&6; }
17737      db_found=yes
17738      support_sqlite3=yes
17739      db_type=SQLite3
17740      DB_TYPE=sqlite3
17741
17742   else
17743      { echo "$as_me:$LINENO: result: no" >&5
17744 echo "${ECHO_T}no" >&6; }
17745   fi
17746
17747 else
17748
17749   { echo "$as_me:$LINENO: result: no" >&5
17750 echo "${ECHO_T}no" >&6; }
17751
17752 fi
17753
17754
17755
17756
17757
17758
17759
17760
17761 db_found=no
17762 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17763 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17764
17765 # Check whether --with-sqlite was given.
17766 if test "${with_sqlite+set}" = set; then
17767   withval=$with_sqlite;
17768   if test "$withval" != "no"; then
17769      if test "$withval" = "yes"; then
17770         if test -f /usr/local/include/sqlite.h; then
17771            SQLITE_INCDIR=/usr/local/include
17772            if test -d /usr/local/lib64; then
17773               SQLITE_LIBDIR=/usr/local/lib64
17774            else
17775               SQLITE_LIBDIR=/usr/local/lib
17776            fi
17777            SQLITE_BINDIR=/usr/local/bin
17778         elif test -f /usr/include/sqlite.h; then
17779            SQLITE_INCDIR=/usr/include
17780            if test -d /usr/lib64; then
17781               SQLITE_LIBDIR=/usr/lib64
17782            else
17783               SQLITE_LIBDIR=/usr/lib
17784            fi
17785            SQLITE_BINDIR=/usr/bin
17786         elif test -f $prefix/include/sqlite.h; then
17787            SQLITE_INCDIR=$prefix/include
17788            if test -d $prefix/lib64; then
17789               SQLITE_LIBDIR=$prefix/lib64
17790            else
17791               SQLITE_LIBDIR=$prefix/lib
17792            fi
17793            SQLITE_BINDIR=$prefix/bin
17794         else
17795            { echo "$as_me:$LINENO: result: no" >&5
17796 echo "${ECHO_T}no" >&6; }
17797            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17798 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17799    { (exit 1); exit 1; }; }
17800         fi
17801      else
17802         if test -f $withval/sqlite.h; then
17803            SQLITE_INCDIR=$withval
17804            SQLITE_LIBDIR=$withval
17805            SQLITE_BINDIR=$withval
17806         elif test -f $withval/include/sqlite.h; then
17807            SQLITE_INCDIR=$withval/include
17808            if test -d $withval/lib64; then
17809               SQLITE_LIBDIR=$withval/lib64
17810            else
17811               SQLITE_LIBDIR=$withval/lib
17812            fi
17813            SQLITE_BINDIR=$withval/bin
17814         else
17815            { echo "$as_me:$LINENO: result: no" >&5
17816 echo "${ECHO_T}no" >&6; }
17817            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17818 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17819    { (exit 1); exit 1; }; }
17820         fi
17821      fi
17822      SQL_INCLUDE=-I$SQLITE_INCDIR
17823      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17824      SQL_BINDIR=$SQLITE_BINDIR
17825      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17826
17827      cat >>confdefs.h <<\_ACEOF
17828 #define HAVE_SQLITE 1
17829 _ACEOF
17830
17831      { echo "$as_me:$LINENO: result: yes" >&5
17832 echo "${ECHO_T}yes" >&6; }
17833      db_found=yes
17834      support_sqlite=yes
17835      db_type=SQLite
17836      DB_TYPE=sqlite
17837
17838   else
17839      { echo "$as_me:$LINENO: result: no" >&5
17840 echo "${ECHO_T}no" >&6; }
17841   fi
17842
17843 else
17844
17845   { echo "$as_me:$LINENO: result: no" >&5
17846 echo "${ECHO_T}no" >&6; }
17847
17848 fi
17849
17850
17851
17852
17853
17854
17855
17856
17857 db_found=no
17858 { echo "$as_me:$LINENO: checking for DBI support" >&5
17859 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17860
17861 # Check whether --with-dbi was given.
17862 if test "${with_dbi+set}" = set; then
17863   withval=$with_dbi;
17864   if test "$withval" != "no"; then
17865      if test "$withval" = "yes"; then
17866         if test -f /usr/local/include/dbi/dbi.h; then
17867            DBI_INCDIR=/usr/local/dbi/include
17868            if test -d /usr/local/lib64; then
17869               DBI_LIBDIR=/usr/local/lib64
17870            else
17871               DBI_LIBDIR=/usr/local/lib
17872            fi
17873            DBI_BINDIR=/usr/local/bin
17874         elif test -f /usr/include/dbi/dbi.h; then
17875            DBI_INCDIR=/usr/include
17876            if test -d /usr/lib64; then
17877               DBI_LIBDIR=/usr/lib64
17878            else
17879               DBI_LIBDIR=/usr/lib
17880            fi
17881            DBI_BINDIR=/usr/bin
17882         elif test -f $prefix/include/dbi/dbi.h; then
17883            DBI_INCDIR=$prefix/include
17884            if test -d $prefix/lib64; then
17885               DBI_LIBDIR=$prefix/lib64
17886            else
17887               DBI_LIBDIR=$prefix/lib
17888            fi
17889            DBI_BINDIR=$prefix/bin
17890         else
17891            { echo "$as_me:$LINENO: result: no" >&5
17892 echo "${ECHO_T}no" >&6; }
17893            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17894 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17895    { (exit 1); exit 1; }; }
17896         fi
17897         if test -d /usr/local/lib/dbd; then
17898            DRIVERDIR=/usr/local/lib/dbd
17899            if test -d /usr/local/lib64/dbd; then
17900               DRIVERDIR=/usr/local/lib64/dbd
17901            else
17902               DRIVERDIR=/usr/local/lib/dbd
17903            fi
17904         elif test -d /usr/lib/dbd; then
17905            DRIVERDIR=/usr/lib/dbd
17906            if test -d /usr/lib64/dbd; then
17907               DRIVERDIR=/usr/lib64/dbd
17908            else
17909               DRIVERDIR=/usr/lib/dbd
17910            fi
17911         elif test -d $prefix/lib/dbd; then
17912            if test -d $prefix/lib64/dbd; then
17913               DRIVERDIR=$prefix/lib64/dbd
17914            else
17915               DRIVERDIR=$prefix/lib/dbd
17916            fi
17917         else
17918            { echo "$as_me:$LINENO: result: no" >&5
17919 echo "${ECHO_T}no" >&6; }
17920            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17921 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17922    { (exit 1); exit 1; }; }
17923         fi
17924      else
17925         if test -f $withval/dbi.h; then
17926            DBI_INCDIR=$withval
17927            DBI_LIBDIR=$withval
17928            DBI_BINDIR=$withval
17929         elif test -f $withval/include/dbi/dbi.h; then
17930            DBI_INCDIR=$withval/include
17931            if test -d $withval/lib64; then
17932               DBI_LIBDIR=$withval/lib64
17933            else
17934               DBI_LIBDIR=$withval/lib
17935            fi
17936            DBI_BINDIR=$withval/bin
17937         else
17938            { echo "$as_me:$LINENO: result: no" >&5
17939 echo "${ECHO_T}no" >&6; }
17940            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17941 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17942    { (exit 1); exit 1; }; }
17943         fi
17944         if test -d $withval/dbd; then
17945            DRIVERDIR=$withval/dbd
17946         elif test -d $withval/lib/; then
17947            if test -d $withval/lib64/dbd; then
17948               DRIVERDIR=$withval/lib64/dbd
17949            else
17950               DRIVERDIR=$withval/lib/dbd
17951            fi
17952         else
17953            { echo "$as_me:$LINENO: result: no" >&5
17954 echo "${ECHO_T}no" >&6; }
17955            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17956 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17957    { (exit 1); exit 1; }; }
17958         fi
17959      fi
17960      SQL_INCLUDE=-I$DBI_INCDIR
17961      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17962      SQL_BINDIR=$DBI_BINDIR
17963      SQL_LIB=$DBI_LIBDIR/libdbi.a
17964      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
17965
17966      cat >>confdefs.h <<\_ACEOF
17967 #define HAVE_DBI 1
17968 _ACEOF
17969
17970      { echo "$as_me:$LINENO: result: yes" >&5
17971 echo "${ECHO_T}yes" >&6; }
17972      db_found=yes
17973      support_dbi=yes
17974      db_type=DBI
17975      DB_TYPE=dbi
17976
17977   else
17978      { echo "$as_me:$LINENO: result: no" >&5
17979 echo "${ECHO_T}no" >&6; }
17980   fi
17981
17982 else
17983
17984   { echo "$as_me:$LINENO: result: no" >&5
17985 echo "${ECHO_T}no" >&6; }
17986
17987 fi
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999 # -------------------------------------------
18000 # enable batch attribute DB insert (default on)
18001 # -------------------------------------------
18002 support_batch_insert=no
18003 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18004 pkg=$?
18005 if test $pkg = 0; then
18006    support_batch_insert=yes
18007    # Check whether --enable-batch-insert was given.
18008 if test "${enable_batch_insert+set}" = set; then
18009   enableval=$enable_batch_insert; if test x$enableval = xno; then
18010        support_batch_insert=no
18011       else
18012        support_batch_insert=yes
18013      fi
18014 fi
18015
18016 fi
18017
18018 # Check if postgresql support batch mode
18019 if test x$DB_TYPE = xpostgresql; then
18020    A=`nm $SQL_LIB | grep PQputCopyData`
18021    pkg=$?
18022    if test $pkg != 0; then
18023       support_batch_insert=no
18024    fi
18025 fi
18026
18027 if test $support_batch_insert = yes ; then
18028
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_BATCH_FILE_INSERT 1
18031 _ACEOF
18032
18033 fi
18034
18035
18036 cat >>confdefs.h <<\_ACEOF
18037 #define PROTOTYPES 1
18038 _ACEOF
18039
18040
18041 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18042     if test -z "$CCOPTS"; then
18043         CCOPTS='-g -O2 -Wall'
18044     fi
18045     CFLAGS="$CCOPTS"
18046 fi
18047
18048
18049
18050
18051 largefile_support="no"
18052
18053    # Check whether --enable-largefile was given.
18054 if test "${enable_largefile+set}" = set; then
18055   enableval=$enable_largefile;
18056 fi
18057
18058    if test "$enable_largefile" != no; then
18059      if test -n "$ac_tool_prefix"; then
18060   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18061 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18064 if test "${ac_cv_prog_GETCONF+set}" = set; then
18065   echo $ECHO_N "(cached) $ECHO_C" >&6
18066 else
18067   if test -n "$GETCONF"; then
18068   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18069 else
18070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18071 for as_dir in $PATH
18072 do
18073   IFS=$as_save_IFS
18074   test -z "$as_dir" && as_dir=.
18075   for ac_exec_ext in '' $ac_executable_extensions; do
18076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18077     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18079     break 2
18080   fi
18081 done
18082 done
18083 IFS=$as_save_IFS
18084
18085 fi
18086 fi
18087 GETCONF=$ac_cv_prog_GETCONF
18088 if test -n "$GETCONF"; then
18089   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18090 echo "${ECHO_T}$GETCONF" >&6; }
18091 else
18092   { echo "$as_me:$LINENO: result: no" >&5
18093 echo "${ECHO_T}no" >&6; }
18094 fi
18095
18096
18097 fi
18098 if test -z "$ac_cv_prog_GETCONF"; then
18099   ac_ct_GETCONF=$GETCONF
18100   # Extract the first word of "getconf", so it can be a program name with args.
18101 set dummy getconf; ac_word=$2
18102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18104 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18105   echo $ECHO_N "(cached) $ECHO_C" >&6
18106 else
18107   if test -n "$ac_ct_GETCONF"; then
18108   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18109 else
18110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18111 for as_dir in $PATH
18112 do
18113   IFS=$as_save_IFS
18114   test -z "$as_dir" && as_dir=.
18115   for ac_exec_ext in '' $ac_executable_extensions; do
18116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18117     ac_cv_prog_ac_ct_GETCONF="getconf"
18118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18119     break 2
18120   fi
18121 done
18122 done
18123 IFS=$as_save_IFS
18124
18125 fi
18126 fi
18127 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18128 if test -n "$ac_ct_GETCONF"; then
18129   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18130 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18131 else
18132   { echo "$as_me:$LINENO: result: no" >&5
18133 echo "${ECHO_T}no" >&6; }
18134 fi
18135
18136   if test "x$ac_ct_GETCONF" = x; then
18137     GETCONF=""
18138   else
18139     case $cross_compiling:$ac_tool_warned in
18140 yes:)
18141 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18142 whose name does not start with the host triplet.  If you think this
18143 configuration is useful to you, please write to autoconf@gnu.org." >&5
18144 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18145 whose name does not start with the host triplet.  If you think this
18146 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18147 ac_tool_warned=yes ;;
18148 esac
18149     GETCONF=$ac_ct_GETCONF
18150   fi
18151 else
18152   GETCONF="$ac_cv_prog_GETCONF"
18153 fi
18154
18155      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18156 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18157 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18158   echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18161         ac_cv_sys_largefile_CFLAGS=no
18162         case "$host_os" in
18163            # IRIX 6.2 and later require cc -n32.
18164            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18165              if test "$GCC" != yes; then
18166                ac_cv_sys_largefile_CFLAGS=-n32
18167              fi
18168              ac_save_CC="$CC"
18169              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18170              cat >conftest.$ac_ext <<_ACEOF
18171 /* confdefs.h.  */
18172 _ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h.  */
18176
18177 int
18178 main ()
18179 {
18180
18181   ;
18182   return 0;
18183 }
18184 _ACEOF
18185 rm -f conftest.$ac_objext conftest$ac_exeext
18186 if { (ac_try="$ac_link"
18187 case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_link") 2>conftest.er1
18193   ac_status=$?
18194   grep -v '^ *+' conftest.er1 >conftest.err
18195   rm -f conftest.er1
18196   cat conftest.err >&5
18197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198   (exit $ac_status); } && {
18199          test -z "$ac_c_werror_flag" ||
18200          test ! -s conftest.err
18201        } && test -s conftest$ac_exeext &&
18202        $as_test_x conftest$ac_exeext; then
18203   :
18204 else
18205   echo "$as_me: failed program was:" >&5
18206 sed 's/^/| /' conftest.$ac_ext >&5
18207
18208         ac_cv_sys_largefile_CFLAGS=no
18209 fi
18210
18211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18212       conftest$ac_exeext conftest.$ac_ext
18213              CC="$ac_save_CC"
18214            esac
18215       }
18216 fi
18217 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18218 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18219      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18220 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18221 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18222   echo $ECHO_N "(cached) $ECHO_C" >&6
18223 else
18224   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18225         ac_cv_sys_largefile_LDFLAGS=no
18226
18227       }
18228 fi
18229 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18230 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18231      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18232 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18233 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18234   echo $ECHO_N "(cached) $ECHO_C" >&6
18235 else
18236   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18237         ac_cv_sys_largefile_LIBS=no
18238
18239       }
18240 fi
18241 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18242 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18243
18244      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18245        case "$ac_flag" in
18246        no) ;;
18247        -D_FILE_OFFSET_BITS=*) ;;
18248        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18249        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18250        -D?* | -I?*)
18251          case "$ac_flag" in
18252    no) ;;
18253    ?*)
18254      case "$CPPFLAGS" in
18255      '') CPPFLAGS="$ac_flag" ;;
18256      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18257      esac ;;
18258    esac ;;
18259        *)
18260          case "$ac_flag" in
18261    no) ;;
18262    ?*)
18263      case "$CFLAGS" in
18264      '') CFLAGS="$ac_flag" ;;
18265      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18266      esac ;;
18267    esac ;;
18268        esac
18269      done
18270      case "$ac_cv_sys_largefile_LDFLAGS" in
18271    no) ;;
18272    ?*)
18273      case "$LDFLAGS" in
18274      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18275      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18276      esac ;;
18277    esac
18278      case "$ac_cv_sys_largefile_LIBS" in
18279    no) ;;
18280    ?*)
18281      case "$LIBS" in
18282      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18283      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18284      esac ;;
18285    esac
18286      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18287 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18288 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291   ac_cv_sys_file_offset_bits=no
18292       ac_cv_sys_file_offset_bits=64
18293       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18294         case "$ac_flag" in
18295         -D_FILE_OFFSET_BITS)
18296           ac_cv_sys_file_offset_bits=1 ;;
18297         -D_FILE_OFFSET_BITS=*)
18298           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18299         esac
18300       done
18301
18302 fi
18303 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18304 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18305    if test "$ac_cv_sys_file_offset_bits" != no; then
18306
18307 cat >>confdefs.h <<_ACEOF
18308 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18309 _ACEOF
18310
18311    fi
18312      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18313 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18314 if test "${ac_cv_sys_largefile_source+set}" = set; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   ac_cv_sys_largefile_source=no
18318       ac_cv_sys_largefile_source=1
18319       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18320         case "$ac_flag" in
18321         -D_LARGEFILE_SOURCE)
18322           ac_cv_sys_largefile_source=1 ;;
18323         -D_LARGEFILE_SOURCE=*)
18324           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18325         esac
18326       done
18327
18328 fi
18329 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18330 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18331    if test "$ac_cv_sys_largefile_source" != no; then
18332
18333 cat >>confdefs.h <<_ACEOF
18334 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18335 _ACEOF
18336
18337    fi
18338      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18339 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18340 if test "${ac_cv_sys_large_files+set}" = set; then
18341   echo $ECHO_N "(cached) $ECHO_C" >&6
18342 else
18343   ac_cv_sys_large_files=no
18344       ac_cv_sys_large_files=1
18345       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18346         case "$ac_flag" in
18347         -D_LARGE_FILES)
18348           ac_cv_sys_large_files=1 ;;
18349         -D_LARGE_FILES=*)
18350           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18351         esac
18352       done
18353
18354 fi
18355 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18356 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18357    if test "$ac_cv_sys_large_files" != no; then
18358
18359 cat >>confdefs.h <<_ACEOF
18360 #define _LARGE_FILES $ac_cv_sys_large_files
18361 _ACEOF
18362
18363    fi
18364    fi
18365
18366
18367
18368 { echo "$as_me:$LINENO: checking for X" >&5
18369 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18370
18371
18372 # Check whether --with-x was given.
18373 if test "${with_x+set}" = set; then
18374   withval=$with_x;
18375 fi
18376
18377 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18378 if test "x$with_x" = xno; then
18379   # The user explicitly disabled X.
18380   have_x=disabled
18381 else
18382   case $x_includes,$x_libraries in #(
18383     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18384 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18385    { (exit 1); exit 1; }; };; #(
18386     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18387   echo $ECHO_N "(cached) $ECHO_C" >&6
18388 else
18389   # One or both of the vars are not set, and there is no cached value.
18390 ac_x_includes=no ac_x_libraries=no
18391 rm -f -r conftest.dir
18392 if mkdir conftest.dir; then
18393   cd conftest.dir
18394   cat >Imakefile <<'_ACEOF'
18395 incroot:
18396         @echo incroot='${INCROOT}'
18397 usrlibdir:
18398         @echo usrlibdir='${USRLIBDIR}'
18399 libdir:
18400         @echo libdir='${LIBDIR}'
18401 _ACEOF
18402   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18403     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18404     for ac_var in incroot usrlibdir libdir; do
18405       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18406     done
18407     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18408     for ac_extension in a so sl; do
18409       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18410          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18411         ac_im_usrlibdir=$ac_im_libdir; break
18412       fi
18413     done
18414     # Screen out bogus values from the imake configuration.  They are
18415     # bogus both because they are the default anyway, and because
18416     # using them would break gcc on systems where it needs fixed includes.
18417     case $ac_im_incroot in
18418         /usr/include) ac_x_includes= ;;
18419         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18420     esac
18421     case $ac_im_usrlibdir in
18422         /usr/lib | /lib) ;;
18423         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18424     esac
18425   fi
18426   cd ..
18427   rm -f -r conftest.dir
18428 fi
18429
18430 # Standard set of common directories for X headers.
18431 # Check X11 before X11Rn because it is often a symlink to the current release.
18432 ac_x_header_dirs='
18433 /usr/X11/include
18434 /usr/X11R6/include
18435 /usr/X11R5/include
18436 /usr/X11R4/include
18437
18438 /usr/include/X11
18439 /usr/include/X11R6
18440 /usr/include/X11R5
18441 /usr/include/X11R4
18442
18443 /usr/local/X11/include
18444 /usr/local/X11R6/include
18445 /usr/local/X11R5/include
18446 /usr/local/X11R4/include
18447
18448 /usr/local/include/X11
18449 /usr/local/include/X11R6
18450 /usr/local/include/X11R5
18451 /usr/local/include/X11R4
18452
18453 /usr/X386/include
18454 /usr/x386/include
18455 /usr/XFree86/include/X11
18456
18457 /usr/include
18458 /usr/local/include
18459 /usr/unsupported/include
18460 /usr/athena/include
18461 /usr/local/x11r5/include
18462 /usr/lpp/Xamples/include
18463
18464 /usr/openwin/include
18465 /usr/openwin/share/include'
18466
18467 if test "$ac_x_includes" = no; then
18468   # Guess where to find include files, by looking for Xlib.h.
18469   # First, try using that file with no special directory specified.
18470   cat >conftest.$ac_ext <<_ACEOF
18471 /* confdefs.h.  */
18472 _ACEOF
18473 cat confdefs.h >>conftest.$ac_ext
18474 cat >>conftest.$ac_ext <<_ACEOF
18475 /* end confdefs.h.  */
18476 #include <X11/Xlib.h>
18477 _ACEOF
18478 if { (ac_try="$ac_cpp conftest.$ac_ext"
18479 case "(($ac_try" in
18480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481   *) ac_try_echo=$ac_try;;
18482 esac
18483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18484   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18485   ac_status=$?
18486   grep -v '^ *+' conftest.er1 >conftest.err
18487   rm -f conftest.er1
18488   cat conftest.err >&5
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); } >/dev/null && {
18491          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18492          test ! -s conftest.err
18493        }; then
18494   # We can compile using X headers with no special include directory.
18495 ac_x_includes=
18496 else
18497   echo "$as_me: failed program was:" >&5
18498 sed 's/^/| /' conftest.$ac_ext >&5
18499
18500   for ac_dir in $ac_x_header_dirs; do
18501   if test -r "$ac_dir/X11/Xlib.h"; then
18502     ac_x_includes=$ac_dir
18503     break
18504   fi
18505 done
18506 fi
18507
18508 rm -f conftest.err conftest.$ac_ext
18509 fi # $ac_x_includes = no
18510
18511 if test "$ac_x_libraries" = no; then
18512   # Check for the libraries.
18513   # See if we find them without any special options.
18514   # Don't add to $LIBS permanently.
18515   ac_save_LIBS=$LIBS
18516   LIBS="-lX11 $LIBS"
18517   cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 #include <X11/Xlib.h>
18524 int
18525 main ()
18526 {
18527 XrmInitialize ()
18528   ;
18529   return 0;
18530 }
18531 _ACEOF
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (ac_try="$ac_link"
18534 case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_link") 2>conftest.er1
18540   ac_status=$?
18541   grep -v '^ *+' conftest.er1 >conftest.err
18542   rm -f conftest.er1
18543   cat conftest.err >&5
18544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545   (exit $ac_status); } && {
18546          test -z "$ac_c_werror_flag" ||
18547          test ! -s conftest.err
18548        } && test -s conftest$ac_exeext &&
18549        $as_test_x conftest$ac_exeext; then
18550   LIBS=$ac_save_LIBS
18551 # We can link X programs with no special library path.
18552 ac_x_libraries=
18553 else
18554   echo "$as_me: failed program was:" >&5
18555 sed 's/^/| /' conftest.$ac_ext >&5
18556
18557         LIBS=$ac_save_LIBS
18558 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18559 do
18560   # Don't even attempt the hair of trying to link an X program!
18561   for ac_extension in a so sl; do
18562     if test -r "$ac_dir/libX11.$ac_extension"; then
18563       ac_x_libraries=$ac_dir
18564       break 2
18565     fi
18566   done
18567 done
18568 fi
18569
18570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18571       conftest$ac_exeext conftest.$ac_ext
18572 fi # $ac_x_libraries = no
18573
18574 case $ac_x_includes,$ac_x_libraries in #(
18575   no,* | *,no | *\'*)
18576     # Didn't find X, or a directory has "'" in its name.
18577     ac_cv_have_x="have_x=no";; #(
18578   *)
18579     # Record where we found X for the cache.
18580     ac_cv_have_x="have_x=yes\
18581         ac_x_includes='$ac_x_includes'\
18582         ac_x_libraries='$ac_x_libraries'"
18583 esac
18584 fi
18585 ;; #(
18586     *) have_x=yes;;
18587   esac
18588   eval "$ac_cv_have_x"
18589 fi # $with_x != no
18590
18591 if test "$have_x" != yes; then
18592   { echo "$as_me:$LINENO: result: $have_x" >&5
18593 echo "${ECHO_T}$have_x" >&6; }
18594   no_x=yes
18595 else
18596   # If each of the values was on the command line, it overrides each guess.
18597   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18598   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18599   # Update the cache value to reflect the command line values.
18600   ac_cv_have_x="have_x=yes\
18601         ac_x_includes='$x_includes'\
18602         ac_x_libraries='$x_libraries'"
18603   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18604 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18605 fi
18606
18607 if test "$no_x" = yes; then
18608   # Not all programs may use this symbol, but it does not hurt to define it.
18609
18610 cat >>confdefs.h <<\_ACEOF
18611 #define X_DISPLAY_MISSING 1
18612 _ACEOF
18613
18614   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18615 else
18616   if test -n "$x_includes"; then
18617     X_CFLAGS="$X_CFLAGS -I$x_includes"
18618   fi
18619
18620   # It would also be nice to do this for all -L options, not just this one.
18621   if test -n "$x_libraries"; then
18622     X_LIBS="$X_LIBS -L$x_libraries"
18623     # For Solaris; some versions of Sun CC require a space after -R and
18624     # others require no space.  Words are not sufficient . . . .
18625     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18626 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18627     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18628     ac_xsave_c_werror_flag=$ac_c_werror_flag
18629     ac_c_werror_flag=yes
18630     cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636
18637 int
18638 main ()
18639 {
18640
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_link") 2>conftest.er1
18653   ac_status=$?
18654   grep -v '^ *+' conftest.er1 >conftest.err
18655   rm -f conftest.er1
18656   cat conftest.err >&5
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); } && {
18659          test -z "$ac_c_werror_flag" ||
18660          test ! -s conftest.err
18661        } && test -s conftest$ac_exeext &&
18662        $as_test_x conftest$ac_exeext; then
18663   { echo "$as_me:$LINENO: result: no" >&5
18664 echo "${ECHO_T}no" >&6; }
18665        X_LIBS="$X_LIBS -R$x_libraries"
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670         LIBS="$ac_xsave_LIBS -R $x_libraries"
18671        cat >conftest.$ac_ext <<_ACEOF
18672 /* confdefs.h.  */
18673 _ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h.  */
18677
18678 int
18679 main ()
18680 {
18681
18682   ;
18683   return 0;
18684 }
18685 _ACEOF
18686 rm -f conftest.$ac_objext conftest$ac_exeext
18687 if { (ac_try="$ac_link"
18688 case "(($ac_try" in
18689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18690   *) ac_try_echo=$ac_try;;
18691 esac
18692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18693   (eval "$ac_link") 2>conftest.er1
18694   ac_status=$?
18695   grep -v '^ *+' conftest.er1 >conftest.err
18696   rm -f conftest.er1
18697   cat conftest.err >&5
18698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699   (exit $ac_status); } && {
18700          test -z "$ac_c_werror_flag" ||
18701          test ! -s conftest.err
18702        } && test -s conftest$ac_exeext &&
18703        $as_test_x conftest$ac_exeext; then
18704   { echo "$as_me:$LINENO: result: yes" >&5
18705 echo "${ECHO_T}yes" >&6; }
18706           X_LIBS="$X_LIBS -R $x_libraries"
18707 else
18708   echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18710
18711         { echo "$as_me:$LINENO: result: neither works" >&5
18712 echo "${ECHO_T}neither works" >&6; }
18713 fi
18714
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716       conftest$ac_exeext conftest.$ac_ext
18717 fi
18718
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720       conftest$ac_exeext conftest.$ac_ext
18721     ac_c_werror_flag=$ac_xsave_c_werror_flag
18722     LIBS=$ac_xsave_LIBS
18723   fi
18724
18725   # Check for system-dependent libraries X programs must link with.
18726   # Do this before checking for the system-independent R6 libraries
18727   # (-lICE), since we may need -lsocket or whatever for X linking.
18728
18729   if test "$ISC" = yes; then
18730     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18731   else
18732     # Martyn Johnson says this is needed for Ultrix, if the X
18733     # libraries were built with DECnet support.  And Karl Berry says
18734     # the Alpha needs dnet_stub (dnet does not exist).
18735     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18736     cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h.  */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h.  */
18742
18743 /* Override any GCC internal prototype to avoid an error.
18744    Use char because int might match the return type of a GCC
18745    builtin and then its argument prototype would still apply.  */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char XOpenDisplay ();
18750 int
18751 main ()
18752 {
18753 return XOpenDisplay ();
18754   ;
18755   return 0;
18756 }
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762   *) ac_try_echo=$ac_try;;
18763 esac
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765   (eval "$ac_link") 2>conftest.er1
18766   ac_status=$?
18767   grep -v '^ *+' conftest.er1 >conftest.err
18768   rm -f conftest.er1
18769   cat conftest.err >&5
18770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771   (exit $ac_status); } && {
18772          test -z "$ac_c_werror_flag" ||
18773          test ! -s conftest.err
18774        } && test -s conftest$ac_exeext &&
18775        $as_test_x conftest$ac_exeext; then
18776   :
18777 else
18778   echo "$as_me: failed program was:" >&5
18779 sed 's/^/| /' conftest.$ac_ext >&5
18780
18781         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18782 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18783 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18784   echo $ECHO_N "(cached) $ECHO_C" >&6
18785 else
18786   ac_check_lib_save_LIBS=$LIBS
18787 LIBS="-ldnet  $LIBS"
18788 cat >conftest.$ac_ext <<_ACEOF
18789 /* confdefs.h.  */
18790 _ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h.  */
18794
18795 /* Override any GCC internal prototype to avoid an error.
18796    Use char because int might match the return type of a GCC
18797    builtin and then its argument prototype would still apply.  */
18798 #ifdef __cplusplus
18799 extern "C"
18800 #endif
18801 char dnet_ntoa ();
18802 int
18803 main ()
18804 {
18805 return dnet_ntoa ();
18806   ;
18807   return 0;
18808 }
18809 _ACEOF
18810 rm -f conftest.$ac_objext conftest$ac_exeext
18811 if { (ac_try="$ac_link"
18812 case "(($ac_try" in
18813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18814   *) ac_try_echo=$ac_try;;
18815 esac
18816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18817   (eval "$ac_link") 2>conftest.er1
18818   ac_status=$?
18819   grep -v '^ *+' conftest.er1 >conftest.err
18820   rm -f conftest.er1
18821   cat conftest.err >&5
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); } && {
18824          test -z "$ac_c_werror_flag" ||
18825          test ! -s conftest.err
18826        } && test -s conftest$ac_exeext &&
18827        $as_test_x conftest$ac_exeext; then
18828   ac_cv_lib_dnet_dnet_ntoa=yes
18829 else
18830   echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.$ac_ext >&5
18832
18833         ac_cv_lib_dnet_dnet_ntoa=no
18834 fi
18835
18836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18837       conftest$ac_exeext conftest.$ac_ext
18838 LIBS=$ac_check_lib_save_LIBS
18839 fi
18840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18841 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18842 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18843   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18844 fi
18845
18846     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18847       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18848 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18849 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18850   echo $ECHO_N "(cached) $ECHO_C" >&6
18851 else
18852   ac_check_lib_save_LIBS=$LIBS
18853 LIBS="-ldnet_stub  $LIBS"
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h.  */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h.  */
18860
18861 /* Override any GCC internal prototype to avoid an error.
18862    Use char because int might match the return type of a GCC
18863    builtin and then its argument prototype would still apply.  */
18864 #ifdef __cplusplus
18865 extern "C"
18866 #endif
18867 char dnet_ntoa ();
18868 int
18869 main ()
18870 {
18871 return dnet_ntoa ();
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (ac_try="$ac_link"
18878 case "(($ac_try" in
18879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880   *) ac_try_echo=$ac_try;;
18881 esac
18882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18883   (eval "$ac_link") 2>conftest.er1
18884   ac_status=$?
18885   grep -v '^ *+' conftest.er1 >conftest.err
18886   rm -f conftest.er1
18887   cat conftest.err >&5
18888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18889   (exit $ac_status); } && {
18890          test -z "$ac_c_werror_flag" ||
18891          test ! -s conftest.err
18892        } && test -s conftest$ac_exeext &&
18893        $as_test_x conftest$ac_exeext; then
18894   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18895 else
18896   echo "$as_me: failed program was:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18898
18899         ac_cv_lib_dnet_stub_dnet_ntoa=no
18900 fi
18901
18902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903       conftest$ac_exeext conftest.$ac_ext
18904 LIBS=$ac_check_lib_save_LIBS
18905 fi
18906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18907 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18908 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18909   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18910 fi
18911
18912     fi
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916       conftest$ac_exeext conftest.$ac_ext
18917     LIBS="$ac_xsave_LIBS"
18918
18919     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18920     # to get the SysV transport functions.
18921     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18922     # needs -lnsl.
18923     # The nsl library prevents programs from opening the X display
18924     # on Irix 5.2, according to T.E. Dickey.
18925     # The functions gethostbyname, getservbyname, and inet_addr are
18926     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18927     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18928 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18929 if test "${ac_cv_func_gethostbyname+set}" = set; then
18930   echo $ECHO_N "(cached) $ECHO_C" >&6
18931 else
18932   cat >conftest.$ac_ext <<_ACEOF
18933 /* confdefs.h.  */
18934 _ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h.  */
18938 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18940 #define gethostbyname innocuous_gethostbyname
18941
18942 /* System header to define __stub macros and hopefully few prototypes,
18943     which can conflict with char gethostbyname (); below.
18944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18945     <limits.h> exists even on freestanding compilers.  */
18946
18947 #ifdef __STDC__
18948 # include <limits.h>
18949 #else
18950 # include <assert.h>
18951 #endif
18952
18953 #undef gethostbyname
18954
18955 /* Override any GCC internal prototype to avoid an error.
18956    Use char because int might match the return type of a GCC
18957    builtin and then its argument prototype would still apply.  */
18958 #ifdef __cplusplus
18959 extern "C"
18960 #endif
18961 char gethostbyname ();
18962 /* The GNU C library defines this for functions which it implements
18963     to always fail with ENOSYS.  Some functions are actually named
18964     something starting with __ and the normal name is an alias.  */
18965 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18966 choke me
18967 #endif
18968
18969 int
18970 main ()
18971 {
18972 return gethostbyname ();
18973   ;
18974   return 0;
18975 }
18976 _ACEOF
18977 rm -f conftest.$ac_objext conftest$ac_exeext
18978 if { (ac_try="$ac_link"
18979 case "(($ac_try" in
18980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18981   *) ac_try_echo=$ac_try;;
18982 esac
18983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18984   (eval "$ac_link") 2>conftest.er1
18985   ac_status=$?
18986   grep -v '^ *+' conftest.er1 >conftest.err
18987   rm -f conftest.er1
18988   cat conftest.err >&5
18989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990   (exit $ac_status); } && {
18991          test -z "$ac_c_werror_flag" ||
18992          test ! -s conftest.err
18993        } && test -s conftest$ac_exeext &&
18994        $as_test_x conftest$ac_exeext; then
18995   ac_cv_func_gethostbyname=yes
18996 else
18997   echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000         ac_cv_func_gethostbyname=no
19001 fi
19002
19003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19004       conftest$ac_exeext conftest.$ac_ext
19005 fi
19006 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19007 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19008
19009     if test $ac_cv_func_gethostbyname = no; then
19010       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19011 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19012 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19013   echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015   ac_check_lib_save_LIBS=$LIBS
19016 LIBS="-lnsl  $LIBS"
19017 cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023
19024 /* Override any GCC internal prototype to avoid an error.
19025    Use char because int might match the return type of a GCC
19026    builtin and then its argument prototype would still apply.  */
19027 #ifdef __cplusplus
19028 extern "C"
19029 #endif
19030 char gethostbyname ();
19031 int
19032 main ()
19033 {
19034 return gethostbyname ();
19035   ;
19036   return 0;
19037 }
19038 _ACEOF
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043   *) ac_try_echo=$ac_try;;
19044 esac
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046   (eval "$ac_link") 2>conftest.er1
19047   ac_status=$?
19048   grep -v '^ *+' conftest.er1 >conftest.err
19049   rm -f conftest.er1
19050   cat conftest.err >&5
19051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052   (exit $ac_status); } && {
19053          test -z "$ac_c_werror_flag" ||
19054          test ! -s conftest.err
19055        } && test -s conftest$ac_exeext &&
19056        $as_test_x conftest$ac_exeext; then
19057   ac_cv_lib_nsl_gethostbyname=yes
19058 else
19059   echo "$as_me: failed program was:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19061
19062         ac_cv_lib_nsl_gethostbyname=no
19063 fi
19064
19065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19066       conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19068 fi
19069 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19070 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19071 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19072   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19073 fi
19074
19075       if test $ac_cv_lib_nsl_gethostbyname = no; then
19076         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19077 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19078 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19079   echo $ECHO_N "(cached) $ECHO_C" >&6
19080 else
19081   ac_check_lib_save_LIBS=$LIBS
19082 LIBS="-lbsd  $LIBS"
19083 cat >conftest.$ac_ext <<_ACEOF
19084 /* confdefs.h.  */
19085 _ACEOF
19086 cat confdefs.h >>conftest.$ac_ext
19087 cat >>conftest.$ac_ext <<_ACEOF
19088 /* end confdefs.h.  */
19089
19090 /* Override any GCC internal prototype to avoid an error.
19091    Use char because int might match the return type of a GCC
19092    builtin and then its argument prototype would still apply.  */
19093 #ifdef __cplusplus
19094 extern "C"
19095 #endif
19096 char gethostbyname ();
19097 int
19098 main ()
19099 {
19100 return gethostbyname ();
19101   ;
19102   return 0;
19103 }
19104 _ACEOF
19105 rm -f conftest.$ac_objext conftest$ac_exeext
19106 if { (ac_try="$ac_link"
19107 case "(($ac_try" in
19108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109   *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112   (eval "$ac_link") 2>conftest.er1
19113   ac_status=$?
19114   grep -v '^ *+' conftest.er1 >conftest.err
19115   rm -f conftest.er1
19116   cat conftest.err >&5
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); } && {
19119          test -z "$ac_c_werror_flag" ||
19120          test ! -s conftest.err
19121        } && test -s conftest$ac_exeext &&
19122        $as_test_x conftest$ac_exeext; then
19123   ac_cv_lib_bsd_gethostbyname=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128         ac_cv_lib_bsd_gethostbyname=no
19129 fi
19130
19131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19132       conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19134 fi
19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19136 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19137 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19138   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19139 fi
19140
19141       fi
19142     fi
19143
19144     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19145     # socket/setsockopt and other routines are undefined under SCO ODT
19146     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19147     # on later versions), says Simon Leinen: it contains gethostby*
19148     # variants that don't use the name server (or something).  -lsocket
19149     # must be given before -lnsl if both are needed.  We assume that
19150     # if connect needs -lnsl, so does gethostbyname.
19151     { echo "$as_me:$LINENO: checking for connect" >&5
19152 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19153 if test "${ac_cv_func_connect+set}" = set; then
19154   echo $ECHO_N "(cached) $ECHO_C" >&6
19155 else
19156   cat >conftest.$ac_ext <<_ACEOF
19157 /* confdefs.h.  */
19158 _ACEOF
19159 cat confdefs.h >>conftest.$ac_ext
19160 cat >>conftest.$ac_ext <<_ACEOF
19161 /* end confdefs.h.  */
19162 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19164 #define connect innocuous_connect
19165
19166 /* System header to define __stub macros and hopefully few prototypes,
19167     which can conflict with char connect (); below.
19168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19169     <limits.h> exists even on freestanding compilers.  */
19170
19171 #ifdef __STDC__
19172 # include <limits.h>
19173 #else
19174 # include <assert.h>
19175 #endif
19176
19177 #undef connect
19178
19179 /* Override any GCC internal prototype to avoid an error.
19180    Use char because int might match the return type of a GCC
19181    builtin and then its argument prototype would still apply.  */
19182 #ifdef __cplusplus
19183 extern "C"
19184 #endif
19185 char connect ();
19186 /* The GNU C library defines this for functions which it implements
19187     to always fail with ENOSYS.  Some functions are actually named
19188     something starting with __ and the normal name is an alias.  */
19189 #if defined __stub_connect || defined __stub___connect
19190 choke me
19191 #endif
19192
19193 int
19194 main ()
19195 {
19196 return connect ();
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 rm -f conftest.$ac_objext conftest$ac_exeext
19202 if { (ac_try="$ac_link"
19203 case "(($ac_try" in
19204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19205   *) ac_try_echo=$ac_try;;
19206 esac
19207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19208   (eval "$ac_link") 2>conftest.er1
19209   ac_status=$?
19210   grep -v '^ *+' conftest.er1 >conftest.err
19211   rm -f conftest.er1
19212   cat conftest.err >&5
19213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214   (exit $ac_status); } && {
19215          test -z "$ac_c_werror_flag" ||
19216          test ! -s conftest.err
19217        } && test -s conftest$ac_exeext &&
19218        $as_test_x conftest$ac_exeext; then
19219   ac_cv_func_connect=yes
19220 else
19221   echo "$as_me: failed program was:" >&5
19222 sed 's/^/| /' conftest.$ac_ext >&5
19223
19224         ac_cv_func_connect=no
19225 fi
19226
19227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19228       conftest$ac_exeext conftest.$ac_ext
19229 fi
19230 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19231 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19232
19233     if test $ac_cv_func_connect = no; then
19234       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19235 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19236 if test "${ac_cv_lib_socket_connect+set}" = set; then
19237   echo $ECHO_N "(cached) $ECHO_C" >&6
19238 else
19239   ac_check_lib_save_LIBS=$LIBS
19240 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247
19248 /* Override any GCC internal prototype to avoid an error.
19249    Use char because int might match the return type of a GCC
19250    builtin and then its argument prototype would still apply.  */
19251 #ifdef __cplusplus
19252 extern "C"
19253 #endif
19254 char connect ();
19255 int
19256 main ()
19257 {
19258 return connect ();
19259   ;
19260   return 0;
19261 }
19262 _ACEOF
19263 rm -f conftest.$ac_objext conftest$ac_exeext
19264 if { (ac_try="$ac_link"
19265 case "(($ac_try" in
19266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267   *) ac_try_echo=$ac_try;;
19268 esac
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270   (eval "$ac_link") 2>conftest.er1
19271   ac_status=$?
19272   grep -v '^ *+' conftest.er1 >conftest.err
19273   rm -f conftest.er1
19274   cat conftest.err >&5
19275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276   (exit $ac_status); } && {
19277          test -z "$ac_c_werror_flag" ||
19278          test ! -s conftest.err
19279        } && test -s conftest$ac_exeext &&
19280        $as_test_x conftest$ac_exeext; then
19281   ac_cv_lib_socket_connect=yes
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286         ac_cv_lib_socket_connect=no
19287 fi
19288
19289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19290       conftest$ac_exeext conftest.$ac_ext
19291 LIBS=$ac_check_lib_save_LIBS
19292 fi
19293 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19294 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19295 if test $ac_cv_lib_socket_connect = yes; then
19296   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19297 fi
19298
19299     fi
19300
19301     # Guillermo Gomez says -lposix is necessary on A/UX.
19302     { echo "$as_me:$LINENO: checking for remove" >&5
19303 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19304 if test "${ac_cv_func_remove+set}" = set; then
19305   echo $ECHO_N "(cached) $ECHO_C" >&6
19306 else
19307   cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19314    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19315 #define remove innocuous_remove
19316
19317 /* System header to define __stub macros and hopefully few prototypes,
19318     which can conflict with char remove (); below.
19319     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19320     <limits.h> exists even on freestanding compilers.  */
19321
19322 #ifdef __STDC__
19323 # include <limits.h>
19324 #else
19325 # include <assert.h>
19326 #endif
19327
19328 #undef remove
19329
19330 /* Override any GCC internal prototype to avoid an error.
19331    Use char because int might match the return type of a GCC
19332    builtin and then its argument prototype would still apply.  */
19333 #ifdef __cplusplus
19334 extern "C"
19335 #endif
19336 char remove ();
19337 /* The GNU C library defines this for functions which it implements
19338     to always fail with ENOSYS.  Some functions are actually named
19339     something starting with __ and the normal name is an alias.  */
19340 #if defined __stub_remove || defined __stub___remove
19341 choke me
19342 #endif
19343
19344 int
19345 main ()
19346 {
19347 return remove ();
19348   ;
19349   return 0;
19350 }
19351 _ACEOF
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (ac_try="$ac_link"
19354 case "(($ac_try" in
19355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356   *) ac_try_echo=$ac_try;;
19357 esac
19358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19359   (eval "$ac_link") 2>conftest.er1
19360   ac_status=$?
19361   grep -v '^ *+' conftest.er1 >conftest.err
19362   rm -f conftest.er1
19363   cat conftest.err >&5
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } && {
19366          test -z "$ac_c_werror_flag" ||
19367          test ! -s conftest.err
19368        } && test -s conftest$ac_exeext &&
19369        $as_test_x conftest$ac_exeext; then
19370   ac_cv_func_remove=yes
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375         ac_cv_func_remove=no
19376 fi
19377
19378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19379       conftest$ac_exeext conftest.$ac_ext
19380 fi
19381 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19382 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19383
19384     if test $ac_cv_func_remove = no; then
19385       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19386 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19387 if test "${ac_cv_lib_posix_remove+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390   ac_check_lib_save_LIBS=$LIBS
19391 LIBS="-lposix  $LIBS"
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398
19399 /* Override any GCC internal prototype to avoid an error.
19400    Use char because int might match the return type of a GCC
19401    builtin and then its argument prototype would still apply.  */
19402 #ifdef __cplusplus
19403 extern "C"
19404 #endif
19405 char remove ();
19406 int
19407 main ()
19408 {
19409 return remove ();
19410   ;
19411   return 0;
19412 }
19413 _ACEOF
19414 rm -f conftest.$ac_objext conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418   *) ac_try_echo=$ac_try;;
19419 esac
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421   (eval "$ac_link") 2>conftest.er1
19422   ac_status=$?
19423   grep -v '^ *+' conftest.er1 >conftest.err
19424   rm -f conftest.er1
19425   cat conftest.err >&5
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); } && {
19428          test -z "$ac_c_werror_flag" ||
19429          test ! -s conftest.err
19430        } && test -s conftest$ac_exeext &&
19431        $as_test_x conftest$ac_exeext; then
19432   ac_cv_lib_posix_remove=yes
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437         ac_cv_lib_posix_remove=no
19438 fi
19439
19440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19441       conftest$ac_exeext conftest.$ac_ext
19442 LIBS=$ac_check_lib_save_LIBS
19443 fi
19444 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19445 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19446 if test $ac_cv_lib_posix_remove = yes; then
19447   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19448 fi
19449
19450     fi
19451
19452     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19453     { echo "$as_me:$LINENO: checking for shmat" >&5
19454 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19455 if test "${ac_cv_func_shmat+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458   cat >conftest.$ac_ext <<_ACEOF
19459 /* confdefs.h.  */
19460 _ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h.  */
19464 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19465    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19466 #define shmat innocuous_shmat
19467
19468 /* System header to define __stub macros and hopefully few prototypes,
19469     which can conflict with char shmat (); below.
19470     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19471     <limits.h> exists even on freestanding compilers.  */
19472
19473 #ifdef __STDC__
19474 # include <limits.h>
19475 #else
19476 # include <assert.h>
19477 #endif
19478
19479 #undef shmat
19480
19481 /* Override any GCC internal prototype to avoid an error.
19482    Use char because int might match the return type of a GCC
19483    builtin and then its argument prototype would still apply.  */
19484 #ifdef __cplusplus
19485 extern "C"
19486 #endif
19487 char shmat ();
19488 /* The GNU C library defines this for functions which it implements
19489     to always fail with ENOSYS.  Some functions are actually named
19490     something starting with __ and the normal name is an alias.  */
19491 #if defined __stub_shmat || defined __stub___shmat
19492 choke me
19493 #endif
19494
19495 int
19496 main ()
19497 {
19498 return shmat ();
19499   ;
19500   return 0;
19501 }
19502 _ACEOF
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507   *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510   (eval "$ac_link") 2>conftest.er1
19511   ac_status=$?
19512   grep -v '^ *+' conftest.er1 >conftest.err
19513   rm -f conftest.er1
19514   cat conftest.err >&5
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); } && {
19517          test -z "$ac_c_werror_flag" ||
19518          test ! -s conftest.err
19519        } && test -s conftest$ac_exeext &&
19520        $as_test_x conftest$ac_exeext; then
19521   ac_cv_func_shmat=yes
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526         ac_cv_func_shmat=no
19527 fi
19528
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530       conftest$ac_exeext conftest.$ac_ext
19531 fi
19532 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19533 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19534
19535     if test $ac_cv_func_shmat = no; then
19536       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19537 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19538 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19539   echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541   ac_check_lib_save_LIBS=$LIBS
19542 LIBS="-lipc  $LIBS"
19543 cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h.  */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h.  */
19549
19550 /* Override any GCC internal prototype to avoid an error.
19551    Use char because int might match the return type of a GCC
19552    builtin and then its argument prototype would still apply.  */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 char shmat ();
19557 int
19558 main ()
19559 {
19560 return shmat ();
19561   ;
19562   return 0;
19563 }
19564 _ACEOF
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569   *) ac_try_echo=$ac_try;;
19570 esac
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572   (eval "$ac_link") 2>conftest.er1
19573   ac_status=$?
19574   grep -v '^ *+' conftest.er1 >conftest.err
19575   rm -f conftest.er1
19576   cat conftest.err >&5
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); } && {
19579          test -z "$ac_c_werror_flag" ||
19580          test ! -s conftest.err
19581        } && test -s conftest$ac_exeext &&
19582        $as_test_x conftest$ac_exeext; then
19583   ac_cv_lib_ipc_shmat=yes
19584 else
19585   echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588         ac_cv_lib_ipc_shmat=no
19589 fi
19590
19591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19592       conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19594 fi
19595 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19596 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19597 if test $ac_cv_lib_ipc_shmat = yes; then
19598   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19599 fi
19600
19601     fi
19602   fi
19603
19604   # Check for libraries that X11R6 Xt/Xaw programs need.
19605   ac_save_LDFLAGS=$LDFLAGS
19606   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19607   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19608   # check for ICE first), but we must link in the order -lSM -lICE or
19609   # we get undefined symbols.  So assume we have SM if we have ICE.
19610   # These have to be linked with before -lX11, unlike the other
19611   # libraries we check for below, so use a different variable.
19612   # John Interrante, Karl Berry
19613   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19614 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19615 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19616   echo $ECHO_N "(cached) $ECHO_C" >&6
19617 else
19618   ac_check_lib_save_LIBS=$LIBS
19619 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19620 cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h.  */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h.  */
19626
19627 /* Override any GCC internal prototype to avoid an error.
19628    Use char because int might match the return type of a GCC
19629    builtin and then its argument prototype would still apply.  */
19630 #ifdef __cplusplus
19631 extern "C"
19632 #endif
19633 char IceConnectionNumber ();
19634 int
19635 main ()
19636 {
19637 return IceConnectionNumber ();
19638   ;
19639   return 0;
19640 }
19641 _ACEOF
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646   *) ac_try_echo=$ac_try;;
19647 esac
19648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19649   (eval "$ac_link") 2>conftest.er1
19650   ac_status=$?
19651   grep -v '^ *+' conftest.er1 >conftest.err
19652   rm -f conftest.er1
19653   cat conftest.err >&5
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); } && {
19656          test -z "$ac_c_werror_flag" ||
19657          test ! -s conftest.err
19658        } && test -s conftest$ac_exeext &&
19659        $as_test_x conftest$ac_exeext; then
19660   ac_cv_lib_ICE_IceConnectionNumber=yes
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         ac_cv_lib_ICE_IceConnectionNumber=no
19666 fi
19667
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669       conftest$ac_exeext conftest.$ac_ext
19670 LIBS=$ac_check_lib_save_LIBS
19671 fi
19672 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19673 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19674 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19675   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19676 fi
19677
19678   LDFLAGS=$ac_save_LDFLAGS
19679
19680 fi
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700
19701
19702
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713 for ac_header in \
19714         assert.h \
19715         fcntl.h \
19716         grp.h \
19717         pwd.h \
19718         libc.h \
19719         limits.h \
19720         stdarg.h \
19721         stdlib.h \
19722         stdint.h \
19723         string.h \
19724         strings.h \
19725         termios.h \
19726         termcap.h \
19727         term.h \
19728         unistd.h \
19729         sys/bitypes.h \
19730         sys/byteorder.h \
19731         sys/ioctl.h \
19732         sys/select.h \
19733         sys/socket.h \
19734         sys/sockio.h \
19735         sys/stat.h \
19736         sys/time.h \
19737         sys/types.h \
19738         arpa/nameser.h \
19739         resolv.h \
19740         mtio.h \
19741         sys/mtio.h \
19742         sys/tape.h \
19743         regex.h \
19744
19745 do
19746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19748   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 fi
19753 ac_res=`eval echo '${'$as_ac_Header'}'`
19754                { echo "$as_me:$LINENO: result: $ac_res" >&5
19755 echo "${ECHO_T}$ac_res" >&6; }
19756 else
19757   # Is the header compilable?
19758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19760 cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 $ac_includes_default
19767 #include <$ac_header>
19768 _ACEOF
19769 rm -f conftest.$ac_objext
19770 if { (ac_try="$ac_compile"
19771 case "(($ac_try" in
19772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773   *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776   (eval "$ac_compile") 2>conftest.er1
19777   ac_status=$?
19778   grep -v '^ *+' conftest.er1 >conftest.err
19779   rm -f conftest.er1
19780   cat conftest.err >&5
19781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782   (exit $ac_status); } && {
19783          test -z "$ac_c_werror_flag" ||
19784          test ! -s conftest.err
19785        } && test -s conftest.$ac_objext; then
19786   ac_header_compiler=yes
19787 else
19788   echo "$as_me: failed program was:" >&5
19789 sed 's/^/| /' conftest.$ac_ext >&5
19790
19791         ac_header_compiler=no
19792 fi
19793
19794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19796 echo "${ECHO_T}$ac_header_compiler" >&6; }
19797
19798 # Is the header present?
19799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19801 cat >conftest.$ac_ext <<_ACEOF
19802 /* confdefs.h.  */
19803 _ACEOF
19804 cat confdefs.h >>conftest.$ac_ext
19805 cat >>conftest.$ac_ext <<_ACEOF
19806 /* end confdefs.h.  */
19807 #include <$ac_header>
19808 _ACEOF
19809 if { (ac_try="$ac_cpp conftest.$ac_ext"
19810 case "(($ac_try" in
19811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812   *) ac_try_echo=$ac_try;;
19813 esac
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19816   ac_status=$?
19817   grep -v '^ *+' conftest.er1 >conftest.err
19818   rm -f conftest.er1
19819   cat conftest.err >&5
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); } >/dev/null && {
19822          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19823          test ! -s conftest.err
19824        }; then
19825   ac_header_preproc=yes
19826 else
19827   echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19829
19830   ac_header_preproc=no
19831 fi
19832
19833 rm -f conftest.err conftest.$ac_ext
19834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19835 echo "${ECHO_T}$ac_header_preproc" >&6; }
19836
19837 # So?  What about this header?
19838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19839   yes:no: )
19840     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19842     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19844     ac_header_preproc=yes
19845     ;;
19846   no:yes:* )
19847     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19849     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19850 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19851     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19853     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19854 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19855     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19857     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19859
19860     ;;
19861 esac
19862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   eval "$as_ac_Header=\$ac_header_preproc"
19868 fi
19869 ac_res=`eval echo '${'$as_ac_Header'}'`
19870                { echo "$as_me:$LINENO: result: $ac_res" >&5
19871 echo "${ECHO_T}$ac_res" >&6; }
19872
19873 fi
19874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19875   cat >>confdefs.h <<_ACEOF
19876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19877 _ACEOF
19878
19879 fi
19880
19881 done
19882
19883 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19884 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19885 if test "${ac_cv_header_stdc+set}" = set; then
19886   echo $ECHO_N "(cached) $ECHO_C" >&6
19887 else
19888   cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h.  */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h.  */
19894 #include <stdlib.h>
19895 #include <stdarg.h>
19896 #include <string.h>
19897 #include <float.h>
19898
19899 int
19900 main ()
19901 {
19902
19903   ;
19904   return 0;
19905 }
19906 _ACEOF
19907 rm -f conftest.$ac_objext
19908 if { (ac_try="$ac_compile"
19909 case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_compile") 2>conftest.er1
19915   ac_status=$?
19916   grep -v '^ *+' conftest.er1 >conftest.err
19917   rm -f conftest.er1
19918   cat conftest.err >&5
19919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920   (exit $ac_status); } && {
19921          test -z "$ac_c_werror_flag" ||
19922          test ! -s conftest.err
19923        } && test -s conftest.$ac_objext; then
19924   ac_cv_header_stdc=yes
19925 else
19926   echo "$as_me: failed program was:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19928
19929         ac_cv_header_stdc=no
19930 fi
19931
19932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19933
19934 if test $ac_cv_header_stdc = yes; then
19935   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19936   cat >conftest.$ac_ext <<_ACEOF
19937 /* confdefs.h.  */
19938 _ACEOF
19939 cat confdefs.h >>conftest.$ac_ext
19940 cat >>conftest.$ac_ext <<_ACEOF
19941 /* end confdefs.h.  */
19942 #include <string.h>
19943
19944 _ACEOF
19945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19946   $EGREP "memchr" >/dev/null 2>&1; then
19947   :
19948 else
19949   ac_cv_header_stdc=no
19950 fi
19951 rm -f conftest*
19952
19953 fi
19954
19955 if test $ac_cv_header_stdc = yes; then
19956   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19957   cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 #include <stdlib.h>
19964
19965 _ACEOF
19966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19967   $EGREP "free" >/dev/null 2>&1; then
19968   :
19969 else
19970   ac_cv_header_stdc=no
19971 fi
19972 rm -f conftest*
19973
19974 fi
19975
19976 if test $ac_cv_header_stdc = yes; then
19977   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19978   if test "$cross_compiling" = yes; then
19979   :
19980 else
19981   cat >conftest.$ac_ext <<_ACEOF
19982 /* confdefs.h.  */
19983 _ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h.  */
19987 #include <ctype.h>
19988 #include <stdlib.h>
19989 #if ((' ' & 0x0FF) == 0x020)
19990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19992 #else
19993 # define ISLOWER(c) \
19994                    (('a' <= (c) && (c) <= 'i') \
19995                      || ('j' <= (c) && (c) <= 'r') \
19996                      || ('s' <= (c) && (c) <= 'z'))
19997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19998 #endif
19999
20000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20001 int
20002 main ()
20003 {
20004   int i;
20005   for (i = 0; i < 256; i++)
20006     if (XOR (islower (i), ISLOWER (i))
20007         || toupper (i) != TOUPPER (i))
20008       return 2;
20009   return 0;
20010 }
20011 _ACEOF
20012 rm -f conftest$ac_exeext
20013 if { (ac_try="$ac_link"
20014 case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_link") 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20023   { (case "(($ac_try" in
20024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025   *) ac_try_echo=$ac_try;;
20026 esac
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028   (eval "$ac_try") 2>&5
20029   ac_status=$?
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); }; }; then
20032   :
20033 else
20034   echo "$as_me: program exited with status $ac_status" >&5
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ( exit $ac_status )
20039 ac_cv_header_stdc=no
20040 fi
20041 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20042 fi
20043
20044
20045 fi
20046 fi
20047 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20048 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20049 if test $ac_cv_header_stdc = yes; then
20050
20051 cat >>confdefs.h <<\_ACEOF
20052 #define STDC_HEADERS 1
20053 _ACEOF
20054
20055 fi
20056
20057 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20058 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20059 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 #include <sys/types.h>
20069 int
20070 main ()
20071 {
20072 return makedev(0, 0);
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_link") 2>conftest.er1
20085   ac_status=$?
20086   grep -v '^ *+' conftest.er1 >conftest.err
20087   rm -f conftest.er1
20088   cat conftest.err >&5
20089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090   (exit $ac_status); } && {
20091          test -z "$ac_c_werror_flag" ||
20092          test ! -s conftest.err
20093        } && test -s conftest$ac_exeext &&
20094        $as_test_x conftest$ac_exeext; then
20095   ac_cv_header_sys_types_h_makedev=yes
20096 else
20097   echo "$as_me: failed program was:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20099
20100         ac_cv_header_sys_types_h_makedev=no
20101 fi
20102
20103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104       conftest$ac_exeext conftest.$ac_ext
20105
20106 fi
20107 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20108 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20109
20110 if test $ac_cv_header_sys_types_h_makedev = no; then
20111 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20112   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20113 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20114 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20115   echo $ECHO_N "(cached) $ECHO_C" >&6
20116 fi
20117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20118 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20119 else
20120   # Is the header compilable?
20121 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20122 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20123 cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h.  */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h.  */
20129 $ac_includes_default
20130 #include <sys/mkdev.h>
20131 _ACEOF
20132 rm -f conftest.$ac_objext
20133 if { (ac_try="$ac_compile"
20134 case "(($ac_try" in
20135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136   *) ac_try_echo=$ac_try;;
20137 esac
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139   (eval "$ac_compile") 2>conftest.er1
20140   ac_status=$?
20141   grep -v '^ *+' conftest.er1 >conftest.err
20142   rm -f conftest.er1
20143   cat conftest.err >&5
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } && {
20146          test -z "$ac_c_werror_flag" ||
20147          test ! -s conftest.err
20148        } && test -s conftest.$ac_objext; then
20149   ac_header_compiler=yes
20150 else
20151   echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154         ac_header_compiler=no
20155 fi
20156
20157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20159 echo "${ECHO_T}$ac_header_compiler" >&6; }
20160
20161 # Is the header present?
20162 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20163 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20164 cat >conftest.$ac_ext <<_ACEOF
20165 /* confdefs.h.  */
20166 _ACEOF
20167 cat confdefs.h >>conftest.$ac_ext
20168 cat >>conftest.$ac_ext <<_ACEOF
20169 /* end confdefs.h.  */
20170 #include <sys/mkdev.h>
20171 _ACEOF
20172 if { (ac_try="$ac_cpp conftest.$ac_ext"
20173 case "(($ac_try" in
20174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20175   *) ac_try_echo=$ac_try;;
20176 esac
20177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20178   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } >/dev/null && {
20185          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20186          test ! -s conftest.err
20187        }; then
20188   ac_header_preproc=yes
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193   ac_header_preproc=no
20194 fi
20195
20196 rm -f conftest.err conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20198 echo "${ECHO_T}$ac_header_preproc" >&6; }
20199
20200 # So?  What about this header?
20201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20202   yes:no: )
20203     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20204 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20205     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20206 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20207     ac_header_preproc=yes
20208     ;;
20209   no:yes:* )
20210     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20211 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20212     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20213 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20214     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20215 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20216     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20217 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20218     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20219 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20220     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20221 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20222
20223     ;;
20224 esac
20225 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20226 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20227 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20228   echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20231 fi
20232 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20233 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20234
20235 fi
20236 if test $ac_cv_header_sys_mkdev_h = yes; then
20237
20238 cat >>confdefs.h <<\_ACEOF
20239 #define MAJOR_IN_MKDEV 1
20240 _ACEOF
20241
20242 fi
20243
20244
20245
20246   if test $ac_cv_header_sys_mkdev_h = no; then
20247     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20248   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20249 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20250 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20251   echo $ECHO_N "(cached) $ECHO_C" >&6
20252 fi
20253 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20254 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20255 else
20256   # Is the header compilable?
20257 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20258 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h.  */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h.  */
20265 $ac_includes_default
20266 #include <sys/sysmacros.h>
20267 _ACEOF
20268 rm -f conftest.$ac_objext
20269 if { (ac_try="$ac_compile"
20270 case "(($ac_try" in
20271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272   *) ac_try_echo=$ac_try;;
20273 esac
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275   (eval "$ac_compile") 2>conftest.er1
20276   ac_status=$?
20277   grep -v '^ *+' conftest.er1 >conftest.err
20278   rm -f conftest.er1
20279   cat conftest.err >&5
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); } && {
20282          test -z "$ac_c_werror_flag" ||
20283          test ! -s conftest.err
20284        } && test -s conftest.$ac_objext; then
20285   ac_header_compiler=yes
20286 else
20287   echo "$as_me: failed program was:" >&5
20288 sed 's/^/| /' conftest.$ac_ext >&5
20289
20290         ac_header_compiler=no
20291 fi
20292
20293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20295 echo "${ECHO_T}$ac_header_compiler" >&6; }
20296
20297 # Is the header present?
20298 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20299 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20300 cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306 #include <sys/sysmacros.h>
20307 _ACEOF
20308 if { (ac_try="$ac_cpp conftest.$ac_ext"
20309 case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20315   ac_status=$?
20316   grep -v '^ *+' conftest.er1 >conftest.err
20317   rm -f conftest.er1
20318   cat conftest.err >&5
20319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20320   (exit $ac_status); } >/dev/null && {
20321          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20322          test ! -s conftest.err
20323        }; then
20324   ac_header_preproc=yes
20325 else
20326   echo "$as_me: failed program was:" >&5
20327 sed 's/^/| /' conftest.$ac_ext >&5
20328
20329   ac_header_preproc=no
20330 fi
20331
20332 rm -f conftest.err conftest.$ac_ext
20333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20334 echo "${ECHO_T}$ac_header_preproc" >&6; }
20335
20336 # So?  What about this header?
20337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20338   yes:no: )
20339     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20340 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20341     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20342 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20343     ac_header_preproc=yes
20344     ;;
20345   no:yes:* )
20346     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20347 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20348     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20349 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20350     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20351 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20352     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20353 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20354     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20355 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20356     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20357 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20358
20359     ;;
20360 esac
20361 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20362 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20363 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20367 fi
20368 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20369 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20370
20371 fi
20372 if test $ac_cv_header_sys_sysmacros_h = yes; then
20373
20374 cat >>confdefs.h <<\_ACEOF
20375 #define MAJOR_IN_SYSMACROS 1
20376 _ACEOF
20377
20378 fi
20379
20380
20381   fi
20382 fi
20383
20384
20385
20386
20387
20388
20389 ac_header_dirent=no
20390 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20391   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20392 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20393 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395   echo $ECHO_N "(cached) $ECHO_C" >&6
20396 else
20397   cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 #include <sys/types.h>
20404 #include <$ac_hdr>
20405
20406 int
20407 main ()
20408 {
20409 if ((DIR *) 0)
20410 return 0;
20411   ;
20412   return 0;
20413 }
20414 _ACEOF
20415 rm -f conftest.$ac_objext
20416 if { (ac_try="$ac_compile"
20417 case "(($ac_try" in
20418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20419   *) ac_try_echo=$ac_try;;
20420 esac
20421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20422   (eval "$ac_compile") 2>conftest.er1
20423   ac_status=$?
20424   grep -v '^ *+' conftest.er1 >conftest.err
20425   rm -f conftest.er1
20426   cat conftest.err >&5
20427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428   (exit $ac_status); } && {
20429          test -z "$ac_c_werror_flag" ||
20430          test ! -s conftest.err
20431        } && test -s conftest.$ac_objext; then
20432   eval "$as_ac_Header=yes"
20433 else
20434   echo "$as_me: failed program was:" >&5
20435 sed 's/^/| /' conftest.$ac_ext >&5
20436
20437         eval "$as_ac_Header=no"
20438 fi
20439
20440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 fi
20442 ac_res=`eval echo '${'$as_ac_Header'}'`
20443                { echo "$as_me:$LINENO: result: $ac_res" >&5
20444 echo "${ECHO_T}$ac_res" >&6; }
20445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20446   cat >>confdefs.h <<_ACEOF
20447 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20448 _ACEOF
20449
20450 ac_header_dirent=$ac_hdr; break
20451 fi
20452
20453 done
20454 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20455 if test $ac_header_dirent = dirent.h; then
20456   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20457 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20458 if test "${ac_cv_search_opendir+set}" = set; then
20459   echo $ECHO_N "(cached) $ECHO_C" >&6
20460 else
20461   ac_func_search_save_LIBS=$LIBS
20462 cat >conftest.$ac_ext <<_ACEOF
20463 /* confdefs.h.  */
20464 _ACEOF
20465 cat confdefs.h >>conftest.$ac_ext
20466 cat >>conftest.$ac_ext <<_ACEOF
20467 /* end confdefs.h.  */
20468
20469 /* Override any GCC internal prototype to avoid an error.
20470    Use char because int might match the return type of a GCC
20471    builtin and then its argument prototype would still apply.  */
20472 #ifdef __cplusplus
20473 extern "C"
20474 #endif
20475 char opendir ();
20476 int
20477 main ()
20478 {
20479 return opendir ();
20480   ;
20481   return 0;
20482 }
20483 _ACEOF
20484 for ac_lib in '' dir; do
20485   if test -z "$ac_lib"; then
20486     ac_res="none required"
20487   else
20488     ac_res=-l$ac_lib
20489     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20490   fi
20491   rm -f conftest.$ac_objext conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_link") 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } && {
20505          test -z "$ac_c_werror_flag" ||
20506          test ! -s conftest.err
20507        } && test -s conftest$ac_exeext &&
20508        $as_test_x conftest$ac_exeext; then
20509   ac_cv_search_opendir=$ac_res
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20518       conftest$ac_exeext
20519   if test "${ac_cv_search_opendir+set}" = set; then
20520   break
20521 fi
20522 done
20523 if test "${ac_cv_search_opendir+set}" = set; then
20524   :
20525 else
20526   ac_cv_search_opendir=no
20527 fi
20528 rm conftest.$ac_ext
20529 LIBS=$ac_func_search_save_LIBS
20530 fi
20531 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20532 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20533 ac_res=$ac_cv_search_opendir
20534 if test "$ac_res" != no; then
20535   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20536
20537 fi
20538
20539 else
20540   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20541 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20542 if test "${ac_cv_search_opendir+set}" = set; then
20543   echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545   ac_func_search_save_LIBS=$LIBS
20546 cat >conftest.$ac_ext <<_ACEOF
20547 /* confdefs.h.  */
20548 _ACEOF
20549 cat confdefs.h >>conftest.$ac_ext
20550 cat >>conftest.$ac_ext <<_ACEOF
20551 /* end confdefs.h.  */
20552
20553 /* Override any GCC internal prototype to avoid an error.
20554    Use char because int might match the return type of a GCC
20555    builtin and then its argument prototype would still apply.  */
20556 #ifdef __cplusplus
20557 extern "C"
20558 #endif
20559 char opendir ();
20560 int
20561 main ()
20562 {
20563 return opendir ();
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 for ac_lib in '' x; do
20569   if test -z "$ac_lib"; then
20570     ac_res="none required"
20571   else
20572     ac_res=-l$ac_lib
20573     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20574   fi
20575   rm -f conftest.$ac_objext conftest$ac_exeext
20576 if { (ac_try="$ac_link"
20577 case "(($ac_try" in
20578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579   *) ac_try_echo=$ac_try;;
20580 esac
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582   (eval "$ac_link") 2>conftest.er1
20583   ac_status=$?
20584   grep -v '^ *+' conftest.er1 >conftest.err
20585   rm -f conftest.er1
20586   cat conftest.err >&5
20587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588   (exit $ac_status); } && {
20589          test -z "$ac_c_werror_flag" ||
20590          test ! -s conftest.err
20591        } && test -s conftest$ac_exeext &&
20592        $as_test_x conftest$ac_exeext; then
20593   ac_cv_search_opendir=$ac_res
20594 else
20595   echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598
20599 fi
20600
20601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20602       conftest$ac_exeext
20603   if test "${ac_cv_search_opendir+set}" = set; then
20604   break
20605 fi
20606 done
20607 if test "${ac_cv_search_opendir+set}" = set; then
20608   :
20609 else
20610   ac_cv_search_opendir=no
20611 fi
20612 rm conftest.$ac_ext
20613 LIBS=$ac_func_search_save_LIBS
20614 fi
20615 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20616 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20617 ac_res=$ac_cv_search_opendir
20618 if test "$ac_res" != no; then
20619   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20620
20621 fi
20622
20623 fi
20624
20625 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20626 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20627 if test "${ac_cv_header_stat_broken+set}" = set; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h.  */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h.  */
20636 #include <sys/types.h>
20637 #include <sys/stat.h>
20638
20639 #if defined S_ISBLK && defined S_IFDIR
20640 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20641 #endif
20642
20643 #if defined S_ISBLK && defined S_IFCHR
20644 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20645 #endif
20646
20647 #if defined S_ISLNK && defined S_IFREG
20648 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20649 #endif
20650
20651 #if defined S_ISSOCK && defined S_IFREG
20652 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20653 #endif
20654
20655 _ACEOF
20656 rm -f conftest.$ac_objext
20657 if { (ac_try="$ac_compile"
20658 case "(($ac_try" in
20659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660   *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663   (eval "$ac_compile") 2>conftest.er1
20664   ac_status=$?
20665   grep -v '^ *+' conftest.er1 >conftest.err
20666   rm -f conftest.er1
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); } && {
20670          test -z "$ac_c_werror_flag" ||
20671          test ! -s conftest.err
20672        } && test -s conftest.$ac_objext; then
20673   ac_cv_header_stat_broken=no
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678         ac_cv_header_stat_broken=yes
20679 fi
20680
20681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20682 fi
20683 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20684 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20685 if test $ac_cv_header_stat_broken = yes; then
20686
20687 cat >>confdefs.h <<\_ACEOF
20688 #define STAT_MACROS_BROKEN 1
20689 _ACEOF
20690
20691 fi
20692
20693 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20694 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20695 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20696   echo $ECHO_N "(cached) $ECHO_C" >&6
20697 else
20698   cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h.  */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h.  */
20704 #include <sys/types.h>
20705 #include <sys/wait.h>
20706 #ifndef WEXITSTATUS
20707 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20708 #endif
20709 #ifndef WIFEXITED
20710 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20711 #endif
20712
20713 int
20714 main ()
20715 {
20716   int s;
20717   wait (&s);
20718   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20719   ;
20720   return 0;
20721 }
20722 _ACEOF
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727   *) ac_try_echo=$ac_try;;
20728 esac
20729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20730   (eval "$ac_compile") 2>conftest.er1
20731   ac_status=$?
20732   grep -v '^ *+' conftest.er1 >conftest.err
20733   rm -f conftest.er1
20734   cat conftest.err >&5
20735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736   (exit $ac_status); } && {
20737          test -z "$ac_c_werror_flag" ||
20738          test ! -s conftest.err
20739        } && test -s conftest.$ac_objext; then
20740   ac_cv_header_sys_wait_h=yes
20741 else
20742   echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20744
20745         ac_cv_header_sys_wait_h=no
20746 fi
20747
20748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 fi
20750 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20751 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20752 if test $ac_cv_header_sys_wait_h = yes; then
20753
20754 cat >>confdefs.h <<\_ACEOF
20755 #define HAVE_SYS_WAIT_H 1
20756 _ACEOF
20757
20758 fi
20759
20760 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20761 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20762 if test "${ac_cv_header_time+set}" = set; then
20763   echo $ECHO_N "(cached) $ECHO_C" >&6
20764 else
20765   cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 #include <sys/types.h>
20772 #include <sys/time.h>
20773 #include <time.h>
20774
20775 int
20776 main ()
20777 {
20778 if ((struct tm *) 0)
20779 return 0;
20780   ;
20781   return 0;
20782 }
20783 _ACEOF
20784 rm -f conftest.$ac_objext
20785 if { (ac_try="$ac_compile"
20786 case "(($ac_try" in
20787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788   *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791   (eval "$ac_compile") 2>conftest.er1
20792   ac_status=$?
20793   grep -v '^ *+' conftest.er1 >conftest.err
20794   rm -f conftest.er1
20795   cat conftest.err >&5
20796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797   (exit $ac_status); } && {
20798          test -z "$ac_c_werror_flag" ||
20799          test ! -s conftest.err
20800        } && test -s conftest.$ac_objext; then
20801   ac_cv_header_time=yes
20802 else
20803   echo "$as_me: failed program was:" >&5
20804 sed 's/^/| /' conftest.$ac_ext >&5
20805
20806         ac_cv_header_time=no
20807 fi
20808
20809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20810 fi
20811 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20812 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20813 if test $ac_cv_header_time = yes; then
20814
20815 cat >>confdefs.h <<\_ACEOF
20816 #define TIME_WITH_SYS_TIME 1
20817 _ACEOF
20818
20819 fi
20820
20821 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20822 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20823 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20824   echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826   cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h.  */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h.  */
20832 $ac_includes_default
20833 int
20834 main ()
20835 {
20836 static struct stat ac_aggr;
20837 if (ac_aggr.st_blksize)
20838 return 0;
20839   ;
20840   return 0;
20841 }
20842 _ACEOF
20843 rm -f conftest.$ac_objext
20844 if { (ac_try="$ac_compile"
20845 case "(($ac_try" in
20846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20847   *) ac_try_echo=$ac_try;;
20848 esac
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850   (eval "$ac_compile") 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } && {
20857          test -z "$ac_c_werror_flag" ||
20858          test ! -s conftest.err
20859        } && test -s conftest.$ac_objext; then
20860   ac_cv_member_struct_stat_st_blksize=yes
20861 else
20862   echo "$as_me: failed program was:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20864
20865         cat >conftest.$ac_ext <<_ACEOF
20866 /* confdefs.h.  */
20867 _ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h.  */
20871 $ac_includes_default
20872 int
20873 main ()
20874 {
20875 static struct stat ac_aggr;
20876 if (sizeof ac_aggr.st_blksize)
20877 return 0;
20878   ;
20879   return 0;
20880 }
20881 _ACEOF
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886   *) ac_try_echo=$ac_try;;
20887 esac
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889   (eval "$ac_compile") 2>conftest.er1
20890   ac_status=$?
20891   grep -v '^ *+' conftest.er1 >conftest.err
20892   rm -f conftest.er1
20893   cat conftest.err >&5
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); } && {
20896          test -z "$ac_c_werror_flag" ||
20897          test ! -s conftest.err
20898        } && test -s conftest.$ac_objext; then
20899   ac_cv_member_struct_stat_st_blksize=yes
20900 else
20901   echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904         ac_cv_member_struct_stat_st_blksize=no
20905 fi
20906
20907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20908 fi
20909
20910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20911 fi
20912 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20913 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20914 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20915
20916 cat >>confdefs.h <<_ACEOF
20917 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20918 _ACEOF
20919
20920
20921 cat >>confdefs.h <<\_ACEOF
20922 #define HAVE_ST_BLKSIZE 1
20923 _ACEOF
20924
20925 fi
20926
20927
20928 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20929 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20930 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933   cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h.  */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h.  */
20939 $ac_includes_default
20940 int
20941 main ()
20942 {
20943 static struct stat ac_aggr;
20944 if (ac_aggr.st_blocks)
20945 return 0;
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext
20951 if { (ac_try="$ac_compile"
20952 case "(($ac_try" in
20953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954   *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957   (eval "$ac_compile") 2>conftest.er1
20958   ac_status=$?
20959   grep -v '^ *+' conftest.er1 >conftest.err
20960   rm -f conftest.er1
20961   cat conftest.err >&5
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } && {
20964          test -z "$ac_c_werror_flag" ||
20965          test ! -s conftest.err
20966        } && test -s conftest.$ac_objext; then
20967   ac_cv_member_struct_stat_st_blocks=yes
20968 else
20969   echo "$as_me: failed program was:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20971
20972         cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h.  */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h.  */
20978 $ac_includes_default
20979 int
20980 main ()
20981 {
20982 static struct stat ac_aggr;
20983 if (sizeof ac_aggr.st_blocks)
20984 return 0;
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 rm -f conftest.$ac_objext
20990 if { (ac_try="$ac_compile"
20991 case "(($ac_try" in
20992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20993   *) ac_try_echo=$ac_try;;
20994 esac
20995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20996   (eval "$ac_compile") 2>conftest.er1
20997   ac_status=$?
20998   grep -v '^ *+' conftest.er1 >conftest.err
20999   rm -f conftest.er1
21000   cat conftest.err >&5
21001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002   (exit $ac_status); } && {
21003          test -z "$ac_c_werror_flag" ||
21004          test ! -s conftest.err
21005        } && test -s conftest.$ac_objext; then
21006   ac_cv_member_struct_stat_st_blocks=yes
21007 else
21008   echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21010
21011         ac_cv_member_struct_stat_st_blocks=no
21012 fi
21013
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21015 fi
21016
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 fi
21019 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21020 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21021 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21022
21023 cat >>confdefs.h <<_ACEOF
21024 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21025 _ACEOF
21026
21027
21028 cat >>confdefs.h <<\_ACEOF
21029 #define HAVE_ST_BLOCKS 1
21030 _ACEOF
21031
21032 else
21033   case " $LIBOBJS " in
21034   *" fileblocks.$ac_objext "* ) ;;
21035   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21036  ;;
21037 esac
21038
21039 fi
21040
21041
21042 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21043 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21044 if test "${ac_cv_struct_tm+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047   cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h.  */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h.  */
21053 #include <sys/types.h>
21054 #include <time.h>
21055
21056 int
21057 main ()
21058 {
21059 struct tm tm;
21060                                      int *p = &tm.tm_sec;
21061                                      return !p;
21062   ;
21063   return 0;
21064 }
21065 _ACEOF
21066 rm -f conftest.$ac_objext
21067 if { (ac_try="$ac_compile"
21068 case "(($ac_try" in
21069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070   *) ac_try_echo=$ac_try;;
21071 esac
21072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21073   (eval "$ac_compile") 2>conftest.er1
21074   ac_status=$?
21075   grep -v '^ *+' conftest.er1 >conftest.err
21076   rm -f conftest.er1
21077   cat conftest.err >&5
21078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21079   (exit $ac_status); } && {
21080          test -z "$ac_c_werror_flag" ||
21081          test ! -s conftest.err
21082        } && test -s conftest.$ac_objext; then
21083   ac_cv_struct_tm=time.h
21084 else
21085   echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21087
21088         ac_cv_struct_tm=sys/time.h
21089 fi
21090
21091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21092 fi
21093 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21094 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21095 if test $ac_cv_struct_tm = sys/time.h; then
21096
21097 cat >>confdefs.h <<\_ACEOF
21098 #define TM_IN_SYS_TIME 1
21099 _ACEOF
21100
21101 fi
21102
21103 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21104 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21105 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21106   echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108   cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h.  */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h.  */
21114 #include <sys/types.h>
21115 #include <$ac_cv_struct_tm>
21116
21117
21118 int
21119 main ()
21120 {
21121 static struct tm ac_aggr;
21122 if (ac_aggr.tm_zone)
21123 return 0;
21124   ;
21125   return 0;
21126 }
21127 _ACEOF
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132   *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135   (eval "$ac_compile") 2>conftest.er1
21136   ac_status=$?
21137   grep -v '^ *+' conftest.er1 >conftest.err
21138   rm -f conftest.er1
21139   cat conftest.err >&5
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); } && {
21142          test -z "$ac_c_werror_flag" ||
21143          test ! -s conftest.err
21144        } && test -s conftest.$ac_objext; then
21145   ac_cv_member_struct_tm_tm_zone=yes
21146 else
21147   echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150         cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h.  */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h.  */
21156 #include <sys/types.h>
21157 #include <$ac_cv_struct_tm>
21158
21159
21160 int
21161 main ()
21162 {
21163 static struct tm ac_aggr;
21164 if (sizeof ac_aggr.tm_zone)
21165 return 0;
21166   ;
21167   return 0;
21168 }
21169 _ACEOF
21170 rm -f conftest.$ac_objext
21171 if { (ac_try="$ac_compile"
21172 case "(($ac_try" in
21173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21174   *) ac_try_echo=$ac_try;;
21175 esac
21176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21177   (eval "$ac_compile") 2>conftest.er1
21178   ac_status=$?
21179   grep -v '^ *+' conftest.er1 >conftest.err
21180   rm -f conftest.er1
21181   cat conftest.err >&5
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); } && {
21184          test -z "$ac_c_werror_flag" ||
21185          test ! -s conftest.err
21186        } && test -s conftest.$ac_objext; then
21187   ac_cv_member_struct_tm_tm_zone=yes
21188 else
21189   echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21191
21192         ac_cv_member_struct_tm_tm_zone=no
21193 fi
21194
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 fi
21197
21198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21199 fi
21200 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21201 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21202 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21203
21204 cat >>confdefs.h <<_ACEOF
21205 #define HAVE_STRUCT_TM_TM_ZONE 1
21206 _ACEOF
21207
21208
21209 fi
21210
21211 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_TM_ZONE 1
21215 _ACEOF
21216
21217 else
21218   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21219 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21220 if test "${ac_cv_have_decl_tzname+set}" = set; then
21221   echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223   cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h.  */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h.  */
21229 #include <time.h>
21230
21231 int
21232 main ()
21233 {
21234 #ifndef tzname
21235   (void) tzname;
21236 #endif
21237
21238   ;
21239   return 0;
21240 }
21241 _ACEOF
21242 rm -f conftest.$ac_objext
21243 if { (ac_try="$ac_compile"
21244 case "(($ac_try" in
21245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246   *) ac_try_echo=$ac_try;;
21247 esac
21248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249   (eval "$ac_compile") 2>conftest.er1
21250   ac_status=$?
21251   grep -v '^ *+' conftest.er1 >conftest.err
21252   rm -f conftest.er1
21253   cat conftest.err >&5
21254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255   (exit $ac_status); } && {
21256          test -z "$ac_c_werror_flag" ||
21257          test ! -s conftest.err
21258        } && test -s conftest.$ac_objext; then
21259   ac_cv_have_decl_tzname=yes
21260 else
21261   echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21263
21264         ac_cv_have_decl_tzname=no
21265 fi
21266
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 fi
21269 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21270 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21271 if test $ac_cv_have_decl_tzname = yes; then
21272
21273 cat >>confdefs.h <<_ACEOF
21274 #define HAVE_DECL_TZNAME 1
21275 _ACEOF
21276
21277
21278 else
21279   cat >>confdefs.h <<_ACEOF
21280 #define HAVE_DECL_TZNAME 0
21281 _ACEOF
21282
21283
21284 fi
21285
21286
21287   { echo "$as_me:$LINENO: checking for tzname" >&5
21288 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21289 if test "${ac_cv_var_tzname+set}" = set; then
21290   echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292   cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h.  */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h.  */
21298 #include <time.h>
21299 #if !HAVE_DECL_TZNAME
21300 extern char *tzname[];
21301 #endif
21302
21303 int
21304 main ()
21305 {
21306 return tzname[0][0];
21307   ;
21308   return 0;
21309 }
21310 _ACEOF
21311 rm -f conftest.$ac_objext conftest$ac_exeext
21312 if { (ac_try="$ac_link"
21313 case "(($ac_try" in
21314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21315   *) ac_try_echo=$ac_try;;
21316 esac
21317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21318   (eval "$ac_link") 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } && {
21325          test -z "$ac_c_werror_flag" ||
21326          test ! -s conftest.err
21327        } && test -s conftest$ac_exeext &&
21328        $as_test_x conftest$ac_exeext; then
21329   ac_cv_var_tzname=yes
21330 else
21331   echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21333
21334         ac_cv_var_tzname=no
21335 fi
21336
21337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21338       conftest$ac_exeext conftest.$ac_ext
21339 fi
21340 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21341 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21342   if test $ac_cv_var_tzname = yes; then
21343
21344 cat >>confdefs.h <<\_ACEOF
21345 #define HAVE_TZNAME 1
21346 _ACEOF
21347
21348   fi
21349 fi
21350
21351
21352 { echo "$as_me:$LINENO: checking for utime.h" >&5
21353 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21354 if test "${ba_cv_header_utime_h+set}" = set; then
21355   echo $ECHO_N "(cached) $ECHO_C" >&6
21356 else
21357   cat >conftest.$ac_ext <<_ACEOF
21358 /* confdefs.h.  */
21359 _ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h.  */
21363
21364 #include <sys/types.h>
21365 #include <utime.h>
21366 int
21367 main ()
21368 {
21369 struct utimbuf foo
21370   ;
21371   return 0;
21372 }
21373 _ACEOF
21374 rm -f conftest.$ac_objext
21375 if { (ac_try="$ac_compile"
21376 case "(($ac_try" in
21377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378   *) ac_try_echo=$ac_try;;
21379 esac
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381   (eval "$ac_compile") 2>conftest.er1
21382   ac_status=$?
21383   grep -v '^ *+' conftest.er1 >conftest.err
21384   rm -f conftest.er1
21385   cat conftest.err >&5
21386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387   (exit $ac_status); } && {
21388          test -z "$ac_c_werror_flag" ||
21389          test ! -s conftest.err
21390        } && test -s conftest.$ac_objext; then
21391   ba_cv_header_utime_h=yes
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396         ba_cv_header_utime_h=no
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 fi
21401 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21402 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21403 test $ba_cv_header_utime_h = yes &&
21404 cat >>confdefs.h <<\_ACEOF
21405 #define HAVE_UTIME_H 1
21406 _ACEOF
21407
21408
21409 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21410 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21411 if test "${ba_cv_header_socklen_t+set}" = set; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414   cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420
21421 #include <sys/types.h>
21422 #include <sys/socket.h>
21423 int
21424 main ()
21425 {
21426 socklen_t x
21427   ;
21428   return 0;
21429 }
21430 _ACEOF
21431 rm -f conftest.$ac_objext
21432 if { (ac_try="$ac_compile"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_compile") 2>conftest.er1
21439   ac_status=$?
21440   grep -v '^ *+' conftest.er1 >conftest.err
21441   rm -f conftest.er1
21442   cat conftest.err >&5
21443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444   (exit $ac_status); } && {
21445          test -z "$ac_c_werror_flag" ||
21446          test ! -s conftest.err
21447        } && test -s conftest.$ac_objext; then
21448   ba_cv_header_socklen_t=yes
21449 else
21450   echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21452
21453         ba_cv_header_socklen_t=no
21454 fi
21455
21456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21457 fi
21458 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21459 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21460 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21461 #define HAVE_SOCKLEN_T 1
21462 _ACEOF
21463
21464
21465 { echo "$as_me:$LINENO: checking for bigendian" >&5
21466 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21467 if test "${ba_cv_bigendian+set}" = set; then
21468   echo $ECHO_N "(cached) $ECHO_C" >&6
21469 else
21470   if test "$cross_compiling" = yes; then
21471   ba_cv_bigendian=no
21472 else
21473   cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21480 _ACEOF
21481 rm -f conftest$ac_exeext
21482 if { (ac_try="$ac_link"
21483 case "(($ac_try" in
21484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485   *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488   (eval "$ac_link") 2>&5
21489   ac_status=$?
21490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21492   { (case "(($ac_try" in
21493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494   *) ac_try_echo=$ac_try;;
21495 esac
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497   (eval "$ac_try") 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; }; then
21501   ba_cv_bigendian=yes
21502 else
21503   echo "$as_me: program exited with status $ac_status" >&5
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507 ( exit $ac_status )
21508 ba_cv_bigendian=no
21509 fi
21510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21511 fi
21512
21513
21514 fi
21515 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21516 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21517 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21518 #define HAVE_BIGENDIAN 1
21519 _ACEOF
21520
21521
21522 ac_ext=cpp
21523 ac_cpp='$CXXCPP $CPPFLAGS'
21524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21527
21528
21529 { echo "$as_me:$LINENO: checking for typeof" >&5
21530 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21531 if test "${ba_cv_have_typeof+set}" = set; then
21532   echo $ECHO_N "(cached) $ECHO_C" >&6
21533 else
21534   if test "$cross_compiling" = yes; then
21535   ba_cv_have_typeof=no
21536 else
21537   cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h.  */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h.  */
21543 main(){char *a = 0; a = (typeof a)a;}
21544 _ACEOF
21545 rm -f conftest$ac_exeext
21546 if { (ac_try="$ac_link"
21547 case "(($ac_try" in
21548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549   *) ac_try_echo=$ac_try;;
21550 esac
21551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552   (eval "$ac_link") 2>&5
21553   ac_status=$?
21554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21556   { (case "(($ac_try" in
21557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21558   *) ac_try_echo=$ac_try;;
21559 esac
21560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21561   (eval "$ac_try") 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   ba_cv_have_typeof=yes
21566 else
21567   echo "$as_me: program exited with status $ac_status" >&5
21568 echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21570
21571 ( exit $ac_status )
21572 ba_cv_have_typeof=no
21573 fi
21574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21575 fi
21576
21577
21578 fi
21579 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21580 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21581 test $ba_cv_have_typeof = yes &&
21582 cat >>confdefs.h <<\_ACEOF
21583 #define HAVE_TYPEOF 1
21584 _ACEOF
21585
21586 ac_ext=c
21587 ac_cpp='$CPP $CPPFLAGS'
21588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21591
21592
21593 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21594 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21595 if test "${ac_cv_c_const+set}" = set; then
21596   echo $ECHO_N "(cached) $ECHO_C" >&6
21597 else
21598   cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604
21605 int
21606 main ()
21607 {
21608 /* FIXME: Include the comments suggested by Paul. */
21609 #ifndef __cplusplus
21610   /* Ultrix mips cc rejects this.  */
21611   typedef int charset[2];
21612   const charset cs;
21613   /* SunOS 4.1.1 cc rejects this.  */
21614   char const *const *pcpcc;
21615   char **ppc;
21616   /* NEC SVR4.0.2 mips cc rejects this.  */
21617   struct point {int x, y;};
21618   static struct point const zero = {0,0};
21619   /* AIX XL C 1.02.0.0 rejects this.
21620      It does not let you subtract one const X* pointer from another in
21621      an arm of an if-expression whose if-part is not a constant
21622      expression */
21623   const char *g = "string";
21624   pcpcc = &g + (g ? g-g : 0);
21625   /* HPUX 7.0 cc rejects these. */
21626   ++pcpcc;
21627   ppc = (char**) pcpcc;
21628   pcpcc = (char const *const *) ppc;
21629   { /* SCO 3.2v4 cc rejects this.  */
21630     char *t;
21631     char const *s = 0 ? (char *) 0 : (char const *) 0;
21632
21633     *t++ = 0;
21634     if (s) return 0;
21635   }
21636   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21637     int x[] = {25, 17};
21638     const int *foo = &x[0];
21639     ++foo;
21640   }
21641   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21642     typedef const int *iptr;
21643     iptr p = 0;
21644     ++p;
21645   }
21646   { /* AIX XL C 1.02.0.0 rejects this saying
21647        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21648     struct s { int j; const int *ap[3]; };
21649     struct s *b; b->j = 5;
21650   }
21651   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21652     const int foo = 10;
21653     if (!foo) return 0;
21654   }
21655   return !cs[0] && !zero.x;
21656 #endif
21657
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_compile") 2>conftest.er1
21670   ac_status=$?
21671   grep -v '^ *+' conftest.er1 >conftest.err
21672   rm -f conftest.er1
21673   cat conftest.err >&5
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); } && {
21676          test -z "$ac_c_werror_flag" ||
21677          test ! -s conftest.err
21678        } && test -s conftest.$ac_objext; then
21679   ac_cv_c_const=yes
21680 else
21681   echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684         ac_cv_c_const=no
21685 fi
21686
21687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688 fi
21689 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21690 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21691 if test $ac_cv_c_const = no; then
21692
21693 cat >>confdefs.h <<\_ACEOF
21694 #define const
21695 _ACEOF
21696
21697 fi
21698
21699
21700
21701 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21702 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21703 fstype=no
21704 # The order of these tests is important.
21705 cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 #include <sys/statvfs.h>
21712 #include <sys/fstyp.h>
21713 _ACEOF
21714 if { (ac_try="$ac_cpp conftest.$ac_ext"
21715 case "(($ac_try" in
21716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717   *) ac_try_echo=$ac_try;;
21718 esac
21719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21721   ac_status=$?
21722   grep -v '^ *+' conftest.er1 >conftest.err
21723   rm -f conftest.er1
21724   cat conftest.err >&5
21725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726   (exit $ac_status); } >/dev/null && {
21727          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21728          test ! -s conftest.err
21729        }; then
21730   cat >>confdefs.h <<\_ACEOF
21731 #define FSTYPE_STATVFS 1
21732 _ACEOF
21733  fstype=SVR4
21734 else
21735   echo "$as_me: failed program was:" >&5
21736 sed 's/^/| /' conftest.$ac_ext >&5
21737
21738
21739 fi
21740
21741 rm -f conftest.err conftest.$ac_ext
21742 if test $fstype = no; then
21743 cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 #include <sys/statfs.h>
21750 #include <sys/fstyp.h>
21751 _ACEOF
21752 if { (ac_try="$ac_cpp conftest.$ac_ext"
21753 case "(($ac_try" in
21754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21755   *) ac_try_echo=$ac_try;;
21756 esac
21757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21759   ac_status=$?
21760   grep -v '^ *+' conftest.er1 >conftest.err
21761   rm -f conftest.er1
21762   cat conftest.err >&5
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); } >/dev/null && {
21765          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21766          test ! -s conftest.err
21767        }; then
21768   cat >>confdefs.h <<\_ACEOF
21769 #define FSTYPE_USG_STATFS 1
21770 _ACEOF
21771  fstype=SVR3
21772 else
21773   echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21775
21776
21777 fi
21778
21779 rm -f conftest.err conftest.$ac_ext
21780 fi
21781 if test $fstype = no; then
21782 cat >conftest.$ac_ext <<_ACEOF
21783 /* confdefs.h.  */
21784 _ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h.  */
21788 #include <sys/statfs.h>
21789 #include <sys/vmount.h>
21790 _ACEOF
21791 if { (ac_try="$ac_cpp conftest.$ac_ext"
21792 case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21798   ac_status=$?
21799   grep -v '^ *+' conftest.er1 >conftest.err
21800   rm -f conftest.er1
21801   cat conftest.err >&5
21802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21803   (exit $ac_status); } >/dev/null && {
21804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21805          test ! -s conftest.err
21806        }; then
21807   cat >>confdefs.h <<\_ACEOF
21808 #define FSTYPE_AIX_STATFS 1
21809 _ACEOF
21810  fstype=AIX
21811 else
21812   echo "$as_me: failed program was:" >&5
21813 sed 's/^/| /' conftest.$ac_ext >&5
21814
21815
21816 fi
21817
21818 rm -f conftest.err conftest.$ac_ext
21819 fi
21820 if test $fstype = no; then
21821 cat >conftest.$ac_ext <<_ACEOF
21822 /* confdefs.h.  */
21823 _ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h.  */
21827 #include <mntent.h>
21828 _ACEOF
21829 if { (ac_try="$ac_cpp conftest.$ac_ext"
21830 case "(($ac_try" in
21831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21832   *) ac_try_echo=$ac_try;;
21833 esac
21834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21835   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21836   ac_status=$?
21837   grep -v '^ *+' conftest.er1 >conftest.err
21838   rm -f conftest.er1
21839   cat conftest.err >&5
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } >/dev/null && {
21842          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21843          test ! -s conftest.err
21844        }; then
21845   cat >>confdefs.h <<\_ACEOF
21846 #define FSTYPE_MNTENT 1
21847 _ACEOF
21848  fstype=4.3BSD
21849 else
21850   echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853
21854 fi
21855
21856 rm -f conftest.err conftest.$ac_ext
21857 fi
21858 if test $fstype = no; then
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865 #include <sys/mount.h>
21866
21867 _ACEOF
21868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21869   $EGREP "f_type;" >/dev/null 2>&1; then
21870   cat >>confdefs.h <<\_ACEOF
21871 #define FSTYPE_STATFS 1
21872 _ACEOF
21873  fstype=4.4BSD/OSF1
21874 fi
21875 rm -f conftest*
21876
21877 fi
21878 if test $fstype = no; then
21879 cat >conftest.$ac_ext <<_ACEOF
21880 /* confdefs.h.  */
21881 _ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h.  */
21885 #include <sys/mount.h>
21886 #include <sys/fs_types.h>
21887 _ACEOF
21888 if { (ac_try="$ac_cpp conftest.$ac_ext"
21889 case "(($ac_try" in
21890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891   *) ac_try_echo=$ac_try;;
21892 esac
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21895   ac_status=$?
21896   grep -v '^ *+' conftest.er1 >conftest.err
21897   rm -f conftest.er1
21898   cat conftest.err >&5
21899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900   (exit $ac_status); } >/dev/null && {
21901          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21902          test ! -s conftest.err
21903        }; then
21904   cat >>confdefs.h <<\_ACEOF
21905 #define FSTYPE_GETMNT 1
21906 _ACEOF
21907  fstype=Ultrix
21908 else
21909   echo "$as_me: failed program was:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21911
21912
21913 fi
21914
21915 rm -f conftest.err conftest.$ac_ext
21916 fi
21917 { echo "$as_me:$LINENO: result: $fstype" >&5
21918 echo "${ECHO_T}$fstype" >&6; }
21919
21920 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21921   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21922 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21923 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21924   echo $ECHO_N "(cached) $ECHO_C" >&6
21925 fi
21926 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21927 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21928 else
21929   # Is the header compilable?
21930 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21931 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21932 cat >conftest.$ac_ext <<_ACEOF
21933 /* confdefs.h.  */
21934 _ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h.  */
21938 $ac_includes_default
21939 #include <sys/statvfs.h>
21940 _ACEOF
21941 rm -f conftest.$ac_objext
21942 if { (ac_try="$ac_compile"
21943 case "(($ac_try" in
21944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945   *) ac_try_echo=$ac_try;;
21946 esac
21947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948   (eval "$ac_compile") 2>conftest.er1
21949   ac_status=$?
21950   grep -v '^ *+' conftest.er1 >conftest.err
21951   rm -f conftest.er1
21952   cat conftest.err >&5
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); } && {
21955          test -z "$ac_c_werror_flag" ||
21956          test ! -s conftest.err
21957        } && test -s conftest.$ac_objext; then
21958   ac_header_compiler=yes
21959 else
21960   echo "$as_me: failed program was:" >&5
21961 sed 's/^/| /' conftest.$ac_ext >&5
21962
21963         ac_header_compiler=no
21964 fi
21965
21966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21968 echo "${ECHO_T}$ac_header_compiler" >&6; }
21969
21970 # Is the header present?
21971 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21972 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21973 cat >conftest.$ac_ext <<_ACEOF
21974 /* confdefs.h.  */
21975 _ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h.  */
21979 #include <sys/statvfs.h>
21980 _ACEOF
21981 if { (ac_try="$ac_cpp conftest.$ac_ext"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } >/dev/null && {
21994          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21995          test ! -s conftest.err
21996        }; then
21997   ac_header_preproc=yes
21998 else
21999   echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002   ac_header_preproc=no
22003 fi
22004
22005 rm -f conftest.err conftest.$ac_ext
22006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22007 echo "${ECHO_T}$ac_header_preproc" >&6; }
22008
22009 # So?  What about this header?
22010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22011   yes:no: )
22012     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22013 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22014     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22015 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22016     ac_header_preproc=yes
22017     ;;
22018   no:yes:* )
22019     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22020 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22021     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22022 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22023     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22024 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22025     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22026 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22027     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22028 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22029     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22030 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22031
22032     ;;
22033 esac
22034 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22035 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22036 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22040 fi
22041 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22042 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22043
22044 fi
22045 if test $ac_cv_header_sys_statvfs_h = yes; then
22046
22047 cat >>confdefs.h <<\_ACEOF
22048 #define HAVE_SYS_STATVFS_H 1
22049 _ACEOF
22050
22051 fi
22052
22053
22054
22055 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22056 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22057 if test "${ac_cv_type_signal+set}" = set; then
22058   echo $ECHO_N "(cached) $ECHO_C" >&6
22059 else
22060   cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h.  */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h.  */
22066 #include <sys/types.h>
22067 #include <signal.h>
22068
22069 int
22070 main ()
22071 {
22072 return *(signal (0, 0)) (0) == 1;
22073   ;
22074   return 0;
22075 }
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081   *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084   (eval "$ac_compile") 2>conftest.er1
22085   ac_status=$?
22086   grep -v '^ *+' conftest.er1 >conftest.err
22087   rm -f conftest.er1
22088   cat conftest.err >&5
22089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090   (exit $ac_status); } && {
22091          test -z "$ac_c_werror_flag" ||
22092          test ! -s conftest.err
22093        } && test -s conftest.$ac_objext; then
22094   ac_cv_type_signal=int
22095 else
22096   echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099         ac_cv_type_signal=void
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 fi
22104 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22105 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22106
22107 cat >>confdefs.h <<_ACEOF
22108 #define RETSIGTYPE $ac_cv_type_signal
22109 _ACEOF
22110
22111
22112
22113   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22114 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22115   if test "${bash_cv_signal_vintage+set}" = set; then
22116   echo $ECHO_N "(cached) $ECHO_C" >&6
22117 else
22118
22119     cat >conftest.$ac_ext <<_ACEOF
22120 /* confdefs.h.  */
22121 _ACEOF
22122 cat confdefs.h >>conftest.$ac_ext
22123 cat >>conftest.$ac_ext <<_ACEOF
22124 /* end confdefs.h.  */
22125 #include <signal.h>
22126 int
22127 main ()
22128 {
22129
22130       sigset_t ss;
22131       struct sigaction sa;
22132       sigemptyset(&ss); sigsuspend(&ss);
22133       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22134       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22135
22136   ;
22137   return 0;
22138 }
22139 _ACEOF
22140 rm -f conftest.$ac_objext conftest$ac_exeext
22141 if { (ac_try="$ac_link"
22142 case "(($ac_try" in
22143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144   *) ac_try_echo=$ac_try;;
22145 esac
22146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147   (eval "$ac_link") 2>conftest.er1
22148   ac_status=$?
22149   grep -v '^ *+' conftest.er1 >conftest.err
22150   rm -f conftest.er1
22151   cat conftest.err >&5
22152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153   (exit $ac_status); } && {
22154          test -z "$ac_c_werror_flag" ||
22155          test ! -s conftest.err
22156        } && test -s conftest$ac_exeext &&
22157        $as_test_x conftest$ac_exeext; then
22158   bash_cv_signal_vintage="posix"
22159 else
22160   echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163
22164       cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h.  */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h.  */
22170 #include <signal.h>
22171 int
22172 main ()
22173 {
22174
22175           int mask = sigmask(SIGINT);
22176           sigsetmask(mask); sigblock(mask); sigpause(mask);
22177
22178   ;
22179   return 0;
22180 }
22181 _ACEOF
22182 rm -f conftest.$ac_objext conftest$ac_exeext
22183 if { (ac_try="$ac_link"
22184 case "(($ac_try" in
22185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186   *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189   (eval "$ac_link") 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } && {
22196          test -z "$ac_c_werror_flag" ||
22197          test ! -s conftest.err
22198        } && test -s conftest$ac_exeext &&
22199        $as_test_x conftest$ac_exeext; then
22200   bash_cv_signal_vintage="4.2bsd"
22201 else
22202   echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22204
22205
22206         cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212
22213           #include <signal.h>
22214           RETSIGTYPE foo() { }
22215 int
22216 main ()
22217 {
22218
22219                   int mask = sigmask(SIGINT);
22220                   sigset(SIGINT, foo); sigrelse(SIGINT);
22221                   sighold(SIGINT); sigpause(SIGINT);
22222
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest.$ac_objext conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234   (eval "$ac_link") 2>conftest.er1
22235   ac_status=$?
22236   grep -v '^ *+' conftest.er1 >conftest.err
22237   rm -f conftest.er1
22238   cat conftest.err >&5
22239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240   (exit $ac_status); } && {
22241          test -z "$ac_c_werror_flag" ||
22242          test ! -s conftest.err
22243        } && test -s conftest$ac_exeext &&
22244        $as_test_x conftest$ac_exeext; then
22245   bash_cv_signal_vintage="svr3"
22246 else
22247   echo "$as_me: failed program was:" >&5
22248 sed 's/^/| /' conftest.$ac_ext >&5
22249
22250         bash_cv_signal_vintage="v7"
22251
22252 fi
22253
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255       conftest$ac_exeext conftest.$ac_ext
22256
22257 fi
22258
22259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22260       conftest$ac_exeext conftest.$ac_ext
22261
22262 fi
22263
22264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265       conftest$ac_exeext conftest.$ac_ext
22266
22267 fi
22268
22269   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22270 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22271   if test "$bash_cv_signal_vintage" = "posix"; then
22272     cat >>confdefs.h <<\_ACEOF
22273 #define HAVE_POSIX_SIGNALS 1
22274 _ACEOF
22275
22276   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22277     cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_BSD_SIGNALS 1
22279 _ACEOF
22280
22281   elif test "$bash_cv_signal_vintage" = "svr3"; then
22282     cat >>confdefs.h <<\_ACEOF
22283 #define HAVE_USG_SIGHOLD 1
22284 _ACEOF
22285
22286   fi
22287
22288 { echo "$as_me:$LINENO: checking for mode_t" >&5
22289 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22290 if test "${ac_cv_type_mode_t+set}" = set; then
22291   echo $ECHO_N "(cached) $ECHO_C" >&6
22292 else
22293   cat >conftest.$ac_ext <<_ACEOF
22294 /* confdefs.h.  */
22295 _ACEOF
22296 cat confdefs.h >>conftest.$ac_ext
22297 cat >>conftest.$ac_ext <<_ACEOF
22298 /* end confdefs.h.  */
22299 $ac_includes_default
22300 typedef mode_t ac__type_new_;
22301 int
22302 main ()
22303 {
22304 if ((ac__type_new_ *) 0)
22305   return 0;
22306 if (sizeof (ac__type_new_))
22307   return 0;
22308   ;
22309   return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext
22313 if { (ac_try="$ac_compile"
22314 case "(($ac_try" in
22315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316   *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319   (eval "$ac_compile") 2>conftest.er1
22320   ac_status=$?
22321   grep -v '^ *+' conftest.er1 >conftest.err
22322   rm -f conftest.er1
22323   cat conftest.err >&5
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); } && {
22326          test -z "$ac_c_werror_flag" ||
22327          test ! -s conftest.err
22328        } && test -s conftest.$ac_objext; then
22329   ac_cv_type_mode_t=yes
22330 else
22331   echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22333
22334         ac_cv_type_mode_t=no
22335 fi
22336
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 fi
22339 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22340 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22341 if test $ac_cv_type_mode_t = yes; then
22342   :
22343 else
22344
22345 cat >>confdefs.h <<_ACEOF
22346 #define mode_t int
22347 _ACEOF
22348
22349 fi
22350
22351 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22352 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22353 if test "${ac_cv_type_uid_t+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356   cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362 #include <sys/types.h>
22363
22364 _ACEOF
22365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22366   $EGREP "uid_t" >/dev/null 2>&1; then
22367   ac_cv_type_uid_t=yes
22368 else
22369   ac_cv_type_uid_t=no
22370 fi
22371 rm -f conftest*
22372
22373 fi
22374 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22375 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22376 if test $ac_cv_type_uid_t = no; then
22377
22378 cat >>confdefs.h <<\_ACEOF
22379 #define uid_t int
22380 _ACEOF
22381
22382
22383 cat >>confdefs.h <<\_ACEOF
22384 #define gid_t int
22385 _ACEOF
22386
22387 fi
22388
22389 { echo "$as_me:$LINENO: checking for size_t" >&5
22390 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22391 if test "${ac_cv_type_size_t+set}" = set; then
22392   echo $ECHO_N "(cached) $ECHO_C" >&6
22393 else
22394   cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h.  */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h.  */
22400 $ac_includes_default
22401 typedef size_t ac__type_new_;
22402 int
22403 main ()
22404 {
22405 if ((ac__type_new_ *) 0)
22406   return 0;
22407 if (sizeof (ac__type_new_))
22408   return 0;
22409   ;
22410   return 0;
22411 }
22412 _ACEOF
22413 rm -f conftest.$ac_objext
22414 if { (ac_try="$ac_compile"
22415 case "(($ac_try" in
22416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417   *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420   (eval "$ac_compile") 2>conftest.er1
22421   ac_status=$?
22422   grep -v '^ *+' conftest.er1 >conftest.err
22423   rm -f conftest.er1
22424   cat conftest.err >&5
22425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426   (exit $ac_status); } && {
22427          test -z "$ac_c_werror_flag" ||
22428          test ! -s conftest.err
22429        } && test -s conftest.$ac_objext; then
22430   ac_cv_type_size_t=yes
22431 else
22432   echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22434
22435         ac_cv_type_size_t=no
22436 fi
22437
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439 fi
22440 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22441 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22442 if test $ac_cv_type_size_t = yes; then
22443   :
22444 else
22445
22446 cat >>confdefs.h <<_ACEOF
22447 #define size_t unsigned int
22448 _ACEOF
22449
22450 fi
22451
22452 { echo "$as_me:$LINENO: checking for pid_t" >&5
22453 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22454 if test "${ac_cv_type_pid_t+set}" = set; then
22455   echo $ECHO_N "(cached) $ECHO_C" >&6
22456 else
22457   cat >conftest.$ac_ext <<_ACEOF
22458 /* confdefs.h.  */
22459 _ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h.  */
22463 $ac_includes_default
22464 typedef pid_t ac__type_new_;
22465 int
22466 main ()
22467 {
22468 if ((ac__type_new_ *) 0)
22469   return 0;
22470 if (sizeof (ac__type_new_))
22471   return 0;
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (ac_try="$ac_compile"
22478 case "(($ac_try" in
22479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22480   *) ac_try_echo=$ac_try;;
22481 esac
22482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22483   (eval "$ac_compile") 2>conftest.er1
22484   ac_status=$?
22485   grep -v '^ *+' conftest.er1 >conftest.err
22486   rm -f conftest.er1
22487   cat conftest.err >&5
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); } && {
22490          test -z "$ac_c_werror_flag" ||
22491          test ! -s conftest.err
22492        } && test -s conftest.$ac_objext; then
22493   ac_cv_type_pid_t=yes
22494 else
22495   echo "$as_me: failed program was:" >&5
22496 sed 's/^/| /' conftest.$ac_ext >&5
22497
22498         ac_cv_type_pid_t=no
22499 fi
22500
22501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22502 fi
22503 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22504 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22505 if test $ac_cv_type_pid_t = yes; then
22506   :
22507 else
22508
22509 cat >>confdefs.h <<_ACEOF
22510 #define pid_t int
22511 _ACEOF
22512
22513 fi
22514
22515 { echo "$as_me:$LINENO: checking for off_t" >&5
22516 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22517 if test "${ac_cv_type_off_t+set}" = set; then
22518   echo $ECHO_N "(cached) $ECHO_C" >&6
22519 else
22520   cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 $ac_includes_default
22527 typedef off_t ac__type_new_;
22528 int
22529 main ()
22530 {
22531 if ((ac__type_new_ *) 0)
22532   return 0;
22533 if (sizeof (ac__type_new_))
22534   return 0;
22535   ;
22536   return 0;
22537 }
22538 _ACEOF
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543   *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546   (eval "$ac_compile") 2>conftest.er1
22547   ac_status=$?
22548   grep -v '^ *+' conftest.er1 >conftest.err
22549   rm -f conftest.er1
22550   cat conftest.err >&5
22551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22552   (exit $ac_status); } && {
22553          test -z "$ac_c_werror_flag" ||
22554          test ! -s conftest.err
22555        } && test -s conftest.$ac_objext; then
22556   ac_cv_type_off_t=yes
22557 else
22558   echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561         ac_cv_type_off_t=no
22562 fi
22563
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 fi
22566 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22567 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22568 if test $ac_cv_type_off_t = yes; then
22569   :
22570 else
22571
22572 cat >>confdefs.h <<_ACEOF
22573 #define off_t long int
22574 _ACEOF
22575
22576 fi
22577
22578 { echo "$as_me:$LINENO: checking for ino_t" >&5
22579 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22580 if test "${ac_cv_type_ino_t+set}" = set; then
22581   echo $ECHO_N "(cached) $ECHO_C" >&6
22582 else
22583   cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h.  */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h.  */
22589 $ac_includes_default
22590 typedef ino_t ac__type_new_;
22591 int
22592 main ()
22593 {
22594 if ((ac__type_new_ *) 0)
22595   return 0;
22596 if (sizeof (ac__type_new_))
22597   return 0;
22598   ;
22599   return 0;
22600 }
22601 _ACEOF
22602 rm -f conftest.$ac_objext
22603 if { (ac_try="$ac_compile"
22604 case "(($ac_try" in
22605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22606   *) ac_try_echo=$ac_try;;
22607 esac
22608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22609   (eval "$ac_compile") 2>conftest.er1
22610   ac_status=$?
22611   grep -v '^ *+' conftest.er1 >conftest.err
22612   rm -f conftest.er1
22613   cat conftest.err >&5
22614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615   (exit $ac_status); } && {
22616          test -z "$ac_c_werror_flag" ||
22617          test ! -s conftest.err
22618        } && test -s conftest.$ac_objext; then
22619   ac_cv_type_ino_t=yes
22620 else
22621   echo "$as_me: failed program was:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22623
22624         ac_cv_type_ino_t=no
22625 fi
22626
22627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22628 fi
22629 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22630 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22631 if test $ac_cv_type_ino_t = yes; then
22632   :
22633 else
22634
22635 cat >>confdefs.h <<_ACEOF
22636 #define ino_t unsigned long
22637 _ACEOF
22638
22639 fi
22640
22641 { echo "$as_me:$LINENO: checking for dev_t" >&5
22642 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22643 if test "${ac_cv_type_dev_t+set}" = set; then
22644   echo $ECHO_N "(cached) $ECHO_C" >&6
22645 else
22646   cat >conftest.$ac_ext <<_ACEOF
22647 /* confdefs.h.  */
22648 _ACEOF
22649 cat confdefs.h >>conftest.$ac_ext
22650 cat >>conftest.$ac_ext <<_ACEOF
22651 /* end confdefs.h.  */
22652 $ac_includes_default
22653 typedef dev_t ac__type_new_;
22654 int
22655 main ()
22656 {
22657 if ((ac__type_new_ *) 0)
22658   return 0;
22659 if (sizeof (ac__type_new_))
22660   return 0;
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (ac_try="$ac_compile"
22667 case "(($ac_try" in
22668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669   *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672   (eval "$ac_compile") 2>conftest.er1
22673   ac_status=$?
22674   grep -v '^ *+' conftest.er1 >conftest.err
22675   rm -f conftest.er1
22676   cat conftest.err >&5
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); } && {
22679          test -z "$ac_c_werror_flag" ||
22680          test ! -s conftest.err
22681        } && test -s conftest.$ac_objext; then
22682   ac_cv_type_dev_t=yes
22683 else
22684   echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22686
22687         ac_cv_type_dev_t=no
22688 fi
22689
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 fi
22692 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22693 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22694 if test $ac_cv_type_dev_t = yes; then
22695   :
22696 else
22697
22698 cat >>confdefs.h <<_ACEOF
22699 #define dev_t unsigned long
22700 _ACEOF
22701
22702 fi
22703
22704 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22705 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22706 if test "${ac_cv_type_daddr_t+set}" = set; then
22707   echo $ECHO_N "(cached) $ECHO_C" >&6
22708 else
22709   cat >conftest.$ac_ext <<_ACEOF
22710 /* confdefs.h.  */
22711 _ACEOF
22712 cat confdefs.h >>conftest.$ac_ext
22713 cat >>conftest.$ac_ext <<_ACEOF
22714 /* end confdefs.h.  */
22715 $ac_includes_default
22716 typedef daddr_t ac__type_new_;
22717 int
22718 main ()
22719 {
22720 if ((ac__type_new_ *) 0)
22721   return 0;
22722 if (sizeof (ac__type_new_))
22723   return 0;
22724   ;
22725   return 0;
22726 }
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (ac_try="$ac_compile"
22730 case "(($ac_try" in
22731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732   *) ac_try_echo=$ac_try;;
22733 esac
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735   (eval "$ac_compile") 2>conftest.er1
22736   ac_status=$?
22737   grep -v '^ *+' conftest.er1 >conftest.err
22738   rm -f conftest.er1
22739   cat conftest.err >&5
22740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741   (exit $ac_status); } && {
22742          test -z "$ac_c_werror_flag" ||
22743          test ! -s conftest.err
22744        } && test -s conftest.$ac_objext; then
22745   ac_cv_type_daddr_t=yes
22746 else
22747   echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22749
22750         ac_cv_type_daddr_t=no
22751 fi
22752
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 fi
22755 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22756 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22757 if test $ac_cv_type_daddr_t = yes; then
22758   :
22759 else
22760
22761 cat >>confdefs.h <<_ACEOF
22762 #define daddr_t long
22763 _ACEOF
22764
22765 fi
22766
22767 { echo "$as_me:$LINENO: checking for major_t" >&5
22768 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22769 if test "${ac_cv_type_major_t+set}" = set; then
22770   echo $ECHO_N "(cached) $ECHO_C" >&6
22771 else
22772   cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h.  */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h.  */
22778 $ac_includes_default
22779 typedef major_t ac__type_new_;
22780 int
22781 main ()
22782 {
22783 if ((ac__type_new_ *) 0)
22784   return 0;
22785 if (sizeof (ac__type_new_))
22786   return 0;
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 rm -f conftest.$ac_objext
22792 if { (ac_try="$ac_compile"
22793 case "(($ac_try" in
22794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795   *) ac_try_echo=$ac_try;;
22796 esac
22797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22798   (eval "$ac_compile") 2>conftest.er1
22799   ac_status=$?
22800   grep -v '^ *+' conftest.er1 >conftest.err
22801   rm -f conftest.er1
22802   cat conftest.err >&5
22803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804   (exit $ac_status); } && {
22805          test -z "$ac_c_werror_flag" ||
22806          test ! -s conftest.err
22807        } && test -s conftest.$ac_objext; then
22808   ac_cv_type_major_t=yes
22809 else
22810   echo "$as_me: failed program was:" >&5
22811 sed 's/^/| /' conftest.$ac_ext >&5
22812
22813         ac_cv_type_major_t=no
22814 fi
22815
22816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22817 fi
22818 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22819 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22820 if test $ac_cv_type_major_t = yes; then
22821   :
22822 else
22823
22824 cat >>confdefs.h <<_ACEOF
22825 #define major_t int
22826 _ACEOF
22827
22828 fi
22829
22830 { echo "$as_me:$LINENO: checking for minor_t" >&5
22831 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22832 if test "${ac_cv_type_minor_t+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835   cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841 $ac_includes_default
22842 typedef minor_t ac__type_new_;
22843 int
22844 main ()
22845 {
22846 if ((ac__type_new_ *) 0)
22847   return 0;
22848 if (sizeof (ac__type_new_))
22849   return 0;
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858   *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861   (eval "$ac_compile") 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } && {
22868          test -z "$ac_c_werror_flag" ||
22869          test ! -s conftest.err
22870        } && test -s conftest.$ac_objext; then
22871   ac_cv_type_minor_t=yes
22872 else
22873   echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22875
22876         ac_cv_type_minor_t=no
22877 fi
22878
22879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22880 fi
22881 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22882 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22883 if test $ac_cv_type_minor_t = yes; then
22884   :
22885 else
22886
22887 cat >>confdefs.h <<_ACEOF
22888 #define minor_t int
22889 _ACEOF
22890
22891 fi
22892
22893 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22894 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22895 if test "${ac_cv_type_ssize_t+set}" = set; then
22896   echo $ECHO_N "(cached) $ECHO_C" >&6
22897 else
22898   cat >conftest.$ac_ext <<_ACEOF
22899 /* confdefs.h.  */
22900 _ACEOF
22901 cat confdefs.h >>conftest.$ac_ext
22902 cat >>conftest.$ac_ext <<_ACEOF
22903 /* end confdefs.h.  */
22904 $ac_includes_default
22905 typedef ssize_t ac__type_new_;
22906 int
22907 main ()
22908 {
22909 if ((ac__type_new_ *) 0)
22910   return 0;
22911 if (sizeof (ac__type_new_))
22912   return 0;
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext
22918 if { (ac_try="$ac_compile"
22919 case "(($ac_try" in
22920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921   *) ac_try_echo=$ac_try;;
22922 esac
22923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22924   (eval "$ac_compile") 2>conftest.er1
22925   ac_status=$?
22926   grep -v '^ *+' conftest.er1 >conftest.err
22927   rm -f conftest.er1
22928   cat conftest.err >&5
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); } && {
22931          test -z "$ac_c_werror_flag" ||
22932          test ! -s conftest.err
22933        } && test -s conftest.$ac_objext; then
22934   ac_cv_type_ssize_t=yes
22935 else
22936   echo "$as_me: failed program was:" >&5
22937 sed 's/^/| /' conftest.$ac_ext >&5
22938
22939         ac_cv_type_ssize_t=no
22940 fi
22941
22942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22943 fi
22944 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22945 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22946 if test $ac_cv_type_ssize_t = yes; then
22947   :
22948 else
22949
22950 cat >>confdefs.h <<_ACEOF
22951 #define ssize_t int
22952 _ACEOF
22953
22954 fi
22955
22956 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22957 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22958 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22959   echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961   cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h.  */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h.  */
22967 $ac_includes_default
22968 int
22969 main ()
22970 {
22971 static struct stat ac_aggr;
22972 if (ac_aggr.st_blocks)
22973 return 0;
22974   ;
22975   return 0;
22976 }
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982   *) ac_try_echo=$ac_try;;
22983 esac
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985   (eval "$ac_compile") 2>conftest.er1
22986   ac_status=$?
22987   grep -v '^ *+' conftest.er1 >conftest.err
22988   rm -f conftest.er1
22989   cat conftest.err >&5
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); } && {
22992          test -z "$ac_c_werror_flag" ||
22993          test ! -s conftest.err
22994        } && test -s conftest.$ac_objext; then
22995   ac_cv_member_struct_stat_st_blocks=yes
22996 else
22997   echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
22999
23000         cat >conftest.$ac_ext <<_ACEOF
23001 /* confdefs.h.  */
23002 _ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h.  */
23006 $ac_includes_default
23007 int
23008 main ()
23009 {
23010 static struct stat ac_aggr;
23011 if (sizeof ac_aggr.st_blocks)
23012 return 0;
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext
23018 if { (ac_try="$ac_compile"
23019 case "(($ac_try" in
23020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021   *) ac_try_echo=$ac_try;;
23022 esac
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024   (eval "$ac_compile") 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } && {
23031          test -z "$ac_c_werror_flag" ||
23032          test ! -s conftest.err
23033        } && test -s conftest.$ac_objext; then
23034   ac_cv_member_struct_stat_st_blocks=yes
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039         ac_cv_member_struct_stat_st_blocks=no
23040 fi
23041
23042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23043 fi
23044
23045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23046 fi
23047 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23049 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23050
23051 cat >>confdefs.h <<_ACEOF
23052 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23053 _ACEOF
23054
23055
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_ST_BLOCKS 1
23058 _ACEOF
23059
23060 else
23061   case " $LIBOBJS " in
23062   *" fileblocks.$ac_objext "* ) ;;
23063   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23064  ;;
23065 esac
23066
23067 fi
23068
23069
23070 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23071 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23072 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23073   echo $ECHO_N "(cached) $ECHO_C" >&6
23074 else
23075   cat >conftest.$ac_ext <<_ACEOF
23076 /* confdefs.h.  */
23077 _ACEOF
23078 cat confdefs.h >>conftest.$ac_ext
23079 cat >>conftest.$ac_ext <<_ACEOF
23080 /* end confdefs.h.  */
23081 $ac_includes_default
23082 int
23083 main ()
23084 {
23085 static struct stat ac_aggr;
23086 if (ac_aggr.st_rdev)
23087 return 0;
23088   ;
23089   return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext
23093 if { (ac_try="$ac_compile"
23094 case "(($ac_try" in
23095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096   *) ac_try_echo=$ac_try;;
23097 esac
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099   (eval "$ac_compile") 2>conftest.er1
23100   ac_status=$?
23101   grep -v '^ *+' conftest.er1 >conftest.err
23102   rm -f conftest.er1
23103   cat conftest.err >&5
23104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105   (exit $ac_status); } && {
23106          test -z "$ac_c_werror_flag" ||
23107          test ! -s conftest.err
23108        } && test -s conftest.$ac_objext; then
23109   ac_cv_member_struct_stat_st_rdev=yes
23110 else
23111   echo "$as_me: failed program was:" >&5
23112 sed 's/^/| /' conftest.$ac_ext >&5
23113
23114         cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 $ac_includes_default
23121 int
23122 main ()
23123 {
23124 static struct stat ac_aggr;
23125 if (sizeof ac_aggr.st_rdev)
23126 return 0;
23127   ;
23128   return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135   *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138   (eval "$ac_compile") 2>conftest.er1
23139   ac_status=$?
23140   grep -v '^ *+' conftest.er1 >conftest.err
23141   rm -f conftest.er1
23142   cat conftest.err >&5
23143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144   (exit $ac_status); } && {
23145          test -z "$ac_c_werror_flag" ||
23146          test ! -s conftest.err
23147        } && test -s conftest.$ac_objext; then
23148   ac_cv_member_struct_stat_st_rdev=yes
23149 else
23150   echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153         ac_cv_member_struct_stat_st_rdev=no
23154 fi
23155
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 fi
23158
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160 fi
23161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23162 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23163 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23164
23165 cat >>confdefs.h <<_ACEOF
23166 #define HAVE_STRUCT_STAT_ST_RDEV 1
23167 _ACEOF
23168
23169
23170 cat >>confdefs.h <<\_ACEOF
23171 #define HAVE_ST_RDEV 1
23172 _ACEOF
23173
23174 fi
23175
23176
23177 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23178 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23179 if test "${ac_cv_struct_tm+set}" = set; then
23180   echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182   cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 #include <sys/types.h>
23189 #include <time.h>
23190
23191 int
23192 main ()
23193 {
23194 struct tm tm;
23195                                      int *p = &tm.tm_sec;
23196                                      return !p;
23197   ;
23198   return 0;
23199 }
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205   *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208   (eval "$ac_compile") 2>conftest.er1
23209   ac_status=$?
23210   grep -v '^ *+' conftest.er1 >conftest.err
23211   rm -f conftest.er1
23212   cat conftest.err >&5
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); } && {
23215          test -z "$ac_c_werror_flag" ||
23216          test ! -s conftest.err
23217        } && test -s conftest.$ac_objext; then
23218   ac_cv_struct_tm=time.h
23219 else
23220   echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223         ac_cv_struct_tm=sys/time.h
23224 fi
23225
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 fi
23228 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23229 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23230 if test $ac_cv_struct_tm = sys/time.h; then
23231
23232 cat >>confdefs.h <<\_ACEOF
23233 #define TM_IN_SYS_TIME 1
23234 _ACEOF
23235
23236 fi
23237
23238 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23239 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23240 if test "${ac_cv_c_const+set}" = set; then
23241   echo $ECHO_N "(cached) $ECHO_C" >&6
23242 else
23243   cat >conftest.$ac_ext <<_ACEOF
23244 /* confdefs.h.  */
23245 _ACEOF
23246 cat confdefs.h >>conftest.$ac_ext
23247 cat >>conftest.$ac_ext <<_ACEOF
23248 /* end confdefs.h.  */
23249
23250 int
23251 main ()
23252 {
23253 /* FIXME: Include the comments suggested by Paul. */
23254 #ifndef __cplusplus
23255   /* Ultrix mips cc rejects this.  */
23256   typedef int charset[2];
23257   const charset cs;
23258   /* SunOS 4.1.1 cc rejects this.  */
23259   char const *const *pcpcc;
23260   char **ppc;
23261   /* NEC SVR4.0.2 mips cc rejects this.  */
23262   struct point {int x, y;};
23263   static struct point const zero = {0,0};
23264   /* AIX XL C 1.02.0.0 rejects this.
23265      It does not let you subtract one const X* pointer from another in
23266      an arm of an if-expression whose if-part is not a constant
23267      expression */
23268   const char *g = "string";
23269   pcpcc = &g + (g ? g-g : 0);
23270   /* HPUX 7.0 cc rejects these. */
23271   ++pcpcc;
23272   ppc = (char**) pcpcc;
23273   pcpcc = (char const *const *) ppc;
23274   { /* SCO 3.2v4 cc rejects this.  */
23275     char *t;
23276     char const *s = 0 ? (char *) 0 : (char const *) 0;
23277
23278     *t++ = 0;
23279     if (s) return 0;
23280   }
23281   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23282     int x[] = {25, 17};
23283     const int *foo = &x[0];
23284     ++foo;
23285   }
23286   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23287     typedef const int *iptr;
23288     iptr p = 0;
23289     ++p;
23290   }
23291   { /* AIX XL C 1.02.0.0 rejects this saying
23292        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23293     struct s { int j; const int *ap[3]; };
23294     struct s *b; b->j = 5;
23295   }
23296   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23297     const int foo = 10;
23298     if (!foo) return 0;
23299   }
23300   return !cs[0] && !zero.x;
23301 #endif
23302
23303   ;
23304   return 0;
23305 }
23306 _ACEOF
23307 rm -f conftest.$ac_objext
23308 if { (ac_try="$ac_compile"
23309 case "(($ac_try" in
23310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311   *) ac_try_echo=$ac_try;;
23312 esac
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314   (eval "$ac_compile") 2>conftest.er1
23315   ac_status=$?
23316   grep -v '^ *+' conftest.er1 >conftest.err
23317   rm -f conftest.er1
23318   cat conftest.err >&5
23319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320   (exit $ac_status); } && {
23321          test -z "$ac_c_werror_flag" ||
23322          test ! -s conftest.err
23323        } && test -s conftest.$ac_objext; then
23324   ac_cv_c_const=yes
23325 else
23326   echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329         ac_cv_c_const=no
23330 fi
23331
23332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23333 fi
23334 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23335 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23336 if test $ac_cv_c_const = no; then
23337
23338 cat >>confdefs.h <<\_ACEOF
23339 #define const
23340 _ACEOF
23341
23342 fi
23343
23344
23345
23346 { echo "$as_me:$LINENO: checking for char" >&5
23347 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23348 if test "${ac_cv_type_char+set}" = set; then
23349   echo $ECHO_N "(cached) $ECHO_C" >&6
23350 else
23351   cat >conftest.$ac_ext <<_ACEOF
23352 /* confdefs.h.  */
23353 _ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h.  */
23357 $ac_includes_default
23358 typedef char ac__type_new_;
23359 int
23360 main ()
23361 {
23362 if ((ac__type_new_ *) 0)
23363   return 0;
23364 if (sizeof (ac__type_new_))
23365   return 0;
23366   ;
23367   return 0;
23368 }
23369 _ACEOF
23370 rm -f conftest.$ac_objext
23371 if { (ac_try="$ac_compile"
23372 case "(($ac_try" in
23373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23374   *) ac_try_echo=$ac_try;;
23375 esac
23376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23377   (eval "$ac_compile") 2>conftest.er1
23378   ac_status=$?
23379   grep -v '^ *+' conftest.er1 >conftest.err
23380   rm -f conftest.er1
23381   cat conftest.err >&5
23382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383   (exit $ac_status); } && {
23384          test -z "$ac_c_werror_flag" ||
23385          test ! -s conftest.err
23386        } && test -s conftest.$ac_objext; then
23387   ac_cv_type_char=yes
23388 else
23389   echo "$as_me: failed program was:" >&5
23390 sed 's/^/| /' conftest.$ac_ext >&5
23391
23392         ac_cv_type_char=no
23393 fi
23394
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 fi
23397 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23398 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23399
23400 # The cast to long int works around a bug in the HP C Compiler
23401 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23402 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23403 # This bug is HP SR number 8606223364.
23404 { echo "$as_me:$LINENO: checking size of char" >&5
23405 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23406 if test "${ac_cv_sizeof_char+set}" = set; then
23407   echo $ECHO_N "(cached) $ECHO_C" >&6
23408 else
23409   if test "$cross_compiling" = yes; then
23410   # Depending upon the size, compute the lo and hi bounds.
23411 cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417 $ac_includes_default
23418    typedef char ac__type_sizeof_;
23419 int
23420 main ()
23421 {
23422 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23423 test_array [0] = 0
23424
23425   ;
23426   return 0;
23427 }
23428 _ACEOF
23429 rm -f conftest.$ac_objext
23430 if { (ac_try="$ac_compile"
23431 case "(($ac_try" in
23432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433   *) ac_try_echo=$ac_try;;
23434 esac
23435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23436   (eval "$ac_compile") 2>conftest.er1
23437   ac_status=$?
23438   grep -v '^ *+' conftest.er1 >conftest.err
23439   rm -f conftest.er1
23440   cat conftest.err >&5
23441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442   (exit $ac_status); } && {
23443          test -z "$ac_c_werror_flag" ||
23444          test ! -s conftest.err
23445        } && test -s conftest.$ac_objext; then
23446   ac_lo=0 ac_mid=0
23447   while :; do
23448     cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h.  */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h.  */
23454 $ac_includes_default
23455    typedef char ac__type_sizeof_;
23456 int
23457 main ()
23458 {
23459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23460 test_array [0] = 0
23461
23462   ;
23463   return 0;
23464 }
23465 _ACEOF
23466 rm -f conftest.$ac_objext
23467 if { (ac_try="$ac_compile"
23468 case "(($ac_try" in
23469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470   *) ac_try_echo=$ac_try;;
23471 esac
23472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23473   (eval "$ac_compile") 2>conftest.er1
23474   ac_status=$?
23475   grep -v '^ *+' conftest.er1 >conftest.err
23476   rm -f conftest.er1
23477   cat conftest.err >&5
23478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479   (exit $ac_status); } && {
23480          test -z "$ac_c_werror_flag" ||
23481          test ! -s conftest.err
23482        } && test -s conftest.$ac_objext; then
23483   ac_hi=$ac_mid; break
23484 else
23485   echo "$as_me: failed program was:" >&5
23486 sed 's/^/| /' conftest.$ac_ext >&5
23487
23488         ac_lo=`expr $ac_mid + 1`
23489                         if test $ac_lo -le $ac_mid; then
23490                           ac_lo= ac_hi=
23491                           break
23492                         fi
23493                         ac_mid=`expr 2 '*' $ac_mid + 1`
23494 fi
23495
23496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23497   done
23498 else
23499   echo "$as_me: failed program was:" >&5
23500 sed 's/^/| /' conftest.$ac_ext >&5
23501
23502         cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h.  */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h.  */
23508 $ac_includes_default
23509    typedef char ac__type_sizeof_;
23510 int
23511 main ()
23512 {
23513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23514 test_array [0] = 0
23515
23516   ;
23517   return 0;
23518 }
23519 _ACEOF
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524   *) ac_try_echo=$ac_try;;
23525 esac
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527   (eval "$ac_compile") 2>conftest.er1
23528   ac_status=$?
23529   grep -v '^ *+' conftest.er1 >conftest.err
23530   rm -f conftest.er1
23531   cat conftest.err >&5
23532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533   (exit $ac_status); } && {
23534          test -z "$ac_c_werror_flag" ||
23535          test ! -s conftest.err
23536        } && test -s conftest.$ac_objext; then
23537   ac_hi=-1 ac_mid=-1
23538   while :; do
23539     cat >conftest.$ac_ext <<_ACEOF
23540 /* confdefs.h.  */
23541 _ACEOF
23542 cat confdefs.h >>conftest.$ac_ext
23543 cat >>conftest.$ac_ext <<_ACEOF
23544 /* end confdefs.h.  */
23545 $ac_includes_default
23546    typedef char ac__type_sizeof_;
23547 int
23548 main ()
23549 {
23550 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23551 test_array [0] = 0
23552
23553   ;
23554   return 0;
23555 }
23556 _ACEOF
23557 rm -f conftest.$ac_objext
23558 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23565   ac_status=$?
23566   grep -v '^ *+' conftest.er1 >conftest.err
23567   rm -f conftest.er1
23568   cat conftest.err >&5
23569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); } && {
23571          test -z "$ac_c_werror_flag" ||
23572          test ! -s conftest.err
23573        } && test -s conftest.$ac_objext; then
23574   ac_lo=$ac_mid; break
23575 else
23576   echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23578
23579         ac_hi=`expr '(' $ac_mid ')' - 1`
23580                         if test $ac_mid -le $ac_hi; then
23581                           ac_lo= ac_hi=
23582                           break
23583                         fi
23584                         ac_mid=`expr 2 '*' $ac_mid`
23585 fi
23586
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23588   done
23589 else
23590   echo "$as_me: failed program was:" >&5
23591 sed 's/^/| /' conftest.$ac_ext >&5
23592
23593         ac_lo= ac_hi=
23594 fi
23595
23596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 fi
23598
23599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23600 # Binary search between lo and hi bounds.
23601 while test "x$ac_lo" != "x$ac_hi"; do
23602   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23603   cat >conftest.$ac_ext <<_ACEOF
23604 /* confdefs.h.  */
23605 _ACEOF
23606 cat confdefs.h >>conftest.$ac_ext
23607 cat >>conftest.$ac_ext <<_ACEOF
23608 /* end confdefs.h.  */
23609 $ac_includes_default
23610    typedef char ac__type_sizeof_;
23611 int
23612 main ()
23613 {
23614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23615 test_array [0] = 0
23616
23617   ;
23618   return 0;
23619 }
23620 _ACEOF
23621 rm -f conftest.$ac_objext
23622 if { (ac_try="$ac_compile"
23623 case "(($ac_try" in
23624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625   *) ac_try_echo=$ac_try;;
23626 esac
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628   (eval "$ac_compile") 2>conftest.er1
23629   ac_status=$?
23630   grep -v '^ *+' conftest.er1 >conftest.err
23631   rm -f conftest.er1
23632   cat conftest.err >&5
23633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634   (exit $ac_status); } && {
23635          test -z "$ac_c_werror_flag" ||
23636          test ! -s conftest.err
23637        } && test -s conftest.$ac_objext; then
23638   ac_hi=$ac_mid
23639 else
23640   echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643         ac_lo=`expr '(' $ac_mid ')' + 1`
23644 fi
23645
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647 done
23648 case $ac_lo in
23649 ?*) ac_cv_sizeof_char=$ac_lo;;
23650 '') if test "$ac_cv_type_char" = yes; then
23651      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23652 See \`config.log' for more details." >&5
23653 echo "$as_me: error: cannot compute sizeof (char)
23654 See \`config.log' for more details." >&2;}
23655    { (exit 77); exit 77; }; }
23656    else
23657      ac_cv_sizeof_char=0
23658    fi ;;
23659 esac
23660 else
23661   cat >conftest.$ac_ext <<_ACEOF
23662 /* confdefs.h.  */
23663 _ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h.  */
23667 $ac_includes_default
23668    typedef char ac__type_sizeof_;
23669 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23670 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23671 #include <stdio.h>
23672 #include <stdlib.h>
23673 int
23674 main ()
23675 {
23676
23677   FILE *f = fopen ("conftest.val", "w");
23678   if (! f)
23679     return 1;
23680   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23681     {
23682       long int i = longval ();
23683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23684         return 1;
23685       fprintf (f, "%ld\n", i);
23686     }
23687   else
23688     {
23689       unsigned long int i = ulongval ();
23690       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23691         return 1;
23692       fprintf (f, "%lu\n", i);
23693     }
23694   return ferror (f) || fclose (f) != 0;
23695
23696   ;
23697   return 0;
23698 }
23699 _ACEOF
23700 rm -f conftest$ac_exeext
23701 if { (ac_try="$ac_link"
23702 case "(($ac_try" in
23703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23704   *) ac_try_echo=$ac_try;;
23705 esac
23706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23707   (eval "$ac_link") 2>&5
23708   ac_status=$?
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23711   { (case "(($ac_try" in
23712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713   *) ac_try_echo=$ac_try;;
23714 esac
23715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23716   (eval "$ac_try") 2>&5
23717   ac_status=$?
23718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719   (exit $ac_status); }; }; then
23720   ac_cv_sizeof_char=`cat conftest.val`
23721 else
23722   echo "$as_me: program exited with status $ac_status" >&5
23723 echo "$as_me: failed program was:" >&5
23724 sed 's/^/| /' conftest.$ac_ext >&5
23725
23726 ( exit $ac_status )
23727 if test "$ac_cv_type_char" = yes; then
23728      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23729 See \`config.log' for more details." >&5
23730 echo "$as_me: error: cannot compute sizeof (char)
23731 See \`config.log' for more details." >&2;}
23732    { (exit 77); exit 77; }; }
23733    else
23734      ac_cv_sizeof_char=0
23735    fi
23736 fi
23737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23738 fi
23739 rm -f conftest.val
23740 fi
23741 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23742 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23743
23744
23745
23746 cat >>confdefs.h <<_ACEOF
23747 #define SIZEOF_CHAR $ac_cv_sizeof_char
23748 _ACEOF
23749
23750
23751 { echo "$as_me:$LINENO: checking for short int" >&5
23752 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23753 if test "${ac_cv_type_short_int+set}" = set; then
23754   echo $ECHO_N "(cached) $ECHO_C" >&6
23755 else
23756   cat >conftest.$ac_ext <<_ACEOF
23757 /* confdefs.h.  */
23758 _ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h.  */
23762 $ac_includes_default
23763 typedef short int ac__type_new_;
23764 int
23765 main ()
23766 {
23767 if ((ac__type_new_ *) 0)
23768   return 0;
23769 if (sizeof (ac__type_new_))
23770   return 0;
23771   ;
23772   return 0;
23773 }
23774 _ACEOF
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779   *) ac_try_echo=$ac_try;;
23780 esac
23781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23782   (eval "$ac_compile") 2>conftest.er1
23783   ac_status=$?
23784   grep -v '^ *+' conftest.er1 >conftest.err
23785   rm -f conftest.er1
23786   cat conftest.err >&5
23787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788   (exit $ac_status); } && {
23789          test -z "$ac_c_werror_flag" ||
23790          test ! -s conftest.err
23791        } && test -s conftest.$ac_objext; then
23792   ac_cv_type_short_int=yes
23793 else
23794   echo "$as_me: failed program was:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23796
23797         ac_cv_type_short_int=no
23798 fi
23799
23800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23801 fi
23802 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23803 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23804
23805 # The cast to long int works around a bug in the HP C Compiler
23806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23808 # This bug is HP SR number 8606223364.
23809 { echo "$as_me:$LINENO: checking size of short int" >&5
23810 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23811 if test "${ac_cv_sizeof_short_int+set}" = set; then
23812   echo $ECHO_N "(cached) $ECHO_C" >&6
23813 else
23814   if test "$cross_compiling" = yes; then
23815   # Depending upon the size, compute the lo and hi bounds.
23816 cat >conftest.$ac_ext <<_ACEOF
23817 /* confdefs.h.  */
23818 _ACEOF
23819 cat confdefs.h >>conftest.$ac_ext
23820 cat >>conftest.$ac_ext <<_ACEOF
23821 /* end confdefs.h.  */
23822 $ac_includes_default
23823    typedef short int ac__type_sizeof_;
23824 int
23825 main ()
23826 {
23827 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23828 test_array [0] = 0
23829
23830   ;
23831   return 0;
23832 }
23833 _ACEOF
23834 rm -f conftest.$ac_objext
23835 if { (ac_try="$ac_compile"
23836 case "(($ac_try" in
23837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23838   *) ac_try_echo=$ac_try;;
23839 esac
23840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23841   (eval "$ac_compile") 2>conftest.er1
23842   ac_status=$?
23843   grep -v '^ *+' conftest.er1 >conftest.err
23844   rm -f conftest.er1
23845   cat conftest.err >&5
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); } && {
23848          test -z "$ac_c_werror_flag" ||
23849          test ! -s conftest.err
23850        } && test -s conftest.$ac_objext; then
23851   ac_lo=0 ac_mid=0
23852   while :; do
23853     cat >conftest.$ac_ext <<_ACEOF
23854 /* confdefs.h.  */
23855 _ACEOF
23856 cat confdefs.h >>conftest.$ac_ext
23857 cat >>conftest.$ac_ext <<_ACEOF
23858 /* end confdefs.h.  */
23859 $ac_includes_default
23860    typedef short int ac__type_sizeof_;
23861 int
23862 main ()
23863 {
23864 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23865 test_array [0] = 0
23866
23867   ;
23868   return 0;
23869 }
23870 _ACEOF
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875   *) ac_try_echo=$ac_try;;
23876 esac
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878   (eval "$ac_compile") 2>conftest.er1
23879   ac_status=$?
23880   grep -v '^ *+' conftest.er1 >conftest.err
23881   rm -f conftest.er1
23882   cat conftest.err >&5
23883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884   (exit $ac_status); } && {
23885          test -z "$ac_c_werror_flag" ||
23886          test ! -s conftest.err
23887        } && test -s conftest.$ac_objext; then
23888   ac_hi=$ac_mid; break
23889 else
23890   echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23892
23893         ac_lo=`expr $ac_mid + 1`
23894                         if test $ac_lo -le $ac_mid; then
23895                           ac_lo= ac_hi=
23896                           break
23897                         fi
23898                         ac_mid=`expr 2 '*' $ac_mid + 1`
23899 fi
23900
23901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23902   done
23903 else
23904   echo "$as_me: failed program was:" >&5
23905 sed 's/^/| /' conftest.$ac_ext >&5
23906
23907         cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 $ac_includes_default
23914    typedef short int ac__type_sizeof_;
23915 int
23916 main ()
23917 {
23918 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23919 test_array [0] = 0
23920
23921   ;
23922   return 0;
23923 }
23924 _ACEOF
23925 rm -f conftest.$ac_objext
23926 if { (ac_try="$ac_compile"
23927 case "(($ac_try" in
23928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23929   *) ac_try_echo=$ac_try;;
23930 esac
23931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23932   (eval "$ac_compile") 2>conftest.er1
23933   ac_status=$?
23934   grep -v '^ *+' conftest.er1 >conftest.err
23935   rm -f conftest.er1
23936   cat conftest.err >&5
23937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938   (exit $ac_status); } && {
23939          test -z "$ac_c_werror_flag" ||
23940          test ! -s conftest.err
23941        } && test -s conftest.$ac_objext; then
23942   ac_hi=-1 ac_mid=-1
23943   while :; do
23944     cat >conftest.$ac_ext <<_ACEOF
23945 /* confdefs.h.  */
23946 _ACEOF
23947 cat confdefs.h >>conftest.$ac_ext
23948 cat >>conftest.$ac_ext <<_ACEOF
23949 /* end confdefs.h.  */
23950 $ac_includes_default
23951    typedef short int ac__type_sizeof_;
23952 int
23953 main ()
23954 {
23955 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23956 test_array [0] = 0
23957
23958   ;
23959   return 0;
23960 }
23961 _ACEOF
23962 rm -f conftest.$ac_objext
23963 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23970   ac_status=$?
23971   grep -v '^ *+' conftest.er1 >conftest.err
23972   rm -f conftest.er1
23973   cat conftest.err >&5
23974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975   (exit $ac_status); } && {
23976          test -z "$ac_c_werror_flag" ||
23977          test ! -s conftest.err
23978        } && test -s conftest.$ac_objext; then
23979   ac_lo=$ac_mid; break
23980 else
23981   echo "$as_me: failed program was:" >&5
23982 sed 's/^/| /' conftest.$ac_ext >&5
23983
23984         ac_hi=`expr '(' $ac_mid ')' - 1`
23985                         if test $ac_mid -le $ac_hi; then
23986                           ac_lo= ac_hi=
23987                           break
23988                         fi
23989                         ac_mid=`expr 2 '*' $ac_mid`
23990 fi
23991
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23993   done
23994 else
23995   echo "$as_me: failed program was:" >&5
23996 sed 's/^/| /' conftest.$ac_ext >&5
23997
23998         ac_lo= ac_hi=
23999 fi
24000
24001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24002 fi
24003
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24005 # Binary search between lo and hi bounds.
24006 while test "x$ac_lo" != "x$ac_hi"; do
24007   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24008   cat >conftest.$ac_ext <<_ACEOF
24009 /* confdefs.h.  */
24010 _ACEOF
24011 cat confdefs.h >>conftest.$ac_ext
24012 cat >>conftest.$ac_ext <<_ACEOF
24013 /* end confdefs.h.  */
24014 $ac_includes_default
24015    typedef short int ac__type_sizeof_;
24016 int
24017 main ()
24018 {
24019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24020 test_array [0] = 0
24021
24022   ;
24023   return 0;
24024 }
24025 _ACEOF
24026 rm -f conftest.$ac_objext
24027 if { (ac_try="$ac_compile"
24028 case "(($ac_try" in
24029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030   *) ac_try_echo=$ac_try;;
24031 esac
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033   (eval "$ac_compile") 2>conftest.er1
24034   ac_status=$?
24035   grep -v '^ *+' conftest.er1 >conftest.err
24036   rm -f conftest.er1
24037   cat conftest.err >&5
24038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039   (exit $ac_status); } && {
24040          test -z "$ac_c_werror_flag" ||
24041          test ! -s conftest.err
24042        } && test -s conftest.$ac_objext; then
24043   ac_hi=$ac_mid
24044 else
24045   echo "$as_me: failed program was:" >&5
24046 sed 's/^/| /' conftest.$ac_ext >&5
24047
24048         ac_lo=`expr '(' $ac_mid ')' + 1`
24049 fi
24050
24051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24052 done
24053 case $ac_lo in
24054 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24055 '') if test "$ac_cv_type_short_int" = yes; then
24056      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24057 See \`config.log' for more details." >&5
24058 echo "$as_me: error: cannot compute sizeof (short int)
24059 See \`config.log' for more details." >&2;}
24060    { (exit 77); exit 77; }; }
24061    else
24062      ac_cv_sizeof_short_int=0
24063    fi ;;
24064 esac
24065 else
24066   cat >conftest.$ac_ext <<_ACEOF
24067 /* confdefs.h.  */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h.  */
24072 $ac_includes_default
24073    typedef short int ac__type_sizeof_;
24074 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24075 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24076 #include <stdio.h>
24077 #include <stdlib.h>
24078 int
24079 main ()
24080 {
24081
24082   FILE *f = fopen ("conftest.val", "w");
24083   if (! f)
24084     return 1;
24085   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24086     {
24087       long int i = longval ();
24088       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24089         return 1;
24090       fprintf (f, "%ld\n", i);
24091     }
24092   else
24093     {
24094       unsigned long int i = ulongval ();
24095       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24096         return 1;
24097       fprintf (f, "%lu\n", i);
24098     }
24099   return ferror (f) || fclose (f) != 0;
24100
24101   ;
24102   return 0;
24103 }
24104 _ACEOF
24105 rm -f conftest$ac_exeext
24106 if { (ac_try="$ac_link"
24107 case "(($ac_try" in
24108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24109   *) ac_try_echo=$ac_try;;
24110 esac
24111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24112   (eval "$ac_link") 2>&5
24113   ac_status=$?
24114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24115   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24116   { (case "(($ac_try" in
24117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24118   *) ac_try_echo=$ac_try;;
24119 esac
24120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24121   (eval "$ac_try") 2>&5
24122   ac_status=$?
24123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); }; }; then
24125   ac_cv_sizeof_short_int=`cat conftest.val`
24126 else
24127   echo "$as_me: program exited with status $ac_status" >&5
24128 echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131 ( exit $ac_status )
24132 if test "$ac_cv_type_short_int" = yes; then
24133      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24134 See \`config.log' for more details." >&5
24135 echo "$as_me: error: cannot compute sizeof (short int)
24136 See \`config.log' for more details." >&2;}
24137    { (exit 77); exit 77; }; }
24138    else
24139      ac_cv_sizeof_short_int=0
24140    fi
24141 fi
24142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24143 fi
24144 rm -f conftest.val
24145 fi
24146 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24147 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24148
24149
24150
24151 cat >>confdefs.h <<_ACEOF
24152 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24153 _ACEOF
24154
24155
24156 { echo "$as_me:$LINENO: checking for int" >&5
24157 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24158 if test "${ac_cv_type_int+set}" = set; then
24159   echo $ECHO_N "(cached) $ECHO_C" >&6
24160 else
24161   cat >conftest.$ac_ext <<_ACEOF
24162 /* confdefs.h.  */
24163 _ACEOF
24164 cat confdefs.h >>conftest.$ac_ext
24165 cat >>conftest.$ac_ext <<_ACEOF
24166 /* end confdefs.h.  */
24167 $ac_includes_default
24168 typedef int ac__type_new_;
24169 int
24170 main ()
24171 {
24172 if ((ac__type_new_ *) 0)
24173   return 0;
24174 if (sizeof (ac__type_new_))
24175   return 0;
24176   ;
24177   return 0;
24178 }
24179 _ACEOF
24180 rm -f conftest.$ac_objext
24181 if { (ac_try="$ac_compile"
24182 case "(($ac_try" in
24183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184   *) ac_try_echo=$ac_try;;
24185 esac
24186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24187   (eval "$ac_compile") 2>conftest.er1
24188   ac_status=$?
24189   grep -v '^ *+' conftest.er1 >conftest.err
24190   rm -f conftest.er1
24191   cat conftest.err >&5
24192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } && {
24194          test -z "$ac_c_werror_flag" ||
24195          test ! -s conftest.err
24196        } && test -s conftest.$ac_objext; then
24197   ac_cv_type_int=yes
24198 else
24199   echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24201
24202         ac_cv_type_int=no
24203 fi
24204
24205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24206 fi
24207 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24208 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24209
24210 # The cast to long int works around a bug in the HP C Compiler
24211 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24212 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24213 # This bug is HP SR number 8606223364.
24214 { echo "$as_me:$LINENO: checking size of int" >&5
24215 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24216 if test "${ac_cv_sizeof_int+set}" = set; then
24217   echo $ECHO_N "(cached) $ECHO_C" >&6
24218 else
24219   if test "$cross_compiling" = yes; then
24220   # Depending upon the size, compute the lo and hi bounds.
24221 cat >conftest.$ac_ext <<_ACEOF
24222 /* confdefs.h.  */
24223 _ACEOF
24224 cat confdefs.h >>conftest.$ac_ext
24225 cat >>conftest.$ac_ext <<_ACEOF
24226 /* end confdefs.h.  */
24227 $ac_includes_default
24228    typedef int ac__type_sizeof_;
24229 int
24230 main ()
24231 {
24232 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24233 test_array [0] = 0
24234
24235   ;
24236   return 0;
24237 }
24238 _ACEOF
24239 rm -f conftest.$ac_objext
24240 if { (ac_try="$ac_compile"
24241 case "(($ac_try" in
24242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243   *) ac_try_echo=$ac_try;;
24244 esac
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246   (eval "$ac_compile") 2>conftest.er1
24247   ac_status=$?
24248   grep -v '^ *+' conftest.er1 >conftest.err
24249   rm -f conftest.er1
24250   cat conftest.err >&5
24251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252   (exit $ac_status); } && {
24253          test -z "$ac_c_werror_flag" ||
24254          test ! -s conftest.err
24255        } && test -s conftest.$ac_objext; then
24256   ac_lo=0 ac_mid=0
24257   while :; do
24258     cat >conftest.$ac_ext <<_ACEOF
24259 /* confdefs.h.  */
24260 _ACEOF
24261 cat confdefs.h >>conftest.$ac_ext
24262 cat >>conftest.$ac_ext <<_ACEOF
24263 /* end confdefs.h.  */
24264 $ac_includes_default
24265    typedef int ac__type_sizeof_;
24266 int
24267 main ()
24268 {
24269 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24270 test_array [0] = 0
24271
24272   ;
24273   return 0;
24274 }
24275 _ACEOF
24276 rm -f conftest.$ac_objext
24277 if { (ac_try="$ac_compile"
24278 case "(($ac_try" in
24279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24280   *) ac_try_echo=$ac_try;;
24281 esac
24282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24283   (eval "$ac_compile") 2>conftest.er1
24284   ac_status=$?
24285   grep -v '^ *+' conftest.er1 >conftest.err
24286   rm -f conftest.er1
24287   cat conftest.err >&5
24288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289   (exit $ac_status); } && {
24290          test -z "$ac_c_werror_flag" ||
24291          test ! -s conftest.err
24292        } && test -s conftest.$ac_objext; then
24293   ac_hi=$ac_mid; break
24294 else
24295   echo "$as_me: failed program was:" >&5
24296 sed 's/^/| /' conftest.$ac_ext >&5
24297
24298         ac_lo=`expr $ac_mid + 1`
24299                         if test $ac_lo -le $ac_mid; then
24300                           ac_lo= ac_hi=
24301                           break
24302                         fi
24303                         ac_mid=`expr 2 '*' $ac_mid + 1`
24304 fi
24305
24306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307   done
24308 else
24309   echo "$as_me: failed program was:" >&5
24310 sed 's/^/| /' conftest.$ac_ext >&5
24311
24312         cat >conftest.$ac_ext <<_ACEOF
24313 /* confdefs.h.  */
24314 _ACEOF
24315 cat confdefs.h >>conftest.$ac_ext
24316 cat >>conftest.$ac_ext <<_ACEOF
24317 /* end confdefs.h.  */
24318 $ac_includes_default
24319    typedef int ac__type_sizeof_;
24320 int
24321 main ()
24322 {
24323 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24324 test_array [0] = 0
24325
24326   ;
24327   return 0;
24328 }
24329 _ACEOF
24330 rm -f conftest.$ac_objext
24331 if { (ac_try="$ac_compile"
24332 case "(($ac_try" in
24333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24334   *) ac_try_echo=$ac_try;;
24335 esac
24336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24337   (eval "$ac_compile") 2>conftest.er1
24338   ac_status=$?
24339   grep -v '^ *+' conftest.er1 >conftest.err
24340   rm -f conftest.er1
24341   cat conftest.err >&5
24342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24343   (exit $ac_status); } && {
24344          test -z "$ac_c_werror_flag" ||
24345          test ! -s conftest.err
24346        } && test -s conftest.$ac_objext; then
24347   ac_hi=-1 ac_mid=-1
24348   while :; do
24349     cat >conftest.$ac_ext <<_ACEOF
24350 /* confdefs.h.  */
24351 _ACEOF
24352 cat confdefs.h >>conftest.$ac_ext
24353 cat >>conftest.$ac_ext <<_ACEOF
24354 /* end confdefs.h.  */
24355 $ac_includes_default
24356    typedef int ac__type_sizeof_;
24357 int
24358 main ()
24359 {
24360 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24361 test_array [0] = 0
24362
24363   ;
24364   return 0;
24365 }
24366 _ACEOF
24367 rm -f conftest.$ac_objext
24368 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24375   ac_status=$?
24376   grep -v '^ *+' conftest.er1 >conftest.err
24377   rm -f conftest.er1
24378   cat conftest.err >&5
24379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380   (exit $ac_status); } && {
24381          test -z "$ac_c_werror_flag" ||
24382          test ! -s conftest.err
24383        } && test -s conftest.$ac_objext; then
24384   ac_lo=$ac_mid; break
24385 else
24386   echo "$as_me: failed program was:" >&5
24387 sed 's/^/| /' conftest.$ac_ext >&5
24388
24389         ac_hi=`expr '(' $ac_mid ')' - 1`
24390                         if test $ac_mid -le $ac_hi; then
24391                           ac_lo= ac_hi=
24392                           break
24393                         fi
24394                         ac_mid=`expr 2 '*' $ac_mid`
24395 fi
24396
24397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24398   done
24399 else
24400   echo "$as_me: failed program was:" >&5
24401 sed 's/^/| /' conftest.$ac_ext >&5
24402
24403         ac_lo= ac_hi=
24404 fi
24405
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24407 fi
24408
24409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24410 # Binary search between lo and hi bounds.
24411 while test "x$ac_lo" != "x$ac_hi"; do
24412   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24413   cat >conftest.$ac_ext <<_ACEOF
24414 /* confdefs.h.  */
24415 _ACEOF
24416 cat confdefs.h >>conftest.$ac_ext
24417 cat >>conftest.$ac_ext <<_ACEOF
24418 /* end confdefs.h.  */
24419 $ac_includes_default
24420    typedef int ac__type_sizeof_;
24421 int
24422 main ()
24423 {
24424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24425 test_array [0] = 0
24426
24427   ;
24428   return 0;
24429 }
24430 _ACEOF
24431 rm -f conftest.$ac_objext
24432 if { (ac_try="$ac_compile"
24433 case "(($ac_try" in
24434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435   *) ac_try_echo=$ac_try;;
24436 esac
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438   (eval "$ac_compile") 2>conftest.er1
24439   ac_status=$?
24440   grep -v '^ *+' conftest.er1 >conftest.err
24441   rm -f conftest.er1
24442   cat conftest.err >&5
24443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444   (exit $ac_status); } && {
24445          test -z "$ac_c_werror_flag" ||
24446          test ! -s conftest.err
24447        } && test -s conftest.$ac_objext; then
24448   ac_hi=$ac_mid
24449 else
24450   echo "$as_me: failed program was:" >&5
24451 sed 's/^/| /' conftest.$ac_ext >&5
24452
24453         ac_lo=`expr '(' $ac_mid ')' + 1`
24454 fi
24455
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24457 done
24458 case $ac_lo in
24459 ?*) ac_cv_sizeof_int=$ac_lo;;
24460 '') if test "$ac_cv_type_int" = yes; then
24461      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24462 See \`config.log' for more details." >&5
24463 echo "$as_me: error: cannot compute sizeof (int)
24464 See \`config.log' for more details." >&2;}
24465    { (exit 77); exit 77; }; }
24466    else
24467      ac_cv_sizeof_int=0
24468    fi ;;
24469 esac
24470 else
24471   cat >conftest.$ac_ext <<_ACEOF
24472 /* confdefs.h.  */
24473 _ACEOF
24474 cat confdefs.h >>conftest.$ac_ext
24475 cat >>conftest.$ac_ext <<_ACEOF
24476 /* end confdefs.h.  */
24477 $ac_includes_default
24478    typedef int ac__type_sizeof_;
24479 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24480 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24481 #include <stdio.h>
24482 #include <stdlib.h>
24483 int
24484 main ()
24485 {
24486
24487   FILE *f = fopen ("conftest.val", "w");
24488   if (! f)
24489     return 1;
24490   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24491     {
24492       long int i = longval ();
24493       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24494         return 1;
24495       fprintf (f, "%ld\n", i);
24496     }
24497   else
24498     {
24499       unsigned long int i = ulongval ();
24500       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24501         return 1;
24502       fprintf (f, "%lu\n", i);
24503     }
24504   return ferror (f) || fclose (f) != 0;
24505
24506   ;
24507   return 0;
24508 }
24509 _ACEOF
24510 rm -f conftest$ac_exeext
24511 if { (ac_try="$ac_link"
24512 case "(($ac_try" in
24513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24514   *) ac_try_echo=$ac_try;;
24515 esac
24516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24517   (eval "$ac_link") 2>&5
24518   ac_status=$?
24519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24521   { (case "(($ac_try" in
24522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24523   *) ac_try_echo=$ac_try;;
24524 esac
24525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24526   (eval "$ac_try") 2>&5
24527   ac_status=$?
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); }; }; then
24530   ac_cv_sizeof_int=`cat conftest.val`
24531 else
24532   echo "$as_me: program exited with status $ac_status" >&5
24533 echo "$as_me: failed program was:" >&5
24534 sed 's/^/| /' conftest.$ac_ext >&5
24535
24536 ( exit $ac_status )
24537 if test "$ac_cv_type_int" = yes; then
24538      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24539 See \`config.log' for more details." >&5
24540 echo "$as_me: error: cannot compute sizeof (int)
24541 See \`config.log' for more details." >&2;}
24542    { (exit 77); exit 77; }; }
24543    else
24544      ac_cv_sizeof_int=0
24545    fi
24546 fi
24547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24548 fi
24549 rm -f conftest.val
24550 fi
24551 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24552 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24553
24554
24555
24556 cat >>confdefs.h <<_ACEOF
24557 #define SIZEOF_INT $ac_cv_sizeof_int
24558 _ACEOF
24559
24560
24561 { echo "$as_me:$LINENO: checking for long int" >&5
24562 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24563 if test "${ac_cv_type_long_int+set}" = set; then
24564   echo $ECHO_N "(cached) $ECHO_C" >&6
24565 else
24566   cat >conftest.$ac_ext <<_ACEOF
24567 /* confdefs.h.  */
24568 _ACEOF
24569 cat confdefs.h >>conftest.$ac_ext
24570 cat >>conftest.$ac_ext <<_ACEOF
24571 /* end confdefs.h.  */
24572 $ac_includes_default
24573 typedef long int ac__type_new_;
24574 int
24575 main ()
24576 {
24577 if ((ac__type_new_ *) 0)
24578   return 0;
24579 if (sizeof (ac__type_new_))
24580   return 0;
24581   ;
24582   return 0;
24583 }
24584 _ACEOF
24585 rm -f conftest.$ac_objext
24586 if { (ac_try="$ac_compile"
24587 case "(($ac_try" in
24588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24589   *) ac_try_echo=$ac_try;;
24590 esac
24591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24592   (eval "$ac_compile") 2>conftest.er1
24593   ac_status=$?
24594   grep -v '^ *+' conftest.er1 >conftest.err
24595   rm -f conftest.er1
24596   cat conftest.err >&5
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); } && {
24599          test -z "$ac_c_werror_flag" ||
24600          test ! -s conftest.err
24601        } && test -s conftest.$ac_objext; then
24602   ac_cv_type_long_int=yes
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607         ac_cv_type_long_int=no
24608 fi
24609
24610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24611 fi
24612 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24613 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24614
24615 # The cast to long int works around a bug in the HP C Compiler
24616 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24617 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24618 # This bug is HP SR number 8606223364.
24619 { echo "$as_me:$LINENO: checking size of long int" >&5
24620 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24621 if test "${ac_cv_sizeof_long_int+set}" = set; then
24622   echo $ECHO_N "(cached) $ECHO_C" >&6
24623 else
24624   if test "$cross_compiling" = yes; then
24625   # Depending upon the size, compute the lo and hi bounds.
24626 cat >conftest.$ac_ext <<_ACEOF
24627 /* confdefs.h.  */
24628 _ACEOF
24629 cat confdefs.h >>conftest.$ac_ext
24630 cat >>conftest.$ac_ext <<_ACEOF
24631 /* end confdefs.h.  */
24632 $ac_includes_default
24633    typedef long int ac__type_sizeof_;
24634 int
24635 main ()
24636 {
24637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24638 test_array [0] = 0
24639
24640   ;
24641   return 0;
24642 }
24643 _ACEOF
24644 rm -f conftest.$ac_objext
24645 if { (ac_try="$ac_compile"
24646 case "(($ac_try" in
24647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648   *) ac_try_echo=$ac_try;;
24649 esac
24650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24651   (eval "$ac_compile") 2>conftest.er1
24652   ac_status=$?
24653   grep -v '^ *+' conftest.er1 >conftest.err
24654   rm -f conftest.er1
24655   cat conftest.err >&5
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); } && {
24658          test -z "$ac_c_werror_flag" ||
24659          test ! -s conftest.err
24660        } && test -s conftest.$ac_objext; then
24661   ac_lo=0 ac_mid=0
24662   while :; do
24663     cat >conftest.$ac_ext <<_ACEOF
24664 /* confdefs.h.  */
24665 _ACEOF
24666 cat confdefs.h >>conftest.$ac_ext
24667 cat >>conftest.$ac_ext <<_ACEOF
24668 /* end confdefs.h.  */
24669 $ac_includes_default
24670    typedef long int ac__type_sizeof_;
24671 int
24672 main ()
24673 {
24674 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24675 test_array [0] = 0
24676
24677   ;
24678   return 0;
24679 }
24680 _ACEOF
24681 rm -f conftest.$ac_objext
24682 if { (ac_try="$ac_compile"
24683 case "(($ac_try" in
24684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685   *) ac_try_echo=$ac_try;;
24686 esac
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688   (eval "$ac_compile") 2>conftest.er1
24689   ac_status=$?
24690   grep -v '^ *+' conftest.er1 >conftest.err
24691   rm -f conftest.er1
24692   cat conftest.err >&5
24693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694   (exit $ac_status); } && {
24695          test -z "$ac_c_werror_flag" ||
24696          test ! -s conftest.err
24697        } && test -s conftest.$ac_objext; then
24698   ac_hi=$ac_mid; break
24699 else
24700   echo "$as_me: failed program was:" >&5
24701 sed 's/^/| /' conftest.$ac_ext >&5
24702
24703         ac_lo=`expr $ac_mid + 1`
24704                         if test $ac_lo -le $ac_mid; then
24705                           ac_lo= ac_hi=
24706                           break
24707                         fi
24708                         ac_mid=`expr 2 '*' $ac_mid + 1`
24709 fi
24710
24711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24712   done
24713 else
24714   echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24716
24717         cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h.  */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h.  */
24723 $ac_includes_default
24724    typedef long int ac__type_sizeof_;
24725 int
24726 main ()
24727 {
24728 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24729 test_array [0] = 0
24730
24731   ;
24732   return 0;
24733 }
24734 _ACEOF
24735 rm -f conftest.$ac_objext
24736 if { (ac_try="$ac_compile"
24737 case "(($ac_try" in
24738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24739   *) ac_try_echo=$ac_try;;
24740 esac
24741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24742   (eval "$ac_compile") 2>conftest.er1
24743   ac_status=$?
24744   grep -v '^ *+' conftest.er1 >conftest.err
24745   rm -f conftest.er1
24746   cat conftest.err >&5
24747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24748   (exit $ac_status); } && {
24749          test -z "$ac_c_werror_flag" ||
24750          test ! -s conftest.err
24751        } && test -s conftest.$ac_objext; then
24752   ac_hi=-1 ac_mid=-1
24753   while :; do
24754     cat >conftest.$ac_ext <<_ACEOF
24755 /* confdefs.h.  */
24756 _ACEOF
24757 cat confdefs.h >>conftest.$ac_ext
24758 cat >>conftest.$ac_ext <<_ACEOF
24759 /* end confdefs.h.  */
24760 $ac_includes_default
24761    typedef long int ac__type_sizeof_;
24762 int
24763 main ()
24764 {
24765 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24766 test_array [0] = 0
24767
24768   ;
24769   return 0;
24770 }
24771 _ACEOF
24772 rm -f conftest.$ac_objext
24773 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24780   ac_status=$?
24781   grep -v '^ *+' conftest.er1 >conftest.err
24782   rm -f conftest.er1
24783   cat conftest.err >&5
24784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24785   (exit $ac_status); } && {
24786          test -z "$ac_c_werror_flag" ||
24787          test ! -s conftest.err
24788        } && test -s conftest.$ac_objext; then
24789   ac_lo=$ac_mid; break
24790 else
24791   echo "$as_me: failed program was:" >&5
24792 sed 's/^/| /' conftest.$ac_ext >&5
24793
24794         ac_hi=`expr '(' $ac_mid ')' - 1`
24795                         if test $ac_mid -le $ac_hi; then
24796                           ac_lo= ac_hi=
24797                           break
24798                         fi
24799                         ac_mid=`expr 2 '*' $ac_mid`
24800 fi
24801
24802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24803   done
24804 else
24805   echo "$as_me: failed program was:" >&5
24806 sed 's/^/| /' conftest.$ac_ext >&5
24807
24808         ac_lo= ac_hi=
24809 fi
24810
24811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24812 fi
24813
24814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 # Binary search between lo and hi bounds.
24816 while test "x$ac_lo" != "x$ac_hi"; do
24817   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24818   cat >conftest.$ac_ext <<_ACEOF
24819 /* confdefs.h.  */
24820 _ACEOF
24821 cat confdefs.h >>conftest.$ac_ext
24822 cat >>conftest.$ac_ext <<_ACEOF
24823 /* end confdefs.h.  */
24824 $ac_includes_default
24825    typedef long int ac__type_sizeof_;
24826 int
24827 main ()
24828 {
24829 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24830 test_array [0] = 0
24831
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 rm -f conftest.$ac_objext
24837 if { (ac_try="$ac_compile"
24838 case "(($ac_try" in
24839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840   *) ac_try_echo=$ac_try;;
24841 esac
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843   (eval "$ac_compile") 2>conftest.er1
24844   ac_status=$?
24845   grep -v '^ *+' conftest.er1 >conftest.err
24846   rm -f conftest.er1
24847   cat conftest.err >&5
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); } && {
24850          test -z "$ac_c_werror_flag" ||
24851          test ! -s conftest.err
24852        } && test -s conftest.$ac_objext; then
24853   ac_hi=$ac_mid
24854 else
24855   echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858         ac_lo=`expr '(' $ac_mid ')' + 1`
24859 fi
24860
24861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24862 done
24863 case $ac_lo in
24864 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24865 '') if test "$ac_cv_type_long_int" = yes; then
24866      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24867 See \`config.log' for more details." >&5
24868 echo "$as_me: error: cannot compute sizeof (long int)
24869 See \`config.log' for more details." >&2;}
24870    { (exit 77); exit 77; }; }
24871    else
24872      ac_cv_sizeof_long_int=0
24873    fi ;;
24874 esac
24875 else
24876   cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h.  */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h.  */
24882 $ac_includes_default
24883    typedef long int ac__type_sizeof_;
24884 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24885 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24886 #include <stdio.h>
24887 #include <stdlib.h>
24888 int
24889 main ()
24890 {
24891
24892   FILE *f = fopen ("conftest.val", "w");
24893   if (! f)
24894     return 1;
24895   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24896     {
24897       long int i = longval ();
24898       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24899         return 1;
24900       fprintf (f, "%ld\n", i);
24901     }
24902   else
24903     {
24904       unsigned long int i = ulongval ();
24905       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24906         return 1;
24907       fprintf (f, "%lu\n", i);
24908     }
24909   return ferror (f) || fclose (f) != 0;
24910
24911   ;
24912   return 0;
24913 }
24914 _ACEOF
24915 rm -f conftest$ac_exeext
24916 if { (ac_try="$ac_link"
24917 case "(($ac_try" in
24918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24919   *) ac_try_echo=$ac_try;;
24920 esac
24921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24922   (eval "$ac_link") 2>&5
24923   ac_status=$?
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24926   { (case "(($ac_try" in
24927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24928   *) ac_try_echo=$ac_try;;
24929 esac
24930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24931   (eval "$ac_try") 2>&5
24932   ac_status=$?
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); }; }; then
24935   ac_cv_sizeof_long_int=`cat conftest.val`
24936 else
24937   echo "$as_me: program exited with status $ac_status" >&5
24938 echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941 ( exit $ac_status )
24942 if test "$ac_cv_type_long_int" = yes; then
24943      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24944 See \`config.log' for more details." >&5
24945 echo "$as_me: error: cannot compute sizeof (long int)
24946 See \`config.log' for more details." >&2;}
24947    { (exit 77); exit 77; }; }
24948    else
24949      ac_cv_sizeof_long_int=0
24950    fi
24951 fi
24952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24953 fi
24954 rm -f conftest.val
24955 fi
24956 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24957 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24958
24959
24960
24961 cat >>confdefs.h <<_ACEOF
24962 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24963 _ACEOF
24964
24965
24966 { echo "$as_me:$LINENO: checking for long long int" >&5
24967 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24968 if test "${ac_cv_type_long_long_int+set}" = set; then
24969   echo $ECHO_N "(cached) $ECHO_C" >&6
24970 else
24971   cat >conftest.$ac_ext <<_ACEOF
24972 /* confdefs.h.  */
24973 _ACEOF
24974 cat confdefs.h >>conftest.$ac_ext
24975 cat >>conftest.$ac_ext <<_ACEOF
24976 /* end confdefs.h.  */
24977 $ac_includes_default
24978 typedef long long int ac__type_new_;
24979 int
24980 main ()
24981 {
24982 if ((ac__type_new_ *) 0)
24983   return 0;
24984 if (sizeof (ac__type_new_))
24985   return 0;
24986   ;
24987   return 0;
24988 }
24989 _ACEOF
24990 rm -f conftest.$ac_objext
24991 if { (ac_try="$ac_compile"
24992 case "(($ac_try" in
24993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24994   *) ac_try_echo=$ac_try;;
24995 esac
24996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24997   (eval "$ac_compile") 2>conftest.er1
24998   ac_status=$?
24999   grep -v '^ *+' conftest.er1 >conftest.err
25000   rm -f conftest.er1
25001   cat conftest.err >&5
25002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003   (exit $ac_status); } && {
25004          test -z "$ac_c_werror_flag" ||
25005          test ! -s conftest.err
25006        } && test -s conftest.$ac_objext; then
25007   ac_cv_type_long_long_int=yes
25008 else
25009   echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25011
25012         ac_cv_type_long_long_int=no
25013 fi
25014
25015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25016 fi
25017 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25018 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25019
25020 # The cast to long int works around a bug in the HP C Compiler
25021 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25022 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25023 # This bug is HP SR number 8606223364.
25024 { echo "$as_me:$LINENO: checking size of long long int" >&5
25025 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25026 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25027   echo $ECHO_N "(cached) $ECHO_C" >&6
25028 else
25029   if test "$cross_compiling" = yes; then
25030   # Depending upon the size, compute the lo and hi bounds.
25031 cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037 $ac_includes_default
25038    typedef long long int ac__type_sizeof_;
25039 int
25040 main ()
25041 {
25042 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25043 test_array [0] = 0
25044
25045   ;
25046   return 0;
25047 }
25048 _ACEOF
25049 rm -f conftest.$ac_objext
25050 if { (ac_try="$ac_compile"
25051 case "(($ac_try" in
25052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25053   *) ac_try_echo=$ac_try;;
25054 esac
25055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25056   (eval "$ac_compile") 2>conftest.er1
25057   ac_status=$?
25058   grep -v '^ *+' conftest.er1 >conftest.err
25059   rm -f conftest.er1
25060   cat conftest.err >&5
25061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062   (exit $ac_status); } && {
25063          test -z "$ac_c_werror_flag" ||
25064          test ! -s conftest.err
25065        } && test -s conftest.$ac_objext; then
25066   ac_lo=0 ac_mid=0
25067   while :; do
25068     cat >conftest.$ac_ext <<_ACEOF
25069 /* confdefs.h.  */
25070 _ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h.  */
25074 $ac_includes_default
25075    typedef long long int ac__type_sizeof_;
25076 int
25077 main ()
25078 {
25079 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25080 test_array [0] = 0
25081
25082   ;
25083   return 0;
25084 }
25085 _ACEOF
25086 rm -f conftest.$ac_objext
25087 if { (ac_try="$ac_compile"
25088 case "(($ac_try" in
25089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25090   *) ac_try_echo=$ac_try;;
25091 esac
25092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25093   (eval "$ac_compile") 2>conftest.er1
25094   ac_status=$?
25095   grep -v '^ *+' conftest.er1 >conftest.err
25096   rm -f conftest.er1
25097   cat conftest.err >&5
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); } && {
25100          test -z "$ac_c_werror_flag" ||
25101          test ! -s conftest.err
25102        } && test -s conftest.$ac_objext; then
25103   ac_hi=$ac_mid; break
25104 else
25105   echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108         ac_lo=`expr $ac_mid + 1`
25109                         if test $ac_lo -le $ac_mid; then
25110                           ac_lo= ac_hi=
25111                           break
25112                         fi
25113                         ac_mid=`expr 2 '*' $ac_mid + 1`
25114 fi
25115
25116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25117   done
25118 else
25119   echo "$as_me: failed program was:" >&5
25120 sed 's/^/| /' conftest.$ac_ext >&5
25121
25122         cat >conftest.$ac_ext <<_ACEOF
25123 /* confdefs.h.  */
25124 _ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h.  */
25128 $ac_includes_default
25129    typedef long long int ac__type_sizeof_;
25130 int
25131 main ()
25132 {
25133 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25134 test_array [0] = 0
25135
25136   ;
25137   return 0;
25138 }
25139 _ACEOF
25140 rm -f conftest.$ac_objext
25141 if { (ac_try="$ac_compile"
25142 case "(($ac_try" in
25143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25144   *) ac_try_echo=$ac_try;;
25145 esac
25146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25147   (eval "$ac_compile") 2>conftest.er1
25148   ac_status=$?
25149   grep -v '^ *+' conftest.er1 >conftest.err
25150   rm -f conftest.er1
25151   cat conftest.err >&5
25152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25153   (exit $ac_status); } && {
25154          test -z "$ac_c_werror_flag" ||
25155          test ! -s conftest.err
25156        } && test -s conftest.$ac_objext; then
25157   ac_hi=-1 ac_mid=-1
25158   while :; do
25159     cat >conftest.$ac_ext <<_ACEOF
25160 /* confdefs.h.  */
25161 _ACEOF
25162 cat confdefs.h >>conftest.$ac_ext
25163 cat >>conftest.$ac_ext <<_ACEOF
25164 /* end confdefs.h.  */
25165 $ac_includes_default
25166    typedef long long int ac__type_sizeof_;
25167 int
25168 main ()
25169 {
25170 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25171 test_array [0] = 0
25172
25173   ;
25174   return 0;
25175 }
25176 _ACEOF
25177 rm -f conftest.$ac_objext
25178 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25185   ac_status=$?
25186   grep -v '^ *+' conftest.er1 >conftest.err
25187   rm -f conftest.er1
25188   cat conftest.err >&5
25189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190   (exit $ac_status); } && {
25191          test -z "$ac_c_werror_flag" ||
25192          test ! -s conftest.err
25193        } && test -s conftest.$ac_objext; then
25194   ac_lo=$ac_mid; break
25195 else
25196   echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25198
25199         ac_hi=`expr '(' $ac_mid ')' - 1`
25200                         if test $ac_mid -le $ac_hi; then
25201                           ac_lo= ac_hi=
25202                           break
25203                         fi
25204                         ac_mid=`expr 2 '*' $ac_mid`
25205 fi
25206
25207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25208   done
25209 else
25210   echo "$as_me: failed program was:" >&5
25211 sed 's/^/| /' conftest.$ac_ext >&5
25212
25213         ac_lo= ac_hi=
25214 fi
25215
25216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25217 fi
25218
25219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25220 # Binary search between lo and hi bounds.
25221 while test "x$ac_lo" != "x$ac_hi"; do
25222   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25223   cat >conftest.$ac_ext <<_ACEOF
25224 /* confdefs.h.  */
25225 _ACEOF
25226 cat confdefs.h >>conftest.$ac_ext
25227 cat >>conftest.$ac_ext <<_ACEOF
25228 /* end confdefs.h.  */
25229 $ac_includes_default
25230    typedef long long int ac__type_sizeof_;
25231 int
25232 main ()
25233 {
25234 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25235 test_array [0] = 0
25236
25237   ;
25238   return 0;
25239 }
25240 _ACEOF
25241 rm -f conftest.$ac_objext
25242 if { (ac_try="$ac_compile"
25243 case "(($ac_try" in
25244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245   *) ac_try_echo=$ac_try;;
25246 esac
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248   (eval "$ac_compile") 2>conftest.er1
25249   ac_status=$?
25250   grep -v '^ *+' conftest.er1 >conftest.err
25251   rm -f conftest.er1
25252   cat conftest.err >&5
25253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254   (exit $ac_status); } && {
25255          test -z "$ac_c_werror_flag" ||
25256          test ! -s conftest.err
25257        } && test -s conftest.$ac_objext; then
25258   ac_hi=$ac_mid
25259 else
25260   echo "$as_me: failed program was:" >&5
25261 sed 's/^/| /' conftest.$ac_ext >&5
25262
25263         ac_lo=`expr '(' $ac_mid ')' + 1`
25264 fi
25265
25266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25267 done
25268 case $ac_lo in
25269 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25270 '') if test "$ac_cv_type_long_long_int" = yes; then
25271      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25272 See \`config.log' for more details." >&5
25273 echo "$as_me: error: cannot compute sizeof (long long int)
25274 See \`config.log' for more details." >&2;}
25275    { (exit 77); exit 77; }; }
25276    else
25277      ac_cv_sizeof_long_long_int=0
25278    fi ;;
25279 esac
25280 else
25281   cat >conftest.$ac_ext <<_ACEOF
25282 /* confdefs.h.  */
25283 _ACEOF
25284 cat confdefs.h >>conftest.$ac_ext
25285 cat >>conftest.$ac_ext <<_ACEOF
25286 /* end confdefs.h.  */
25287 $ac_includes_default
25288    typedef long long int ac__type_sizeof_;
25289 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25290 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25291 #include <stdio.h>
25292 #include <stdlib.h>
25293 int
25294 main ()
25295 {
25296
25297   FILE *f = fopen ("conftest.val", "w");
25298   if (! f)
25299     return 1;
25300   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25301     {
25302       long int i = longval ();
25303       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25304         return 1;
25305       fprintf (f, "%ld\n", i);
25306     }
25307   else
25308     {
25309       unsigned long int i = ulongval ();
25310       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25311         return 1;
25312       fprintf (f, "%lu\n", i);
25313     }
25314   return ferror (f) || fclose (f) != 0;
25315
25316   ;
25317   return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324   *) ac_try_echo=$ac_try;;
25325 esac
25326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25327   (eval "$ac_link") 2>&5
25328   ac_status=$?
25329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25331   { (case "(($ac_try" in
25332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333   *) ac_try_echo=$ac_try;;
25334 esac
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336   (eval "$ac_try") 2>&5
25337   ac_status=$?
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); }; }; then
25340   ac_cv_sizeof_long_long_int=`cat conftest.val`
25341 else
25342   echo "$as_me: program exited with status $ac_status" >&5
25343 echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25345
25346 ( exit $ac_status )
25347 if test "$ac_cv_type_long_long_int" = yes; then
25348      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25349 See \`config.log' for more details." >&5
25350 echo "$as_me: error: cannot compute sizeof (long long int)
25351 See \`config.log' for more details." >&2;}
25352    { (exit 77); exit 77; }; }
25353    else
25354      ac_cv_sizeof_long_long_int=0
25355    fi
25356 fi
25357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25358 fi
25359 rm -f conftest.val
25360 fi
25361 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25362 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25363
25364
25365
25366 cat >>confdefs.h <<_ACEOF
25367 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25368 _ACEOF
25369
25370
25371 { echo "$as_me:$LINENO: checking for int *" >&5
25372 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25373 if test "${ac_cv_type_int_p+set}" = set; then
25374   echo $ECHO_N "(cached) $ECHO_C" >&6
25375 else
25376   cat >conftest.$ac_ext <<_ACEOF
25377 /* confdefs.h.  */
25378 _ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h.  */
25382 $ac_includes_default
25383 typedef int * ac__type_new_;
25384 int
25385 main ()
25386 {
25387 if ((ac__type_new_ *) 0)
25388   return 0;
25389 if (sizeof (ac__type_new_))
25390   return 0;
25391   ;
25392   return 0;
25393 }
25394 _ACEOF
25395 rm -f conftest.$ac_objext
25396 if { (ac_try="$ac_compile"
25397 case "(($ac_try" in
25398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399   *) ac_try_echo=$ac_try;;
25400 esac
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402   (eval "$ac_compile") 2>conftest.er1
25403   ac_status=$?
25404   grep -v '^ *+' conftest.er1 >conftest.err
25405   rm -f conftest.er1
25406   cat conftest.err >&5
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); } && {
25409          test -z "$ac_c_werror_flag" ||
25410          test ! -s conftest.err
25411        } && test -s conftest.$ac_objext; then
25412   ac_cv_type_int_p=yes
25413 else
25414   echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25416
25417         ac_cv_type_int_p=no
25418 fi
25419
25420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25421 fi
25422 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25423 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25424
25425 # The cast to long int works around a bug in the HP C Compiler
25426 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25427 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25428 # This bug is HP SR number 8606223364.
25429 { echo "$as_me:$LINENO: checking size of int *" >&5
25430 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25431 if test "${ac_cv_sizeof_int_p+set}" = set; then
25432   echo $ECHO_N "(cached) $ECHO_C" >&6
25433 else
25434   if test "$cross_compiling" = yes; then
25435   # Depending upon the size, compute the lo and hi bounds.
25436 cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h.  */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h.  */
25442 $ac_includes_default
25443    typedef int * ac__type_sizeof_;
25444 int
25445 main ()
25446 {
25447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25448 test_array [0] = 0
25449
25450   ;
25451   return 0;
25452 }
25453 _ACEOF
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458   *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461   (eval "$ac_compile") 2>conftest.er1
25462   ac_status=$?
25463   grep -v '^ *+' conftest.er1 >conftest.err
25464   rm -f conftest.er1
25465   cat conftest.err >&5
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); } && {
25468          test -z "$ac_c_werror_flag" ||
25469          test ! -s conftest.err
25470        } && test -s conftest.$ac_objext; then
25471   ac_lo=0 ac_mid=0
25472   while :; do
25473     cat >conftest.$ac_ext <<_ACEOF
25474 /* confdefs.h.  */
25475 _ACEOF
25476 cat confdefs.h >>conftest.$ac_ext
25477 cat >>conftest.$ac_ext <<_ACEOF
25478 /* end confdefs.h.  */
25479 $ac_includes_default
25480    typedef int * ac__type_sizeof_;
25481 int
25482 main ()
25483 {
25484 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25485 test_array [0] = 0
25486
25487   ;
25488   return 0;
25489 }
25490 _ACEOF
25491 rm -f conftest.$ac_objext
25492 if { (ac_try="$ac_compile"
25493 case "(($ac_try" in
25494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25495   *) ac_try_echo=$ac_try;;
25496 esac
25497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25498   (eval "$ac_compile") 2>conftest.er1
25499   ac_status=$?
25500   grep -v '^ *+' conftest.er1 >conftest.err
25501   rm -f conftest.er1
25502   cat conftest.err >&5
25503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25504   (exit $ac_status); } && {
25505          test -z "$ac_c_werror_flag" ||
25506          test ! -s conftest.err
25507        } && test -s conftest.$ac_objext; then
25508   ac_hi=$ac_mid; break
25509 else
25510   echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.$ac_ext >&5
25512
25513         ac_lo=`expr $ac_mid + 1`
25514                         if test $ac_lo -le $ac_mid; then
25515                           ac_lo= ac_hi=
25516                           break
25517                         fi
25518                         ac_mid=`expr 2 '*' $ac_mid + 1`
25519 fi
25520
25521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25522   done
25523 else
25524   echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25526
25527         cat >conftest.$ac_ext <<_ACEOF
25528 /* confdefs.h.  */
25529 _ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h.  */
25533 $ac_includes_default
25534    typedef int * ac__type_sizeof_;
25535 int
25536 main ()
25537 {
25538 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25539 test_array [0] = 0
25540
25541   ;
25542   return 0;
25543 }
25544 _ACEOF
25545 rm -f conftest.$ac_objext
25546 if { (ac_try="$ac_compile"
25547 case "(($ac_try" in
25548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25549   *) ac_try_echo=$ac_try;;
25550 esac
25551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25552   (eval "$ac_compile") 2>conftest.er1
25553   ac_status=$?
25554   grep -v '^ *+' conftest.er1 >conftest.err
25555   rm -f conftest.er1
25556   cat conftest.err >&5
25557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25558   (exit $ac_status); } && {
25559          test -z "$ac_c_werror_flag" ||
25560          test ! -s conftest.err
25561        } && test -s conftest.$ac_objext; then
25562   ac_hi=-1 ac_mid=-1
25563   while :; do
25564     cat >conftest.$ac_ext <<_ACEOF
25565 /* confdefs.h.  */
25566 _ACEOF
25567 cat confdefs.h >>conftest.$ac_ext
25568 cat >>conftest.$ac_ext <<_ACEOF
25569 /* end confdefs.h.  */
25570 $ac_includes_default
25571    typedef int * ac__type_sizeof_;
25572 int
25573 main ()
25574 {
25575 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25576 test_array [0] = 0
25577
25578   ;
25579   return 0;
25580 }
25581 _ACEOF
25582 rm -f conftest.$ac_objext
25583 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25590   ac_status=$?
25591   grep -v '^ *+' conftest.er1 >conftest.err
25592   rm -f conftest.er1
25593   cat conftest.err >&5
25594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595   (exit $ac_status); } && {
25596          test -z "$ac_c_werror_flag" ||
25597          test ! -s conftest.err
25598        } && test -s conftest.$ac_objext; then
25599   ac_lo=$ac_mid; break
25600 else
25601   echo "$as_me: failed program was:" >&5
25602 sed 's/^/| /' conftest.$ac_ext >&5
25603
25604         ac_hi=`expr '(' $ac_mid ')' - 1`
25605                         if test $ac_mid -le $ac_hi; then
25606                           ac_lo= ac_hi=
25607                           break
25608                         fi
25609                         ac_mid=`expr 2 '*' $ac_mid`
25610 fi
25611
25612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25613   done
25614 else
25615   echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25617
25618         ac_lo= ac_hi=
25619 fi
25620
25621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25622 fi
25623
25624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25625 # Binary search between lo and hi bounds.
25626 while test "x$ac_lo" != "x$ac_hi"; do
25627   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25628   cat >conftest.$ac_ext <<_ACEOF
25629 /* confdefs.h.  */
25630 _ACEOF
25631 cat confdefs.h >>conftest.$ac_ext
25632 cat >>conftest.$ac_ext <<_ACEOF
25633 /* end confdefs.h.  */
25634 $ac_includes_default
25635    typedef int * ac__type_sizeof_;
25636 int
25637 main ()
25638 {
25639 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25640 test_array [0] = 0
25641
25642   ;
25643   return 0;
25644 }
25645 _ACEOF
25646 rm -f conftest.$ac_objext
25647 if { (ac_try="$ac_compile"
25648 case "(($ac_try" in
25649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650   *) ac_try_echo=$ac_try;;
25651 esac
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653   (eval "$ac_compile") 2>conftest.er1
25654   ac_status=$?
25655   grep -v '^ *+' conftest.er1 >conftest.err
25656   rm -f conftest.er1
25657   cat conftest.err >&5
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); } && {
25660          test -z "$ac_c_werror_flag" ||
25661          test ! -s conftest.err
25662        } && test -s conftest.$ac_objext; then
25663   ac_hi=$ac_mid
25664 else
25665   echo "$as_me: failed program was:" >&5
25666 sed 's/^/| /' conftest.$ac_ext >&5
25667
25668         ac_lo=`expr '(' $ac_mid ')' + 1`
25669 fi
25670
25671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25672 done
25673 case $ac_lo in
25674 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25675 '') if test "$ac_cv_type_int_p" = yes; then
25676      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25677 See \`config.log' for more details." >&5
25678 echo "$as_me: error: cannot compute sizeof (int *)
25679 See \`config.log' for more details." >&2;}
25680    { (exit 77); exit 77; }; }
25681    else
25682      ac_cv_sizeof_int_p=0
25683    fi ;;
25684 esac
25685 else
25686   cat >conftest.$ac_ext <<_ACEOF
25687 /* confdefs.h.  */
25688 _ACEOF
25689 cat confdefs.h >>conftest.$ac_ext
25690 cat >>conftest.$ac_ext <<_ACEOF
25691 /* end confdefs.h.  */
25692 $ac_includes_default
25693    typedef int * ac__type_sizeof_;
25694 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25695 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25696 #include <stdio.h>
25697 #include <stdlib.h>
25698 int
25699 main ()
25700 {
25701
25702   FILE *f = fopen ("conftest.val", "w");
25703   if (! f)
25704     return 1;
25705   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25706     {
25707       long int i = longval ();
25708       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25709         return 1;
25710       fprintf (f, "%ld\n", i);
25711     }
25712   else
25713     {
25714       unsigned long int i = ulongval ();
25715       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25716         return 1;
25717       fprintf (f, "%lu\n", i);
25718     }
25719   return ferror (f) || fclose (f) != 0;
25720
25721   ;
25722   return 0;
25723 }
25724 _ACEOF
25725 rm -f conftest$ac_exeext
25726 if { (ac_try="$ac_link"
25727 case "(($ac_try" in
25728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25729   *) ac_try_echo=$ac_try;;
25730 esac
25731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25732   (eval "$ac_link") 2>&5
25733   ac_status=$?
25734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25736   { (case "(($ac_try" in
25737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25738   *) ac_try_echo=$ac_try;;
25739 esac
25740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25741   (eval "$ac_try") 2>&5
25742   ac_status=$?
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); }; }; then
25745   ac_cv_sizeof_int_p=`cat conftest.val`
25746 else
25747   echo "$as_me: program exited with status $ac_status" >&5
25748 echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.$ac_ext >&5
25750
25751 ( exit $ac_status )
25752 if test "$ac_cv_type_int_p" = yes; then
25753      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25754 See \`config.log' for more details." >&5
25755 echo "$as_me: error: cannot compute sizeof (int *)
25756 See \`config.log' for more details." >&2;}
25757    { (exit 77); exit 77; }; }
25758    else
25759      ac_cv_sizeof_int_p=0
25760    fi
25761 fi
25762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25763 fi
25764 rm -f conftest.val
25765 fi
25766 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25767 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25768
25769
25770
25771 cat >>confdefs.h <<_ACEOF
25772 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25773 _ACEOF
25774
25775
25776
25777 # Check for sys/types.h types
25778 { echo "$as_me:$LINENO: checking for u_int type" >&5
25779 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25780 if test "${ac_cv_have_u_int+set}" = set; then
25781   echo $ECHO_N "(cached) $ECHO_C" >&6
25782 else
25783
25784     cat >conftest.$ac_ext <<_ACEOF
25785 /* confdefs.h.  */
25786 _ACEOF
25787 cat confdefs.h >>conftest.$ac_ext
25788 cat >>conftest.$ac_ext <<_ACEOF
25789 /* end confdefs.h.  */
25790  #include <sys/types.h>
25791 int
25792 main ()
25793 {
25794  u_int a; a = 1;
25795   ;
25796   return 0;
25797 }
25798 _ACEOF
25799 rm -f conftest.$ac_objext
25800 if { (ac_try="$ac_compile"
25801 case "(($ac_try" in
25802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803   *) ac_try_echo=$ac_try;;
25804 esac
25805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25806   (eval "$ac_compile") 2>conftest.er1
25807   ac_status=$?
25808   grep -v '^ *+' conftest.er1 >conftest.err
25809   rm -f conftest.er1
25810   cat conftest.err >&5
25811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25812   (exit $ac_status); } && {
25813          test -z "$ac_c_werror_flag" ||
25814          test ! -s conftest.err
25815        } && test -s conftest.$ac_objext; then
25816    ac_cv_have_u_int="yes"
25817 else
25818   echo "$as_me: failed program was:" >&5
25819 sed 's/^/| /' conftest.$ac_ext >&5
25820
25821          ac_cv_have_u_int="no"
25822
25823 fi
25824
25825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25826
25827 fi
25828 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25829 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25830 if test "x$ac_cv_have_u_int" = "xyes" ; then
25831    cat >>confdefs.h <<\_ACEOF
25832 #define HAVE_U_INT 1
25833 _ACEOF
25834
25835    have_u_int=1
25836 fi
25837
25838 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25839 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25840 if test "${ac_cv_have_intmax_t+set}" = set; then
25841   echo $ECHO_N "(cached) $ECHO_C" >&6
25842 else
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 <sys/types.h>
25851 int
25852 main ()
25853 {
25854  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_intmax_t="yes"
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881
25882          cat >conftest.$ac_ext <<_ACEOF
25883 /* confdefs.h.  */
25884 _ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h.  */
25888  #include <stdint.h>
25889 int
25890 main ()
25891 {
25892  intmax_t a; a = 1;
25893   ;
25894   return 0;
25895 }
25896 _ACEOF
25897 rm -f conftest.$ac_objext
25898 if { (ac_try="$ac_compile"
25899 case "(($ac_try" in
25900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901   *) ac_try_echo=$ac_try;;
25902 esac
25903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25904   (eval "$ac_compile") 2>conftest.er1
25905   ac_status=$?
25906   grep -v '^ *+' conftest.er1 >conftest.err
25907   rm -f conftest.er1
25908   cat conftest.err >&5
25909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910   (exit $ac_status); } && {
25911          test -z "$ac_c_werror_flag" ||
25912          test ! -s conftest.err
25913        } && test -s conftest.$ac_objext; then
25914    ac_cv_have_intmax_t="yes"
25915 else
25916   echo "$as_me: failed program was:" >&5
25917 sed 's/^/| /' conftest.$ac_ext >&5
25918
25919          ac_cv_have_intmax_t="no"
25920
25921 fi
25922
25923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25924
25925
25926 fi
25927
25928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25929
25930
25931 fi
25932 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25933 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25934 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25935    cat >>confdefs.h <<\_ACEOF
25936 #define HAVE_INTMAX_T 1
25937 _ACEOF
25938
25939    have_intmax_t=1
25940 fi
25941
25942
25943 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25944 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25945 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25946   echo $ECHO_N "(cached) $ECHO_C" >&6
25947 else
25948
25949    cat >conftest.$ac_ext <<_ACEOF
25950 /* confdefs.h.  */
25951 _ACEOF
25952 cat confdefs.h >>conftest.$ac_ext
25953 cat >>conftest.$ac_ext <<_ACEOF
25954 /* end confdefs.h.  */
25955  #include <sys/types.h>
25956 int
25957 main ()
25958 {
25959  u_intmax_t a; a = 1;
25960   ;
25961   return 0;
25962 }
25963 _ACEOF
25964 rm -f conftest.$ac_objext
25965 if { (ac_try="$ac_compile"
25966 case "(($ac_try" in
25967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25968   *) ac_try_echo=$ac_try;;
25969 esac
25970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25971   (eval "$ac_compile") 2>conftest.er1
25972   ac_status=$?
25973   grep -v '^ *+' conftest.er1 >conftest.err
25974   rm -f conftest.er1
25975   cat conftest.err >&5
25976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977   (exit $ac_status); } && {
25978          test -z "$ac_c_werror_flag" ||
25979          test ! -s conftest.err
25980        } && test -s conftest.$ac_objext; then
25981    ac_cv_have_u_intmax_t="yes"
25982 else
25983   echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.$ac_ext >&5
25985
25986
25987          cat >conftest.$ac_ext <<_ACEOF
25988 /* confdefs.h.  */
25989 _ACEOF
25990 cat confdefs.h >>conftest.$ac_ext
25991 cat >>conftest.$ac_ext <<_ACEOF
25992 /* end confdefs.h.  */
25993  #include <stdint.h>
25994 int
25995 main ()
25996 {
25997  u_intmax_t a; a = 1;
25998   ;
25999   return 0;
26000 }
26001 _ACEOF
26002 rm -f conftest.$ac_objext
26003 if { (ac_try="$ac_compile"
26004 case "(($ac_try" in
26005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26006   *) ac_try_echo=$ac_try;;
26007 esac
26008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26009   (eval "$ac_compile") 2>conftest.er1
26010   ac_status=$?
26011   grep -v '^ *+' conftest.er1 >conftest.err
26012   rm -f conftest.er1
26013   cat conftest.err >&5
26014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015   (exit $ac_status); } && {
26016          test -z "$ac_c_werror_flag" ||
26017          test ! -s conftest.err
26018        } && test -s conftest.$ac_objext; then
26019    ac_cv_have_u_intmax_t="yes"
26020 else
26021   echo "$as_me: failed program was:" >&5
26022 sed 's/^/| /' conftest.$ac_ext >&5
26023
26024          ac_cv_have_u_intmax_t="no"
26025
26026 fi
26027
26028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26029
26030
26031 fi
26032
26033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26034
26035 fi
26036 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26037 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26038 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26039    cat >>confdefs.h <<\_ACEOF
26040 #define HAVE_U_INTMAX_T 1
26041 _ACEOF
26042
26043    have_u_intmax_t=1
26044 fi
26045
26046
26047 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26048 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26049 if test "${ac_cv_have_intxx_t+set}" = set; then
26050   echo $ECHO_N "(cached) $ECHO_C" >&6
26051 else
26052
26053    cat >conftest.$ac_ext <<_ACEOF
26054 /* confdefs.h.  */
26055 _ACEOF
26056 cat confdefs.h >>conftest.$ac_ext
26057 cat >>conftest.$ac_ext <<_ACEOF
26058 /* end confdefs.h.  */
26059  #include <sys/types.h>
26060 int
26061 main ()
26062 {
26063  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26064   ;
26065   return 0;
26066 }
26067 _ACEOF
26068 rm -f conftest.$ac_objext
26069 if { (ac_try="$ac_compile"
26070 case "(($ac_try" in
26071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26072   *) ac_try_echo=$ac_try;;
26073 esac
26074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26075   (eval "$ac_compile") 2>conftest.er1
26076   ac_status=$?
26077   grep -v '^ *+' conftest.er1 >conftest.err
26078   rm -f conftest.er1
26079   cat conftest.err >&5
26080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081   (exit $ac_status); } && {
26082          test -z "$ac_c_werror_flag" ||
26083          test ! -s conftest.err
26084        } && test -s conftest.$ac_objext; then
26085    ac_cv_have_intxx_t="yes"
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090          ac_cv_have_intxx_t="no"
26091
26092 fi
26093
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26095
26096 fi
26097 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26098 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26099 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26100    cat >>confdefs.h <<\_ACEOF
26101 #define HAVE_INTXX_T 1
26102 _ACEOF
26103
26104    have_intxx_t=1
26105 fi
26106
26107 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26108 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26109 if test "${ac_cv_have_int64_t+set}" = set; then
26110   echo $ECHO_N "(cached) $ECHO_C" >&6
26111 else
26112
26113    cat >conftest.$ac_ext <<_ACEOF
26114 /* confdefs.h.  */
26115 _ACEOF
26116 cat confdefs.h >>conftest.$ac_ext
26117 cat >>conftest.$ac_ext <<_ACEOF
26118 /* end confdefs.h.  */
26119  #include <sys/types.h>
26120 int
26121 main ()
26122 {
26123  int64_t a; a = 1;
26124   ;
26125   return 0;
26126 }
26127 _ACEOF
26128 rm -f conftest.$ac_objext
26129 if { (ac_try="$ac_compile"
26130 case "(($ac_try" in
26131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26132   *) ac_try_echo=$ac_try;;
26133 esac
26134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26135   (eval "$ac_compile") 2>conftest.er1
26136   ac_status=$?
26137   grep -v '^ *+' conftest.er1 >conftest.err
26138   rm -f conftest.er1
26139   cat conftest.err >&5
26140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141   (exit $ac_status); } && {
26142          test -z "$ac_c_werror_flag" ||
26143          test ! -s conftest.err
26144        } && test -s conftest.$ac_objext; then
26145    ac_cv_have_int64_t="yes"
26146 else
26147   echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26149
26150          ac_cv_have_int64_t="no"
26151
26152 fi
26153
26154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26155
26156 fi
26157 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26158 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26159 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26160    cat >>confdefs.h <<\_ACEOF
26161 #define HAVE_INT64_T 1
26162 _ACEOF
26163
26164    have_int64_t=1
26165 fi
26166
26167 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26168 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26169 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26170   echo $ECHO_N "(cached) $ECHO_C" >&6
26171 else
26172
26173    cat >conftest.$ac_ext <<_ACEOF
26174 /* confdefs.h.  */
26175 _ACEOF
26176 cat confdefs.h >>conftest.$ac_ext
26177 cat >>conftest.$ac_ext <<_ACEOF
26178 /* end confdefs.h.  */
26179  #include <sys/types.h>
26180 int
26181 main ()
26182 {
26183  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26184   ;
26185   return 0;
26186 }
26187 _ACEOF
26188 rm -f conftest.$ac_objext
26189 if { (ac_try="$ac_compile"
26190 case "(($ac_try" in
26191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26192   *) ac_try_echo=$ac_try;;
26193 esac
26194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26195   (eval "$ac_compile") 2>conftest.er1
26196   ac_status=$?
26197   grep -v '^ *+' conftest.er1 >conftest.err
26198   rm -f conftest.er1
26199   cat conftest.err >&5
26200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); } && {
26202          test -z "$ac_c_werror_flag" ||
26203          test ! -s conftest.err
26204        } && test -s conftest.$ac_objext; then
26205    ac_cv_have_u_intxx_t="yes"
26206 else
26207   echo "$as_me: failed program was:" >&5
26208 sed 's/^/| /' conftest.$ac_ext >&5
26209
26210          ac_cv_have_u_intxx_t="no"
26211
26212 fi
26213
26214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26215
26216 fi
26217 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26218 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26219 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26220    cat >>confdefs.h <<\_ACEOF
26221 #define HAVE_U_INTXX_T 1
26222 _ACEOF
26223
26224    have_u_intxx_t=1
26225 fi
26226
26227 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26228 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26229 if test "${ac_cv_have_u_int64_t+set}" = set; then
26230   echo $ECHO_N "(cached) $ECHO_C" >&6
26231 else
26232
26233    cat >conftest.$ac_ext <<_ACEOF
26234 /* confdefs.h.  */
26235 _ACEOF
26236 cat confdefs.h >>conftest.$ac_ext
26237 cat >>conftest.$ac_ext <<_ACEOF
26238 /* end confdefs.h.  */
26239  #include <sys/types.h>
26240 int
26241 main ()
26242 {
26243  u_int64_t a; a = 1;
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 rm -f conftest.$ac_objext
26249 if { (ac_try="$ac_compile"
26250 case "(($ac_try" in
26251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252   *) ac_try_echo=$ac_try;;
26253 esac
26254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26255   (eval "$ac_compile") 2>conftest.er1
26256   ac_status=$?
26257   grep -v '^ *+' conftest.er1 >conftest.err
26258   rm -f conftest.er1
26259   cat conftest.err >&5
26260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26261   (exit $ac_status); } && {
26262          test -z "$ac_c_werror_flag" ||
26263          test ! -s conftest.err
26264        } && test -s conftest.$ac_objext; then
26265    ac_cv_have_u_int64_t="yes"
26266 else
26267   echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270          ac_cv_have_u_int64_t="no"
26271
26272 fi
26273
26274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26275
26276 fi
26277 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26278 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26279 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26280    cat >>confdefs.h <<\_ACEOF
26281 #define HAVE_U_INT64_T 1
26282 _ACEOF
26283
26284    have_u_int64_t=1
26285 fi
26286
26287 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26288            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26289 then
26290    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26291 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26292    cat >conftest.$ac_ext <<_ACEOF
26293 /* confdefs.h.  */
26294 _ACEOF
26295 cat confdefs.h >>conftest.$ac_ext
26296 cat >>conftest.$ac_ext <<_ACEOF
26297 /* end confdefs.h.  */
26298  #include <sys/bitypes.h>
26299 int
26300 main ()
26301 {
26302  int8_t a; int16_t b; int32_t c;
26303         u_int8_t e; u_int16_t f; u_int32_t g;
26304         a = b = c = e = f = g = 1;
26305   ;
26306   return 0;
26307 }
26308 _ACEOF
26309 rm -f conftest.$ac_objext
26310 if { (ac_try="$ac_compile"
26311 case "(($ac_try" in
26312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26313   *) ac_try_echo=$ac_try;;
26314 esac
26315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26316   (eval "$ac_compile") 2>conftest.er1
26317   ac_status=$?
26318   grep -v '^ *+' conftest.er1 >conftest.err
26319   rm -f conftest.er1
26320   cat conftest.err >&5
26321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322   (exit $ac_status); } && {
26323          test -z "$ac_c_werror_flag" ||
26324          test ! -s conftest.err
26325        } && test -s conftest.$ac_objext; then
26326    cat >>confdefs.h <<\_ACEOF
26327 #define HAVE_U_INTXX_T 1
26328 _ACEOF
26329
26330         cat >>confdefs.h <<\_ACEOF
26331 #define HAVE_INTXX_T 1
26332 _ACEOF
26333
26334         cat >>confdefs.h <<\_ACEOF
26335 #define HAVE_SYS_BITYPES_H 1
26336 _ACEOF
26337
26338         { echo "$as_me:$LINENO: result: yes" >&5
26339 echo "${ECHO_T}yes" >&6; }
26340 else
26341   echo "$as_me: failed program was:" >&5
26342 sed 's/^/| /' conftest.$ac_ext >&5
26343
26344          { echo "$as_me:$LINENO: result: no" >&5
26345 echo "${ECHO_T}no" >&6; }
26346
26347 fi
26348
26349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26350 fi
26351
26352 if test -z "$have_u_intxx_t" ; then
26353    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26354 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26355 if test "${ac_cv_have_uintxx_t+set}" = set; then
26356   echo $ECHO_N "(cached) $ECHO_C" >&6
26357 else
26358
26359       cat >conftest.$ac_ext <<_ACEOF
26360 /* confdefs.h.  */
26361 _ACEOF
26362 cat confdefs.h >>conftest.$ac_ext
26363 cat >>conftest.$ac_ext <<_ACEOF
26364 /* end confdefs.h.  */
26365  #include <sys/types.h>
26366 int
26367 main ()
26368 {
26369  uint8_t a; uint16_t b;
26370            uint32_t c; a = b = c = 1;
26371   ;
26372   return 0;
26373 }
26374 _ACEOF
26375 rm -f conftest.$ac_objext
26376 if { (ac_try="$ac_compile"
26377 case "(($ac_try" in
26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379   *) ac_try_echo=$ac_try;;
26380 esac
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382   (eval "$ac_compile") 2>conftest.er1
26383   ac_status=$?
26384   grep -v '^ *+' conftest.er1 >conftest.err
26385   rm -f conftest.er1
26386   cat conftest.err >&5
26387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388   (exit $ac_status); } && {
26389          test -z "$ac_c_werror_flag" ||
26390          test ! -s conftest.err
26391        } && test -s conftest.$ac_objext; then
26392    ac_cv_have_uintxx_t="yes"
26393 else
26394   echo "$as_me: failed program was:" >&5
26395 sed 's/^/| /' conftest.$ac_ext >&5
26396
26397          ac_cv_have_uintxx_t="no"
26398
26399 fi
26400
26401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26402
26403 fi
26404 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26405 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26406    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26407       cat >>confdefs.h <<\_ACEOF
26408 #define HAVE_UINTXX_T 1
26409 _ACEOF
26410
26411    fi
26412 fi
26413
26414 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26415           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26416 then
26417    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26418 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26419    cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425  #include <sys/bitypes.h>
26426 int
26427 main ()
26428 {
26429  int64_t a; u_int64_t b;
26430        a = b = 1;
26431   ;
26432   return 0;
26433 }
26434 _ACEOF
26435 rm -f conftest.$ac_objext
26436 if { (ac_try="$ac_compile"
26437 case "(($ac_try" in
26438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26439   *) ac_try_echo=$ac_try;;
26440 esac
26441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26442   (eval "$ac_compile") 2>conftest.er1
26443   ac_status=$?
26444   grep -v '^ *+' conftest.er1 >conftest.err
26445   rm -f conftest.er1
26446   cat conftest.err >&5
26447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448   (exit $ac_status); } && {
26449          test -z "$ac_c_werror_flag" ||
26450          test ! -s conftest.err
26451        } && test -s conftest.$ac_objext; then
26452    cat >>confdefs.h <<\_ACEOF
26453 #define HAVE_U_INT64_T 1
26454 _ACEOF
26455
26456        cat >>confdefs.h <<\_ACEOF
26457 #define HAVE_INT64_T 1
26458 _ACEOF
26459
26460        { echo "$as_me:$LINENO: result: yes" >&5
26461 echo "${ECHO_T}yes" >&6; }
26462 else
26463   echo "$as_me: failed program was:" >&5
26464 sed 's/^/| /' conftest.$ac_ext >&5
26465
26466          { echo "$as_me:$LINENO: result: no" >&5
26467 echo "${ECHO_T}no" >&6; }
26468
26469 fi
26470
26471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26472 fi
26473
26474 if (test -z "$have_uintxx_t" && \
26475           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26476 then
26477    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26478 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26479    cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h.  */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h.  */
26485  #include <sys/bitypes.h>
26486 int
26487 main ()
26488 {
26489  uint8_t a; uint16_t b;
26490           uint32_t c; a = b = c = 1;
26491   ;
26492   return 0;
26493 }
26494 _ACEOF
26495 rm -f conftest.$ac_objext
26496 if { (ac_try="$ac_compile"
26497 case "(($ac_try" in
26498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26499   *) ac_try_echo=$ac_try;;
26500 esac
26501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26502   (eval "$ac_compile") 2>conftest.er1
26503   ac_status=$?
26504   grep -v '^ *+' conftest.er1 >conftest.err
26505   rm -f conftest.er1
26506   cat conftest.err >&5
26507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508   (exit $ac_status); } && {
26509          test -z "$ac_c_werror_flag" ||
26510          test ! -s conftest.err
26511        } && test -s conftest.$ac_objext; then
26512    cat >>confdefs.h <<\_ACEOF
26513 #define HAVE_UINTXX_T 1
26514 _ACEOF
26515
26516        { echo "$as_me:$LINENO: result: yes" >&5
26517 echo "${ECHO_T}yes" >&6; }
26518 else
26519   echo "$as_me: failed program was:" >&5
26520 sed 's/^/| /' conftest.$ac_ext >&5
26521
26522          { echo "$as_me:$LINENO: result: no" >&5
26523 echo "${ECHO_T}no" >&6; }
26524
26525 fi
26526
26527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26528
26529 fi
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544
26545
26546
26547 for ac_func in \
26548         fork \
26549         getcwd \
26550         gethostname \
26551         getpid \
26552         gettimeofday \
26553         setpgid \
26554         setpgrp \
26555         setsid \
26556         signal \
26557         strerror \
26558         strncmp \
26559         strncpy \
26560         vfprintf \
26561
26562 do
26563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26567   echo $ECHO_N "(cached) $ECHO_C" >&6
26568 else
26569   cat >conftest.$ac_ext <<_ACEOF
26570 /* confdefs.h.  */
26571 _ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h.  */
26575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26577 #define $ac_func innocuous_$ac_func
26578
26579 /* System header to define __stub macros and hopefully few prototypes,
26580     which can conflict with char $ac_func (); below.
26581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26582     <limits.h> exists even on freestanding compilers.  */
26583
26584 #ifdef __STDC__
26585 # include <limits.h>
26586 #else
26587 # include <assert.h>
26588 #endif
26589
26590 #undef $ac_func
26591
26592 /* Override any GCC internal prototype to avoid an error.
26593    Use char because int might match the return type of a GCC
26594    builtin and then its argument prototype would still apply.  */
26595 #ifdef __cplusplus
26596 extern "C"
26597 #endif
26598 char $ac_func ();
26599 /* The GNU C library defines this for functions which it implements
26600     to always fail with ENOSYS.  Some functions are actually named
26601     something starting with __ and the normal name is an alias.  */
26602 #if defined __stub_$ac_func || defined __stub___$ac_func
26603 choke me
26604 #endif
26605
26606 int
26607 main ()
26608 {
26609 return $ac_func ();
26610   ;
26611   return 0;
26612 }
26613 _ACEOF
26614 rm -f conftest.$ac_objext conftest$ac_exeext
26615 if { (ac_try="$ac_link"
26616 case "(($ac_try" in
26617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618   *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621   (eval "$ac_link") 2>conftest.er1
26622   ac_status=$?
26623   grep -v '^ *+' conftest.er1 >conftest.err
26624   rm -f conftest.er1
26625   cat conftest.err >&5
26626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26627   (exit $ac_status); } && {
26628          test -z "$ac_c_werror_flag" ||
26629          test ! -s conftest.err
26630        } && test -s conftest$ac_exeext &&
26631        $as_test_x conftest$ac_exeext; then
26632   eval "$as_ac_var=yes"
26633 else
26634   echo "$as_me: failed program was:" >&5
26635 sed 's/^/| /' conftest.$ac_ext >&5
26636
26637         eval "$as_ac_var=no"
26638 fi
26639
26640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26641       conftest$ac_exeext conftest.$ac_ext
26642 fi
26643 ac_res=`eval echo '${'$as_ac_var'}'`
26644                { echo "$as_me:$LINENO: result: $ac_res" >&5
26645 echo "${ECHO_T}$ac_res" >&6; }
26646 if test `eval echo '${'$as_ac_var'}'` = yes; then
26647   cat >>confdefs.h <<_ACEOF
26648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26649 _ACEOF
26650
26651 else
26652   echo 'configure: cannot find needed function.'; exit 1
26653
26654 fi
26655 done
26656
26657
26658
26659 for ac_func in fchdir
26660 do
26661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26665   echo $ECHO_N "(cached) $ECHO_C" >&6
26666 else
26667   cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h.  */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h.  */
26673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26675 #define $ac_func innocuous_$ac_func
26676
26677 /* System header to define __stub macros and hopefully few prototypes,
26678     which can conflict with char $ac_func (); below.
26679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26680     <limits.h> exists even on freestanding compilers.  */
26681
26682 #ifdef __STDC__
26683 # include <limits.h>
26684 #else
26685 # include <assert.h>
26686 #endif
26687
26688 #undef $ac_func
26689
26690 /* Override any GCC internal prototype to avoid an error.
26691    Use char because int might match the return type of a GCC
26692    builtin and then its argument prototype would still apply.  */
26693 #ifdef __cplusplus
26694 extern "C"
26695 #endif
26696 char $ac_func ();
26697 /* The GNU C library defines this for functions which it implements
26698     to always fail with ENOSYS.  Some functions are actually named
26699     something starting with __ and the normal name is an alias.  */
26700 #if defined __stub_$ac_func || defined __stub___$ac_func
26701 choke me
26702 #endif
26703
26704 int
26705 main ()
26706 {
26707 return $ac_func ();
26708   ;
26709   return 0;
26710 }
26711 _ACEOF
26712 rm -f conftest.$ac_objext conftest$ac_exeext
26713 if { (ac_try="$ac_link"
26714 case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719   (eval "$ac_link") 2>conftest.er1
26720   ac_status=$?
26721   grep -v '^ *+' conftest.er1 >conftest.err
26722   rm -f conftest.er1
26723   cat conftest.err >&5
26724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); } && {
26726          test -z "$ac_c_werror_flag" ||
26727          test ! -s conftest.err
26728        } && test -s conftest$ac_exeext &&
26729        $as_test_x conftest$ac_exeext; then
26730   eval "$as_ac_var=yes"
26731 else
26732   echo "$as_me: failed program was:" >&5
26733 sed 's/^/| /' conftest.$ac_ext >&5
26734
26735         eval "$as_ac_var=no"
26736 fi
26737
26738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26739       conftest$ac_exeext conftest.$ac_ext
26740 fi
26741 ac_res=`eval echo '${'$as_ac_var'}'`
26742                { echo "$as_me:$LINENO: result: $ac_res" >&5
26743 echo "${ECHO_T}$ac_res" >&6; }
26744 if test `eval echo '${'$as_ac_var'}'` = yes; then
26745   cat >>confdefs.h <<_ACEOF
26746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26747 _ACEOF
26748  cat >>confdefs.h <<\_ACEOF
26749 #define HAVE_FCHDIR 1
26750 _ACEOF
26751
26752 fi
26753 done
26754
26755
26756 for ac_func in strtoll
26757 do
26758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26762   echo $ECHO_N "(cached) $ECHO_C" >&6
26763 else
26764   cat >conftest.$ac_ext <<_ACEOF
26765 /* confdefs.h.  */
26766 _ACEOF
26767 cat confdefs.h >>conftest.$ac_ext
26768 cat >>conftest.$ac_ext <<_ACEOF
26769 /* end confdefs.h.  */
26770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26771    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26772 #define $ac_func innocuous_$ac_func
26773
26774 /* System header to define __stub macros and hopefully few prototypes,
26775     which can conflict with char $ac_func (); below.
26776     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26777     <limits.h> exists even on freestanding compilers.  */
26778
26779 #ifdef __STDC__
26780 # include <limits.h>
26781 #else
26782 # include <assert.h>
26783 #endif
26784
26785 #undef $ac_func
26786
26787 /* Override any GCC internal prototype to avoid an error.
26788    Use char because int might match the return type of a GCC
26789    builtin and then its argument prototype would still apply.  */
26790 #ifdef __cplusplus
26791 extern "C"
26792 #endif
26793 char $ac_func ();
26794 /* The GNU C library defines this for functions which it implements
26795     to always fail with ENOSYS.  Some functions are actually named
26796     something starting with __ and the normal name is an alias.  */
26797 #if defined __stub_$ac_func || defined __stub___$ac_func
26798 choke me
26799 #endif
26800
26801 int
26802 main ()
26803 {
26804 return $ac_func ();
26805   ;
26806   return 0;
26807 }
26808 _ACEOF
26809 rm -f conftest.$ac_objext conftest$ac_exeext
26810 if { (ac_try="$ac_link"
26811 case "(($ac_try" in
26812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26813   *) ac_try_echo=$ac_try;;
26814 esac
26815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26816   (eval "$ac_link") 2>conftest.er1
26817   ac_status=$?
26818   grep -v '^ *+' conftest.er1 >conftest.err
26819   rm -f conftest.er1
26820   cat conftest.err >&5
26821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822   (exit $ac_status); } && {
26823          test -z "$ac_c_werror_flag" ||
26824          test ! -s conftest.err
26825        } && test -s conftest$ac_exeext &&
26826        $as_test_x conftest$ac_exeext; then
26827   eval "$as_ac_var=yes"
26828 else
26829   echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26831
26832         eval "$as_ac_var=no"
26833 fi
26834
26835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26836       conftest$ac_exeext conftest.$ac_ext
26837 fi
26838 ac_res=`eval echo '${'$as_ac_var'}'`
26839                { echo "$as_me:$LINENO: result: $ac_res" >&5
26840 echo "${ECHO_T}$ac_res" >&6; }
26841 if test `eval echo '${'$as_ac_var'}'` = yes; then
26842   cat >>confdefs.h <<_ACEOF
26843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26844 _ACEOF
26845  cat >>confdefs.h <<\_ACEOF
26846 #define HAVE_STRTOLL 1
26847 _ACEOF
26848
26849 fi
26850 done
26851
26852
26853 for ac_func in posix_fadvise
26854 do
26855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26856 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26859   echo $ECHO_N "(cached) $ECHO_C" >&6
26860 else
26861   cat >conftest.$ac_ext <<_ACEOF
26862 /* confdefs.h.  */
26863 _ACEOF
26864 cat confdefs.h >>conftest.$ac_ext
26865 cat >>conftest.$ac_ext <<_ACEOF
26866 /* end confdefs.h.  */
26867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26869 #define $ac_func innocuous_$ac_func
26870
26871 /* System header to define __stub macros and hopefully few prototypes,
26872     which can conflict with char $ac_func (); below.
26873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26874     <limits.h> exists even on freestanding compilers.  */
26875
26876 #ifdef __STDC__
26877 # include <limits.h>
26878 #else
26879 # include <assert.h>
26880 #endif
26881
26882 #undef $ac_func
26883
26884 /* Override any GCC internal prototype to avoid an error.
26885    Use char because int might match the return type of a GCC
26886    builtin and then its argument prototype would still apply.  */
26887 #ifdef __cplusplus
26888 extern "C"
26889 #endif
26890 char $ac_func ();
26891 /* The GNU C library defines this for functions which it implements
26892     to always fail with ENOSYS.  Some functions are actually named
26893     something starting with __ and the normal name is an alias.  */
26894 #if defined __stub_$ac_func || defined __stub___$ac_func
26895 choke me
26896 #endif
26897
26898 int
26899 main ()
26900 {
26901 return $ac_func ();
26902   ;
26903   return 0;
26904 }
26905 _ACEOF
26906 rm -f conftest.$ac_objext conftest$ac_exeext
26907 if { (ac_try="$ac_link"
26908 case "(($ac_try" in
26909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26910   *) ac_try_echo=$ac_try;;
26911 esac
26912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26913   (eval "$ac_link") 2>conftest.er1
26914   ac_status=$?
26915   grep -v '^ *+' conftest.er1 >conftest.err
26916   rm -f conftest.er1
26917   cat conftest.err >&5
26918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26919   (exit $ac_status); } && {
26920          test -z "$ac_c_werror_flag" ||
26921          test ! -s conftest.err
26922        } && test -s conftest$ac_exeext &&
26923        $as_test_x conftest$ac_exeext; then
26924   eval "$as_ac_var=yes"
26925 else
26926   echo "$as_me: failed program was:" >&5
26927 sed 's/^/| /' conftest.$ac_ext >&5
26928
26929         eval "$as_ac_var=no"
26930 fi
26931
26932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26933       conftest$ac_exeext conftest.$ac_ext
26934 fi
26935 ac_res=`eval echo '${'$as_ac_var'}'`
26936                { echo "$as_me:$LINENO: result: $ac_res" >&5
26937 echo "${ECHO_T}$ac_res" >&6; }
26938 if test `eval echo '${'$as_ac_var'}'` = yes; then
26939   cat >>confdefs.h <<_ACEOF
26940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26941 _ACEOF
26942
26943 fi
26944 done
26945
26946
26947 for ac_func in fdatasync
26948 do
26949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26953   echo $ECHO_N "(cached) $ECHO_C" >&6
26954 else
26955   cat >conftest.$ac_ext <<_ACEOF
26956 /* confdefs.h.  */
26957 _ACEOF
26958 cat confdefs.h >>conftest.$ac_ext
26959 cat >>conftest.$ac_ext <<_ACEOF
26960 /* end confdefs.h.  */
26961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26963 #define $ac_func innocuous_$ac_func
26964
26965 /* System header to define __stub macros and hopefully few prototypes,
26966     which can conflict with char $ac_func (); below.
26967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26968     <limits.h> exists even on freestanding compilers.  */
26969
26970 #ifdef __STDC__
26971 # include <limits.h>
26972 #else
26973 # include <assert.h>
26974 #endif
26975
26976 #undef $ac_func
26977
26978 /* Override any GCC internal prototype to avoid an error.
26979    Use char because int might match the return type of a GCC
26980    builtin and then its argument prototype would still apply.  */
26981 #ifdef __cplusplus
26982 extern "C"
26983 #endif
26984 char $ac_func ();
26985 /* The GNU C library defines this for functions which it implements
26986     to always fail with ENOSYS.  Some functions are actually named
26987     something starting with __ and the normal name is an alias.  */
26988 #if defined __stub_$ac_func || defined __stub___$ac_func
26989 choke me
26990 #endif
26991
26992 int
26993 main ()
26994 {
26995 return $ac_func ();
26996   ;
26997   return 0;
26998 }
26999 _ACEOF
27000 rm -f conftest.$ac_objext conftest$ac_exeext
27001 if { (ac_try="$ac_link"
27002 case "(($ac_try" in
27003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004   *) ac_try_echo=$ac_try;;
27005 esac
27006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27007   (eval "$ac_link") 2>conftest.er1
27008   ac_status=$?
27009   grep -v '^ *+' conftest.er1 >conftest.err
27010   rm -f conftest.er1
27011   cat conftest.err >&5
27012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27013   (exit $ac_status); } && {
27014          test -z "$ac_c_werror_flag" ||
27015          test ! -s conftest.err
27016        } && test -s conftest$ac_exeext &&
27017        $as_test_x conftest$ac_exeext; then
27018   eval "$as_ac_var=yes"
27019 else
27020   echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27022
27023         eval "$as_ac_var=no"
27024 fi
27025
27026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27027       conftest$ac_exeext conftest.$ac_ext
27028 fi
27029 ac_res=`eval echo '${'$as_ac_var'}'`
27030                { echo "$as_me:$LINENO: result: $ac_res" >&5
27031 echo "${ECHO_T}$ac_res" >&6; }
27032 if test `eval echo '${'$as_ac_var'}'` = yes; then
27033   cat >>confdefs.h <<_ACEOF
27034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27035 _ACEOF
27036
27037 fi
27038 done
27039
27040
27041
27042 for ac_func in chflags
27043 do
27044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27048   echo $ECHO_N "(cached) $ECHO_C" >&6
27049 else
27050   cat >conftest.$ac_ext <<_ACEOF
27051 /* confdefs.h.  */
27052 _ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h.  */
27056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27058 #define $ac_func innocuous_$ac_func
27059
27060 /* System header to define __stub macros and hopefully few prototypes,
27061     which can conflict with char $ac_func (); below.
27062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27063     <limits.h> exists even on freestanding compilers.  */
27064
27065 #ifdef __STDC__
27066 # include <limits.h>
27067 #else
27068 # include <assert.h>
27069 #endif
27070
27071 #undef $ac_func
27072
27073 /* Override any GCC internal prototype to avoid an error.
27074    Use char because int might match the return type of a GCC
27075    builtin and then its argument prototype would still apply.  */
27076 #ifdef __cplusplus
27077 extern "C"
27078 #endif
27079 char $ac_func ();
27080 /* The GNU C library defines this for functions which it implements
27081     to always fail with ENOSYS.  Some functions are actually named
27082     something starting with __ and the normal name is an alias.  */
27083 #if defined __stub_$ac_func || defined __stub___$ac_func
27084 choke me
27085 #endif
27086
27087 int
27088 main ()
27089 {
27090 return $ac_func ();
27091   ;
27092   return 0;
27093 }
27094 _ACEOF
27095 rm -f conftest.$ac_objext conftest$ac_exeext
27096 if { (ac_try="$ac_link"
27097 case "(($ac_try" in
27098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099   *) ac_try_echo=$ac_try;;
27100 esac
27101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27102   (eval "$ac_link") 2>conftest.er1
27103   ac_status=$?
27104   grep -v '^ *+' conftest.er1 >conftest.err
27105   rm -f conftest.er1
27106   cat conftest.err >&5
27107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108   (exit $ac_status); } && {
27109          test -z "$ac_c_werror_flag" ||
27110          test ! -s conftest.err
27111        } && test -s conftest$ac_exeext &&
27112        $as_test_x conftest$ac_exeext; then
27113   eval "$as_ac_var=yes"
27114 else
27115   echo "$as_me: failed program was:" >&5
27116 sed 's/^/| /' conftest.$ac_ext >&5
27117
27118         eval "$as_ac_var=no"
27119 fi
27120
27121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27122       conftest$ac_exeext conftest.$ac_ext
27123 fi
27124 ac_res=`eval echo '${'$as_ac_var'}'`
27125                { echo "$as_me:$LINENO: result: $ac_res" >&5
27126 echo "${ECHO_T}$ac_res" >&6; }
27127 if test `eval echo '${'$as_ac_var'}'` = yes; then
27128   cat >>confdefs.h <<_ACEOF
27129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27130 _ACEOF
27131
27132 fi
27133 done
27134
27135
27136
27137
27138
27139
27140 for ac_func in snprintf vsnprintf gethostid fseeko
27141 do
27142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27143 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27145 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27146   echo $ECHO_N "(cached) $ECHO_C" >&6
27147 else
27148   cat >conftest.$ac_ext <<_ACEOF
27149 /* confdefs.h.  */
27150 _ACEOF
27151 cat confdefs.h >>conftest.$ac_ext
27152 cat >>conftest.$ac_ext <<_ACEOF
27153 /* end confdefs.h.  */
27154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27155    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27156 #define $ac_func innocuous_$ac_func
27157
27158 /* System header to define __stub macros and hopefully few prototypes,
27159     which can conflict with char $ac_func (); below.
27160     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27161     <limits.h> exists even on freestanding compilers.  */
27162
27163 #ifdef __STDC__
27164 # include <limits.h>
27165 #else
27166 # include <assert.h>
27167 #endif
27168
27169 #undef $ac_func
27170
27171 /* Override any GCC internal prototype to avoid an error.
27172    Use char because int might match the return type of a GCC
27173    builtin and then its argument prototype would still apply.  */
27174 #ifdef __cplusplus
27175 extern "C"
27176 #endif
27177 char $ac_func ();
27178 /* The GNU C library defines this for functions which it implements
27179     to always fail with ENOSYS.  Some functions are actually named
27180     something starting with __ and the normal name is an alias.  */
27181 #if defined __stub_$ac_func || defined __stub___$ac_func
27182 choke me
27183 #endif
27184
27185 int
27186 main ()
27187 {
27188 return $ac_func ();
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 rm -f conftest.$ac_objext conftest$ac_exeext
27194 if { (ac_try="$ac_link"
27195 case "(($ac_try" in
27196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197   *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200   (eval "$ac_link") 2>conftest.er1
27201   ac_status=$?
27202   grep -v '^ *+' conftest.er1 >conftest.err
27203   rm -f conftest.er1
27204   cat conftest.err >&5
27205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206   (exit $ac_status); } && {
27207          test -z "$ac_c_werror_flag" ||
27208          test ! -s conftest.err
27209        } && test -s conftest$ac_exeext &&
27210        $as_test_x conftest$ac_exeext; then
27211   eval "$as_ac_var=yes"
27212 else
27213   echo "$as_me: failed program was:" >&5
27214 sed 's/^/| /' conftest.$ac_ext >&5
27215
27216         eval "$as_ac_var=no"
27217 fi
27218
27219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27220       conftest$ac_exeext conftest.$ac_ext
27221 fi
27222 ac_res=`eval echo '${'$as_ac_var'}'`
27223                { echo "$as_me:$LINENO: result: $ac_res" >&5
27224 echo "${ECHO_T}$ac_res" >&6; }
27225 if test `eval echo '${'$as_ac_var'}'` = yes; then
27226   cat >>confdefs.h <<_ACEOF
27227 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27228 _ACEOF
27229
27230 fi
27231 done
27232
27233
27234 { echo "$as_me:$LINENO: checking for va_copy" >&5
27235 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27236 if test "${ba_cv_va_copy+set}" = set; then
27237   echo $ECHO_N "(cached) $ECHO_C" >&6
27238 else
27239   cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245
27246 #include <stdarg.h>
27247 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27248 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27249
27250 int
27251 main ()
27252 {
27253 call_use_va_copy(1,2,3)
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 rm -f conftest.$ac_objext conftest$ac_exeext
27259 if { (ac_try="$ac_link"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27265   (eval "$ac_link") 2>conftest.er1
27266   ac_status=$?
27267   grep -v '^ *+' conftest.er1 >conftest.err
27268   rm -f conftest.er1
27269   cat conftest.err >&5
27270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27271   (exit $ac_status); } && {
27272          test -z "$ac_c_werror_flag" ||
27273          test ! -s conftest.err
27274        } && test -s conftest$ac_exeext &&
27275        $as_test_x conftest$ac_exeext; then
27276   ba_cv_va_copy=yes
27277 else
27278   echo "$as_me: failed program was:" >&5
27279 sed 's/^/| /' conftest.$ac_ext >&5
27280
27281         ba_cv_va_copy=no
27282 fi
27283
27284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27285       conftest$ac_exeext conftest.$ac_ext
27286 fi
27287 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27288 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27289 test $ba_cv_va_copy = yes &&
27290 cat >>confdefs.h <<\_ACEOF
27291 #define HAVE_VA_COPY 1
27292 _ACEOF
27293
27294
27295
27296
27297
27298
27299
27300 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27301 do
27302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27306   echo $ECHO_N "(cached) $ECHO_C" >&6
27307 else
27308   cat >conftest.$ac_ext <<_ACEOF
27309 /* confdefs.h.  */
27310 _ACEOF
27311 cat confdefs.h >>conftest.$ac_ext
27312 cat >>conftest.$ac_ext <<_ACEOF
27313 /* end confdefs.h.  */
27314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27316 #define $ac_func innocuous_$ac_func
27317
27318 /* System header to define __stub macros and hopefully few prototypes,
27319     which can conflict with char $ac_func (); below.
27320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27321     <limits.h> exists even on freestanding compilers.  */
27322
27323 #ifdef __STDC__
27324 # include <limits.h>
27325 #else
27326 # include <assert.h>
27327 #endif
27328
27329 #undef $ac_func
27330
27331 /* Override any GCC internal prototype to avoid an error.
27332    Use char because int might match the return type of a GCC
27333    builtin and then its argument prototype would still apply.  */
27334 #ifdef __cplusplus
27335 extern "C"
27336 #endif
27337 char $ac_func ();
27338 /* The GNU C library defines this for functions which it implements
27339     to always fail with ENOSYS.  Some functions are actually named
27340     something starting with __ and the normal name is an alias.  */
27341 #if defined __stub_$ac_func || defined __stub___$ac_func
27342 choke me
27343 #endif
27344
27345 int
27346 main ()
27347 {
27348 return $ac_func ();
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 rm -f conftest.$ac_objext conftest$ac_exeext
27354 if { (ac_try="$ac_link"
27355 case "(($ac_try" in
27356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27357   *) ac_try_echo=$ac_try;;
27358 esac
27359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27360   (eval "$ac_link") 2>conftest.er1
27361   ac_status=$?
27362   grep -v '^ *+' conftest.er1 >conftest.err
27363   rm -f conftest.er1
27364   cat conftest.err >&5
27365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366   (exit $ac_status); } && {
27367          test -z "$ac_c_werror_flag" ||
27368          test ! -s conftest.err
27369        } && test -s conftest$ac_exeext &&
27370        $as_test_x conftest$ac_exeext; then
27371   eval "$as_ac_var=yes"
27372 else
27373   echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.$ac_ext >&5
27375
27376         eval "$as_ac_var=no"
27377 fi
27378
27379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27380       conftest$ac_exeext conftest.$ac_ext
27381 fi
27382 ac_res=`eval echo '${'$as_ac_var'}'`
27383                { echo "$as_me:$LINENO: result: $ac_res" >&5
27384 echo "${ECHO_T}$ac_res" >&6; }
27385 if test `eval echo '${'$as_ac_var'}'` = yes; then
27386   cat >>confdefs.h <<_ACEOF
27387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27388 _ACEOF
27389
27390 fi
27391 done
27392
27393
27394 # If resolver functions are not in libc check for -lnsl or -lresolv.
27395 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27396 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27397 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27398   echo $ECHO_N "(cached) $ECHO_C" >&6
27399 else
27400   cat >conftest.$ac_ext <<_ACEOF
27401 /* confdefs.h.  */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h.  */
27406 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27408 #define gethostbyname_r innocuous_gethostbyname_r
27409
27410 /* System header to define __stub macros and hopefully few prototypes,
27411     which can conflict with char gethostbyname_r (); below.
27412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27413     <limits.h> exists even on freestanding compilers.  */
27414
27415 #ifdef __STDC__
27416 # include <limits.h>
27417 #else
27418 # include <assert.h>
27419 #endif
27420
27421 #undef gethostbyname_r
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 /* The GNU C library defines this for functions which it implements
27431     to always fail with ENOSYS.  Some functions are actually named
27432     something starting with __ and the normal name is an alias.  */
27433 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27434 choke me
27435 #endif
27436
27437 int
27438 main ()
27439 {
27440 return gethostbyname_r ();
27441   ;
27442   return 0;
27443 }
27444 _ACEOF
27445 rm -f conftest.$ac_objext conftest$ac_exeext
27446 if { (ac_try="$ac_link"
27447 case "(($ac_try" in
27448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27449   *) ac_try_echo=$ac_try;;
27450 esac
27451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27452   (eval "$ac_link") 2>conftest.er1
27453   ac_status=$?
27454   grep -v '^ *+' conftest.er1 >conftest.err
27455   rm -f conftest.er1
27456   cat conftest.err >&5
27457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27458   (exit $ac_status); } && {
27459          test -z "$ac_c_werror_flag" ||
27460          test ! -s conftest.err
27461        } && test -s conftest$ac_exeext &&
27462        $as_test_x conftest$ac_exeext; then
27463   ac_cv_func_gethostbyname_r=yes
27464 else
27465   echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27467
27468         ac_cv_func_gethostbyname_r=no
27469 fi
27470
27471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27472       conftest$ac_exeext conftest.$ac_ext
27473 fi
27474 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27475 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27476 if test $ac_cv_func_gethostbyname_r = yes; then
27477   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27478 echo "${ECHO_T}using libc's resolver" >&6; }
27479 else
27480
27481 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27482 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27483 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27484   echo $ECHO_N "(cached) $ECHO_C" >&6
27485 else
27486   ac_check_lib_save_LIBS=$LIBS
27487 LIBS="-lnsl  $LIBS"
27488 cat >conftest.$ac_ext <<_ACEOF
27489 /* confdefs.h.  */
27490 _ACEOF
27491 cat confdefs.h >>conftest.$ac_ext
27492 cat >>conftest.$ac_ext <<_ACEOF
27493 /* end confdefs.h.  */
27494
27495 /* Override any GCC internal prototype to avoid an error.
27496    Use char because int might match the return type of a GCC
27497    builtin and then its argument prototype would still apply.  */
27498 #ifdef __cplusplus
27499 extern "C"
27500 #endif
27501 char gethostbyname_r ();
27502 int
27503 main ()
27504 {
27505 return gethostbyname_r ();
27506   ;
27507   return 0;
27508 }
27509 _ACEOF
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517   (eval "$ac_link") 2>conftest.er1
27518   ac_status=$?
27519   grep -v '^ *+' conftest.er1 >conftest.err
27520   rm -f conftest.er1
27521   cat conftest.err >&5
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); } && {
27524          test -z "$ac_c_werror_flag" ||
27525          test ! -s conftest.err
27526        } && test -s conftest$ac_exeext &&
27527        $as_test_x conftest$ac_exeext; then
27528   ac_cv_lib_nsl_gethostbyname_r=yes
27529 else
27530   echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533         ac_cv_lib_nsl_gethostbyname_r=no
27534 fi
27535
27536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27537       conftest$ac_exeext conftest.$ac_ext
27538 LIBS=$ac_check_lib_save_LIBS
27539 fi
27540 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27541 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27542 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27543   cat >>confdefs.h <<_ACEOF
27544 #define HAVE_LIBNSL 1
27545 _ACEOF
27546
27547   LIBS="-lnsl $LIBS"
27548
27549 fi
27550
27551
27552 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27553 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27554 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27555   echo $ECHO_N "(cached) $ECHO_C" >&6
27556 else
27557   ac_check_lib_save_LIBS=$LIBS
27558 LIBS="-lresolv  $LIBS"
27559 cat >conftest.$ac_ext <<_ACEOF
27560 /* confdefs.h.  */
27561 _ACEOF
27562 cat confdefs.h >>conftest.$ac_ext
27563 cat >>conftest.$ac_ext <<_ACEOF
27564 /* end confdefs.h.  */
27565
27566 /* Override any GCC internal prototype to avoid an error.
27567    Use char because int might match the return type of a GCC
27568    builtin and then its argument prototype would still apply.  */
27569 #ifdef __cplusplus
27570 extern "C"
27571 #endif
27572 char gethostbyname_r ();
27573 int
27574 main ()
27575 {
27576 return gethostbyname_r ();
27577   ;
27578   return 0;
27579 }
27580 _ACEOF
27581 rm -f conftest.$ac_objext conftest$ac_exeext
27582 if { (ac_try="$ac_link"
27583 case "(($ac_try" in
27584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585   *) ac_try_echo=$ac_try;;
27586 esac
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588   (eval "$ac_link") 2>conftest.er1
27589   ac_status=$?
27590   grep -v '^ *+' conftest.er1 >conftest.err
27591   rm -f conftest.er1
27592   cat conftest.err >&5
27593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27594   (exit $ac_status); } && {
27595          test -z "$ac_c_werror_flag" ||
27596          test ! -s conftest.err
27597        } && test -s conftest$ac_exeext &&
27598        $as_test_x conftest$ac_exeext; then
27599   ac_cv_lib_resolv_gethostbyname_r=yes
27600 else
27601   echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27603
27604         ac_cv_lib_resolv_gethostbyname_r=no
27605 fi
27606
27607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27608       conftest$ac_exeext conftest.$ac_ext
27609 LIBS=$ac_check_lib_save_LIBS
27610 fi
27611 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27612 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27613 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27614   cat >>confdefs.h <<_ACEOF
27615 #define HAVE_LIBRESOLV 1
27616 _ACEOF
27617
27618   LIBS="-lresolv $LIBS"
27619
27620 fi
27621
27622 fi
27623
27624
27625
27626
27627
27628 for ac_func in inet_pton
27629 do
27630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27634   echo $ECHO_N "(cached) $ECHO_C" >&6
27635 else
27636   cat >conftest.$ac_ext <<_ACEOF
27637 /* confdefs.h.  */
27638 _ACEOF
27639 cat confdefs.h >>conftest.$ac_ext
27640 cat >>conftest.$ac_ext <<_ACEOF
27641 /* end confdefs.h.  */
27642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27643    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27644 #define $ac_func innocuous_$ac_func
27645
27646 /* System header to define __stub macros and hopefully few prototypes,
27647     which can conflict with char $ac_func (); below.
27648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27649     <limits.h> exists even on freestanding compilers.  */
27650
27651 #ifdef __STDC__
27652 # include <limits.h>
27653 #else
27654 # include <assert.h>
27655 #endif
27656
27657 #undef $ac_func
27658
27659 /* Override any GCC internal prototype to avoid an error.
27660    Use char because int might match the return type of a GCC
27661    builtin and then its argument prototype would still apply.  */
27662 #ifdef __cplusplus
27663 extern "C"
27664 #endif
27665 char $ac_func ();
27666 /* The GNU C library defines this for functions which it implements
27667     to always fail with ENOSYS.  Some functions are actually named
27668     something starting with __ and the normal name is an alias.  */
27669 #if defined __stub_$ac_func || defined __stub___$ac_func
27670 choke me
27671 #endif
27672
27673 int
27674 main ()
27675 {
27676 return $ac_func ();
27677   ;
27678   return 0;
27679 }
27680 _ACEOF
27681 rm -f conftest.$ac_objext conftest$ac_exeext
27682 if { (ac_try="$ac_link"
27683 case "(($ac_try" in
27684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685   *) ac_try_echo=$ac_try;;
27686 esac
27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688   (eval "$ac_link") 2>conftest.er1
27689   ac_status=$?
27690   grep -v '^ *+' conftest.er1 >conftest.err
27691   rm -f conftest.er1
27692   cat conftest.err >&5
27693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694   (exit $ac_status); } && {
27695          test -z "$ac_c_werror_flag" ||
27696          test ! -s conftest.err
27697        } && test -s conftest$ac_exeext &&
27698        $as_test_x conftest$ac_exeext; then
27699   eval "$as_ac_var=yes"
27700 else
27701   echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27703
27704         eval "$as_ac_var=no"
27705 fi
27706
27707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27708       conftest$ac_exeext conftest.$ac_ext
27709 fi
27710 ac_res=`eval echo '${'$as_ac_var'}'`
27711                { echo "$as_me:$LINENO: result: $ac_res" >&5
27712 echo "${ECHO_T}$ac_res" >&6; }
27713 if test `eval echo '${'$as_ac_var'}'` = yes; then
27714   cat >>confdefs.h <<_ACEOF
27715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27716 _ACEOF
27717  cat >>confdefs.h <<\_ACEOF
27718 #define HAVE_INET_PTON 1
27719 _ACEOF
27720
27721 fi
27722 done
27723
27724
27725 for ac_func in inet_ntop
27726 do
27727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27731   echo $ECHO_N "(cached) $ECHO_C" >&6
27732 else
27733   cat >conftest.$ac_ext <<_ACEOF
27734 /* confdefs.h.  */
27735 _ACEOF
27736 cat confdefs.h >>conftest.$ac_ext
27737 cat >>conftest.$ac_ext <<_ACEOF
27738 /* end confdefs.h.  */
27739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27741 #define $ac_func innocuous_$ac_func
27742
27743 /* System header to define __stub macros and hopefully few prototypes,
27744     which can conflict with char $ac_func (); below.
27745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27746     <limits.h> exists even on freestanding compilers.  */
27747
27748 #ifdef __STDC__
27749 # include <limits.h>
27750 #else
27751 # include <assert.h>
27752 #endif
27753
27754 #undef $ac_func
27755
27756 /* Override any GCC internal prototype to avoid an error.
27757    Use char because int might match the return type of a GCC
27758    builtin and then its argument prototype would still apply.  */
27759 #ifdef __cplusplus
27760 extern "C"
27761 #endif
27762 char $ac_func ();
27763 /* The GNU C library defines this for functions which it implements
27764     to always fail with ENOSYS.  Some functions are actually named
27765     something starting with __ and the normal name is an alias.  */
27766 #if defined __stub_$ac_func || defined __stub___$ac_func
27767 choke me
27768 #endif
27769
27770 int
27771 main ()
27772 {
27773 return $ac_func ();
27774   ;
27775   return 0;
27776 }
27777 _ACEOF
27778 rm -f conftest.$ac_objext conftest$ac_exeext
27779 if { (ac_try="$ac_link"
27780 case "(($ac_try" in
27781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27782   *) ac_try_echo=$ac_try;;
27783 esac
27784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27785   (eval "$ac_link") 2>conftest.er1
27786   ac_status=$?
27787   grep -v '^ *+' conftest.er1 >conftest.err
27788   rm -f conftest.er1
27789   cat conftest.err >&5
27790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); } && {
27792          test -z "$ac_c_werror_flag" ||
27793          test ! -s conftest.err
27794        } && test -s conftest$ac_exeext &&
27795        $as_test_x conftest$ac_exeext; then
27796   eval "$as_ac_var=yes"
27797 else
27798   echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27800
27801         eval "$as_ac_var=no"
27802 fi
27803
27804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27805       conftest$ac_exeext conftest.$ac_ext
27806 fi
27807 ac_res=`eval echo '${'$as_ac_var'}'`
27808                { echo "$as_me:$LINENO: result: $ac_res" >&5
27809 echo "${ECHO_T}$ac_res" >&6; }
27810 if test `eval echo '${'$as_ac_var'}'` = yes; then
27811   cat >>confdefs.h <<_ACEOF
27812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27813 _ACEOF
27814  cat >>confdefs.h <<\_ACEOF
27815 #define HAVE_INET_NTOP 1
27816 _ACEOF
27817
27818 fi
27819 done
27820
27821
27822 for ac_func in gethostbyname2
27823 do
27824 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27825 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27826 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27827 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27828   echo $ECHO_N "(cached) $ECHO_C" >&6
27829 else
27830   cat >conftest.$ac_ext <<_ACEOF
27831 /* confdefs.h.  */
27832 _ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h.  */
27836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27837    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27838 #define $ac_func innocuous_$ac_func
27839
27840 /* System header to define __stub macros and hopefully few prototypes,
27841     which can conflict with char $ac_func (); below.
27842     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27843     <limits.h> exists even on freestanding compilers.  */
27844
27845 #ifdef __STDC__
27846 # include <limits.h>
27847 #else
27848 # include <assert.h>
27849 #endif
27850
27851 #undef $ac_func
27852
27853 /* Override any GCC internal prototype to avoid an error.
27854    Use char because int might match the return type of a GCC
27855    builtin and then its argument prototype would still apply.  */
27856 #ifdef __cplusplus
27857 extern "C"
27858 #endif
27859 char $ac_func ();
27860 /* The GNU C library defines this for functions which it implements
27861     to always fail with ENOSYS.  Some functions are actually named
27862     something starting with __ and the normal name is an alias.  */
27863 #if defined __stub_$ac_func || defined __stub___$ac_func
27864 choke me
27865 #endif
27866
27867 int
27868 main ()
27869 {
27870 return $ac_func ();
27871   ;
27872   return 0;
27873 }
27874 _ACEOF
27875 rm -f conftest.$ac_objext conftest$ac_exeext
27876 if { (ac_try="$ac_link"
27877 case "(($ac_try" in
27878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879   *) ac_try_echo=$ac_try;;
27880 esac
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882   (eval "$ac_link") 2>conftest.er1
27883   ac_status=$?
27884   grep -v '^ *+' conftest.er1 >conftest.err
27885   rm -f conftest.er1
27886   cat conftest.err >&5
27887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888   (exit $ac_status); } && {
27889          test -z "$ac_c_werror_flag" ||
27890          test ! -s conftest.err
27891        } && test -s conftest$ac_exeext &&
27892        $as_test_x conftest$ac_exeext; then
27893   eval "$as_ac_var=yes"
27894 else
27895   echo "$as_me: failed program was:" >&5
27896 sed 's/^/| /' conftest.$ac_ext >&5
27897
27898         eval "$as_ac_var=no"
27899 fi
27900
27901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27902       conftest$ac_exeext conftest.$ac_ext
27903 fi
27904 ac_res=`eval echo '${'$as_ac_var'}'`
27905                { echo "$as_me:$LINENO: result: $ac_res" >&5
27906 echo "${ECHO_T}$ac_res" >&6; }
27907 if test `eval echo '${'$as_ac_var'}'` = yes; then
27908   cat >>confdefs.h <<_ACEOF
27909 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27910 _ACEOF
27911  cat >>confdefs.h <<\_ACEOF
27912 #define HAVE_GETHOSTBYNAME2 1
27913 _ACEOF
27914
27915 fi
27916 done
27917
27918
27919 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27920 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27921 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27922   echo $ECHO_N "(cached) $ECHO_C" >&6
27923 else
27924   cat >conftest.$ac_ext <<_ACEOF
27925 /* confdefs.h.  */
27926 _ACEOF
27927 cat confdefs.h >>conftest.$ac_ext
27928 cat >>conftest.$ac_ext <<_ACEOF
27929 /* end confdefs.h.  */
27930 #include <sys/socket.h>
27931 int
27932 main ()
27933 {
27934 struct sockaddr s; s.sa_len;
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 rm -f conftest.$ac_objext
27940 if { (ac_try="$ac_compile"
27941 case "(($ac_try" in
27942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27943   *) ac_try_echo=$ac_try;;
27944 esac
27945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27946   (eval "$ac_compile") 2>conftest.er1
27947   ac_status=$?
27948   grep -v '^ *+' conftest.er1 >conftest.err
27949   rm -f conftest.er1
27950   cat conftest.err >&5
27951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27952   (exit $ac_status); } && {
27953          test -z "$ac_c_werror_flag" ||
27954          test ! -s conftest.err
27955        } && test -s conftest.$ac_objext; then
27956   ac_cv_struct_sockaddr_sa_len=yes
27957 else
27958   echo "$as_me: failed program was:" >&5
27959 sed 's/^/| /' conftest.$ac_ext >&5
27960
27961         ac_cv_struct_sockaddr_sa_len=no
27962 fi
27963
27964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27965 fi
27966 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27967 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27968
27969  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27970
27971 cat >>confdefs.h <<\_ACEOF
27972 #define HAVE_SA_LEN 1
27973 _ACEOF
27974
27975  fi
27976
27977
27978
27979
27980
27981 for ac_func in strftime
27982 do
27983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27987   echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989   cat >conftest.$ac_ext <<_ACEOF
27990 /* confdefs.h.  */
27991 _ACEOF
27992 cat confdefs.h >>conftest.$ac_ext
27993 cat >>conftest.$ac_ext <<_ACEOF
27994 /* end confdefs.h.  */
27995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27997 #define $ac_func innocuous_$ac_func
27998
27999 /* System header to define __stub macros and hopefully few prototypes,
28000     which can conflict with char $ac_func (); below.
28001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28002     <limits.h> exists even on freestanding compilers.  */
28003
28004 #ifdef __STDC__
28005 # include <limits.h>
28006 #else
28007 # include <assert.h>
28008 #endif
28009
28010 #undef $ac_func
28011
28012 /* Override any GCC internal prototype to avoid an error.
28013    Use char because int might match the return type of a GCC
28014    builtin and then its argument prototype would still apply.  */
28015 #ifdef __cplusplus
28016 extern "C"
28017 #endif
28018 char $ac_func ();
28019 /* The GNU C library defines this for functions which it implements
28020     to always fail with ENOSYS.  Some functions are actually named
28021     something starting with __ and the normal name is an alias.  */
28022 #if defined __stub_$ac_func || defined __stub___$ac_func
28023 choke me
28024 #endif
28025
28026 int
28027 main ()
28028 {
28029 return $ac_func ();
28030   ;
28031   return 0;
28032 }
28033 _ACEOF
28034 rm -f conftest.$ac_objext conftest$ac_exeext
28035 if { (ac_try="$ac_link"
28036 case "(($ac_try" in
28037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28038   *) ac_try_echo=$ac_try;;
28039 esac
28040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28041   (eval "$ac_link") 2>conftest.er1
28042   ac_status=$?
28043   grep -v '^ *+' conftest.er1 >conftest.err
28044   rm -f conftest.er1
28045   cat conftest.err >&5
28046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047   (exit $ac_status); } && {
28048          test -z "$ac_c_werror_flag" ||
28049          test ! -s conftest.err
28050        } && test -s conftest$ac_exeext &&
28051        $as_test_x conftest$ac_exeext; then
28052   eval "$as_ac_var=yes"
28053 else
28054   echo "$as_me: failed program was:" >&5
28055 sed 's/^/| /' conftest.$ac_ext >&5
28056
28057         eval "$as_ac_var=no"
28058 fi
28059
28060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28061       conftest$ac_exeext conftest.$ac_ext
28062 fi
28063 ac_res=`eval echo '${'$as_ac_var'}'`
28064                { echo "$as_me:$LINENO: result: $ac_res" >&5
28065 echo "${ECHO_T}$ac_res" >&6; }
28066 if test `eval echo '${'$as_ac_var'}'` = yes; then
28067   cat >>confdefs.h <<_ACEOF
28068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28069 _ACEOF
28070
28071 else
28072   # strftime is in -lintl on SCO UNIX.
28073 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28074 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28075 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28076   echo $ECHO_N "(cached) $ECHO_C" >&6
28077 else
28078   ac_check_lib_save_LIBS=$LIBS
28079 LIBS="-lintl  $LIBS"
28080 cat >conftest.$ac_ext <<_ACEOF
28081 /* confdefs.h.  */
28082 _ACEOF
28083 cat confdefs.h >>conftest.$ac_ext
28084 cat >>conftest.$ac_ext <<_ACEOF
28085 /* end confdefs.h.  */
28086
28087 /* Override any GCC internal prototype to avoid an error.
28088    Use char because int might match the return type of a GCC
28089    builtin and then its argument prototype would still apply.  */
28090 #ifdef __cplusplus
28091 extern "C"
28092 #endif
28093 char strftime ();
28094 int
28095 main ()
28096 {
28097 return strftime ();
28098   ;
28099   return 0;
28100 }
28101 _ACEOF
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106   *) ac_try_echo=$ac_try;;
28107 esac
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109   (eval "$ac_link") 2>conftest.er1
28110   ac_status=$?
28111   grep -v '^ *+' conftest.er1 >conftest.err
28112   rm -f conftest.er1
28113   cat conftest.err >&5
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } && {
28116          test -z "$ac_c_werror_flag" ||
28117          test ! -s conftest.err
28118        } && test -s conftest$ac_exeext &&
28119        $as_test_x conftest$ac_exeext; then
28120   ac_cv_lib_intl_strftime=yes
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125         ac_cv_lib_intl_strftime=no
28126 fi
28127
28128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28129       conftest$ac_exeext conftest.$ac_ext
28130 LIBS=$ac_check_lib_save_LIBS
28131 fi
28132 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28133 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28134 if test $ac_cv_lib_intl_strftime = yes; then
28135   cat >>confdefs.h <<\_ACEOF
28136 #define HAVE_STRFTIME 1
28137 _ACEOF
28138
28139 LIBS="-lintl $LIBS"
28140 fi
28141
28142 fi
28143 done
28144
28145
28146 for ac_func in vprintf
28147 do
28148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28152   echo $ECHO_N "(cached) $ECHO_C" >&6
28153 else
28154   cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h.  */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h.  */
28160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28162 #define $ac_func innocuous_$ac_func
28163
28164 /* System header to define __stub macros and hopefully few prototypes,
28165     which can conflict with char $ac_func (); below.
28166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28167     <limits.h> exists even on freestanding compilers.  */
28168
28169 #ifdef __STDC__
28170 # include <limits.h>
28171 #else
28172 # include <assert.h>
28173 #endif
28174
28175 #undef $ac_func
28176
28177 /* Override any GCC internal prototype to avoid an error.
28178    Use char because int might match the return type of a GCC
28179    builtin and then its argument prototype would still apply.  */
28180 #ifdef __cplusplus
28181 extern "C"
28182 #endif
28183 char $ac_func ();
28184 /* The GNU C library defines this for functions which it implements
28185     to always fail with ENOSYS.  Some functions are actually named
28186     something starting with __ and the normal name is an alias.  */
28187 #if defined __stub_$ac_func || defined __stub___$ac_func
28188 choke me
28189 #endif
28190
28191 int
28192 main ()
28193 {
28194 return $ac_func ();
28195   ;
28196   return 0;
28197 }
28198 _ACEOF
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203   *) ac_try_echo=$ac_try;;
28204 esac
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206   (eval "$ac_link") 2>conftest.er1
28207   ac_status=$?
28208   grep -v '^ *+' conftest.er1 >conftest.err
28209   rm -f conftest.er1
28210   cat conftest.err >&5
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); } && {
28213          test -z "$ac_c_werror_flag" ||
28214          test ! -s conftest.err
28215        } && test -s conftest$ac_exeext &&
28216        $as_test_x conftest$ac_exeext; then
28217   eval "$as_ac_var=yes"
28218 else
28219   echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28221
28222         eval "$as_ac_var=no"
28223 fi
28224
28225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28226       conftest$ac_exeext conftest.$ac_ext
28227 fi
28228 ac_res=`eval echo '${'$as_ac_var'}'`
28229                { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28231 if test `eval echo '${'$as_ac_var'}'` = yes; then
28232   cat >>confdefs.h <<_ACEOF
28233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28234 _ACEOF
28235
28236 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28237 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28238 if test "${ac_cv_func__doprnt+set}" = set; then
28239   echo $ECHO_N "(cached) $ECHO_C" >&6
28240 else
28241   cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h.  */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h.  */
28247 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28249 #define _doprnt innocuous__doprnt
28250
28251 /* System header to define __stub macros and hopefully few prototypes,
28252     which can conflict with char _doprnt (); below.
28253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28254     <limits.h> exists even on freestanding compilers.  */
28255
28256 #ifdef __STDC__
28257 # include <limits.h>
28258 #else
28259 # include <assert.h>
28260 #endif
28261
28262 #undef _doprnt
28263
28264 /* Override any GCC internal prototype to avoid an error.
28265    Use char because int might match the return type of a GCC
28266    builtin and then its argument prototype would still apply.  */
28267 #ifdef __cplusplus
28268 extern "C"
28269 #endif
28270 char _doprnt ();
28271 /* The GNU C library defines this for functions which it implements
28272     to always fail with ENOSYS.  Some functions are actually named
28273     something starting with __ and the normal name is an alias.  */
28274 #if defined __stub__doprnt || defined __stub____doprnt
28275 choke me
28276 #endif
28277
28278 int
28279 main ()
28280 {
28281 return _doprnt ();
28282   ;
28283   return 0;
28284 }
28285 _ACEOF
28286 rm -f conftest.$ac_objext conftest$ac_exeext
28287 if { (ac_try="$ac_link"
28288 case "(($ac_try" in
28289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28290   *) ac_try_echo=$ac_try;;
28291 esac
28292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28293   (eval "$ac_link") 2>conftest.er1
28294   ac_status=$?
28295   grep -v '^ *+' conftest.er1 >conftest.err
28296   rm -f conftest.er1
28297   cat conftest.err >&5
28298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299   (exit $ac_status); } && {
28300          test -z "$ac_c_werror_flag" ||
28301          test ! -s conftest.err
28302        } && test -s conftest$ac_exeext &&
28303        $as_test_x conftest$ac_exeext; then
28304   ac_cv_func__doprnt=yes
28305 else
28306   echo "$as_me: failed program was:" >&5
28307 sed 's/^/| /' conftest.$ac_ext >&5
28308
28309         ac_cv_func__doprnt=no
28310 fi
28311
28312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28313       conftest$ac_exeext conftest.$ac_ext
28314 fi
28315 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28316 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28317 if test $ac_cv_func__doprnt = yes; then
28318
28319 cat >>confdefs.h <<\_ACEOF
28320 #define HAVE_DOPRNT 1
28321 _ACEOF
28322
28323 fi
28324
28325 fi
28326 done
28327
28328
28329 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28330 # for constant arguments.  Useless!
28331 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28332 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28333 if test "${ac_cv_working_alloca_h+set}" = set; then
28334   echo $ECHO_N "(cached) $ECHO_C" >&6
28335 else
28336   cat >conftest.$ac_ext <<_ACEOF
28337 /* confdefs.h.  */
28338 _ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h.  */
28342 #include <alloca.h>
28343 int
28344 main ()
28345 {
28346 char *p = (char *) alloca (2 * sizeof (int));
28347                           if (p) return 0;
28348   ;
28349   return 0;
28350 }
28351 _ACEOF
28352 rm -f conftest.$ac_objext conftest$ac_exeext
28353 if { (ac_try="$ac_link"
28354 case "(($ac_try" in
28355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28356   *) ac_try_echo=$ac_try;;
28357 esac
28358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28359   (eval "$ac_link") 2>conftest.er1
28360   ac_status=$?
28361   grep -v '^ *+' conftest.er1 >conftest.err
28362   rm -f conftest.er1
28363   cat conftest.err >&5
28364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28365   (exit $ac_status); } && {
28366          test -z "$ac_c_werror_flag" ||
28367          test ! -s conftest.err
28368        } && test -s conftest$ac_exeext &&
28369        $as_test_x conftest$ac_exeext; then
28370   ac_cv_working_alloca_h=yes
28371 else
28372   echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375         ac_cv_working_alloca_h=no
28376 fi
28377
28378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28379       conftest$ac_exeext conftest.$ac_ext
28380 fi
28381 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28382 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28383 if test $ac_cv_working_alloca_h = yes; then
28384
28385 cat >>confdefs.h <<\_ACEOF
28386 #define HAVE_ALLOCA_H 1
28387 _ACEOF
28388
28389 fi
28390
28391 { echo "$as_me:$LINENO: checking for alloca" >&5
28392 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28393 if test "${ac_cv_func_alloca_works+set}" = set; then
28394   echo $ECHO_N "(cached) $ECHO_C" >&6
28395 else
28396   cat >conftest.$ac_ext <<_ACEOF
28397 /* confdefs.h.  */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h.  */
28402 #ifdef __GNUC__
28403 # define alloca __builtin_alloca
28404 #else
28405 # ifdef _MSC_VER
28406 #  include <malloc.h>
28407 #  define alloca _alloca
28408 # else
28409 #  ifdef HAVE_ALLOCA_H
28410 #   include <alloca.h>
28411 #  else
28412 #   ifdef _AIX
28413  #pragma alloca
28414 #   else
28415 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28416 char *alloca ();
28417 #    endif
28418 #   endif
28419 #  endif
28420 # endif
28421 #endif
28422
28423 int
28424 main ()
28425 {
28426 char *p = (char *) alloca (1);
28427                                     if (p) return 0;
28428   ;
28429   return 0;
28430 }
28431 _ACEOF
28432 rm -f conftest.$ac_objext conftest$ac_exeext
28433 if { (ac_try="$ac_link"
28434 case "(($ac_try" in
28435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28436   *) ac_try_echo=$ac_try;;
28437 esac
28438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28439   (eval "$ac_link") 2>conftest.er1
28440   ac_status=$?
28441   grep -v '^ *+' conftest.er1 >conftest.err
28442   rm -f conftest.er1
28443   cat conftest.err >&5
28444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445   (exit $ac_status); } && {
28446          test -z "$ac_c_werror_flag" ||
28447          test ! -s conftest.err
28448        } && test -s conftest$ac_exeext &&
28449        $as_test_x conftest$ac_exeext; then
28450   ac_cv_func_alloca_works=yes
28451 else
28452   echo "$as_me: failed program was:" >&5
28453 sed 's/^/| /' conftest.$ac_ext >&5
28454
28455         ac_cv_func_alloca_works=no
28456 fi
28457
28458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28459       conftest$ac_exeext conftest.$ac_ext
28460 fi
28461 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28462 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28463
28464 if test $ac_cv_func_alloca_works = yes; then
28465
28466 cat >>confdefs.h <<\_ACEOF
28467 #define HAVE_ALLOCA 1
28468 _ACEOF
28469
28470 else
28471   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28472 # that cause trouble.  Some versions do not even contain alloca or
28473 # contain a buggy version.  If you still want to use their alloca,
28474 # use ar to extract alloca.o from them instead of compiling alloca.c.
28475
28476 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28477
28478 cat >>confdefs.h <<\_ACEOF
28479 #define C_ALLOCA 1
28480 _ACEOF
28481
28482
28483 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28484 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28485 if test "${ac_cv_os_cray+set}" = set; then
28486   echo $ECHO_N "(cached) $ECHO_C" >&6
28487 else
28488   cat >conftest.$ac_ext <<_ACEOF
28489 /* confdefs.h.  */
28490 _ACEOF
28491 cat confdefs.h >>conftest.$ac_ext
28492 cat >>conftest.$ac_ext <<_ACEOF
28493 /* end confdefs.h.  */
28494 #if defined CRAY && ! defined CRAY2
28495 webecray
28496 #else
28497 wenotbecray
28498 #endif
28499
28500 _ACEOF
28501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28502   $EGREP "webecray" >/dev/null 2>&1; then
28503   ac_cv_os_cray=yes
28504 else
28505   ac_cv_os_cray=no
28506 fi
28507 rm -f conftest*
28508
28509 fi
28510 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28511 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28512 if test $ac_cv_os_cray = yes; then
28513   for ac_func in _getb67 GETB67 getb67; do
28514     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28515 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28516 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28517 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28518   echo $ECHO_N "(cached) $ECHO_C" >&6
28519 else
28520   cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h.  */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h.  */
28526 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28527    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28528 #define $ac_func innocuous_$ac_func
28529
28530 /* System header to define __stub macros and hopefully few prototypes,
28531     which can conflict with char $ac_func (); below.
28532     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533     <limits.h> exists even on freestanding compilers.  */
28534
28535 #ifdef __STDC__
28536 # include <limits.h>
28537 #else
28538 # include <assert.h>
28539 #endif
28540
28541 #undef $ac_func
28542
28543 /* Override any GCC internal prototype to avoid an error.
28544    Use char because int might match the return type of a GCC
28545    builtin and then its argument prototype would still apply.  */
28546 #ifdef __cplusplus
28547 extern "C"
28548 #endif
28549 char $ac_func ();
28550 /* The GNU C library defines this for functions which it implements
28551     to always fail with ENOSYS.  Some functions are actually named
28552     something starting with __ and the normal name is an alias.  */
28553 #if defined __stub_$ac_func || defined __stub___$ac_func
28554 choke me
28555 #endif
28556
28557 int
28558 main ()
28559 {
28560 return $ac_func ();
28561   ;
28562   return 0;
28563 }
28564 _ACEOF
28565 rm -f conftest.$ac_objext conftest$ac_exeext
28566 if { (ac_try="$ac_link"
28567 case "(($ac_try" in
28568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569   *) ac_try_echo=$ac_try;;
28570 esac
28571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28572   (eval "$ac_link") 2>conftest.er1
28573   ac_status=$?
28574   grep -v '^ *+' conftest.er1 >conftest.err
28575   rm -f conftest.er1
28576   cat conftest.err >&5
28577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578   (exit $ac_status); } && {
28579          test -z "$ac_c_werror_flag" ||
28580          test ! -s conftest.err
28581        } && test -s conftest$ac_exeext &&
28582        $as_test_x conftest$ac_exeext; then
28583   eval "$as_ac_var=yes"
28584 else
28585   echo "$as_me: failed program was:" >&5
28586 sed 's/^/| /' conftest.$ac_ext >&5
28587
28588         eval "$as_ac_var=no"
28589 fi
28590
28591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28592       conftest$ac_exeext conftest.$ac_ext
28593 fi
28594 ac_res=`eval echo '${'$as_ac_var'}'`
28595                { echo "$as_me:$LINENO: result: $ac_res" >&5
28596 echo "${ECHO_T}$ac_res" >&6; }
28597 if test `eval echo '${'$as_ac_var'}'` = yes; then
28598
28599 cat >>confdefs.h <<_ACEOF
28600 #define CRAY_STACKSEG_END $ac_func
28601 _ACEOF
28602
28603     break
28604 fi
28605
28606   done
28607 fi
28608
28609 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28610 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28611 if test "${ac_cv_c_stack_direction+set}" = set; then
28612   echo $ECHO_N "(cached) $ECHO_C" >&6
28613 else
28614   if test "$cross_compiling" = yes; then
28615   ac_cv_c_stack_direction=0
28616 else
28617   cat >conftest.$ac_ext <<_ACEOF
28618 /* confdefs.h.  */
28619 _ACEOF
28620 cat confdefs.h >>conftest.$ac_ext
28621 cat >>conftest.$ac_ext <<_ACEOF
28622 /* end confdefs.h.  */
28623 $ac_includes_default
28624 int
28625 find_stack_direction ()
28626 {
28627   static char *addr = 0;
28628   auto char dummy;
28629   if (addr == 0)
28630     {
28631       addr = &dummy;
28632       return find_stack_direction ();
28633     }
28634   else
28635     return (&dummy > addr) ? 1 : -1;
28636 }
28637
28638 int
28639 main ()
28640 {
28641   return find_stack_direction () < 0;
28642 }
28643 _ACEOF
28644 rm -f conftest$ac_exeext
28645 if { (ac_try="$ac_link"
28646 case "(($ac_try" in
28647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648   *) ac_try_echo=$ac_try;;
28649 esac
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651   (eval "$ac_link") 2>&5
28652   ac_status=$?
28653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28655   { (case "(($ac_try" in
28656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28657   *) ac_try_echo=$ac_try;;
28658 esac
28659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28660   (eval "$ac_try") 2>&5
28661   ac_status=$?
28662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663   (exit $ac_status); }; }; then
28664   ac_cv_c_stack_direction=1
28665 else
28666   echo "$as_me: program exited with status $ac_status" >&5
28667 echo "$as_me: failed program was:" >&5
28668 sed 's/^/| /' conftest.$ac_ext >&5
28669
28670 ( exit $ac_status )
28671 ac_cv_c_stack_direction=-1
28672 fi
28673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28674 fi
28675
28676
28677 fi
28678 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28679 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28680
28681 cat >>confdefs.h <<_ACEOF
28682 #define STACK_DIRECTION $ac_cv_c_stack_direction
28683 _ACEOF
28684
28685
28686 fi
28687
28688 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28689 # -lseq on Dynix/PTX, -lgen on Unixware.
28690 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28691 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28692 if test "${ac_cv_search_getmntent+set}" = set; then
28693   echo $ECHO_N "(cached) $ECHO_C" >&6
28694 else
28695   ac_func_search_save_LIBS=$LIBS
28696 cat >conftest.$ac_ext <<_ACEOF
28697 /* confdefs.h.  */
28698 _ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h.  */
28702
28703 /* Override any GCC internal prototype to avoid an error.
28704    Use char because int might match the return type of a GCC
28705    builtin and then its argument prototype would still apply.  */
28706 #ifdef __cplusplus
28707 extern "C"
28708 #endif
28709 char getmntent ();
28710 int
28711 main ()
28712 {
28713 return getmntent ();
28714   ;
28715   return 0;
28716 }
28717 _ACEOF
28718 for ac_lib in '' sun seq gen; do
28719   if test -z "$ac_lib"; then
28720     ac_res="none required"
28721   else
28722     ac_res=-l$ac_lib
28723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28724   fi
28725   rm -f conftest.$ac_objext conftest$ac_exeext
28726 if { (ac_try="$ac_link"
28727 case "(($ac_try" in
28728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729   *) ac_try_echo=$ac_try;;
28730 esac
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732   (eval "$ac_link") 2>conftest.er1
28733   ac_status=$?
28734   grep -v '^ *+' conftest.er1 >conftest.err
28735   rm -f conftest.er1
28736   cat conftest.err >&5
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); } && {
28739          test -z "$ac_c_werror_flag" ||
28740          test ! -s conftest.err
28741        } && test -s conftest$ac_exeext &&
28742        $as_test_x conftest$ac_exeext; then
28743   ac_cv_search_getmntent=$ac_res
28744 else
28745   echo "$as_me: failed program was:" >&5
28746 sed 's/^/| /' conftest.$ac_ext >&5
28747
28748
28749 fi
28750
28751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28752       conftest$ac_exeext
28753   if test "${ac_cv_search_getmntent+set}" = set; then
28754   break
28755 fi
28756 done
28757 if test "${ac_cv_search_getmntent+set}" = set; then
28758   :
28759 else
28760   ac_cv_search_getmntent=no
28761 fi
28762 rm conftest.$ac_ext
28763 LIBS=$ac_func_search_save_LIBS
28764 fi
28765 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28766 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28767 ac_res=$ac_cv_search_getmntent
28768 if test "$ac_res" != no; then
28769   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28770   ac_cv_func_getmntent=yes
28771
28772 cat >>confdefs.h <<\_ACEOF
28773 #define HAVE_GETMNTENT 1
28774 _ACEOF
28775
28776 else
28777   ac_cv_func_getmntent=no
28778 fi
28779
28780
28781 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28782 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28783 if test "${ac_cv_func_closedir_void+set}" = set; then
28784   echo $ECHO_N "(cached) $ECHO_C" >&6
28785 else
28786   if test "$cross_compiling" = yes; then
28787   ac_cv_func_closedir_void=yes
28788 else
28789   cat >conftest.$ac_ext <<_ACEOF
28790 /* confdefs.h.  */
28791 _ACEOF
28792 cat confdefs.h >>conftest.$ac_ext
28793 cat >>conftest.$ac_ext <<_ACEOF
28794 /* end confdefs.h.  */
28795 $ac_includes_default
28796 #include <$ac_header_dirent>
28797 #ifndef __cplusplus
28798 int closedir ();
28799 #endif
28800
28801 int
28802 main ()
28803 {
28804 return closedir (opendir (".")) != 0;
28805   ;
28806   return 0;
28807 }
28808 _ACEOF
28809 rm -f conftest$ac_exeext
28810 if { (ac_try="$ac_link"
28811 case "(($ac_try" in
28812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28813   *) ac_try_echo=$ac_try;;
28814 esac
28815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28816   (eval "$ac_link") 2>&5
28817   ac_status=$?
28818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28820   { (case "(($ac_try" in
28821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28822   *) ac_try_echo=$ac_try;;
28823 esac
28824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28825   (eval "$ac_try") 2>&5
28826   ac_status=$?
28827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828   (exit $ac_status); }; }; then
28829   ac_cv_func_closedir_void=no
28830 else
28831   echo "$as_me: program exited with status $ac_status" >&5
28832 echo "$as_me: failed program was:" >&5
28833 sed 's/^/| /' conftest.$ac_ext >&5
28834
28835 ( exit $ac_status )
28836 ac_cv_func_closedir_void=yes
28837 fi
28838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28839 fi
28840
28841
28842 fi
28843 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28844 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28845 if test $ac_cv_func_closedir_void = yes; then
28846
28847 cat >>confdefs.h <<\_ACEOF
28848 #define CLOSEDIR_VOID 1
28849 _ACEOF
28850
28851 fi
28852
28853 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28854 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28855 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28856   echo $ECHO_N "(cached) $ECHO_C" >&6
28857 else
28858   if test "$cross_compiling" = yes; then
28859   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28860 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28861    { (exit 1); exit 1; }; }
28862 else
28863   cat >conftest.$ac_ext <<_ACEOF
28864 /* confdefs.h.  */
28865 _ACEOF
28866 cat confdefs.h >>conftest.$ac_ext
28867 cat >>conftest.$ac_ext <<_ACEOF
28868 /* end confdefs.h.  */
28869 $ac_includes_default
28870 int
28871 main ()
28872 {
28873 /* If this system has a BSD-style setpgrp which takes arguments,
28874   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28875   exit successfully. */
28876   return setpgrp (1,1) != -1;
28877   ;
28878   return 0;
28879 }
28880 _ACEOF
28881 rm -f 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>&5
28889   ac_status=$?
28890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28892   { (case "(($ac_try" in
28893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28894   *) ac_try_echo=$ac_try;;
28895 esac
28896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28897   (eval "$ac_try") 2>&5
28898   ac_status=$?
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); }; }; then
28901   ac_cv_func_setpgrp_void=no
28902 else
28903   echo "$as_me: program exited with status $ac_status" >&5
28904 echo "$as_me: failed program was:" >&5
28905 sed 's/^/| /' conftest.$ac_ext >&5
28906
28907 ( exit $ac_status )
28908 ac_cv_func_setpgrp_void=yes
28909 fi
28910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28911 fi
28912
28913
28914 fi
28915 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28916 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28917 if test $ac_cv_func_setpgrp_void = yes; then
28918
28919 cat >>confdefs.h <<\_ACEOF
28920 #define SETPGRP_VOID 1
28921 _ACEOF
28922
28923 fi
28924                       # AC_FUNC_FNMATCH    dnl use local version
28925
28926
28927 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28928 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28929 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28930   echo $ECHO_N "(cached) $ECHO_C" >&6
28931 else
28932   ac_check_lib_save_LIBS=$LIBS
28933 LIBS="-lintl  $LIBS"
28934 cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940
28941 /* Override any GCC internal prototype to avoid an error.
28942    Use char because int might match the return type of a GCC
28943    builtin and then its argument prototype would still apply.  */
28944 #ifdef __cplusplus
28945 extern "C"
28946 #endif
28947 char gettext ();
28948 int
28949 main ()
28950 {
28951 return gettext ();
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest.$ac_objext conftest$ac_exeext
28957 if { (ac_try="$ac_link"
28958 case "(($ac_try" in
28959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28960   *) ac_try_echo=$ac_try;;
28961 esac
28962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28963   (eval "$ac_link") 2>conftest.er1
28964   ac_status=$?
28965   grep -v '^ *+' conftest.er1 >conftest.err
28966   rm -f conftest.er1
28967   cat conftest.err >&5
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); } && {
28970          test -z "$ac_c_werror_flag" ||
28971          test ! -s conftest.err
28972        } && test -s conftest$ac_exeext &&
28973        $as_test_x conftest$ac_exeext; then
28974   ac_cv_lib_intl_gettext=yes
28975 else
28976   echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28978
28979         ac_cv_lib_intl_gettext=no
28980 fi
28981
28982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28983       conftest$ac_exeext conftest.$ac_ext
28984 LIBS=$ac_check_lib_save_LIBS
28985 fi
28986 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28987 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28988 if test $ac_cv_lib_intl_gettext = yes; then
28989   LIBS="$LIBS -lintl"
28990 fi
28991
28992
28993
28994
28995 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28996 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28997 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28998   echo $ECHO_N "(cached) $ECHO_C" >&6
28999 else
29000   ac_check_lib_save_LIBS=$LIBS
29001 LIBS="-lsun  $LIBS"
29002 cat >conftest.$ac_ext <<_ACEOF
29003 /* confdefs.h.  */
29004 _ACEOF
29005 cat confdefs.h >>conftest.$ac_ext
29006 cat >>conftest.$ac_ext <<_ACEOF
29007 /* end confdefs.h.  */
29008
29009 /* Override any GCC internal prototype to avoid an error.
29010    Use char because int might match the return type of a GCC
29011    builtin and then its argument prototype would still apply.  */
29012 #ifdef __cplusplus
29013 extern "C"
29014 #endif
29015 char getpwnam ();
29016 int
29017 main ()
29018 {
29019 return getpwnam ();
29020   ;
29021   return 0;
29022 }
29023 _ACEOF
29024 rm -f conftest.$ac_objext conftest$ac_exeext
29025 if { (ac_try="$ac_link"
29026 case "(($ac_try" in
29027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028   *) ac_try_echo=$ac_try;;
29029 esac
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031   (eval "$ac_link") 2>conftest.er1
29032   ac_status=$?
29033   grep -v '^ *+' conftest.er1 >conftest.err
29034   rm -f conftest.er1
29035   cat conftest.err >&5
29036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037   (exit $ac_status); } && {
29038          test -z "$ac_c_werror_flag" ||
29039          test ! -s conftest.err
29040        } && test -s conftest$ac_exeext &&
29041        $as_test_x conftest$ac_exeext; then
29042   ac_cv_lib_sun_getpwnam=yes
29043 else
29044   echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29046
29047         ac_cv_lib_sun_getpwnam=no
29048 fi
29049
29050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29051       conftest$ac_exeext conftest.$ac_ext
29052 LIBS=$ac_check_lib_save_LIBS
29053 fi
29054 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29055 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29056 if test $ac_cv_lib_sun_getpwnam = yes; then
29057   cat >>confdefs.h <<_ACEOF
29058 #define HAVE_LIBSUN 1
29059 _ACEOF
29060
29061   LIBS="-lsun $LIBS"
29062
29063 fi
29064
29065
29066
29067 for ac_header in zlib.h
29068 do
29069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29071   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29074   echo $ECHO_N "(cached) $ECHO_C" >&6
29075 fi
29076 ac_res=`eval echo '${'$as_ac_Header'}'`
29077                { echo "$as_me:$LINENO: result: $ac_res" >&5
29078 echo "${ECHO_T}$ac_res" >&6; }
29079 else
29080   # Is the header compilable?
29081 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29082 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29083 cat >conftest.$ac_ext <<_ACEOF
29084 /* confdefs.h.  */
29085 _ACEOF
29086 cat confdefs.h >>conftest.$ac_ext
29087 cat >>conftest.$ac_ext <<_ACEOF
29088 /* end confdefs.h.  */
29089 $ac_includes_default
29090 #include <$ac_header>
29091 _ACEOF
29092 rm -f conftest.$ac_objext
29093 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
29109   ac_header_compiler=yes
29110 else
29111   echo "$as_me: failed program was:" >&5
29112 sed 's/^/| /' conftest.$ac_ext >&5
29113
29114         ac_header_compiler=no
29115 fi
29116
29117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29119 echo "${ECHO_T}$ac_header_compiler" >&6; }
29120
29121 # Is the header present?
29122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29124 cat >conftest.$ac_ext <<_ACEOF
29125 /* confdefs.h.  */
29126 _ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h.  */
29130 #include <$ac_header>
29131 _ACEOF
29132 if { (ac_try="$ac_cpp conftest.$ac_ext"
29133 case "(($ac_try" in
29134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29135   *) ac_try_echo=$ac_try;;
29136 esac
29137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29138   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29139   ac_status=$?
29140   grep -v '^ *+' conftest.er1 >conftest.err
29141   rm -f conftest.er1
29142   cat conftest.err >&5
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); } >/dev/null && {
29145          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29146          test ! -s conftest.err
29147        }; then
29148   ac_header_preproc=yes
29149 else
29150   echo "$as_me: failed program was:" >&5
29151 sed 's/^/| /' conftest.$ac_ext >&5
29152
29153   ac_header_preproc=no
29154 fi
29155
29156 rm -f conftest.err conftest.$ac_ext
29157 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29158 echo "${ECHO_T}$ac_header_preproc" >&6; }
29159
29160 # So?  What about this header?
29161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29162   yes:no: )
29163     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29165     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29166 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29167     ac_header_preproc=yes
29168     ;;
29169   no:yes:* )
29170     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29172     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29173 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29174     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29175 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29176     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29177 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29180     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29181 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29182
29183     ;;
29184 esac
29185 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29188   echo $ECHO_N "(cached) $ECHO_C" >&6
29189 else
29190   eval "$as_ac_Header=\$ac_header_preproc"
29191 fi
29192 ac_res=`eval echo '${'$as_ac_Header'}'`
29193                { echo "$as_me:$LINENO: result: $ac_res" >&5
29194 echo "${ECHO_T}$ac_res" >&6; }
29195
29196 fi
29197 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29198   cat >>confdefs.h <<_ACEOF
29199 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29200 _ACEOF
29201
29202 fi
29203
29204 done
29205
29206 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29207 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29208 if test "${ac_cv_lib_z_deflate+set}" = set; then
29209   echo $ECHO_N "(cached) $ECHO_C" >&6
29210 else
29211   ac_check_lib_save_LIBS=$LIBS
29212 LIBS="-lz  $LIBS"
29213 cat >conftest.$ac_ext <<_ACEOF
29214 /* confdefs.h.  */
29215 _ACEOF
29216 cat confdefs.h >>conftest.$ac_ext
29217 cat >>conftest.$ac_ext <<_ACEOF
29218 /* end confdefs.h.  */
29219
29220 /* Override any GCC internal prototype to avoid an error.
29221    Use char because int might match the return type of a GCC
29222    builtin and then its argument prototype would still apply.  */
29223 #ifdef __cplusplus
29224 extern "C"
29225 #endif
29226 char deflate ();
29227 int
29228 main ()
29229 {
29230 return deflate ();
29231   ;
29232   return 0;
29233 }
29234 _ACEOF
29235 rm -f conftest.$ac_objext conftest$ac_exeext
29236 if { (ac_try="$ac_link"
29237 case "(($ac_try" in
29238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29239   *) ac_try_echo=$ac_try;;
29240 esac
29241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29242   (eval "$ac_link") 2>conftest.er1
29243   ac_status=$?
29244   grep -v '^ *+' conftest.er1 >conftest.err
29245   rm -f conftest.er1
29246   cat conftest.err >&5
29247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29248   (exit $ac_status); } && {
29249          test -z "$ac_c_werror_flag" ||
29250          test ! -s conftest.err
29251        } && test -s conftest$ac_exeext &&
29252        $as_test_x conftest$ac_exeext; then
29253   ac_cv_lib_z_deflate=yes
29254 else
29255   echo "$as_me: failed program was:" >&5
29256 sed 's/^/| /' conftest.$ac_ext >&5
29257
29258         ac_cv_lib_z_deflate=no
29259 fi
29260
29261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29262       conftest$ac_exeext conftest.$ac_ext
29263 LIBS=$ac_check_lib_save_LIBS
29264 fi
29265 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29266 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29267 if test $ac_cv_lib_z_deflate = yes; then
29268   FDLIBS="-lz"
29269 fi
29270
29271 have_zlib=no
29272 if test x$FDLIBS = x-lz; then
29273   cat >>confdefs.h <<\_ACEOF
29274 #define HAVE_LIBZ 1
29275 _ACEOF
29276
29277   have_zlib=yes
29278 fi
29279
29280 #
29281 # Check for ACL libraries
29282 #
29283 have_acl=no
29284 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29285   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29286 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29287 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29288   echo $ECHO_N "(cached) $ECHO_C" >&6
29289 fi
29290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29291 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29292 else
29293   # Is the header compilable?
29294 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29295 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29296 cat >conftest.$ac_ext <<_ACEOF
29297 /* confdefs.h.  */
29298 _ACEOF
29299 cat confdefs.h >>conftest.$ac_ext
29300 cat >>conftest.$ac_ext <<_ACEOF
29301 /* end confdefs.h.  */
29302 $ac_includes_default
29303 #include <sys/acl.h>
29304 _ACEOF
29305 rm -f conftest.$ac_objext
29306 if { (ac_try="$ac_compile"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_compile") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } && {
29319          test -z "$ac_c_werror_flag" ||
29320          test ! -s conftest.err
29321        } && test -s conftest.$ac_objext; then
29322   ac_header_compiler=yes
29323 else
29324   echo "$as_me: failed program was:" >&5
29325 sed 's/^/| /' conftest.$ac_ext >&5
29326
29327         ac_header_compiler=no
29328 fi
29329
29330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29332 echo "${ECHO_T}$ac_header_compiler" >&6; }
29333
29334 # Is the header present?
29335 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29336 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29337 cat >conftest.$ac_ext <<_ACEOF
29338 /* confdefs.h.  */
29339 _ACEOF
29340 cat confdefs.h >>conftest.$ac_ext
29341 cat >>conftest.$ac_ext <<_ACEOF
29342 /* end confdefs.h.  */
29343 #include <sys/acl.h>
29344 _ACEOF
29345 if { (ac_try="$ac_cpp conftest.$ac_ext"
29346 case "(($ac_try" in
29347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29348   *) ac_try_echo=$ac_try;;
29349 esac
29350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29352   ac_status=$?
29353   grep -v '^ *+' conftest.er1 >conftest.err
29354   rm -f conftest.er1
29355   cat conftest.err >&5
29356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357   (exit $ac_status); } >/dev/null && {
29358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29359          test ! -s conftest.err
29360        }; then
29361   ac_header_preproc=yes
29362 else
29363   echo "$as_me: failed program was:" >&5
29364 sed 's/^/| /' conftest.$ac_ext >&5
29365
29366   ac_header_preproc=no
29367 fi
29368
29369 rm -f conftest.err conftest.$ac_ext
29370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29371 echo "${ECHO_T}$ac_header_preproc" >&6; }
29372
29373 # So?  What about this header?
29374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29375   yes:no: )
29376     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29377 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29378     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29379 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29380     ac_header_preproc=yes
29381     ;;
29382   no:yes:* )
29383     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29384 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29385     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29386 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29387     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29388 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29389     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29390 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29391     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29392 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29393     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29394 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29395
29396     ;;
29397 esac
29398 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29399 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29400 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29401   echo $ECHO_N "(cached) $ECHO_C" >&6
29402 else
29403   ac_cv_header_sys_acl_h=$ac_header_preproc
29404 fi
29405 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29406 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29407
29408 fi
29409
29410
29411 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29412 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29413 if test "${ac_cv_func_acl_get_file+set}" = set; then
29414   echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416   cat >conftest.$ac_ext <<_ACEOF
29417 /* confdefs.h.  */
29418 _ACEOF
29419 cat confdefs.h >>conftest.$ac_ext
29420 cat >>conftest.$ac_ext <<_ACEOF
29421 /* end confdefs.h.  */
29422 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29424 #define acl_get_file innocuous_acl_get_file
29425
29426 /* System header to define __stub macros and hopefully few prototypes,
29427     which can conflict with char acl_get_file (); below.
29428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29429     <limits.h> exists even on freestanding compilers.  */
29430
29431 #ifdef __STDC__
29432 # include <limits.h>
29433 #else
29434 # include <assert.h>
29435 #endif
29436
29437 #undef acl_get_file
29438
29439 /* Override any GCC internal prototype to avoid an error.
29440    Use char because int might match the return type of a GCC
29441    builtin and then its argument prototype would still apply.  */
29442 #ifdef __cplusplus
29443 extern "C"
29444 #endif
29445 char acl_get_file ();
29446 /* The GNU C library defines this for functions which it implements
29447     to always fail with ENOSYS.  Some functions are actually named
29448     something starting with __ and the normal name is an alias.  */
29449 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29450 choke me
29451 #endif
29452
29453 int
29454 main ()
29455 {
29456 return acl_get_file ();
29457   ;
29458   return 0;
29459 }
29460 _ACEOF
29461 rm -f conftest.$ac_objext conftest$ac_exeext
29462 if { (ac_try="$ac_link"
29463 case "(($ac_try" in
29464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29465   *) ac_try_echo=$ac_try;;
29466 esac
29467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29468   (eval "$ac_link") 2>conftest.er1
29469   ac_status=$?
29470   grep -v '^ *+' conftest.er1 >conftest.err
29471   rm -f conftest.er1
29472   cat conftest.err >&5
29473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); } && {
29475          test -z "$ac_c_werror_flag" ||
29476          test ! -s conftest.err
29477        } && test -s conftest$ac_exeext &&
29478        $as_test_x conftest$ac_exeext; then
29479   ac_cv_func_acl_get_file=yes
29480 else
29481   echo "$as_me: failed program was:" >&5
29482 sed 's/^/| /' conftest.$ac_ext >&5
29483
29484         ac_cv_func_acl_get_file=no
29485 fi
29486
29487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29488       conftest$ac_exeext conftest.$ac_ext
29489 fi
29490 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29491 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29492 if test $ac_cv_func_acl_get_file = yes; then
29493   have_acl=yes
29494 else
29495   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29496 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29497 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29498   echo $ECHO_N "(cached) $ECHO_C" >&6
29499 else
29500   ac_check_lib_save_LIBS=$LIBS
29501 LIBS="-lacl  $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 acl_get_file ();
29516 int
29517 main ()
29518 {
29519 return acl_get_file ();
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_acl_acl_get_file=yes
29543 else
29544   echo "$as_me: failed program was:" >&5
29545 sed 's/^/| /' conftest.$ac_ext >&5
29546
29547         ac_cv_lib_acl_acl_get_file=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_acl_acl_get_file" >&5
29555 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29556 if test $ac_cv_lib_acl_acl_get_file = yes; then
29557   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29558 else
29559   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29560 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29561 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29562   echo $ECHO_N "(cached) $ECHO_C" >&6
29563 else
29564   ac_check_lib_save_LIBS=$LIBS
29565 LIBS="-lsec  $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 acltotext ();
29580 int
29581 main ()
29582 {
29583 return acltotext ();
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_sec_acltotext=yes
29607 else
29608   echo "$as_me: failed program was:" >&5
29609 sed 's/^/| /' conftest.$ac_ext >&5
29610
29611         ac_cv_lib_sec_acltotext=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_sec_acltotext" >&5
29619 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29620 if test $ac_cv_lib_sec_acltotext = yes; then
29621   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29622 fi
29623
29624
29625 fi
29626
29627
29628 fi
29629
29630 if test $have_acl = yes; then
29631    cat >>confdefs.h <<\_ACEOF
29632 #define HAVE_ACL 1
29633 _ACEOF
29634
29635 fi
29636
29637 PTHREAD_LIB=""
29638 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29639 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29640 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29641   echo $ECHO_N "(cached) $ECHO_C" >&6
29642 else
29643   ac_check_lib_save_LIBS=$LIBS
29644 LIBS="-lpthread  $LIBS"
29645 cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651
29652 /* Override any GCC internal prototype to avoid an error.
29653    Use char because int might match the return type of a GCC
29654    builtin and then its argument prototype would still apply.  */
29655 #ifdef __cplusplus
29656 extern "C"
29657 #endif
29658 char pthread_create ();
29659 int
29660 main ()
29661 {
29662 return pthread_create ();
29663   ;
29664   return 0;
29665 }
29666 _ACEOF
29667 rm -f conftest.$ac_objext conftest$ac_exeext
29668 if { (ac_try="$ac_link"
29669 case "(($ac_try" in
29670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29671   *) ac_try_echo=$ac_try;;
29672 esac
29673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29674   (eval "$ac_link") 2>conftest.er1
29675   ac_status=$?
29676   grep -v '^ *+' conftest.er1 >conftest.err
29677   rm -f conftest.er1
29678   cat conftest.err >&5
29679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680   (exit $ac_status); } && {
29681          test -z "$ac_c_werror_flag" ||
29682          test ! -s conftest.err
29683        } && test -s conftest$ac_exeext &&
29684        $as_test_x conftest$ac_exeext; then
29685   ac_cv_lib_pthread_pthread_create=yes
29686 else
29687   echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29689
29690         ac_cv_lib_pthread_pthread_create=no
29691 fi
29692
29693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29694       conftest$ac_exeext conftest.$ac_ext
29695 LIBS=$ac_check_lib_save_LIBS
29696 fi
29697 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29698 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29699 if test $ac_cv_lib_pthread_pthread_create = yes; then
29700   PTHREAD_LIB="-lpthread"
29701 else
29702   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29703 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29704 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29705   echo $ECHO_N "(cached) $ECHO_C" >&6
29706 else
29707   ac_check_lib_save_LIBS=$LIBS
29708 LIBS="-lpthreads  $LIBS"
29709 cat >conftest.$ac_ext <<_ACEOF
29710 /* confdefs.h.  */
29711 _ACEOF
29712 cat confdefs.h >>conftest.$ac_ext
29713 cat >>conftest.$ac_ext <<_ACEOF
29714 /* end confdefs.h.  */
29715
29716 /* Override any GCC internal prototype to avoid an error.
29717    Use char because int might match the return type of a GCC
29718    builtin and then its argument prototype would still apply.  */
29719 #ifdef __cplusplus
29720 extern "C"
29721 #endif
29722 char pthread_create ();
29723 int
29724 main ()
29725 {
29726 return pthread_create ();
29727   ;
29728   return 0;
29729 }
29730 _ACEOF
29731 rm -f conftest.$ac_objext conftest$ac_exeext
29732 if { (ac_try="$ac_link"
29733 case "(($ac_try" in
29734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735   *) ac_try_echo=$ac_try;;
29736 esac
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738   (eval "$ac_link") 2>conftest.er1
29739   ac_status=$?
29740   grep -v '^ *+' conftest.er1 >conftest.err
29741   rm -f conftest.er1
29742   cat conftest.err >&5
29743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744   (exit $ac_status); } && {
29745          test -z "$ac_c_werror_flag" ||
29746          test ! -s conftest.err
29747        } && test -s conftest$ac_exeext &&
29748        $as_test_x conftest$ac_exeext; then
29749   ac_cv_lib_pthreads_pthread_create=yes
29750 else
29751   echo "$as_me: failed program was:" >&5
29752 sed 's/^/| /' conftest.$ac_ext >&5
29753
29754         ac_cv_lib_pthreads_pthread_create=no
29755 fi
29756
29757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29758       conftest$ac_exeext conftest.$ac_ext
29759 LIBS=$ac_check_lib_save_LIBS
29760 fi
29761 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29762 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29763 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29764   PTHREAD_LIB="-lpthreads"
29765 else
29766   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29767 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29768 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29769   echo $ECHO_N "(cached) $ECHO_C" >&6
29770 else
29771   ac_check_lib_save_LIBS=$LIBS
29772 LIBS="-lc_r  $LIBS"
29773 cat >conftest.$ac_ext <<_ACEOF
29774 /* confdefs.h.  */
29775 _ACEOF
29776 cat confdefs.h >>conftest.$ac_ext
29777 cat >>conftest.$ac_ext <<_ACEOF
29778 /* end confdefs.h.  */
29779
29780 /* Override any GCC internal prototype to avoid an error.
29781    Use char because int might match the return type of a GCC
29782    builtin and then its argument prototype would still apply.  */
29783 #ifdef __cplusplus
29784 extern "C"
29785 #endif
29786 char pthread_create ();
29787 int
29788 main ()
29789 {
29790 return pthread_create ();
29791   ;
29792   return 0;
29793 }
29794 _ACEOF
29795 rm -f conftest.$ac_objext conftest$ac_exeext
29796 if { (ac_try="$ac_link"
29797 case "(($ac_try" in
29798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799   *) ac_try_echo=$ac_try;;
29800 esac
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802   (eval "$ac_link") 2>conftest.er1
29803   ac_status=$?
29804   grep -v '^ *+' conftest.er1 >conftest.err
29805   rm -f conftest.er1
29806   cat conftest.err >&5
29807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808   (exit $ac_status); } && {
29809          test -z "$ac_c_werror_flag" ||
29810          test ! -s conftest.err
29811        } && test -s conftest$ac_exeext &&
29812        $as_test_x conftest$ac_exeext; then
29813   ac_cv_lib_c_r_pthread_create=yes
29814 else
29815   echo "$as_me: failed program was:" >&5
29816 sed 's/^/| /' conftest.$ac_ext >&5
29817
29818         ac_cv_lib_c_r_pthread_create=no
29819 fi
29820
29821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29822       conftest$ac_exeext conftest.$ac_ext
29823 LIBS=$ac_check_lib_save_LIBS
29824 fi
29825 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29826 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29827 if test $ac_cv_lib_c_r_pthread_create = yes; then
29828   PTHREAD_LIB="-lc_r"
29829 else
29830   { echo "$as_me:$LINENO: checking for pthread_create" >&5
29831 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29832 if test "${ac_cv_func_pthread_create+set}" = set; then
29833   echo $ECHO_N "(cached) $ECHO_C" >&6
29834 else
29835   cat >conftest.$ac_ext <<_ACEOF
29836 /* confdefs.h.  */
29837 _ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h.  */
29841 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29843 #define pthread_create innocuous_pthread_create
29844
29845 /* System header to define __stub macros and hopefully few prototypes,
29846     which can conflict with char pthread_create (); below.
29847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29848     <limits.h> exists even on freestanding compilers.  */
29849
29850 #ifdef __STDC__
29851 # include <limits.h>
29852 #else
29853 # include <assert.h>
29854 #endif
29855
29856 #undef pthread_create
29857
29858 /* Override any GCC internal prototype to avoid an error.
29859    Use char because int might match the return type of a GCC
29860    builtin and then its argument prototype would still apply.  */
29861 #ifdef __cplusplus
29862 extern "C"
29863 #endif
29864 char pthread_create ();
29865 /* The GNU C library defines this for functions which it implements
29866     to always fail with ENOSYS.  Some functions are actually named
29867     something starting with __ and the normal name is an alias.  */
29868 #if defined __stub_pthread_create || defined __stub___pthread_create
29869 choke me
29870 #endif
29871
29872 int
29873 main ()
29874 {
29875 return pthread_create ();
29876   ;
29877   return 0;
29878 }
29879 _ACEOF
29880 rm -f conftest.$ac_objext conftest$ac_exeext
29881 if { (ac_try="$ac_link"
29882 case "(($ac_try" in
29883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884   *) ac_try_echo=$ac_try;;
29885 esac
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887   (eval "$ac_link") 2>conftest.er1
29888   ac_status=$?
29889   grep -v '^ *+' conftest.er1 >conftest.err
29890   rm -f conftest.er1
29891   cat conftest.err >&5
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); } && {
29894          test -z "$ac_c_werror_flag" ||
29895          test ! -s conftest.err
29896        } && test -s conftest$ac_exeext &&
29897        $as_test_x conftest$ac_exeext; then
29898   ac_cv_func_pthread_create=yes
29899 else
29900   echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903         ac_cv_func_pthread_create=no
29904 fi
29905
29906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29907       conftest$ac_exeext conftest.$ac_ext
29908 fi
29909 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29910 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29911
29912
29913 fi
29914
29915
29916 fi
29917
29918
29919 fi
29920
29921
29922
29923 cat >>confdefs.h <<\_ACEOF
29924 #define FDLIBS 1
29925 _ACEOF
29926
29927
29928
29929 CFLAGS=${CFLAGS--O}
29930
29931 if test x$have_gcc = xyes ; then
29932    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29933    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29934 fi
29935 LDFLAGS=${LDFLAGS--O}
29936 DB_LIBS="${SQL_LFLAGS}"
29937 CPPFLAGS="$CPPFLAGS"
29938 CFLAGS="$CFLAGS"
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949
29950
29951
29952
29953
29954
29955 OBJLIST=
29956
29957
29958 lld="lld"
29959 llu="llu"
29960
29961 WCFLAGS=
29962 WLDFLAGS=
29963
29964 #
29965 # Finally we set appropriate distribution specific
29966 #  variables and defaults
29967 #
29968 # PFILES are platform specific files
29969 PFILES="platforms/Makefile"
29970 PSCMD="ps -e"
29971 WIN32=
29972 MACOSX=
29973 hostname=`uname -n | cut -d '.' -f 1`
29974 if test x${hostname} = x ; then
29975   hostname="localhost"
29976 fi
29977 case "$DISTNAME" in
29978 aix)
29979         DISTVER=`uname -r`
29980         PSCMD="ps -e -o pid,comm"
29981         PFILES="${PFILES} \
29982            platforms/aix/Makefile"
29983         TAPEDRIVE="/dev/rmt0.1"
29984   ;;
29985 alpha)
29986         DISTVER=`uname -r`
29987         PTHREAD_LIB="-lpthread -lexc"
29988         if test "${CC}" = "gcc" ; then
29989            lld="lld"
29990            llu="llu"
29991         else
29992            lld="ld"
29993            llu="lu"
29994         fi
29995         TAPEDRIVE="/dev/nrmt0"
29996   ;;
29997 bsdi)
29998         DISTVER=`uname -a |awk '{print $3}'`
29999         TAPEDRIVE="/dev/nrmt0"
30000         PTHREAD_LIB="-pthread"
30001         CFLAGS="${CFLAGS} -pthread"
30002         PSCMD="ps -ax -o pid,command"
30003         lld="qd"
30004         llu="qu"
30005         PFILES="${PFILES} \
30006             platforms/bsdi/Makefile \
30007             platforms/bsdi/bacula-fd \
30008             platforms/bsdi/bacula-sd \
30009             platforms/bsdi/bacula-dir"
30010         largefile_support="yes"
30011   ;;
30012 cygwin)
30013         DISTVER=`uname -a |awk '{print $3}'`
30014         TAPEDRIVE="/dev/nrst0"
30015         WIN32=win32
30016         WCFLAGS="-mwindows"
30017         WLDFLAGS="-mwindows"
30018   ;;
30019 darwin)
30020         DISTVER=`uname -r`
30021         TAPEDRIVE="/dev/nst0"
30022         PSCMD="ps -e -o pid,command"
30023         MACOSX=macosx
30024         PFILES="${PFILES} \
30025            platforms/darwin/Makefile"
30026   ;;
30027 debian)
30028         DISTVER=`cat /etc/debian_version`
30029         TAPEDRIVE="/dev/nrst0"
30030         PSCMD="ps -e -o pid,command"
30031   ;;
30032 freebsd)
30033         DISTVER=`uname -a |awk '{print $3}'`
30034         VER=`echo $DISTVER | cut -c 1`
30035         if test x$VER = x4 ; then
30036            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30037            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30038         fi
30039         lld="qd"
30040         llu="qu"
30041         TAPEDRIVE="/dev/nrsa0"
30042         PSCMD="ps -ax -o pid,command"
30043         PFILES="${PFILES} \
30044             platforms/freebsd/Makefile \
30045             platforms/freebsd/bacula-fd \
30046             platforms/freebsd/bacula-sd \
30047             platforms/freebsd/bacula-dir"
30048         largefile_support="yes"
30049   ;;
30050 hpux)
30051         PSCMD="UNIX95=1; ps -e -o pid,comm"
30052         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30053         DISTVER=`uname -r`
30054         TAPEDRIVE="/dev/rmt/0hnb"
30055         PTHREAD_LIB="-lpthread"
30056         cat >>confdefs.h <<\_ACEOF
30057 #define _INCLUDE_LONGLONG 1
30058 _ACEOF
30059
30060   ;;
30061 irix)
30062         DISTVER=`uname -r`
30063         TAPEDRIVE="/dev/rmt/0cbn"
30064         PSCMD="ps -e -o pid,comm"
30065         PFILES="${PFILES} \
30066             platforms/irix/Makefile \
30067             platforms/irix/bacula-fd \
30068             platforms/irix/bacula-sd \
30069             platforms/irix/bacula-dir"
30070   ;;
30071 netbsd)
30072         DISTVER=`uname -a |awk '{print $3}'`
30073         lld="qd"
30074         llu="qu"
30075         TAPEDRIVE="/dev/nrst0"
30076         PSCMD="ps -ax -o pid,command"
30077         PTHREAD_LIB="-pthread"
30078         CFLAGS="${CFLAGS} -pthread"
30079   ;;
30080 openbsd)
30081         DISTVER=`uname -a |awk '{print $3}'`
30082         lld="qd"
30083         llu="qu"
30084         TAPEDRIVE="/dev/nrst0"
30085         PSCMD="ps -ax -o pid,command"
30086         PTHREAD_LIB="-pthread"
30087         CFLAGS="${CFLAGS} -pthread"
30088         PFILES="${PFILES} \
30089             platforms/openbsd/Makefile \
30090             platforms/openbsd/bacula-fd \
30091             platforms/openbsd/bacula-sd \
30092             platforms/openbsd/bacula-dir"
30093   ;;
30094 redhat)
30095         if test -f /etc/whitebox-release ; then
30096            f=/etc/whitebox-release
30097         else
30098            f=/etc/redhat-release
30099         fi
30100         if test `cat $f | grep release |\
30101                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30102            DISTVER="Enterprise "`cat $f | grep release |\
30103                     cut -f 6 -d ' '`
30104         else
30105             DISTVER=`cat /etc/redhat-release | grep release |\
30106                      cut -f 5 -d ' '`
30107         fi
30108         TAPEDRIVE="/dev/nst0"
30109         PSCMD="ps -e -o pid,command"
30110         PFILES="${PFILES} \
30111             platforms/redhat/Makefile \
30112             platforms/redhat/bacula-fd \
30113             platforms/redhat/bacula-sd \
30114             platforms/redhat/bacula-dir \
30115             platforms/redhat/bacula.spec \
30116             "
30117   ;;
30118 mandrake)
30119         DISTVER=`cat /etc/mandrake-release | grep release |\
30120            cut -f 5 -d ' '`
30121         TAPEDRIVE="/dev/nst0"
30122         PSCMD="ps -e -o pid,command"
30123         PFILES="${PFILES} \
30124             platforms/mandrake/Makefile \
30125             platforms/mandrake/bacula-fd \
30126             platforms/mandrake/bacula-sd \
30127             platforms/mandrake/bacula-dir \
30128             platforms/mandrake/bacula.spec \
30129             "
30130   ;;
30131 gentoo)
30132         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30133         TAPEDRIVE="/dev/nst0"
30134         PSCMD="ps -e -o pid,command"
30135         PFILES="${PFILES} \
30136             platforms/gentoo/Makefile \
30137          platforms/gentoo/bacula-init \
30138             platforms/gentoo/bacula-fd \
30139             platforms/gentoo/bacula-sd \
30140             platforms/gentoo/bacula-dir"
30141   ;;
30142 slackware)
30143         DISTVER=`cat /etc/slackware-version`
30144         TAPEDRIVE="/dev/nst0"
30145         PSCMD="ps -e -o pid,command"
30146         PFILES="${PFILES} \
30147             platforms/slackware/Makefile \
30148             platforms/slackware/rc.bacula-fd \
30149             platforms/slackware/rc.bacula-sd \
30150             platforms/slackware/rc.bacula-dir\
30151             platforms/slackware/functions.bacula"
30152   ;;
30153 solaris)
30154         DISTVER=`uname -r`
30155         TAPEDRIVE="/dev/rmt/0cbn"
30156         PSCMD="ps -e -o pid,comm"
30157         PFILES="${PFILES} \
30158             platforms/solaris/Makefile \
30159             platforms/solaris/bacula-fd \
30160             platforms/solaris/bacula-sd \
30161             platforms/solaris/bacula-dir"
30162         if test x$DISTVER = x5.6 ; then
30163             cat >>confdefs.h <<\_ACEOF
30164 #define HAVE_OLD_SOCKOPT 1
30165 _ACEOF
30166
30167         fi
30168         LIBS="$LIBS -lresolv"
30169   ;;
30170 suse)
30171         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30172             cut -f 3 -d ' '`
30173         TAPEDRIVE="/dev/nst0"
30174         PSCMD="ps -e -o pid,command"
30175         PFILES="${PFILES} \
30176             platforms/suse/Makefile \
30177             platforms/suse/bacula-fd \
30178             platforms/suse/bacula-sd \
30179             platforms/suse/bacula-dir \
30180             platforms/suse/bacula \
30181             platforms/suse/bacula.spec"
30182   ;;
30183 suse5)
30184         DISTNAME=suse
30185         DISTVER=5.x
30186         TAPEDRIVE="/dev/nst0"
30187         PSCMD="ps -e -o pid,command"
30188         PFILES="${PFILES} \
30189             platforms/suse/Makefile \
30190             platforms/suse/bacula-fd \
30191             platforms/suse/bacula-sd \
30192             platforms/suse/bacula-dir"
30193   ;;
30194 unknown)
30195         DISTVER=unknown
30196         TAPEDRIVE="/dev/nst0"
30197   ;;
30198 *)
30199   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30200   ;;
30201 esac
30202
30203
30204
30205 LIBS="$PTHREAD_LIB $LIBS"
30206
30207 cat >>confdefs.h <<_ACEOF
30208 #define lld "$lld"
30209 _ACEOF
30210
30211 cat >>confdefs.h <<_ACEOF
30212 #define llu "$llu"
30213 _ACEOF
30214
30215
30216
30217
30218
30219
30220
30221
30222 MCOMMON=./autoconf/Make.common
30223
30224
30225 if test "x${subsysdir}" = "x${sbindir}" ; then
30226    echo " "
30227    echo " "
30228    echo "You have set both --sbindir and --with-subsys-dir"
30229    echo "  equal to: ${subsysdir} "
30230    echo "This is not permitted. Please reconfigure."
30231    echo " "
30232    echo "Aborting configuration ..."
30233    echo " "
30234    echo " "
30235    exit 1
30236 fi
30237
30238 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"
30239
30240 ac_config_commands="$ac_config_commands default"
30241
30242 cat >confcache <<\_ACEOF
30243 # This file is a shell script that caches the results of configure
30244 # tests run on this system so they can be shared between configure
30245 # scripts and configure runs, see configure's option --config-cache.
30246 # It is not useful on other systems.  If it contains results you don't
30247 # want to keep, you may remove or edit it.
30248 #
30249 # config.status only pays attention to the cache file if you give it
30250 # the --recheck option to rerun configure.
30251 #
30252 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30253 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30254 # following values.
30255
30256 _ACEOF
30257
30258 # The following way of writing the cache mishandles newlines in values,
30259 # but we know of no workaround that is simple, portable, and efficient.
30260 # So, we kill variables containing newlines.
30261 # Ultrix sh set writes to stderr and can't be redirected directly,
30262 # and sets the high bit in the cache file unless we assign to the vars.
30263 (
30264   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30265     eval ac_val=\$$ac_var
30266     case $ac_val in #(
30267     *${as_nl}*)
30268       case $ac_var in #(
30269       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30270 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30271       esac
30272       case $ac_var in #(
30273       _ | IFS | as_nl) ;; #(
30274       *) $as_unset $ac_var ;;
30275       esac ;;
30276     esac
30277   done
30278
30279   (set) 2>&1 |
30280     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30281     *${as_nl}ac_space=\ *)
30282       # `set' does not quote correctly, so add quotes (double-quote
30283       # substitution turns \\\\ into \\, and sed turns \\ into \).
30284       sed -n \
30285         "s/'/'\\\\''/g;
30286           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30287       ;; #(
30288     *)
30289       # `set' quotes correctly as required by POSIX, so do not add quotes.
30290       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30291       ;;
30292     esac |
30293     sort
30294 ) |
30295   sed '
30296      /^ac_cv_env_/b end
30297      t clear
30298      :clear
30299      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30300      t end
30301      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30302      :end' >>confcache
30303 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30304   if test -w "$cache_file"; then
30305     test "x$cache_file" != "x/dev/null" &&
30306       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30307 echo "$as_me: updating cache $cache_file" >&6;}
30308     cat confcache >$cache_file
30309   else
30310     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30311 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30312   fi
30313 fi
30314 rm -f confcache
30315
30316 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30317 # Let make expand exec_prefix.
30318 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30319
30320 DEFS=-DHAVE_CONFIG_H
30321
30322 ac_libobjs=
30323 ac_ltlibobjs=
30324 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30325   # 1. Remove the extension, and $U if already installed.
30326   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30327   ac_i=`echo "$ac_i" | sed "$ac_script"`
30328   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30329   #    will be set to the directory where LIBOBJS objects are built.
30330   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30331   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30332 done
30333 LIBOBJS=$ac_libobjs
30334
30335 LTLIBOBJS=$ac_ltlibobjs
30336
30337
30338
30339 : ${CONFIG_STATUS=./config.status}
30340 ac_clean_files_save=$ac_clean_files
30341 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30342 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30343 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30344 cat >$CONFIG_STATUS <<_ACEOF
30345 #! $SHELL
30346 # Generated by $as_me.
30347 # Run this file to recreate the current configuration.
30348 # Compiler output produced by configure, useful for debugging
30349 # configure, is in config.log if it exists.
30350
30351 debug=false
30352 ac_cs_recheck=false
30353 ac_cs_silent=false
30354 SHELL=\${CONFIG_SHELL-$SHELL}
30355 _ACEOF
30356
30357 cat >>$CONFIG_STATUS <<\_ACEOF
30358 ## --------------------- ##
30359 ## M4sh Initialization.  ##
30360 ## --------------------- ##
30361
30362 # Be more Bourne compatible
30363 DUALCASE=1; export DUALCASE # for MKS sh
30364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30365   emulate sh
30366   NULLCMD=:
30367   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30368   # is contrary to our usage.  Disable this feature.
30369   alias -g '${1+"$@"}'='"$@"'
30370   setopt NO_GLOB_SUBST
30371 else
30372   case `(set -o) 2>/dev/null` in
30373   *posix*) set -o posix ;;
30374 esac
30375
30376 fi
30377
30378
30379
30380
30381 # PATH needs CR
30382 # Avoid depending upon Character Ranges.
30383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30386 as_cr_digits='0123456789'
30387 as_cr_alnum=$as_cr_Letters$as_cr_digits
30388
30389 # The user is always right.
30390 if test "${PATH_SEPARATOR+set}" != set; then
30391   echo "#! /bin/sh" >conf$$.sh
30392   echo  "exit 0"   >>conf$$.sh
30393   chmod +x conf$$.sh
30394   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30395     PATH_SEPARATOR=';'
30396   else
30397     PATH_SEPARATOR=:
30398   fi
30399   rm -f conf$$.sh
30400 fi
30401
30402 # Support unset when possible.
30403 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30404   as_unset=unset
30405 else
30406   as_unset=false
30407 fi
30408
30409
30410 # IFS
30411 # We need space, tab and new line, in precisely that order.  Quoting is
30412 # there to prevent editors from complaining about space-tab.
30413 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30414 # splitting by setting IFS to empty value.)
30415 as_nl='
30416 '
30417 IFS=" ""        $as_nl"
30418
30419 # Find who we are.  Look in the path if we contain no directory separator.
30420 case $0 in
30421   *[\\/]* ) as_myself=$0 ;;
30422   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30423 for as_dir in $PATH
30424 do
30425   IFS=$as_save_IFS
30426   test -z "$as_dir" && as_dir=.
30427   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30428 done
30429 IFS=$as_save_IFS
30430
30431      ;;
30432 esac
30433 # We did not find ourselves, most probably we were run as `sh COMMAND'
30434 # in which case we are not to be found in the path.
30435 if test "x$as_myself" = x; then
30436   as_myself=$0
30437 fi
30438 if test ! -f "$as_myself"; then
30439   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30440   { (exit 1); exit 1; }
30441 fi
30442
30443 # Work around bugs in pre-3.0 UWIN ksh.
30444 for as_var in ENV MAIL MAILPATH
30445 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30446 done
30447 PS1='$ '
30448 PS2='> '
30449 PS4='+ '
30450
30451 # NLS nuisances.
30452 for as_var in \
30453   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30454   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30455   LC_TELEPHONE LC_TIME
30456 do
30457   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30458     eval $as_var=C; export $as_var
30459   else
30460     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30461   fi
30462 done
30463
30464 # Required to use basename.
30465 if expr a : '\(a\)' >/dev/null 2>&1 &&
30466    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30467   as_expr=expr
30468 else
30469   as_expr=false
30470 fi
30471
30472 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30473   as_basename=basename
30474 else
30475   as_basename=false
30476 fi
30477
30478
30479 # Name of the executable.
30480 as_me=`$as_basename -- "$0" ||
30481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30482          X"$0" : 'X\(//\)$' \| \
30483          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30484 echo X/"$0" |
30485     sed '/^.*\/\([^/][^/]*\)\/*$/{
30486             s//\1/
30487             q
30488           }
30489           /^X\/\(\/\/\)$/{
30490             s//\1/
30491             q
30492           }
30493           /^X\/\(\/\).*/{
30494             s//\1/
30495             q
30496           }
30497           s/.*/./; q'`
30498
30499 # CDPATH.
30500 $as_unset CDPATH
30501
30502
30503
30504   as_lineno_1=$LINENO
30505   as_lineno_2=$LINENO
30506   test "x$as_lineno_1" != "x$as_lineno_2" &&
30507   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30508
30509   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30510   # uniformly replaced by the line number.  The first 'sed' inserts a
30511   # line-number line after each line using $LINENO; the second 'sed'
30512   # does the real work.  The second script uses 'N' to pair each
30513   # line-number line with the line containing $LINENO, and appends
30514   # trailing '-' during substitution so that $LINENO is not a special
30515   # case at line end.
30516   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30517   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30518   # E. McMahon (1931-1989) for sed's syntax.  :-)
30519   sed -n '
30520     p
30521     /[$]LINENO/=
30522   ' <$as_myself |
30523     sed '
30524       s/[$]LINENO.*/&-/
30525       t lineno
30526       b
30527       :lineno
30528       N
30529       :loop
30530       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30531       t loop
30532       s/-\n.*//
30533     ' >$as_me.lineno &&
30534   chmod +x "$as_me.lineno" ||
30535     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30536    { (exit 1); exit 1; }; }
30537
30538   # Don't try to exec as it changes $[0], causing all sort of problems
30539   # (the dirname of $[0] is not the place where we might find the
30540   # original and so on.  Autoconf is especially sensitive to this).
30541   . "./$as_me.lineno"
30542   # Exit status is that of the last command.
30543   exit
30544 }
30545
30546
30547 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30548   as_dirname=dirname
30549 else
30550   as_dirname=false
30551 fi
30552
30553 ECHO_C= ECHO_N= ECHO_T=
30554 case `echo -n x` in
30555 -n*)
30556   case `echo 'x\c'` in
30557   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30558   *)   ECHO_C='\c';;
30559   esac;;
30560 *)
30561   ECHO_N='-n';;
30562 esac
30563
30564 if expr a : '\(a\)' >/dev/null 2>&1 &&
30565    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30566   as_expr=expr
30567 else
30568   as_expr=false
30569 fi
30570
30571 rm -f conf$$ conf$$.exe conf$$.file
30572 if test -d conf$$.dir; then
30573   rm -f conf$$.dir/conf$$.file
30574 else
30575   rm -f conf$$.dir
30576   mkdir conf$$.dir
30577 fi
30578 echo >conf$$.file
30579 if ln -s conf$$.file conf$$ 2>/dev/null; then
30580   as_ln_s='ln -s'
30581   # ... but there are two gotchas:
30582   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30583   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30584   # In both cases, we have to default to `cp -p'.
30585   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30586     as_ln_s='cp -p'
30587 elif ln conf$$.file conf$$ 2>/dev/null; then
30588   as_ln_s=ln
30589 else
30590   as_ln_s='cp -p'
30591 fi
30592 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30593 rmdir conf$$.dir 2>/dev/null
30594
30595 if mkdir -p . 2>/dev/null; then
30596   as_mkdir_p=:
30597 else
30598   test -d ./-p && rmdir ./-p
30599   as_mkdir_p=false
30600 fi
30601
30602 if test -x / >/dev/null 2>&1; then
30603   as_test_x='test -x'
30604 else
30605   if ls -dL / >/dev/null 2>&1; then
30606     as_ls_L_option=L
30607   else
30608     as_ls_L_option=
30609   fi
30610   as_test_x='
30611     eval sh -c '\''
30612       if test -d "$1"; then
30613         test -d "$1/.";
30614       else
30615         case $1 in
30616         -*)set "./$1";;
30617         esac;
30618         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30619         ???[sx]*):;;*)false;;esac;fi
30620     '\'' sh
30621   '
30622 fi
30623 as_executable_p=$as_test_x
30624
30625 # Sed expression to map a string onto a valid CPP name.
30626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30627
30628 # Sed expression to map a string onto a valid variable name.
30629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30630
30631
30632 exec 6>&1
30633
30634 # Save the log message, to keep $[0] and so on meaningful, and to
30635 # report actual input values of CONFIG_FILES etc. instead of their
30636 # values after options handling.
30637 ac_log="
30638 This file was extended by $as_me, which was
30639 generated by GNU Autoconf 2.61.  Invocation command line was
30640
30641   CONFIG_FILES    = $CONFIG_FILES
30642   CONFIG_HEADERS  = $CONFIG_HEADERS
30643   CONFIG_LINKS    = $CONFIG_LINKS
30644   CONFIG_COMMANDS = $CONFIG_COMMANDS
30645   $ $0 $@
30646
30647 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30648 "
30649
30650 _ACEOF
30651
30652 cat >>$CONFIG_STATUS <<_ACEOF
30653 # Files that config.status was made for.
30654 config_files="$ac_config_files"
30655 config_headers="$ac_config_headers"
30656 config_commands="$ac_config_commands"
30657
30658 _ACEOF
30659
30660 cat >>$CONFIG_STATUS <<\_ACEOF
30661 ac_cs_usage="\
30662 \`$as_me' instantiates files from templates according to the
30663 current configuration.
30664
30665 Usage: $0 [OPTIONS] [FILE]...
30666
30667   -h, --help       print this help, then exit
30668   -V, --version    print version number and configuration settings, then exit
30669   -q, --quiet      do not print progress messages
30670   -d, --debug      don't remove temporary files
30671       --recheck    update $as_me by reconfiguring in the same conditions
30672   --file=FILE[:TEMPLATE]
30673                    instantiate the configuration file FILE
30674   --header=FILE[:TEMPLATE]
30675                    instantiate the configuration header FILE
30676
30677 Configuration files:
30678 $config_files
30679
30680 Configuration headers:
30681 $config_headers
30682
30683 Configuration commands:
30684 $config_commands
30685
30686 Report bugs to <bug-autoconf@gnu.org>."
30687
30688 _ACEOF
30689 cat >>$CONFIG_STATUS <<_ACEOF
30690 ac_cs_version="\\
30691 config.status
30692 configured by $0, generated by GNU Autoconf 2.61,
30693   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30694
30695 Copyright (C) 2006 Free Software Foundation, Inc.
30696 This config.status script is free software; the Free Software Foundation
30697 gives unlimited permission to copy, distribute and modify it."
30698
30699 ac_pwd='$ac_pwd'
30700 srcdir='$srcdir'
30701 INSTALL='$INSTALL'
30702 _ACEOF
30703
30704 cat >>$CONFIG_STATUS <<\_ACEOF
30705 # If no file are specified by the user, then we need to provide default
30706 # value.  By we need to know if files were specified by the user.
30707 ac_need_defaults=:
30708 while test $# != 0
30709 do
30710   case $1 in
30711   --*=*)
30712     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30713     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30714     ac_shift=:
30715     ;;
30716   *)
30717     ac_option=$1
30718     ac_optarg=$2
30719     ac_shift=shift
30720     ;;
30721   esac
30722
30723   case $ac_option in
30724   # Handling of the options.
30725   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30726     ac_cs_recheck=: ;;
30727   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30728     echo "$ac_cs_version"; exit ;;
30729   --debug | --debu | --deb | --de | --d | -d )
30730     debug=: ;;
30731   --file | --fil | --fi | --f )
30732     $ac_shift
30733     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30734     ac_need_defaults=false;;
30735   --header | --heade | --head | --hea )
30736     $ac_shift
30737     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30738     ac_need_defaults=false;;
30739   --he | --h)
30740     # Conflict between --help and --header
30741     { echo "$as_me: error: ambiguous option: $1
30742 Try \`$0 --help' for more information." >&2
30743    { (exit 1); exit 1; }; };;
30744   --help | --hel | -h )
30745     echo "$ac_cs_usage"; exit ;;
30746   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30747   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30748     ac_cs_silent=: ;;
30749
30750   # This is an error.
30751   -*) { echo "$as_me: error: unrecognized option: $1
30752 Try \`$0 --help' for more information." >&2
30753    { (exit 1); exit 1; }; } ;;
30754
30755   *) ac_config_targets="$ac_config_targets $1"
30756      ac_need_defaults=false ;;
30757
30758   esac
30759   shift
30760 done
30761
30762 ac_configure_extra_args=
30763
30764 if $ac_cs_silent; then
30765   exec 6>/dev/null
30766   ac_configure_extra_args="$ac_configure_extra_args --silent"
30767 fi
30768
30769 _ACEOF
30770 cat >>$CONFIG_STATUS <<_ACEOF
30771 if \$ac_cs_recheck; then
30772   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30773   CONFIG_SHELL=$SHELL
30774   export CONFIG_SHELL
30775   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30776 fi
30777
30778 _ACEOF
30779 cat >>$CONFIG_STATUS <<\_ACEOF
30780 exec 5>>config.log
30781 {
30782   echo
30783   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30784 ## Running $as_me. ##
30785 _ASBOX
30786   echo "$ac_log"
30787 } >&5
30788
30789 _ACEOF
30790 cat >>$CONFIG_STATUS <<_ACEOF
30791 #
30792 # INIT-COMMANDS
30793 #
30794 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30795     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30796     # from automake.
30797     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30798     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30799     LINGUAS="${LINGUAS-%UNSET%}"
30800
30801
30802 _ACEOF
30803
30804 cat >>$CONFIG_STATUS <<\_ACEOF
30805
30806 # Handling of arguments.
30807 for ac_config_target in $ac_config_targets
30808 do
30809   case $ac_config_target in
30810     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30811     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30812     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30813     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30814     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30815     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30816     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30817     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30818     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30819     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30820     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30821     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30822     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30823     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30824     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30825     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30826     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30827     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30828     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30829     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30830     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30831     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30832     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30833     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30834     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30835     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30836     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30837     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30838     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30839     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30840     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30841     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30842     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30843     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30844     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30845     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30846     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30847     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30848     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30849     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30850     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30851     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30852     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30853     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30854     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30855     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30856     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30857     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30858     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30859     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30860     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30861     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30862     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30863     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30864     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30865     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30866     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30867     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30868     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30869     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30870     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30871     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30872     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30873     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30874     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30875     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30876     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30877     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30878     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30879     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30880     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30881     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30882     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30883     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30884     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30885     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30886     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30887     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30888     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30889     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30890     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30891     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30892     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30893     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30894     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30895     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30896     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30897     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30898     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30899     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30900     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30901     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30902     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30903     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30904     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30905     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30906     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30907     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30908     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30909     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30910     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30911     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30912     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30913     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30914     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30915     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30916
30917   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30918 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30919    { (exit 1); exit 1; }; };;
30920   esac
30921 done
30922
30923
30924 # If the user did not use the arguments to specify the items to instantiate,
30925 # then the envvar interface is used.  Set only those that are not.
30926 # We use the long form for the default assignment because of an extremely
30927 # bizarre bug on SunOS 4.1.3.
30928 if $ac_need_defaults; then
30929   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30930   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30931   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30932 fi
30933
30934 # Have a temporary directory for convenience.  Make it in the build tree
30935 # simply because there is no reason against having it here, and in addition,
30936 # creating and moving files from /tmp can sometimes cause problems.
30937 # Hook for its removal unless debugging.
30938 # Note that there is a small window in which the directory will not be cleaned:
30939 # after its creation but before its name has been assigned to `$tmp'.
30940 $debug ||
30941 {
30942   tmp=
30943   trap 'exit_status=$?
30944   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30945 ' 0
30946   trap '{ (exit 1); exit 1; }' 1 2 13 15
30947 }
30948 # Create a (secure) tmp directory for tmp files.
30949
30950 {
30951   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30952   test -n "$tmp" && test -d "$tmp"
30953 }  ||
30954 {
30955   tmp=./conf$$-$RANDOM
30956   (umask 077 && mkdir "$tmp")
30957 } ||
30958 {
30959    echo "$me: cannot create a temporary directory in ." >&2
30960    { (exit 1); exit 1; }
30961 }
30962
30963 #
30964 # Set up the sed scripts for CONFIG_FILES section.
30965 #
30966
30967 # No need to generate the scripts if there are no CONFIG_FILES.
30968 # This happens for instance when ./config.status config.h
30969 if test -n "$CONFIG_FILES"; then
30970
30971 _ACEOF
30972
30973 # Create sed commands to just substitute file output variables.
30974
30975 # Remaining file output variables are in a fragment that also has non-file
30976 # output varibles.
30977
30978
30979
30980 ac_delim='%!_!# '
30981 for ac_last_try in false false false false false :; do
30982   cat >conf$$subs.sed <<_ACEOF
30983 SHELL!$SHELL$ac_delim
30984 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30985 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30986 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30987 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30988 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30989 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30990 exec_prefix!$exec_prefix$ac_delim
30991 prefix!$prefix$ac_delim
30992 program_transform_name!$program_transform_name$ac_delim
30993 bindir!$bindir$ac_delim
30994 sbindir!$sbindir$ac_delim
30995 libexecdir!$libexecdir$ac_delim
30996 datarootdir!$datarootdir$ac_delim
30997 datadir!$datadir$ac_delim
30998 sysconfdir!$sysconfdir$ac_delim
30999 sharedstatedir!$sharedstatedir$ac_delim
31000 localstatedir!$localstatedir$ac_delim
31001 includedir!$includedir$ac_delim
31002 oldincludedir!$oldincludedir$ac_delim
31003 docdir!$docdir$ac_delim
31004 infodir!$infodir$ac_delim
31005 htmldir!$htmldir$ac_delim
31006 dvidir!$dvidir$ac_delim
31007 pdfdir!$pdfdir$ac_delim
31008 psdir!$psdir$ac_delim
31009 libdir!$libdir$ac_delim
31010 localedir!$localedir$ac_delim
31011 mandir!$mandir$ac_delim
31012 DEFS!$DEFS$ac_delim
31013 ECHO_C!$ECHO_C$ac_delim
31014 ECHO_N!$ECHO_N$ac_delim
31015 ECHO_T!$ECHO_T$ac_delim
31016 LIBS!$LIBS$ac_delim
31017 build_alias!$build_alias$ac_delim
31018 host_alias!$host_alias$ac_delim
31019 target_alias!$target_alias$ac_delim
31020 BUILD_DIR!$BUILD_DIR$ac_delim
31021 TOP_DIR!$TOP_DIR$ac_delim
31022 TRUEPRG!$TRUEPRG$ac_delim
31023 FALSEPRG!$FALSEPRG$ac_delim
31024 VERSION!$VERSION$ac_delim
31025 DATE!$DATE$ac_delim
31026 LSMDATE!$LSMDATE$ac_delim
31027 CC!$CC$ac_delim
31028 CFLAGS!$CFLAGS$ac_delim
31029 LDFLAGS!$LDFLAGS$ac_delim
31030 CPPFLAGS!$CPPFLAGS$ac_delim
31031 ac_ct_CC!$ac_ct_CC$ac_delim
31032 EXEEXT!$EXEEXT$ac_delim
31033 OBJEXT!$OBJEXT$ac_delim
31034 CXX!$CXX$ac_delim
31035 CXXFLAGS!$CXXFLAGS$ac_delim
31036 ac_ct_CXX!$ac_ct_CXX$ac_delim
31037 CPP!$CPP$ac_delim
31038 GREP!$GREP$ac_delim
31039 EGREP!$EGREP$ac_delim
31040 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31041 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31042 INSTALL_DATA!$INSTALL_DATA$ac_delim
31043 RANLIB!$RANLIB$ac_delim
31044 MV!$MV$ac_delim
31045 RM!$RM$ac_delim
31046 CP!$CP$ac_delim
31047 SED!$SED$ac_delim
31048 ECHO!$ECHO$ac_delim
31049 CMP!$CMP$ac_delim
31050 TBL!$TBL$ac_delim
31051 AR!$AR$ac_delim
31052 OPENSSL!$OPENSSL$ac_delim
31053 MTX!$MTX$ac_delim
31054 DD!$DD$ac_delim
31055 MKISOFS!$MKISOFS$ac_delim
31056 PYTHON!$PYTHON$ac_delim
31057 GROWISOFS!$GROWISOFS$ac_delim
31058 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31059 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31060 PKGCONFIG!$PKGCONFIG$ac_delim
31061 QMAKE!$QMAKE$ac_delim
31062 QMAKEQT4!$QMAKEQT4$ac_delim
31063 WXCONFIG!$WXCONFIG$ac_delim
31064 WXFLAGS!$WXFLAGS$ac_delim
31065 CDRECORD!$CDRECORD$ac_delim
31066 PIDOF!$PIDOF$ac_delim
31067 AWK!$AWK$ac_delim
31068 ARFLAGS!$ARFLAGS$ac_delim
31069 MAKE_SHELL!$MAKE_SHELL$ac_delim
31070 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31071 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31072 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31073 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31074 build!$build$ac_delim
31075 build_cpu!$build_cpu$ac_delim
31076 build_vendor!$build_vendor$ac_delim
31077 _ACEOF
31078
31079   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31080     break
31081   elif $ac_last_try; then
31082     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31083 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31084    { (exit 1); exit 1; }; }
31085   else
31086     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31087   fi
31088 done
31089
31090 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31091 if test -n "$ac_eof"; then
31092   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31093   ac_eof=`expr $ac_eof + 1`
31094 fi
31095
31096 cat >>$CONFIG_STATUS <<_ACEOF
31097 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31098 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31099 /^[      ]*@MCOMMON@[    ]*$/{
31100 r $MCOMMON
31101 d
31102 }
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 build_os!$build_os$ac_delim
31123 host!$host$ac_delim
31124 host_cpu!$host_cpu$ac_delim
31125 host_vendor!$host_vendor$ac_delim
31126 host_os!$host_os$ac_delim
31127 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31128 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31129 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31130 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31131 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31132 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31133 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31134 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31135 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31136 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31137 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31138 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31139 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31140 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31141 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31142 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31143 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31144 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31145 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31146 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31147 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31148 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31149 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31150 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31151 SET_MAKE!$SET_MAKE$ac_delim
31152 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31153 USE_NLS!$USE_NLS$ac_delim
31154 MSGFMT!$MSGFMT$ac_delim
31155 GMSGFMT!$GMSGFMT$ac_delim
31156 XGETTEXT!$XGETTEXT$ac_delim
31157 MSGMERGE!$MSGMERGE$ac_delim
31158 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31159 LIBICONV!$LIBICONV$ac_delim
31160 LTLIBICONV!$LTLIBICONV$ac_delim
31161 INTLLIBS!$INTLLIBS$ac_delim
31162 LIBINTL!$LIBINTL$ac_delim
31163 LTLIBINTL!$LTLIBINTL$ac_delim
31164 POSUB!$POSUB$ac_delim
31165 GLIBC2!$GLIBC2$ac_delim
31166 ALLOCA!$ALLOCA$ac_delim
31167 GLIBC21!$GLIBC21$ac_delim
31168 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31169 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31170 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31171 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31172 INTLBISON!$INTLBISON$ac_delim
31173 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31174 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31175 CATOBJEXT!$CATOBJEXT$ac_delim
31176 DATADIRNAME!$DATADIRNAME$ac_delim
31177 INSTOBJEXT!$INSTOBJEXT$ac_delim
31178 GENCAT!$GENCAT$ac_delim
31179 INTLOBJS!$INTLOBJS$ac_delim
31180 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31181 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31182 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31183 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31184 GNOME_LIBS!$GNOME_LIBS$ac_delim
31185 GNOME_DIR!$GNOME_DIR$ac_delim
31186 BAT_DIR!$BAT_DIR$ac_delim
31187 QWT_INC!$QWT_INC$ac_delim
31188 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31189 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31190 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31191 WX_DIR!$WX_DIR$ac_delim
31192 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31193 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31194 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31195 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31196 STATIC_FD!$STATIC_FD$ac_delim
31197 STATIC_SD!$STATIC_SD$ac_delim
31198 STATIC_DIR!$STATIC_DIR$ac_delim
31199 STATIC_CONS!$STATIC_CONS$ac_delim
31200 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31201 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31202 ALL_DIRS!$ALL_DIRS$ac_delim
31203 DIRD_DIR!$DIRD_DIR$ac_delim
31204 DIR_TOOLS!$DIR_TOOLS$ac_delim
31205 STORED_DIR!$STORED_DIR$ac_delim
31206 CONS_INC!$CONS_INC$ac_delim
31207 CONS_OBJ!$CONS_OBJ$ac_delim
31208 CONS_SRC!$CONS_SRC$ac_delim
31209 CONS_LIBS!$CONS_LIBS$ac_delim
31210 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31211 READLINE_SRC!$READLINE_SRC$ac_delim
31212 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31213 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31214 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31215 OPENSSL_INC!$OPENSSL_INC$ac_delim
31216 working_dir!$working_dir$ac_delim
31217 archivedir!$archivedir$ac_delim
31218 scriptdir!$scriptdir$ac_delim
31219 _ACEOF
31220
31221   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31222     break
31223   elif $ac_last_try; then
31224     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31225 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31226    { (exit 1); exit 1; }; }
31227   else
31228     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31229   fi
31230 done
31231
31232 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31233 if test -n "$ac_eof"; then
31234   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31235   ac_eof=`expr $ac_eof + 1`
31236 fi
31237
31238 cat >>$CONFIG_STATUS <<_ACEOF
31239 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31241 _ACEOF
31242 sed '
31243 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31244 s/^/s,@/; s/!/@,|#_!!_#|/
31245 :n
31246 t n
31247 s/'"$ac_delim"'$/,g/; t
31248 s/$/\\/; p
31249 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31250 ' >>$CONFIG_STATUS <conf$$subs.sed
31251 rm -f conf$$subs.sed
31252 cat >>$CONFIG_STATUS <<_ACEOF
31253 CEOF$ac_eof
31254 _ACEOF
31255
31256
31257 ac_delim='%!_!# '
31258 for ac_last_try in false false false false false :; do
31259   cat >conf$$subs.sed <<_ACEOF
31260 dump_email!$dump_email$ac_delim
31261 job_email!$job_email$ac_delim
31262 smtp_host!$smtp_host$ac_delim
31263 piddir!$piddir$ac_delim
31264 subsysdir!$subsysdir$ac_delim
31265 baseport!$baseport$ac_delim
31266 dir_port!$dir_port$ac_delim
31267 fd_port!$fd_port$ac_delim
31268 sd_port!$sd_port$ac_delim
31269 dir_password!$dir_password$ac_delim
31270 fd_password!$fd_password$ac_delim
31271 sd_password!$sd_password$ac_delim
31272 mon_dir_password!$mon_dir_password$ac_delim
31273 mon_fd_password!$mon_fd_password$ac_delim
31274 mon_sd_password!$mon_sd_password$ac_delim
31275 db_name!$db_name$ac_delim
31276 db_user!$db_user$ac_delim
31277 dir_user!$dir_user$ac_delim
31278 dir_group!$dir_group$ac_delim
31279 sd_user!$sd_user$ac_delim
31280 sd_group!$sd_group$ac_delim
31281 fd_user!$fd_user$ac_delim
31282 fd_group!$fd_group$ac_delim
31283 SBINPERM!$SBINPERM$ac_delim
31284 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31285 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31286 SQL_BINDIR!$SQL_BINDIR$ac_delim
31287 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31288 cats!$cats$ac_delim
31289 DB_TYPE!$DB_TYPE$ac_delim
31290 GETCONF!$GETCONF$ac_delim
31291 XMKMF!$XMKMF$ac_delim
31292 X_CFLAGS!$X_CFLAGS$ac_delim
31293 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31294 X_LIBS!$X_LIBS$ac_delim
31295 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31296 LIBOBJS!$LIBOBJS$ac_delim
31297 FDLIBS!$FDLIBS$ac_delim
31298 DEBUG!$DEBUG$ac_delim
31299 DINCLUDE!$DINCLUDE$ac_delim
31300 DLIB!$DLIB$ac_delim
31301 DB_LIBS!$DB_LIBS$ac_delim
31302 WCFLAGS!$WCFLAGS$ac_delim
31303 WLDFLAGS!$WLDFLAGS$ac_delim
31304 WRAPLIBS!$WRAPLIBS$ac_delim
31305 OBJLIST!$OBJLIST$ac_delim
31306 hostname!$hostname$ac_delim
31307 TAPEDRIVE!$TAPEDRIVE$ac_delim
31308 PSCMD!$PSCMD$ac_delim
31309 WIN32!$WIN32$ac_delim
31310 MACOSX!$MACOSX$ac_delim
31311 DISTNAME!$DISTNAME$ac_delim
31312 DISTVER!$DISTVER$ac_delim
31313 LTLIBOBJS!$LTLIBOBJS$ac_delim
31314 _ACEOF
31315
31316   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then
31317     break
31318   elif $ac_last_try; then
31319     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31320 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31321    { (exit 1); exit 1; }; }
31322   else
31323     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31324   fi
31325 done
31326
31327 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31328 if test -n "$ac_eof"; then
31329   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31330   ac_eof=`expr $ac_eof + 1`
31331 fi
31332
31333 cat >>$CONFIG_STATUS <<_ACEOF
31334 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31335 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31336 _ACEOF
31337 sed '
31338 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31339 s/^/s,@/; s/!/@,|#_!!_#|/
31340 :n
31341 t n
31342 s/'"$ac_delim"'$/,g/; t
31343 s/$/\\/; p
31344 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31345 ' >>$CONFIG_STATUS <conf$$subs.sed
31346 rm -f conf$$subs.sed
31347 cat >>$CONFIG_STATUS <<_ACEOF
31348 :end
31349 s/|#_!!_#|//g
31350 CEOF$ac_eof
31351 _ACEOF
31352
31353
31354 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31355 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31356 # trailing colons and then remove the whole line if VPATH becomes empty
31357 # (actually we leave an empty line to preserve line numbers).
31358 if test "x$srcdir" = x.; then
31359   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31360 s/:*\$(srcdir):*/:/
31361 s/:*\${srcdir}:*/:/
31362 s/:*@srcdir@:*/:/
31363 s/^\([^=]*=[     ]*\):*/\1/
31364 s/:*$//
31365 s/^[^=]*=[       ]*$//
31366 }'
31367 fi
31368
31369 cat >>$CONFIG_STATUS <<\_ACEOF
31370 fi # test -n "$CONFIG_FILES"
31371
31372
31373 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31374 do
31375   case $ac_tag in
31376   :[FHLC]) ac_mode=$ac_tag; continue;;
31377   esac
31378   case $ac_mode$ac_tag in
31379   :[FHL]*:*);;
31380   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31381 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31382    { (exit 1); exit 1; }; };;
31383   :[FH]-) ac_tag=-:-;;
31384   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31385   esac
31386   ac_save_IFS=$IFS
31387   IFS=:
31388   set x $ac_tag
31389   IFS=$ac_save_IFS
31390   shift
31391   ac_file=$1
31392   shift
31393
31394   case $ac_mode in
31395   :L) ac_source=$1;;
31396   :[FH])
31397     ac_file_inputs=
31398     for ac_f
31399     do
31400       case $ac_f in
31401       -) ac_f="$tmp/stdin";;
31402       *) # Look for the file first in the build tree, then in the source tree
31403          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31404          # because $ac_f cannot contain `:'.
31405          test -f "$ac_f" ||
31406            case $ac_f in
31407            [\\/$]*) false;;
31408            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31409            esac ||
31410            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31411 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31412    { (exit 1); exit 1; }; };;
31413       esac
31414       ac_file_inputs="$ac_file_inputs $ac_f"
31415     done
31416
31417     # Let's still pretend it is `configure' which instantiates (i.e., don't
31418     # use $as_me), people would be surprised to read:
31419     #    /* config.h.  Generated by config.status.  */
31420     configure_input="Generated from "`IFS=:
31421           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31422     if test x"$ac_file" != x-; then
31423       configure_input="$ac_file.  $configure_input"
31424       { echo "$as_me:$LINENO: creating $ac_file" >&5
31425 echo "$as_me: creating $ac_file" >&6;}
31426     fi
31427
31428     case $ac_tag in
31429     *:-:* | *:-) cat >"$tmp/stdin";;
31430     esac
31431     ;;
31432   esac
31433
31434   ac_dir=`$as_dirname -- "$ac_file" ||
31435 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31436          X"$ac_file" : 'X\(//\)[^/]' \| \
31437          X"$ac_file" : 'X\(//\)$' \| \
31438          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31439 echo X"$ac_file" |
31440     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31441             s//\1/
31442             q
31443           }
31444           /^X\(\/\/\)[^/].*/{
31445             s//\1/
31446             q
31447           }
31448           /^X\(\/\/\)$/{
31449             s//\1/
31450             q
31451           }
31452           /^X\(\/\).*/{
31453             s//\1/
31454             q
31455           }
31456           s/.*/./; q'`
31457   { as_dir="$ac_dir"
31458   case $as_dir in #(
31459   -*) as_dir=./$as_dir;;
31460   esac
31461   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31462     as_dirs=
31463     while :; do
31464       case $as_dir in #(
31465       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31466       *) as_qdir=$as_dir;;
31467       esac
31468       as_dirs="'$as_qdir' $as_dirs"
31469       as_dir=`$as_dirname -- "$as_dir" ||
31470 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31471          X"$as_dir" : 'X\(//\)[^/]' \| \
31472          X"$as_dir" : 'X\(//\)$' \| \
31473          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31474 echo X"$as_dir" |
31475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31476             s//\1/
31477             q
31478           }
31479           /^X\(\/\/\)[^/].*/{
31480             s//\1/
31481             q
31482           }
31483           /^X\(\/\/\)$/{
31484             s//\1/
31485             q
31486           }
31487           /^X\(\/\).*/{
31488             s//\1/
31489             q
31490           }
31491           s/.*/./; q'`
31492       test -d "$as_dir" && break
31493     done
31494     test -z "$as_dirs" || eval "mkdir $as_dirs"
31495   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31496 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31497    { (exit 1); exit 1; }; }; }
31498   ac_builddir=.
31499
31500 case "$ac_dir" in
31501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31502 *)
31503   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31504   # A ".." for each directory in $ac_dir_suffix.
31505   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31506   case $ac_top_builddir_sub in
31507   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31508   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31509   esac ;;
31510 esac
31511 ac_abs_top_builddir=$ac_pwd
31512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31513 # for backward compatibility:
31514 ac_top_builddir=$ac_top_build_prefix
31515
31516 case $srcdir in
31517   .)  # We are building in place.
31518     ac_srcdir=.
31519     ac_top_srcdir=$ac_top_builddir_sub
31520     ac_abs_top_srcdir=$ac_pwd ;;
31521   [\\/]* | ?:[\\/]* )  # Absolute name.
31522     ac_srcdir=$srcdir$ac_dir_suffix;
31523     ac_top_srcdir=$srcdir
31524     ac_abs_top_srcdir=$srcdir ;;
31525   *) # Relative name.
31526     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31527     ac_top_srcdir=$ac_top_build_prefix$srcdir
31528     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31529 esac
31530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31531
31532
31533   case $ac_mode in
31534   :F)
31535   #
31536   # CONFIG_FILE
31537   #
31538
31539   case $INSTALL in
31540   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31541   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31542   esac
31543 _ACEOF
31544
31545 cat >>$CONFIG_STATUS <<\_ACEOF
31546 # If the template does not know about datarootdir, expand it.
31547 # FIXME: This hack should be removed a few years after 2.60.
31548 ac_datarootdir_hack=; ac_datarootdir_seen=
31549
31550 case `sed -n '/datarootdir/ {
31551   p
31552   q
31553 }
31554 /@datadir@/p
31555 /@docdir@/p
31556 /@infodir@/p
31557 /@localedir@/p
31558 /@mandir@/p
31559 ' $ac_file_inputs` in
31560 *datarootdir*) ac_datarootdir_seen=yes;;
31561 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31562   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31563 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31564 _ACEOF
31565 cat >>$CONFIG_STATUS <<_ACEOF
31566   ac_datarootdir_hack='
31567   s&@datadir@&$datadir&g
31568   s&@docdir@&$docdir&g
31569   s&@infodir@&$infodir&g
31570   s&@localedir@&$localedir&g
31571   s&@mandir@&$mandir&g
31572     s&\\\${datarootdir}&$datarootdir&g' ;;
31573 esac
31574 _ACEOF
31575
31576 # Neutralize VPATH when `$srcdir' = `.'.
31577 # Shell code in configure.ac might set extrasub.
31578 # FIXME: do we really want to maintain this feature?
31579 cat >>$CONFIG_STATUS <<_ACEOF
31580   sed "$ac_vpsub
31581 $extrasub
31582 _ACEOF
31583 cat >>$CONFIG_STATUS <<\_ACEOF
31584 :t
31585 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31586 s&@configure_input@&$configure_input&;t t
31587 s&@top_builddir@&$ac_top_builddir_sub&;t t
31588 s&@srcdir@&$ac_srcdir&;t t
31589 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31590 s&@top_srcdir@&$ac_top_srcdir&;t t
31591 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31592 s&@builddir@&$ac_builddir&;t t
31593 s&@abs_builddir@&$ac_abs_builddir&;t t
31594 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31595 s&@INSTALL@&$ac_INSTALL&;t t
31596 $ac_datarootdir_hack
31597 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31598
31599 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31600   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31601   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31602   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31603 which seems to be undefined.  Please make sure it is defined." >&5
31604 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31605 which seems to be undefined.  Please make sure it is defined." >&2;}
31606
31607   rm -f "$tmp/stdin"
31608   case $ac_file in
31609   -) cat "$tmp/out"; rm -f "$tmp/out";;
31610   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31611   esac
31612  ;;
31613   :H)
31614   #
31615   # CONFIG_HEADER
31616   #
31617 _ACEOF
31618
31619 # Transform confdefs.h into a sed script `conftest.defines', that
31620 # substitutes the proper values into config.h.in to produce config.h.
31621 rm -f conftest.defines conftest.tail
31622 # First, append a space to every undef/define line, to ease matching.
31623 echo 's/$/ /' >conftest.defines
31624 # Then, protect against being on the right side of a sed subst, or in
31625 # an unquoted here document, in config.status.  If some macros were
31626 # called several times there might be several #defines for the same
31627 # symbol, which is useless.  But do not sort them, since the last
31628 # AC_DEFINE must be honored.
31629 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31630 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31631 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31632 # PARAMS is the parameter list in the macro definition--in most cases, it's
31633 # just an empty string.
31634 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31635 ac_dB='\\)[      (].*,\\1define\\2'
31636 ac_dC=' '
31637 ac_dD=' ,'
31638
31639 uniq confdefs.h |
31640   sed -n '
31641         t rset
31642         :rset
31643         s/^[     ]*#[    ]*define[       ][      ]*//
31644         t ok
31645         d
31646         :ok
31647         s/[\\&,]/\\&/g
31648         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31649         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31650   ' >>conftest.defines
31651
31652 # Remove the space that was appended to ease matching.
31653 # Then replace #undef with comments.  This is necessary, for
31654 # example, in the case of _POSIX_SOURCE, which is predefined and required
31655 # on some systems where configure will not decide to define it.
31656 # (The regexp can be short, since the line contains either #define or #undef.)
31657 echo 's/ $//
31658 s,^[     #]*u.*,/* & */,' >>conftest.defines
31659
31660 # Break up conftest.defines:
31661 ac_max_sed_lines=50
31662
31663 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31664 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31665 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31666 # et cetera.
31667 ac_in='$ac_file_inputs'
31668 ac_out='"$tmp/out1"'
31669 ac_nxt='"$tmp/out2"'
31670
31671 while :
31672 do
31673   # Write a here document:
31674     cat >>$CONFIG_STATUS <<_ACEOF
31675     # First, check the format of the line:
31676     cat >"\$tmp/defines.sed" <<\\CEOF
31677 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31678 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31679 b
31680 :def
31681 _ACEOF
31682   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31683   echo 'CEOF
31684     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31685   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31686   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31687   grep . conftest.tail >/dev/null || break
31688   rm -f conftest.defines
31689   mv conftest.tail conftest.defines
31690 done
31691 rm -f conftest.defines conftest.tail
31692
31693 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31694 cat >>$CONFIG_STATUS <<\_ACEOF
31695   if test x"$ac_file" != x-; then
31696     echo "/* $configure_input  */" >"$tmp/config.h"
31697     cat "$ac_result" >>"$tmp/config.h"
31698     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31699       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31700 echo "$as_me: $ac_file is unchanged" >&6;}
31701     else
31702       rm -f $ac_file
31703       mv "$tmp/config.h" $ac_file
31704     fi
31705   else
31706     echo "/* $configure_input  */"
31707     cat "$ac_result"
31708   fi
31709   rm -f "$tmp/out12"
31710  ;;
31711
31712   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31713 echo "$as_me: executing $ac_file commands" >&6;}
31714  ;;
31715   esac
31716
31717
31718   case $ac_file$ac_mode in
31719     "default-1":C)
31720     for ac_file in $CONFIG_FILES; do
31721       # Support "outfile[:infile[:infile...]]"
31722       case "$ac_file" in
31723         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31724       esac
31725       # PO directories have a Makefile.in generated from Makefile.in.in.
31726       case "$ac_file" in */Makefile.in)
31727         # Adjust a relative srcdir.
31728         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31729         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31730         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31731         # In autoconf-2.13 it is called $ac_given_srcdir.
31732         # In autoconf-2.50 it is called $srcdir.
31733         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31734         case "$ac_given_srcdir" in
31735           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31736           /*) top_srcdir="$ac_given_srcdir" ;;
31737           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31738         esac
31739         # Treat a directory as a PO directory if and only if it has a
31740         # POTFILES.in file. This allows packages to have multiple PO
31741         # directories under different names or in different locations.
31742         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31743           rm -f "$ac_dir/POTFILES"
31744           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31745           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31746           POMAKEFILEDEPS="POTFILES.in"
31747           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31748           # on $ac_dir but don't depend on user-specified configuration
31749           # parameters.
31750           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31751             # The LINGUAS file contains the set of available languages.
31752             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31753               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31754             fi
31755             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31756             # Hide the ALL_LINGUAS assigment from automake.
31757             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31758             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31759           else
31760             # The set of available languages was given in configure.in.
31761             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31762           fi
31763           # Compute POFILES
31764           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31765           # Compute UPDATEPOFILES
31766           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31767           # Compute DUMMYPOFILES
31768           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31769           # Compute GMOFILES
31770           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31771           case "$ac_given_srcdir" in
31772             .) srcdirpre= ;;
31773             *) srcdirpre='$(srcdir)/' ;;
31774           esac
31775           POFILES=
31776           UPDATEPOFILES=
31777           DUMMYPOFILES=
31778           GMOFILES=
31779           for lang in $ALL_LINGUAS; do
31780             POFILES="$POFILES $srcdirpre$lang.po"
31781             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31782             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31783             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31784           done
31785           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31786           # environment variable.
31787           INST_LINGUAS=
31788           if test -n "$ALL_LINGUAS"; then
31789             for presentlang in $ALL_LINGUAS; do
31790               useit=no
31791               if test "%UNSET%" != "$LINGUAS"; then
31792                 desiredlanguages="$LINGUAS"
31793               else
31794                 desiredlanguages="$ALL_LINGUAS"
31795               fi
31796               for desiredlang in $desiredlanguages; do
31797                 # Use the presentlang catalog if desiredlang is
31798                 #   a. equal to presentlang, or
31799                 #   b. a variant of presentlang (because in this case,
31800                 #      presentlang can be used as a fallback for messages
31801                 #      which are not translated in the desiredlang catalog).
31802                 case "$desiredlang" in
31803                   "$presentlang"*) useit=yes;;
31804                 esac
31805               done
31806               if test $useit = yes; then
31807                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31808               fi
31809             done
31810           fi
31811           CATALOGS=
31812           if test -n "$INST_LINGUAS"; then
31813             for lang in $INST_LINGUAS; do
31814               CATALOGS="$CATALOGS $lang.gmo"
31815             done
31816           fi
31817           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31818           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"
31819           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31820             if test -f "$f"; then
31821               case "$f" in
31822                 *.orig | *.bak | *~) ;;
31823                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31824               esac
31825             fi
31826           done
31827         fi
31828         ;;
31829       esac
31830     done ;;
31831     "default":C)
31832  ;;
31833
31834   esac
31835 done # for ac_tag
31836
31837
31838 { (exit 0); exit 0; }
31839 _ACEOF
31840 chmod +x $CONFIG_STATUS
31841 ac_clean_files=$ac_clean_files_save
31842
31843
31844 # configure is writing to config.log, and then calls config.status.
31845 # config.status does its own redirection, appending to config.log.
31846 # Unfortunately, on DOS this fails, as config.log is still kept open
31847 # by configure, so config.status won't be able to write to it; its
31848 # output is simply discarded.  So we exec the FD to /dev/null,
31849 # effectively closing config.log, so it can be properly (re)opened and
31850 # appended to by config.status.  When coming back to configure, we
31851 # need to make the FD available again.
31852 if test "$no_create" != yes; then
31853   ac_cs_success=:
31854   ac_config_status_args=
31855   test "$silent" = yes &&
31856     ac_config_status_args="$ac_config_status_args --quiet"
31857   exec 5>/dev/null
31858   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31859   exec 5>>config.log
31860   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31861   # would make configure fail if this is the last instruction.
31862   $ac_cs_success || { (exit 1); exit 1; }
31863 fi
31864
31865
31866 if test "${support_bat}" = "yes" ; then
31867   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31868   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31869   exit 1
31870   fi
31871
31872   QMAKEBIN="qmake"
31873
31874   if test "x$QMAKEQT4" != "xnone"; then
31875     QMAKEBIN=qmake-qt4
31876   fi
31877
31878
31879
31880   cd src/qt-console
31881   chmod 755 install_conf_file build-depkgs-qt-console
31882   echo "Creating bat Makefile"
31883   $QMAKEBIN
31884   cd ${BUILD_DIR}
31885 fi
31886
31887 echo "Doing make of dependencies"
31888 ${MAKE:-make} depend
31889
31890 cd scripts
31891 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31892 chmod 755 dvd-handler dvd-simulator
31893 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31894 cd ..
31895
31896 c=src/cats
31897
31898 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31899 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31900
31901 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31902 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31903
31904 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31905 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31906
31907 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31908 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31909
31910 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31911 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31912
31913 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31914 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31915
31916 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31917 chmod 755 $c/sqlite
31918 chmod 755 $c/mysql
31919
31920 chmod 755 src/win32/build-depkgs-mingw32
31921
31922
31923
31924 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31925    largefile_support="yes"
31926 fi
31927
31928 #
31929 # A whole lot of hand springs to get the compiler version.
31930 #  This is because gcc changed the output in version 3.0
31931 #
31932 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31933 if test "x${CCVERSION}" = "x" ; then
31934   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31935 fi
31936 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31937 if test x"${CXXVERSION}" = x ; then
31938   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31939 fi
31940
31941 if test "x${subsysdir}" = "x${sbindir}" ; then
31942    echo " "
31943    echo " "
31944    echo "You have set --sbindir and --with-subsys-dir"
31945    echo "  both equal to: ${subsysdir} "
31946    echo "  This is not permitted. Please reconfigure."
31947    echo " "
31948    echo "Aborting configuration ..."
31949    echo " "
31950    echo " "
31951    exit 1
31952 fi
31953
31954 if test "x${db_type}" = "xInternal" ; then
31955    echo " "
31956    echo " "
31957    echo "You have not specified either --enable-client-only or one of the"
31958    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
31959    echo "  This is not permitted. Please reconfigure."
31960    echo " "
31961    echo "Aborting the configuration ..."
31962    echo " "
31963    echo " "
31964    exit 1
31965 fi
31966
31967 echo "
31968 Configuration on `date`:
31969
31970   Host:                       $host -- ${DISTNAME} ${DISTVER}
31971   Bacula version:             ${VERSION} (${DATE})
31972   Source code location:       ${srcdir}
31973   Install binaries:           ${sbindir}
31974   Install config files:       ${sysconfdir}
31975   Scripts directory:          ${scriptdir}
31976   Archive directory:          ${archivedir}
31977   Working directory:          ${working_dir}
31978   PID directory:              ${piddir}
31979   Subsys directory:           ${subsysdir}
31980   Man directory:              ${mandir}
31981   Data directory:             ${datadir}
31982   C Compiler:                 ${CC} ${CCVERSION}
31983   C++ Compiler:               ${CXX} ${CXXVERSION}
31984   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31985   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31986   Libraries:                  ${LIBS}
31987   Statically Linked Tools:    ${support_static_tools}
31988   Statically Linked FD:       ${support_static_fd}
31989   Statically Linked SD:       ${support_static_sd}
31990   Statically Linked DIR:      ${support_static_dir}
31991   Statically Linked CONS:     ${support_static_cons}
31992   Database type:              ${db_type}
31993   Database lib:               ${DB_LIBS}
31994   Database name:              ${db_name}
31995   Database user:              ${db_user}
31996
31997   Job Output Email:           ${job_email}
31998   Traceback Email:            ${dump_email}
31999   SMTP Host Address:          ${smtp_host}
32000
32001   Director Port:              ${dir_port}
32002   File daemon Port:           ${fd_port}
32003   Storage daemon Port:        ${sd_port}
32004
32005   Director User:              ${dir_user}
32006   Director Group:             ${dir_group}
32007   Storage Daemon User:        ${sd_user}
32008   Storage DaemonGroup:        ${sd_group}
32009   File Daemon User:           ${fd_user}
32010   File Daemon Group:          ${fd_group}
32011
32012   SQL binaries Directory      ${SQL_BINDIR}
32013
32014   Large file support:         $largefile_support
32015   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32016   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32017   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32018   TLS support:                ${support_tls}
32019   Encryption support:         ${support_crypto}
32020   ZLIB support:               ${have_zlib}
32021   enable-smartalloc:          ${support_smartalloc}
32022   bat support:                ${support_bat} ${QWT_LDFLAGS}
32023   enable-gnome:               ${support_gnome} ${gnome_version}
32024   enable-bwx-console:         ${support_wx_console} ${wx_version}
32025   enable-tray-monitor:        ${support_tray_monitor}
32026   client-only:                ${build_client_only}
32027   build-dird:                 ${build_dird}
32028   build-stored:               ${build_stored}
32029   ACL support:                ${have_acl}
32030   Python support:             ${support_python} ${PYTHON_LIBS}
32031   Batch insert enabled:       ${support_batch_insert}
32032
32033   " > config.out
32034
32035 cat config.out