]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
ebl fix segfault with debug > 200
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 QWT_LIB
778 QWT
779 WXCONS_CPPFLAGS
780 WXCONS_LDFLAGS
781 WX_DIR
782 TRAY_MONITOR_CPPFLAGS
783 TRAY_MONITOR_LDFLAGS
784 TRAY_MONITOR_DIR
785 TTOOL_LDFLAGS
786 STATIC_FD
787 STATIC_SD
788 STATIC_DIR
789 STATIC_CONS
790 STATIC_GNOME_CONS
791 STATIC_WX_CONS
792 ALL_DIRS
793 DIRD_DIR
794 DIR_TOOLS
795 STORED_DIR
796 CONS_INC
797 CONS_OBJ
798 CONS_SRC
799 CONS_LIBS
800 CONS_LDFLAGS
801 READLINE_SRC
802 PYTHON_LIBS
803 PYTHON_INCDIR
804 OPENSSL_LIBS
805 OPENSSL_INC
806 working_dir
807 archivedir
808 scriptdir
809 dump_email
810 job_email
811 smtp_host
812 piddir
813 subsysdir
814 baseport
815 dir_port
816 fd_port
817 sd_port
818 dir_password
819 fd_password
820 sd_password
821 mon_dir_password
822 mon_fd_password
823 mon_sd_password
824 db_name
825 db_user
826 dir_user
827 dir_group
828 sd_user
829 sd_group
830 fd_user
831 fd_group
832 SBINPERM
833 SQL_LFLAGS
834 SQL_INCLUDE
835 SQL_BINDIR
836 DBI_DBD_DRIVERDIR
837 DB_PROG
838 DB_PROG_LIB
839 cats
840 DB_TYPE
841 GETCONF
842 XMKMF
843 X_CFLAGS
844 X_PRE_LIBS
845 X_LIBS
846 X_EXTRA_LIBS
847 LIBOBJS
848 FDLIBS
849 DEBUG
850 DINCLUDE
851 DLIB
852 DB_LIBS
853 WCFLAGS
854 WLDFLAGS
855 WRAPLIBS
856 OBJLIST
857 hostname
858 TAPEDRIVE
859 PSCMD
860 WIN32
861 MACOSX
862 DISTNAME
863 DISTVER
864 LTLIBOBJS'
865 ac_subst_files='MCOMMON'
866       ac_precious_vars='build_alias
867 host_alias
868 target_alias
869 CC
870 CFLAGS
871 LDFLAGS
872 LIBS
873 CPPFLAGS
874 CXX
875 CXXFLAGS
876 CCC
877 CPP
878 WXCONFIG
879 WXFLAGS
880 XMKMF'
881
882
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933   # If the previous option needs an argument, assign it.
934   if test -n "$ac_prev"; then
935     eval $ac_prev=\$ac_option
936     ac_prev=
937     continue
938   fi
939
940   case $ac_option in
941   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942   *)    ac_optarg=yes ;;
943   esac
944
945   # Accept the important Cygnus configure options, so we can diagnose typos.
946
947   case $ac_dashdash$ac_option in
948   --)
949     ac_dashdash=yes ;;
950
951   -bindir | --bindir | --bindi | --bind | --bin | --bi)
952     ac_prev=bindir ;;
953   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954     bindir=$ac_optarg ;;
955
956   -build | --build | --buil | --bui | --bu)
957     ac_prev=build_alias ;;
958   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
959     build_alias=$ac_optarg ;;
960
961   -cache-file | --cache-file | --cache-fil | --cache-fi \
962   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
963     ac_prev=cache_file ;;
964   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
965   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
966     cache_file=$ac_optarg ;;
967
968   --config-cache | -C)
969     cache_file=config.cache ;;
970
971   -datadir | --datadir | --datadi | --datad)
972     ac_prev=datadir ;;
973   -datadir=* | --datadir=* | --datadi=* | --datad=*)
974     datadir=$ac_optarg ;;
975
976   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
977   | --dataroo | --dataro | --datar)
978     ac_prev=datarootdir ;;
979   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
980   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
981     datarootdir=$ac_optarg ;;
982
983   -disable-* | --disable-*)
984     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985     # Reject names that are not valid shell variable names.
986     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
987       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
988    { (exit 1); exit 1; }; }
989     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
990     eval enable_$ac_feature=no ;;
991
992   -docdir | --docdir | --docdi | --doc | --do)
993     ac_prev=docdir ;;
994   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995     docdir=$ac_optarg ;;
996
997   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998     ac_prev=dvidir ;;
999   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000     dvidir=$ac_optarg ;;
1001
1002   -enable-* | --enable-*)
1003     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1006       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1007    { (exit 1); exit 1; }; }
1008     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1009     eval enable_$ac_feature=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203       { echo "$as_me: error: invalid package name: $ac_package" >&2
1204    { (exit 1); exit 1; }; }
1205     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1206     eval with_$ac_package=\$ac_optarg ;;
1207
1208   -without-* | --without-*)
1209     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210     # Reject names that are not valid shell variable names.
1211     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1212       { echo "$as_me: error: invalid package name: $ac_package" >&2
1213    { (exit 1); exit 1; }; }
1214     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1215     eval with_$ac_package=no ;;
1216
1217   --x)
1218     # Obsolete; use --with-x.
1219     with_x=yes ;;
1220
1221   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222   | --x-incl | --x-inc | --x-in | --x-i)
1223     ac_prev=x_includes ;;
1224   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226     x_includes=$ac_optarg ;;
1227
1228   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230     ac_prev=x_libraries ;;
1231   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233     x_libraries=$ac_optarg ;;
1234
1235   -*) { echo "$as_me: error: unrecognized option: $ac_option
1236 Try \`$0 --help' for more information." >&2
1237    { (exit 1); exit 1; }; }
1238     ;;
1239
1240   *=*)
1241     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1242     # Reject names that are not valid shell variable names.
1243     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1244       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1245    { (exit 1); exit 1; }; }
1246     eval $ac_envvar=\$ac_optarg
1247     export $ac_envvar ;;
1248
1249   *)
1250     # FIXME: should be removed in autoconf 3.0.
1251     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255     ;;
1256
1257   esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262   { echo "$as_me: error: missing argument to $ac_option" >&2
1263    { (exit 1); exit 1; }; }
1264 fi
1265
1266 # Be sure to have absolute directory names.
1267 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268                 datadir sysconfdir sharedstatedir localstatedir includedir \
1269                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270                 libdir localedir mandir
1271 do
1272   eval ac_val=\$$ac_var
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1278    { (exit 1); exit 1; }; }
1279 done
1280
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1284 build=$build_alias
1285 host=$host_alias
1286 target=$target_alias
1287
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290   if test "x$build_alias" = x; then
1291     cross_compiling=maybe
1292     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1293     If a cross compiler is detected then cross compile mode will be used." >&2
1294   elif test "x$build_alias" != "x$host_alias"; then
1295     cross_compiling=yes
1296   fi
1297 fi
1298
1299 ac_tool_prefix=
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302 test "$silent" = yes && exec 6>/dev/null
1303
1304
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308   { echo "$as_me: error: Working directory cannot be determined" >&2
1309    { (exit 1); exit 1; }; }
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   { echo "$as_me: error: pwd does not report name of working directory" >&2
1312    { (exit 1); exit 1; }; }
1313
1314
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317   ac_srcdir_defaulted=yes
1318   # Try the directory containing this script, then the parent directory.
1319   ac_confdir=`$as_dirname -- "$0" ||
1320 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321          X"$0" : 'X\(//\)[^/]' \| \
1322          X"$0" : 'X\(//\)$' \| \
1323          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1324 echo X"$0" |
1325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326             s//\1/
1327             q
1328           }
1329           /^X\(\/\/\)[^/].*/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)$/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\).*/{
1338             s//\1/
1339             q
1340           }
1341           s/.*/./; q'`
1342   srcdir=$ac_confdir
1343   if test ! -r "$srcdir/$ac_unique_file"; then
1344     srcdir=..
1345   fi
1346 else
1347   ac_srcdir_defaulted=no
1348 fi
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355 ac_abs_confdir=`(
1356         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1357    { (exit 1); exit 1; }; }
1358         pwd)`
1359 # When building in place, set srcdir=.
1360 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361   srcdir=.
1362 fi
1363 # Remove unnecessary trailing slashes from srcdir.
1364 # Double slashes in file names in object file debugging info
1365 # mess up M-x gdb in Emacs.
1366 case $srcdir in
1367 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368 esac
1369 for ac_var in $ac_precious_vars; do
1370   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_env_${ac_var}_value=\$${ac_var}
1372   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374 done
1375
1376 #
1377 # Report the --help message.
1378 #
1379 if test "$ac_init_help" = "long"; then
1380   # Omit some internal or obsolete options to make the list less imposing.
1381   # This message is too long to be a string in the A/UX 3.1 sh.
1382   cat <<_ACEOF
1383 \`configure' configures this package to adapt to many kinds of systems.
1384
1385 Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388 VAR=VALUE.  See below for descriptions of some of the useful variables.
1389
1390 Defaults for the options are specified in brackets.
1391
1392 Configuration:
1393   -h, --help              display this help and exit
1394       --help=short        display options specific to this package
1395       --help=recursive    display the short help of all the included packages
1396   -V, --version           display version information and exit
1397   -q, --quiet, --silent   do not print \`checking...' messages
1398       --cache-file=FILE   cache test results in FILE [disabled]
1399   -C, --config-cache      alias for \`--cache-file=config.cache'
1400   -n, --no-create         do not create output files
1401       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1402
1403 Installation directories:
1404   --prefix=PREFIX         install architecture-independent files in PREFIX
1405                           [$ac_default_prefix]
1406   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1407                           [PREFIX]
1408
1409 By default, \`make install' will install all the files in
1410 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1411 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412 for instance \`--prefix=\$HOME'.
1413
1414 For better control, use the options below.
1415
1416 Fine tuning of the installation directories:
1417   --bindir=DIR           user executables [EPREFIX/bin]
1418   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1419   --libexecdir=DIR       program executables [EPREFIX/libexec]
1420   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1421   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1422   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1423   --libdir=DIR           object code libraries [EPREFIX/lib]
1424   --includedir=DIR       C header files [PREFIX/include]
1425   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1426   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1427   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1428   --infodir=DIR          info documentation [DATAROOTDIR/info]
1429   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1430   --mandir=DIR           man documentation [DATAROOTDIR/man]
1431   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1432   --htmldir=DIR          html documentation [DOCDIR]
1433   --dvidir=DIR           dvi documentation [DOCDIR]
1434   --pdfdir=DIR           pdf documentation [DOCDIR]
1435   --psdir=DIR            ps documentation [DOCDIR]
1436 _ACEOF
1437
1438   cat <<\_ACEOF
1439
1440 X features:
1441   --x-includes=DIR    X include files are in DIR
1442   --x-libraries=DIR   X library files are in DIR
1443
1444 System types:
1445   --build=BUILD     configure for building on BUILD [guessed]
1446   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1447 _ACEOF
1448 fi
1449
1450 if test -n "$ac_init_help"; then
1451
1452   cat <<\_ACEOF
1453
1454 Optional Features:
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --disable-nls           do not use Native Language Support
1458   --disable-rpath         do not hardcode runtime library paths
1459   --enable-gnome          enable build of bgnome-console GUI disabled
1460   --enable-bat  enable build of bat Qt4 GUI disabled
1461   --enable-bwx-console     enable build of wxWidgets console disabled
1462   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1463   --enable-smartalloc     enable smartalloc debugging support disabled
1464   --enable-static-tools   enable static tape tools disabled
1465   --enable-static-fd      enable static File daemon disabled
1466   --enable-static-sd      enable static Storage daemon disabled
1467   --enable-static-dir     enable static Director disabled
1468   --enable-static-cons    enable static Console disabled
1469   --enable-client-only    build client (File daemon) only disabled
1470   --enable-build-dird     enable building of dird (Director) enabled
1471   --enable-build-stored   enable building of stored (Storage daemon) enabled
1472  --disable-conio disable conio support enabled
1473
1474   --enable-ipv6             enable ipv6 support enabled
1475
1476   --disable-readline      disable readline support disable
1477
1478         --enable-batch-insert       enable the DB batch insert code disabled
1479  --enable-batch-insert      enable the DB batch insert code disabled
1480   --disable-largefile     omit support for large files
1481
1482 Optional Packages:
1483   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1484   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1485   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1486   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1487   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1488   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1489   --without-libintl-prefix     don't search for libintl in includedir and libdir
1490   --with-included-gettext use the GNU gettext library included here
1491  --with-qwt[=DIR]                 specify qwt library directory
1492  --with-readline[=DIR]         specify readline library directory
1493
1494   --with-python[=DIR]   Include Python support.  DIR is the Python base
1495                           install directory, default is to search through
1496                           a number of common places for the Python files.
1497   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1498   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1499   --with-working-dir=PATH        specify path of Bacula working directory
1500   --with-archivedir=PATH        specify path of SD archive directory
1501   --with-scriptdir=PATH    specify path of Bacula scripts directory
1502   --with-dump-email=EMAIL        dump email address
1503   --with-job-email=EMAIL         job output email address
1504   --with-smtp-host=HOST          SMTP mail host address
1505   --with-pid-dir=PATH            specify location of Bacula pid files
1506   --with-subsys-dir=PATH         specify location of Bacula subsys file
1507   --with-baseport=PORT           specify base port address for daemons
1508   --with-dir-password=PASSWORD   specify Director's password
1509   --with-fd-password=PASSWORD    specify Client's password
1510   --with-sd-password=PASSWORD    specify Storage daemon's password
1511   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1512   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1513   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1514   --with-db-name=DBNAME        specify database name (default bacula)
1515   --with-db-user=UNAME         specify database user (default bacula)
1516   --with-dir-user=USER           specify user for Director daemon
1517   --with-dir-group=GROUP                 specify group for Director daemon
1518   --with-sd-user=USER            specify user for Storage daemon
1519   --with-sd-group=GROUP          specify group for Storage daemon
1520   --with-fd-user=USER            specify user for File daemon
1521   --with-fd-group=GROUP          specify group for File daemon
1522   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1523   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1524                           base install directory, defaults to /usr/local/pgsql
1525
1526   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1527                           install directory, default is to search through
1528                           a number of common places for the MySQL files.
1529
1530   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1531                           install directory, default is to search through
1532                           a number of common places for the MySQL files.
1533
1534   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1535                           install directory, default is to search through
1536                           a number of common places for the SQLite3 files.
1537
1538   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1539                           install directory, default is to search through
1540                           a number of common places for the SQLite files.
1541
1542   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1543                           install directory, default is to search through
1544                           a number of common places for the DBI files.
1545
1546   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1547                           the one DBI driver like Mysql, Postgresql, others.
1548                           Default is to not configure any driver.
1549   --with-x                use the X Window System
1550
1551 Some influential environment variables:
1552   CC          C compiler command
1553   CFLAGS      C compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   LIBS        libraries to pass to the linker, e.g. -l<library>
1557   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558               you have headers in a nonstandard directory <include dir>
1559   CXX         C++ compiler command
1560   CXXFLAGS    C++ compiler flags
1561   CPP         C preprocessor
1562   WXCONFIG    wx-config command. On some systems, you must set it to
1563               wx-config-2.6 to use wxWidgets 2.6.
1564   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1565   XMKMF       Path to xmkmf, Makefile generator for X Window System
1566
1567 Use these variables to override the choices made by `configure' or to help
1568 it to find libraries and programs with nonstandard names/locations.
1569
1570 _ACEOF
1571 ac_status=$?
1572 fi
1573
1574 if test "$ac_init_help" = "recursive"; then
1575   # If there are subdirs, report their specific --help.
1576   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1577     test -d "$ac_dir" || continue
1578     ac_builddir=.
1579
1580 case "$ac_dir" in
1581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 *)
1583   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1584   # A ".." for each directory in $ac_dir_suffix.
1585   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1586   case $ac_top_builddir_sub in
1587   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1589   esac ;;
1590 esac
1591 ac_abs_top_builddir=$ac_pwd
1592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593 # for backward compatibility:
1594 ac_top_builddir=$ac_top_build_prefix
1595
1596 case $srcdir in
1597   .)  # We are building in place.
1598     ac_srcdir=.
1599     ac_top_srcdir=$ac_top_builddir_sub
1600     ac_abs_top_srcdir=$ac_pwd ;;
1601   [\\/]* | ?:[\\/]* )  # Absolute name.
1602     ac_srcdir=$srcdir$ac_dir_suffix;
1603     ac_top_srcdir=$srcdir
1604     ac_abs_top_srcdir=$srcdir ;;
1605   *) # Relative name.
1606     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607     ac_top_srcdir=$ac_top_build_prefix$srcdir
1608     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1609 esac
1610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611
1612     cd "$ac_dir" || { ac_status=$?; continue; }
1613     # Check for guested configure.
1614     if test -f "$ac_srcdir/configure.gnu"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617     elif test -f "$ac_srcdir/configure"; then
1618       echo &&
1619       $SHELL "$ac_srcdir/configure" --help=recursive
1620     else
1621       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1622     fi || ac_status=$?
1623     cd "$ac_pwd" || { ac_status=$?; break; }
1624   done
1625 fi
1626
1627 test -n "$ac_init_help" && exit $ac_status
1628 if $ac_init_version; then
1629   cat <<\_ACEOF
1630 configure
1631 generated by GNU Autoconf 2.61
1632
1633 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1634 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1635 This configure script is free software; the Free Software Foundation
1636 gives unlimited permission to copy, distribute and modify it.
1637 _ACEOF
1638   exit
1639 fi
1640 cat >config.log <<_ACEOF
1641 This file contains any messages produced by compilers while
1642 running configure, to aid debugging if configure makes a mistake.
1643
1644 It was created by $as_me, which was
1645 generated by GNU Autoconf 2.61.  Invocation command line was
1646
1647   $ $0 $@
1648
1649 _ACEOF
1650 exec 5>>config.log
1651 {
1652 cat <<_ASUNAME
1653 ## --------- ##
1654 ## Platform. ##
1655 ## --------- ##
1656
1657 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1658 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1659 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1660 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1661 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1662
1663 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1664 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1665
1666 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1667 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1668 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1669 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1670 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1671 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1672 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1673
1674 _ASUNAME
1675
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677 for as_dir in $PATH
1678 do
1679   IFS=$as_save_IFS
1680   test -z "$as_dir" && as_dir=.
1681   echo "PATH: $as_dir"
1682 done
1683 IFS=$as_save_IFS
1684
1685 } >&5
1686
1687 cat >&5 <<_ACEOF
1688
1689
1690 ## ----------- ##
1691 ## Core tests. ##
1692 ## ----------- ##
1693
1694 _ACEOF
1695
1696
1697 # Keep a trace of the command line.
1698 # Strip out --no-create and --no-recursion so they do not pile up.
1699 # Strip out --silent because we don't want to record it for future runs.
1700 # Also quote any args containing shell meta-characters.
1701 # Make two passes to allow for proper duplicate-argument suppression.
1702 ac_configure_args=
1703 ac_configure_args0=
1704 ac_configure_args1=
1705 ac_must_keep_next=false
1706 for ac_pass in 1 2
1707 do
1708   for ac_arg
1709   do
1710     case $ac_arg in
1711     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1712     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1713     | -silent | --silent | --silen | --sile | --sil)
1714       continue ;;
1715     *\'*)
1716       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1717     esac
1718     case $ac_pass in
1719     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1720     2)
1721       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1722       if test $ac_must_keep_next = true; then
1723         ac_must_keep_next=false # Got value, back to normal.
1724       else
1725         case $ac_arg in
1726           *=* | --config-cache | -C | -disable-* | --disable-* \
1727           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1728           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1729           | -with-* | --with-* | -without-* | --without-* | --x)
1730             case "$ac_configure_args0 " in
1731               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1732             esac
1733             ;;
1734           -* ) ac_must_keep_next=true ;;
1735         esac
1736       fi
1737       ac_configure_args="$ac_configure_args '$ac_arg'"
1738       ;;
1739     esac
1740   done
1741 done
1742 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1743 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1744
1745 # When interrupted or exit'd, cleanup temporary files, and complete
1746 # config.log.  We remove comments because anyway the quotes in there
1747 # would cause problems or look ugly.
1748 # WARNING: Use '\'' to represent an apostrophe within the trap.
1749 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1750 trap 'exit_status=$?
1751   # Save into config.log some information that might help in debugging.
1752   {
1753     echo
1754
1755     cat <<\_ASBOX
1756 ## ---------------- ##
1757 ## Cache variables. ##
1758 ## ---------------- ##
1759 _ASBOX
1760     echo
1761     # The following way of writing the cache mishandles newlines in values,
1762 (
1763   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1764     eval ac_val=\$$ac_var
1765     case $ac_val in #(
1766     *${as_nl}*)
1767       case $ac_var in #(
1768       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1769 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1770       esac
1771       case $ac_var in #(
1772       _ | IFS | as_nl) ;; #(
1773       *) $as_unset $ac_var ;;
1774       esac ;;
1775     esac
1776   done
1777   (set) 2>&1 |
1778     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779     *${as_nl}ac_space=\ *)
1780       sed -n \
1781         "s/'\''/'\''\\\\'\'''\''/g;
1782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783       ;; #(
1784     *)
1785       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786       ;;
1787     esac |
1788     sort
1789 )
1790     echo
1791
1792     cat <<\_ASBOX
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1796 _ASBOX
1797     echo
1798     for ac_var in $ac_subst_vars
1799     do
1800       eval ac_val=\$$ac_var
1801       case $ac_val in
1802       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803       esac
1804       echo "$ac_var='\''$ac_val'\''"
1805     done | sort
1806     echo
1807
1808     if test -n "$ac_subst_files"; then
1809       cat <<\_ASBOX
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1813 _ASBOX
1814       echo
1815       for ac_var in $ac_subst_files
1816       do
1817         eval ac_val=\$$ac_var
1818         case $ac_val in
1819         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820         esac
1821         echo "$ac_var='\''$ac_val'\''"
1822       done | sort
1823       echo
1824     fi
1825
1826     if test -s confdefs.h; then
1827       cat <<\_ASBOX
1828 ## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##
1831 _ASBOX
1832       echo
1833       cat confdefs.h
1834       echo
1835     fi
1836     test "$ac_signal" != 0 &&
1837       echo "$as_me: caught signal $ac_signal"
1838     echo "$as_me: exit $exit_status"
1839   } >&5
1840   rm -f core *.core core.conftest.* &&
1841     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842     exit $exit_status
1843 ' 0
1844 for ac_signal in 1 2 13 15; do
1845   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 done
1847 ac_signal=0
1848
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1851
1852 # Predefined preprocessor variables.
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 _ACEOF
1877
1878
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer explicitly selected file to automatically selected ones.
1881 if test -n "$CONFIG_SITE"; then
1882   set x "$CONFIG_SITE"
1883 elif test "x$prefix" != xNONE; then
1884   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1885 else
1886   set x "$ac_default_prefix/share/config.site" \
1887         "$ac_default_prefix/etc/config.site"
1888 fi
1889 shift
1890 for ac_site_file
1891 do
1892   if test -r "$ac_site_file"; then
1893     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1894 echo "$as_me: loading site script $ac_site_file" >&6;}
1895     sed 's/^/| /' "$ac_site_file" >&5
1896     . "$ac_site_file"
1897   fi
1898 done
1899
1900 if test -r "$cache_file"; then
1901   # Some versions of bash will fail to source /dev/null (special
1902   # files actually), so we avoid doing that.
1903   if test -f "$cache_file"; then
1904     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1905 echo "$as_me: loading cache $cache_file" >&6;}
1906     case $cache_file in
1907       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1908       *)                      . "./$cache_file";;
1909     esac
1910   fi
1911 else
1912   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1913 echo "$as_me: creating cache $cache_file" >&6;}
1914   >$cache_file
1915 fi
1916
1917 # Check that the precious variables saved in the cache have kept the same
1918 # value.
1919 ac_cache_corrupted=false
1920 for ac_var in $ac_precious_vars; do
1921   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1922   eval ac_new_set=\$ac_env_${ac_var}_set
1923   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1924   eval ac_new_val=\$ac_env_${ac_var}_value
1925   case $ac_old_set,$ac_new_set in
1926     set,)
1927       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1928 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,set)
1931       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1932 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1933       ac_cache_corrupted=: ;;
1934     ,);;
1935     *)
1936       if test "x$ac_old_val" != "x$ac_new_val"; then
1937         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1938 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1939         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1940 echo "$as_me:   former value:  $ac_old_val" >&2;}
1941         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1942 echo "$as_me:   current value: $ac_new_val" >&2;}
1943         ac_cache_corrupted=:
1944       fi;;
1945   esac
1946   # Pass precious variables to config.status.
1947   if test "$ac_new_set" = set; then
1948     case $ac_new_val in
1949     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1950     *) ac_arg=$ac_var=$ac_new_val ;;
1951     esac
1952     case " $ac_configure_args " in
1953       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1954       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1955     esac
1956   fi
1957 done
1958 if $ac_cache_corrupted; then
1959   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1960 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1961   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1962 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982 ac_ext=c
1983 ac_cpp='$CPP $CPPFLAGS'
1984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1987
1988
1989 BUILD_DIR=`pwd`
1990 cd ..
1991 TOP_DIR=`pwd`
1992 cd ${BUILD_DIR}
1993
1994
1995 ac_aux_dir=
1996 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1997   if test -f "$ac_dir/install-sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install-sh -c"
2000     break
2001   elif test -f "$ac_dir/install.sh"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/install.sh -c"
2004     break
2005   elif test -f "$ac_dir/shtool"; then
2006     ac_aux_dir=$ac_dir
2007     ac_install_sh="$ac_aux_dir/shtool install -c"
2008     break
2009   fi
2010 done
2011 if test -z "$ac_aux_dir"; then
2012   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2013 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2014    { (exit 1); exit 1; }; }
2015 fi
2016
2017 # These three variables are undocumented and unsupported,
2018 # and are intended to be withdrawn in a future Autoconf release.
2019 # They can cause serious problems if a builder's source tree is in a directory
2020 # whose full name contains unusual characters.
2021 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2022 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2023 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2024
2025
2026 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2027
2028
2029
2030
2031
2032 for ac_prog in true
2033 do
2034   # Extract the first word of "$ac_prog", so it can be a program name with args.
2035 set dummy $ac_prog; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2039   echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041   case $TRUEPRG in
2042   [\\/]* | ?:[\\/]*)
2043   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2044   ;;
2045   *)
2046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2047 for as_dir in $PATH
2048 do
2049   IFS=$as_save_IFS
2050   test -z "$as_dir" && as_dir=.
2051   for ac_exec_ext in '' $ac_executable_extensions; do
2052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2054     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055     break 2
2056   fi
2057 done
2058 done
2059 IFS=$as_save_IFS
2060
2061   ;;
2062 esac
2063 fi
2064 TRUEPRG=$ac_cv_path_TRUEPRG
2065 if test -n "$TRUEPRG"; then
2066   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2067 echo "${ECHO_T}$TRUEPRG" >&6; }
2068 else
2069   { echo "$as_me:$LINENO: result: no" >&5
2070 echo "${ECHO_T}no" >&6; }
2071 fi
2072
2073
2074   test -n "$TRUEPRG" && break
2075 done
2076 test -n "$TRUEPRG" || TRUEPRG=":"
2077
2078 for ac_prog in false
2079 do
2080   # Extract the first word of "$ac_prog", so it can be a program name with args.
2081 set dummy $ac_prog; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2085   echo $ECHO_N "(cached) $ECHO_C" >&6
2086 else
2087   case $FALSEPRG in
2088   [\\/]* | ?:[\\/]*)
2089   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2090   ;;
2091   *)
2092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2094 do
2095   IFS=$as_save_IFS
2096   test -z "$as_dir" && as_dir=.
2097   for ac_exec_ext in '' $ac_executable_extensions; do
2098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101     break 2
2102   fi
2103 done
2104 done
2105 IFS=$as_save_IFS
2106
2107   ;;
2108 esac
2109 fi
2110 FALSEPRG=$ac_cv_path_FALSEPRG
2111 if test -n "$FALSEPRG"; then
2112   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2113 echo "${ECHO_T}$FALSEPRG" >&6; }
2114 else
2115   { echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6; }
2117 fi
2118
2119
2120   test -n "$FALSEPRG" && break
2121 done
2122 test -n "$FALSEPRG" || FALSEPRG=":"
2123
2124
2125
2126 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2127 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2128 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2129 echo "configuring for bacula $VERSION ($DATE)"
2130
2131
2132
2133 ac_ext=c
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138 if test -n "$ac_tool_prefix"; then
2139   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143 if test "${ac_cv_prog_CC+set}" = set; then
2144   echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146   if test -n "$CC"; then
2147   ac_cv_prog_CC="$CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2151 do
2152   IFS=$as_save_IFS
2153   test -z "$as_dir" && as_dir=.
2154   for ac_exec_ext in '' $ac_executable_extensions; do
2155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158     break 2
2159   fi
2160 done
2161 done
2162 IFS=$as_save_IFS
2163
2164 fi
2165 fi
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168   { echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6; }
2170 else
2171   { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2173 fi
2174
2175
2176 fi
2177 if test -z "$ac_cv_prog_CC"; then
2178   ac_ct_CC=$CC
2179   # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2184   echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186   if test -n "$ac_ct_CC"; then
2187   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2188 else
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194   for ac_exec_ext in '' $ac_executable_extensions; do
2195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196     ac_cv_prog_ac_ct_CC="gcc"
2197     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198     break 2
2199   fi
2200 done
2201 done
2202 IFS=$as_save_IFS
2203
2204 fi
2205 fi
2206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2207 if test -n "$ac_ct_CC"; then
2208   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2209 echo "${ECHO_T}$ac_ct_CC" >&6; }
2210 else
2211   { echo "$as_me:$LINENO: result: no" >&5
2212 echo "${ECHO_T}no" >&6; }
2213 fi
2214
2215   if test "x$ac_ct_CC" = x; then
2216     CC=""
2217   else
2218     case $cross_compiling:$ac_tool_warned in
2219 yes:)
2220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2221 whose name does not start with the host triplet.  If you think this
2222 configuration is useful to you, please write to autoconf@gnu.org." >&5
2223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2224 whose name does not start with the host triplet.  If you think this
2225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2226 ac_tool_warned=yes ;;
2227 esac
2228     CC=$ac_ct_CC
2229   fi
2230 else
2231   CC="$ac_cv_prog_CC"
2232 fi
2233
2234 if test -z "$CC"; then
2235           if test -n "$ac_tool_prefix"; then
2236     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2237 set dummy ${ac_tool_prefix}cc; ac_word=$2
2238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2240 if test "${ac_cv_prog_CC+set}" = set; then
2241   echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243   if test -n "$CC"; then
2244   ac_cv_prog_CC="$CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249   IFS=$as_save_IFS
2250   test -z "$as_dir" && as_dir=.
2251   for ac_exec_ext in '' $ac_executable_extensions; do
2252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253     ac_cv_prog_CC="${ac_tool_prefix}cc"
2254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255     break 2
2256   fi
2257 done
2258 done
2259 IFS=$as_save_IFS
2260
2261 fi
2262 fi
2263 CC=$ac_cv_prog_CC
2264 if test -n "$CC"; then
2265   { echo "$as_me:$LINENO: result: $CC" >&5
2266 echo "${ECHO_T}$CC" >&6; }
2267 else
2268   { echo "$as_me:$LINENO: result: no" >&5
2269 echo "${ECHO_T}no" >&6; }
2270 fi
2271
2272
2273   fi
2274 fi
2275 if test -z "$CC"; then
2276   # Extract the first word of "cc", so it can be a program name with args.
2277 set dummy cc; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281   echo $ECHO_N "(cached) $ECHO_C" >&6
2282 else
2283   if test -n "$CC"; then
2284   ac_cv_prog_CC="$CC" # Let the user override the test.
2285 else
2286   ac_prog_rejected=no
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2289 do
2290   IFS=$as_save_IFS
2291   test -z "$as_dir" && as_dir=.
2292   for ac_exec_ext in '' $ac_executable_extensions; do
2293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2294     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2295        ac_prog_rejected=yes
2296        continue
2297      fi
2298     ac_cv_prog_CC="cc"
2299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300     break 2
2301   fi
2302 done
2303 done
2304 IFS=$as_save_IFS
2305
2306 if test $ac_prog_rejected = yes; then
2307   # We found a bogon in the path, so make sure we never use it.
2308   set dummy $ac_cv_prog_CC
2309   shift
2310   if test $# != 0; then
2311     # We chose a different compiler from the bogus one.
2312     # However, it has the same basename, so the bogon will be chosen
2313     # first if we set CC to just the basename; use the full file name.
2314     shift
2315     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2316   fi
2317 fi
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322   { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2324 else
2325   { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2328
2329
2330 fi
2331 if test -z "$CC"; then
2332   if test -n "$ac_tool_prefix"; then
2333   for ac_prog in cl.exe
2334   do
2335     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_CC+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   if test -n "$CC"; then
2343   ac_cv_prog_CC="$CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2352     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 CC=$ac_cv_prog_CC
2363 if test -n "$CC"; then
2364   { echo "$as_me:$LINENO: result: $CC" >&5
2365 echo "${ECHO_T}$CC" >&6; }
2366 else
2367   { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2369 fi
2370
2371
2372     test -n "$CC" && break
2373   done
2374 fi
2375 if test -z "$CC"; then
2376   ac_ct_CC=$CC
2377   for ac_prog in cl.exe
2378 do
2379   # Extract the first word of "$ac_prog", so it can be a program name with args.
2380 set dummy $ac_prog; ac_word=$2
2381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2383 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2384   echo $ECHO_N "(cached) $ECHO_C" >&6
2385 else
2386   if test -n "$ac_ct_CC"; then
2387   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2388 else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390 for as_dir in $PATH
2391 do
2392   IFS=$as_save_IFS
2393   test -z "$as_dir" && as_dir=.
2394   for ac_exec_ext in '' $ac_executable_extensions; do
2395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2396     ac_cv_prog_ac_ct_CC="$ac_prog"
2397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2398     break 2
2399   fi
2400 done
2401 done
2402 IFS=$as_save_IFS
2403
2404 fi
2405 fi
2406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2407 if test -n "$ac_ct_CC"; then
2408   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2409 echo "${ECHO_T}$ac_ct_CC" >&6; }
2410 else
2411   { echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6; }
2413 fi
2414
2415
2416   test -n "$ac_ct_CC" && break
2417 done
2418
2419   if test "x$ac_ct_CC" = x; then
2420     CC=""
2421   else
2422     case $cross_compiling:$ac_tool_warned in
2423 yes:)
2424 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2425 whose name does not start with the host triplet.  If you think this
2426 configuration is useful to you, please write to autoconf@gnu.org." >&5
2427 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2428 whose name does not start with the host triplet.  If you think this
2429 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2430 ac_tool_warned=yes ;;
2431 esac
2432     CC=$ac_ct_CC
2433   fi
2434 fi
2435
2436 fi
2437
2438
2439 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2440 See \`config.log' for more details." >&5
2441 echo "$as_me: error: no acceptable C compiler found in \$PATH
2442 See \`config.log' for more details." >&2;}
2443    { (exit 1); exit 1; }; }
2444
2445 # Provide some information about the compiler.
2446 echo "$as_me:$LINENO: checking for C compiler version" >&5
2447 ac_compiler=`set X $ac_compile; echo $2`
2448 { (ac_try="$ac_compiler --version >&5"
2449 case "(($ac_try" in
2450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451   *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454   (eval "$ac_compiler --version >&5") 2>&5
2455   ac_status=$?
2456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457   (exit $ac_status); }
2458 { (ac_try="$ac_compiler -v >&5"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464   (eval "$ac_compiler -v >&5") 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }
2468 { (ac_try="$ac_compiler -V >&5"
2469 case "(($ac_try" in
2470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2471   *) ac_try_echo=$ac_try;;
2472 esac
2473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2474   (eval "$ac_compiler -V >&5") 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }
2478
2479 cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485
2486 int
2487 main ()
2488 {
2489
2490   ;
2491   return 0;
2492 }
2493 _ACEOF
2494 ac_clean_files_save=$ac_clean_files
2495 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2496 # Try to create an executable without -o first, disregard a.out.
2497 # It will help us diagnose broken compilers, and finding out an intuition
2498 # of exeext.
2499 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2500 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2501 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2502 #
2503 # List of possible output files, starting from the most likely.
2504 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2505 # only as a last resort.  b.out is created by i960 compilers.
2506 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2507 #
2508 # The IRIX 6 linker writes into existing files which may not be
2509 # executable, retaining their permissions.  Remove them first so a
2510 # subsequent execution test works.
2511 ac_rmfiles=
2512 for ac_file in $ac_files
2513 do
2514   case $ac_file in
2515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2516     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2517   esac
2518 done
2519 rm -f $ac_rmfiles
2520
2521 if { (ac_try="$ac_link_default"
2522 case "(($ac_try" in
2523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524   *) ac_try_echo=$ac_try;;
2525 esac
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527   (eval "$ac_link_default") 2>&5
2528   ac_status=$?
2529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530   (exit $ac_status); }; then
2531   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2532 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2533 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2534 # so that the user can short-circuit this test for compilers unknown to
2535 # Autoconf.
2536 for ac_file in $ac_files ''
2537 do
2538   test -f "$ac_file" || continue
2539   case $ac_file in
2540     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2541         ;;
2542     [ab].out )
2543         # We found the default executable, but exeext='' is most
2544         # certainly right.
2545         break;;
2546     *.* )
2547         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2548         then :; else
2549            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550         fi
2551         # We set ac_cv_exeext here because the later test for it is not
2552         # safe: cross compilers may not add the suffix if given an `-o'
2553         # argument, so we may need to know it at that point already.
2554         # Even if this section looks crufty: it has the advantage of
2555         # actually working.
2556         break;;
2557     * )
2558         break;;
2559   esac
2560 done
2561 test "$ac_cv_exeext" = no && ac_cv_exeext=
2562
2563 else
2564   ac_file=''
2565 fi
2566
2567 { echo "$as_me:$LINENO: result: $ac_file" >&5
2568 echo "${ECHO_T}$ac_file" >&6; }
2569 if test -z "$ac_file"; then
2570   echo "$as_me: failed program was:" >&5
2571 sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: C compiler cannot create executables
2576 See \`config.log' for more details." >&2;}
2577    { (exit 77); exit 77; }; }
2578 fi
2579
2580 ac_exeext=$ac_cv_exeext
2581
2582 # Check that the compiler produces executables we can run.  If not, either
2583 # the compiler is broken, or we cross compile.
2584 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2585 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2586 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2587 # If not cross compiling, check that we can run a simple program.
2588 if test "$cross_compiling" != yes; then
2589   if { ac_try='./$ac_file'
2590   { (case "(($ac_try" in
2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592   *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595   (eval "$ac_try") 2>&5
2596   ac_status=$?
2597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598   (exit $ac_status); }; }; then
2599     cross_compiling=no
2600   else
2601     if test "$cross_compiling" = maybe; then
2602         cross_compiling=yes
2603     else
2604         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2605 If you meant to cross compile, use \`--host'.
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: cannot run C compiled programs.
2608 If you meant to cross compile, use \`--host'.
2609 See \`config.log' for more details." >&2;}
2610    { (exit 1); exit 1; }; }
2611     fi
2612   fi
2613 fi
2614 { echo "$as_me:$LINENO: result: yes" >&5
2615 echo "${ECHO_T}yes" >&6; }
2616
2617 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2618 ac_clean_files=$ac_clean_files_save
2619 # Check that the compiler produces executables we can run.  If not, either
2620 # the compiler is broken, or we cross compile.
2621 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2622 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2623 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2624 echo "${ECHO_T}$cross_compiling" >&6; }
2625
2626 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2627 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2628 if { (ac_try="$ac_link"
2629 case "(($ac_try" in
2630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631   *) ac_try_echo=$ac_try;;
2632 esac
2633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2634   (eval "$ac_link") 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; then
2638   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2641 # `rm'.
2642 for ac_file in conftest.exe conftest conftest.*; do
2643   test -f "$ac_file" || continue
2644   case $ac_file in
2645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2646     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647           break;;
2648     * ) break;;
2649   esac
2650 done
2651 else
2652   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2653 See \`config.log' for more details." >&5
2654 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2655 See \`config.log' for more details." >&2;}
2656    { (exit 1); exit 1; }; }
2657 fi
2658
2659 rm -f conftest$ac_cv_exeext
2660 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2661 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2662
2663 rm -f conftest.$ac_ext
2664 EXEEXT=$ac_cv_exeext
2665 ac_exeext=$EXEEXT
2666 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2667 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2668 if test "${ac_cv_objext+set}" = set; then
2669   echo $ECHO_N "(cached) $ECHO_C" >&6
2670 else
2671   cat >conftest.$ac_ext <<_ACEOF
2672 /* confdefs.h.  */
2673 _ACEOF
2674 cat confdefs.h >>conftest.$ac_ext
2675 cat >>conftest.$ac_ext <<_ACEOF
2676 /* end confdefs.h.  */
2677
2678 int
2679 main ()
2680 {
2681
2682   ;
2683   return 0;
2684 }
2685 _ACEOF
2686 rm -f conftest.o conftest.obj
2687 if { (ac_try="$ac_compile"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693   (eval "$ac_compile") 2>&5
2694   ac_status=$?
2695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696   (exit $ac_status); }; then
2697   for ac_file in conftest.o conftest.obj conftest.*; do
2698   test -f "$ac_file" || continue;
2699   case $ac_file in
2700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2701     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2702        break;;
2703   esac
2704 done
2705 else
2706   echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2708
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713    { (exit 1); exit 1; }; }
2714 fi
2715
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2717 fi
2718 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6; }
2720 OBJEXT=$ac_cv_objext
2721 ac_objext=$OBJEXT
2722 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725   echo $ECHO_N "(cached) $ECHO_C" >&6
2726 else
2727   cat >conftest.$ac_ext <<_ACEOF
2728 /* confdefs.h.  */
2729 _ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h.  */
2733
2734 int
2735 main ()
2736 {
2737 #ifndef __GNUC__
2738        choke me
2739 #endif
2740
2741   ;
2742   return 0;
2743 }
2744 _ACEOF
2745 rm -f conftest.$ac_objext
2746 if { (ac_try="$ac_compile"
2747 case "(($ac_try" in
2748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749   *) ac_try_echo=$ac_try;;
2750 esac
2751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752   (eval "$ac_compile") 2>conftest.er1
2753   ac_status=$?
2754   grep -v '^ *+' conftest.er1 >conftest.err
2755   rm -f conftest.er1
2756   cat conftest.err >&5
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); } && {
2759          test -z "$ac_c_werror_flag" ||
2760          test ! -s conftest.err
2761        } && test -s conftest.$ac_objext; then
2762   ac_compiler_gnu=yes
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767         ac_compiler_gnu=no
2768 fi
2769
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2772
2773 fi
2774 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2775 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2776 GCC=`test $ac_compiler_gnu = yes && echo yes`
2777 ac_test_CFLAGS=${CFLAGS+set}
2778 ac_save_CFLAGS=$CFLAGS
2779 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   ac_save_c_werror_flag=$ac_c_werror_flag
2785    ac_c_werror_flag=yes
2786    ac_cv_prog_cc_g=no
2787    CFLAGS="-g"
2788    cat >conftest.$ac_ext <<_ACEOF
2789 /* confdefs.h.  */
2790 _ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h.  */
2794
2795 int
2796 main ()
2797 {
2798
2799   ;
2800   return 0;
2801 }
2802 _ACEOF
2803 rm -f conftest.$ac_objext
2804 if { (ac_try="$ac_compile"
2805 case "(($ac_try" in
2806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2807   *) ac_try_echo=$ac_try;;
2808 esac
2809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2810   (eval "$ac_compile") 2>conftest.er1
2811   ac_status=$?
2812   grep -v '^ *+' conftest.er1 >conftest.err
2813   rm -f conftest.er1
2814   cat conftest.err >&5
2815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2816   (exit $ac_status); } && {
2817          test -z "$ac_c_werror_flag" ||
2818          test ! -s conftest.err
2819        } && test -s conftest.$ac_objext; then
2820   ac_cv_prog_cc_g=yes
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825         CFLAGS=""
2826       cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832
2833 int
2834 main ()
2835 {
2836
2837   ;
2838   return 0;
2839 }
2840 _ACEOF
2841 rm -f conftest.$ac_objext
2842 if { (ac_try="$ac_compile"
2843 case "(($ac_try" in
2844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845   *) ac_try_echo=$ac_try;;
2846 esac
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848   (eval "$ac_compile") 2>conftest.er1
2849   ac_status=$?
2850   grep -v '^ *+' conftest.er1 >conftest.err
2851   rm -f conftest.er1
2852   cat conftest.err >&5
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } && {
2855          test -z "$ac_c_werror_flag" ||
2856          test ! -s conftest.err
2857        } && test -s conftest.$ac_objext; then
2858   :
2859 else
2860   echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2862
2863         ac_c_werror_flag=$ac_save_c_werror_flag
2864          CFLAGS="-g"
2865          cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h.  */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h.  */
2871
2872 int
2873 main ()
2874 {
2875
2876   ;
2877   return 0;
2878 }
2879 _ACEOF
2880 rm -f conftest.$ac_objext
2881 if { (ac_try="$ac_compile"
2882 case "(($ac_try" in
2883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2884   *) ac_try_echo=$ac_try;;
2885 esac
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887   (eval "$ac_compile") 2>conftest.er1
2888   ac_status=$?
2889   grep -v '^ *+' conftest.er1 >conftest.err
2890   rm -f conftest.er1
2891   cat conftest.err >&5
2892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2893   (exit $ac_status); } && {
2894          test -z "$ac_c_werror_flag" ||
2895          test ! -s conftest.err
2896        } && test -s conftest.$ac_objext; then
2897   ac_cv_prog_cc_g=yes
2898 else
2899   echo "$as_me: failed program was:" >&5
2900 sed 's/^/| /' conftest.$ac_ext >&5
2901
2902
2903 fi
2904
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 fi
2907
2908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2909 fi
2910
2911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912    ac_c_werror_flag=$ac_save_c_werror_flag
2913 fi
2914 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2915 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2916 if test "$ac_test_CFLAGS" = set; then
2917   CFLAGS=$ac_save_CFLAGS
2918 elif test $ac_cv_prog_cc_g = yes; then
2919   if test "$GCC" = yes; then
2920     CFLAGS="-g -O2"
2921   else
2922     CFLAGS="-g"
2923   fi
2924 else
2925   if test "$GCC" = yes; then
2926     CFLAGS="-O2"
2927   else
2928     CFLAGS=
2929   fi
2930 fi
2931 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2932 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2933 if test "${ac_cv_prog_cc_c89+set}" = set; then
2934   echo $ECHO_N "(cached) $ECHO_C" >&6
2935 else
2936   ac_cv_prog_cc_c89=no
2937 ac_save_CC=$CC
2938 cat >conftest.$ac_ext <<_ACEOF
2939 /* confdefs.h.  */
2940 _ACEOF
2941 cat confdefs.h >>conftest.$ac_ext
2942 cat >>conftest.$ac_ext <<_ACEOF
2943 /* end confdefs.h.  */
2944 #include <stdarg.h>
2945 #include <stdio.h>
2946 #include <sys/types.h>
2947 #include <sys/stat.h>
2948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2949 struct buf { int x; };
2950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2951 static char *e (p, i)
2952      char **p;
2953      int i;
2954 {
2955   return p[i];
2956 }
2957 static char *f (char * (*g) (char **, int), char **p, ...)
2958 {
2959   char *s;
2960   va_list v;
2961   va_start (v,p);
2962   s = g (p, va_arg (v,int));
2963   va_end (v);
2964   return s;
2965 }
2966
2967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2968    function prototypes and stuff, but not '\xHH' hex character constants.
2969    These don't provoke an error unfortunately, instead are silently treated
2970    as 'x'.  The following induces an error, until -std is added to get
2971    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2972    array size at least.  It's necessary to write '\x00'==0 to get something
2973    that's true only with -std.  */
2974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2975
2976 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2977    inside strings and character constants.  */
2978 #define FOO(x) 'x'
2979 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2980
2981 int test (int i, double x);
2982 struct s1 {int (*f) (int a);};
2983 struct s2 {int (*f) (double a);};
2984 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2985 int argc;
2986 char **argv;
2987 int
2988 main ()
2989 {
2990 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2996         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2997 do
2998   CC="$ac_save_CC $ac_arg"
2999   rm -f conftest.$ac_objext
3000 if { (ac_try="$ac_compile"
3001 case "(($ac_try" in
3002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003   *) ac_try_echo=$ac_try;;
3004 esac
3005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006   (eval "$ac_compile") 2>conftest.er1
3007   ac_status=$?
3008   grep -v '^ *+' conftest.er1 >conftest.err
3009   rm -f conftest.er1
3010   cat conftest.err >&5
3011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012   (exit $ac_status); } && {
3013          test -z "$ac_c_werror_flag" ||
3014          test ! -s conftest.err
3015        } && test -s conftest.$ac_objext; then
3016   ac_cv_prog_cc_c89=$ac_arg
3017 else
3018   echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3020
3021
3022 fi
3023
3024 rm -f core conftest.err conftest.$ac_objext
3025   test "x$ac_cv_prog_cc_c89" != "xno" && break
3026 done
3027 rm -f conftest.$ac_ext
3028 CC=$ac_save_CC
3029
3030 fi
3031 # AC_CACHE_VAL
3032 case "x$ac_cv_prog_cc_c89" in
3033   x)
3034     { echo "$as_me:$LINENO: result: none needed" >&5
3035 echo "${ECHO_T}none needed" >&6; } ;;
3036   xno)
3037     { echo "$as_me:$LINENO: result: unsupported" >&5
3038 echo "${ECHO_T}unsupported" >&6; } ;;
3039   *)
3040     CC="$CC $ac_cv_prog_cc_c89"
3041     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3042 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3043 esac
3044
3045
3046 ac_ext=c
3047 ac_cpp='$CPP $CPPFLAGS'
3048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051
3052 ac_ext=cpp
3053 ac_cpp='$CXXCPP $CPPFLAGS'
3054 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3057 if test -z "$CXX"; then
3058   if test -n "$CCC"; then
3059     CXX=$CCC
3060   else
3061     if test -n "$ac_tool_prefix"; then
3062   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3063   do
3064     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3068 if test "${ac_cv_prog_CXX+set}" = set; then
3069   echo $ECHO_N "(cached) $ECHO_C" >&6
3070 else
3071   if test -n "$CXX"; then
3072   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077   IFS=$as_save_IFS
3078   test -z "$as_dir" && as_dir=.
3079   for ac_exec_ext in '' $ac_executable_extensions; do
3080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3081     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3083     break 2
3084   fi
3085 done
3086 done
3087 IFS=$as_save_IFS
3088
3089 fi
3090 fi
3091 CXX=$ac_cv_prog_CXX
3092 if test -n "$CXX"; then
3093   { echo "$as_me:$LINENO: result: $CXX" >&5
3094 echo "${ECHO_T}$CXX" >&6; }
3095 else
3096   { echo "$as_me:$LINENO: result: no" >&5
3097 echo "${ECHO_T}no" >&6; }
3098 fi
3099
3100
3101     test -n "$CXX" && break
3102   done
3103 fi
3104 if test -z "$CXX"; then
3105   ac_ct_CXX=$CXX
3106   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3107 do
3108   # Extract the first word of "$ac_prog", so it can be a program name with args.
3109 set dummy $ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   if test -n "$ac_ct_CXX"; then
3116   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121   IFS=$as_save_IFS
3122   test -z "$as_dir" && as_dir=.
3123   for ac_exec_ext in '' $ac_executable_extensions; do
3124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125     ac_cv_prog_ac_ct_CXX="$ac_prog"
3126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3136 if test -n "$ac_ct_CXX"; then
3137   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3138 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3139 else
3140   { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3142 fi
3143
3144
3145   test -n "$ac_ct_CXX" && break
3146 done
3147
3148   if test "x$ac_ct_CXX" = x; then
3149     CXX="g++"
3150   else
3151     case $cross_compiling:$ac_tool_warned in
3152 yes:)
3153 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3154 whose name does not start with the host triplet.  If you think this
3155 configuration is useful to you, please write to autoconf@gnu.org." >&5
3156 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3157 whose name does not start with the host triplet.  If you think this
3158 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3159 ac_tool_warned=yes ;;
3160 esac
3161     CXX=$ac_ct_CXX
3162   fi
3163 fi
3164
3165   fi
3166 fi
3167 # Provide some information about the compiler.
3168 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3169 ac_compiler=`set X $ac_compile; echo $2`
3170 { (ac_try="$ac_compiler --version >&5"
3171 case "(($ac_try" in
3172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173   *) ac_try_echo=$ac_try;;
3174 esac
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176   (eval "$ac_compiler --version >&5") 2>&5
3177   ac_status=$?
3178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179   (exit $ac_status); }
3180 { (ac_try="$ac_compiler -v >&5"
3181 case "(($ac_try" in
3182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183   *) ac_try_echo=$ac_try;;
3184 esac
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186   (eval "$ac_compiler -v >&5") 2>&5
3187   ac_status=$?
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); }
3190 { (ac_try="$ac_compiler -V >&5"
3191 case "(($ac_try" in
3192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193   *) ac_try_echo=$ac_try;;
3194 esac
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196   (eval "$ac_compiler -V >&5") 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }
3200
3201 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3202 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3203 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3204   echo $ECHO_N "(cached) $ECHO_C" >&6
3205 else
3206   cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212
3213 int
3214 main ()
3215 {
3216 #ifndef __GNUC__
3217        choke me
3218 #endif
3219
3220   ;
3221   return 0;
3222 }
3223 _ACEOF
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3226 case "(($ac_try" in
3227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228   *) ac_try_echo=$ac_try;;
3229 esac
3230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3231   (eval "$ac_compile") 2>conftest.er1
3232   ac_status=$?
3233   grep -v '^ *+' conftest.er1 >conftest.err
3234   rm -f conftest.er1
3235   cat conftest.err >&5
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } && {
3238          test -z "$ac_cxx_werror_flag" ||
3239          test ! -s conftest.err
3240        } && test -s conftest.$ac_objext; then
3241   ac_compiler_gnu=yes
3242 else
3243   echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246         ac_compiler_gnu=no
3247 fi
3248
3249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3251
3252 fi
3253 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3254 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3255 GXX=`test $ac_compiler_gnu = yes && echo yes`
3256 ac_test_CXXFLAGS=${CXXFLAGS+set}
3257 ac_save_CXXFLAGS=$CXXFLAGS
3258 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3259 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3260 if test "${ac_cv_prog_cxx_g+set}" = set; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3264    ac_cxx_werror_flag=yes
3265    ac_cv_prog_cxx_g=no
3266    CXXFLAGS="-g"
3267    cat >conftest.$ac_ext <<_ACEOF
3268 /* confdefs.h.  */
3269 _ACEOF
3270 cat confdefs.h >>conftest.$ac_ext
3271 cat >>conftest.$ac_ext <<_ACEOF
3272 /* end confdefs.h.  */
3273
3274 int
3275 main ()
3276 {
3277
3278   ;
3279   return 0;
3280 }
3281 _ACEOF
3282 rm -f conftest.$ac_objext
3283 if { (ac_try="$ac_compile"
3284 case "(($ac_try" in
3285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286   *) ac_try_echo=$ac_try;;
3287 esac
3288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289   (eval "$ac_compile") 2>conftest.er1
3290   ac_status=$?
3291   grep -v '^ *+' conftest.er1 >conftest.err
3292   rm -f conftest.er1
3293   cat conftest.err >&5
3294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295   (exit $ac_status); } && {
3296          test -z "$ac_cxx_werror_flag" ||
3297          test ! -s conftest.err
3298        } && test -s conftest.$ac_objext; then
3299   ac_cv_prog_cxx_g=yes
3300 else
3301   echo "$as_me: failed program was:" >&5
3302 sed 's/^/| /' conftest.$ac_ext >&5
3303
3304         CXXFLAGS=""
3305       cat >conftest.$ac_ext <<_ACEOF
3306 /* confdefs.h.  */
3307 _ACEOF
3308 cat confdefs.h >>conftest.$ac_ext
3309 cat >>conftest.$ac_ext <<_ACEOF
3310 /* end confdefs.h.  */
3311
3312 int
3313 main ()
3314 {
3315
3316   ;
3317   return 0;
3318 }
3319 _ACEOF
3320 rm -f conftest.$ac_objext
3321 if { (ac_try="$ac_compile"
3322 case "(($ac_try" in
3323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324   *) ac_try_echo=$ac_try;;
3325 esac
3326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3327   (eval "$ac_compile") 2>conftest.er1
3328   ac_status=$?
3329   grep -v '^ *+' conftest.er1 >conftest.err
3330   rm -f conftest.er1
3331   cat conftest.err >&5
3332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3333   (exit $ac_status); } && {
3334          test -z "$ac_cxx_werror_flag" ||
3335          test ! -s conftest.err
3336        } && test -s conftest.$ac_objext; then
3337   :
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3343          CXXFLAGS="-g"
3344          cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350
3351 int
3352 main ()
3353 {
3354
3355   ;
3356   return 0;
3357 }
3358 _ACEOF
3359 rm -f conftest.$ac_objext
3360 if { (ac_try="$ac_compile"
3361 case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_compile") 2>conftest.er1
3367   ac_status=$?
3368   grep -v '^ *+' conftest.er1 >conftest.err
3369   rm -f conftest.er1
3370   cat conftest.err >&5
3371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372   (exit $ac_status); } && {
3373          test -z "$ac_cxx_werror_flag" ||
3374          test ! -s conftest.err
3375        } && test -s conftest.$ac_objext; then
3376   ac_cv_prog_cxx_g=yes
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381
3382 fi
3383
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 fi
3386
3387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 fi
3389
3390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3391    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3392 fi
3393 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3394 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3395 if test "$ac_test_CXXFLAGS" = set; then
3396   CXXFLAGS=$ac_save_CXXFLAGS
3397 elif test $ac_cv_prog_cxx_g = yes; then
3398   if test "$GXX" = yes; then
3399     CXXFLAGS="-g -O2"
3400   else
3401     CXXFLAGS="-g"
3402   fi
3403 else
3404   if test "$GXX" = yes; then
3405     CXXFLAGS="-O2"
3406   else
3407     CXXFLAGS=
3408   fi
3409 fi
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416 if test "x$CC" != xcc; then
3417   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3418 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3419 else
3420   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3421 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3422 fi
3423 set dummy $CC; ac_cc=`echo $2 |
3424                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3425 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3426   echo $ECHO_N "(cached) $ECHO_C" >&6
3427 else
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 # Make sure it works both with $CC and with simple cc.
3444 # We do the test twice because some compilers refuse to overwrite an
3445 # existing .o file with -o, though they will create one.
3446 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3447 rm -f conftest2.*
3448 if { (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    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462   (eval "$ac_try") 2>&5
3463   ac_status=$?
3464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465   (exit $ac_status); };
3466 then
3467   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3468   if test "x$CC" != xcc; then
3469     # Test first that cc exists at all.
3470     if { ac_try='cc -c conftest.$ac_ext >&5'
3471   { (case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476   (eval "$ac_try") 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; }; then
3480       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3481       rm -f conftest2.*
3482       if { (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          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493   *) ac_try_echo=$ac_try;;
3494 esac
3495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3496   (eval "$ac_try") 2>&5
3497   ac_status=$?
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); };
3500       then
3501         # cc works too.
3502         :
3503       else
3504         # cc exists but doesn't like -o.
3505         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3506       fi
3507     fi
3508   fi
3509 else
3510   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3511 fi
3512 rm -f core conftest*
3513
3514 fi
3515 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3516   { echo "$as_me:$LINENO: result: yes" >&5
3517 echo "${ECHO_T}yes" >&6; }
3518 else
3519   { echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6; }
3521
3522 cat >>confdefs.h <<\_ACEOF
3523 #define NO_MINUS_C_MINUS_O 1
3524 _ACEOF
3525
3526 fi
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3534 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3535 # On Suns, sometimes $CPP names a directory.
3536 if test -n "$CPP" && test -d "$CPP"; then
3537   CPP=
3538 fi
3539 if test -z "$CPP"; then
3540   if test "${ac_cv_prog_CPP+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543       # Double quotes because CPP needs to be expanded
3544     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3545     do
3546       ac_preproc_ok=false
3547 for ac_c_preproc_warn_flag in '' yes
3548 do
3549   # Use a header file that comes with gcc, so configuring glibc
3550   # with a fresh cross-compiler works.
3551   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3552   # <limits.h> exists even on freestanding compilers.
3553   # On the NeXT, cc -E runs the code through the compiler's parser,
3554   # not just through cpp. "Syntax error" is here to catch this case.
3555   cat >conftest.$ac_ext <<_ACEOF
3556 /* confdefs.h.  */
3557 _ACEOF
3558 cat confdefs.h >>conftest.$ac_ext
3559 cat >>conftest.$ac_ext <<_ACEOF
3560 /* end confdefs.h.  */
3561 #ifdef __STDC__
3562 # include <limits.h>
3563 #else
3564 # include <assert.h>
3565 #endif
3566                      Syntax error
3567 _ACEOF
3568 if { (ac_try="$ac_cpp conftest.$ac_ext"
3569 case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3575   ac_status=$?
3576   grep -v '^ *+' conftest.er1 >conftest.err
3577   rm -f conftest.er1
3578   cat conftest.err >&5
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); } >/dev/null && {
3581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3582          test ! -s conftest.err
3583        }; then
3584   :
3585 else
3586   echo "$as_me: failed program was:" >&5
3587 sed 's/^/| /' conftest.$ac_ext >&5
3588
3589   # Broken: fails on valid input.
3590 continue
3591 fi
3592
3593 rm -f conftest.err conftest.$ac_ext
3594
3595   # OK, works on sane cases.  Now check whether nonexistent headers
3596   # can be detected and how.
3597   cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603 #include <ac_nonexistent.h>
3604 _ACEOF
3605 if { (ac_try="$ac_cpp conftest.$ac_ext"
3606 case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3612   ac_status=$?
3613   grep -v '^ *+' conftest.er1 >conftest.err
3614   rm -f conftest.er1
3615   cat conftest.err >&5
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } >/dev/null && {
3618          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3619          test ! -s conftest.err
3620        }; then
3621   # Broken: success on invalid input.
3622 continue
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627   # Passes both tests.
3628 ac_preproc_ok=:
3629 break
3630 fi
3631
3632 rm -f conftest.err conftest.$ac_ext
3633
3634 done
3635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636 rm -f conftest.err conftest.$ac_ext
3637 if $ac_preproc_ok; then
3638   break
3639 fi
3640
3641     done
3642     ac_cv_prog_CPP=$CPP
3643
3644 fi
3645   CPP=$ac_cv_prog_CPP
3646 else
3647   ac_cv_prog_CPP=$CPP
3648 fi
3649 { echo "$as_me:$LINENO: result: $CPP" >&5
3650 echo "${ECHO_T}$CPP" >&6; }
3651 ac_preproc_ok=false
3652 for ac_c_preproc_warn_flag in '' yes
3653 do
3654   # Use a header file that comes with gcc, so configuring glibc
3655   # with a fresh cross-compiler works.
3656   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3657   # <limits.h> exists even on freestanding compilers.
3658   # On the NeXT, cc -E runs the code through the compiler's parser,
3659   # not just through cpp. "Syntax error" is here to catch this case.
3660   cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666 #ifdef __STDC__
3667 # include <limits.h>
3668 #else
3669 # include <assert.h>
3670 #endif
3671                      Syntax error
3672 _ACEOF
3673 if { (ac_try="$ac_cpp conftest.$ac_ext"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } >/dev/null && {
3686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3687          test ! -s conftest.err
3688        }; then
3689   :
3690 else
3691   echo "$as_me: failed program was:" >&5
3692 sed 's/^/| /' conftest.$ac_ext >&5
3693
3694   # Broken: fails on valid input.
3695 continue
3696 fi
3697
3698 rm -f conftest.err conftest.$ac_ext
3699
3700   # OK, works on sane cases.  Now check whether nonexistent headers
3701   # can be detected and how.
3702   cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h.  */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h.  */
3708 #include <ac_nonexistent.h>
3709 _ACEOF
3710 if { (ac_try="$ac_cpp conftest.$ac_ext"
3711 case "(($ac_try" in
3712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713   *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3717   ac_status=$?
3718   grep -v '^ *+' conftest.er1 >conftest.err
3719   rm -f conftest.er1
3720   cat conftest.err >&5
3721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722   (exit $ac_status); } >/dev/null && {
3723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3724          test ! -s conftest.err
3725        }; then
3726   # Broken: success on invalid input.
3727 continue
3728 else
3729   echo "$as_me: failed program was:" >&5
3730 sed 's/^/| /' conftest.$ac_ext >&5
3731
3732   # Passes both tests.
3733 ac_preproc_ok=:
3734 break
3735 fi
3736
3737 rm -f conftest.err conftest.$ac_ext
3738
3739 done
3740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3741 rm -f conftest.err conftest.$ac_ext
3742 if $ac_preproc_ok; then
3743   :
3744 else
3745   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3746 See \`config.log' for more details." >&5
3747 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3748 See \`config.log' for more details." >&2;}
3749    { (exit 1); exit 1; }; }
3750 fi
3751
3752 ac_ext=c
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757
3758
3759 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3760 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3761 if test "${ac_cv_path_GREP+set}" = set; then
3762   echo $ECHO_N "(cached) $ECHO_C" >&6
3763 else
3764   # Extract the first word of "grep ggrep" to use in msg output
3765 if test -z "$GREP"; then
3766 set dummy grep ggrep; ac_prog_name=$2
3767 if test "${ac_cv_path_GREP+set}" = set; then
3768   echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770   ac_path_GREP_found=false
3771 # Loop through the user's path and test for each of PROGNAME-LIST
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3774 do
3775   IFS=$as_save_IFS
3776   test -z "$as_dir" && as_dir=.
3777   for ac_prog in grep ggrep; do
3778   for ac_exec_ext in '' $ac_executable_extensions; do
3779     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3780     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3781     # Check for GNU ac_path_GREP and select it if it is found.
3782   # Check for GNU $ac_path_GREP
3783 case `"$ac_path_GREP" --version 2>&1` in
3784 *GNU*)
3785   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3786 *)
3787   ac_count=0
3788   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3789   while :
3790   do
3791     cat "conftest.in" "conftest.in" >"conftest.tmp"
3792     mv "conftest.tmp" "conftest.in"
3793     cp "conftest.in" "conftest.nl"
3794     echo 'GREP' >> "conftest.nl"
3795     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3796     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3797     ac_count=`expr $ac_count + 1`
3798     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3799       # Best one so far, save it but keep looking for a better one
3800       ac_cv_path_GREP="$ac_path_GREP"
3801       ac_path_GREP_max=$ac_count
3802     fi
3803     # 10*(2^10) chars as input seems more than enough
3804     test $ac_count -gt 10 && break
3805   done
3806   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3807 esac
3808
3809
3810     $ac_path_GREP_found && break 3
3811   done
3812 done
3813
3814 done
3815 IFS=$as_save_IFS
3816
3817
3818 fi
3819
3820 GREP="$ac_cv_path_GREP"
3821 if test -z "$GREP"; then
3822   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3823 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3824    { (exit 1); exit 1; }; }
3825 fi
3826
3827 else
3828   ac_cv_path_GREP=$GREP
3829 fi
3830
3831
3832 fi
3833 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3834 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3835  GREP="$ac_cv_path_GREP"
3836
3837
3838 { echo "$as_me:$LINENO: checking for egrep" >&5
3839 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3840 if test "${ac_cv_path_EGREP+set}" = set; then
3841   echo $ECHO_N "(cached) $ECHO_C" >&6
3842 else
3843   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3844    then ac_cv_path_EGREP="$GREP -E"
3845    else
3846      # Extract the first word of "egrep" to use in msg output
3847 if test -z "$EGREP"; then
3848 set dummy egrep; ac_prog_name=$2
3849 if test "${ac_cv_path_EGREP+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   ac_path_EGREP_found=false
3853 # Loop through the user's path and test for each of PROGNAME-LIST
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3856 do
3857   IFS=$as_save_IFS
3858   test -z "$as_dir" && as_dir=.
3859   for ac_prog in egrep; do
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3862     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3863     # Check for GNU ac_path_EGREP and select it if it is found.
3864   # Check for GNU $ac_path_EGREP
3865 case `"$ac_path_EGREP" --version 2>&1` in
3866 *GNU*)
3867   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3868 *)
3869   ac_count=0
3870   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3871   while :
3872   do
3873     cat "conftest.in" "conftest.in" >"conftest.tmp"
3874     mv "conftest.tmp" "conftest.in"
3875     cp "conftest.in" "conftest.nl"
3876     echo 'EGREP' >> "conftest.nl"
3877     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3878     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3879     ac_count=`expr $ac_count + 1`
3880     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3881       # Best one so far, save it but keep looking for a better one
3882       ac_cv_path_EGREP="$ac_path_EGREP"
3883       ac_path_EGREP_max=$ac_count
3884     fi
3885     # 10*(2^10) chars as input seems more than enough
3886     test $ac_count -gt 10 && break
3887   done
3888   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3889 esac
3890
3891
3892     $ac_path_EGREP_found && break 3
3893   done
3894 done
3895
3896 done
3897 IFS=$as_save_IFS
3898
3899
3900 fi
3901
3902 EGREP="$ac_cv_path_EGREP"
3903 if test -z "$EGREP"; then
3904   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3905 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3906    { (exit 1); exit 1; }; }
3907 fi
3908
3909 else
3910   ac_cv_path_EGREP=$EGREP
3911 fi
3912
3913
3914    fi
3915 fi
3916 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3917 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3918  EGREP="$ac_cv_path_EGREP"
3919
3920
3921 if test $ac_cv_c_compiler_gnu = yes; then
3922     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3923 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3924 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3925   echo $ECHO_N "(cached) $ECHO_C" >&6
3926 else
3927     ac_pattern="Autoconf.*'x'"
3928   cat >conftest.$ac_ext <<_ACEOF
3929 /* confdefs.h.  */
3930 _ACEOF
3931 cat confdefs.h >>conftest.$ac_ext
3932 cat >>conftest.$ac_ext <<_ACEOF
3933 /* end confdefs.h.  */
3934 #include <sgtty.h>
3935 Autoconf TIOCGETP
3936 _ACEOF
3937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3938   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3939   ac_cv_prog_gcc_traditional=yes
3940 else
3941   ac_cv_prog_gcc_traditional=no
3942 fi
3943 rm -f conftest*
3944
3945
3946   if test $ac_cv_prog_gcc_traditional = no; then
3947     cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h.  */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h.  */
3953 #include <termio.h>
3954 Autoconf TCGETA
3955 _ACEOF
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3958   ac_cv_prog_gcc_traditional=yes
3959 fi
3960 rm -f conftest*
3961
3962   fi
3963 fi
3964 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3965 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3966   if test $ac_cv_prog_gcc_traditional = yes; then
3967     CC="$CC -traditional"
3968   fi
3969 fi
3970
3971 BASECC=`basename $CC`
3972 have_gcc=no
3973 if test "x$BASECC" = xgcc; then
3974    cat >>confdefs.h <<\_ACEOF
3975 #define HAVE_GCC 1
3976 _ACEOF
3977
3978    have_gcc=yes
3979 fi
3980 # Extract the first word of "$CXX", so it can be a program name with args.
3981 set dummy $CXX; ac_word=$2
3982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3984 if test "${ac_cv_path_CXX+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   case $CXX in
3988   [\\/]* | ?:[\\/]*)
3989   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3990   ;;
3991   *)
3992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in $PATH
3994 do
3995   IFS=$as_save_IFS
3996   test -z "$as_dir" && as_dir=.
3997   for ac_exec_ext in '' $ac_executable_extensions; do
3998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4000     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001     break 2
4002   fi
4003 done
4004 done
4005 IFS=$as_save_IFS
4006
4007   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4008   ;;
4009 esac
4010 fi
4011 CXX=$ac_cv_path_CXX
4012 if test -n "$CXX"; then
4013   { echo "$as_me:$LINENO: result: $CXX" >&5
4014 echo "${ECHO_T}$CXX" >&6; }
4015 else
4016   { echo "$as_me:$LINENO: result: no" >&5
4017 echo "${ECHO_T}no" >&6; }
4018 fi
4019
4020
4021 if test ! -e $CXX; then
4022    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4023 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4024    { (exit 1); exit 1; }; }
4025 fi
4026
4027 # Find a good install program.  We prefer a C program (faster),
4028 # so one script is as good as another.  But avoid the broken or
4029 # incompatible versions:
4030 # SysV /etc/install, /usr/sbin/install
4031 # SunOS /usr/etc/install
4032 # IRIX /sbin/install
4033 # AIX /bin/install
4034 # AmigaOS /C/install, which installs bootblocks on floppy discs
4035 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4036 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4037 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4038 # OS/2's system install, which has a completely different semantic
4039 # ./install, which can be erroneously created by make from ./install.sh.
4040 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4041 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4042 if test -z "$INSTALL"; then
4043 if test "${ac_cv_path_install+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047 for as_dir in $PATH
4048 do
4049   IFS=$as_save_IFS
4050   test -z "$as_dir" && as_dir=.
4051   # Account for people who put trailing slashes in PATH elements.
4052 case $as_dir/ in
4053   ./ | .// | /cC/* | \
4054   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4055   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4056   /usr/ucb/* ) ;;
4057   *)
4058     # OSF1 and SCO ODT 3.0 have their own names for install.
4059     # Don't use installbsd from OSF since it installs stuff as root
4060     # by default.
4061     for ac_prog in ginstall scoinst install; do
4062       for ac_exec_ext in '' $ac_executable_extensions; do
4063         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4064           if test $ac_prog = install &&
4065             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4066             # AIX install.  It has an incompatible calling convention.
4067             :
4068           elif test $ac_prog = install &&
4069             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4070             # program-specific install script used by HP pwplus--don't use.
4071             :
4072           else
4073             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4074             break 3
4075           fi
4076         fi
4077       done
4078     done
4079     ;;
4080 esac
4081 done
4082 IFS=$as_save_IFS
4083
4084
4085 fi
4086   if test "${ac_cv_path_install+set}" = set; then
4087     INSTALL=$ac_cv_path_install
4088   else
4089     # As a last resort, use the slow shell script.  Don't cache a
4090     # value for INSTALL within a source directory, because that will
4091     # break other packages using the cache if that directory is
4092     # removed, or if the value is a relative name.
4093     INSTALL=$ac_install_sh
4094   fi
4095 fi
4096 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4097 echo "${ECHO_T}$INSTALL" >&6; }
4098
4099 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4100 # It thinks the first close brace ends the variable substitution.
4101 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4102
4103 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4104
4105 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4106
4107 if test -n "$ac_tool_prefix"; then
4108   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4109 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4112 if test "${ac_cv_prog_RANLIB+set}" = set; then
4113   echo $ECHO_N "(cached) $ECHO_C" >&6
4114 else
4115   if test -n "$RANLIB"; then
4116   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4117 else
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH
4120 do
4121   IFS=$as_save_IFS
4122   test -z "$as_dir" && as_dir=.
4123   for ac_exec_ext in '' $ac_executable_extensions; do
4124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4125     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4127     break 2
4128   fi
4129 done
4130 done
4131 IFS=$as_save_IFS
4132
4133 fi
4134 fi
4135 RANLIB=$ac_cv_prog_RANLIB
4136 if test -n "$RANLIB"; then
4137   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4138 echo "${ECHO_T}$RANLIB" >&6; }
4139 else
4140   { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4142 fi
4143
4144
4145 fi
4146 if test -z "$ac_cv_prog_RANLIB"; then
4147   ac_ct_RANLIB=$RANLIB
4148   # Extract the first word of "ranlib", so it can be a program name with args.
4149 set dummy ranlib; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   if test -n "$ac_ct_RANLIB"; then
4156   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161   IFS=$as_save_IFS
4162   test -z "$as_dir" && as_dir=.
4163   for ac_exec_ext in '' $ac_executable_extensions; do
4164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165     ac_cv_prog_ac_ct_RANLIB="ranlib"
4166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167     break 2
4168   fi
4169 done
4170 done
4171 IFS=$as_save_IFS
4172
4173 fi
4174 fi
4175 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4176 if test -n "$ac_ct_RANLIB"; then
4177   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4178 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4179 else
4180   { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4182 fi
4183
4184   if test "x$ac_ct_RANLIB" = x; then
4185     RANLIB=":"
4186   else
4187     case $cross_compiling:$ac_tool_warned in
4188 yes:)
4189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4190 whose name does not start with the host triplet.  If you think this
4191 configuration is useful to you, please write to autoconf@gnu.org." >&5
4192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4193 whose name does not start with the host triplet.  If you think this
4194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4195 ac_tool_warned=yes ;;
4196 esac
4197     RANLIB=$ac_ct_RANLIB
4198   fi
4199 else
4200   RANLIB="$ac_cv_prog_RANLIB"
4201 fi
4202
4203 # Extract the first word of "mv", so it can be a program name with args.
4204 set dummy mv; ac_word=$2
4205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4207 if test "${ac_cv_path_MV+set}" = set; then
4208   echo $ECHO_N "(cached) $ECHO_C" >&6
4209 else
4210   case $MV in
4211   [\\/]* | ?:[\\/]*)
4212   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4213   ;;
4214   *)
4215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218   IFS=$as_save_IFS
4219   test -z "$as_dir" && as_dir=.
4220   for ac_exec_ext in '' $ac_executable_extensions; do
4221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224     break 2
4225   fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4231   ;;
4232 esac
4233 fi
4234 MV=$ac_cv_path_MV
4235 if test -n "$MV"; then
4236   { echo "$as_me:$LINENO: result: $MV" >&5
4237 echo "${ECHO_T}$MV" >&6; }
4238 else
4239   { echo "$as_me:$LINENO: result: no" >&5
4240 echo "${ECHO_T}no" >&6; }
4241 fi
4242
4243
4244 # Extract the first word of "rm", so it can be a program name with args.
4245 set dummy rm; ac_word=$2
4246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4248 if test "${ac_cv_path_RM+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   case $RM in
4252   [\\/]* | ?:[\\/]*)
4253   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4254   ;;
4255   *)
4256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH
4258 do
4259   IFS=$as_save_IFS
4260   test -z "$as_dir" && as_dir=.
4261   for ac_exec_ext in '' $ac_executable_extensions; do
4262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4263     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4265     break 2
4266   fi
4267 done
4268 done
4269 IFS=$as_save_IFS
4270
4271   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4272   ;;
4273 esac
4274 fi
4275 RM=$ac_cv_path_RM
4276 if test -n "$RM"; then
4277   { echo "$as_me:$LINENO: result: $RM" >&5
4278 echo "${ECHO_T}$RM" >&6; }
4279 else
4280   { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4282 fi
4283
4284
4285 # Extract the first word of "cp", so it can be a program name with args.
4286 set dummy cp; ac_word=$2
4287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4289 if test "${ac_cv_path_CP+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   case $CP in
4293   [\\/]* | ?:[\\/]*)
4294   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4295   ;;
4296   *)
4297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4304     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306     break 2
4307   fi
4308 done
4309 done
4310 IFS=$as_save_IFS
4311
4312   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4313   ;;
4314 esac
4315 fi
4316 CP=$ac_cv_path_CP
4317 if test -n "$CP"; then
4318   { echo "$as_me:$LINENO: result: $CP" >&5
4319 echo "${ECHO_T}$CP" >&6; }
4320 else
4321   { echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6; }
4323 fi
4324
4325
4326 # Extract the first word of "sed", so it can be a program name with args.
4327 set dummy sed; ac_word=$2
4328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4330 if test "${ac_cv_path_SED+set}" = set; then
4331   echo $ECHO_N "(cached) $ECHO_C" >&6
4332 else
4333   case $SED in
4334   [\\/]* | ?:[\\/]*)
4335   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4336   ;;
4337   *)
4338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 for as_dir in $PATH
4340 do
4341   IFS=$as_save_IFS
4342   test -z "$as_dir" && as_dir=.
4343   for ac_exec_ext in '' $ac_executable_extensions; do
4344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4345     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347     break 2
4348   fi
4349 done
4350 done
4351 IFS=$as_save_IFS
4352
4353   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4354   ;;
4355 esac
4356 fi
4357 SED=$ac_cv_path_SED
4358 if test -n "$SED"; then
4359   { echo "$as_me:$LINENO: result: $SED" >&5
4360 echo "${ECHO_T}$SED" >&6; }
4361 else
4362   { echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6; }
4364 fi
4365
4366
4367 # Extract the first word of "echo", so it can be a program name with args.
4368 set dummy echo; ac_word=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_path_ECHO+set}" = set; then
4372   echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374   case $ECHO in
4375   [\\/]* | ?:[\\/]*)
4376   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4377   ;;
4378   *)
4379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4381 do
4382   IFS=$as_save_IFS
4383   test -z "$as_dir" && as_dir=.
4384   for ac_exec_ext in '' $ac_executable_extensions; do
4385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388     break 2
4389   fi
4390 done
4391 done
4392 IFS=$as_save_IFS
4393
4394   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4395   ;;
4396 esac
4397 fi
4398 ECHO=$ac_cv_path_ECHO
4399 if test -n "$ECHO"; then
4400   { echo "$as_me:$LINENO: result: $ECHO" >&5
4401 echo "${ECHO_T}$ECHO" >&6; }
4402 else
4403   { echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6; }
4405 fi
4406
4407
4408 # Extract the first word of "cmp", so it can be a program name with args.
4409 set dummy cmp; ac_word=$2
4410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4412 if test "${ac_cv_path_CMP+set}" = set; then
4413   echo $ECHO_N "(cached) $ECHO_C" >&6
4414 else
4415   case $CMP in
4416   [\\/]* | ?:[\\/]*)
4417   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4418   ;;
4419   *)
4420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425   for ac_exec_ext in '' $ac_executable_extensions; do
4426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4428     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429     break 2
4430   fi
4431 done
4432 done
4433 IFS=$as_save_IFS
4434
4435   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4436   ;;
4437 esac
4438 fi
4439 CMP=$ac_cv_path_CMP
4440 if test -n "$CMP"; then
4441   { echo "$as_me:$LINENO: result: $CMP" >&5
4442 echo "${ECHO_T}$CMP" >&6; }
4443 else
4444   { echo "$as_me:$LINENO: result: no" >&5
4445 echo "${ECHO_T}no" >&6; }
4446 fi
4447
4448
4449 # Extract the first word of "tbl", so it can be a program name with args.
4450 set dummy tbl; ac_word=$2
4451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4453 if test "${ac_cv_path_TBL+set}" = set; then
4454   echo $ECHO_N "(cached) $ECHO_C" >&6
4455 else
4456   case $TBL in
4457   [\\/]* | ?:[\\/]*)
4458   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4459   ;;
4460   *)
4461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466   for ac_exec_ext in '' $ac_executable_extensions; do
4467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4469     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4477   ;;
4478 esac
4479 fi
4480 TBL=$ac_cv_path_TBL
4481 if test -n "$TBL"; then
4482   { echo "$as_me:$LINENO: result: $TBL" >&5
4483 echo "${ECHO_T}$TBL" >&6; }
4484 else
4485   { echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6; }
4487 fi
4488
4489
4490 # Extract the first word of "ar", so it can be a program name with args.
4491 set dummy ar; ac_word=$2
4492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4494 if test "${ac_cv_path_AR+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   case $AR in
4498   [\\/]* | ?:[\\/]*)
4499   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4500   ;;
4501   *)
4502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507   for ac_exec_ext in '' $ac_executable_extensions; do
4508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4511     break 2
4512   fi
4513 done
4514 done
4515 IFS=$as_save_IFS
4516
4517   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4518   ;;
4519 esac
4520 fi
4521 AR=$ac_cv_path_AR
4522 if test -n "$AR"; then
4523   { echo "$as_me:$LINENO: result: $AR" >&5
4524 echo "${ECHO_T}$AR" >&6; }
4525 else
4526   { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4528 fi
4529
4530
4531 # Extract the first word of "openssl", so it can be a program name with args.
4532 set dummy openssl; ac_word=$2
4533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4535 if test "${ac_cv_path_OPENSSL+set}" = set; then
4536   echo $ECHO_N "(cached) $ECHO_C" >&6
4537 else
4538   case $OPENSSL in
4539   [\\/]* | ?:[\\/]*)
4540   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4541   ;;
4542   *)
4543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4544 for as_dir in $PATH
4545 do
4546   IFS=$as_save_IFS
4547   test -z "$as_dir" && as_dir=.
4548   for ac_exec_ext in '' $ac_executable_extensions; do
4549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4550     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4551     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4552     break 2
4553   fi
4554 done
4555 done
4556 IFS=$as_save_IFS
4557
4558   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4559   ;;
4560 esac
4561 fi
4562 OPENSSL=$ac_cv_path_OPENSSL
4563 if test -n "$OPENSSL"; then
4564   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4565 echo "${ECHO_T}$OPENSSL" >&6; }
4566 else
4567   { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4569 fi
4570
4571
4572 # Extract the first word of "mtx", so it can be a program name with args.
4573 set dummy mtx; ac_word=$2
4574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4576 if test "${ac_cv_path_MTX+set}" = set; then
4577   echo $ECHO_N "(cached) $ECHO_C" >&6
4578 else
4579   case $MTX in
4580   [\\/]* | ?:[\\/]*)
4581   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4582   ;;
4583   *)
4584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4586 do
4587   IFS=$as_save_IFS
4588   test -z "$as_dir" && as_dir=.
4589   for ac_exec_ext in '' $ac_executable_extensions; do
4590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4593     break 2
4594   fi
4595 done
4596 done
4597 IFS=$as_save_IFS
4598
4599   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4600   ;;
4601 esac
4602 fi
4603 MTX=$ac_cv_path_MTX
4604 if test -n "$MTX"; then
4605   { echo "$as_me:$LINENO: result: $MTX" >&5
4606 echo "${ECHO_T}$MTX" >&6; }
4607 else
4608   { echo "$as_me:$LINENO: result: no" >&5
4609 echo "${ECHO_T}no" >&6; }
4610 fi
4611
4612
4613 # Extract the first word of "dd", so it can be a program name with args.
4614 set dummy dd; ac_word=$2
4615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4617 if test "${ac_cv_path_DD+set}" = set; then
4618   echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620   case $DD in
4621   [\\/]* | ?:[\\/]*)
4622   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4623   ;;
4624   *)
4625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4627 do
4628   IFS=$as_save_IFS
4629   test -z "$as_dir" && as_dir=.
4630   for ac_exec_ext in '' $ac_executable_extensions; do
4631   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4632     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4634     break 2
4635   fi
4636 done
4637 done
4638 IFS=$as_save_IFS
4639
4640   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4641   ;;
4642 esac
4643 fi
4644 DD=$ac_cv_path_DD
4645 if test -n "$DD"; then
4646   { echo "$as_me:$LINENO: result: $DD" >&5
4647 echo "${ECHO_T}$DD" >&6; }
4648 else
4649   { echo "$as_me:$LINENO: result: no" >&5
4650 echo "${ECHO_T}no" >&6; }
4651 fi
4652
4653
4654 # Extract the first word of "mkisofs", so it can be a program name with args.
4655 set dummy mkisofs; ac_word=$2
4656 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4658 if test "${ac_cv_path_MKISOFS+set}" = set; then
4659   echo $ECHO_N "(cached) $ECHO_C" >&6
4660 else
4661   case $MKISOFS in
4662   [\\/]* | ?:[\\/]*)
4663   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4664   ;;
4665   *)
4666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671   for ac_exec_ext in '' $ac_executable_extensions; do
4672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4675     break 2
4676   fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4682   ;;
4683 esac
4684 fi
4685 MKISOFS=$ac_cv_path_MKISOFS
4686 if test -n "$MKISOFS"; then
4687   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4688 echo "${ECHO_T}$MKISOFS" >&6; }
4689 else
4690   { echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6; }
4692 fi
4693
4694
4695 # Extract the first word of "python", so it can be a program name with args.
4696 set dummy python; ac_word=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_PYTHON+set}" = set; then
4700   echo $ECHO_N "(cached) $ECHO_C" >&6
4701 else
4702   case $PYTHON in
4703   [\\/]* | ?:[\\/]*)
4704   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4705   ;;
4706   *)
4707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 for as_dir in $PATH
4709 do
4710   IFS=$as_save_IFS
4711   test -z "$as_dir" && as_dir=.
4712   for ac_exec_ext in '' $ac_executable_extensions; do
4713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4714     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4715     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4716     break 2
4717   fi
4718 done
4719 done
4720 IFS=$as_save_IFS
4721
4722   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4723   ;;
4724 esac
4725 fi
4726 PYTHON=$ac_cv_path_PYTHON
4727 if test -n "$PYTHON"; then
4728   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4729 echo "${ECHO_T}$PYTHON" >&6; }
4730 else
4731   { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4733 fi
4734
4735
4736 # Extract the first word of "growisofs", so it can be a program name with args.
4737 set dummy growisofs; ac_word=$2
4738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4740 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4741   echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743   case $GROWISOFS in
4744   [\\/]* | ?:[\\/]*)
4745   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4746   ;;
4747   *)
4748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753   for ac_exec_ext in '' $ac_executable_extensions; do
4754   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4755     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760 done
4761 IFS=$as_save_IFS
4762
4763   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4764   ;;
4765 esac
4766 fi
4767 GROWISOFS=$ac_cv_path_GROWISOFS
4768 if test -n "$GROWISOFS"; then
4769   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4770 echo "${ECHO_T}$GROWISOFS" >&6; }
4771 else
4772   { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4774 fi
4775
4776
4777 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4778 set dummy dvd+rw-mediainfo; ac_word=$2
4779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4781 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4782   echo $ECHO_N "(cached) $ECHO_C" >&6
4783 else
4784   case $DVDRWMEDIAINFO in
4785   [\\/]* | ?:[\\/]*)
4786   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4787   ;;
4788   *)
4789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790 for as_dir in $PATH
4791 do
4792   IFS=$as_save_IFS
4793   test -z "$as_dir" && as_dir=.
4794   for ac_exec_ext in '' $ac_executable_extensions; do
4795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4796     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4797     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798     break 2
4799   fi
4800 done
4801 done
4802 IFS=$as_save_IFS
4803
4804   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4805   ;;
4806 esac
4807 fi
4808 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4809 if test -n "$DVDRWMEDIAINFO"; then
4810   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4811 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4812 else
4813   { echo "$as_me:$LINENO: result: no" >&5
4814 echo "${ECHO_T}no" >&6; }
4815 fi
4816
4817
4818 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4819 set dummy dvd+rw-format; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   case $DVDRWFORMAT in
4826   [\\/]* | ?:[\\/]*)
4827   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4828   ;;
4829   *)
4830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831 for as_dir in $PATH
4832 do
4833   IFS=$as_save_IFS
4834   test -z "$as_dir" && as_dir=.
4835   for ac_exec_ext in '' $ac_executable_extensions; do
4836   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4837     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4839     break 2
4840   fi
4841 done
4842 done
4843 IFS=$as_save_IFS
4844
4845   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4846   ;;
4847 esac
4848 fi
4849 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4850 if test -n "$DVDRWFORMAT"; then
4851   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4852 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4853 else
4854   { echo "$as_me:$LINENO: result: no" >&5
4855 echo "${ECHO_T}no" >&6; }
4856 fi
4857
4858
4859 # Extract the first word of "pkg-config", so it can be a program name with args.
4860 set dummy pkg-config; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4864   echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866   case $PKGCONFIG in
4867   [\\/]* | ?:[\\/]*)
4868   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4869   ;;
4870   *)
4871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876   for ac_exec_ext in '' $ac_executable_extensions; do
4877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4878     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4879     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880     break 2
4881   fi
4882 done
4883 done
4884 IFS=$as_save_IFS
4885
4886   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4887   ;;
4888 esac
4889 fi
4890 PKGCONFIG=$ac_cv_path_PKGCONFIG
4891 if test -n "$PKGCONFIG"; then
4892   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4893 echo "${ECHO_T}$PKGCONFIG" >&6; }
4894 else
4895   { echo "$as_me:$LINENO: result: no" >&5
4896 echo "${ECHO_T}no" >&6; }
4897 fi
4898
4899
4900 # Extract the first word of "qmake", so it can be a program name with args.
4901 set dummy qmake; ac_word=$2
4902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4904 if test "${ac_cv_path_QMAKE+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   case $QMAKE in
4908   [\\/]* | ?:[\\/]*)
4909   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4910   ;;
4911   *)
4912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915   IFS=$as_save_IFS
4916   test -z "$as_dir" && as_dir=.
4917   for ac_exec_ext in '' $ac_executable_extensions; do
4918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921     break 2
4922   fi
4923 done
4924 done
4925 IFS=$as_save_IFS
4926
4927   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4928   ;;
4929 esac
4930 fi
4931 QMAKE=$ac_cv_path_QMAKE
4932 if test -n "$QMAKE"; then
4933   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4934 echo "${ECHO_T}$QMAKE" >&6; }
4935 else
4936   { echo "$as_me:$LINENO: result: no" >&5
4937 echo "${ECHO_T}no" >&6; }
4938 fi
4939
4940
4941 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4942 set dummy qmake-qt4; ac_word=$2
4943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4945 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   case $QMAKEQT4 in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4951   ;;
4952   *)
4953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966 IFS=$as_save_IFS
4967
4968   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4969   ;;
4970 esac
4971 fi
4972 QMAKEQT4=$ac_cv_path_QMAKEQT4
4973 if test -n "$QMAKEQT4"; then
4974   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4975 echo "${ECHO_T}$QMAKEQT4" >&6; }
4976 else
4977   { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4979 fi
4980
4981
4982
4983 if test "x$WXCONFIG" = x; then
4984   WXCONFIG=wx-config
4985 fi
4986 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4987 set dummy ${WXCONFIG}; ac_word=$2
4988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4990 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4991   echo $ECHO_N "(cached) $ECHO_C" >&6
4992 else
4993   case $WXCONFIG in
4994   [\\/]* | ?:[\\/]*)
4995   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4996   ;;
4997   *)
4998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999 for as_dir in $PATH
5000 do
5001   IFS=$as_save_IFS
5002   test -z "$as_dir" && as_dir=.
5003   for ac_exec_ext in '' $ac_executable_extensions; do
5004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007     break 2
5008   fi
5009 done
5010 done
5011 IFS=$as_save_IFS
5012
5013   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5014   ;;
5015 esac
5016 fi
5017 WXCONFIG=$ac_cv_path_WXCONFIG
5018 if test -n "$WXCONFIG"; then
5019   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5020 echo "${ECHO_T}$WXCONFIG" >&6; }
5021 else
5022   { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5024 fi
5025
5026
5027
5028 # Extract the first word of "cdrecord", so it can be a program name with args.
5029 set dummy cdrecord; ac_word=$2
5030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5032 if test "${ac_cv_path_CDRECORD+set}" = set; then
5033   echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035   case $CDRECORD in
5036   [\\/]* | ?:[\\/]*)
5037   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5038   ;;
5039   *)
5040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045   for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5056   ;;
5057 esac
5058 fi
5059 CDRECORD=$ac_cv_path_CDRECORD
5060 if test -n "$CDRECORD"; then
5061   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5062 echo "${ECHO_T}$CDRECORD" >&6; }
5063 else
5064   { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5066 fi
5067
5068
5069 # Extract the first word of "pidof", so it can be a program name with args.
5070 set dummy pidof; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_path_PIDOF+set}" = set; then
5074   echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076   case $PIDOF in
5077   [\\/]* | ?:[\\/]*)
5078   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5079   ;;
5080   *)
5081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086   for ac_exec_ext in '' $ac_executable_extensions; do
5087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5097   ;;
5098 esac
5099 fi
5100 PIDOF=$ac_cv_path_PIDOF
5101 if test -n "$PIDOF"; then
5102   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5103 echo "${ECHO_T}$PIDOF" >&6; }
5104 else
5105   { echo "$as_me:$LINENO: result: no" >&5
5106 echo "${ECHO_T}no" >&6; }
5107 fi
5108
5109
5110 for ac_prog in gawk mawk nawk awk
5111 do
5112   # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5116 if test "${ac_cv_prog_AWK+set}" = set; then
5117   echo $ECHO_N "(cached) $ECHO_C" >&6
5118 else
5119   if test -n "$AWK"; then
5120   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127   for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_prog_AWK="$ac_prog"
5130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 AWK=$ac_cv_prog_AWK
5140 if test -n "$AWK"; then
5141   { echo "$as_me:$LINENO: result: $AWK" >&5
5142 echo "${ECHO_T}$AWK" >&6; }
5143 else
5144   { echo "$as_me:$LINENO: result: no" >&5
5145 echo "${ECHO_T}no" >&6; }
5146 fi
5147
5148
5149   test -n "$AWK" && break
5150 done
5151
5152 # Some AWK programs fail, so test it and warn the user
5153 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5154       { if ((prog == $2) || (("(" prog ")") == $2) ||
5155            (("" prog "") == $2) ||
5156            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5157 else
5158   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5159    The regex engine of $AWK is too broken to be used you
5160    might want to install GNU AWK.
5161    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5162 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5163    The regex engine of $AWK is too broken to be used you
5164    might want to install GNU AWK.
5165    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5166    { (exit 1); exit 1; }; }
5167 fi
5168 THE_AWK=$AWK
5169 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5170 set dummy $THE_AWK; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_path_AWK+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   case $AWK in
5177   [\\/]* | ?:[\\/]*)
5178   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5179   ;;
5180   *)
5181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182 for as_dir in $PATH
5183 do
5184   IFS=$as_save_IFS
5185   test -z "$as_dir" && as_dir=.
5186   for ac_exec_ext in '' $ac_executable_extensions; do
5187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5190     break 2
5191   fi
5192 done
5193 done
5194 IFS=$as_save_IFS
5195
5196   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5197   ;;
5198 esac
5199 fi
5200 AWK=$ac_cv_path_AWK
5201 if test -n "$AWK"; then
5202   { echo "$as_me:$LINENO: result: $AWK" >&5
5203 echo "${ECHO_T}$AWK" >&6; }
5204 else
5205   { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5207 fi
5208
5209
5210
5211
5212 test -n "$ARFLAG" || ARFLAGS="cr"
5213
5214
5215 MAKE_SHELL=/bin/sh
5216
5217
5218
5219
5220
5221
5222
5223 # Make sure we can run config.sub.
5224 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5225   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5226 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5227    { (exit 1); exit 1; }; }
5228
5229 { echo "$as_me:$LINENO: checking build system type" >&5
5230 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5231 if test "${ac_cv_build+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   ac_build_alias=$build_alias
5235 test "x$ac_build_alias" = x &&
5236   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5237 test "x$ac_build_alias" = x &&
5238   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5239 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5240    { (exit 1); exit 1; }; }
5241 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5242   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5243 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5244    { (exit 1); exit 1; }; }
5245
5246 fi
5247 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5248 echo "${ECHO_T}$ac_cv_build" >&6; }
5249 case $ac_cv_build in
5250 *-*-*) ;;
5251 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5252 echo "$as_me: error: invalid value of canonical build" >&2;}
5253    { (exit 1); exit 1; }; };;
5254 esac
5255 build=$ac_cv_build
5256 ac_save_IFS=$IFS; IFS='-'
5257 set x $ac_cv_build
5258 shift
5259 build_cpu=$1
5260 build_vendor=$2
5261 shift; shift
5262 # Remember, the first character of IFS is used to create $*,
5263 # except with old shells:
5264 build_os=$*
5265 IFS=$ac_save_IFS
5266 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5267
5268
5269
5270 { echo "$as_me:$LINENO: checking host system type" >&5
5271 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5272 if test "${ac_cv_host+set}" = set; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275   if test "x$host_alias" = x; then
5276   ac_cv_host=$ac_cv_build
5277 else
5278   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5279     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5280 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5281    { (exit 1); exit 1; }; }
5282 fi
5283
5284 fi
5285 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5286 echo "${ECHO_T}$ac_cv_host" >&6; }
5287 case $ac_cv_host in
5288 *-*-*) ;;
5289 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5290 echo "$as_me: error: invalid value of canonical host" >&2;}
5291    { (exit 1); exit 1; }; };;
5292 esac
5293 host=$ac_cv_host
5294 ac_save_IFS=$IFS; IFS='-'
5295 set x $ac_cv_host
5296 shift
5297 host_cpu=$1
5298 host_vendor=$2
5299 shift; shift
5300 # Remember, the first character of IFS is used to create $*,
5301 # except with old shells:
5302 host_os=$*
5303 IFS=$ac_save_IFS
5304 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5305
5306
5307 case $host_os in
5308   *cygwin* ) CYGWIN=yes;;
5309          * ) CYGWIN=no;;
5310 esac
5311
5312 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5313 then
5314
5315
5316 if $TRUEPRG; then
5317   HAVE_SUN_OS_TRUE=
5318   HAVE_SUN_OS_FALSE='#'
5319 else
5320   HAVE_SUN_OS_TRUE='#'
5321   HAVE_SUN_OS_FALSE=
5322 fi
5323         cat >>confdefs.h <<\_ACEOF
5324 #define HAVE_SUN_OS 1
5325 _ACEOF
5326
5327 else
5328
5329
5330 if $FALSEPRG; then
5331   HAVE_SUN_OS_TRUE=
5332   HAVE_SUN_OS_FALSE='#'
5333 else
5334   HAVE_SUN_OS_TRUE='#'
5335   HAVE_SUN_OS_FALSE=
5336 fi
5337 fi
5338
5339 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5340 then
5341
5342
5343 if $TRUEPRG; then
5344   HAVE_OSF1_OS_TRUE=
5345   HAVE_OSF1_OS_FALSE='#'
5346 else
5347   HAVE_OSF1_OS_TRUE='#'
5348   HAVE_OSF1_OS_FALSE=
5349 fi
5350         cat >>confdefs.h <<\_ACEOF
5351 #define HAVE_OSF1_OS 1
5352 _ACEOF
5353
5354 else
5355
5356
5357 if $FALSEPRG; then
5358   HAVE_OSF1_OS_TRUE=
5359   HAVE_OSF1_OS_FALSE='#'
5360 else
5361   HAVE_OSF1_OS_TRUE='#'
5362   HAVE_OSF1_OS_FALSE=
5363 fi
5364 fi
5365
5366 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5367 then
5368
5369
5370 if $TRUEPRG; then
5371   HAVE_AIX_OS_TRUE=
5372   HAVE_AIX_OS_FALSE='#'
5373 else
5374   HAVE_AIX_OS_TRUE='#'
5375   HAVE_AIX_OS_FALSE=
5376 fi
5377         cat >>confdefs.h <<\_ACEOF
5378 #define HAVE_AIX_OS 1
5379 _ACEOF
5380
5381 else
5382
5383
5384 if $FALSEPRG; then
5385   HAVE_AIX_OS_TRUE=
5386   HAVE_AIX_OS_FALSE='#'
5387 else
5388   HAVE_AIX_OS_TRUE='#'
5389   HAVE_AIX_OS_FALSE=
5390 fi
5391 fi
5392
5393 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5394 then
5395
5396
5397 if $TRUEPRG; then
5398   HAVE_HPUX_OS_TRUE=
5399   HAVE_HPUX_OS_FALSE='#'
5400 else
5401   HAVE_HPUX_OS_TRUE='#'
5402   HAVE_HPUX_OS_FALSE=
5403 fi
5404         cat >>confdefs.h <<\_ACEOF
5405 #define HAVE_HPUX_OS 1
5406 _ACEOF
5407
5408 else
5409
5410
5411 if $FALSEPRG; then
5412   HAVE_HPUX_OS_TRUE=
5413   HAVE_HPUX_OS_FALSE='#'
5414 else
5415   HAVE_HPUX_OS_TRUE='#'
5416   HAVE_HPUX_OS_FALSE=
5417 fi
5418 fi
5419
5420 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5421 then
5422
5423
5424 if $TRUEPRG; then
5425   HAVE_LINUX_OS_TRUE=
5426   HAVE_LINUX_OS_FALSE='#'
5427 else
5428   HAVE_LINUX_OS_TRUE='#'
5429   HAVE_LINUX_OS_FALSE=
5430 fi
5431         cat >>confdefs.h <<\_ACEOF
5432 #define HAVE_LINUX_OS 1
5433 _ACEOF
5434
5435 else
5436
5437
5438 if $FALSEPRG; then
5439   HAVE_LINUX_OS_TRUE=
5440   HAVE_LINUX_OS_FALSE='#'
5441 else
5442   HAVE_LINUX_OS_TRUE='#'
5443   HAVE_LINUX_OS_FALSE=
5444 fi
5445 fi
5446
5447 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5448 then
5449
5450
5451 if $TRUEPRG; then
5452   HAVE_FREEBSD_OS_TRUE=
5453   HAVE_FREEBSD_OS_FALSE='#'
5454 else
5455   HAVE_FREEBSD_OS_TRUE='#'
5456   HAVE_FREEBSD_OS_FALSE=
5457 fi
5458         cat >>confdefs.h <<\_ACEOF
5459 #define HAVE_FREEBSD_OS 1
5460 _ACEOF
5461
5462 else
5463
5464
5465 if $FALSEPRG; then
5466   HAVE_FREEBSD_OS_TRUE=
5467   HAVE_FREEBSD_OS_FALSE='#'
5468 else
5469   HAVE_FREEBSD_OS_TRUE='#'
5470   HAVE_FREEBSD_OS_FALSE=
5471 fi
5472 fi
5473
5474 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5475 then
5476
5477
5478 if $TRUEPRG; then
5479   HAVE_NETBSD_OS_TRUE=
5480   HAVE_NETBSD_OS_FALSE='#'
5481 else
5482   HAVE_NETBSD_OS_TRUE='#'
5483   HAVE_NETBSD_OS_FALSE=
5484 fi
5485         cat >>confdefs.h <<\_ACEOF
5486 #define HAVE_NETBSD_OS 1
5487 _ACEOF
5488
5489 else
5490
5491
5492 if $FALSEPRG; then
5493   HAVE_NETBSD_OS_TRUE=
5494   HAVE_NETBSD_OS_FALSE='#'
5495 else
5496   HAVE_NETBSD_OS_TRUE='#'
5497   HAVE_NETBSD_OS_FALSE=
5498 fi
5499 fi
5500
5501 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5502 then
5503
5504
5505 if $TRUEPRG; then
5506   HAVE_OPENBSD_OS_TRUE=
5507   HAVE_OPENBSD_OS_FALSE='#'
5508 else
5509   HAVE_OPENBSD_OS_TRUE='#'
5510   HAVE_OPENBSD_OS_FALSE=
5511 fi
5512         cat >>confdefs.h <<\_ACEOF
5513 #define HAVE_OPENBSD_OS 1
5514 _ACEOF
5515
5516 else
5517
5518
5519 if $FALSEPRG; then
5520   HAVE_OPENBSD_OS_TRUE=
5521   HAVE_OPENBSD_OS_FALSE='#'
5522 else
5523   HAVE_OPENBSD_OS_TRUE='#'
5524   HAVE_OPENBSD_OS_FALSE=
5525 fi
5526 fi
5527
5528 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5529 then
5530
5531
5532 if $TRUEPRG; then
5533   HAVE_BSDI_OS_TRUE=
5534   HAVE_BSDI_OS_FALSE='#'
5535 else
5536   HAVE_BSDI_OS_TRUE='#'
5537   HAVE_BSDI_OS_FALSE=
5538 fi
5539         cat >>confdefs.h <<\_ACEOF
5540 #define HAVE_BSDI_OS 1
5541 _ACEOF
5542
5543 else
5544
5545
5546 if $FALSEPRG; then
5547   HAVE_BSDI_OS_TRUE=
5548   HAVE_BSDI_OS_FALSE='#'
5549 else
5550   HAVE_BSDI_OS_TRUE='#'
5551   HAVE_BSDI_OS_FALSE=
5552 fi
5553 fi
5554
5555 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5556 then
5557
5558
5559 if $TRUEPRG; then
5560   HAVE_SGI_OS_TRUE=
5561   HAVE_SGI_OS_FALSE='#'
5562 else
5563   HAVE_SGI_OS_TRUE='#'
5564   HAVE_SGI_OS_FALSE=
5565 fi
5566         cat >>confdefs.h <<\_ACEOF
5567 #define HAVE_SGI_OS 1
5568 _ACEOF
5569
5570 else
5571
5572
5573 if $FALSEPRG; then
5574   HAVE_SGI_OS_TRUE=
5575   HAVE_SGI_OS_FALSE='#'
5576 else
5577   HAVE_SGI_OS_TRUE='#'
5578   HAVE_SGI_OS_FALSE=
5579 fi
5580 fi
5581
5582 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5583 then
5584
5585
5586 if $TRUEPRG; then
5587   HAVE_IRIX_OS_TRUE=
5588   HAVE_IRIX_OS_FALSE='#'
5589 else
5590   HAVE_IRIX_OS_TRUE='#'
5591   HAVE_IRIX_OS_FALSE=
5592 fi
5593         cat >>confdefs.h <<\_ACEOF
5594 #define HAVE_IRIX_OS 1
5595 _ACEOF
5596
5597 else
5598
5599
5600 if $FALSEPRG; then
5601   HAVE_IRIX_OS_TRUE=
5602   HAVE_IRIX_OS_FALSE='#'
5603 else
5604   HAVE_IRIX_OS_TRUE='#'
5605   HAVE_IRIX_OS_FALSE=
5606 fi
5607 fi
5608
5609 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5610 then
5611
5612
5613 if $TRUEPRG; then
5614   HAVE_DARWIN_OS_TRUE=
5615   HAVE_DARWIN_OS_FALSE='#'
5616 else
5617   HAVE_DARWIN_OS_TRUE='#'
5618   HAVE_DARWIN_OS_FALSE=
5619 fi
5620     cat >>confdefs.h <<\_ACEOF
5621 #define HAVE_DARWIN_OS 1
5622 _ACEOF
5623
5624 else
5625
5626
5627 if $FALSEPRG; then
5628   HAVE_DARWIN_OS_TRUE=
5629   HAVE_DARWIN_OS_FALSE='#'
5630 else
5631   HAVE_DARWIN_OS_TRUE='#'
5632   HAVE_DARWIN_OS_FALSE=
5633 fi
5634 fi
5635
5636
5637 # -----------------------------------------------------------
5638 # ----------------------------------------------------------
5639 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5640 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5641 if test "x$DISTNAME" != "x"
5642 then
5643         echo "distname set to $DISTNAME"
5644 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5645 then
5646         DISTNAME=alpha
5647 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5648 then
5649         DISTNAME=aix
5650 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5651 then
5652         DISTNAME=hpux
5653 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5654 then
5655         DISTNAME=solaris
5656 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5657 then
5658         DISTNAME=freebsd
5659 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5660 then
5661         DISTNAME=netbsd
5662 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5663 then
5664         DISTNAME=openbsd
5665 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5666 then
5667         DISTNAME=irix
5668 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5669 then
5670         DISTNAME=bsdi
5671 elif test -f /etc/SuSE-release
5672 then
5673         DISTNAME=suse
5674 elif test -d /etc/SuSEconfig
5675 then
5676         DISTNAME=suse5
5677 elif test -f /etc/mandrake-release
5678 then
5679         DISTNAME=mandrake
5680 elif test -f /etc/whitebox-release
5681 then
5682        DISTNAME=redhat
5683 elif test -f /etc/redhat-release
5684 then
5685         DISTNAME=redhat
5686 elif test -f /etc/gentoo-release
5687 then
5688         DISTNAME=gentoo
5689 elif test -f /etc/debian_version
5690 then
5691         DISTNAME=debian
5692 elif test -f /etc/slackware-version
5693 then
5694         DISTNAME=slackware
5695 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5696 then
5697     DISTNAME=darwin
5698 elif test -f /etc/engarde-version
5699 then
5700         DISTNAME=engarde
5701 elif test "$CYGWIN" = yes
5702 then
5703         DISTNAME=cygwin
5704         cat >>confdefs.h <<\_ACEOF
5705 #define HAVE_CYGWIN 1
5706 _ACEOF
5707
5708 else
5709         DISTNAME=unknown
5710 fi
5711 { echo "$as_me:$LINENO: result: done" >&5
5712 echo "${ECHO_T}done" >&6; }
5713
5714
5715 # --------------------------------------------------
5716 # Suppport for gettext (translations)
5717 # By default, $datadir is ${prefix}/share
5718 # --------------------------------------------------
5719 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5720 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5721 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5722 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5723   echo $ECHO_N "(cached) $ECHO_C" >&6
5724 else
5725   cat >conftest.make <<\_ACEOF
5726 SHELL = /bin/sh
5727 all:
5728         @echo '@@@%%%=$(MAKE)=@@@%%%'
5729 _ACEOF
5730 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5731 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5732   *@@@%%%=?*=@@@%%%*)
5733     eval ac_cv_prog_make_${ac_make}_set=yes;;
5734   *)
5735     eval ac_cv_prog_make_${ac_make}_set=no;;
5736 esac
5737 rm -f conftest.make
5738 fi
5739 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5740   { echo "$as_me:$LINENO: result: yes" >&5
5741 echo "${ECHO_T}yes" >&6; }
5742   SET_MAKE=
5743 else
5744   { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5746   SET_MAKE="MAKE=${MAKE-make}"
5747 fi
5748
5749
5750
5751         MKINSTALLDIRS=
5752   if test -n "$ac_aux_dir"; then
5753     case "$ac_aux_dir" in
5754       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5755       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5756     esac
5757   fi
5758   if test -z "$MKINSTALLDIRS"; then
5759     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5760   fi
5761
5762
5763
5764   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5765 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5766     # Check whether --enable-nls was given.
5767 if test "${enable_nls+set}" = set; then
5768   enableval=$enable_nls; USE_NLS=$enableval
5769 else
5770   USE_NLS=yes
5771 fi
5772
5773   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5774 echo "${ECHO_T}$USE_NLS" >&6; }
5775
5776
5777
5778
5779
5780
5781 # Prepare PATH_SEPARATOR.
5782 # The user is always right.
5783 if test "${PATH_SEPARATOR+set}" != set; then
5784   echo "#! /bin/sh" >conf$$.sh
5785   echo  "exit 0"   >>conf$$.sh
5786   chmod +x conf$$.sh
5787   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5788     PATH_SEPARATOR=';'
5789   else
5790     PATH_SEPARATOR=:
5791   fi
5792   rm -f conf$$.sh
5793 fi
5794
5795 # Find out how to test for executable files. Don't use a zero-byte file,
5796 # as systems may use methods other than mode bits to determine executability.
5797 cat >conf$$.file <<_ASEOF
5798 #! /bin/sh
5799 exit 0
5800 _ASEOF
5801 chmod +x conf$$.file
5802 if test -x conf$$.file >/dev/null 2>&1; then
5803   ac_executable_p="test -x"
5804 else
5805   ac_executable_p="test -f"
5806 fi
5807 rm -f conf$$.file
5808
5809 # Extract the first word of "msgfmt", so it can be a program name with args.
5810 set dummy msgfmt; ac_word=$2
5811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5813 if test "${ac_cv_path_MSGFMT+set}" = set; then
5814   echo $ECHO_N "(cached) $ECHO_C" >&6
5815 else
5816   case "$MSGFMT" in
5817   [\\/]* | ?:[\\/]*)
5818     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5819     ;;
5820   *)
5821     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5822     for ac_dir in $PATH; do
5823       IFS="$ac_save_IFS"
5824       test -z "$ac_dir" && ac_dir=.
5825       for ac_exec_ext in '' $ac_executable_extensions; do
5826         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5827           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5828           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5829      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5830             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5831             break 2
5832           fi
5833         fi
5834       done
5835     done
5836     IFS="$ac_save_IFS"
5837   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5838     ;;
5839 esac
5840 fi
5841 MSGFMT="$ac_cv_path_MSGFMT"
5842 if test "$MSGFMT" != ":"; then
5843   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5844 echo "${ECHO_T}$MSGFMT" >&6; }
5845 else
5846   { echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6; }
5848 fi
5849
5850   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5851 set dummy gmsgfmt; ac_word=$2
5852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5854 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5855   echo $ECHO_N "(cached) $ECHO_C" >&6
5856 else
5857   case $GMSGFMT in
5858   [\\/]* | ?:[\\/]*)
5859   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5860   ;;
5861   *)
5862   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 for as_dir in $PATH
5864 do
5865   IFS=$as_save_IFS
5866   test -z "$as_dir" && as_dir=.
5867   for ac_exec_ext in '' $ac_executable_extensions; do
5868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5869     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5871     break 2
5872   fi
5873 done
5874 done
5875 IFS=$as_save_IFS
5876
5877   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5878   ;;
5879 esac
5880 fi
5881 GMSGFMT=$ac_cv_path_GMSGFMT
5882 if test -n "$GMSGFMT"; then
5883   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5884 echo "${ECHO_T}$GMSGFMT" >&6; }
5885 else
5886   { echo "$as_me:$LINENO: result: no" >&5
5887 echo "${ECHO_T}no" >&6; }
5888 fi
5889
5890
5891
5892
5893 # Prepare PATH_SEPARATOR.
5894 # The user is always right.
5895 if test "${PATH_SEPARATOR+set}" != set; then
5896   echo "#! /bin/sh" >conf$$.sh
5897   echo  "exit 0"   >>conf$$.sh
5898   chmod +x conf$$.sh
5899   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5900     PATH_SEPARATOR=';'
5901   else
5902     PATH_SEPARATOR=:
5903   fi
5904   rm -f conf$$.sh
5905 fi
5906
5907 # Find out how to test for executable files. Don't use a zero-byte file,
5908 # as systems may use methods other than mode bits to determine executability.
5909 cat >conf$$.file <<_ASEOF
5910 #! /bin/sh
5911 exit 0
5912 _ASEOF
5913 chmod +x conf$$.file
5914 if test -x conf$$.file >/dev/null 2>&1; then
5915   ac_executable_p="test -x"
5916 else
5917   ac_executable_p="test -f"
5918 fi
5919 rm -f conf$$.file
5920
5921 # Extract the first word of "xgettext", so it can be a program name with args.
5922 set dummy xgettext; ac_word=$2
5923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5926   echo $ECHO_N "(cached) $ECHO_C" >&6
5927 else
5928   case "$XGETTEXT" in
5929   [\\/]* | ?:[\\/]*)
5930     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5931     ;;
5932   *)
5933     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5934     for ac_dir in $PATH; do
5935       IFS="$ac_save_IFS"
5936       test -z "$ac_dir" && ac_dir=.
5937       for ac_exec_ext in '' $ac_executable_extensions; do
5938         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5939           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5940           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5941      (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
5942             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5943             break 2
5944           fi
5945         fi
5946       done
5947     done
5948     IFS="$ac_save_IFS"
5949   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5950     ;;
5951 esac
5952 fi
5953 XGETTEXT="$ac_cv_path_XGETTEXT"
5954 if test "$XGETTEXT" != ":"; then
5955   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5956 echo "${ECHO_T}$XGETTEXT" >&6; }
5957 else
5958   { echo "$as_me:$LINENO: result: no" >&5
5959 echo "${ECHO_T}no" >&6; }
5960 fi
5961
5962     rm -f messages.po
5963
5964
5965 # Prepare PATH_SEPARATOR.
5966 # The user is always right.
5967 if test "${PATH_SEPARATOR+set}" != set; then
5968   echo "#! /bin/sh" >conf$$.sh
5969   echo  "exit 0"   >>conf$$.sh
5970   chmod +x conf$$.sh
5971   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5972     PATH_SEPARATOR=';'
5973   else
5974     PATH_SEPARATOR=:
5975   fi
5976   rm -f conf$$.sh
5977 fi
5978
5979 # Find out how to test for executable files. Don't use a zero-byte file,
5980 # as systems may use methods other than mode bits to determine executability.
5981 cat >conf$$.file <<_ASEOF
5982 #! /bin/sh
5983 exit 0
5984 _ASEOF
5985 chmod +x conf$$.file
5986 if test -x conf$$.file >/dev/null 2>&1; then
5987   ac_executable_p="test -x"
5988 else
5989   ac_executable_p="test -f"
5990 fi
5991 rm -f conf$$.file
5992
5993 # Extract the first word of "msgmerge", so it can be a program name with args.
5994 set dummy msgmerge; ac_word=$2
5995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5997 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   case "$MSGMERGE" in
6001   [\\/]* | ?:[\\/]*)
6002     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6003     ;;
6004   *)
6005     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6006     for ac_dir in $PATH; do
6007       IFS="$ac_save_IFS"
6008       test -z "$ac_dir" && ac_dir=.
6009       for ac_exec_ext in '' $ac_executable_extensions; do
6010         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6011           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6012           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6013             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6014             break 2
6015           fi
6016         fi
6017       done
6018     done
6019     IFS="$ac_save_IFS"
6020   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6021     ;;
6022 esac
6023 fi
6024 MSGMERGE="$ac_cv_path_MSGMERGE"
6025 if test "$MSGMERGE" != ":"; then
6026   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6027 echo "${ECHO_T}$MSGMERGE" >&6; }
6028 else
6029   { echo "$as_me:$LINENO: result: no" >&5
6030 echo "${ECHO_T}no" >&6; }
6031 fi
6032
6033
6034       if test "$GMSGFMT" != ":"; then
6035             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6036        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6037       : ;
6038     else
6039       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6040       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6041 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6042       GMSGFMT=":"
6043     fi
6044   fi
6045
6046       if test "$XGETTEXT" != ":"; then
6047             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6048        (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
6049       : ;
6050     else
6051       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6052 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6053       XGETTEXT=":"
6054     fi
6055         rm -f messages.po
6056   fi
6057
6058   ac_config_commands="$ac_config_commands default-1"
6059
6060
6061
6062       if test "X$prefix" = "XNONE"; then
6063     acl_final_prefix="$ac_default_prefix"
6064   else
6065     acl_final_prefix="$prefix"
6066   fi
6067   if test "X$exec_prefix" = "XNONE"; then
6068     acl_final_exec_prefix='${prefix}'
6069   else
6070     acl_final_exec_prefix="$exec_prefix"
6071   fi
6072   acl_save_prefix="$prefix"
6073   prefix="$acl_final_prefix"
6074   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6075   prefix="$acl_save_prefix"
6076
6077
6078 # Check whether --with-gnu-ld was given.
6079 if test "${with_gnu_ld+set}" = set; then
6080   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6081 else
6082   with_gnu_ld=no
6083 fi
6084
6085 # Prepare PATH_SEPARATOR.
6086 # The user is always right.
6087 if test "${PATH_SEPARATOR+set}" != set; then
6088   echo "#! /bin/sh" >conf$$.sh
6089   echo  "exit 0"   >>conf$$.sh
6090   chmod +x conf$$.sh
6091   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6092     PATH_SEPARATOR=';'
6093   else
6094     PATH_SEPARATOR=:
6095   fi
6096   rm -f conf$$.sh
6097 fi
6098 ac_prog=ld
6099 if test "$GCC" = yes; then
6100   # Check if gcc -print-prog-name=ld gives a path.
6101   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6102 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6103   case $host in
6104   *-*-mingw*)
6105     # gcc leaves a trailing carriage return which upsets mingw
6106     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6107   *)
6108     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6109   esac
6110   case $ac_prog in
6111     # Accept absolute paths.
6112     [\\/]* | [A-Za-z]:[\\/]*)
6113       re_direlt='/[^/][^/]*/\.\./'
6114       # Canonicalize the path of ld
6115       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6116       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6117         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6118       done
6119       test -z "$LD" && LD="$ac_prog"
6120       ;;
6121   "")
6122     # If it fails, then pretend we aren't using GCC.
6123     ac_prog=ld
6124     ;;
6125   *)
6126     # If it is relative, then search for the first ld in PATH.
6127     with_gnu_ld=unknown
6128     ;;
6129   esac
6130 elif test "$with_gnu_ld" = yes; then
6131   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6133 else
6134   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6136 fi
6137 if test "${acl_cv_path_LD+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   if test -z "$LD"; then
6141   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6142   for ac_dir in $PATH; do
6143     test -z "$ac_dir" && ac_dir=.
6144     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6145       acl_cv_path_LD="$ac_dir/$ac_prog"
6146       # Check to see if the program is GNU ld.  I'd rather use --version,
6147       # but apparently some GNU ld's only accept -v.
6148       # Break only if it was the GNU/non-GNU ld that we prefer.
6149       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6150       *GNU* | *'with BFD'*)
6151         test "$with_gnu_ld" != no && break ;;
6152       *)
6153         test "$with_gnu_ld" != yes && break ;;
6154       esac
6155     fi
6156   done
6157   IFS="$ac_save_ifs"
6158 else
6159   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6160 fi
6161 fi
6162
6163 LD="$acl_cv_path_LD"
6164 if test -n "$LD"; then
6165   { echo "$as_me:$LINENO: result: $LD" >&5
6166 echo "${ECHO_T}$LD" >&6; }
6167 else
6168   { echo "$as_me:$LINENO: result: no" >&5
6169 echo "${ECHO_T}no" >&6; }
6170 fi
6171 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6172 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6173    { (exit 1); exit 1; }; }
6174 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6175 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6176 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6177   echo $ECHO_N "(cached) $ECHO_C" >&6
6178 else
6179   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6180 case `$LD -v 2>&1 </dev/null` in
6181 *GNU* | *'with BFD'*)
6182   acl_cv_prog_gnu_ld=yes ;;
6183 *)
6184   acl_cv_prog_gnu_ld=no ;;
6185 esac
6186 fi
6187 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6188 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6189 with_gnu_ld=$acl_cv_prog_gnu_ld
6190
6191
6192
6193
6194                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6195 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6196 if test "${acl_cv_rpath+set}" = set; then
6197   echo $ECHO_N "(cached) $ECHO_C" >&6
6198 else
6199
6200     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6201     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6202     . ./conftest.sh
6203     rm -f ./conftest.sh
6204     acl_cv_rpath=done
6205
6206 fi
6207 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6208 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6209   wl="$acl_cv_wl"
6210   libext="$acl_cv_libext"
6211   shlibext="$acl_cv_shlibext"
6212   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6213   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6214   hardcode_direct="$acl_cv_hardcode_direct"
6215   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6216     # Check whether --enable-rpath was given.
6217 if test "${enable_rpath+set}" = set; then
6218   enableval=$enable_rpath; :
6219 else
6220   enable_rpath=yes
6221 fi
6222
6223
6224
6225
6226
6227
6228
6229
6230     use_additional=yes
6231
6232   acl_save_prefix="$prefix"
6233   prefix="$acl_final_prefix"
6234   acl_save_exec_prefix="$exec_prefix"
6235   exec_prefix="$acl_final_exec_prefix"
6236
6237     eval additional_includedir=\"$includedir\"
6238     eval additional_libdir=\"$libdir\"
6239
6240   exec_prefix="$acl_save_exec_prefix"
6241   prefix="$acl_save_prefix"
6242
6243
6244 # Check whether --with-libiconv-prefix was given.
6245 if test "${with_libiconv_prefix+set}" = set; then
6246   withval=$with_libiconv_prefix;
6247     if test "X$withval" = "Xno"; then
6248       use_additional=no
6249     else
6250       if test "X$withval" = "X"; then
6251
6252   acl_save_prefix="$prefix"
6253   prefix="$acl_final_prefix"
6254   acl_save_exec_prefix="$exec_prefix"
6255   exec_prefix="$acl_final_exec_prefix"
6256
6257           eval additional_includedir=\"$includedir\"
6258           eval additional_libdir=\"$libdir\"
6259
6260   exec_prefix="$acl_save_exec_prefix"
6261   prefix="$acl_save_prefix"
6262
6263       else
6264         additional_includedir="$withval/include"
6265         additional_libdir="$withval/lib"
6266       fi
6267     fi
6268
6269 fi
6270
6271       LIBICONV=
6272   LTLIBICONV=
6273   INCICONV=
6274   rpathdirs=
6275   ltrpathdirs=
6276   names_already_handled=
6277   names_next_round='iconv '
6278   while test -n "$names_next_round"; do
6279     names_this_round="$names_next_round"
6280     names_next_round=
6281     for name in $names_this_round; do
6282       already_handled=
6283       for n in $names_already_handled; do
6284         if test "$n" = "$name"; then
6285           already_handled=yes
6286           break
6287         fi
6288       done
6289       if test -z "$already_handled"; then
6290         names_already_handled="$names_already_handled $name"
6291                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6292         eval value=\"\$HAVE_LIB$uppername\"
6293         if test -n "$value"; then
6294           if test "$value" = yes; then
6295             eval value=\"\$LIB$uppername\"
6296             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6297             eval value=\"\$LTLIB$uppername\"
6298             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6299           else
6300                                     :
6301           fi
6302         else
6303                               found_dir=
6304           found_la=
6305           found_so=
6306           found_a=
6307           if test $use_additional = yes; then
6308             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6309               found_dir="$additional_libdir"
6310               found_so="$additional_libdir/lib$name.$shlibext"
6311               if test -f "$additional_libdir/lib$name.la"; then
6312                 found_la="$additional_libdir/lib$name.la"
6313               fi
6314             else
6315               if test -f "$additional_libdir/lib$name.$libext"; then
6316                 found_dir="$additional_libdir"
6317                 found_a="$additional_libdir/lib$name.$libext"
6318                 if test -f "$additional_libdir/lib$name.la"; then
6319                   found_la="$additional_libdir/lib$name.la"
6320                 fi
6321               fi
6322             fi
6323           fi
6324           if test "X$found_dir" = "X"; then
6325             for x in $LDFLAGS $LTLIBICONV; do
6326
6327   acl_save_prefix="$prefix"
6328   prefix="$acl_final_prefix"
6329   acl_save_exec_prefix="$exec_prefix"
6330   exec_prefix="$acl_final_exec_prefix"
6331   eval x=\"$x\"
6332   exec_prefix="$acl_save_exec_prefix"
6333   prefix="$acl_save_prefix"
6334
6335               case "$x" in
6336                 -L*)
6337                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6338                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6339                     found_dir="$dir"
6340                     found_so="$dir/lib$name.$shlibext"
6341                     if test -f "$dir/lib$name.la"; then
6342                       found_la="$dir/lib$name.la"
6343                     fi
6344                   else
6345                     if test -f "$dir/lib$name.$libext"; then
6346                       found_dir="$dir"
6347                       found_a="$dir/lib$name.$libext"
6348                       if test -f "$dir/lib$name.la"; then
6349                         found_la="$dir/lib$name.la"
6350                       fi
6351                     fi
6352                   fi
6353                   ;;
6354               esac
6355               if test "X$found_dir" != "X"; then
6356                 break
6357               fi
6358             done
6359           fi
6360           if test "X$found_dir" != "X"; then
6361                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6362             if test "X$found_so" != "X"; then
6363                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6364                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6365               else
6366                                                                                 haveit=
6367                 for x in $ltrpathdirs; do
6368                   if test "X$x" = "X$found_dir"; then
6369                     haveit=yes
6370                     break
6371                   fi
6372                 done
6373                 if test -z "$haveit"; then
6374                   ltrpathdirs="$ltrpathdirs $found_dir"
6375                 fi
6376                                 if test "$hardcode_direct" = yes; then
6377                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6378                 else
6379                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6380                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6381                                                             haveit=
6382                     for x in $rpathdirs; do
6383                       if test "X$x" = "X$found_dir"; then
6384                         haveit=yes
6385                         break
6386                       fi
6387                     done
6388                     if test -z "$haveit"; then
6389                       rpathdirs="$rpathdirs $found_dir"
6390                     fi
6391                   else
6392                                                                                 haveit=
6393                     for x in $LDFLAGS $LIBICONV; do
6394
6395   acl_save_prefix="$prefix"
6396   prefix="$acl_final_prefix"
6397   acl_save_exec_prefix="$exec_prefix"
6398   exec_prefix="$acl_final_exec_prefix"
6399   eval x=\"$x\"
6400   exec_prefix="$acl_save_exec_prefix"
6401   prefix="$acl_save_prefix"
6402
6403                       if test "X$x" = "X-L$found_dir"; then
6404                         haveit=yes
6405                         break
6406                       fi
6407                     done
6408                     if test -z "$haveit"; then
6409                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6410                     fi
6411                     if test "$hardcode_minus_L" != no; then
6412                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6413                     else
6414                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6415                     fi
6416                   fi
6417                 fi
6418               fi
6419             else
6420               if test "X$found_a" != "X"; then
6421                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6422               else
6423                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6424               fi
6425             fi
6426                         additional_includedir=
6427             case "$found_dir" in
6428               */lib | */lib/)
6429                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6430                 additional_includedir="$basedir/include"
6431                 ;;
6432             esac
6433             if test "X$additional_includedir" != "X"; then
6434                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6435                 haveit=
6436                 if test "X$additional_includedir" = "X/usr/local/include"; then
6437                   if test -n "$GCC"; then
6438                     case $host_os in
6439                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6440                     esac
6441                   fi
6442                 fi
6443                 if test -z "$haveit"; then
6444                   for x in $CPPFLAGS $INCICONV; do
6445
6446   acl_save_prefix="$prefix"
6447   prefix="$acl_final_prefix"
6448   acl_save_exec_prefix="$exec_prefix"
6449   exec_prefix="$acl_final_exec_prefix"
6450   eval x=\"$x\"
6451   exec_prefix="$acl_save_exec_prefix"
6452   prefix="$acl_save_prefix"
6453
6454                     if test "X$x" = "X-I$additional_includedir"; then
6455                       haveit=yes
6456                       break
6457                     fi
6458                   done
6459                   if test -z "$haveit"; then
6460                     if test -d "$additional_includedir"; then
6461                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6462                     fi
6463                   fi
6464                 fi
6465               fi
6466             fi
6467                         if test -n "$found_la"; then
6468                                                         save_libdir="$libdir"
6469               case "$found_la" in
6470                 */* | *\\*) . "$found_la" ;;
6471                 *) . "./$found_la" ;;
6472               esac
6473               libdir="$save_libdir"
6474                             for dep in $dependency_libs; do
6475                 case "$dep" in
6476                   -L*)
6477                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6478                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6479                       haveit=
6480                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6481                         if test -n "$GCC"; then
6482                           case $host_os in
6483                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6484                           esac
6485                         fi
6486                       fi
6487                       if test -z "$haveit"; then
6488                         haveit=
6489                         for x in $LDFLAGS $LIBICONV; do
6490
6491   acl_save_prefix="$prefix"
6492   prefix="$acl_final_prefix"
6493   acl_save_exec_prefix="$exec_prefix"
6494   exec_prefix="$acl_final_exec_prefix"
6495   eval x=\"$x\"
6496   exec_prefix="$acl_save_exec_prefix"
6497   prefix="$acl_save_prefix"
6498
6499                           if test "X$x" = "X-L$additional_libdir"; then
6500                             haveit=yes
6501                             break
6502                           fi
6503                         done
6504                         if test -z "$haveit"; then
6505                           if test -d "$additional_libdir"; then
6506                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6507                           fi
6508                         fi
6509                         haveit=
6510                         for x in $LDFLAGS $LTLIBICONV; do
6511
6512   acl_save_prefix="$prefix"
6513   prefix="$acl_final_prefix"
6514   acl_save_exec_prefix="$exec_prefix"
6515   exec_prefix="$acl_final_exec_prefix"
6516   eval x=\"$x\"
6517   exec_prefix="$acl_save_exec_prefix"
6518   prefix="$acl_save_prefix"
6519
6520                           if test "X$x" = "X-L$additional_libdir"; then
6521                             haveit=yes
6522                             break
6523                           fi
6524                         done
6525                         if test -z "$haveit"; then
6526                           if test -d "$additional_libdir"; then
6527                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6528                           fi
6529                         fi
6530                       fi
6531                     fi
6532                     ;;
6533                   -R*)
6534                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6535                     if test "$enable_rpath" != no; then
6536                                                                   haveit=
6537                       for x in $rpathdirs; do
6538                         if test "X$x" = "X$dir"; then
6539                           haveit=yes
6540                           break
6541                         fi
6542                       done
6543                       if test -z "$haveit"; then
6544                         rpathdirs="$rpathdirs $dir"
6545                       fi
6546                                                                   haveit=
6547                       for x in $ltrpathdirs; do
6548                         if test "X$x" = "X$dir"; then
6549                           haveit=yes
6550                           break
6551                         fi
6552                       done
6553                       if test -z "$haveit"; then
6554                         ltrpathdirs="$ltrpathdirs $dir"
6555                       fi
6556                     fi
6557                     ;;
6558                   -l*)
6559                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6560                     ;;
6561                   *.la)
6562                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6563                     ;;
6564                   *)
6565                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6566                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6567                     ;;
6568                 esac
6569               done
6570             fi
6571           else
6572                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6573             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6574           fi
6575         fi
6576       fi
6577     done
6578   done
6579   if test "X$rpathdirs" != "X"; then
6580     if test -n "$hardcode_libdir_separator"; then
6581                         alldirs=
6582       for found_dir in $rpathdirs; do
6583         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6584       done
6585             acl_save_libdir="$libdir"
6586       libdir="$alldirs"
6587       eval flag=\"$hardcode_libdir_flag_spec\"
6588       libdir="$acl_save_libdir"
6589       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6590     else
6591             for found_dir in $rpathdirs; do
6592         acl_save_libdir="$libdir"
6593         libdir="$found_dir"
6594         eval flag=\"$hardcode_libdir_flag_spec\"
6595         libdir="$acl_save_libdir"
6596         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6597       done
6598     fi
6599   fi
6600   if test "X$ltrpathdirs" != "X"; then
6601             for found_dir in $ltrpathdirs; do
6602       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6603     done
6604   fi
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6624 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6625 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6626   echo $ECHO_N "(cached) $ECHO_C" >&6
6627 else
6628   gt_save_CPPFLAGS="$CPPFLAGS"
6629      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6630      gt_save_LIBS="$LIBS"
6631      LIBS="$LIBS -framework CoreFoundation"
6632      cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h.  */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h.  */
6638 #include <CFPreferences.h>
6639 int
6640 main ()
6641 {
6642 CFPreferencesCopyAppValue(NULL, NULL)
6643   ;
6644   return 0;
6645 }
6646 _ACEOF
6647 rm -f conftest.$ac_objext conftest$ac_exeext
6648 if { (ac_try="$ac_link"
6649 case "(($ac_try" in
6650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651   *) ac_try_echo=$ac_try;;
6652 esac
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654   (eval "$ac_link") 2>conftest.er1
6655   ac_status=$?
6656   grep -v '^ *+' conftest.er1 >conftest.err
6657   rm -f conftest.er1
6658   cat conftest.err >&5
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); } && {
6661          test -z "$ac_c_werror_flag" ||
6662          test ! -s conftest.err
6663        } && test -s conftest$ac_exeext &&
6664        $as_test_x conftest$ac_exeext; then
6665   gt_cv_func_CFPreferencesCopyAppValue=yes
6666 else
6667   echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670         gt_cv_func_CFPreferencesCopyAppValue=no
6671 fi
6672
6673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6674       conftest$ac_exeext conftest.$ac_ext
6675      CPPFLAGS="$gt_save_CPPFLAGS"
6676      LIBS="$gt_save_LIBS"
6677 fi
6678 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6679 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6680   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6684 _ACEOF
6685
6686   fi
6687     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6688 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6689 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6690   echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692   gt_save_CPPFLAGS="$CPPFLAGS"
6693      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6694      gt_save_LIBS="$LIBS"
6695      LIBS="$LIBS -framework CoreFoundation"
6696      cat >conftest.$ac_ext <<_ACEOF
6697 /* confdefs.h.  */
6698 _ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h.  */
6702 #include <CFLocale.h>
6703 int
6704 main ()
6705 {
6706 CFLocaleCopyCurrent();
6707   ;
6708   return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext conftest$ac_exeext
6712 if { (ac_try="$ac_link"
6713 case "(($ac_try" in
6714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715   *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718   (eval "$ac_link") 2>conftest.er1
6719   ac_status=$?
6720   grep -v '^ *+' conftest.er1 >conftest.err
6721   rm -f conftest.er1
6722   cat conftest.err >&5
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } && {
6725          test -z "$ac_c_werror_flag" ||
6726          test ! -s conftest.err
6727        } && test -s conftest$ac_exeext &&
6728        $as_test_x conftest$ac_exeext; then
6729   gt_cv_func_CFLocaleCopyCurrent=yes
6730 else
6731   echo "$as_me: failed program was:" >&5
6732 sed 's/^/| /' conftest.$ac_ext >&5
6733
6734         gt_cv_func_CFLocaleCopyCurrent=no
6735 fi
6736
6737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6738       conftest$ac_exeext conftest.$ac_ext
6739      CPPFLAGS="$gt_save_CPPFLAGS"
6740      LIBS="$gt_save_LIBS"
6741 fi
6742 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6743 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6744   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6745
6746 cat >>confdefs.h <<\_ACEOF
6747 #define HAVE_CFLOCALECOPYCURRENT 1
6748 _ACEOF
6749
6750   fi
6751   INTL_MACOSX_LIBS=
6752   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6753     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6754   fi
6755
6756
6757
6758
6759   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6760 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6761     # Check whether --enable-nls was given.
6762 if test "${enable_nls+set}" = set; then
6763   enableval=$enable_nls; USE_NLS=$enableval
6764 else
6765   USE_NLS=yes
6766 fi
6767
6768   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6769 echo "${ECHO_T}$USE_NLS" >&6; }
6770
6771
6772
6773
6774   LIBINTL=
6775   LTLIBINTL=
6776   POSUB=
6777
6778     if test "$USE_NLS" = "yes"; then
6779     gt_use_preinstalled_gnugettext=no
6780
6781
6782
6783
6784
6785
6786         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6787 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6788 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6789   echo $ECHO_N "(cached) $ECHO_C" >&6
6790 else
6791   cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h.  */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h.  */
6797 #include <libintl.h>
6798 extern int _nl_msg_cat_cntr;
6799 extern int *_nl_domain_bindings;
6800 int
6801 main ()
6802 {
6803 bindtextdomain ("", "");
6804 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest.$ac_objext conftest$ac_exeext
6810 if { (ac_try="$ac_link"
6811 case "(($ac_try" in
6812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813   *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816   (eval "$ac_link") 2>conftest.er1
6817   ac_status=$?
6818   grep -v '^ *+' conftest.er1 >conftest.err
6819   rm -f conftest.er1
6820   cat conftest.err >&5
6821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822   (exit $ac_status); } && {
6823          test -z "$ac_c_werror_flag" ||
6824          test ! -s conftest.err
6825        } && test -s conftest$ac_exeext &&
6826        $as_test_x conftest$ac_exeext; then
6827   gt_cv_func_gnugettext1_libc=yes
6828 else
6829   echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6831
6832         gt_cv_func_gnugettext1_libc=no
6833 fi
6834
6835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6836       conftest$ac_exeext conftest.$ac_ext
6837 fi
6838 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6839 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6840
6841         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6842
6843
6844
6845
6846
6847           am_save_CPPFLAGS="$CPPFLAGS"
6848
6849   for element in $INCICONV; do
6850     haveit=
6851     for x in $CPPFLAGS; do
6852
6853   acl_save_prefix="$prefix"
6854   prefix="$acl_final_prefix"
6855   acl_save_exec_prefix="$exec_prefix"
6856   exec_prefix="$acl_final_exec_prefix"
6857   eval x=\"$x\"
6858   exec_prefix="$acl_save_exec_prefix"
6859   prefix="$acl_save_prefix"
6860
6861       if test "X$x" = "X$element"; then
6862         haveit=yes
6863         break
6864       fi
6865     done
6866     if test -z "$haveit"; then
6867       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6868     fi
6869   done
6870
6871
6872   { echo "$as_me:$LINENO: checking for iconv" >&5
6873 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6874 if test "${am_cv_func_iconv+set}" = set; then
6875   echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877
6878     am_cv_func_iconv="no, consider installing GNU libiconv"
6879     am_cv_lib_iconv=no
6880     cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 #include <stdlib.h>
6887 #include <iconv.h>
6888 int
6889 main ()
6890 {
6891 iconv_t cd = iconv_open("","");
6892        iconv(cd,NULL,NULL,NULL,NULL);
6893        iconv_close(cd);
6894   ;
6895   return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6900 case "(($ac_try" in
6901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902   *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905   (eval "$ac_link") 2>conftest.er1
6906   ac_status=$?
6907   grep -v '^ *+' conftest.er1 >conftest.err
6908   rm -f conftest.er1
6909   cat conftest.err >&5
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } && {
6912          test -z "$ac_c_werror_flag" ||
6913          test ! -s conftest.err
6914        } && test -s conftest$ac_exeext &&
6915        $as_test_x conftest$ac_exeext; then
6916   am_cv_func_iconv=yes
6917 else
6918   echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6920
6921
6922 fi
6923
6924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6925       conftest$ac_exeext conftest.$ac_ext
6926     if test "$am_cv_func_iconv" != yes; then
6927       am_save_LIBS="$LIBS"
6928       LIBS="$LIBS $LIBICONV"
6929       cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h.  */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h.  */
6935 #include <stdlib.h>
6936 #include <iconv.h>
6937 int
6938 main ()
6939 {
6940 iconv_t cd = iconv_open("","");
6941          iconv(cd,NULL,NULL,NULL,NULL);
6942          iconv_close(cd);
6943   ;
6944   return 0;
6945 }
6946 _ACEOF
6947 rm -f conftest.$ac_objext conftest$ac_exeext
6948 if { (ac_try="$ac_link"
6949 case "(($ac_try" in
6950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951   *) ac_try_echo=$ac_try;;
6952 esac
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954   (eval "$ac_link") 2>conftest.er1
6955   ac_status=$?
6956   grep -v '^ *+' conftest.er1 >conftest.err
6957   rm -f conftest.er1
6958   cat conftest.err >&5
6959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960   (exit $ac_status); } && {
6961          test -z "$ac_c_werror_flag" ||
6962          test ! -s conftest.err
6963        } && test -s conftest$ac_exeext &&
6964        $as_test_x conftest$ac_exeext; then
6965   am_cv_lib_iconv=yes
6966         am_cv_func_iconv=yes
6967 else
6968   echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6970
6971
6972 fi
6973
6974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975       conftest$ac_exeext conftest.$ac_ext
6976       LIBS="$am_save_LIBS"
6977     fi
6978
6979 fi
6980 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6981 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6982   if test "$am_cv_func_iconv" = yes; then
6983
6984 cat >>confdefs.h <<\_ACEOF
6985 #define HAVE_ICONV 1
6986 _ACEOF
6987
6988   fi
6989   if test "$am_cv_lib_iconv" = yes; then
6990     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6991 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6992     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6993 echo "${ECHO_T}$LIBICONV" >&6; }
6994   else
6995             CPPFLAGS="$am_save_CPPFLAGS"
6996     LIBICONV=
6997     LTLIBICONV=
6998   fi
6999
7000
7001
7002
7003
7004
7005     use_additional=yes
7006
7007   acl_save_prefix="$prefix"
7008   prefix="$acl_final_prefix"
7009   acl_save_exec_prefix="$exec_prefix"
7010   exec_prefix="$acl_final_exec_prefix"
7011
7012     eval additional_includedir=\"$includedir\"
7013     eval additional_libdir=\"$libdir\"
7014
7015   exec_prefix="$acl_save_exec_prefix"
7016   prefix="$acl_save_prefix"
7017
7018
7019 # Check whether --with-libintl-prefix was given.
7020 if test "${with_libintl_prefix+set}" = set; then
7021   withval=$with_libintl_prefix;
7022     if test "X$withval" = "Xno"; then
7023       use_additional=no
7024     else
7025       if test "X$withval" = "X"; then
7026
7027   acl_save_prefix="$prefix"
7028   prefix="$acl_final_prefix"
7029   acl_save_exec_prefix="$exec_prefix"
7030   exec_prefix="$acl_final_exec_prefix"
7031
7032           eval additional_includedir=\"$includedir\"
7033           eval additional_libdir=\"$libdir\"
7034
7035   exec_prefix="$acl_save_exec_prefix"
7036   prefix="$acl_save_prefix"
7037
7038       else
7039         additional_includedir="$withval/include"
7040         additional_libdir="$withval/lib"
7041       fi
7042     fi
7043
7044 fi
7045
7046       LIBINTL=
7047   LTLIBINTL=
7048   INCINTL=
7049   rpathdirs=
7050   ltrpathdirs=
7051   names_already_handled=
7052   names_next_round='intl '
7053   while test -n "$names_next_round"; do
7054     names_this_round="$names_next_round"
7055     names_next_round=
7056     for name in $names_this_round; do
7057       already_handled=
7058       for n in $names_already_handled; do
7059         if test "$n" = "$name"; then
7060           already_handled=yes
7061           break
7062         fi
7063       done
7064       if test -z "$already_handled"; then
7065         names_already_handled="$names_already_handled $name"
7066                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7067         eval value=\"\$HAVE_LIB$uppername\"
7068         if test -n "$value"; then
7069           if test "$value" = yes; then
7070             eval value=\"\$LIB$uppername\"
7071             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7072             eval value=\"\$LTLIB$uppername\"
7073             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7074           else
7075                                     :
7076           fi
7077         else
7078                               found_dir=
7079           found_la=
7080           found_so=
7081           found_a=
7082           if test $use_additional = yes; then
7083             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7084               found_dir="$additional_libdir"
7085               found_so="$additional_libdir/lib$name.$shlibext"
7086               if test -f "$additional_libdir/lib$name.la"; then
7087                 found_la="$additional_libdir/lib$name.la"
7088               fi
7089             else
7090               if test -f "$additional_libdir/lib$name.$libext"; then
7091                 found_dir="$additional_libdir"
7092                 found_a="$additional_libdir/lib$name.$libext"
7093                 if test -f "$additional_libdir/lib$name.la"; then
7094                   found_la="$additional_libdir/lib$name.la"
7095                 fi
7096               fi
7097             fi
7098           fi
7099           if test "X$found_dir" = "X"; then
7100             for x in $LDFLAGS $LTLIBINTL; do
7101
7102   acl_save_prefix="$prefix"
7103   prefix="$acl_final_prefix"
7104   acl_save_exec_prefix="$exec_prefix"
7105   exec_prefix="$acl_final_exec_prefix"
7106   eval x=\"$x\"
7107   exec_prefix="$acl_save_exec_prefix"
7108   prefix="$acl_save_prefix"
7109
7110               case "$x" in
7111                 -L*)
7112                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7113                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7114                     found_dir="$dir"
7115                     found_so="$dir/lib$name.$shlibext"
7116                     if test -f "$dir/lib$name.la"; then
7117                       found_la="$dir/lib$name.la"
7118                     fi
7119                   else
7120                     if test -f "$dir/lib$name.$libext"; then
7121                       found_dir="$dir"
7122                       found_a="$dir/lib$name.$libext"
7123                       if test -f "$dir/lib$name.la"; then
7124                         found_la="$dir/lib$name.la"
7125                       fi
7126                     fi
7127                   fi
7128                   ;;
7129               esac
7130               if test "X$found_dir" != "X"; then
7131                 break
7132               fi
7133             done
7134           fi
7135           if test "X$found_dir" != "X"; then
7136                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7137             if test "X$found_so" != "X"; then
7138                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7139                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7140               else
7141                                                                                 haveit=
7142                 for x in $ltrpathdirs; do
7143                   if test "X$x" = "X$found_dir"; then
7144                     haveit=yes
7145                     break
7146                   fi
7147                 done
7148                 if test -z "$haveit"; then
7149                   ltrpathdirs="$ltrpathdirs $found_dir"
7150                 fi
7151                                 if test "$hardcode_direct" = yes; then
7152                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7153                 else
7154                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7155                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7156                                                             haveit=
7157                     for x in $rpathdirs; do
7158                       if test "X$x" = "X$found_dir"; then
7159                         haveit=yes
7160                         break
7161                       fi
7162                     done
7163                     if test -z "$haveit"; then
7164                       rpathdirs="$rpathdirs $found_dir"
7165                     fi
7166                   else
7167                                                                                 haveit=
7168                     for x in $LDFLAGS $LIBINTL; do
7169
7170   acl_save_prefix="$prefix"
7171   prefix="$acl_final_prefix"
7172   acl_save_exec_prefix="$exec_prefix"
7173   exec_prefix="$acl_final_exec_prefix"
7174   eval x=\"$x\"
7175   exec_prefix="$acl_save_exec_prefix"
7176   prefix="$acl_save_prefix"
7177
7178                       if test "X$x" = "X-L$found_dir"; then
7179                         haveit=yes
7180                         break
7181                       fi
7182                     done
7183                     if test -z "$haveit"; then
7184                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7185                     fi
7186                     if test "$hardcode_minus_L" != no; then
7187                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7188                     else
7189                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7190                     fi
7191                   fi
7192                 fi
7193               fi
7194             else
7195               if test "X$found_a" != "X"; then
7196                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7197               else
7198                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7199               fi
7200             fi
7201                         additional_includedir=
7202             case "$found_dir" in
7203               */lib | */lib/)
7204                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7205                 additional_includedir="$basedir/include"
7206                 ;;
7207             esac
7208             if test "X$additional_includedir" != "X"; then
7209                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7210                 haveit=
7211                 if test "X$additional_includedir" = "X/usr/local/include"; then
7212                   if test -n "$GCC"; then
7213                     case $host_os in
7214                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7215                     esac
7216                   fi
7217                 fi
7218                 if test -z "$haveit"; then
7219                   for x in $CPPFLAGS $INCINTL; do
7220
7221   acl_save_prefix="$prefix"
7222   prefix="$acl_final_prefix"
7223   acl_save_exec_prefix="$exec_prefix"
7224   exec_prefix="$acl_final_exec_prefix"
7225   eval x=\"$x\"
7226   exec_prefix="$acl_save_exec_prefix"
7227   prefix="$acl_save_prefix"
7228
7229                     if test "X$x" = "X-I$additional_includedir"; then
7230                       haveit=yes
7231                       break
7232                     fi
7233                   done
7234                   if test -z "$haveit"; then
7235                     if test -d "$additional_includedir"; then
7236                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7237                     fi
7238                   fi
7239                 fi
7240               fi
7241             fi
7242                         if test -n "$found_la"; then
7243                                                         save_libdir="$libdir"
7244               case "$found_la" in
7245                 */* | *\\*) . "$found_la" ;;
7246                 *) . "./$found_la" ;;
7247               esac
7248               libdir="$save_libdir"
7249                             for dep in $dependency_libs; do
7250                 case "$dep" in
7251                   -L*)
7252                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7253                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7254                       haveit=
7255                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7256                         if test -n "$GCC"; then
7257                           case $host_os in
7258                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7259                           esac
7260                         fi
7261                       fi
7262                       if test -z "$haveit"; then
7263                         haveit=
7264                         for x in $LDFLAGS $LIBINTL; do
7265
7266   acl_save_prefix="$prefix"
7267   prefix="$acl_final_prefix"
7268   acl_save_exec_prefix="$exec_prefix"
7269   exec_prefix="$acl_final_exec_prefix"
7270   eval x=\"$x\"
7271   exec_prefix="$acl_save_exec_prefix"
7272   prefix="$acl_save_prefix"
7273
7274                           if test "X$x" = "X-L$additional_libdir"; then
7275                             haveit=yes
7276                             break
7277                           fi
7278                         done
7279                         if test -z "$haveit"; then
7280                           if test -d "$additional_libdir"; then
7281                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7282                           fi
7283                         fi
7284                         haveit=
7285                         for x in $LDFLAGS $LTLIBINTL; do
7286
7287   acl_save_prefix="$prefix"
7288   prefix="$acl_final_prefix"
7289   acl_save_exec_prefix="$exec_prefix"
7290   exec_prefix="$acl_final_exec_prefix"
7291   eval x=\"$x\"
7292   exec_prefix="$acl_save_exec_prefix"
7293   prefix="$acl_save_prefix"
7294
7295                           if test "X$x" = "X-L$additional_libdir"; then
7296                             haveit=yes
7297                             break
7298                           fi
7299                         done
7300                         if test -z "$haveit"; then
7301                           if test -d "$additional_libdir"; then
7302                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7303                           fi
7304                         fi
7305                       fi
7306                     fi
7307                     ;;
7308                   -R*)
7309                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7310                     if test "$enable_rpath" != no; then
7311                                                                   haveit=
7312                       for x in $rpathdirs; do
7313                         if test "X$x" = "X$dir"; then
7314                           haveit=yes
7315                           break
7316                         fi
7317                       done
7318                       if test -z "$haveit"; then
7319                         rpathdirs="$rpathdirs $dir"
7320                       fi
7321                                                                   haveit=
7322                       for x in $ltrpathdirs; do
7323                         if test "X$x" = "X$dir"; then
7324                           haveit=yes
7325                           break
7326                         fi
7327                       done
7328                       if test -z "$haveit"; then
7329                         ltrpathdirs="$ltrpathdirs $dir"
7330                       fi
7331                     fi
7332                     ;;
7333                   -l*)
7334                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7335                     ;;
7336                   *.la)
7337                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7338                     ;;
7339                   *)
7340                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7341                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7342                     ;;
7343                 esac
7344               done
7345             fi
7346           else
7347                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7348             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7349           fi
7350         fi
7351       fi
7352     done
7353   done
7354   if test "X$rpathdirs" != "X"; then
7355     if test -n "$hardcode_libdir_separator"; then
7356                         alldirs=
7357       for found_dir in $rpathdirs; do
7358         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7359       done
7360             acl_save_libdir="$libdir"
7361       libdir="$alldirs"
7362       eval flag=\"$hardcode_libdir_flag_spec\"
7363       libdir="$acl_save_libdir"
7364       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7365     else
7366             for found_dir in $rpathdirs; do
7367         acl_save_libdir="$libdir"
7368         libdir="$found_dir"
7369         eval flag=\"$hardcode_libdir_flag_spec\"
7370         libdir="$acl_save_libdir"
7371         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7372       done
7373     fi
7374   fi
7375   if test "X$ltrpathdirs" != "X"; then
7376             for found_dir in $ltrpathdirs; do
7377       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7378     done
7379   fi
7380
7381           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7382 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7383 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7384   echo $ECHO_N "(cached) $ECHO_C" >&6
7385 else
7386   gt_save_CPPFLAGS="$CPPFLAGS"
7387             CPPFLAGS="$CPPFLAGS $INCINTL"
7388             gt_save_LIBS="$LIBS"
7389             LIBS="$LIBS $LIBINTL"
7390                         cat >conftest.$ac_ext <<_ACEOF
7391 /* confdefs.h.  */
7392 _ACEOF
7393 cat confdefs.h >>conftest.$ac_ext
7394 cat >>conftest.$ac_ext <<_ACEOF
7395 /* end confdefs.h.  */
7396 #include <libintl.h>
7397 extern int _nl_msg_cat_cntr;
7398 extern
7399 #ifdef __cplusplus
7400 "C"
7401 #endif
7402 const char *_nl_expand_alias (const char *);
7403 int
7404 main ()
7405 {
7406 bindtextdomain ("", "");
7407 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7408   ;
7409   return 0;
7410 }
7411 _ACEOF
7412 rm -f conftest.$ac_objext conftest$ac_exeext
7413 if { (ac_try="$ac_link"
7414 case "(($ac_try" in
7415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416   *) ac_try_echo=$ac_try;;
7417 esac
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419   (eval "$ac_link") 2>conftest.er1
7420   ac_status=$?
7421   grep -v '^ *+' conftest.er1 >conftest.err
7422   rm -f conftest.er1
7423   cat conftest.err >&5
7424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7425   (exit $ac_status); } && {
7426          test -z "$ac_c_werror_flag" ||
7427          test ! -s conftest.err
7428        } && test -s conftest$ac_exeext &&
7429        $as_test_x conftest$ac_exeext; then
7430   gt_cv_func_gnugettext1_libintl=yes
7431 else
7432   echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435         gt_cv_func_gnugettext1_libintl=no
7436 fi
7437
7438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439       conftest$ac_exeext conftest.$ac_ext
7440                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7441               LIBS="$LIBS $LIBICONV"
7442               cat >conftest.$ac_ext <<_ACEOF
7443 /* confdefs.h.  */
7444 _ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h.  */
7448 #include <libintl.h>
7449 extern int _nl_msg_cat_cntr;
7450 extern
7451 #ifdef __cplusplus
7452 "C"
7453 #endif
7454 const char *_nl_expand_alias (const char *);
7455 int
7456 main ()
7457 {
7458 bindtextdomain ("", "");
7459 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7460   ;
7461   return 0;
7462 }
7463 _ACEOF
7464 rm -f conftest.$ac_objext conftest$ac_exeext
7465 if { (ac_try="$ac_link"
7466 case "(($ac_try" in
7467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468   *) ac_try_echo=$ac_try;;
7469 esac
7470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471   (eval "$ac_link") 2>conftest.er1
7472   ac_status=$?
7473   grep -v '^ *+' conftest.er1 >conftest.err
7474   rm -f conftest.er1
7475   cat conftest.err >&5
7476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477   (exit $ac_status); } && {
7478          test -z "$ac_c_werror_flag" ||
7479          test ! -s conftest.err
7480        } && test -s conftest$ac_exeext &&
7481        $as_test_x conftest$ac_exeext; then
7482   LIBINTL="$LIBINTL $LIBICONV"
7483                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7484                 gt_cv_func_gnugettext1_libintl=yes
7485
7486 else
7487   echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490
7491 fi
7492
7493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7494       conftest$ac_exeext conftest.$ac_ext
7495             fi
7496             CPPFLAGS="$gt_save_CPPFLAGS"
7497             LIBS="$gt_save_LIBS"
7498 fi
7499 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7500 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7501         fi
7502
7503                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7504            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7505                 && test "$PACKAGE" != gettext-runtime \
7506                 && test "$PACKAGE" != gettext-tools; }; then
7507           gt_use_preinstalled_gnugettext=yes
7508         else
7509                     LIBINTL=
7510           LTLIBINTL=
7511           INCINTL=
7512         fi
7513
7514
7515
7516     if test -n "$INTL_MACOSX_LIBS"; then
7517       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7518          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7519                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7520         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7521       fi
7522     fi
7523
7524     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7525        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7526
7527 cat >>confdefs.h <<\_ACEOF
7528 #define ENABLE_NLS 1
7529 _ACEOF
7530
7531     else
7532       USE_NLS=no
7533     fi
7534   fi
7535
7536   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7537 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7538   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7539 echo "${ECHO_T}$USE_NLS" >&6; }
7540   if test "$USE_NLS" = "yes"; then
7541     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7542 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7543     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7544       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7545         gt_source="external libintl"
7546       else
7547         gt_source="libc"
7548       fi
7549     else
7550       gt_source="included intl directory"
7551     fi
7552     { echo "$as_me:$LINENO: result: $gt_source" >&5
7553 echo "${ECHO_T}$gt_source" >&6; }
7554   fi
7555
7556   if test "$USE_NLS" = "yes"; then
7557
7558     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7559       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7560         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7561 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7562         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7563 echo "${ECHO_T}$LIBINTL" >&6; }
7564
7565   for element in $INCINTL; do
7566     haveit=
7567     for x in $CPPFLAGS; do
7568
7569   acl_save_prefix="$prefix"
7570   prefix="$acl_final_prefix"
7571   acl_save_exec_prefix="$exec_prefix"
7572   exec_prefix="$acl_final_exec_prefix"
7573   eval x=\"$x\"
7574   exec_prefix="$acl_save_exec_prefix"
7575   prefix="$acl_save_prefix"
7576
7577       if test "X$x" = "X$element"; then
7578         haveit=yes
7579         break
7580       fi
7581     done
7582     if test -z "$haveit"; then
7583       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7584     fi
7585   done
7586
7587       fi
7588
7589
7590 cat >>confdefs.h <<\_ACEOF
7591 #define HAVE_GETTEXT 1
7592 _ACEOF
7593
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_DCGETTEXT 1
7597 _ACEOF
7598
7599     fi
7600
7601         POSUB=po
7602   fi
7603
7604
7605
7606     INTLLIBS="$LIBINTL"
7607
7608
7609
7610
7611
7612
7613 if test x${prefix} = xNONE ; then
7614    if test `eval echo ${datadir}` = NONE/share ; then
7615       datadir=/usr/share
7616    fi
7617 fi
7618
7619 # ------------------------------------------------------------------
7620 #  If the user has not set --prefix, we set our default to nothing.
7621 #  In this case, if the user has not set --sysconfdir, we set it
7622 #  to the package default of /etc/bacula.  If either --prefix or
7623 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7624 # ------------------------------------------------------------------
7625 if test x${prefix} = xNONE ; then
7626     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7627         sysconfdir=/etc/bacula
7628     fi
7629     prefix=
7630 fi
7631 sysconfdir=`eval echo ${sysconfdir}`
7632 datadir=`eval echo ${datadir}`
7633 localedir=`eval echo ${datadir}/locale`
7634 cat >>confdefs.h <<_ACEOF
7635 #define LOCALEDIR "$localedir"
7636 _ACEOF
7637
7638 cat >>confdefs.h <<_ACEOF
7639 #define SYSCONFDIR "$sysconfdir"
7640 _ACEOF
7641
7642
7643 # -------------------------------------------------------------------------
7644 #  If the user has not set --exec-prefix, we default to ${prefix}
7645 # -------------------------------------------------------------------------
7646 if test x${exec_prefix} = xNONE ; then
7647     exec_prefix=${prefix}
7648 fi
7649
7650 # ------------------------------------------------------------------
7651 # If the user has not set --sbindir, we set our default as /sbin
7652 # ------------------------------------------------------------------
7653 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7654     sbindir=${exec_prefix}/sbin
7655 fi
7656 sbindir=`eval echo ${sbindir}`
7657
7658
7659 # -------------------------------------------------------------------------
7660 #  If the user has not set --mandir, we default to /usr/share/man
7661 # -------------------------------------------------------------------------
7662 if test x$mandir = x'${prefix}/man' ; then
7663    mandir=/usr/share/man
7664 fi
7665
7666
7667 for ac_prog in msgfmt
7668 do
7669   # Extract the first word of "$ac_prog", so it can be a program name with args.
7670 set dummy $ac_prog; ac_word=$2
7671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7673 if test "${ac_cv_path_MSGFMT+set}" = set; then
7674   echo $ECHO_N "(cached) $ECHO_C" >&6
7675 else
7676   case $MSGFMT in
7677   [\\/]* | ?:[\\/]*)
7678   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7679   ;;
7680   *)
7681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684   IFS=$as_save_IFS
7685   test -z "$as_dir" && as_dir=.
7686   for ac_exec_ext in '' $ac_executable_extensions; do
7687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7688     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690     break 2
7691   fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696   ;;
7697 esac
7698 fi
7699 MSGFMT=$ac_cv_path_MSGFMT
7700 if test -n "$MSGFMT"; then
7701   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7702 echo "${ECHO_T}$MSGFMT" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: no" >&5
7705 echo "${ECHO_T}no" >&6; }
7706 fi
7707
7708
7709   test -n "$MSGFMT" && break
7710 done
7711 test -n "$MSGFMT" || MSGFMT="no"
7712
7713 if test "$MSGFMT" = "no"
7714 then
7715    echo 'msgfmt program not found, disabling NLS !'
7716    USE_NLS=no
7717    USE_INCLUDED_LIBINTL=no
7718 #else
7719
7720     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7721 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7722 if test "${ac_cv_gnu_library_2+set}" = set; then
7723   echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725   cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h.  */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h.  */
7731
7732 #include <features.h>
7733 #ifdef __GNU_LIBRARY__
7734  #if (__GLIBC__ >= 2)
7735   Lucky GNU user
7736  #endif
7737 #endif
7738
7739 _ACEOF
7740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7741   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7742   ac_cv_gnu_library_2=yes
7743 else
7744   ac_cv_gnu_library_2=no
7745 fi
7746 rm -f conftest*
7747
7748
7749
7750 fi
7751 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7752 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7753
7754     GLIBC2="$ac_cv_gnu_library_2"
7755
7756
7757
7758         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7759 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7760 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7761   echo $ECHO_N "(cached) $ECHO_C" >&6
7762 else
7763   ac_check_lib_save_LIBS=$LIBS
7764 LIBS="-lcposix  $LIBS"
7765 cat >conftest.$ac_ext <<_ACEOF
7766 /* confdefs.h.  */
7767 _ACEOF
7768 cat confdefs.h >>conftest.$ac_ext
7769 cat >>conftest.$ac_ext <<_ACEOF
7770 /* end confdefs.h.  */
7771
7772 /* Override any GCC internal prototype to avoid an error.
7773    Use char because int might match the return type of a GCC
7774    builtin and then its argument prototype would still apply.  */
7775 #ifdef __cplusplus
7776 extern "C"
7777 #endif
7778 char strerror ();
7779 int
7780 main ()
7781 {
7782 return strerror ();
7783   ;
7784   return 0;
7785 }
7786 _ACEOF
7787 rm -f conftest.$ac_objext conftest$ac_exeext
7788 if { (ac_try="$ac_link"
7789 case "(($ac_try" in
7790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791   *) ac_try_echo=$ac_try;;
7792 esac
7793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7794   (eval "$ac_link") 2>conftest.er1
7795   ac_status=$?
7796   grep -v '^ *+' conftest.er1 >conftest.err
7797   rm -f conftest.er1
7798   cat conftest.err >&5
7799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); } && {
7801          test -z "$ac_c_werror_flag" ||
7802          test ! -s conftest.err
7803        } && test -s conftest$ac_exeext &&
7804        $as_test_x conftest$ac_exeext; then
7805   ac_cv_lib_cposix_strerror=yes
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810         ac_cv_lib_cposix_strerror=no
7811 fi
7812
7813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7814       conftest$ac_exeext conftest.$ac_ext
7815 LIBS=$ac_check_lib_save_LIBS
7816 fi
7817 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7818 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7819 if test $ac_cv_lib_cposix_strerror = yes; then
7820   LIBS="$LIBS -lcposix"
7821 fi
7822
7823
7824
7825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7827 if test "${ac_cv_header_stdc+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836 #include <stdlib.h>
7837 #include <stdarg.h>
7838 #include <string.h>
7839 #include <float.h>
7840
7841 int
7842 main ()
7843 {
7844
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext
7850 if { (ac_try="$ac_compile"
7851 case "(($ac_try" in
7852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853   *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856   (eval "$ac_compile") 2>conftest.er1
7857   ac_status=$?
7858   grep -v '^ *+' conftest.er1 >conftest.err
7859   rm -f conftest.er1
7860   cat conftest.err >&5
7861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862   (exit $ac_status); } && {
7863          test -z "$ac_c_werror_flag" ||
7864          test ! -s conftest.err
7865        } && test -s conftest.$ac_objext; then
7866   ac_cv_header_stdc=yes
7867 else
7868   echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7870
7871         ac_cv_header_stdc=no
7872 fi
7873
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7875
7876 if test $ac_cv_header_stdc = yes; then
7877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7878   cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h.  */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h.  */
7884 #include <string.h>
7885
7886 _ACEOF
7887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7888   $EGREP "memchr" >/dev/null 2>&1; then
7889   :
7890 else
7891   ac_cv_header_stdc=no
7892 fi
7893 rm -f conftest*
7894
7895 fi
7896
7897 if test $ac_cv_header_stdc = yes; then
7898   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 #include <stdlib.h>
7906
7907 _ACEOF
7908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909   $EGREP "free" >/dev/null 2>&1; then
7910   :
7911 else
7912   ac_cv_header_stdc=no
7913 fi
7914 rm -f conftest*
7915
7916 fi
7917
7918 if test $ac_cv_header_stdc = yes; then
7919   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7920   if test "$cross_compiling" = yes; then
7921   :
7922 else
7923   cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h.  */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h.  */
7929 #include <ctype.h>
7930 #include <stdlib.h>
7931 #if ((' ' & 0x0FF) == 0x020)
7932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7934 #else
7935 # define ISLOWER(c) \
7936                    (('a' <= (c) && (c) <= 'i') \
7937                      || ('j' <= (c) && (c) <= 'r') \
7938                      || ('s' <= (c) && (c) <= 'z'))
7939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7940 #endif
7941
7942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7943 int
7944 main ()
7945 {
7946   int i;
7947   for (i = 0; i < 256; i++)
7948     if (XOR (islower (i), ISLOWER (i))
7949         || toupper (i) != TOUPPER (i))
7950       return 2;
7951   return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest$ac_exeext
7955 if { (ac_try="$ac_link"
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_link") 2>&5
7962   ac_status=$?
7963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7965   { (case "(($ac_try" in
7966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967   *) ac_try_echo=$ac_try;;
7968 esac
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970   (eval "$ac_try") 2>&5
7971   ac_status=$?
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); }; }; then
7974   :
7975 else
7976   echo "$as_me: program exited with status $ac_status" >&5
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 ( exit $ac_status )
7981 ac_cv_header_stdc=no
7982 fi
7983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7984 fi
7985
7986
7987 fi
7988 fi
7989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7991 if test $ac_cv_header_stdc = yes; then
7992
7993 cat >>confdefs.h <<\_ACEOF
7994 #define STDC_HEADERS 1
7995 _ACEOF
7996
7997 fi
7998
7999 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8000 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8001 if test "${ac_cv_c_const+set}" = set; then
8002   echo $ECHO_N "(cached) $ECHO_C" >&6
8003 else
8004   cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h.  */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h.  */
8010
8011 int
8012 main ()
8013 {
8014 /* FIXME: Include the comments suggested by Paul. */
8015 #ifndef __cplusplus
8016   /* Ultrix mips cc rejects this.  */
8017   typedef int charset[2];
8018   const charset cs;
8019   /* SunOS 4.1.1 cc rejects this.  */
8020   char const *const *pcpcc;
8021   char **ppc;
8022   /* NEC SVR4.0.2 mips cc rejects this.  */
8023   struct point {int x, y;};
8024   static struct point const zero = {0,0};
8025   /* AIX XL C 1.02.0.0 rejects this.
8026      It does not let you subtract one const X* pointer from another in
8027      an arm of an if-expression whose if-part is not a constant
8028      expression */
8029   const char *g = "string";
8030   pcpcc = &g + (g ? g-g : 0);
8031   /* HPUX 7.0 cc rejects these. */
8032   ++pcpcc;
8033   ppc = (char**) pcpcc;
8034   pcpcc = (char const *const *) ppc;
8035   { /* SCO 3.2v4 cc rejects this.  */
8036     char *t;
8037     char const *s = 0 ? (char *) 0 : (char const *) 0;
8038
8039     *t++ = 0;
8040     if (s) return 0;
8041   }
8042   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8043     int x[] = {25, 17};
8044     const int *foo = &x[0];
8045     ++foo;
8046   }
8047   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8048     typedef const int *iptr;
8049     iptr p = 0;
8050     ++p;
8051   }
8052   { /* AIX XL C 1.02.0.0 rejects this saying
8053        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8054     struct s { int j; const int *ap[3]; };
8055     struct s *b; b->j = 5;
8056   }
8057   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8058     const int foo = 10;
8059     if (!foo) return 0;
8060   }
8061   return !cs[0] && !zero.x;
8062 #endif
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest.$ac_objext
8069 if { (ac_try="$ac_compile"
8070 case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075   (eval "$ac_compile") 2>conftest.er1
8076   ac_status=$?
8077   grep -v '^ *+' conftest.er1 >conftest.err
8078   rm -f conftest.er1
8079   cat conftest.err >&5
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); } && {
8082          test -z "$ac_c_werror_flag" ||
8083          test ! -s conftest.err
8084        } && test -s conftest.$ac_objext; then
8085   ac_cv_c_const=yes
8086 else
8087   echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8089
8090         ac_cv_c_const=no
8091 fi
8092
8093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8094 fi
8095 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8096 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8097 if test $ac_cv_c_const = no; then
8098
8099 cat >>confdefs.h <<\_ACEOF
8100 #define const
8101 _ACEOF
8102
8103 fi
8104
8105
8106   { echo "$as_me:$LINENO: checking for signed" >&5
8107 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8108 if test "${bh_cv_c_signed+set}" = set; then
8109   echo $ECHO_N "(cached) $ECHO_C" >&6
8110 else
8111   cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h.  */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h.  */
8117
8118 int
8119 main ()
8120 {
8121 signed char x;
8122   ;
8123   return 0;
8124 }
8125 _ACEOF
8126 rm -f conftest.$ac_objext
8127 if { (ac_try="$ac_compile"
8128 case "(($ac_try" in
8129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130   *) ac_try_echo=$ac_try;;
8131 esac
8132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8133   (eval "$ac_compile") 2>conftest.er1
8134   ac_status=$?
8135   grep -v '^ *+' conftest.er1 >conftest.err
8136   rm -f conftest.er1
8137   cat conftest.err >&5
8138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139   (exit $ac_status); } && {
8140          test -z "$ac_c_werror_flag" ||
8141          test ! -s conftest.err
8142        } && test -s conftest.$ac_objext; then
8143   bh_cv_c_signed=yes
8144 else
8145   echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8147
8148         bh_cv_c_signed=no
8149 fi
8150
8151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 fi
8153 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8154 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8155   if test $bh_cv_c_signed = no; then
8156
8157 cat >>confdefs.h <<\_ACEOF
8158 #define signed
8159 _ACEOF
8160
8161   fi
8162
8163 { echo "$as_me:$LINENO: checking for inline" >&5
8164 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8165 if test "${ac_cv_c_inline+set}" = set; then
8166   echo $ECHO_N "(cached) $ECHO_C" >&6
8167 else
8168   ac_cv_c_inline=no
8169 for ac_kw in inline __inline__ __inline; do
8170   cat >conftest.$ac_ext <<_ACEOF
8171 /* confdefs.h.  */
8172 _ACEOF
8173 cat confdefs.h >>conftest.$ac_ext
8174 cat >>conftest.$ac_ext <<_ACEOF
8175 /* end confdefs.h.  */
8176 #ifndef __cplusplus
8177 typedef int foo_t;
8178 static $ac_kw foo_t static_foo () {return 0; }
8179 $ac_kw foo_t foo () {return 0; }
8180 #endif
8181
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (ac_try="$ac_compile"
8185 case "(($ac_try" in
8186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8187   *) ac_try_echo=$ac_try;;
8188 esac
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190   (eval "$ac_compile") 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } && {
8197          test -z "$ac_c_werror_flag" ||
8198          test ! -s conftest.err
8199        } && test -s conftest.$ac_objext; then
8200   ac_cv_c_inline=$ac_kw
8201 else
8202   echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8204
8205
8206 fi
8207
8208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8209   test "$ac_cv_c_inline" != no && break
8210 done
8211
8212 fi
8213 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8214 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8215
8216
8217 case $ac_cv_c_inline in
8218   inline | yes) ;;
8219   *)
8220     case $ac_cv_c_inline in
8221       no) ac_val=;;
8222       *) ac_val=$ac_cv_c_inline;;
8223     esac
8224     cat >>confdefs.h <<_ACEOF
8225 #ifndef __cplusplus
8226 #define inline $ac_val
8227 #endif
8228 _ACEOF
8229     ;;
8230 esac
8231
8232 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8243                   inttypes.h stdint.h unistd.h
8244 do
8245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8249   echo $ECHO_N "(cached) $ECHO_C" >&6
8250 else
8251   cat >conftest.$ac_ext <<_ACEOF
8252 /* confdefs.h.  */
8253 _ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h.  */
8257 $ac_includes_default
8258
8259 #include <$ac_header>
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8263 case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268   (eval "$ac_compile") 2>conftest.er1
8269   ac_status=$?
8270   grep -v '^ *+' conftest.er1 >conftest.err
8271   rm -f conftest.er1
8272   cat conftest.err >&5
8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274   (exit $ac_status); } && {
8275          test -z "$ac_c_werror_flag" ||
8276          test ! -s conftest.err
8277        } && test -s conftest.$ac_objext; then
8278   eval "$as_ac_Header=yes"
8279 else
8280   echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283         eval "$as_ac_Header=no"
8284 fi
8285
8286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8287 fi
8288 ac_res=`eval echo '${'$as_ac_Header'}'`
8289                { echo "$as_me:$LINENO: result: $ac_res" >&5
8290 echo "${ECHO_T}$ac_res" >&6; }
8291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8292   cat >>confdefs.h <<_ACEOF
8293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8294 _ACEOF
8295
8296 fi
8297
8298 done
8299
8300
8301 { echo "$as_me:$LINENO: checking for off_t" >&5
8302 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8303 if test "${ac_cv_type_off_t+set}" = set; then
8304   echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306   cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h.  */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h.  */
8312 $ac_includes_default
8313 typedef off_t ac__type_new_;
8314 int
8315 main ()
8316 {
8317 if ((ac__type_new_ *) 0)
8318   return 0;
8319 if (sizeof (ac__type_new_))
8320   return 0;
8321   ;
8322   return 0;
8323 }
8324 _ACEOF
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8327 case "(($ac_try" in
8328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329   *) ac_try_echo=$ac_try;;
8330 esac
8331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8332   (eval "$ac_compile") 2>conftest.er1
8333   ac_status=$?
8334   grep -v '^ *+' conftest.er1 >conftest.err
8335   rm -f conftest.er1
8336   cat conftest.err >&5
8337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338   (exit $ac_status); } && {
8339          test -z "$ac_c_werror_flag" ||
8340          test ! -s conftest.err
8341        } && test -s conftest.$ac_objext; then
8342   ac_cv_type_off_t=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347         ac_cv_type_off_t=no
8348 fi
8349
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8353 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8354 if test $ac_cv_type_off_t = yes; then
8355   :
8356 else
8357
8358 cat >>confdefs.h <<_ACEOF
8359 #define off_t long int
8360 _ACEOF
8361
8362 fi
8363
8364 { echo "$as_me:$LINENO: checking for size_t" >&5
8365 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8366 if test "${ac_cv_type_size_t+set}" = set; then
8367   echo $ECHO_N "(cached) $ECHO_C" >&6
8368 else
8369   cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h.  */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h.  */
8375 $ac_includes_default
8376 typedef size_t ac__type_new_;
8377 int
8378 main ()
8379 {
8380 if ((ac__type_new_ *) 0)
8381   return 0;
8382 if (sizeof (ac__type_new_))
8383   return 0;
8384   ;
8385   return 0;
8386 }
8387 _ACEOF
8388 rm -f conftest.$ac_objext
8389 if { (ac_try="$ac_compile"
8390 case "(($ac_try" in
8391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8392   *) ac_try_echo=$ac_try;;
8393 esac
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395   (eval "$ac_compile") 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } && {
8402          test -z "$ac_c_werror_flag" ||
8403          test ! -s conftest.err
8404        } && test -s conftest.$ac_objext; then
8405   ac_cv_type_size_t=yes
8406 else
8407   echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8409
8410         ac_cv_type_size_t=no
8411 fi
8412
8413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414 fi
8415 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8416 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8417 if test $ac_cv_type_size_t = yes; then
8418   :
8419 else
8420
8421 cat >>confdefs.h <<_ACEOF
8422 #define size_t unsigned int
8423 _ACEOF
8424
8425 fi
8426
8427
8428   { echo "$as_me:$LINENO: checking for long long" >&5
8429 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8430 if test "${ac_cv_type_long_long+set}" = set; then
8431   echo $ECHO_N "(cached) $ECHO_C" >&6
8432 else
8433   cat >conftest.$ac_ext <<_ACEOF
8434 /* confdefs.h.  */
8435 _ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h.  */
8439 long long ll = 1LL; int i = 63;
8440 int
8441 main ()
8442 {
8443 long long llmax = (long long) -1;
8444      return ll << i | ll >> i | llmax / ll | llmax % ll;
8445   ;
8446   return 0;
8447 }
8448 _ACEOF
8449 rm -f conftest.$ac_objext conftest$ac_exeext
8450 if { (ac_try="$ac_link"
8451 case "(($ac_try" in
8452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8453   *) ac_try_echo=$ac_try;;
8454 esac
8455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8456   (eval "$ac_link") 2>conftest.er1
8457   ac_status=$?
8458   grep -v '^ *+' conftest.er1 >conftest.err
8459   rm -f conftest.er1
8460   cat conftest.err >&5
8461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462   (exit $ac_status); } && {
8463          test -z "$ac_c_werror_flag" ||
8464          test ! -s conftest.err
8465        } && test -s conftest$ac_exeext &&
8466        $as_test_x conftest$ac_exeext; then
8467   ac_cv_type_long_long=yes
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472         ac_cv_type_long_long=no
8473 fi
8474
8475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8476       conftest$ac_exeext conftest.$ac_ext
8477 fi
8478 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8479 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8480   if test $ac_cv_type_long_long = yes; then
8481
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_LONG_LONG 1
8484 _ACEOF
8485
8486   fi
8487
8488
8489   { echo "$as_me:$LINENO: checking for long double" >&5
8490 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8491 if test "${gt_cv_c_long_double+set}" = set; then
8492   echo $ECHO_N "(cached) $ECHO_C" >&6
8493 else
8494   if test "$GCC" = yes; then
8495        gt_cv_c_long_double=yes
8496      else
8497        cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h.  */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h.  */
8503
8504          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8505          long double foo = 0.0;
8506          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8507          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8508
8509 int
8510 main ()
8511 {
8512
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8519 case "(($ac_try" in
8520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521   *) ac_try_echo=$ac_try;;
8522 esac
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524   (eval "$ac_compile") 2>conftest.er1
8525   ac_status=$?
8526   grep -v '^ *+' conftest.er1 >conftest.err
8527   rm -f conftest.er1
8528   cat conftest.err >&5
8529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530   (exit $ac_status); } && {
8531          test -z "$ac_c_werror_flag" ||
8532          test ! -s conftest.err
8533        } && test -s conftest.$ac_objext; then
8534   gt_cv_c_long_double=yes
8535 else
8536   echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8538
8539         gt_cv_c_long_double=no
8540 fi
8541
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543      fi
8544 fi
8545 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8546 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8547   if test $gt_cv_c_long_double = yes; then
8548
8549 cat >>confdefs.h <<\_ACEOF
8550 #define HAVE_LONG_DOUBLE 1
8551 _ACEOF
8552
8553   fi
8554
8555
8556   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8557 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8558 if test "${gt_cv_c_wchar_t+set}" = set; then
8559   echo $ECHO_N "(cached) $ECHO_C" >&6
8560 else
8561   cat >conftest.$ac_ext <<_ACEOF
8562 /* confdefs.h.  */
8563 _ACEOF
8564 cat confdefs.h >>conftest.$ac_ext
8565 cat >>conftest.$ac_ext <<_ACEOF
8566 /* end confdefs.h.  */
8567 #include <stddef.h>
8568        wchar_t foo = (wchar_t)'\0';
8569 int
8570 main ()
8571 {
8572
8573   ;
8574   return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581   *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584   (eval "$ac_compile") 2>conftest.er1
8585   ac_status=$?
8586   grep -v '^ *+' conftest.er1 >conftest.err
8587   rm -f conftest.er1
8588   cat conftest.err >&5
8589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590   (exit $ac_status); } && {
8591          test -z "$ac_c_werror_flag" ||
8592          test ! -s conftest.err
8593        } && test -s conftest.$ac_objext; then
8594   gt_cv_c_wchar_t=yes
8595 else
8596   echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599         gt_cv_c_wchar_t=no
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8605 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8606   if test $gt_cv_c_wchar_t = yes; then
8607
8608 cat >>confdefs.h <<\_ACEOF
8609 #define HAVE_WCHAR_T 1
8610 _ACEOF
8611
8612   fi
8613
8614
8615   { echo "$as_me:$LINENO: checking for wint_t" >&5
8616 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8617 if test "${gt_cv_c_wint_t+set}" = set; then
8618   echo $ECHO_N "(cached) $ECHO_C" >&6
8619 else
8620   cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h.  */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h.  */
8626 #include <wchar.h>
8627        wint_t foo = (wchar_t)'\0';
8628 int
8629 main ()
8630 {
8631
8632   ;
8633   return 0;
8634 }
8635 _ACEOF
8636 rm -f conftest.$ac_objext
8637 if { (ac_try="$ac_compile"
8638 case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643   (eval "$ac_compile") 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } && {
8650          test -z "$ac_c_werror_flag" ||
8651          test ! -s conftest.err
8652        } && test -s conftest.$ac_objext; then
8653   gt_cv_c_wint_t=yes
8654 else
8655   echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8657
8658         gt_cv_c_wint_t=no
8659 fi
8660
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 fi
8663 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8664 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8665   if test $gt_cv_c_wint_t = yes; then
8666
8667 cat >>confdefs.h <<\_ACEOF
8668 #define HAVE_WINT_T 1
8669 _ACEOF
8670
8671   fi
8672
8673
8674   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8675 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8676 if test "${gl_cv_header_inttypes_h+set}" = set; then
8677   echo $ECHO_N "(cached) $ECHO_C" >&6
8678 else
8679   cat >conftest.$ac_ext <<_ACEOF
8680 /* confdefs.h.  */
8681 _ACEOF
8682 cat confdefs.h >>conftest.$ac_ext
8683 cat >>conftest.$ac_ext <<_ACEOF
8684 /* end confdefs.h.  */
8685 #include <sys/types.h>
8686 #include <inttypes.h>
8687 int
8688 main ()
8689 {
8690 uintmax_t i = (uintmax_t) -1;
8691   ;
8692   return 0;
8693 }
8694 _ACEOF
8695 rm -f conftest.$ac_objext
8696 if { (ac_try="$ac_compile"
8697 case "(($ac_try" in
8698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8699   *) ac_try_echo=$ac_try;;
8700 esac
8701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8702   (eval "$ac_compile") 2>conftest.er1
8703   ac_status=$?
8704   grep -v '^ *+' conftest.er1 >conftest.err
8705   rm -f conftest.er1
8706   cat conftest.err >&5
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); } && {
8709          test -z "$ac_c_werror_flag" ||
8710          test ! -s conftest.err
8711        } && test -s conftest.$ac_objext; then
8712   gl_cv_header_inttypes_h=yes
8713 else
8714   echo "$as_me: failed program was:" >&5
8715 sed 's/^/| /' conftest.$ac_ext >&5
8716
8717         gl_cv_header_inttypes_h=no
8718 fi
8719
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8723 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8724   if test $gl_cv_header_inttypes_h = yes; then
8725
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8728 _ACEOF
8729
8730   fi
8731
8732
8733   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8734 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8735 if test "${gl_cv_header_stdint_h+set}" = set; then
8736   echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738   cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h.  */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h.  */
8744 #include <sys/types.h>
8745 #include <stdint.h>
8746 int
8747 main ()
8748 {
8749 uintmax_t i = (uintmax_t) -1;
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758   *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761   (eval "$ac_compile") 2>conftest.er1
8762   ac_status=$?
8763   grep -v '^ *+' conftest.er1 >conftest.err
8764   rm -f conftest.er1
8765   cat conftest.err >&5
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); } && {
8768          test -z "$ac_c_werror_flag" ||
8769          test ! -s conftest.err
8770        } && test -s conftest.$ac_objext; then
8771   gl_cv_header_stdint_h=yes
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776         gl_cv_header_stdint_h=no
8777 fi
8778
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8782 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8783   if test $gl_cv_header_stdint_h = yes; then
8784
8785 cat >>confdefs.h <<_ACEOF
8786 #define HAVE_STDINT_H_WITH_UINTMAX 1
8787 _ACEOF
8788
8789   fi
8790
8791
8792
8793
8794   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8795 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8796 if test "${gt_cv_c_intmax_t+set}" = set; then
8797   echo $ECHO_N "(cached) $ECHO_C" >&6
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805
8806 #include <stddef.h>
8807 #include <stdlib.h>
8808 #if HAVE_STDINT_H_WITH_UINTMAX
8809 #include <stdint.h>
8810 #endif
8811 #if HAVE_INTTYPES_H_WITH_UINTMAX
8812 #include <inttypes.h>
8813 #endif
8814
8815 int
8816 main ()
8817 {
8818 intmax_t x = -1;
8819   ;
8820   return 0;
8821 }
8822 _ACEOF
8823 rm -f conftest.$ac_objext
8824 if { (ac_try="$ac_compile"
8825 case "(($ac_try" in
8826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827   *) ac_try_echo=$ac_try;;
8828 esac
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830   (eval "$ac_compile") 2>conftest.er1
8831   ac_status=$?
8832   grep -v '^ *+' conftest.er1 >conftest.err
8833   rm -f conftest.er1
8834   cat conftest.err >&5
8835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836   (exit $ac_status); } && {
8837          test -z "$ac_c_werror_flag" ||
8838          test ! -s conftest.err
8839        } && test -s conftest.$ac_objext; then
8840   gt_cv_c_intmax_t=yes
8841 else
8842   echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8844
8845         gt_cv_c_intmax_t=no
8846 fi
8847
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 fi
8850 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8851 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8852   if test $gt_cv_c_intmax_t = yes; then
8853
8854 cat >>confdefs.h <<\_ACEOF
8855 #define HAVE_INTMAX_T 1
8856 _ACEOF
8857
8858   fi
8859
8860
8861
8862   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8863 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8864 if test "${gt_cv_func_printf_posix+set}" = set; then
8865   echo $ECHO_N "(cached) $ECHO_C" >&6
8866 else
8867
8868       if test "$cross_compiling" = yes; then
8869
8870         cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876
8877 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8878   notposix
8879 #endif
8880
8881 _ACEOF
8882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8883   $EGREP "notposix" >/dev/null 2>&1; then
8884   gt_cv_func_printf_posix="guessing no"
8885 else
8886   gt_cv_func_printf_posix="guessing yes"
8887 fi
8888 rm -f conftest*
8889
8890
8891 else
8892   cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898
8899 #include <stdio.h>
8900 #include <string.h>
8901 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8902    dollar expansion (possibly an autoconf bug).  */
8903 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8904 static char buf[100];
8905 int main ()
8906 {
8907   sprintf (buf, format, 33, 55);
8908   return (strcmp (buf, "55 33") != 0);
8909 }
8910 _ACEOF
8911 rm -f conftest$ac_exeext
8912 if { (ac_try="$ac_link"
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_link") 2>&5
8919   ac_status=$?
8920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8922   { (case "(($ac_try" in
8923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924   *) ac_try_echo=$ac_try;;
8925 esac
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927   (eval "$ac_try") 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; }; then
8931   gt_cv_func_printf_posix=yes
8932 else
8933   echo "$as_me: program exited with status $ac_status" >&5
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 ( exit $ac_status )
8938 gt_cv_func_printf_posix=no
8939 fi
8940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8941 fi
8942
8943
8944
8945 fi
8946 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8947 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8948   case $gt_cv_func_printf_posix in
8949     *yes)
8950
8951 cat >>confdefs.h <<\_ACEOF
8952 #define HAVE_POSIX_PRINTF 1
8953 _ACEOF
8954
8955       ;;
8956   esac
8957
8958 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8959 # for constant arguments.  Useless!
8960 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8961 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8962 if test "${ac_cv_working_alloca_h+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   cat >conftest.$ac_ext <<_ACEOF
8966 /* confdefs.h.  */
8967 _ACEOF
8968 cat confdefs.h >>conftest.$ac_ext
8969 cat >>conftest.$ac_ext <<_ACEOF
8970 /* end confdefs.h.  */
8971 #include <alloca.h>
8972 int
8973 main ()
8974 {
8975 char *p = (char *) alloca (2 * sizeof (int));
8976                           if (p) return 0;
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (ac_try="$ac_link"
8983 case "(($ac_try" in
8984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985   *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988   (eval "$ac_link") 2>conftest.er1
8989   ac_status=$?
8990   grep -v '^ *+' conftest.er1 >conftest.err
8991   rm -f conftest.er1
8992   cat conftest.err >&5
8993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994   (exit $ac_status); } && {
8995          test -z "$ac_c_werror_flag" ||
8996          test ! -s conftest.err
8997        } && test -s conftest$ac_exeext &&
8998        $as_test_x conftest$ac_exeext; then
8999   ac_cv_working_alloca_h=yes
9000 else
9001   echo "$as_me: failed program was:" >&5
9002 sed 's/^/| /' conftest.$ac_ext >&5
9003
9004         ac_cv_working_alloca_h=no
9005 fi
9006
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008       conftest$ac_exeext conftest.$ac_ext
9009 fi
9010 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9011 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9012 if test $ac_cv_working_alloca_h = yes; then
9013
9014 cat >>confdefs.h <<\_ACEOF
9015 #define HAVE_ALLOCA_H 1
9016 _ACEOF
9017
9018 fi
9019
9020 { echo "$as_me:$LINENO: checking for alloca" >&5
9021 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9022 if test "${ac_cv_func_alloca_works+set}" = set; then
9023   echo $ECHO_N "(cached) $ECHO_C" >&6
9024 else
9025   cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h.  */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h.  */
9031 #ifdef __GNUC__
9032 # define alloca __builtin_alloca
9033 #else
9034 # ifdef _MSC_VER
9035 #  include <malloc.h>
9036 #  define alloca _alloca
9037 # else
9038 #  ifdef HAVE_ALLOCA_H
9039 #   include <alloca.h>
9040 #  else
9041 #   ifdef _AIX
9042  #pragma alloca
9043 #   else
9044 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9045 char *alloca ();
9046 #    endif
9047 #   endif
9048 #  endif
9049 # endif
9050 #endif
9051
9052 int
9053 main ()
9054 {
9055 char *p = (char *) alloca (1);
9056                                     if (p) return 0;
9057   ;
9058   return 0;
9059 }
9060 _ACEOF
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (ac_try="$ac_link"
9063 case "(($ac_try" in
9064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065   *) ac_try_echo=$ac_try;;
9066 esac
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068   (eval "$ac_link") 2>conftest.er1
9069   ac_status=$?
9070   grep -v '^ *+' conftest.er1 >conftest.err
9071   rm -f conftest.er1
9072   cat conftest.err >&5
9073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074   (exit $ac_status); } && {
9075          test -z "$ac_c_werror_flag" ||
9076          test ! -s conftest.err
9077        } && test -s conftest$ac_exeext &&
9078        $as_test_x conftest$ac_exeext; then
9079   ac_cv_func_alloca_works=yes
9080 else
9081   echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084         ac_cv_func_alloca_works=no
9085 fi
9086
9087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9088       conftest$ac_exeext conftest.$ac_ext
9089 fi
9090 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9091 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9092
9093 if test $ac_cv_func_alloca_works = yes; then
9094
9095 cat >>confdefs.h <<\_ACEOF
9096 #define HAVE_ALLOCA 1
9097 _ACEOF
9098
9099 else
9100   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9101 # that cause trouble.  Some versions do not even contain alloca or
9102 # contain a buggy version.  If you still want to use their alloca,
9103 # use ar to extract alloca.o from them instead of compiling alloca.c.
9104
9105 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9106
9107 cat >>confdefs.h <<\_ACEOF
9108 #define C_ALLOCA 1
9109 _ACEOF
9110
9111
9112 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9113 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9114 if test "${ac_cv_os_cray+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117   cat >conftest.$ac_ext <<_ACEOF
9118 /* confdefs.h.  */
9119 _ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h.  */
9123 #if defined CRAY && ! defined CRAY2
9124 webecray
9125 #else
9126 wenotbecray
9127 #endif
9128
9129 _ACEOF
9130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9131   $EGREP "webecray" >/dev/null 2>&1; then
9132   ac_cv_os_cray=yes
9133 else
9134   ac_cv_os_cray=no
9135 fi
9136 rm -f conftest*
9137
9138 fi
9139 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9140 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9141 if test $ac_cv_os_cray = yes; then
9142   for ac_func in _getb67 GETB67 getb67; do
9143     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9146 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   cat >conftest.$ac_ext <<_ACEOF
9150 /* confdefs.h.  */
9151 _ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h.  */
9155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9156    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9157 #define $ac_func innocuous_$ac_func
9158
9159 /* System header to define __stub macros and hopefully few prototypes,
9160     which can conflict with char $ac_func (); below.
9161     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9162     <limits.h> exists even on freestanding compilers.  */
9163
9164 #ifdef __STDC__
9165 # include <limits.h>
9166 #else
9167 # include <assert.h>
9168 #endif
9169
9170 #undef $ac_func
9171
9172 /* Override any GCC internal prototype to avoid an error.
9173    Use char because int might match the return type of a GCC
9174    builtin and then its argument prototype would still apply.  */
9175 #ifdef __cplusplus
9176 extern "C"
9177 #endif
9178 char $ac_func ();
9179 /* The GNU C library defines this for functions which it implements
9180     to always fail with ENOSYS.  Some functions are actually named
9181     something starting with __ and the normal name is an alias.  */
9182 #if defined __stub_$ac_func || defined __stub___$ac_func
9183 choke me
9184 #endif
9185
9186 int
9187 main ()
9188 {
9189 return $ac_func ();
9190   ;
9191   return 0;
9192 }
9193 _ACEOF
9194 rm -f conftest.$ac_objext conftest$ac_exeext
9195 if { (ac_try="$ac_link"
9196 case "(($ac_try" in
9197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9198   *) ac_try_echo=$ac_try;;
9199 esac
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201   (eval "$ac_link") 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } && {
9208          test -z "$ac_c_werror_flag" ||
9209          test ! -s conftest.err
9210        } && test -s conftest$ac_exeext &&
9211        $as_test_x conftest$ac_exeext; then
9212   eval "$as_ac_var=yes"
9213 else
9214   echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.$ac_ext >&5
9216
9217         eval "$as_ac_var=no"
9218 fi
9219
9220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9221       conftest$ac_exeext conftest.$ac_ext
9222 fi
9223 ac_res=`eval echo '${'$as_ac_var'}'`
9224                { echo "$as_me:$LINENO: result: $ac_res" >&5
9225 echo "${ECHO_T}$ac_res" >&6; }
9226 if test `eval echo '${'$as_ac_var'}'` = yes; then
9227
9228 cat >>confdefs.h <<_ACEOF
9229 #define CRAY_STACKSEG_END $ac_func
9230 _ACEOF
9231
9232     break
9233 fi
9234
9235   done
9236 fi
9237
9238 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9239 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9240 if test "${ac_cv_c_stack_direction+set}" = set; then
9241   echo $ECHO_N "(cached) $ECHO_C" >&6
9242 else
9243   if test "$cross_compiling" = yes; then
9244   ac_cv_c_stack_direction=0
9245 else
9246   cat >conftest.$ac_ext <<_ACEOF
9247 /* confdefs.h.  */
9248 _ACEOF
9249 cat confdefs.h >>conftest.$ac_ext
9250 cat >>conftest.$ac_ext <<_ACEOF
9251 /* end confdefs.h.  */
9252 $ac_includes_default
9253 int
9254 find_stack_direction ()
9255 {
9256   static char *addr = 0;
9257   auto char dummy;
9258   if (addr == 0)
9259     {
9260       addr = &dummy;
9261       return find_stack_direction ();
9262     }
9263   else
9264     return (&dummy > addr) ? 1 : -1;
9265 }
9266
9267 int
9268 main ()
9269 {
9270   return find_stack_direction () < 0;
9271 }
9272 _ACEOF
9273 rm -f conftest$ac_exeext
9274 if { (ac_try="$ac_link"
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_link") 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9284   { (case "(($ac_try" in
9285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286   *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289   (eval "$ac_try") 2>&5
9290   ac_status=$?
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); }; }; then
9293   ac_cv_c_stack_direction=1
9294 else
9295   echo "$as_me: program exited with status $ac_status" >&5
9296 echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9298
9299 ( exit $ac_status )
9300 ac_cv_c_stack_direction=-1
9301 fi
9302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9303 fi
9304
9305
9306 fi
9307 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9308 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9309
9310 cat >>confdefs.h <<_ACEOF
9311 #define STACK_DIRECTION $ac_cv_c_stack_direction
9312 _ACEOF
9313
9314
9315 fi
9316
9317
9318
9319 for ac_header in stdlib.h unistd.h
9320 do
9321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9323   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9326   echo $ECHO_N "(cached) $ECHO_C" >&6
9327 fi
9328 ac_res=`eval echo '${'$as_ac_Header'}'`
9329                { echo "$as_me:$LINENO: result: $ac_res" >&5
9330 echo "${ECHO_T}$ac_res" >&6; }
9331 else
9332   # Is the header compilable?
9333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341 $ac_includes_default
9342 #include <$ac_header>
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (ac_try="$ac_compile"
9346 case "(($ac_try" in
9347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348   *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351   (eval "$ac_compile") 2>conftest.er1
9352   ac_status=$?
9353   grep -v '^ *+' conftest.er1 >conftest.err
9354   rm -f conftest.er1
9355   cat conftest.err >&5
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } && {
9358          test -z "$ac_c_werror_flag" ||
9359          test ! -s conftest.err
9360        } && test -s conftest.$ac_objext; then
9361   ac_header_compiler=yes
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366         ac_header_compiler=no
9367 fi
9368
9369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9371 echo "${ECHO_T}$ac_header_compiler" >&6; }
9372
9373 # Is the header present?
9374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h.  */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h.  */
9382 #include <$ac_header>
9383 _ACEOF
9384 if { (ac_try="$ac_cpp conftest.$ac_ext"
9385 case "(($ac_try" in
9386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387   *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9391   ac_status=$?
9392   grep -v '^ *+' conftest.er1 >conftest.err
9393   rm -f conftest.er1
9394   cat conftest.err >&5
9395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396   (exit $ac_status); } >/dev/null && {
9397          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9398          test ! -s conftest.err
9399        }; then
9400   ac_header_preproc=yes
9401 else
9402   echo "$as_me: failed program was:" >&5
9403 sed 's/^/| /' conftest.$ac_ext >&5
9404
9405   ac_header_preproc=no
9406 fi
9407
9408 rm -f conftest.err conftest.$ac_ext
9409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9410 echo "${ECHO_T}$ac_header_preproc" >&6; }
9411
9412 # So?  What about this header?
9413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9414   yes:no: )
9415     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9417     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9419     ac_header_preproc=yes
9420     ;;
9421   no:yes:* )
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9424     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9425 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9429 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9432     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9434
9435     ;;
9436 esac
9437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9440   echo $ECHO_N "(cached) $ECHO_C" >&6
9441 else
9442   eval "$as_ac_Header=\$ac_header_preproc"
9443 fi
9444 ac_res=`eval echo '${'$as_ac_Header'}'`
9445                { echo "$as_me:$LINENO: result: $ac_res" >&5
9446 echo "${ECHO_T}$ac_res" >&6; }
9447
9448 fi
9449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9450   cat >>confdefs.h <<_ACEOF
9451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9452 _ACEOF
9453
9454 fi
9455
9456 done
9457
9458
9459 for ac_func in getpagesize
9460 do
9461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9465   echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467   cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9475 #define $ac_func innocuous_$ac_func
9476
9477 /* System header to define __stub macros and hopefully few prototypes,
9478     which can conflict with char $ac_func (); below.
9479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9480     <limits.h> exists even on freestanding compilers.  */
9481
9482 #ifdef __STDC__
9483 # include <limits.h>
9484 #else
9485 # include <assert.h>
9486 #endif
9487
9488 #undef $ac_func
9489
9490 /* Override any GCC internal prototype to avoid an error.
9491    Use char because int might match the return type of a GCC
9492    builtin and then its argument prototype would still apply.  */
9493 #ifdef __cplusplus
9494 extern "C"
9495 #endif
9496 char $ac_func ();
9497 /* The GNU C library defines this for functions which it implements
9498     to always fail with ENOSYS.  Some functions are actually named
9499     something starting with __ and the normal name is an alias.  */
9500 #if defined __stub_$ac_func || defined __stub___$ac_func
9501 choke me
9502 #endif
9503
9504 int
9505 main ()
9506 {
9507 return $ac_func ();
9508   ;
9509   return 0;
9510 }
9511 _ACEOF
9512 rm -f conftest.$ac_objext conftest$ac_exeext
9513 if { (ac_try="$ac_link"
9514 case "(($ac_try" in
9515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516   *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519   (eval "$ac_link") 2>conftest.er1
9520   ac_status=$?
9521   grep -v '^ *+' conftest.er1 >conftest.err
9522   rm -f conftest.er1
9523   cat conftest.err >&5
9524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525   (exit $ac_status); } && {
9526          test -z "$ac_c_werror_flag" ||
9527          test ! -s conftest.err
9528        } && test -s conftest$ac_exeext &&
9529        $as_test_x conftest$ac_exeext; then
9530   eval "$as_ac_var=yes"
9531 else
9532   echo "$as_me: failed program was:" >&5
9533 sed 's/^/| /' conftest.$ac_ext >&5
9534
9535         eval "$as_ac_var=no"
9536 fi
9537
9538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9539       conftest$ac_exeext conftest.$ac_ext
9540 fi
9541 ac_res=`eval echo '${'$as_ac_var'}'`
9542                { echo "$as_me:$LINENO: result: $ac_res" >&5
9543 echo "${ECHO_T}$ac_res" >&6; }
9544 if test `eval echo '${'$as_ac_var'}'` = yes; then
9545   cat >>confdefs.h <<_ACEOF
9546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9547 _ACEOF
9548
9549 fi
9550 done
9551
9552 { echo "$as_me:$LINENO: checking for working mmap" >&5
9553 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9554 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9555   echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557   if test "$cross_compiling" = yes; then
9558   ac_cv_func_mmap_fixed_mapped=no
9559 else
9560   cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 $ac_includes_default
9567 /* malloc might have been renamed as rpl_malloc. */
9568 #undef malloc
9569
9570 /* Thanks to Mike Haertel and Jim Avera for this test.
9571    Here is a matrix of mmap possibilities:
9572         mmap private not fixed
9573         mmap private fixed at somewhere currently unmapped
9574         mmap private fixed at somewhere already mapped
9575         mmap shared not fixed
9576         mmap shared fixed at somewhere currently unmapped
9577         mmap shared fixed at somewhere already mapped
9578    For private mappings, we should verify that changes cannot be read()
9579    back from the file, nor mmap's back from the file at a different
9580    address.  (There have been systems where private was not correctly
9581    implemented like the infamous i386 svr4.0, and systems where the
9582    VM page cache was not coherent with the file system buffer cache
9583    like early versions of FreeBSD and possibly contemporary NetBSD.)
9584    For shared mappings, we should conversely verify that changes get
9585    propagated back to all the places they're supposed to be.
9586
9587    Grep wants private fixed already mapped.
9588    The main things grep needs to know about mmap are:
9589    * does it exist and is it safe to write into the mmap'd area
9590    * how to use it (BSD variants)  */
9591
9592 #include <fcntl.h>
9593 #include <sys/mman.h>
9594
9595 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9596 char *malloc ();
9597 #endif
9598
9599 /* This mess was copied from the GNU getpagesize.h.  */
9600 #ifndef HAVE_GETPAGESIZE
9601 /* Assume that all systems that can run configure have sys/param.h.  */
9602 # ifndef HAVE_SYS_PARAM_H
9603 #  define HAVE_SYS_PARAM_H 1
9604 # endif
9605
9606 # ifdef _SC_PAGESIZE
9607 #  define getpagesize() sysconf(_SC_PAGESIZE)
9608 # else /* no _SC_PAGESIZE */
9609 #  ifdef HAVE_SYS_PARAM_H
9610 #   include <sys/param.h>
9611 #   ifdef EXEC_PAGESIZE
9612 #    define getpagesize() EXEC_PAGESIZE
9613 #   else /* no EXEC_PAGESIZE */
9614 #    ifdef NBPG
9615 #     define getpagesize() NBPG * CLSIZE
9616 #     ifndef CLSIZE
9617 #      define CLSIZE 1
9618 #     endif /* no CLSIZE */
9619 #    else /* no NBPG */
9620 #     ifdef NBPC
9621 #      define getpagesize() NBPC
9622 #     else /* no NBPC */
9623 #      ifdef PAGESIZE
9624 #       define getpagesize() PAGESIZE
9625 #      endif /* PAGESIZE */
9626 #     endif /* no NBPC */
9627 #    endif /* no NBPG */
9628 #   endif /* no EXEC_PAGESIZE */
9629 #  else /* no HAVE_SYS_PARAM_H */
9630 #   define getpagesize() 8192   /* punt totally */
9631 #  endif /* no HAVE_SYS_PARAM_H */
9632 # endif /* no _SC_PAGESIZE */
9633
9634 #endif /* no HAVE_GETPAGESIZE */
9635
9636 int
9637 main ()
9638 {
9639   char *data, *data2, *data3;
9640   int i, pagesize;
9641   int fd;
9642
9643   pagesize = getpagesize ();
9644
9645   /* First, make a file with some known garbage in it. */
9646   data = (char *) malloc (pagesize);
9647   if (!data)
9648     return 1;
9649   for (i = 0; i < pagesize; ++i)
9650     *(data + i) = rand ();
9651   umask (0);
9652   fd = creat ("conftest.mmap", 0600);
9653   if (fd < 0)
9654     return 1;
9655   if (write (fd, data, pagesize) != pagesize)
9656     return 1;
9657   close (fd);
9658
9659   /* Next, try to mmap the file at a fixed address which already has
9660      something else allocated at it.  If we can, also make sure that
9661      we see the same garbage.  */
9662   fd = open ("conftest.mmap", O_RDWR);
9663   if (fd < 0)
9664     return 1;
9665   data2 = (char *) malloc (2 * pagesize);
9666   if (!data2)
9667     return 1;
9668   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9669   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9670                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9671     return 1;
9672   for (i = 0; i < pagesize; ++i)
9673     if (*(data + i) != *(data2 + i))
9674       return 1;
9675
9676   /* Finally, make sure that changes to the mapped area do not
9677      percolate back to the file as seen by read().  (This is a bug on
9678      some variants of i386 svr4.0.)  */
9679   for (i = 0; i < pagesize; ++i)
9680     *(data2 + i) = *(data2 + i) + 1;
9681   data3 = (char *) malloc (pagesize);
9682   if (!data3)
9683     return 1;
9684   if (read (fd, data3, pagesize) != pagesize)
9685     return 1;
9686   for (i = 0; i < pagesize; ++i)
9687     if (*(data + i) != *(data3 + i))
9688       return 1;
9689   close (fd);
9690   return 0;
9691 }
9692 _ACEOF
9693 rm -f conftest$ac_exeext
9694 if { (ac_try="$ac_link"
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_link") 2>&5
9701   ac_status=$?
9702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9704   { (case "(($ac_try" in
9705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706   *) ac_try_echo=$ac_try;;
9707 esac
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709   (eval "$ac_try") 2>&5
9710   ac_status=$?
9711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712   (exit $ac_status); }; }; then
9713   ac_cv_func_mmap_fixed_mapped=yes
9714 else
9715   echo "$as_me: program exited with status $ac_status" >&5
9716 echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719 ( exit $ac_status )
9720 ac_cv_func_mmap_fixed_mapped=no
9721 fi
9722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9723 fi
9724
9725
9726 fi
9727 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9728 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9729 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9730
9731 cat >>confdefs.h <<\_ACEOF
9732 #define HAVE_MMAP 1
9733 _ACEOF
9734
9735 fi
9736 rm -f conftest.mmap
9737
9738
9739     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9740 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9741 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9742   echo $ECHO_N "(cached) $ECHO_C" >&6
9743 else
9744   cat >conftest.$ac_ext <<_ACEOF
9745 /* confdefs.h.  */
9746 _ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h.  */
9750
9751 #include <features.h>
9752 #ifdef __GNU_LIBRARY__
9753  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9754   Lucky GNU user
9755  #endif
9756 #endif
9757
9758 _ACEOF
9759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9760   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9761   ac_cv_gnu_library_2_1=yes
9762 else
9763   ac_cv_gnu_library_2_1=no
9764 fi
9765 rm -f conftest*
9766
9767
9768
9769 fi
9770 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9771 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9772
9773     GLIBC21="$ac_cv_gnu_library_2_1"
9774
9775
9776
9777
9778   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9779 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9780 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9781   echo $ECHO_N "(cached) $ECHO_C" >&6
9782 else
9783
9784       if test "$cross_compiling" = yes; then
9785
9786           # Guess based on the CPU.
9787           case "$host_cpu" in
9788             alpha* | i3456786 | m68k | s390*)
9789               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9790             *)
9791               gt_cv_int_divbyzero_sigfpe="guessing no";;
9792           esac
9793
9794 else
9795   cat >conftest.$ac_ext <<_ACEOF
9796 /* confdefs.h.  */
9797 _ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h.  */
9801
9802 #include <stdlib.h>
9803 #include <signal.h>
9804
9805 static void
9806 #ifdef __cplusplus
9807 sigfpe_handler (int sig)
9808 #else
9809 sigfpe_handler (sig) int sig;
9810 #endif
9811 {
9812   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9813   exit (sig != SIGFPE);
9814 }
9815
9816 int x = 1;
9817 int y = 0;
9818 int z;
9819 int nan;
9820
9821 int main ()
9822 {
9823   signal (SIGFPE, sigfpe_handler);
9824 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9825 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9826   signal (SIGTRAP, sigfpe_handler);
9827 #endif
9828 /* Linux/SPARC yields signal SIGILL.  */
9829 #if defined (__sparc__) && defined (__linux__)
9830   signal (SIGILL, sigfpe_handler);
9831 #endif
9832
9833   z = x / y;
9834   nan = y / y;
9835   exit (1);
9836 }
9837
9838 _ACEOF
9839 rm -f conftest$ac_exeext
9840 if { (ac_try="$ac_link"
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_link") 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9850   { (case "(($ac_try" in
9851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852   *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855   (eval "$ac_try") 2>&5
9856   ac_status=$?
9857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858   (exit $ac_status); }; }; then
9859   gt_cv_int_divbyzero_sigfpe=yes
9860 else
9861   echo "$as_me: program exited with status $ac_status" >&5
9862 echo "$as_me: failed program was:" >&5
9863 sed 's/^/| /' conftest.$ac_ext >&5
9864
9865 ( exit $ac_status )
9866 gt_cv_int_divbyzero_sigfpe=no
9867 fi
9868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9869 fi
9870
9871
9872
9873 fi
9874 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9875 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9876   case "$gt_cv_int_divbyzero_sigfpe" in
9877     *yes) value=1;;
9878     *) value=0;;
9879   esac
9880
9881 cat >>confdefs.h <<_ACEOF
9882 #define INTDIV0_RAISES_SIGFPE $value
9883 _ACEOF
9884
9885
9886
9887   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9888 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9889 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9890   echo $ECHO_N "(cached) $ECHO_C" >&6
9891 else
9892   cat >conftest.$ac_ext <<_ACEOF
9893 /* confdefs.h.  */
9894 _ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h.  */
9898 unsigned long long ull = 1ULL; int i = 63;
9899 int
9900 main ()
9901 {
9902 unsigned long long ullmax = (unsigned long long) -1;
9903      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9904   ;
9905   return 0;
9906 }
9907 _ACEOF
9908 rm -f conftest.$ac_objext conftest$ac_exeext
9909 if { (ac_try="$ac_link"
9910 case "(($ac_try" in
9911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9912   *) ac_try_echo=$ac_try;;
9913 esac
9914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9915   (eval "$ac_link") 2>conftest.er1
9916   ac_status=$?
9917   grep -v '^ *+' conftest.er1 >conftest.err
9918   rm -f conftest.er1
9919   cat conftest.err >&5
9920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921   (exit $ac_status); } && {
9922          test -z "$ac_c_werror_flag" ||
9923          test ! -s conftest.err
9924        } && test -s conftest$ac_exeext &&
9925        $as_test_x conftest$ac_exeext; then
9926   ac_cv_type_unsigned_long_long=yes
9927 else
9928   echo "$as_me: failed program was:" >&5
9929 sed 's/^/| /' conftest.$ac_ext >&5
9930
9931         ac_cv_type_unsigned_long_long=no
9932 fi
9933
9934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9935       conftest$ac_exeext conftest.$ac_ext
9936 fi
9937 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9938 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9939   if test $ac_cv_type_unsigned_long_long = yes; then
9940
9941 cat >>confdefs.h <<\_ACEOF
9942 #define HAVE_UNSIGNED_LONG_LONG 1
9943 _ACEOF
9944
9945   fi
9946
9947
9948
9949
9950   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9951
9952     test $ac_cv_type_unsigned_long_long = yes \
9953       && ac_type='unsigned long long' \
9954       || ac_type='unsigned long'
9955
9956 cat >>confdefs.h <<_ACEOF
9957 #define uintmax_t $ac_type
9958 _ACEOF
9959
9960   else
9961
9962 cat >>confdefs.h <<\_ACEOF
9963 #define HAVE_UINTMAX_T 1
9964 _ACEOF
9965
9966   fi
9967
9968
9969   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9970 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9971 if test "${gt_cv_header_inttypes_h+set}" = set; then
9972   echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974
9975     cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h.  */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h.  */
9981 #include <sys/types.h>
9982 #include <inttypes.h>
9983 int
9984 main ()
9985 {
9986
9987   ;
9988   return 0;
9989 }
9990 _ACEOF
9991 rm -f conftest.$ac_objext
9992 if { (ac_try="$ac_compile"
9993 case "(($ac_try" in
9994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9995   *) ac_try_echo=$ac_try;;
9996 esac
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998   (eval "$ac_compile") 2>conftest.er1
9999   ac_status=$?
10000   grep -v '^ *+' conftest.er1 >conftest.err
10001   rm -f conftest.er1
10002   cat conftest.err >&5
10003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004   (exit $ac_status); } && {
10005          test -z "$ac_c_werror_flag" ||
10006          test ! -s conftest.err
10007        } && test -s conftest.$ac_objext; then
10008   gt_cv_header_inttypes_h=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013         gt_cv_header_inttypes_h=no
10014 fi
10015
10016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10017
10018 fi
10019 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10020 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10021   if test $gt_cv_header_inttypes_h = yes; then
10022
10023 cat >>confdefs.h <<_ACEOF
10024 #define HAVE_INTTYPES_H 1
10025 _ACEOF
10026
10027   fi
10028
10029
10030
10031   if test $gt_cv_header_inttypes_h = yes; then
10032     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10033 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10034 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10035   echo $ECHO_N "(cached) $ECHO_C" >&6
10036 else
10037
10038         cat >conftest.$ac_ext <<_ACEOF
10039 /* confdefs.h.  */
10040 _ACEOF
10041 cat confdefs.h >>conftest.$ac_ext
10042 cat >>conftest.$ac_ext <<_ACEOF
10043 /* end confdefs.h.  */
10044 #include <inttypes.h>
10045 #ifdef PRId32
10046 char *p = PRId32;
10047 #endif
10048
10049 int
10050 main ()
10051 {
10052
10053   ;
10054   return 0;
10055 }
10056 _ACEOF
10057 rm -f conftest.$ac_objext
10058 if { (ac_try="$ac_compile"
10059 case "(($ac_try" in
10060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10061   *) ac_try_echo=$ac_try;;
10062 esac
10063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10064   (eval "$ac_compile") 2>conftest.er1
10065   ac_status=$?
10066   grep -v '^ *+' conftest.er1 >conftest.err
10067   rm -f conftest.er1
10068   cat conftest.err >&5
10069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070   (exit $ac_status); } && {
10071          test -z "$ac_c_werror_flag" ||
10072          test ! -s conftest.err
10073        } && test -s conftest.$ac_objext; then
10074   gt_cv_inttypes_pri_broken=no
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079         gt_cv_inttypes_pri_broken=yes
10080 fi
10081
10082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083
10084 fi
10085 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10086 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10087   fi
10088   if test "$gt_cv_inttypes_pri_broken" = yes; then
10089
10090 cat >>confdefs.h <<_ACEOF
10091 #define PRI_MACROS_BROKEN 1
10092 _ACEOF
10093
10094   fi
10095
10096
10097
10098 for ac_header in stdint.h
10099 do
10100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10102   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10105   echo $ECHO_N "(cached) $ECHO_C" >&6
10106 fi
10107 ac_res=`eval echo '${'$as_ac_Header'}'`
10108                { echo "$as_me:$LINENO: result: $ac_res" >&5
10109 echo "${ECHO_T}$ac_res" >&6; }
10110 else
10111   # Is the header compilable?
10112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10114 cat >conftest.$ac_ext <<_ACEOF
10115 /* confdefs.h.  */
10116 _ACEOF
10117 cat confdefs.h >>conftest.$ac_ext
10118 cat >>conftest.$ac_ext <<_ACEOF
10119 /* end confdefs.h.  */
10120 $ac_includes_default
10121 #include <$ac_header>
10122 _ACEOF
10123 rm -f conftest.$ac_objext
10124 if { (ac_try="$ac_compile"
10125 case "(($ac_try" in
10126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127   *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130   (eval "$ac_compile") 2>conftest.er1
10131   ac_status=$?
10132   grep -v '^ *+' conftest.er1 >conftest.err
10133   rm -f conftest.er1
10134   cat conftest.err >&5
10135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136   (exit $ac_status); } && {
10137          test -z "$ac_c_werror_flag" ||
10138          test ! -s conftest.err
10139        } && test -s conftest.$ac_objext; then
10140   ac_header_compiler=yes
10141 else
10142   echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145         ac_header_compiler=no
10146 fi
10147
10148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10150 echo "${ECHO_T}$ac_header_compiler" >&6; }
10151
10152 # Is the header present?
10153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10155 cat >conftest.$ac_ext <<_ACEOF
10156 /* confdefs.h.  */
10157 _ACEOF
10158 cat confdefs.h >>conftest.$ac_ext
10159 cat >>conftest.$ac_ext <<_ACEOF
10160 /* end confdefs.h.  */
10161 #include <$ac_header>
10162 _ACEOF
10163 if { (ac_try="$ac_cpp conftest.$ac_ext"
10164 case "(($ac_try" in
10165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10166   *) ac_try_echo=$ac_try;;
10167 esac
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10170   ac_status=$?
10171   grep -v '^ *+' conftest.er1 >conftest.err
10172   rm -f conftest.er1
10173   cat conftest.err >&5
10174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175   (exit $ac_status); } >/dev/null && {
10176          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10177          test ! -s conftest.err
10178        }; then
10179   ac_header_preproc=yes
10180 else
10181   echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10183
10184   ac_header_preproc=no
10185 fi
10186
10187 rm -f conftest.err conftest.$ac_ext
10188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10189 echo "${ECHO_T}$ac_header_preproc" >&6; }
10190
10191 # So?  What about this header?
10192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10193   yes:no: )
10194     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10198     ac_header_preproc=yes
10199     ;;
10200   no:yes:* )
10201     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10203     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10204 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10207     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10208 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10209     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10211     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10213
10214     ;;
10215 esac
10216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219   echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221   eval "$as_ac_Header=\$ac_header_preproc"
10222 fi
10223 ac_res=`eval echo '${'$as_ac_Header'}'`
10224                { echo "$as_me:$LINENO: result: $ac_res" >&5
10225 echo "${ECHO_T}$ac_res" >&6; }
10226
10227 fi
10228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10229   cat >>confdefs.h <<_ACEOF
10230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10231 _ACEOF
10232
10233 fi
10234
10235 done
10236
10237     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10238 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10239   result=
10240   cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246
10247 #include <limits.h>
10248 #if HAVE_STDINT_H
10249 #include <stdint.h>
10250 #endif
10251 #ifdef SIZE_MAX
10252 Found it
10253 #endif
10254
10255 _ACEOF
10256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10257   $EGREP "Found it" >/dev/null 2>&1; then
10258   result=yes
10259 fi
10260 rm -f conftest*
10261
10262   if test -z "$result"; then
10263                     if test "$cross_compiling" = yes; then
10264   # Depending upon the size, compute the lo and hi bounds.
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h.  */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h.  */
10271 #include <stddef.h>
10272 int
10273 main ()
10274 {
10275 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10276 test_array [0] = 0
10277
10278   ;
10279   return 0;
10280 }
10281 _ACEOF
10282 rm -f conftest.$ac_objext
10283 if { (ac_try="$ac_compile"
10284 case "(($ac_try" in
10285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286   *) ac_try_echo=$ac_try;;
10287 esac
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289   (eval "$ac_compile") 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } && {
10296          test -z "$ac_c_werror_flag" ||
10297          test ! -s conftest.err
10298        } && test -s conftest.$ac_objext; then
10299   ac_lo=0 ac_mid=0
10300   while :; do
10301     cat >conftest.$ac_ext <<_ACEOF
10302 /* confdefs.h.  */
10303 _ACEOF
10304 cat confdefs.h >>conftest.$ac_ext
10305 cat >>conftest.$ac_ext <<_ACEOF
10306 /* end confdefs.h.  */
10307 #include <stddef.h>
10308 int
10309 main ()
10310 {
10311 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10312 test_array [0] = 0
10313
10314   ;
10315   return 0;
10316 }
10317 _ACEOF
10318 rm -f conftest.$ac_objext
10319 if { (ac_try="$ac_compile"
10320 case "(($ac_try" in
10321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322   *) ac_try_echo=$ac_try;;
10323 esac
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325   (eval "$ac_compile") 2>conftest.er1
10326   ac_status=$?
10327   grep -v '^ *+' conftest.er1 >conftest.err
10328   rm -f conftest.er1
10329   cat conftest.err >&5
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } && {
10332          test -z "$ac_c_werror_flag" ||
10333          test ! -s conftest.err
10334        } && test -s conftest.$ac_objext; then
10335   ac_hi=$ac_mid; break
10336 else
10337   echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340         ac_lo=`expr $ac_mid + 1`
10341                         if test $ac_lo -le $ac_mid; then
10342                           ac_lo= ac_hi=
10343                           break
10344                         fi
10345                         ac_mid=`expr 2 '*' $ac_mid + 1`
10346 fi
10347
10348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10349   done
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354         cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h.  */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h.  */
10360 #include <stddef.h>
10361 int
10362 main ()
10363 {
10364 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10365 test_array [0] = 0
10366
10367   ;
10368   return 0;
10369 }
10370 _ACEOF
10371 rm -f conftest.$ac_objext
10372 if { (ac_try="$ac_compile"
10373 case "(($ac_try" in
10374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10375   *) ac_try_echo=$ac_try;;
10376 esac
10377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10378   (eval "$ac_compile") 2>conftest.er1
10379   ac_status=$?
10380   grep -v '^ *+' conftest.er1 >conftest.err
10381   rm -f conftest.er1
10382   cat conftest.err >&5
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } && {
10385          test -z "$ac_c_werror_flag" ||
10386          test ! -s conftest.err
10387        } && test -s conftest.$ac_objext; then
10388   ac_hi=-1 ac_mid=-1
10389   while :; do
10390     cat >conftest.$ac_ext <<_ACEOF
10391 /* confdefs.h.  */
10392 _ACEOF
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h.  */
10396 #include <stddef.h>
10397 int
10398 main ()
10399 {
10400 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10401 test_array [0] = 0
10402
10403   ;
10404   return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext
10408 if { (ac_try="$ac_compile"
10409 case "(($ac_try" in
10410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411   *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414   (eval "$ac_compile") 2>conftest.er1
10415   ac_status=$?
10416   grep -v '^ *+' conftest.er1 >conftest.err
10417   rm -f conftest.er1
10418   cat conftest.err >&5
10419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420   (exit $ac_status); } && {
10421          test -z "$ac_c_werror_flag" ||
10422          test ! -s conftest.err
10423        } && test -s conftest.$ac_objext; then
10424   ac_lo=$ac_mid; break
10425 else
10426   echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10428
10429         ac_hi=`expr '(' $ac_mid ')' - 1`
10430                         if test $ac_mid -le $ac_hi; then
10431                           ac_lo= ac_hi=
10432                           break
10433                         fi
10434                         ac_mid=`expr 2 '*' $ac_mid`
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10438   done
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         ac_lo= ac_hi=
10444 fi
10445
10446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10447 fi
10448
10449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10450 # Binary search between lo and hi bounds.
10451 while test "x$ac_lo" != "x$ac_hi"; do
10452   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10453   cat >conftest.$ac_ext <<_ACEOF
10454 /* confdefs.h.  */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h.  */
10459 #include <stddef.h>
10460 int
10461 main ()
10462 {
10463 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10464 test_array [0] = 0
10465
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext
10471 if { (ac_try="$ac_compile"
10472 case "(($ac_try" in
10473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10474   *) ac_try_echo=$ac_try;;
10475 esac
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477   (eval "$ac_compile") 2>conftest.er1
10478   ac_status=$?
10479   grep -v '^ *+' conftest.er1 >conftest.err
10480   rm -f conftest.er1
10481   cat conftest.err >&5
10482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483   (exit $ac_status); } && {
10484          test -z "$ac_c_werror_flag" ||
10485          test ! -s conftest.err
10486        } && test -s conftest.$ac_objext; then
10487   ac_hi=$ac_mid
10488 else
10489   echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10491
10492         ac_lo=`expr '(' $ac_mid ')' + 1`
10493 fi
10494
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 done
10497 case $ac_lo in
10498 ?*) res_hi=$ac_lo;;
10499 '') result=? ;;
10500 esac
10501 else
10502   cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h.  */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h.  */
10508 #include <stddef.h>
10509 static long int longval () { return ~(size_t)0 / 10; }
10510 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10511 #include <stdio.h>
10512 #include <stdlib.h>
10513 int
10514 main ()
10515 {
10516
10517   FILE *f = fopen ("conftest.val", "w");
10518   if (! f)
10519     return 1;
10520   if ((~(size_t)0 / 10) < 0)
10521     {
10522       long int i = longval ();
10523       if (i != (~(size_t)0 / 10))
10524         return 1;
10525       fprintf (f, "%ld\n", i);
10526     }
10527   else
10528     {
10529       unsigned long int i = ulongval ();
10530       if (i != (~(size_t)0 / 10))
10531         return 1;
10532       fprintf (f, "%lu\n", i);
10533     }
10534   return ferror (f) || fclose (f) != 0;
10535
10536   ;
10537   return 0;
10538 }
10539 _ACEOF
10540 rm -f conftest$ac_exeext
10541 if { (ac_try="$ac_link"
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_link") 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10551   { (case "(($ac_try" in
10552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553   *) ac_try_echo=$ac_try;;
10554 esac
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556   (eval "$ac_try") 2>&5
10557   ac_status=$?
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   (exit $ac_status); }; }; then
10560   res_hi=`cat conftest.val`
10561 else
10562   echo "$as_me: program exited with status $ac_status" >&5
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ( exit $ac_status )
10567 result=?
10568 fi
10569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10570 fi
10571 rm -f conftest.val
10572
10573     if test "$cross_compiling" = yes; then
10574   # Depending upon the size, compute the lo and hi bounds.
10575 cat >conftest.$ac_ext <<_ACEOF
10576 /* confdefs.h.  */
10577 _ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h.  */
10581 #include <stddef.h>
10582 int
10583 main ()
10584 {
10585 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10586 test_array [0] = 0
10587
10588   ;
10589   return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext
10593 if { (ac_try="$ac_compile"
10594 case "(($ac_try" in
10595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596   *) ac_try_echo=$ac_try;;
10597 esac
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599   (eval "$ac_compile") 2>conftest.er1
10600   ac_status=$?
10601   grep -v '^ *+' conftest.er1 >conftest.err
10602   rm -f conftest.er1
10603   cat conftest.err >&5
10604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605   (exit $ac_status); } && {
10606          test -z "$ac_c_werror_flag" ||
10607          test ! -s conftest.err
10608        } && test -s conftest.$ac_objext; then
10609   ac_lo=0 ac_mid=0
10610   while :; do
10611     cat >conftest.$ac_ext <<_ACEOF
10612 /* confdefs.h.  */
10613 _ACEOF
10614 cat confdefs.h >>conftest.$ac_ext
10615 cat >>conftest.$ac_ext <<_ACEOF
10616 /* end confdefs.h.  */
10617 #include <stddef.h>
10618 int
10619 main ()
10620 {
10621 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10622 test_array [0] = 0
10623
10624   ;
10625   return 0;
10626 }
10627 _ACEOF
10628 rm -f conftest.$ac_objext
10629 if { (ac_try="$ac_compile"
10630 case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_compile") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } && {
10642          test -z "$ac_c_werror_flag" ||
10643          test ! -s conftest.err
10644        } && test -s conftest.$ac_objext; then
10645   ac_hi=$ac_mid; break
10646 else
10647   echo "$as_me: failed program was:" >&5
10648 sed 's/^/| /' conftest.$ac_ext >&5
10649
10650         ac_lo=`expr $ac_mid + 1`
10651                         if test $ac_lo -le $ac_mid; then
10652                           ac_lo= ac_hi=
10653                           break
10654                         fi
10655                         ac_mid=`expr 2 '*' $ac_mid + 1`
10656 fi
10657
10658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10659   done
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664         cat >conftest.$ac_ext <<_ACEOF
10665 /* confdefs.h.  */
10666 _ACEOF
10667 cat confdefs.h >>conftest.$ac_ext
10668 cat >>conftest.$ac_ext <<_ACEOF
10669 /* end confdefs.h.  */
10670 #include <stddef.h>
10671 int
10672 main ()
10673 {
10674 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10675 test_array [0] = 0
10676
10677   ;
10678   return 0;
10679 }
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (ac_try="$ac_compile"
10683 case "(($ac_try" in
10684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685   *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688   (eval "$ac_compile") 2>conftest.er1
10689   ac_status=$?
10690   grep -v '^ *+' conftest.er1 >conftest.err
10691   rm -f conftest.er1
10692   cat conftest.err >&5
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } && {
10695          test -z "$ac_c_werror_flag" ||
10696          test ! -s conftest.err
10697        } && test -s conftest.$ac_objext; then
10698   ac_hi=-1 ac_mid=-1
10699   while :; do
10700     cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h.  */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h.  */
10706 #include <stddef.h>
10707 int
10708 main ()
10709 {
10710 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10711 test_array [0] = 0
10712
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext
10718 if { (ac_try="$ac_compile"
10719 case "(($ac_try" in
10720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721   *) ac_try_echo=$ac_try;;
10722 esac
10723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10724   (eval "$ac_compile") 2>conftest.er1
10725   ac_status=$?
10726   grep -v '^ *+' conftest.er1 >conftest.err
10727   rm -f conftest.er1
10728   cat conftest.err >&5
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); } && {
10731          test -z "$ac_c_werror_flag" ||
10732          test ! -s conftest.err
10733        } && test -s conftest.$ac_objext; then
10734   ac_lo=$ac_mid; break
10735 else
10736   echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10738
10739         ac_hi=`expr '(' $ac_mid ')' - 1`
10740                         if test $ac_mid -le $ac_hi; then
10741                           ac_lo= ac_hi=
10742                           break
10743                         fi
10744                         ac_mid=`expr 2 '*' $ac_mid`
10745 fi
10746
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748   done
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753         ac_lo= ac_hi=
10754 fi
10755
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10757 fi
10758
10759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10760 # Binary search between lo and hi bounds.
10761 while test "x$ac_lo" != "x$ac_hi"; do
10762   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10763   cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769 #include <stddef.h>
10770 int
10771 main ()
10772 {
10773 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10774 test_array [0] = 0
10775
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest.$ac_objext
10781 if { (ac_try="$ac_compile"
10782 case "(($ac_try" in
10783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784   *) ac_try_echo=$ac_try;;
10785 esac
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787   (eval "$ac_compile") 2>conftest.er1
10788   ac_status=$?
10789   grep -v '^ *+' conftest.er1 >conftest.err
10790   rm -f conftest.er1
10791   cat conftest.err >&5
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); } && {
10794          test -z "$ac_c_werror_flag" ||
10795          test ! -s conftest.err
10796        } && test -s conftest.$ac_objext; then
10797   ac_hi=$ac_mid
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802         ac_lo=`expr '(' $ac_mid ')' + 1`
10803 fi
10804
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 done
10807 case $ac_lo in
10808 ?*) res_lo=$ac_lo;;
10809 '') result=? ;;
10810 esac
10811 else
10812   cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h.  */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h.  */
10818 #include <stddef.h>
10819 static long int longval () { return ~(size_t)0 % 10; }
10820 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10821 #include <stdio.h>
10822 #include <stdlib.h>
10823 int
10824 main ()
10825 {
10826
10827   FILE *f = fopen ("conftest.val", "w");
10828   if (! f)
10829     return 1;
10830   if ((~(size_t)0 % 10) < 0)
10831     {
10832       long int i = longval ();
10833       if (i != (~(size_t)0 % 10))
10834         return 1;
10835       fprintf (f, "%ld\n", i);
10836     }
10837   else
10838     {
10839       unsigned long int i = ulongval ();
10840       if (i != (~(size_t)0 % 10))
10841         return 1;
10842       fprintf (f, "%lu\n", i);
10843     }
10844   return ferror (f) || fclose (f) != 0;
10845
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 rm -f conftest$ac_exeext
10851 if { (ac_try="$ac_link"
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_link") 2>&5
10858   ac_status=$?
10859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10861   { (case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_try") 2>&5
10867   ac_status=$?
10868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869   (exit $ac_status); }; }; then
10870   res_lo=`cat conftest.val`
10871 else
10872   echo "$as_me: program exited with status $ac_status" >&5
10873 echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 ( exit $ac_status )
10877 result=?
10878 fi
10879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10880 fi
10881 rm -f conftest.val
10882
10883     if test "$cross_compiling" = yes; then
10884   # Depending upon the size, compute the lo and hi bounds.
10885 cat >conftest.$ac_ext <<_ACEOF
10886 /* confdefs.h.  */
10887 _ACEOF
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h.  */
10891 #include <stddef.h>
10892 int
10893 main ()
10894 {
10895 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10896 test_array [0] = 0
10897
10898   ;
10899   return 0;
10900 }
10901 _ACEOF
10902 rm -f conftest.$ac_objext
10903 if { (ac_try="$ac_compile"
10904 case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_compile") 2>conftest.er1
10910   ac_status=$?
10911   grep -v '^ *+' conftest.er1 >conftest.err
10912   rm -f conftest.er1
10913   cat conftest.err >&5
10914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915   (exit $ac_status); } && {
10916          test -z "$ac_c_werror_flag" ||
10917          test ! -s conftest.err
10918        } && test -s conftest.$ac_objext; then
10919   ac_lo=0 ac_mid=0
10920   while :; do
10921     cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h.  */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h.  */
10927 #include <stddef.h>
10928 int
10929 main ()
10930 {
10931 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10932 test_array [0] = 0
10933
10934   ;
10935   return 0;
10936 }
10937 _ACEOF
10938 rm -f conftest.$ac_objext
10939 if { (ac_try="$ac_compile"
10940 case "(($ac_try" in
10941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10942   *) ac_try_echo=$ac_try;;
10943 esac
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945   (eval "$ac_compile") 2>conftest.er1
10946   ac_status=$?
10947   grep -v '^ *+' conftest.er1 >conftest.err
10948   rm -f conftest.er1
10949   cat conftest.err >&5
10950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951   (exit $ac_status); } && {
10952          test -z "$ac_c_werror_flag" ||
10953          test ! -s conftest.err
10954        } && test -s conftest.$ac_objext; then
10955   ac_hi=$ac_mid; break
10956 else
10957   echo "$as_me: failed program was:" >&5
10958 sed 's/^/| /' conftest.$ac_ext >&5
10959
10960         ac_lo=`expr $ac_mid + 1`
10961                         if test $ac_lo -le $ac_mid; then
10962                           ac_lo= ac_hi=
10963                           break
10964                         fi
10965                         ac_mid=`expr 2 '*' $ac_mid + 1`
10966 fi
10967
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969   done
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         cat >conftest.$ac_ext <<_ACEOF
10975 /* confdefs.h.  */
10976 _ACEOF
10977 cat confdefs.h >>conftest.$ac_ext
10978 cat >>conftest.$ac_ext <<_ACEOF
10979 /* end confdefs.h.  */
10980 #include <stddef.h>
10981 int
10982 main ()
10983 {
10984 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10985 test_array [0] = 0
10986
10987   ;
10988   return 0;
10989 }
10990 _ACEOF
10991 rm -f conftest.$ac_objext
10992 if { (ac_try="$ac_compile"
10993 case "(($ac_try" in
10994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10995   *) ac_try_echo=$ac_try;;
10996 esac
10997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10998   (eval "$ac_compile") 2>conftest.er1
10999   ac_status=$?
11000   grep -v '^ *+' conftest.er1 >conftest.err
11001   rm -f conftest.er1
11002   cat conftest.err >&5
11003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004   (exit $ac_status); } && {
11005          test -z "$ac_c_werror_flag" ||
11006          test ! -s conftest.err
11007        } && test -s conftest.$ac_objext; then
11008   ac_hi=-1 ac_mid=-1
11009   while :; do
11010     cat >conftest.$ac_ext <<_ACEOF
11011 /* confdefs.h.  */
11012 _ACEOF
11013 cat confdefs.h >>conftest.$ac_ext
11014 cat >>conftest.$ac_ext <<_ACEOF
11015 /* end confdefs.h.  */
11016 #include <stddef.h>
11017 int
11018 main ()
11019 {
11020 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11021 test_array [0] = 0
11022
11023   ;
11024   return 0;
11025 }
11026 _ACEOF
11027 rm -f conftest.$ac_objext
11028 if { (ac_try="$ac_compile"
11029 case "(($ac_try" in
11030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11031   *) ac_try_echo=$ac_try;;
11032 esac
11033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11034   (eval "$ac_compile") 2>conftest.er1
11035   ac_status=$?
11036   grep -v '^ *+' conftest.er1 >conftest.err
11037   rm -f conftest.er1
11038   cat conftest.err >&5
11039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040   (exit $ac_status); } && {
11041          test -z "$ac_c_werror_flag" ||
11042          test ! -s conftest.err
11043        } && test -s conftest.$ac_objext; then
11044   ac_lo=$ac_mid; break
11045 else
11046   echo "$as_me: failed program was:" >&5
11047 sed 's/^/| /' conftest.$ac_ext >&5
11048
11049         ac_hi=`expr '(' $ac_mid ')' - 1`
11050                         if test $ac_mid -le $ac_hi; then
11051                           ac_lo= ac_hi=
11052                           break
11053                         fi
11054                         ac_mid=`expr 2 '*' $ac_mid`
11055 fi
11056
11057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11058   done
11059 else
11060   echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063         ac_lo= ac_hi=
11064 fi
11065
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 fi
11068
11069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 # Binary search between lo and hi bounds.
11071 while test "x$ac_lo" != "x$ac_hi"; do
11072   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11073   cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h.  */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h.  */
11079 #include <stddef.h>
11080 int
11081 main ()
11082 {
11083 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11084 test_array [0] = 0
11085
11086   ;
11087   return 0;
11088 }
11089 _ACEOF
11090 rm -f conftest.$ac_objext
11091 if { (ac_try="$ac_compile"
11092 case "(($ac_try" in
11093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094   *) ac_try_echo=$ac_try;;
11095 esac
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097   (eval "$ac_compile") 2>conftest.er1
11098   ac_status=$?
11099   grep -v '^ *+' conftest.er1 >conftest.err
11100   rm -f conftest.er1
11101   cat conftest.err >&5
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); } && {
11104          test -z "$ac_c_werror_flag" ||
11105          test ! -s conftest.err
11106        } && test -s conftest.$ac_objext; then
11107   ac_hi=$ac_mid
11108 else
11109   echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112         ac_lo=`expr '(' $ac_mid ')' + 1`
11113 fi
11114
11115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11116 done
11117 case $ac_lo in
11118 ?*) fits_in_uint=$ac_lo;;
11119 '') result=? ;;
11120 esac
11121 else
11122   cat >conftest.$ac_ext <<_ACEOF
11123 /* confdefs.h.  */
11124 _ACEOF
11125 cat confdefs.h >>conftest.$ac_ext
11126 cat >>conftest.$ac_ext <<_ACEOF
11127 /* end confdefs.h.  */
11128 #include <stddef.h>
11129 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11130 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11131 #include <stdio.h>
11132 #include <stdlib.h>
11133 int
11134 main ()
11135 {
11136
11137   FILE *f = fopen ("conftest.val", "w");
11138   if (! f)
11139     return 1;
11140   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11141     {
11142       long int i = longval ();
11143       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11144         return 1;
11145       fprintf (f, "%ld\n", i);
11146     }
11147   else
11148     {
11149       unsigned long int i = ulongval ();
11150       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11151         return 1;
11152       fprintf (f, "%lu\n", i);
11153     }
11154   return ferror (f) || fclose (f) != 0;
11155
11156   ;
11157   return 0;
11158 }
11159 _ACEOF
11160 rm -f conftest$ac_exeext
11161 if { (ac_try="$ac_link"
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_link") 2>&5
11168   ac_status=$?
11169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11171   { (case "(($ac_try" in
11172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173   *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176   (eval "$ac_try") 2>&5
11177   ac_status=$?
11178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179   (exit $ac_status); }; }; then
11180   fits_in_uint=`cat conftest.val`
11181 else
11182   echo "$as_me: program exited with status $ac_status" >&5
11183 echo "$as_me: failed program was:" >&5
11184 sed 's/^/| /' conftest.$ac_ext >&5
11185
11186 ( exit $ac_status )
11187 result=?
11188 fi
11189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11190 fi
11191 rm -f conftest.val
11192
11193     if test "$fits_in_uint" = 1; then
11194                   cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h.  */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h.  */
11200 #include <stddef.h>
11201         extern size_t foo;
11202         extern unsigned long foo;
11203
11204 int
11205 main ()
11206 {
11207
11208   ;
11209   return 0;
11210 }
11211 _ACEOF
11212 rm -f conftest.$ac_objext
11213 if { (ac_try="$ac_compile"
11214 case "(($ac_try" in
11215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216   *) ac_try_echo=$ac_try;;
11217 esac
11218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11219   (eval "$ac_compile") 2>conftest.er1
11220   ac_status=$?
11221   grep -v '^ *+' conftest.er1 >conftest.err
11222   rm -f conftest.er1
11223   cat conftest.err >&5
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); } && {
11226          test -z "$ac_c_werror_flag" ||
11227          test ! -s conftest.err
11228        } && test -s conftest.$ac_objext; then
11229   fits_in_uint=0
11230 else
11231   echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11233
11234
11235 fi
11236
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238     fi
11239     if test -z "$result"; then
11240       if test "$fits_in_uint" = 1; then
11241         result="$res_hi$res_lo"U
11242       else
11243         result="$res_hi$res_lo"UL
11244       fi
11245     else
11246             result='~(size_t)0'
11247     fi
11248   fi
11249   { echo "$as_me:$LINENO: result: $result" >&5
11250 echo "${ECHO_T}$result" >&6; }
11251   if test "$result" != yes; then
11252
11253 cat >>confdefs.h <<_ACEOF
11254 #define SIZE_MAX $result
11255 _ACEOF
11256
11257   fi
11258
11259
11260
11261
11262
11263 for ac_header in stdint.h
11264 do
11265 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 fi
11272 ac_res=`eval echo '${'$as_ac_Header'}'`
11273                { echo "$as_me:$LINENO: result: $ac_res" >&5
11274 echo "${ECHO_T}$ac_res" >&6; }
11275 else
11276   # Is the header compilable?
11277 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11278 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11279 cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 $ac_includes_default
11286 #include <$ac_header>
11287 _ACEOF
11288 rm -f conftest.$ac_objext
11289 if { (ac_try="$ac_compile"
11290 case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295   (eval "$ac_compile") 2>conftest.er1
11296   ac_status=$?
11297   grep -v '^ *+' conftest.er1 >conftest.err
11298   rm -f conftest.er1
11299   cat conftest.err >&5
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } && {
11302          test -z "$ac_c_werror_flag" ||
11303          test ! -s conftest.err
11304        } && test -s conftest.$ac_objext; then
11305   ac_header_compiler=yes
11306 else
11307   echo "$as_me: failed program was:" >&5
11308 sed 's/^/| /' conftest.$ac_ext >&5
11309
11310         ac_header_compiler=no
11311 fi
11312
11313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11314 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11315 echo "${ECHO_T}$ac_header_compiler" >&6; }
11316
11317 # Is the header present?
11318 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11319 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11320 cat >conftest.$ac_ext <<_ACEOF
11321 /* confdefs.h.  */
11322 _ACEOF
11323 cat confdefs.h >>conftest.$ac_ext
11324 cat >>conftest.$ac_ext <<_ACEOF
11325 /* end confdefs.h.  */
11326 #include <$ac_header>
11327 _ACEOF
11328 if { (ac_try="$ac_cpp conftest.$ac_ext"
11329 case "(($ac_try" in
11330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331   *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11335   ac_status=$?
11336   grep -v '^ *+' conftest.er1 >conftest.err
11337   rm -f conftest.er1
11338   cat conftest.err >&5
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); } >/dev/null && {
11341          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11342          test ! -s conftest.err
11343        }; then
11344   ac_header_preproc=yes
11345 else
11346   echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11348
11349   ac_header_preproc=no
11350 fi
11351
11352 rm -f conftest.err conftest.$ac_ext
11353 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11354 echo "${ECHO_T}$ac_header_preproc" >&6; }
11355
11356 # So?  What about this header?
11357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11358   yes:no: )
11359     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11360 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11363     ac_header_preproc=yes
11364     ;;
11365   no:yes:* )
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11367 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11369 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11371 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11373 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11376     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11377 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11378
11379     ;;
11380 esac
11381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384   echo $ECHO_N "(cached) $ECHO_C" >&6
11385 else
11386   eval "$as_ac_Header=\$ac_header_preproc"
11387 fi
11388 ac_res=`eval echo '${'$as_ac_Header'}'`
11389                { echo "$as_me:$LINENO: result: $ac_res" >&5
11390 echo "${ECHO_T}$ac_res" >&6; }
11391
11392 fi
11393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11394   cat >>confdefs.h <<_ACEOF
11395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11396 _ACEOF
11397
11398 fi
11399
11400 done
11401
11402
11403
11404
11405
11406
11407
11408
11409   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11410 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11411 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h.  */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h.  */
11420 $ac_includes_default
11421 typedef ptrdiff_t ac__type_new_;
11422 int
11423 main ()
11424 {
11425 if ((ac__type_new_ *) 0)
11426   return 0;
11427 if (sizeof (ac__type_new_))
11428   return 0;
11429   ;
11430   return 0;
11431 }
11432 _ACEOF
11433 rm -f conftest.$ac_objext
11434 if { (ac_try="$ac_compile"
11435 case "(($ac_try" in
11436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11437   *) ac_try_echo=$ac_try;;
11438 esac
11439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11440   (eval "$ac_compile") 2>conftest.er1
11441   ac_status=$?
11442   grep -v '^ *+' conftest.er1 >conftest.err
11443   rm -f conftest.er1
11444   cat conftest.err >&5
11445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11446   (exit $ac_status); } && {
11447          test -z "$ac_c_werror_flag" ||
11448          test ! -s conftest.err
11449        } && test -s conftest.$ac_objext; then
11450   ac_cv_type_ptrdiff_t=yes
11451 else
11452   echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11454
11455         ac_cv_type_ptrdiff_t=no
11456 fi
11457
11458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11459 fi
11460 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11461 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11462 if test $ac_cv_type_ptrdiff_t = yes; then
11463   :
11464 else
11465
11466 cat >>confdefs.h <<\_ACEOF
11467 #define ptrdiff_t long
11468 _ACEOF
11469
11470
11471 fi
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11484 stdlib.h string.h unistd.h sys/param.h
11485 do
11486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11491   echo $ECHO_N "(cached) $ECHO_C" >&6
11492 fi
11493 ac_res=`eval echo '${'$as_ac_Header'}'`
11494                { echo "$as_me:$LINENO: result: $ac_res" >&5
11495 echo "${ECHO_T}$ac_res" >&6; }
11496 else
11497   # Is the header compilable?
11498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11500 cat >conftest.$ac_ext <<_ACEOF
11501 /* confdefs.h.  */
11502 _ACEOF
11503 cat confdefs.h >>conftest.$ac_ext
11504 cat >>conftest.$ac_ext <<_ACEOF
11505 /* end confdefs.h.  */
11506 $ac_includes_default
11507 #include <$ac_header>
11508 _ACEOF
11509 rm -f conftest.$ac_objext
11510 if { (ac_try="$ac_compile"
11511 case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516   (eval "$ac_compile") 2>conftest.er1
11517   ac_status=$?
11518   grep -v '^ *+' conftest.er1 >conftest.err
11519   rm -f conftest.er1
11520   cat conftest.err >&5
11521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522   (exit $ac_status); } && {
11523          test -z "$ac_c_werror_flag" ||
11524          test ! -s conftest.err
11525        } && test -s conftest.$ac_objext; then
11526   ac_header_compiler=yes
11527 else
11528   echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11530
11531         ac_header_compiler=no
11532 fi
11533
11534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11536 echo "${ECHO_T}$ac_header_compiler" >&6; }
11537
11538 # Is the header present?
11539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11541 cat >conftest.$ac_ext <<_ACEOF
11542 /* confdefs.h.  */
11543 _ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h.  */
11547 #include <$ac_header>
11548 _ACEOF
11549 if { (ac_try="$ac_cpp conftest.$ac_ext"
11550 case "(($ac_try" in
11551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552   *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11556   ac_status=$?
11557   grep -v '^ *+' conftest.er1 >conftest.err
11558   rm -f conftest.er1
11559   cat conftest.err >&5
11560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561   (exit $ac_status); } >/dev/null && {
11562          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11563          test ! -s conftest.err
11564        }; then
11565   ac_header_preproc=yes
11566 else
11567   echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11569
11570   ac_header_preproc=no
11571 fi
11572
11573 rm -f conftest.err conftest.$ac_ext
11574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11575 echo "${ECHO_T}$ac_header_preproc" >&6; }
11576
11577 # So?  What about this header?
11578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579   yes:no: )
11580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11584     ac_header_preproc=yes
11585     ;;
11586   no:yes:* )
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11599
11600     ;;
11601 esac
11602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   eval "$as_ac_Header=\$ac_header_preproc"
11608 fi
11609 ac_res=`eval echo '${'$as_ac_Header'}'`
11610                { echo "$as_me:$LINENO: result: $ac_res" >&5
11611 echo "${ECHO_T}$ac_res" >&6; }
11612
11613 fi
11614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11615   cat >>confdefs.h <<_ACEOF
11616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11617 _ACEOF
11618
11619 fi
11620
11621 done
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11647 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11648 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11649 __fsetlocking
11650 do
11651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11655   echo $ECHO_N "(cached) $ECHO_C" >&6
11656 else
11657   cat >conftest.$ac_ext <<_ACEOF
11658 /* confdefs.h.  */
11659 _ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h.  */
11663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11665 #define $ac_func innocuous_$ac_func
11666
11667 /* System header to define __stub macros and hopefully few prototypes,
11668     which can conflict with char $ac_func (); below.
11669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11670     <limits.h> exists even on freestanding compilers.  */
11671
11672 #ifdef __STDC__
11673 # include <limits.h>
11674 #else
11675 # include <assert.h>
11676 #endif
11677
11678 #undef $ac_func
11679
11680 /* Override any GCC internal prototype to avoid an error.
11681    Use char because int might match the return type of a GCC
11682    builtin and then its argument prototype would still apply.  */
11683 #ifdef __cplusplus
11684 extern "C"
11685 #endif
11686 char $ac_func ();
11687 /* The GNU C library defines this for functions which it implements
11688     to always fail with ENOSYS.  Some functions are actually named
11689     something starting with __ and the normal name is an alias.  */
11690 #if defined __stub_$ac_func || defined __stub___$ac_func
11691 choke me
11692 #endif
11693
11694 int
11695 main ()
11696 {
11697 return $ac_func ();
11698   ;
11699   return 0;
11700 }
11701 _ACEOF
11702 rm -f conftest.$ac_objext conftest$ac_exeext
11703 if { (ac_try="$ac_link"
11704 case "(($ac_try" in
11705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706   *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709   (eval "$ac_link") 2>conftest.er1
11710   ac_status=$?
11711   grep -v '^ *+' conftest.er1 >conftest.err
11712   rm -f conftest.er1
11713   cat conftest.err >&5
11714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715   (exit $ac_status); } && {
11716          test -z "$ac_c_werror_flag" ||
11717          test ! -s conftest.err
11718        } && test -s conftest$ac_exeext &&
11719        $as_test_x conftest$ac_exeext; then
11720   eval "$as_ac_var=yes"
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725         eval "$as_ac_var=no"
11726 fi
11727
11728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11729       conftest$ac_exeext conftest.$ac_ext
11730 fi
11731 ac_res=`eval echo '${'$as_ac_var'}'`
11732                { echo "$as_me:$LINENO: result: $ac_res" >&5
11733 echo "${ECHO_T}$ac_res" >&6; }
11734 if test `eval echo '${'$as_ac_var'}'` = yes; then
11735   cat >>confdefs.h <<_ACEOF
11736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11737 _ACEOF
11738
11739 fi
11740 done
11741
11742
11743
11744   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11745 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11746 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   cat >conftest.$ac_ext <<_ACEOF
11750 /* confdefs.h.  */
11751 _ACEOF
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h.  */
11755 #include <stdio.h>
11756 int
11757 main ()
11758 {
11759
11760 #ifndef _snprintf
11761   char *p = (char *) _snprintf;
11762 #endif
11763
11764   ;
11765   return 0;
11766 }
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775   (eval "$ac_compile") 2>conftest.er1
11776   ac_status=$?
11777   grep -v '^ *+' conftest.er1 >conftest.err
11778   rm -f conftest.er1
11779   cat conftest.err >&5
11780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781   (exit $ac_status); } && {
11782          test -z "$ac_c_werror_flag" ||
11783          test ! -s conftest.err
11784        } && test -s conftest.$ac_objext; then
11785   ac_cv_have_decl__snprintf=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790         ac_cv_have_decl__snprintf=no
11791 fi
11792
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 fi
11795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11796 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11797   if test $ac_cv_have_decl__snprintf = yes; then
11798     gt_value=1
11799   else
11800     gt_value=0
11801   fi
11802
11803 cat >>confdefs.h <<_ACEOF
11804 #define HAVE_DECL__SNPRINTF $gt_value
11805 _ACEOF
11806
11807
11808
11809   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11810 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11811 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   cat >conftest.$ac_ext <<_ACEOF
11815 /* confdefs.h.  */
11816 _ACEOF
11817 cat confdefs.h >>conftest.$ac_ext
11818 cat >>conftest.$ac_ext <<_ACEOF
11819 /* end confdefs.h.  */
11820 #include <stdio.h>
11821 int
11822 main ()
11823 {
11824
11825 #ifndef _snwprintf
11826   char *p = (char *) _snwprintf;
11827 #endif
11828
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11837   *) ac_try_echo=$ac_try;;
11838 esac
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840   (eval "$ac_compile") 2>conftest.er1
11841   ac_status=$?
11842   grep -v '^ *+' conftest.er1 >conftest.err
11843   rm -f conftest.er1
11844   cat conftest.err >&5
11845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846   (exit $ac_status); } && {
11847          test -z "$ac_c_werror_flag" ||
11848          test ! -s conftest.err
11849        } && test -s conftest.$ac_objext; then
11850   ac_cv_have_decl__snwprintf=yes
11851 else
11852   echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11854
11855         ac_cv_have_decl__snwprintf=no
11856 fi
11857
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 fi
11860 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11861 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11862   if test $ac_cv_have_decl__snwprintf = yes; then
11863     gt_value=1
11864   else
11865     gt_value=0
11866   fi
11867
11868 cat >>confdefs.h <<_ACEOF
11869 #define HAVE_DECL__SNWPRINTF $gt_value
11870 _ACEOF
11871
11872
11873
11874
11875   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11876 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11877 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h.  */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h.  */
11886 #include <stdio.h>
11887 int
11888 main ()
11889 {
11890
11891 #ifndef feof_unlocked
11892   char *p = (char *) feof_unlocked;
11893 #endif
11894
11895   ;
11896   return 0;
11897 }
11898 _ACEOF
11899 rm -f conftest.$ac_objext
11900 if { (ac_try="$ac_compile"
11901 case "(($ac_try" in
11902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903   *) ac_try_echo=$ac_try;;
11904 esac
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906   (eval "$ac_compile") 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } && {
11913          test -z "$ac_c_werror_flag" ||
11914          test ! -s conftest.err
11915        } && test -s conftest.$ac_objext; then
11916   ac_cv_have_decl_feof_unlocked=yes
11917 else
11918   echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11920
11921         ac_cv_have_decl_feof_unlocked=no
11922 fi
11923
11924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11925 fi
11926 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11927 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11928   if test $ac_cv_have_decl_feof_unlocked = yes; then
11929     gt_value=1
11930   else
11931     gt_value=0
11932   fi
11933
11934 cat >>confdefs.h <<_ACEOF
11935 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11936 _ACEOF
11937
11938
11939
11940   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11941 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11942 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11943   echo $ECHO_N "(cached) $ECHO_C" >&6
11944 else
11945   cat >conftest.$ac_ext <<_ACEOF
11946 /* confdefs.h.  */
11947 _ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h.  */
11951 #include <stdio.h>
11952 int
11953 main ()
11954 {
11955
11956 #ifndef fgets_unlocked
11957   char *p = (char *) fgets_unlocked;
11958 #endif
11959
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext
11965 if { (ac_try="$ac_compile"
11966 case "(($ac_try" in
11967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11968   *) ac_try_echo=$ac_try;;
11969 esac
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971   (eval "$ac_compile") 2>conftest.er1
11972   ac_status=$?
11973   grep -v '^ *+' conftest.er1 >conftest.err
11974   rm -f conftest.er1
11975   cat conftest.err >&5
11976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977   (exit $ac_status); } && {
11978          test -z "$ac_c_werror_flag" ||
11979          test ! -s conftest.err
11980        } && test -s conftest.$ac_objext; then
11981   ac_cv_have_decl_fgets_unlocked=yes
11982 else
11983   echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11985
11986         ac_cv_have_decl_fgets_unlocked=no
11987 fi
11988
11989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990 fi
11991 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11992 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11993   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11994     gt_value=1
11995   else
11996     gt_value=0
11997   fi
11998
11999 cat >>confdefs.h <<_ACEOF
12000 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12001 _ACEOF
12002
12003
12004
12005   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12006 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12007 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 #include <stdio.h>
12017 int
12018 main ()
12019 {
12020
12021 #ifndef getc_unlocked
12022   char *p = (char *) getc_unlocked;
12023 #endif
12024
12025   ;
12026   return 0;
12027 }
12028 _ACEOF
12029 rm -f conftest.$ac_objext
12030 if { (ac_try="$ac_compile"
12031 case "(($ac_try" in
12032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12033   *) ac_try_echo=$ac_try;;
12034 esac
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036   (eval "$ac_compile") 2>conftest.er1
12037   ac_status=$?
12038   grep -v '^ *+' conftest.er1 >conftest.err
12039   rm -f conftest.er1
12040   cat conftest.err >&5
12041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042   (exit $ac_status); } && {
12043          test -z "$ac_c_werror_flag" ||
12044          test ! -s conftest.err
12045        } && test -s conftest.$ac_objext; then
12046   ac_cv_have_decl_getc_unlocked=yes
12047 else
12048   echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12050
12051         ac_cv_have_decl_getc_unlocked=no
12052 fi
12053
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 fi
12056 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12057 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12058   if test $ac_cv_have_decl_getc_unlocked = yes; then
12059     gt_value=1
12060   else
12061     gt_value=0
12062   fi
12063
12064 cat >>confdefs.h <<_ACEOF
12065 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12066 _ACEOF
12067
12068
12069
12070   case $gt_cv_func_printf_posix in
12071     *yes) HAVE_POSIX_PRINTF=1 ;;
12072     *) HAVE_POSIX_PRINTF=0 ;;
12073   esac
12074
12075   if test "$ac_cv_func_asprintf" = yes; then
12076     HAVE_ASPRINTF=1
12077   else
12078     HAVE_ASPRINTF=0
12079   fi
12080
12081   if test "$ac_cv_func_snprintf" = yes; then
12082     HAVE_SNPRINTF=1
12083   else
12084     HAVE_SNPRINTF=0
12085   fi
12086
12087   if test "$ac_cv_func_wprintf" = yes; then
12088     HAVE_WPRINTF=1
12089   else
12090     HAVE_WPRINTF=0
12091   fi
12092
12093
12094
12095
12096
12097
12098
12099           am_save_CPPFLAGS="$CPPFLAGS"
12100
12101   for element in $INCICONV; do
12102     haveit=
12103     for x in $CPPFLAGS; do
12104
12105   acl_save_prefix="$prefix"
12106   prefix="$acl_final_prefix"
12107   acl_save_exec_prefix="$exec_prefix"
12108   exec_prefix="$acl_final_exec_prefix"
12109   eval x=\"$x\"
12110   exec_prefix="$acl_save_exec_prefix"
12111   prefix="$acl_save_prefix"
12112
12113       if test "X$x" = "X$element"; then
12114         haveit=yes
12115         break
12116       fi
12117     done
12118     if test -z "$haveit"; then
12119       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12120     fi
12121   done
12122
12123
12124   { echo "$as_me:$LINENO: checking for iconv" >&5
12125 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12126 if test "${am_cv_func_iconv+set}" = set; then
12127   echo $ECHO_N "(cached) $ECHO_C" >&6
12128 else
12129
12130     am_cv_func_iconv="no, consider installing GNU libiconv"
12131     am_cv_lib_iconv=no
12132     cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 #include <stdlib.h>
12139 #include <iconv.h>
12140 int
12141 main ()
12142 {
12143 iconv_t cd = iconv_open("","");
12144        iconv(cd,NULL,NULL,NULL,NULL);
12145        iconv_close(cd);
12146   ;
12147   return 0;
12148 }
12149 _ACEOF
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (ac_try="$ac_link"
12152 case "(($ac_try" in
12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154   *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157   (eval "$ac_link") 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } && {
12164          test -z "$ac_c_werror_flag" ||
12165          test ! -s conftest.err
12166        } && test -s conftest$ac_exeext &&
12167        $as_test_x conftest$ac_exeext; then
12168   am_cv_func_iconv=yes
12169 else
12170   echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12172
12173
12174 fi
12175
12176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12177       conftest$ac_exeext conftest.$ac_ext
12178     if test "$am_cv_func_iconv" != yes; then
12179       am_save_LIBS="$LIBS"
12180       LIBS="$LIBS $LIBICONV"
12181       cat >conftest.$ac_ext <<_ACEOF
12182 /* confdefs.h.  */
12183 _ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h.  */
12187 #include <stdlib.h>
12188 #include <iconv.h>
12189 int
12190 main ()
12191 {
12192 iconv_t cd = iconv_open("","");
12193          iconv(cd,NULL,NULL,NULL,NULL);
12194          iconv_close(cd);
12195   ;
12196   return 0;
12197 }
12198 _ACEOF
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12203   *) ac_try_echo=$ac_try;;
12204 esac
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206   (eval "$ac_link") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } && {
12213          test -z "$ac_c_werror_flag" ||
12214          test ! -s conftest.err
12215        } && test -s conftest$ac_exeext &&
12216        $as_test_x conftest$ac_exeext; then
12217   am_cv_lib_iconv=yes
12218         am_cv_func_iconv=yes
12219 else
12220   echo "$as_me: failed program was:" >&5
12221 sed 's/^/| /' conftest.$ac_ext >&5
12222
12223
12224 fi
12225
12226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12227       conftest$ac_exeext conftest.$ac_ext
12228       LIBS="$am_save_LIBS"
12229     fi
12230
12231 fi
12232 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12233 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12234   if test "$am_cv_func_iconv" = yes; then
12235
12236 cat >>confdefs.h <<\_ACEOF
12237 #define HAVE_ICONV 1
12238 _ACEOF
12239
12240   fi
12241   if test "$am_cv_lib_iconv" = yes; then
12242     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12243 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12244     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12245 echo "${ECHO_T}$LIBICONV" >&6; }
12246   else
12247             CPPFLAGS="$am_save_CPPFLAGS"
12248     LIBICONV=
12249     LTLIBICONV=
12250   fi
12251
12252
12253
12254   if test "$am_cv_func_iconv" = yes; then
12255     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12256 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12257     if test "${am_cv_proto_iconv+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260
12261       cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h.  */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h.  */
12267
12268 #include <stdlib.h>
12269 #include <iconv.h>
12270 extern
12271 #ifdef __cplusplus
12272 "C"
12273 #endif
12274 #if defined(__STDC__) || defined(__cplusplus)
12275 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12276 #else
12277 size_t iconv();
12278 #endif
12279
12280 int
12281 main ()
12282 {
12283
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 rm -f conftest.$ac_objext
12289 if { (ac_try="$ac_compile"
12290 case "(($ac_try" in
12291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292   *) ac_try_echo=$ac_try;;
12293 esac
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295   (eval "$ac_compile") 2>conftest.er1
12296   ac_status=$?
12297   grep -v '^ *+' conftest.er1 >conftest.err
12298   rm -f conftest.er1
12299   cat conftest.err >&5
12300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } && {
12302          test -z "$ac_c_werror_flag" ||
12303          test ! -s conftest.err
12304        } && test -s conftest.$ac_objext; then
12305   am_cv_proto_iconv_arg1=""
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310         am_cv_proto_iconv_arg1="const"
12311 fi
12312
12313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12314       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);"
12315 fi
12316
12317     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12318     { echo "$as_me:$LINENO: result: ${ac_t:-
12319          }$am_cv_proto_iconv" >&5
12320 echo "${ECHO_T}${ac_t:-
12321          }$am_cv_proto_iconv" >&6; }
12322
12323 cat >>confdefs.h <<_ACEOF
12324 #define ICONV_CONST $am_cv_proto_iconv_arg1
12325 _ACEOF
12326
12327   fi
12328
12329
12330   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12331 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12332 if test "${am_cv_langinfo_codeset+set}" = set; then
12333   echo $ECHO_N "(cached) $ECHO_C" >&6
12334 else
12335   cat >conftest.$ac_ext <<_ACEOF
12336 /* confdefs.h.  */
12337 _ACEOF
12338 cat confdefs.h >>conftest.$ac_ext
12339 cat >>conftest.$ac_ext <<_ACEOF
12340 /* end confdefs.h.  */
12341 #include <langinfo.h>
12342 int
12343 main ()
12344 {
12345 char* cs = nl_langinfo(CODESET);
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (ac_try="$ac_link"
12352 case "(($ac_try" in
12353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12354   *) ac_try_echo=$ac_try;;
12355 esac
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357   (eval "$ac_link") 2>conftest.er1
12358   ac_status=$?
12359   grep -v '^ *+' conftest.er1 >conftest.err
12360   rm -f conftest.er1
12361   cat conftest.err >&5
12362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363   (exit $ac_status); } && {
12364          test -z "$ac_c_werror_flag" ||
12365          test ! -s conftest.err
12366        } && test -s conftest$ac_exeext &&
12367        $as_test_x conftest$ac_exeext; then
12368   am_cv_langinfo_codeset=yes
12369 else
12370   echo "$as_me: failed program was:" >&5
12371 sed 's/^/| /' conftest.$ac_ext >&5
12372
12373         am_cv_langinfo_codeset=no
12374 fi
12375
12376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12377       conftest$ac_exeext conftest.$ac_ext
12378
12379 fi
12380 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12381 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12382   if test $am_cv_langinfo_codeset = yes; then
12383
12384 cat >>confdefs.h <<\_ACEOF
12385 #define HAVE_LANGINFO_CODESET 1
12386 _ACEOF
12387
12388   fi
12389
12390   if test $ac_cv_header_locale_h = yes; then
12391
12392   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12393 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12394 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12395   echo $ECHO_N "(cached) $ECHO_C" >&6
12396 else
12397   cat >conftest.$ac_ext <<_ACEOF
12398 /* confdefs.h.  */
12399 _ACEOF
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h.  */
12403 #include <locale.h>
12404 int
12405 main ()
12406 {
12407 return LC_MESSAGES
12408   ;
12409   return 0;
12410 }
12411 _ACEOF
12412 rm -f conftest.$ac_objext conftest$ac_exeext
12413 if { (ac_try="$ac_link"
12414 case "(($ac_try" in
12415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416   *) ac_try_echo=$ac_try;;
12417 esac
12418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419   (eval "$ac_link") 2>conftest.er1
12420   ac_status=$?
12421   grep -v '^ *+' conftest.er1 >conftest.err
12422   rm -f conftest.er1
12423   cat conftest.err >&5
12424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425   (exit $ac_status); } && {
12426          test -z "$ac_c_werror_flag" ||
12427          test ! -s conftest.err
12428        } && test -s conftest$ac_exeext &&
12429        $as_test_x conftest$ac_exeext; then
12430   gt_cv_val_LC_MESSAGES=yes
12431 else
12432   echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12434
12435         gt_cv_val_LC_MESSAGES=no
12436 fi
12437
12438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12439       conftest$ac_exeext conftest.$ac_ext
12440 fi
12441 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12442 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12443   if test $gt_cv_val_LC_MESSAGES = yes; then
12444
12445 cat >>confdefs.h <<\_ACEOF
12446 #define HAVE_LC_MESSAGES 1
12447 _ACEOF
12448
12449   fi
12450
12451   fi
12452
12453   if test -n "$INTL_MACOSX_LIBS"; then
12454     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12455   fi
12456
12457                       for ac_prog in bison
12458 do
12459   # Extract the first word of "$ac_prog", so it can be a program name with args.
12460 set dummy $ac_prog; ac_word=$2
12461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12463 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   if test -n "$INTLBISON"; then
12467   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12468 else
12469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470 for as_dir in $PATH
12471 do
12472   IFS=$as_save_IFS
12473   test -z "$as_dir" && as_dir=.
12474   for ac_exec_ext in '' $ac_executable_extensions; do
12475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12476     ac_cv_prog_INTLBISON="$ac_prog"
12477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12478     break 2
12479   fi
12480 done
12481 done
12482 IFS=$as_save_IFS
12483
12484 fi
12485 fi
12486 INTLBISON=$ac_cv_prog_INTLBISON
12487 if test -n "$INTLBISON"; then
12488   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12489 echo "${ECHO_T}$INTLBISON" >&6; }
12490 else
12491   { echo "$as_me:$LINENO: result: no" >&5
12492 echo "${ECHO_T}no" >&6; }
12493 fi
12494
12495
12496   test -n "$INTLBISON" && break
12497 done
12498
12499   if test -z "$INTLBISON"; then
12500     ac_verc_fail=yes
12501   else
12502         { echo "$as_me:$LINENO: checking version of bison" >&5
12503 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12504     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12505     case $ac_prog_version in
12506       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12507       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12508          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12509       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12510     esac
12511     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12512 echo "${ECHO_T}$ac_prog_version" >&6; }
12513   fi
12514   if test $ac_verc_fail = yes; then
12515     INTLBISON=:
12516   fi
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12534 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12535 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12536   echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538   gt_save_CPPFLAGS="$CPPFLAGS"
12539      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12540      gt_save_LIBS="$LIBS"
12541      LIBS="$LIBS -framework CoreFoundation"
12542      cat >conftest.$ac_ext <<_ACEOF
12543 /* confdefs.h.  */
12544 _ACEOF
12545 cat confdefs.h >>conftest.$ac_ext
12546 cat >>conftest.$ac_ext <<_ACEOF
12547 /* end confdefs.h.  */
12548 #include <CFPreferences.h>
12549 int
12550 main ()
12551 {
12552 CFPreferencesCopyAppValue(NULL, NULL)
12553   ;
12554   return 0;
12555 }
12556 _ACEOF
12557 rm -f conftest.$ac_objext conftest$ac_exeext
12558 if { (ac_try="$ac_link"
12559 case "(($ac_try" in
12560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12561   *) ac_try_echo=$ac_try;;
12562 esac
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564   (eval "$ac_link") 2>conftest.er1
12565   ac_status=$?
12566   grep -v '^ *+' conftest.er1 >conftest.err
12567   rm -f conftest.er1
12568   cat conftest.err >&5
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); } && {
12571          test -z "$ac_c_werror_flag" ||
12572          test ! -s conftest.err
12573        } && test -s conftest$ac_exeext &&
12574        $as_test_x conftest$ac_exeext; then
12575   gt_cv_func_CFPreferencesCopyAppValue=yes
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580         gt_cv_func_CFPreferencesCopyAppValue=no
12581 fi
12582
12583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12584       conftest$ac_exeext conftest.$ac_ext
12585      CPPFLAGS="$gt_save_CPPFLAGS"
12586      LIBS="$gt_save_LIBS"
12587 fi
12588 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12589 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12590   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12591
12592 cat >>confdefs.h <<\_ACEOF
12593 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12594 _ACEOF
12595
12596   fi
12597     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12598 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12599 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12600   echo $ECHO_N "(cached) $ECHO_C" >&6
12601 else
12602   gt_save_CPPFLAGS="$CPPFLAGS"
12603      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12604      gt_save_LIBS="$LIBS"
12605      LIBS="$LIBS -framework CoreFoundation"
12606      cat >conftest.$ac_ext <<_ACEOF
12607 /* confdefs.h.  */
12608 _ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h.  */
12612 #include <CFLocale.h>
12613 int
12614 main ()
12615 {
12616 CFLocaleCopyCurrent();
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625   *) ac_try_echo=$ac_try;;
12626 esac
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628   (eval "$ac_link") 2>conftest.er1
12629   ac_status=$?
12630   grep -v '^ *+' conftest.er1 >conftest.err
12631   rm -f conftest.er1
12632   cat conftest.err >&5
12633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634   (exit $ac_status); } && {
12635          test -z "$ac_c_werror_flag" ||
12636          test ! -s conftest.err
12637        } && test -s conftest$ac_exeext &&
12638        $as_test_x conftest$ac_exeext; then
12639   gt_cv_func_CFLocaleCopyCurrent=yes
12640 else
12641   echo "$as_me: failed program was:" >&5
12642 sed 's/^/| /' conftest.$ac_ext >&5
12643
12644         gt_cv_func_CFLocaleCopyCurrent=no
12645 fi
12646
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648       conftest$ac_exeext conftest.$ac_ext
12649      CPPFLAGS="$gt_save_CPPFLAGS"
12650      LIBS="$gt_save_LIBS"
12651 fi
12652 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12653 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12654   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12655
12656 cat >>confdefs.h <<\_ACEOF
12657 #define HAVE_CFLOCALECOPYCURRENT 1
12658 _ACEOF
12659
12660   fi
12661   INTL_MACOSX_LIBS=
12662   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12663     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12664   fi
12665
12666
12667
12668
12669   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12670 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12671     # Check whether --enable-nls was given.
12672 if test "${enable_nls+set}" = set; then
12673   enableval=$enable_nls; USE_NLS=$enableval
12674 else
12675   USE_NLS=yes
12676 fi
12677
12678   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12679 echo "${ECHO_T}$USE_NLS" >&6; }
12680
12681
12682
12683
12684     BUILD_INCLUDED_LIBINTL=no
12685     USE_INCLUDED_LIBINTL=no
12686
12687   LIBINTL=
12688   LTLIBINTL=
12689   POSUB=
12690
12691     if test "$USE_NLS" = "yes"; then
12692     gt_use_preinstalled_gnugettext=no
12693
12694       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12695 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12696
12697 # Check whether --with-included-gettext was given.
12698 if test "${with_included_gettext+set}" = set; then
12699   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12700 else
12701   nls_cv_force_use_gnu_gettext=no
12702 fi
12703
12704       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12705 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12706
12707       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12708       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12709
12710
12711
12712
12713
12714
12715         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12716 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12717 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12718   echo $ECHO_N "(cached) $ECHO_C" >&6
12719 else
12720   cat >conftest.$ac_ext <<_ACEOF
12721 /* confdefs.h.  */
12722 _ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h.  */
12726 #include <libintl.h>
12727 extern int _nl_msg_cat_cntr;
12728 extern int *_nl_domain_bindings;
12729 int
12730 main ()
12731 {
12732 bindtextdomain ("", "");
12733 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_link") 2>conftest.er1
12746   ac_status=$?
12747   grep -v '^ *+' conftest.er1 >conftest.err
12748   rm -f conftest.er1
12749   cat conftest.err >&5
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } && {
12752          test -z "$ac_c_werror_flag" ||
12753          test ! -s conftest.err
12754        } && test -s conftest$ac_exeext &&
12755        $as_test_x conftest$ac_exeext; then
12756   gt_cv_func_gnugettext1_libc=yes
12757 else
12758   echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12760
12761         gt_cv_func_gnugettext1_libc=no
12762 fi
12763
12764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12765       conftest$ac_exeext conftest.$ac_ext
12766 fi
12767 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12768 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12769
12770         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12771
12772
12773
12774     use_additional=yes
12775
12776   acl_save_prefix="$prefix"
12777   prefix="$acl_final_prefix"
12778   acl_save_exec_prefix="$exec_prefix"
12779   exec_prefix="$acl_final_exec_prefix"
12780
12781     eval additional_includedir=\"$includedir\"
12782     eval additional_libdir=\"$libdir\"
12783
12784   exec_prefix="$acl_save_exec_prefix"
12785   prefix="$acl_save_prefix"
12786
12787
12788 # Check whether --with-libintl-prefix was given.
12789 if test "${with_libintl_prefix+set}" = set; then
12790   withval=$with_libintl_prefix;
12791     if test "X$withval" = "Xno"; then
12792       use_additional=no
12793     else
12794       if test "X$withval" = "X"; then
12795
12796   acl_save_prefix="$prefix"
12797   prefix="$acl_final_prefix"
12798   acl_save_exec_prefix="$exec_prefix"
12799   exec_prefix="$acl_final_exec_prefix"
12800
12801           eval additional_includedir=\"$includedir\"
12802           eval additional_libdir=\"$libdir\"
12803
12804   exec_prefix="$acl_save_exec_prefix"
12805   prefix="$acl_save_prefix"
12806
12807       else
12808         additional_includedir="$withval/include"
12809         additional_libdir="$withval/lib"
12810       fi
12811     fi
12812
12813 fi
12814
12815       LIBINTL=
12816   LTLIBINTL=
12817   INCINTL=
12818   rpathdirs=
12819   ltrpathdirs=
12820   names_already_handled=
12821   names_next_round='intl '
12822   while test -n "$names_next_round"; do
12823     names_this_round="$names_next_round"
12824     names_next_round=
12825     for name in $names_this_round; do
12826       already_handled=
12827       for n in $names_already_handled; do
12828         if test "$n" = "$name"; then
12829           already_handled=yes
12830           break
12831         fi
12832       done
12833       if test -z "$already_handled"; then
12834         names_already_handled="$names_already_handled $name"
12835                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12836         eval value=\"\$HAVE_LIB$uppername\"
12837         if test -n "$value"; then
12838           if test "$value" = yes; then
12839             eval value=\"\$LIB$uppername\"
12840             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12841             eval value=\"\$LTLIB$uppername\"
12842             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12843           else
12844                                     :
12845           fi
12846         else
12847                               found_dir=
12848           found_la=
12849           found_so=
12850           found_a=
12851           if test $use_additional = yes; then
12852             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12853               found_dir="$additional_libdir"
12854               found_so="$additional_libdir/lib$name.$shlibext"
12855               if test -f "$additional_libdir/lib$name.la"; then
12856                 found_la="$additional_libdir/lib$name.la"
12857               fi
12858             else
12859               if test -f "$additional_libdir/lib$name.$libext"; then
12860                 found_dir="$additional_libdir"
12861                 found_a="$additional_libdir/lib$name.$libext"
12862                 if test -f "$additional_libdir/lib$name.la"; then
12863                   found_la="$additional_libdir/lib$name.la"
12864                 fi
12865               fi
12866             fi
12867           fi
12868           if test "X$found_dir" = "X"; then
12869             for x in $LDFLAGS $LTLIBINTL; do
12870
12871   acl_save_prefix="$prefix"
12872   prefix="$acl_final_prefix"
12873   acl_save_exec_prefix="$exec_prefix"
12874   exec_prefix="$acl_final_exec_prefix"
12875   eval x=\"$x\"
12876   exec_prefix="$acl_save_exec_prefix"
12877   prefix="$acl_save_prefix"
12878
12879               case "$x" in
12880                 -L*)
12881                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12882                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12883                     found_dir="$dir"
12884                     found_so="$dir/lib$name.$shlibext"
12885                     if test -f "$dir/lib$name.la"; then
12886                       found_la="$dir/lib$name.la"
12887                     fi
12888                   else
12889                     if test -f "$dir/lib$name.$libext"; then
12890                       found_dir="$dir"
12891                       found_a="$dir/lib$name.$libext"
12892                       if test -f "$dir/lib$name.la"; then
12893                         found_la="$dir/lib$name.la"
12894                       fi
12895                     fi
12896                   fi
12897                   ;;
12898               esac
12899               if test "X$found_dir" != "X"; then
12900                 break
12901               fi
12902             done
12903           fi
12904           if test "X$found_dir" != "X"; then
12905                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12906             if test "X$found_so" != "X"; then
12907                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12908                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12909               else
12910                                                                                 haveit=
12911                 for x in $ltrpathdirs; do
12912                   if test "X$x" = "X$found_dir"; then
12913                     haveit=yes
12914                     break
12915                   fi
12916                 done
12917                 if test -z "$haveit"; then
12918                   ltrpathdirs="$ltrpathdirs $found_dir"
12919                 fi
12920                                 if test "$hardcode_direct" = yes; then
12921                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12922                 else
12923                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12924                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12925                                                             haveit=
12926                     for x in $rpathdirs; do
12927                       if test "X$x" = "X$found_dir"; then
12928                         haveit=yes
12929                         break
12930                       fi
12931                     done
12932                     if test -z "$haveit"; then
12933                       rpathdirs="$rpathdirs $found_dir"
12934                     fi
12935                   else
12936                                                                                 haveit=
12937                     for x in $LDFLAGS $LIBINTL; do
12938
12939   acl_save_prefix="$prefix"
12940   prefix="$acl_final_prefix"
12941   acl_save_exec_prefix="$exec_prefix"
12942   exec_prefix="$acl_final_exec_prefix"
12943   eval x=\"$x\"
12944   exec_prefix="$acl_save_exec_prefix"
12945   prefix="$acl_save_prefix"
12946
12947                       if test "X$x" = "X-L$found_dir"; then
12948                         haveit=yes
12949                         break
12950                       fi
12951                     done
12952                     if test -z "$haveit"; then
12953                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12954                     fi
12955                     if test "$hardcode_minus_L" != no; then
12956                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12957                     else
12958                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12959                     fi
12960                   fi
12961                 fi
12962               fi
12963             else
12964               if test "X$found_a" != "X"; then
12965                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12966               else
12967                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12968               fi
12969             fi
12970                         additional_includedir=
12971             case "$found_dir" in
12972               */lib | */lib/)
12973                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12974                 additional_includedir="$basedir/include"
12975                 ;;
12976             esac
12977             if test "X$additional_includedir" != "X"; then
12978                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12979                 haveit=
12980                 if test "X$additional_includedir" = "X/usr/local/include"; then
12981                   if test -n "$GCC"; then
12982                     case $host_os in
12983                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12984                     esac
12985                   fi
12986                 fi
12987                 if test -z "$haveit"; then
12988                   for x in $CPPFLAGS $INCINTL; do
12989
12990   acl_save_prefix="$prefix"
12991   prefix="$acl_final_prefix"
12992   acl_save_exec_prefix="$exec_prefix"
12993   exec_prefix="$acl_final_exec_prefix"
12994   eval x=\"$x\"
12995   exec_prefix="$acl_save_exec_prefix"
12996   prefix="$acl_save_prefix"
12997
12998                     if test "X$x" = "X-I$additional_includedir"; then
12999                       haveit=yes
13000                       break
13001                     fi
13002                   done
13003                   if test -z "$haveit"; then
13004                     if test -d "$additional_includedir"; then
13005                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13006                     fi
13007                   fi
13008                 fi
13009               fi
13010             fi
13011                         if test -n "$found_la"; then
13012                                                         save_libdir="$libdir"
13013               case "$found_la" in
13014                 */* | *\\*) . "$found_la" ;;
13015                 *) . "./$found_la" ;;
13016               esac
13017               libdir="$save_libdir"
13018                             for dep in $dependency_libs; do
13019                 case "$dep" in
13020                   -L*)
13021                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13022                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13023                       haveit=
13024                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13025                         if test -n "$GCC"; then
13026                           case $host_os in
13027                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13028                           esac
13029                         fi
13030                       fi
13031                       if test -z "$haveit"; then
13032                         haveit=
13033                         for x in $LDFLAGS $LIBINTL; do
13034
13035   acl_save_prefix="$prefix"
13036   prefix="$acl_final_prefix"
13037   acl_save_exec_prefix="$exec_prefix"
13038   exec_prefix="$acl_final_exec_prefix"
13039   eval x=\"$x\"
13040   exec_prefix="$acl_save_exec_prefix"
13041   prefix="$acl_save_prefix"
13042
13043                           if test "X$x" = "X-L$additional_libdir"; then
13044                             haveit=yes
13045                             break
13046                           fi
13047                         done
13048                         if test -z "$haveit"; then
13049                           if test -d "$additional_libdir"; then
13050                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13051                           fi
13052                         fi
13053                         haveit=
13054                         for x in $LDFLAGS $LTLIBINTL; do
13055
13056   acl_save_prefix="$prefix"
13057   prefix="$acl_final_prefix"
13058   acl_save_exec_prefix="$exec_prefix"
13059   exec_prefix="$acl_final_exec_prefix"
13060   eval x=\"$x\"
13061   exec_prefix="$acl_save_exec_prefix"
13062   prefix="$acl_save_prefix"
13063
13064                           if test "X$x" = "X-L$additional_libdir"; then
13065                             haveit=yes
13066                             break
13067                           fi
13068                         done
13069                         if test -z "$haveit"; then
13070                           if test -d "$additional_libdir"; then
13071                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13072                           fi
13073                         fi
13074                       fi
13075                     fi
13076                     ;;
13077                   -R*)
13078                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13079                     if test "$enable_rpath" != no; then
13080                                                                   haveit=
13081                       for x in $rpathdirs; do
13082                         if test "X$x" = "X$dir"; then
13083                           haveit=yes
13084                           break
13085                         fi
13086                       done
13087                       if test -z "$haveit"; then
13088                         rpathdirs="$rpathdirs $dir"
13089                       fi
13090                                                                   haveit=
13091                       for x in $ltrpathdirs; do
13092                         if test "X$x" = "X$dir"; then
13093                           haveit=yes
13094                           break
13095                         fi
13096                       done
13097                       if test -z "$haveit"; then
13098                         ltrpathdirs="$ltrpathdirs $dir"
13099                       fi
13100                     fi
13101                     ;;
13102                   -l*)
13103                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13104                     ;;
13105                   *.la)
13106                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13107                     ;;
13108                   *)
13109                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13110                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13111                     ;;
13112                 esac
13113               done
13114             fi
13115           else
13116                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13117             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13118           fi
13119         fi
13120       fi
13121     done
13122   done
13123   if test "X$rpathdirs" != "X"; then
13124     if test -n "$hardcode_libdir_separator"; then
13125                         alldirs=
13126       for found_dir in $rpathdirs; do
13127         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13128       done
13129             acl_save_libdir="$libdir"
13130       libdir="$alldirs"
13131       eval flag=\"$hardcode_libdir_flag_spec\"
13132       libdir="$acl_save_libdir"
13133       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13134     else
13135             for found_dir in $rpathdirs; do
13136         acl_save_libdir="$libdir"
13137         libdir="$found_dir"
13138         eval flag=\"$hardcode_libdir_flag_spec\"
13139         libdir="$acl_save_libdir"
13140         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13141       done
13142     fi
13143   fi
13144   if test "X$ltrpathdirs" != "X"; then
13145             for found_dir in $ltrpathdirs; do
13146       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13147     done
13148   fi
13149
13150           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13151 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13152 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13153   echo $ECHO_N "(cached) $ECHO_C" >&6
13154 else
13155   gt_save_CPPFLAGS="$CPPFLAGS"
13156             CPPFLAGS="$CPPFLAGS $INCINTL"
13157             gt_save_LIBS="$LIBS"
13158             LIBS="$LIBS $LIBINTL"
13159                         cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h.  */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h.  */
13165 #include <libintl.h>
13166 extern int _nl_msg_cat_cntr;
13167 extern
13168 #ifdef __cplusplus
13169 "C"
13170 #endif
13171 const char *_nl_expand_alias (const char *);
13172 int
13173 main ()
13174 {
13175 bindtextdomain ("", "");
13176 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13177   ;
13178   return 0;
13179 }
13180 _ACEOF
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185   *) ac_try_echo=$ac_try;;
13186 esac
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188   (eval "$ac_link") 2>conftest.er1
13189   ac_status=$?
13190   grep -v '^ *+' conftest.er1 >conftest.err
13191   rm -f conftest.er1
13192   cat conftest.err >&5
13193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194   (exit $ac_status); } && {
13195          test -z "$ac_c_werror_flag" ||
13196          test ! -s conftest.err
13197        } && test -s conftest$ac_exeext &&
13198        $as_test_x conftest$ac_exeext; then
13199   gt_cv_func_gnugettext1_libintl=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204         gt_cv_func_gnugettext1_libintl=no
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13208       conftest$ac_exeext conftest.$ac_ext
13209                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13210               LIBS="$LIBS $LIBICONV"
13211               cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217 #include <libintl.h>
13218 extern int _nl_msg_cat_cntr;
13219 extern
13220 #ifdef __cplusplus
13221 "C"
13222 #endif
13223 const char *_nl_expand_alias (const char *);
13224 int
13225 main ()
13226 {
13227 bindtextdomain ("", "");
13228 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (ac_try="$ac_link"
13235 case "(($ac_try" in
13236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237   *) ac_try_echo=$ac_try;;
13238 esac
13239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13240   (eval "$ac_link") 2>conftest.er1
13241   ac_status=$?
13242   grep -v '^ *+' conftest.er1 >conftest.err
13243   rm -f conftest.er1
13244   cat conftest.err >&5
13245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246   (exit $ac_status); } && {
13247          test -z "$ac_c_werror_flag" ||
13248          test ! -s conftest.err
13249        } && test -s conftest$ac_exeext &&
13250        $as_test_x conftest$ac_exeext; then
13251   LIBINTL="$LIBINTL $LIBICONV"
13252                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13253                 gt_cv_func_gnugettext1_libintl=yes
13254
13255 else
13256   echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13258
13259
13260 fi
13261
13262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13263       conftest$ac_exeext conftest.$ac_ext
13264             fi
13265             CPPFLAGS="$gt_save_CPPFLAGS"
13266             LIBS="$gt_save_LIBS"
13267 fi
13268 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13269 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13270         fi
13271
13272                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13273            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13274                 && test "$PACKAGE" != gettext-runtime \
13275                 && test "$PACKAGE" != gettext-tools; }; then
13276           gt_use_preinstalled_gnugettext=yes
13277         else
13278                     LIBINTL=
13279           LTLIBINTL=
13280           INCINTL=
13281         fi
13282
13283
13284         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13285                               nls_cv_use_gnu_gettext=yes
13286         fi
13287       fi
13288
13289       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13290                 BUILD_INCLUDED_LIBINTL=yes
13291         USE_INCLUDED_LIBINTL=yes
13292         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13293         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13294         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13295       fi
13296
13297       CATOBJEXT=
13298       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13299          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13300                 CATOBJEXT=.gmo
13301       fi
13302
13303
13304     if test -n "$INTL_MACOSX_LIBS"; then
13305       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13306          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13307                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13308         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13309       fi
13310     fi
13311
13312     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13313        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13314
13315 cat >>confdefs.h <<\_ACEOF
13316 #define ENABLE_NLS 1
13317 _ACEOF
13318
13319     else
13320       USE_NLS=no
13321     fi
13322   fi
13323
13324   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13325 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13326   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13327 echo "${ECHO_T}$USE_NLS" >&6; }
13328   if test "$USE_NLS" = "yes"; then
13329     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13330 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13331     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13332       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13333         gt_source="external libintl"
13334       else
13335         gt_source="libc"
13336       fi
13337     else
13338       gt_source="included intl directory"
13339     fi
13340     { echo "$as_me:$LINENO: result: $gt_source" >&5
13341 echo "${ECHO_T}$gt_source" >&6; }
13342   fi
13343
13344   if test "$USE_NLS" = "yes"; then
13345
13346     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13347       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13348         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13349 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13350         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13351 echo "${ECHO_T}$LIBINTL" >&6; }
13352
13353   for element in $INCINTL; do
13354     haveit=
13355     for x in $CPPFLAGS; do
13356
13357   acl_save_prefix="$prefix"
13358   prefix="$acl_final_prefix"
13359   acl_save_exec_prefix="$exec_prefix"
13360   exec_prefix="$acl_final_exec_prefix"
13361   eval x=\"$x\"
13362   exec_prefix="$acl_save_exec_prefix"
13363   prefix="$acl_save_prefix"
13364
13365       if test "X$x" = "X$element"; then
13366         haveit=yes
13367         break
13368       fi
13369     done
13370     if test -z "$haveit"; then
13371       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13372     fi
13373   done
13374
13375       fi
13376
13377
13378 cat >>confdefs.h <<\_ACEOF
13379 #define HAVE_GETTEXT 1
13380 _ACEOF
13381
13382
13383 cat >>confdefs.h <<\_ACEOF
13384 #define HAVE_DCGETTEXT 1
13385 _ACEOF
13386
13387     fi
13388
13389         POSUB=po
13390   fi
13391
13392
13393             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13394       BUILD_INCLUDED_LIBINTL=yes
13395     fi
13396
13397
13398
13399
13400
13401         nls_cv_header_intl=
13402     nls_cv_header_libgt=
13403
13404         DATADIRNAME=share
13405
13406
13407         INSTOBJEXT=.mo
13408
13409
13410         GENCAT=gencat
13411
13412
13413         INTLOBJS=
13414     if test "$USE_INCLUDED_LIBINTL" = yes; then
13415       INTLOBJS="\$(GETTOBJS)"
13416     fi
13417
13418
13419         INTL_LIBTOOL_SUFFIX_PREFIX=
13420
13421
13422
13423     INTLLIBS="$LIBINTL"
13424
13425
13426
13427
13428
13429
13430 fi
13431
13432 support_mysql=no
13433 support_sqlite=no
13434 support_sqlite3=no
13435 support_postgresql=no
13436 support_dbi=no
13437 support_smartalloc=yes
13438 support_readline=yes
13439 support_conio=yes
13440 support_gnome=no
13441 support_bat=no
13442 support_wx_console=no
13443 support_tls=no
13444 support_crypto=no
13445 gnome_version=
13446 wx_version=
13447 support_static_tools=no
13448 support_static_fd=no
13449 support_static_sd=no
13450 support_static_dir=no
13451 support_static_cons=no
13452 support_python=no
13453 build_client_only=no
13454 build_dird=yes
13455 build_stored=yes
13456 cats=
13457 db_type=Internal
13458 DB_TYPE=bdb
13459
13460
13461 # -------------------------------------------
13462 # gnome (default off)
13463 # -------------------------------------------
13464 # Check whether --enable-gnome was given.
13465 if test "${enable_gnome+set}" = set; then
13466   enableval=$enable_gnome; if test x$enableval = xyes; then
13467     support_gnome=yes
13468   fi
13469 fi
13470
13471
13472 GNOME_DIR=
13473 if test x$support_gnome = xyes; then
13474   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13475   pkg=$?
13476   if test $pkg = 0; then
13477      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13478      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13479      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13480      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13481
13482
13483
13484
13485      GNOME_DIR=src/gnome2-console
13486      gnome_version="Version 2.x"
13487   else
13488      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13489 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13490    { (exit 1); exit 1; }; }
13491   fi
13492 fi
13493
13494
13495 # -------------------------------------------
13496 # bat (default off)
13497 # -------------------------------------------
13498 # Check whether --enable-bat was given.
13499 if test "${enable_bat+set}" = set; then
13500   enableval=$enable_bat; if test x$enableval = xyes; then
13501
13502 cat >>confdefs.h <<\_ACEOF
13503 #define HAVE_BAT 1
13504 _ACEOF
13505
13506     support_bat=yes
13507   fi
13508 fi
13509
13510
13511 BAT_DIR=
13512 if test x$support_bat = xyes; then
13513   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13514   pkg=$?
13515   if test $pkg = 0; then
13516      BAT_DIR=src/qt-console
13517   else
13518      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13519 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13520    { (exit 1); exit 1; }; }
13521   fi
13522 fi
13523
13524 #
13525 #  If bat is enabled, we need the qwt library
13526 got_qwt=no
13527 QWT_INC=
13528 QWT_LDFLAGS=
13529 QWT_LIB=
13530 QWT=
13531 no_qwt=no
13532 if test x$support_bat = xyes; then
13533    { echo "$as_me:$LINENO: checking for qwt support" >&5
13534 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13535
13536 # Check whether --with-qwt was given.
13537 if test "${with_qwt+set}" = set; then
13538   withval=$with_qwt;
13539         case "$with_qwt" in
13540         no)
13541            no_qwt=yes
13542           ;;
13543         yes|*)
13544           if test -f ${with_qwt}/include/qwt.h; then
13545              QWT_INC="${with_qwt}/include"
13546              QWT_LDFLAGS="-L${with_qwt}/lib"
13547              QWT_LIB="-lqwt"
13548              QWT="qwt"
13549           fi
13550           ;;
13551         esac
13552
13553
13554 fi
13555
13556 #
13557 # Search in standard places, or --with-qwt not specified
13558 #
13559    if test $no_qwt = no; then
13560     if test x$QWT_INC = x; then
13561       for root in /usr /usr/local; do
13562          for ver in qwt qwt5 qwt-qt4; do
13563             if test -f ${root}/include/${ver}/qwt.h; then
13564                QWT_INC="${root}/include/${ver}"
13565                if test -d ${root}/lib64/; then
13566                   QWT_LDFLAGS="-L${root}/lib64"
13567                else
13568                   QWT_LDFLAGS="-L${root}/lib"
13569                fi
13570                QWT_LIB="-lqwt"
13571                QWT="qwt"
13572                got_qwt=yes
13573                break;
13574             fi
13575          done
13576       done
13577     fi
13578    fi
13579    if test x$QWT_INC = x; then
13580       { echo "$as_me:$LINENO: result: no" >&5
13581 echo "${ECHO_T}no" >&6; }
13582    else
13583
13584 cat >>confdefs.h <<\_ACEOF
13585 #define HAVE_QWT 1
13586 _ACEOF
13587
13588       { echo "$as_me:$LINENO: result: yes" >&5
13589 echo "${ECHO_T}yes" >&6; }
13590    fi
13591 fi
13592
13593
13594
13595
13596
13597
13598
13599
13600 # -------------------------------------------
13601 # bwx-console (default off)
13602 # -------------------------------------------
13603 # Check whether --enable-bwx-console was given.
13604 if test "${enable_bwx_console+set}" = set; then
13605   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13606     support_wx_console=yes
13607   fi
13608 fi
13609
13610
13611 WX_DIR=
13612 if test x$support_wx_console = xyes; then
13613   abc=`$WXCONFIG $WXFLAGS --cppflags`
13614   pkg=$?
13615   if test $pkg = 0; then
13616      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13617      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13618      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13619
13620
13621
13622      WX_DIR=src/wx-console
13623   else
13624      echo " "
13625      echo "wx-config program not found. bwx-console disabled."
13626      echo " "
13627      support_wx_console=no
13628   fi
13629 fi
13630
13631
13632
13633 # -------------------------------------------
13634 # tray-monitor (default off)
13635 # -------------------------------------------
13636 # Check whether --enable-tray-monitor was given.
13637 if test "${enable_tray_monitor+set}" = set; then
13638   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13639     support_tray_monitor=yes
13640   fi
13641 fi
13642
13643
13644 TRAY_MONITOR_DIR=
13645 if test x$support_tray_monitor = xyes; then
13646   abc=`$PKGCONFIG --exists gtk+-2.0`
13647   pkg=$?
13648   if test $pkg = 0; then
13649      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13650      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13651
13652
13653      TRAY_MONITOR_DIR=src/tray-monitor
13654      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13655      pkg=$?
13656      if test $pkg = 0; then
13657
13658 cat >>confdefs.h <<\_ACEOF
13659 #define HAVE_GTK_2_4 1
13660 _ACEOF
13661
13662      fi
13663   fi
13664 fi
13665
13666
13667 # -------------------------------------------
13668 # smartalloc (default off)
13669 # -------------------------------------------
13670 # Check whether --enable-smartalloc was given.
13671 if test "${enable_smartalloc+set}" = set; then
13672   enableval=$enable_smartalloc; if test x$enableval = xno; then
13673     support_smartalloc=no
13674   fi
13675 fi
13676
13677
13678 if test x$support_smartalloc = xyes; then
13679
13680 cat >>confdefs.h <<\_ACEOF
13681 #define SMARTALLOC 1
13682 _ACEOF
13683
13684 fi
13685
13686 # -------------------------------------------
13687 # static-tools (default off)
13688 # -------------------------------------------
13689 # Check whether --enable-static-tools was given.
13690 if test "${enable_static_tools+set}" = set; then
13691   enableval=$enable_static_tools; if test x$enableval = xyes; then
13692      support_static_tools=yes
13693    fi
13694 fi
13695
13696
13697 TTOOL_LDFLAGS=
13698 if test x$support_static_tools = xyes; then
13699    TTOOL_LDFLAGS="-static"
13700 fi
13701
13702
13703 # -------------------------------------------
13704 # static-fd    (default off)
13705 # -------------------------------------------
13706 # Check whether --enable-static-fd was given.
13707 if test "${enable_static_fd+set}" = set; then
13708   enableval=$enable_static_fd; if test x$enableval = xyes; then
13709      support_static_fd=yes
13710    fi
13711 fi
13712
13713
13714 STATIC_FD=
13715 if test x$support_static_fd = xyes; then
13716    STATIC_FD="static-bacula-fd"
13717 fi
13718
13719
13720 # -------------------------------------------
13721 # static-sd    (default off)
13722 # -------------------------------------------
13723 # Check whether --enable-static-sd was given.
13724 if test "${enable_static_sd+set}" = set; then
13725   enableval=$enable_static_sd; if test x$enableval = xyes; then
13726      support_static_sd=yes
13727    fi
13728 fi
13729
13730
13731 STATIC_SD=
13732 if test x$support_static_sd = xyes; then
13733    STATIC_SD="static-bacula-sd"
13734 fi
13735
13736
13737 # -------------------------------------------
13738 # static-dir   (default off)
13739 # -------------------------------------------
13740 # Check whether --enable-static-dir was given.
13741 if test "${enable_static_dir+set}" = set; then
13742   enableval=$enable_static_dir; if test x$enableval = xyes; then
13743      support_static_dir=yes
13744    fi
13745 fi
13746
13747
13748 STATIC_DIR=
13749 if test x$support_static_dir = xyes; then
13750    STATIC_DIR="static-bacula-dir"
13751 fi
13752
13753
13754 # -------------------------------------------
13755 # static-cons  (default off)
13756 # -------------------------------------------
13757 # Check whether --enable-static-cons was given.
13758 if test "${enable_static_cons+set}" = set; then
13759   enableval=$enable_static_cons; if test x$enableval = xyes; then
13760      support_static_cons=yes
13761    fi
13762 fi
13763
13764
13765 STATIC_CONS=
13766 STATIC_GNOME_CONS=
13767 STATIC_WX_CONS=
13768 if test x$support_static_cons = xyes; then
13769    STATIC_CONS="static-bconsole"
13770    STATIC_GNOME_CONS="static-bgnome-console"
13771    STATIC_WX_CONS="static-bwx-console"
13772 fi
13773
13774
13775
13776
13777 # -------------------------------------------
13778 # client_only  (default off)
13779 # -------------------------------------------
13780 # Check whether --enable-client-only was given.
13781 if test "${enable_client_only+set}" = set; then
13782   enableval=$enable_client_only; if test x$enableval = xyes; then
13783       build_client_only=yes
13784       db_type=None
13785       DB_TYPE=none
13786    fi
13787 fi
13788
13789 if test x$build_client_only = xno; then
13790    ALL_DIRS="subdirs"
13791 else
13792    ALL_DIRS=""
13793 fi
13794
13795
13796 # -------------------------------------------
13797 # director  (default on)
13798 # -------------------------------------------
13799 # Check whether --enable-build-dird was given.
13800 if test "${enable_build_dird+set}" = set; then
13801   enableval=$enable_build_dird; if test x$enableval = xno; then
13802       build_dird=no
13803    fi
13804 fi
13805
13806 if test x$build_dird = xyes; then
13807    DIRD_DIR="src/dird"
13808    DIR_TOOLS="DIRTOOLS"
13809 else
13810    DIRD_DIR=""
13811    DIR_TOOLS="NODIRTOOLS"
13812 fi
13813
13814
13815
13816 # -------------------------------------------
13817 # stored  (default on)
13818 # -------------------------------------------
13819 # Check whether --enable-build-stored was given.
13820 if test "${enable_build_stored+set}" = set; then
13821   enableval=$enable_build_stored; if test x$enableval = xno; then
13822       build_stored=no
13823    fi
13824 fi
13825
13826 if test x$build_stored = xyes; then
13827    STORED_DIR="src/stored"
13828 else
13829    STORED_DIR=""
13830 fi
13831
13832
13833 # ---------------------------------------------------
13834 # Check for conio (Bacula readline substitute)(
13835 # ---------------------------------------------------
13836 # this allows you to turn it completely off
13837 # Check whether --enable-conio was given.
13838 if test "${enable_conio+set}" = set; then
13839   enableval=$enable_conio; if test x$enableval = xno; then
13840      support_conio=no
13841   fi
13842
13843 fi
13844
13845
13846
13847 # ---------------------------------------------------
13848 # Check for IPv6 support
13849 # ---------------------------------------------------
13850 # this allows you to turn it completely off
13851 support_ipv6=yes
13852 # Check whether --enable-ipv6 was given.
13853 if test "${enable_ipv6+set}" = set; then
13854   enableval=$enable_ipv6; if test x$enableval = xno; then
13855      support_ipv6=no
13856   fi
13857
13858 fi
13859
13860
13861 if test x$support_ipv6 = xyes; then
13862     cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h.  */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h.  */
13868  #include <sys/types.h>
13869 #include <sys/socket.h>
13870 #include <netinet/in.h>
13871 int
13872 main ()
13873 {
13874 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13875   ;
13876   return 0;
13877 }
13878 _ACEOF
13879 rm -f conftest.$ac_objext conftest$ac_exeext
13880 if { (ac_try="$ac_link"
13881 case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_link") 2>conftest.er1
13887   ac_status=$?
13888   grep -v '^ *+' conftest.er1 >conftest.err
13889   rm -f conftest.er1
13890   cat conftest.err >&5
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } && {
13893          test -z "$ac_c_werror_flag" ||
13894          test ! -s conftest.err
13895        } && test -s conftest$ac_exeext &&
13896        $as_test_x conftest$ac_exeext; then
13897   support_ipv6=yes
13898 else
13899   echo "$as_me: failed program was:" >&5
13900 sed 's/^/| /' conftest.$ac_ext >&5
13901
13902         support_ipv6=no
13903 fi
13904
13905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13906       conftest$ac_exeext conftest.$ac_ext
13907 fi
13908
13909 if test x$support_ipv6 = xyes; then
13910
13911 cat >>confdefs.h <<\_ACEOF
13912 #define HAVE_IPV6 1
13913 _ACEOF
13914
13915 fi
13916
13917
13918
13919 got_conio="no"
13920 if test x$support_conio = xyes; then
13921    if test "${ac_cv_header_termcap_h+set}" = set; then
13922   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13923 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_termcap_h+set}" = set; then
13925   echo $ECHO_N "(cached) $ECHO_C" >&6
13926 fi
13927 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13928 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13929 else
13930   # Is the header compilable?
13931 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13932 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13933 cat >conftest.$ac_ext <<_ACEOF
13934 /* confdefs.h.  */
13935 _ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h.  */
13939 $ac_includes_default
13940 #include <termcap.h>
13941 _ACEOF
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946   *) ac_try_echo=$ac_try;;
13947 esac
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949   (eval "$ac_compile") 2>conftest.er1
13950   ac_status=$?
13951   grep -v '^ *+' conftest.er1 >conftest.err
13952   rm -f conftest.er1
13953   cat conftest.err >&5
13954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955   (exit $ac_status); } && {
13956          test -z "$ac_c_werror_flag" ||
13957          test ! -s conftest.err
13958        } && test -s conftest.$ac_objext; then
13959   ac_header_compiler=yes
13960 else
13961   echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13963
13964         ac_header_compiler=no
13965 fi
13966
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969 echo "${ECHO_T}$ac_header_compiler" >&6; }
13970
13971 # Is the header present?
13972 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13973 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h.  */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h.  */
13980 #include <termcap.h>
13981 _ACEOF
13982 if { (ac_try="$ac_cpp conftest.$ac_ext"
13983 case "(($ac_try" in
13984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985   *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13989   ac_status=$?
13990   grep -v '^ *+' conftest.er1 >conftest.err
13991   rm -f conftest.er1
13992   cat conftest.err >&5
13993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994   (exit $ac_status); } >/dev/null && {
13995          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13996          test ! -s conftest.err
13997        }; then
13998   ac_header_preproc=yes
13999 else
14000   echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14002
14003   ac_header_preproc=no
14004 fi
14005
14006 rm -f conftest.err conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6; }
14009
14010 # So?  What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14012   yes:no: )
14013     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14016 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14017     ac_header_preproc=yes
14018     ;;
14019   no:yes:* )
14020     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14026     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14028     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14029 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14030     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14032
14033     ;;
14034 esac
14035 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14036 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_termcap_h+set}" = set; then
14038   echo $ECHO_N "(cached) $ECHO_C" >&6
14039 else
14040   ac_cv_header_termcap_h=$ac_header_preproc
14041 fi
14042 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14043 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14044
14045 fi
14046 if test $ac_cv_header_termcap_h = yes; then
14047    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14048 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14049 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14050   echo $ECHO_N "(cached) $ECHO_C" >&6
14051 else
14052   ac_check_lib_save_LIBS=$LIBS
14053 LIBS="-ltermcap  $LIBS"
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h.  */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h.  */
14060
14061 /* Override any GCC internal prototype to avoid an error.
14062    Use char because int might match the return type of a GCC
14063    builtin and then its argument prototype would still apply.  */
14064 #ifdef __cplusplus
14065 extern "C"
14066 #endif
14067 char tgetent ();
14068 int
14069 main ()
14070 {
14071 return tgetent ();
14072   ;
14073   return 0;
14074 }
14075 _ACEOF
14076 rm -f conftest.$ac_objext conftest$ac_exeext
14077 if { (ac_try="$ac_link"
14078 case "(($ac_try" in
14079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14080   *) ac_try_echo=$ac_try;;
14081 esac
14082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14083   (eval "$ac_link") 2>conftest.er1
14084   ac_status=$?
14085   grep -v '^ *+' conftest.er1 >conftest.err
14086   rm -f conftest.er1
14087   cat conftest.err >&5
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); } && {
14090          test -z "$ac_c_werror_flag" ||
14091          test ! -s conftest.err
14092        } && test -s conftest$ac_exeext &&
14093        $as_test_x conftest$ac_exeext; then
14094   ac_cv_lib_termcap_tgetent=yes
14095 else
14096   echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099         ac_cv_lib_termcap_tgetent=no
14100 fi
14101
14102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14103       conftest$ac_exeext conftest.$ac_ext
14104 LIBS=$ac_check_lib_save_LIBS
14105 fi
14106 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14107 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14108 if test $ac_cv_lib_termcap_tgetent = yes; then
14109    CONS_LIBS="-ltermcap"
14110          CONS_OBJ="conio.o"
14111          CONS_SRC="conio.c"
14112          got_conio="yes"
14113          support_readline=no
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_CONIO 1
14117 _ACEOF
14118
14119
14120 else
14121    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14122 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14123 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14124   echo $ECHO_N "(cached) $ECHO_C" >&6
14125 else
14126   ac_check_lib_save_LIBS=$LIBS
14127 LIBS="-lncurses  $LIBS"
14128 cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h.  */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h.  */
14134
14135 /* Override any GCC internal prototype to avoid an error.
14136    Use char because int might match the return type of a GCC
14137    builtin and then its argument prototype would still apply.  */
14138 #ifdef __cplusplus
14139 extern "C"
14140 #endif
14141 char tgetent ();
14142 int
14143 main ()
14144 {
14145 return tgetent ();
14146   ;
14147   return 0;
14148 }
14149 _ACEOF
14150 rm -f conftest.$ac_objext conftest$ac_exeext
14151 if { (ac_try="$ac_link"
14152 case "(($ac_try" in
14153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154   *) ac_try_echo=$ac_try;;
14155 esac
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157   (eval "$ac_link") 2>conftest.er1
14158   ac_status=$?
14159   grep -v '^ *+' conftest.er1 >conftest.err
14160   rm -f conftest.er1
14161   cat conftest.err >&5
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); } && {
14164          test -z "$ac_c_werror_flag" ||
14165          test ! -s conftest.err
14166        } && test -s conftest$ac_exeext &&
14167        $as_test_x conftest$ac_exeext; then
14168   ac_cv_lib_ncurses_tgetent=yes
14169 else
14170   echo "$as_me: failed program was:" >&5
14171 sed 's/^/| /' conftest.$ac_ext >&5
14172
14173         ac_cv_lib_ncurses_tgetent=no
14174 fi
14175
14176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14177       conftest$ac_exeext conftest.$ac_ext
14178 LIBS=$ac_check_lib_save_LIBS
14179 fi
14180 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14181 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14182 if test $ac_cv_lib_ncurses_tgetent = yes; then
14183    CONS_LIBS="-lncurses"
14184            CONS_OBJ="conio.o"
14185            CONS_SRC="conio.c"
14186            got_conio="yes"
14187            support_readline=no
14188
14189 cat >>confdefs.h <<\_ACEOF
14190 #define HAVE_CONIO 1
14191 _ACEOF
14192
14193
14194 fi
14195
14196
14197 fi
14198
14199
14200 else
14201
14202
14203 for ac_header in curses.h
14204 do
14205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14207   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14210   echo $ECHO_N "(cached) $ECHO_C" >&6
14211 fi
14212 ac_res=`eval echo '${'$as_ac_Header'}'`
14213                { echo "$as_me:$LINENO: result: $ac_res" >&5
14214 echo "${ECHO_T}$ac_res" >&6; }
14215 else
14216   # Is the header compilable?
14217 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14219 cat >conftest.$ac_ext <<_ACEOF
14220 /* confdefs.h.  */
14221 _ACEOF
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h.  */
14225 $ac_includes_default
14226 #include <$ac_header>
14227 _ACEOF
14228 rm -f conftest.$ac_objext
14229 if { (ac_try="$ac_compile"
14230 case "(($ac_try" in
14231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14232   *) ac_try_echo=$ac_try;;
14233 esac
14234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14235   (eval "$ac_compile") 2>conftest.er1
14236   ac_status=$?
14237   grep -v '^ *+' conftest.er1 >conftest.err
14238   rm -f conftest.er1
14239   cat conftest.err >&5
14240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241   (exit $ac_status); } && {
14242          test -z "$ac_c_werror_flag" ||
14243          test ! -s conftest.err
14244        } && test -s conftest.$ac_objext; then
14245   ac_header_compiler=yes
14246 else
14247   echo "$as_me: failed program was:" >&5
14248 sed 's/^/| /' conftest.$ac_ext >&5
14249
14250         ac_header_compiler=no
14251 fi
14252
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14255 echo "${ECHO_T}$ac_header_compiler" >&6; }
14256
14257 # Is the header present?
14258 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14259 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14260 cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h.  */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h.  */
14266 #include <$ac_header>
14267 _ACEOF
14268 if { (ac_try="$ac_cpp conftest.$ac_ext"
14269 case "(($ac_try" in
14270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14271   *) ac_try_echo=$ac_try;;
14272 esac
14273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14275   ac_status=$?
14276   grep -v '^ *+' conftest.er1 >conftest.err
14277   rm -f conftest.er1
14278   cat conftest.err >&5
14279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280   (exit $ac_status); } >/dev/null && {
14281          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14282          test ! -s conftest.err
14283        }; then
14284   ac_header_preproc=yes
14285 else
14286   echo "$as_me: failed program was:" >&5
14287 sed 's/^/| /' conftest.$ac_ext >&5
14288
14289   ac_header_preproc=no
14290 fi
14291
14292 rm -f conftest.err conftest.$ac_ext
14293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14294 echo "${ECHO_T}$ac_header_preproc" >&6; }
14295
14296 # So?  What about this header?
14297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14298   yes:no: )
14299     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14300 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14301     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14302 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14303     ac_header_preproc=yes
14304     ;;
14305   no:yes:* )
14306     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14307 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14308     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14309 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14310     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14311 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14312     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14313 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14314     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14315 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14316     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14317 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14318
14319     ;;
14320 esac
14321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   eval "$as_ac_Header=\$ac_header_preproc"
14327 fi
14328 ac_res=`eval echo '${'$as_ac_Header'}'`
14329                { echo "$as_me:$LINENO: result: $ac_res" >&5
14330 echo "${ECHO_T}$ac_res" >&6; }
14331
14332 fi
14333 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14334   cat >>confdefs.h <<_ACEOF
14335 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14336 _ACEOF
14337
14338 fi
14339
14340 done
14341
14342          { echo "$as_me:$LINENO: checking for term.h" >&5
14343 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14344 if test "${ac_cv_header_term_h+set}" = set; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353 #if HAVE_CURSES_H
14354 #include <curses.h>
14355 #endif
14356
14357
14358 #include <term.h>
14359 _ACEOF
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_compile") 2>conftest.er1
14368   ac_status=$?
14369   grep -v '^ *+' conftest.er1 >conftest.err
14370   rm -f conftest.er1
14371   cat conftest.err >&5
14372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14373   (exit $ac_status); } && {
14374          test -z "$ac_c_werror_flag" ||
14375          test ! -s conftest.err
14376        } && test -s conftest.$ac_objext; then
14377   ac_cv_header_term_h=yes
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382         ac_cv_header_term_h=no
14383 fi
14384
14385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14386 fi
14387 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14388 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14389 if test $ac_cv_header_term_h = yes; then
14390    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14391 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14392 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14393   echo $ECHO_N "(cached) $ECHO_C" >&6
14394 else
14395   ac_check_lib_save_LIBS=$LIBS
14396 LIBS="-lcurses  $LIBS"
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403
14404 /* Override any GCC internal prototype to avoid an error.
14405    Use char because int might match the return type of a GCC
14406    builtin and then its argument prototype would still apply.  */
14407 #ifdef __cplusplus
14408 extern "C"
14409 #endif
14410 char tgetent ();
14411 int
14412 main ()
14413 {
14414 return tgetent ();
14415   ;
14416   return 0;
14417 }
14418 _ACEOF
14419 rm -f conftest.$ac_objext conftest$ac_exeext
14420 if { (ac_try="$ac_link"
14421 case "(($ac_try" in
14422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423   *) ac_try_echo=$ac_try;;
14424 esac
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426   (eval "$ac_link") 2>conftest.er1
14427   ac_status=$?
14428   grep -v '^ *+' conftest.er1 >conftest.err
14429   rm -f conftest.er1
14430   cat conftest.err >&5
14431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432   (exit $ac_status); } && {
14433          test -z "$ac_c_werror_flag" ||
14434          test ! -s conftest.err
14435        } && test -s conftest$ac_exeext &&
14436        $as_test_x conftest$ac_exeext; then
14437   ac_cv_lib_curses_tgetent=yes
14438 else
14439   echo "$as_me: failed program was:" >&5
14440 sed 's/^/| /' conftest.$ac_ext >&5
14441
14442         ac_cv_lib_curses_tgetent=no
14443 fi
14444
14445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14446       conftest$ac_exeext conftest.$ac_ext
14447 LIBS=$ac_check_lib_save_LIBS
14448 fi
14449 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14450 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14451 if test $ac_cv_lib_curses_tgetent = yes; then
14452    CONS_LIBS="-lcurses"
14453                    CONS_OBJ="conio.o"
14454                    CONS_SRC="conio.c"
14455                    got_conio="yes"
14456                    support_readline=no
14457
14458 cat >>confdefs.h <<\_ACEOF
14459 #define HAVE_CONIO 1
14460 _ACEOF
14461
14462
14463 fi
14464
14465
14466 else
14467    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14468 fi
14469
14470
14471
14472 fi
14473
14474
14475 fi
14476
14477
14478 # ---------------------------------------------------
14479 # Check for readline support/directory (default off)
14480 # ---------------------------------------------------
14481 # this allows you to turn it completely off
14482 # Check whether --enable-readline was given.
14483 if test "${enable_readline+set}" = set; then
14484   enableval=$enable_readline; if test x$enableval = xno; then
14485     support_readline=no
14486   fi
14487 fi
14488
14489
14490 got_readline="no"
14491 READLINE_SRC=
14492 if test x$support_readline = xyes; then
14493
14494 # Check whether --with-readline was given.
14495 if test "${with_readline+set}" = set; then
14496   withval=$with_readline;
14497         case "$with_readline" in
14498         no) : ;;
14499         yes|*)
14500           if test -f ${with_readline}/readline.h; then
14501              CONS_INC="-I${with_readline}"
14502              CONS_LDFLAGS="-L$with_readline"
14503           elif test -f ${with_readline}/include/readline/readline.h; then
14504              CONS_INC="-I${with_readline}/include/readline"
14505              CONS_LDFLAGS="-L${with_readline}/lib"
14506              with_readline="${with_readline}/include/readline"
14507           else
14508              with_readline="/usr/include/readline"
14509           fi
14510           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14512   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14513 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14515   echo $ECHO_N "(cached) $ECHO_C" >&6
14516 fi
14517 ac_res=`eval echo '${'$as_ac_Header'}'`
14518                { echo "$as_me:$LINENO: result: $ac_res" >&5
14519 echo "${ECHO_T}$ac_res" >&6; }
14520 else
14521   # Is the header compilable?
14522 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14523 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h.  */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h.  */
14530 $ac_includes_default
14531 #include <${with_readline}/readline.h>
14532 _ACEOF
14533 rm -f conftest.$ac_objext
14534 if { (ac_try="$ac_compile"
14535 case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_compile") 2>conftest.er1
14541   ac_status=$?
14542   grep -v '^ *+' conftest.er1 >conftest.err
14543   rm -f conftest.er1
14544   cat conftest.err >&5
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); } && {
14547          test -z "$ac_c_werror_flag" ||
14548          test ! -s conftest.err
14549        } && test -s conftest.$ac_objext; then
14550   ac_header_compiler=yes
14551 else
14552   echo "$as_me: failed program was:" >&5
14553 sed 's/^/| /' conftest.$ac_ext >&5
14554
14555         ac_header_compiler=no
14556 fi
14557
14558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14560 echo "${ECHO_T}$ac_header_compiler" >&6; }
14561
14562 # Is the header present?
14563 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14564 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14565 cat >conftest.$ac_ext <<_ACEOF
14566 /* confdefs.h.  */
14567 _ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h.  */
14571 #include <${with_readline}/readline.h>
14572 _ACEOF
14573 if { (ac_try="$ac_cpp conftest.$ac_ext"
14574 case "(($ac_try" in
14575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14576   *) ac_try_echo=$ac_try;;
14577 esac
14578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14579   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14580   ac_status=$?
14581   grep -v '^ *+' conftest.er1 >conftest.err
14582   rm -f conftest.er1
14583   cat conftest.err >&5
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); } >/dev/null && {
14586          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14587          test ! -s conftest.err
14588        }; then
14589   ac_header_preproc=yes
14590 else
14591   echo "$as_me: failed program was:" >&5
14592 sed 's/^/| /' conftest.$ac_ext >&5
14593
14594   ac_header_preproc=no
14595 fi
14596
14597 rm -f conftest.err conftest.$ac_ext
14598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14599 echo "${ECHO_T}$ac_header_preproc" >&6; }
14600
14601 # So?  What about this header?
14602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14603   yes:no: )
14604     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14605 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14606     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14607 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14608     ac_header_preproc=yes
14609     ;;
14610   no:yes:* )
14611     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14613     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14614 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14615     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14616 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14617     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14618 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14619     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14620 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14621     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14622 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14623
14624     ;;
14625 esac
14626 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14627 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14629   echo $ECHO_N "(cached) $ECHO_C" >&6
14630 else
14631   eval "$as_ac_Header=\$ac_header_preproc"
14632 fi
14633 ac_res=`eval echo '${'$as_ac_Header'}'`
14634                { echo "$as_me:$LINENO: result: $ac_res" >&5
14635 echo "${ECHO_T}$ac_res" >&6; }
14636
14637 fi
14638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14639
14640 cat >>confdefs.h <<\_ACEOF
14641 #define HAVE_READLINE 1
14642 _ACEOF
14643
14644                CONS_LIBS="-lreadline -lhistory -ltermcap"
14645                got_readline="yes"
14646
14647 else
14648    echo " "
14649                echo "readline.h not found. readline turned off ..."
14650                echo " "
14651
14652
14653 fi
14654
14655
14656           ;;
14657         esac
14658
14659 else
14660
14661        # check for standard readline library
14662        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14663   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14664 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14665 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14666   echo $ECHO_N "(cached) $ECHO_C" >&6
14667 fi
14668 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14669 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14670 else
14671   # Is the header compilable?
14672 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14673 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14674 cat >conftest.$ac_ext <<_ACEOF
14675 /* confdefs.h.  */
14676 _ACEOF
14677 cat confdefs.h >>conftest.$ac_ext
14678 cat >>conftest.$ac_ext <<_ACEOF
14679 /* end confdefs.h.  */
14680 $ac_includes_default
14681 #include </usr/include/readline/readline.h>
14682 _ACEOF
14683 rm -f conftest.$ac_objext
14684 if { (ac_try="$ac_compile"
14685 case "(($ac_try" in
14686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687   *) ac_try_echo=$ac_try;;
14688 esac
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690   (eval "$ac_compile") 2>conftest.er1
14691   ac_status=$?
14692   grep -v '^ *+' conftest.er1 >conftest.err
14693   rm -f conftest.er1
14694   cat conftest.err >&5
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); } && {
14697          test -z "$ac_c_werror_flag" ||
14698          test ! -s conftest.err
14699        } && test -s conftest.$ac_objext; then
14700   ac_header_compiler=yes
14701 else
14702   echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14704
14705         ac_header_compiler=no
14706 fi
14707
14708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14710 echo "${ECHO_T}$ac_header_compiler" >&6; }
14711
14712 # Is the header present?
14713 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14714 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14715 cat >conftest.$ac_ext <<_ACEOF
14716 /* confdefs.h.  */
14717 _ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h.  */
14721 #include </usr/include/readline/readline.h>
14722 _ACEOF
14723 if { (ac_try="$ac_cpp conftest.$ac_ext"
14724 case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14730   ac_status=$?
14731   grep -v '^ *+' conftest.er1 >conftest.err
14732   rm -f conftest.er1
14733   cat conftest.err >&5
14734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735   (exit $ac_status); } >/dev/null && {
14736          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14737          test ! -s conftest.err
14738        }; then
14739   ac_header_preproc=yes
14740 else
14741   echo "$as_me: failed program was:" >&5
14742 sed 's/^/| /' conftest.$ac_ext >&5
14743
14744   ac_header_preproc=no
14745 fi
14746
14747 rm -f conftest.err conftest.$ac_ext
14748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14749 echo "${ECHO_T}$ac_header_preproc" >&6; }
14750
14751 # So?  What about this header?
14752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14753   yes:no: )
14754     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14755 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14756     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14757 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14758     ac_header_preproc=yes
14759     ;;
14760   no:yes:* )
14761     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14763     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14764 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14765     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14766 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14768 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14769     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14770 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14771     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14772 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14773
14774     ;;
14775 esac
14776 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14777 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14778 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14779   echo $ECHO_N "(cached) $ECHO_C" >&6
14780 else
14781   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14782 fi
14783 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14784 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14785
14786 fi
14787 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14788
14789 cat >>confdefs.h <<\_ACEOF
14790 #define HAVE_READLINE 1
14791 _ACEOF
14792
14793            got_readline="yes"
14794            CONS_INC="-I/usr/include/readline"
14795            CONS_LIBS="-lreadline -ltermcap"
14796
14797 else
14798
14799            # Did not find standard library, so try Bacula's default
14800             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14802   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14803 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14805   echo $ECHO_N "(cached) $ECHO_C" >&6
14806 fi
14807 ac_res=`eval echo '${'$as_ac_Header'}'`
14808                { echo "$as_me:$LINENO: result: $ac_res" >&5
14809 echo "${ECHO_T}$ac_res" >&6; }
14810 else
14811   # Is the header compilable?
14812 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14813 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14814 cat >conftest.$ac_ext <<_ACEOF
14815 /* confdefs.h.  */
14816 _ACEOF
14817 cat confdefs.h >>conftest.$ac_ext
14818 cat >>conftest.$ac_ext <<_ACEOF
14819 /* end confdefs.h.  */
14820 $ac_includes_default
14821 #include <${TOP_DIR}/depkgs/readline/readline.h>
14822 _ACEOF
14823 rm -f conftest.$ac_objext
14824 if { (ac_try="$ac_compile"
14825 case "(($ac_try" in
14826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827   *) ac_try_echo=$ac_try;;
14828 esac
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830   (eval "$ac_compile") 2>conftest.er1
14831   ac_status=$?
14832   grep -v '^ *+' conftest.er1 >conftest.err
14833   rm -f conftest.er1
14834   cat conftest.err >&5
14835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836   (exit $ac_status); } && {
14837          test -z "$ac_c_werror_flag" ||
14838          test ! -s conftest.err
14839        } && test -s conftest.$ac_objext; then
14840   ac_header_compiler=yes
14841 else
14842   echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14844
14845         ac_header_compiler=no
14846 fi
14847
14848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14850 echo "${ECHO_T}$ac_header_compiler" >&6; }
14851
14852 # Is the header present?
14853 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14854 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14855 cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 #include <${TOP_DIR}/depkgs/readline/readline.h>
14862 _ACEOF
14863 if { (ac_try="$ac_cpp conftest.$ac_ext"
14864 case "(($ac_try" in
14865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866   *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14870   ac_status=$?
14871   grep -v '^ *+' conftest.er1 >conftest.err
14872   rm -f conftest.er1
14873   cat conftest.err >&5
14874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875   (exit $ac_status); } >/dev/null && {
14876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14877          test ! -s conftest.err
14878        }; then
14879   ac_header_preproc=yes
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884   ac_header_preproc=no
14885 fi
14886
14887 rm -f conftest.err conftest.$ac_ext
14888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14889 echo "${ECHO_T}$ac_header_preproc" >&6; }
14890
14891 # So?  What about this header?
14892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14893   yes:no: )
14894     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14895 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14897 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14898     ac_header_preproc=yes
14899     ;;
14900   no:yes:* )
14901     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14903     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14904 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14905     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14906 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14907     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14908 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14909     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14910 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14911     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14912 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14913
14914     ;;
14915 esac
14916 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14917 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14919   echo $ECHO_N "(cached) $ECHO_C" >&6
14920 else
14921   eval "$as_ac_Header=\$ac_header_preproc"
14922 fi
14923 ac_res=`eval echo '${'$as_ac_Header'}'`
14924                { echo "$as_me:$LINENO: result: $ac_res" >&5
14925 echo "${ECHO_T}$ac_res" >&6; }
14926
14927 fi
14928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14929
14930 cat >>confdefs.h <<\_ACEOF
14931 #define HAVE_READLINE 1
14932 _ACEOF
14933
14934                  got_readline="yes"
14935                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14936                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14937                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14938                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14939
14940 else
14941    echo " "
14942                 echo "readline.h not found. readline turned off ..."
14943                 echo " "
14944
14945
14946 fi
14947
14948
14949
14950
14951 fi
14952
14953
14954
14955
14956 fi
14957
14958 fi
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969 # Minimal stuff for readline Makefile configuration
14970 MAKE_SHELL=/bin/sh
14971
14972 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14973 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14974 if test "${ac_cv_header_stat_broken+set}" = set; then
14975   echo $ECHO_N "(cached) $ECHO_C" >&6
14976 else
14977   cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h.  */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h.  */
14983 #include <sys/types.h>
14984 #include <sys/stat.h>
14985
14986 #if defined S_ISBLK && defined S_IFDIR
14987 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14988 #endif
14989
14990 #if defined S_ISBLK && defined S_IFCHR
14991 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14992 #endif
14993
14994 #if defined S_ISLNK && defined S_IFREG
14995 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14996 #endif
14997
14998 #if defined S_ISSOCK && defined S_IFREG
14999 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15000 #endif
15001
15002 _ACEOF
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007   *) ac_try_echo=$ac_try;;
15008 esac
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010   (eval "$ac_compile") 2>conftest.er1
15011   ac_status=$?
15012   grep -v '^ *+' conftest.er1 >conftest.err
15013   rm -f conftest.er1
15014   cat conftest.err >&5
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } && {
15017          test -z "$ac_c_werror_flag" ||
15018          test ! -s conftest.err
15019        } && test -s conftest.$ac_objext; then
15020   ac_cv_header_stat_broken=no
15021 else
15022   echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15024
15025         ac_cv_header_stat_broken=yes
15026 fi
15027
15028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15029 fi
15030 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15031 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15032 if test $ac_cv_header_stat_broken = yes; then
15033
15034 cat >>confdefs.h <<\_ACEOF
15035 #define STAT_MACROS_BROKEN 1
15036 _ACEOF
15037
15038 fi
15039
15040
15041
15042
15043
15044
15045 ac_header_dirent=no
15046 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15047   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15048 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15049 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15051   echo $ECHO_N "(cached) $ECHO_C" >&6
15052 else
15053   cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059 #include <sys/types.h>
15060 #include <$ac_hdr>
15061
15062 int
15063 main ()
15064 {
15065 if ((DIR *) 0)
15066 return 0;
15067   ;
15068   return 0;
15069 }
15070 _ACEOF
15071 rm -f conftest.$ac_objext
15072 if { (ac_try="$ac_compile"
15073 case "(($ac_try" in
15074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15075   *) ac_try_echo=$ac_try;;
15076 esac
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078   (eval "$ac_compile") 2>conftest.er1
15079   ac_status=$?
15080   grep -v '^ *+' conftest.er1 >conftest.err
15081   rm -f conftest.er1
15082   cat conftest.err >&5
15083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084   (exit $ac_status); } && {
15085          test -z "$ac_c_werror_flag" ||
15086          test ! -s conftest.err
15087        } && test -s conftest.$ac_objext; then
15088   eval "$as_ac_Header=yes"
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093         eval "$as_ac_Header=no"
15094 fi
15095
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 fi
15098 ac_res=`eval echo '${'$as_ac_Header'}'`
15099                { echo "$as_me:$LINENO: result: $ac_res" >&5
15100 echo "${ECHO_T}$ac_res" >&6; }
15101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15102   cat >>confdefs.h <<_ACEOF
15103 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15104 _ACEOF
15105
15106 ac_header_dirent=$ac_hdr; break
15107 fi
15108
15109 done
15110 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15111 if test $ac_header_dirent = dirent.h; then
15112   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15113 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15114 if test "${ac_cv_search_opendir+set}" = set; then
15115   echo $ECHO_N "(cached) $ECHO_C" >&6
15116 else
15117   ac_func_search_save_LIBS=$LIBS
15118 cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124
15125 /* Override any GCC internal prototype to avoid an error.
15126    Use char because int might match the return type of a GCC
15127    builtin and then its argument prototype would still apply.  */
15128 #ifdef __cplusplus
15129 extern "C"
15130 #endif
15131 char opendir ();
15132 int
15133 main ()
15134 {
15135 return opendir ();
15136   ;
15137   return 0;
15138 }
15139 _ACEOF
15140 for ac_lib in '' dir; do
15141   if test -z "$ac_lib"; then
15142     ac_res="none required"
15143   else
15144     ac_res=-l$ac_lib
15145     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15146   fi
15147   rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (ac_try="$ac_link"
15149 case "(($ac_try" in
15150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151   *) ac_try_echo=$ac_try;;
15152 esac
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154   (eval "$ac_link") 2>conftest.er1
15155   ac_status=$?
15156   grep -v '^ *+' conftest.er1 >conftest.err
15157   rm -f conftest.er1
15158   cat conftest.err >&5
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); } && {
15161          test -z "$ac_c_werror_flag" ||
15162          test ! -s conftest.err
15163        } && test -s conftest$ac_exeext &&
15164        $as_test_x conftest$ac_exeext; then
15165   ac_cv_search_opendir=$ac_res
15166 else
15167   echo "$as_me: failed program was:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15169
15170
15171 fi
15172
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174       conftest$ac_exeext
15175   if test "${ac_cv_search_opendir+set}" = set; then
15176   break
15177 fi
15178 done
15179 if test "${ac_cv_search_opendir+set}" = set; then
15180   :
15181 else
15182   ac_cv_search_opendir=no
15183 fi
15184 rm conftest.$ac_ext
15185 LIBS=$ac_func_search_save_LIBS
15186 fi
15187 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15188 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15189 ac_res=$ac_cv_search_opendir
15190 if test "$ac_res" != no; then
15191   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15192
15193 fi
15194
15195 else
15196   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15197 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15198 if test "${ac_cv_search_opendir+set}" = set; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   ac_func_search_save_LIBS=$LIBS
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208
15209 /* Override any GCC internal prototype to avoid an error.
15210    Use char because int might match the return type of a GCC
15211    builtin and then its argument prototype would still apply.  */
15212 #ifdef __cplusplus
15213 extern "C"
15214 #endif
15215 char opendir ();
15216 int
15217 main ()
15218 {
15219 return opendir ();
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 for ac_lib in '' x; do
15225   if test -z "$ac_lib"; then
15226     ac_res="none required"
15227   else
15228     ac_res=-l$ac_lib
15229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15230   fi
15231   rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (ac_try="$ac_link"
15233 case "(($ac_try" in
15234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235   *) ac_try_echo=$ac_try;;
15236 esac
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238   (eval "$ac_link") 2>conftest.er1
15239   ac_status=$?
15240   grep -v '^ *+' conftest.er1 >conftest.err
15241   rm -f conftest.er1
15242   cat conftest.err >&5
15243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244   (exit $ac_status); } && {
15245          test -z "$ac_c_werror_flag" ||
15246          test ! -s conftest.err
15247        } && test -s conftest$ac_exeext &&
15248        $as_test_x conftest$ac_exeext; then
15249   ac_cv_search_opendir=$ac_res
15250 else
15251   echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15253
15254
15255 fi
15256
15257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15258       conftest$ac_exeext
15259   if test "${ac_cv_search_opendir+set}" = set; then
15260   break
15261 fi
15262 done
15263 if test "${ac_cv_search_opendir+set}" = set; then
15264   :
15265 else
15266   ac_cv_search_opendir=no
15267 fi
15268 rm conftest.$ac_ext
15269 LIBS=$ac_func_search_save_LIBS
15270 fi
15271 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15272 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15273 ac_res=$ac_cv_search_opendir
15274 if test "$ac_res" != no; then
15275   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15276
15277 fi
15278
15279 fi
15280
15281
15282
15283
15284
15285
15286
15287
15288 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15289 do
15290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15304 #define $ac_func innocuous_$ac_func
15305
15306 /* System header to define __stub macros and hopefully few prototypes,
15307     which can conflict with char $ac_func (); below.
15308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15309     <limits.h> exists even on freestanding compilers.  */
15310
15311 #ifdef __STDC__
15312 # include <limits.h>
15313 #else
15314 # include <assert.h>
15315 #endif
15316
15317 #undef $ac_func
15318
15319 /* Override any GCC internal prototype to avoid an error.
15320    Use char because int might match the return type of a GCC
15321    builtin and then its argument prototype would still apply.  */
15322 #ifdef __cplusplus
15323 extern "C"
15324 #endif
15325 char $ac_func ();
15326 /* The GNU C library defines this for functions which it implements
15327     to always fail with ENOSYS.  Some functions are actually named
15328     something starting with __ and the normal name is an alias.  */
15329 #if defined __stub_$ac_func || defined __stub___$ac_func
15330 choke me
15331 #endif
15332
15333 int
15334 main ()
15335 {
15336 return $ac_func ();
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 rm -f conftest.$ac_objext conftest$ac_exeext
15342 if { (ac_try="$ac_link"
15343 case "(($ac_try" in
15344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345   *) ac_try_echo=$ac_try;;
15346 esac
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348   (eval "$ac_link") 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } && {
15355          test -z "$ac_c_werror_flag" ||
15356          test ! -s conftest.err
15357        } && test -s conftest$ac_exeext &&
15358        $as_test_x conftest$ac_exeext; then
15359   eval "$as_ac_var=yes"
15360 else
15361   echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15363
15364         eval "$as_ac_var=no"
15365 fi
15366
15367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15368       conftest$ac_exeext conftest.$ac_ext
15369 fi
15370 ac_res=`eval echo '${'$as_ac_var'}'`
15371                { echo "$as_me:$LINENO: result: $ac_res" >&5
15372 echo "${ECHO_T}$ac_res" >&6; }
15373 if test `eval echo '${'$as_ac_var'}'` = yes; then
15374   cat >>confdefs.h <<_ACEOF
15375 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15376 _ACEOF
15377
15378 fi
15379 done
15380
15381
15382
15383 for ac_func in nanosleep nl_langinfo
15384 do
15385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15389   echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391   cat >conftest.$ac_ext <<_ACEOF
15392 /* confdefs.h.  */
15393 _ACEOF
15394 cat confdefs.h >>conftest.$ac_ext
15395 cat >>conftest.$ac_ext <<_ACEOF
15396 /* end confdefs.h.  */
15397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15399 #define $ac_func innocuous_$ac_func
15400
15401 /* System header to define __stub macros and hopefully few prototypes,
15402     which can conflict with char $ac_func (); below.
15403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15404     <limits.h> exists even on freestanding compilers.  */
15405
15406 #ifdef __STDC__
15407 # include <limits.h>
15408 #else
15409 # include <assert.h>
15410 #endif
15411
15412 #undef $ac_func
15413
15414 /* Override any GCC internal prototype to avoid an error.
15415    Use char because int might match the return type of a GCC
15416    builtin and then its argument prototype would still apply.  */
15417 #ifdef __cplusplus
15418 extern "C"
15419 #endif
15420 char $ac_func ();
15421 /* The GNU C library defines this for functions which it implements
15422     to always fail with ENOSYS.  Some functions are actually named
15423     something starting with __ and the normal name is an alias.  */
15424 #if defined __stub_$ac_func || defined __stub___$ac_func
15425 choke me
15426 #endif
15427
15428 int
15429 main ()
15430 {
15431 return $ac_func ();
15432   ;
15433   return 0;
15434 }
15435 _ACEOF
15436 rm -f conftest.$ac_objext conftest$ac_exeext
15437 if { (ac_try="$ac_link"
15438 case "(($ac_try" in
15439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440   *) ac_try_echo=$ac_try;;
15441 esac
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443   (eval "$ac_link") 2>conftest.er1
15444   ac_status=$?
15445   grep -v '^ *+' conftest.er1 >conftest.err
15446   rm -f conftest.er1
15447   cat conftest.err >&5
15448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449   (exit $ac_status); } && {
15450          test -z "$ac_c_werror_flag" ||
15451          test ! -s conftest.err
15452        } && test -s conftest$ac_exeext &&
15453        $as_test_x conftest$ac_exeext; then
15454   eval "$as_ac_var=yes"
15455 else
15456   echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15458
15459         eval "$as_ac_var=no"
15460 fi
15461
15462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15463       conftest$ac_exeext conftest.$ac_ext
15464 fi
15465 ac_res=`eval echo '${'$as_ac_var'}'`
15466                { echo "$as_me:$LINENO: result: $ac_res" >&5
15467 echo "${ECHO_T}$ac_res" >&6; }
15468 if test `eval echo '${'$as_ac_var'}'` = yes; then
15469   cat >>confdefs.h <<_ACEOF
15470 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15471 _ACEOF
15472
15473 fi
15474 done
15475
15476
15477 for ac_header in varargs.h
15478 do
15479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15481   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15484   echo $ECHO_N "(cached) $ECHO_C" >&6
15485 fi
15486 ac_res=`eval echo '${'$as_ac_Header'}'`
15487                { echo "$as_me:$LINENO: result: $ac_res" >&5
15488 echo "${ECHO_T}$ac_res" >&6; }
15489 else
15490   # Is the header compilable?
15491 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 $ac_includes_default
15500 #include <$ac_header>
15501 _ACEOF
15502 rm -f conftest.$ac_objext
15503 if { (ac_try="$ac_compile"
15504 case "(($ac_try" in
15505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506   *) ac_try_echo=$ac_try;;
15507 esac
15508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15509   (eval "$ac_compile") 2>conftest.er1
15510   ac_status=$?
15511   grep -v '^ *+' conftest.er1 >conftest.err
15512   rm -f conftest.er1
15513   cat conftest.err >&5
15514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515   (exit $ac_status); } && {
15516          test -z "$ac_c_werror_flag" ||
15517          test ! -s conftest.err
15518        } && test -s conftest.$ac_objext; then
15519   ac_header_compiler=yes
15520 else
15521   echo "$as_me: failed program was:" >&5
15522 sed 's/^/| /' conftest.$ac_ext >&5
15523
15524         ac_header_compiler=no
15525 fi
15526
15527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15528 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15529 echo "${ECHO_T}$ac_header_compiler" >&6; }
15530
15531 # Is the header present?
15532 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15533 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540 #include <$ac_header>
15541 _ACEOF
15542 if { (ac_try="$ac_cpp conftest.$ac_ext"
15543 case "(($ac_try" in
15544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15545   *) ac_try_echo=$ac_try;;
15546 esac
15547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15548   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15549   ac_status=$?
15550   grep -v '^ *+' conftest.er1 >conftest.err
15551   rm -f conftest.er1
15552   cat conftest.err >&5
15553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554   (exit $ac_status); } >/dev/null && {
15555          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15556          test ! -s conftest.err
15557        }; then
15558   ac_header_preproc=yes
15559 else
15560   echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15562
15563   ac_header_preproc=no
15564 fi
15565
15566 rm -f conftest.err conftest.$ac_ext
15567 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15568 echo "${ECHO_T}$ac_header_preproc" >&6; }
15569
15570 # So?  What about this header?
15571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15572   yes:no: )
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15577     ac_header_preproc=yes
15578     ;;
15579   no:yes:* )
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15583 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15584     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15586     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15587 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15588     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15590     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15592
15593     ;;
15594 esac
15595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15598   echo $ECHO_N "(cached) $ECHO_C" >&6
15599 else
15600   eval "$as_ac_Header=\$ac_header_preproc"
15601 fi
15602 ac_res=`eval echo '${'$as_ac_Header'}'`
15603                { echo "$as_me:$LINENO: result: $ac_res" >&5
15604 echo "${ECHO_T}$ac_res" >&6; }
15605
15606 fi
15607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15608   cat >>confdefs.h <<_ACEOF
15609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15610 _ACEOF
15611
15612 fi
15613
15614 done
15615
15616
15617 # End of readline/conio stuff
15618 # -----------------------------------------------------------------------
15619
15620 # -----------------------------------------------------------------------
15621 #  Check for Python support
15622 #
15623 { echo "$as_me:$LINENO: checking for Python support" >&5
15624 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15625
15626 # Check whether --with-python was given.
15627 if test "${with_python+set}" = set; then
15628   withval=$with_python;
15629   PYTHON_INCDIR=
15630   PYTHON_LIBS=
15631   if test "$withval" != "no"; then
15632      if test "$withval" = "yes"; then
15633         for python_root in /usr /usr/local /usr/sfw; do
15634           for ver in python2.2 python2.3 python2.4 python2.5; do
15635              if test -f $python_root/include/${ver}/Python.h; then
15636                 PYTHON_INCDIR=-I$python_root/include/${ver}
15637                 if test -d $python_root/lib64/${ver}/config; then
15638                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15639                 else
15640                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15641                 fi
15642                 break
15643              fi
15644           done
15645         done
15646         if test x$PYTHON_INCDIR = x; then
15647           if test -f $prefix/include/Python.h; then
15648              PYTHON_INCDIR=-I$prefix/include
15649              if test -d $prefix/lib64/config; then
15650                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15651              else
15652                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15653              fi
15654           else
15655            { echo "$as_me:$LINENO: result: no" >&5
15656 echo "${ECHO_T}no" >&6; }
15657            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15658 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15659    { (exit 1); exit 1; }; }
15660           fi
15661         fi
15662      else
15663         if test -f $withval/Python.h; then
15664            PYTHON_INCDIR=-I$withval
15665            PYTHON_LIBS="-L$withval/config -lpython"
15666         elif test -f $withval/include/Python.h; then
15667            PYTHON_INCDIR=-I$withval/include
15668            if test -d $withval/lib64/config; then
15669               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15670            else
15671               PYTHON_LIBS="-L$withval/lib/config -lpython"
15672            fi
15673         elif test -f $withval/include/python/Python.h; then
15674            PYTHON_INCDIR=-I$withval/include/python
15675            if test -d $withval/lib64/python/config; then
15676               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15677            else
15678               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15679            fi
15680         else
15681            { echo "$as_me:$LINENO: result: no" >&5
15682 echo "${ECHO_T}no" >&6; }
15683            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15684 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15685    { (exit 1); exit 1; }; }
15686         fi
15687      fi
15688      cat >>confdefs.h <<\_ACEOF
15689 #define HAVE_PYTHON 1
15690 _ACEOF
15691
15692      { echo "$as_me:$LINENO: result: yes" >&5
15693 echo "${ECHO_T}yes" >&6; }
15694      support_python=yes
15695      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15696 echo "$as_me: checking for more Python libs" >&6;}
15697      saved_LIBS="$LIBS"; LIBS=
15698      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15699 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15700 if test "${ac_cv_search_shm_open+set}" = set; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703   ac_func_search_save_LIBS=$LIBS
15704 cat >conftest.$ac_ext <<_ACEOF
15705 /* confdefs.h.  */
15706 _ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h.  */
15710
15711 /* Override any GCC internal prototype to avoid an error.
15712    Use char because int might match the return type of a GCC
15713    builtin and then its argument prototype would still apply.  */
15714 #ifdef __cplusplus
15715 extern "C"
15716 #endif
15717 char shm_open ();
15718 int
15719 main ()
15720 {
15721 return shm_open ();
15722   ;
15723   return 0;
15724 }
15725 _ACEOF
15726 for ac_lib in '' rt; do
15727   if test -z "$ac_lib"; then
15728     ac_res="none required"
15729   else
15730     ac_res=-l$ac_lib
15731     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15732   fi
15733   rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (ac_try="$ac_link"
15735 case "(($ac_try" in
15736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737   *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740   (eval "$ac_link") 2>conftest.er1
15741   ac_status=$?
15742   grep -v '^ *+' conftest.er1 >conftest.err
15743   rm -f conftest.er1
15744   cat conftest.err >&5
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); } && {
15747          test -z "$ac_c_werror_flag" ||
15748          test ! -s conftest.err
15749        } && test -s conftest$ac_exeext &&
15750        $as_test_x conftest$ac_exeext; then
15751   ac_cv_search_shm_open=$ac_res
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756
15757 fi
15758
15759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15760       conftest$ac_exeext
15761   if test "${ac_cv_search_shm_open+set}" = set; then
15762   break
15763 fi
15764 done
15765 if test "${ac_cv_search_shm_open+set}" = set; then
15766   :
15767 else
15768   ac_cv_search_shm_open=no
15769 fi
15770 rm conftest.$ac_ext
15771 LIBS=$ac_func_search_save_LIBS
15772 fi
15773 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15774 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15775 ac_res=$ac_cv_search_shm_open
15776 if test "$ac_res" != no; then
15777   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15778
15779 fi
15780
15781
15782 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15783 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15784 if test "${ac_cv_lib_util_openpty+set}" = set; then
15785   echo $ECHO_N "(cached) $ECHO_C" >&6
15786 else
15787   ac_check_lib_save_LIBS=$LIBS
15788 LIBS="-lutil  $LIBS"
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h.  */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h.  */
15795
15796 /* Override any GCC internal prototype to avoid an error.
15797    Use char because int might match the return type of a GCC
15798    builtin and then its argument prototype would still apply.  */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 char openpty ();
15803 int
15804 main ()
15805 {
15806 return openpty ();
15807   ;
15808   return 0;
15809 }
15810 _ACEOF
15811 rm -f conftest.$ac_objext conftest$ac_exeext
15812 if { (ac_try="$ac_link"
15813 case "(($ac_try" in
15814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15815   *) ac_try_echo=$ac_try;;
15816 esac
15817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15818   (eval "$ac_link") 2>conftest.er1
15819   ac_status=$?
15820   grep -v '^ *+' conftest.er1 >conftest.err
15821   rm -f conftest.er1
15822   cat conftest.err >&5
15823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824   (exit $ac_status); } && {
15825          test -z "$ac_c_werror_flag" ||
15826          test ! -s conftest.err
15827        } && test -s conftest$ac_exeext &&
15828        $as_test_x conftest$ac_exeext; then
15829   ac_cv_lib_util_openpty=yes
15830 else
15831   echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15833
15834         ac_cv_lib_util_openpty=no
15835 fi
15836
15837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15838       conftest$ac_exeext conftest.$ac_ext
15839 LIBS=$ac_check_lib_save_LIBS
15840 fi
15841 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15842 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15843 if test $ac_cv_lib_util_openpty = yes; then
15844   cat >>confdefs.h <<_ACEOF
15845 #define HAVE_LIBUTIL 1
15846 _ACEOF
15847
15848   LIBS="-lutil $LIBS"
15849
15850 fi
15851
15852      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15853      LIBS="$saved_LIBS"
15854   else
15855      { echo "$as_me:$LINENO: result: no" >&5
15856 echo "${ECHO_T}no" >&6; }
15857   fi
15858
15859 else
15860
15861   { echo "$as_me:$LINENO: result: no" >&5
15862 echo "${ECHO_T}no" >&6; }
15863
15864 fi
15865
15866
15867
15868
15869 #
15870 # Find where sockets are (especially for Solaris)
15871 # Do this before the TCP Wrappers test since tcp wrappers
15872 # uses the socket library and some linkers are stupid.
15873 #
15874 { echo "$as_me:$LINENO: checking for socket" >&5
15875 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15876 if test "${ac_cv_func_socket+set}" = set; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15887 #define socket innocuous_socket
15888
15889 /* System header to define __stub macros and hopefully few prototypes,
15890     which can conflict with char socket (); below.
15891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15892     <limits.h> exists even on freestanding compilers.  */
15893
15894 #ifdef __STDC__
15895 # include <limits.h>
15896 #else
15897 # include <assert.h>
15898 #endif
15899
15900 #undef socket
15901
15902 /* Override any GCC internal prototype to avoid an error.
15903    Use char because int might match the return type of a GCC
15904    builtin and then its argument prototype would still apply.  */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 char socket ();
15909 /* The GNU C library defines this for functions which it implements
15910     to always fail with ENOSYS.  Some functions are actually named
15911     something starting with __ and the normal name is an alias.  */
15912 #if defined __stub_socket || defined __stub___socket
15913 choke me
15914 #endif
15915
15916 int
15917 main ()
15918 {
15919 return socket ();
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (ac_try="$ac_link"
15926 case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_link") 2>conftest.er1
15932   ac_status=$?
15933   grep -v '^ *+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } && {
15938          test -z "$ac_c_werror_flag" ||
15939          test ! -s conftest.err
15940        } && test -s conftest$ac_exeext &&
15941        $as_test_x conftest$ac_exeext; then
15942   ac_cv_func_socket=yes
15943 else
15944   echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15946
15947         ac_cv_func_socket=no
15948 fi
15949
15950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15951       conftest$ac_exeext conftest.$ac_ext
15952 fi
15953 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15954 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15955 if test $ac_cv_func_socket = yes; then
15956   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15957 echo "${ECHO_T}using libc's socket" >&6; }
15958 else
15959
15960 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15961 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15962 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15963   echo $ECHO_N "(cached) $ECHO_C" >&6
15964 else
15965   ac_check_lib_save_LIBS=$LIBS
15966 LIBS="-lxnet  $LIBS"
15967 cat >conftest.$ac_ext <<_ACEOF
15968 /* confdefs.h.  */
15969 _ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h.  */
15973
15974 /* Override any GCC internal prototype to avoid an error.
15975    Use char because int might match the return type of a GCC
15976    builtin and then its argument prototype would still apply.  */
15977 #ifdef __cplusplus
15978 extern "C"
15979 #endif
15980 char socket ();
15981 int
15982 main ()
15983 {
15984 return socket ();
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (ac_try="$ac_link"
15991 case "(($ac_try" in
15992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993   *) ac_try_echo=$ac_try;;
15994 esac
15995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15996   (eval "$ac_link") 2>conftest.er1
15997   ac_status=$?
15998   grep -v '^ *+' conftest.er1 >conftest.err
15999   rm -f conftest.er1
16000   cat conftest.err >&5
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); } && {
16003          test -z "$ac_c_werror_flag" ||
16004          test ! -s conftest.err
16005        } && test -s conftest$ac_exeext &&
16006        $as_test_x conftest$ac_exeext; then
16007   ac_cv_lib_xnet_socket=yes
16008 else
16009   echo "$as_me: failed program was:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16011
16012         ac_cv_lib_xnet_socket=no
16013 fi
16014
16015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16016       conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16018 fi
16019 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16020 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16021 if test $ac_cv_lib_xnet_socket = yes; then
16022   cat >>confdefs.h <<_ACEOF
16023 #define HAVE_LIBXNET 1
16024 _ACEOF
16025
16026   LIBS="-lxnet $LIBS"
16027
16028 fi
16029
16030
16031 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16032 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16033 if test "${ac_cv_lib_socket_socket+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   ac_check_lib_save_LIBS=$LIBS
16037 LIBS="-lsocket  $LIBS"
16038 cat >conftest.$ac_ext <<_ACEOF
16039 /* confdefs.h.  */
16040 _ACEOF
16041 cat confdefs.h >>conftest.$ac_ext
16042 cat >>conftest.$ac_ext <<_ACEOF
16043 /* end confdefs.h.  */
16044
16045 /* Override any GCC internal prototype to avoid an error.
16046    Use char because int might match the return type of a GCC
16047    builtin and then its argument prototype would still apply.  */
16048 #ifdef __cplusplus
16049 extern "C"
16050 #endif
16051 char socket ();
16052 int
16053 main ()
16054 {
16055 return socket ();
16056   ;
16057   return 0;
16058 }
16059 _ACEOF
16060 rm -f conftest.$ac_objext conftest$ac_exeext
16061 if { (ac_try="$ac_link"
16062 case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_link") 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } && {
16074          test -z "$ac_c_werror_flag" ||
16075          test ! -s conftest.err
16076        } && test -s conftest$ac_exeext &&
16077        $as_test_x conftest$ac_exeext; then
16078   ac_cv_lib_socket_socket=yes
16079 else
16080   echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16082
16083         ac_cv_lib_socket_socket=no
16084 fi
16085
16086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16087       conftest$ac_exeext conftest.$ac_ext
16088 LIBS=$ac_check_lib_save_LIBS
16089 fi
16090 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16091 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16092 if test $ac_cv_lib_socket_socket = yes; then
16093   cat >>confdefs.h <<_ACEOF
16094 #define HAVE_LIBSOCKET 1
16095 _ACEOF
16096
16097   LIBS="-lsocket $LIBS"
16098
16099 fi
16100
16101
16102 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16103 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16104 if test "${ac_cv_lib_inet_socket+set}" = set; then
16105   echo $ECHO_N "(cached) $ECHO_C" >&6
16106 else
16107   ac_check_lib_save_LIBS=$LIBS
16108 LIBS="-linet  $LIBS"
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h.  */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h.  */
16115
16116 /* Override any GCC internal prototype to avoid an error.
16117    Use char because int might match the return type of a GCC
16118    builtin and then its argument prototype would still apply.  */
16119 #ifdef __cplusplus
16120 extern "C"
16121 #endif
16122 char socket ();
16123 int
16124 main ()
16125 {
16126 return socket ();
16127   ;
16128   return 0;
16129 }
16130 _ACEOF
16131 rm -f conftest.$ac_objext conftest$ac_exeext
16132 if { (ac_try="$ac_link"
16133 case "(($ac_try" in
16134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16135   *) ac_try_echo=$ac_try;;
16136 esac
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138   (eval "$ac_link") 2>conftest.er1
16139   ac_status=$?
16140   grep -v '^ *+' conftest.er1 >conftest.err
16141   rm -f conftest.er1
16142   cat conftest.err >&5
16143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144   (exit $ac_status); } && {
16145          test -z "$ac_c_werror_flag" ||
16146          test ! -s conftest.err
16147        } && test -s conftest$ac_exeext &&
16148        $as_test_x conftest$ac_exeext; then
16149   ac_cv_lib_inet_socket=yes
16150 else
16151   echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16153
16154         ac_cv_lib_inet_socket=no
16155 fi
16156
16157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16158       conftest$ac_exeext conftest.$ac_ext
16159 LIBS=$ac_check_lib_save_LIBS
16160 fi
16161 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16162 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16163 if test $ac_cv_lib_inet_socket = yes; then
16164   cat >>confdefs.h <<_ACEOF
16165 #define HAVE_LIBINET 1
16166 _ACEOF
16167
16168   LIBS="-linet $LIBS"
16169
16170 fi
16171
16172 fi
16173
16174
16175
16176 # -----------------------------------------------------------
16177 # Check whether user wants TCP wrappers support (default off)
16178 # -----------------------------------------------------------
16179 TCPW_MSG="no"
16180 WRAPLIBS=""
16181
16182 # Check whether --with-tcp-wrappers was given.
16183 if test "${with_tcp_wrappers+set}" = set; then
16184   withval=$with_tcp_wrappers;
16185     if test "x$withval" != "xno" ; then
16186        saved_LIBS="$LIBS"
16187        LIBS="$saved_LIBS -lwrap"
16188        { echo "$as_me:$LINENO: checking for libwrap" >&5
16189 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16190        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16191 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16192 if test "${ac_cv_search_nanosleep+set}" = set; then
16193   echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195   ac_func_search_save_LIBS=$LIBS
16196 cat >conftest.$ac_ext <<_ACEOF
16197 /* confdefs.h.  */
16198 _ACEOF
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h.  */
16202
16203 /* Override any GCC internal prototype to avoid an error.
16204    Use char because int might match the return type of a GCC
16205    builtin and then its argument prototype would still apply.  */
16206 #ifdef __cplusplus
16207 extern "C"
16208 #endif
16209 char nanosleep ();
16210 int
16211 main ()
16212 {
16213 return nanosleep ();
16214   ;
16215   return 0;
16216 }
16217 _ACEOF
16218 for ac_lib in '' rt; do
16219   if test -z "$ac_lib"; then
16220     ac_res="none required"
16221   else
16222     ac_res=-l$ac_lib
16223     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16224   fi
16225   rm -f conftest.$ac_objext conftest$ac_exeext
16226 if { (ac_try="$ac_link"
16227 case "(($ac_try" in
16228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229   *) ac_try_echo=$ac_try;;
16230 esac
16231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16232   (eval "$ac_link") 2>conftest.er1
16233   ac_status=$?
16234   grep -v '^ *+' conftest.er1 >conftest.err
16235   rm -f conftest.er1
16236   cat conftest.err >&5
16237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238   (exit $ac_status); } && {
16239          test -z "$ac_c_werror_flag" ||
16240          test ! -s conftest.err
16241        } && test -s conftest$ac_exeext &&
16242        $as_test_x conftest$ac_exeext; then
16243   ac_cv_search_nanosleep=$ac_res
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248
16249 fi
16250
16251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16252       conftest$ac_exeext
16253   if test "${ac_cv_search_nanosleep+set}" = set; then
16254   break
16255 fi
16256 done
16257 if test "${ac_cv_search_nanosleep+set}" = set; then
16258   :
16259 else
16260   ac_cv_search_nanosleep=no
16261 fi
16262 rm conftest.$ac_ext
16263 LIBS=$ac_func_search_save_LIBS
16264 fi
16265 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16266 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16267 ac_res=$ac_cv_search_nanosleep
16268 if test "$ac_res" != no; then
16269   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16270
16271 fi
16272
16273        cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279  #include <sys/types.h>
16280             #include <tcpd.h>
16281              int deny_severity = 0;
16282              int allow_severity = 0;
16283              struct request_info *req;
16284 int
16285 main ()
16286 {
16287  hosts_access(req);
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 rm -f conftest.$ac_objext conftest$ac_exeext
16293 if { (ac_try="$ac_link"
16294 case "(($ac_try" in
16295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296   *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299   (eval "$ac_link") 2>conftest.er1
16300   ac_status=$?
16301   grep -v '^ *+' conftest.er1 >conftest.err
16302   rm -f conftest.er1
16303   cat conftest.err >&5
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); } && {
16306          test -z "$ac_c_werror_flag" ||
16307          test ! -s conftest.err
16308        } && test -s conftest$ac_exeext &&
16309        $as_test_x conftest$ac_exeext; then
16310
16311             { echo "$as_me:$LINENO: result: yes" >&5
16312 echo "${ECHO_T}yes" >&6; }
16313
16314 cat >>confdefs.h <<\_ACEOF
16315 #define HAVE_LIBWRAP 1
16316 _ACEOF
16317
16318             TCPW_MSG="yes"
16319             LIBS="$saved_LIBS"
16320             WRAPLIBS="-lwrap"
16321
16322 else
16323   echo "$as_me: failed program was:" >&5
16324 sed 's/^/| /' conftest.$ac_ext >&5
16325
16326
16327             LIBS="$saved_LIBS -lwrap -lnsl"
16328             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16329             cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335  #include <sys/types.h>
16336                  #include <tcpd.h>
16337                  int deny_severity = 0;
16338                  int allow_severity = 0;
16339                  struct request_info *req;
16340 int
16341 main ()
16342 {
16343  hosts_access(req);
16344   ;
16345   return 0;
16346 }
16347 _ACEOF
16348 rm -f conftest.$ac_objext conftest$ac_exeext
16349 if { (ac_try="$ac_link"
16350 case "(($ac_try" in
16351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16352   *) ac_try_echo=$ac_try;;
16353 esac
16354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16355   (eval "$ac_link") 2>conftest.er1
16356   ac_status=$?
16357   grep -v '^ *+' conftest.er1 >conftest.err
16358   rm -f conftest.er1
16359   cat conftest.err >&5
16360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16361   (exit $ac_status); } && {
16362          test -z "$ac_c_werror_flag" ||
16363          test ! -s conftest.err
16364        } && test -s conftest$ac_exeext &&
16365        $as_test_x conftest$ac_exeext; then
16366
16367                  { echo "$as_me:$LINENO: result: yes" >&5
16368 echo "${ECHO_T}yes" >&6; }
16369
16370 cat >>confdefs.h <<\_ACEOF
16371 #define HAVE_LIBWRAP 1
16372 _ACEOF
16373
16374                  TCPW_MSG="yes"
16375                  LIBS="$saved_LIBS"
16376                  WRAPLIBS="-lwrap"
16377
16378 else
16379   echo "$as_me: failed program was:" >&5
16380 sed 's/^/| /' conftest.$ac_ext >&5
16381
16382         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16383 echo "$as_me: error: *** libwrap missing" >&2;}
16384    { (exit 1); exit 1; }; }
16385
16386 fi
16387
16388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16389       conftest$ac_exeext conftest.$ac_ext
16390
16391 fi
16392
16393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16394       conftest$ac_exeext conftest.$ac_ext
16395     fi
16396
16397
16398 fi
16399
16400
16401 # -----------------------------------------------------------
16402 # Check whether OpenSSL is available
16403 # -----------------------------------------------------------
16404 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16405 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16406
16407 # Check whether --with-openssl was given.
16408 if test "${with_openssl+set}" = set; then
16409   withval=$with_openssl; with_openssl_directory=${withval}
16410 fi
16411
16412
16413 if test "x$with_openssl_directory" != "x"; then
16414         OPENSSL_LIBS="-lssl -lcrypto"
16415         OPENSSL_INC=""
16416
16417         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16418                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16419                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16420         fi
16421
16422         saved_LIBS="${LIBS}"
16423         saved_CFLAGS="${CFLAGS}"
16424         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16425         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16426
16427         cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433  #include <openssl/ssl.h>
16434 int
16435 main ()
16436 {
16437  CRYPTO_set_id_callback(NULL);
16438   ;
16439   return 0;
16440 }
16441 _ACEOF
16442 rm -f conftest.$ac_objext conftest$ac_exeext
16443 if { (ac_try="$ac_link"
16444 case "(($ac_try" in
16445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446   *) ac_try_echo=$ac_try;;
16447 esac
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449   (eval "$ac_link") 2>conftest.er1
16450   ac_status=$?
16451   grep -v '^ *+' conftest.er1 >conftest.err
16452   rm -f conftest.er1
16453   cat conftest.err >&5
16454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16455   (exit $ac_status); } && {
16456          test -z "$ac_c_werror_flag" ||
16457          test ! -s conftest.err
16458        } && test -s conftest$ac_exeext &&
16459        $as_test_x conftest$ac_exeext; then
16460
16461                         support_tls="yes"
16462                         support_crypto="yes"
16463
16464 else
16465   echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.$ac_ext >&5
16467
16468          support_tls="no"
16469
16470 fi
16471
16472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16473       conftest$ac_exeext conftest.$ac_ext
16474
16475         cat >conftest.$ac_ext <<_ACEOF
16476 /* confdefs.h.  */
16477 _ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h.  */
16481  #include <openssl/evp.h>
16482 int
16483 main ()
16484 {
16485  EVP_sha512();
16486   ;
16487   return 0;
16488 }
16489 _ACEOF
16490 rm -f conftest.$ac_objext conftest$ac_exeext
16491 if { (ac_try="$ac_link"
16492 case "(($ac_try" in
16493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494   *) ac_try_echo=$ac_try;;
16495 esac
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497   (eval "$ac_link") 2>conftest.er1
16498   ac_status=$?
16499   grep -v '^ *+' conftest.er1 >conftest.err
16500   rm -f conftest.er1
16501   cat conftest.err >&5
16502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16503   (exit $ac_status); } && {
16504          test -z "$ac_c_werror_flag" ||
16505          test ! -s conftest.err
16506        } && test -s conftest$ac_exeext &&
16507        $as_test_x conftest$ac_exeext; then
16508    ac_cv_openssl_sha2="yes"
16509 else
16510   echo "$as_me: failed program was:" >&5
16511 sed 's/^/| /' conftest.$ac_ext >&5
16512
16513          ac_cv_openssl_sha2="no"
16514
16515 fi
16516
16517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16518       conftest$ac_exeext conftest.$ac_ext
16519
16520         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16521         # implementation, presumably for export reasons. If 192bit AES
16522         # is available, we assume that we're running with a 'non-export'
16523         # openssl library.
16524         cat >conftest.$ac_ext <<_ACEOF
16525 /* confdefs.h.  */
16526 _ACEOF
16527 cat confdefs.h >>conftest.$ac_ext
16528 cat >>conftest.$ac_ext <<_ACEOF
16529 /* end confdefs.h.  */
16530  #include <openssl/evp.h>
16531 int
16532 main ()
16533 {
16534  EVP_aes_192_cbc();
16535   ;
16536   return 0;
16537 }
16538 _ACEOF
16539 rm -f conftest.$ac_objext conftest$ac_exeext
16540 if { (ac_try="$ac_link"
16541 case "(($ac_try" in
16542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16543   *) ac_try_echo=$ac_try;;
16544 esac
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546   (eval "$ac_link") 2>conftest.er1
16547   ac_status=$?
16548   grep -v '^ *+' conftest.er1 >conftest.err
16549   rm -f conftest.er1
16550   cat conftest.err >&5
16551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552   (exit $ac_status); } && {
16553          test -z "$ac_c_werror_flag" ||
16554          test ! -s conftest.err
16555        } && test -s conftest$ac_exeext &&
16556        $as_test_x conftest$ac_exeext; then
16557    ac_cv_openssl_export="no"
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562          ac_cv_openssl_export="yes"
16563
16564 fi
16565
16566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16567       conftest$ac_exeext conftest.$ac_ext
16568
16569         LIBS="${saved_LIBS}"
16570         CFLAGS="${saved_CFLAGS}"
16571
16572         if test "$support_tls" = "yes"; then
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_OPENSSL 1
16576 _ACEOF
16577
16578
16579 cat >>confdefs.h <<\_ACEOF
16580 #define HAVE_TLS 1
16581 _ACEOF
16582
16583
16584 cat >>confdefs.h <<\_ACEOF
16585 #define HAVE_CRYPTO 1
16586 _ACEOF
16587
16588         fi
16589
16590         if test "$ac_cv_openssl_sha2" = "yes"; then
16591
16592 cat >>confdefs.h <<\_ACEOF
16593 #define HAVE_SHA2 1
16594 _ACEOF
16595
16596         fi
16597
16598         if test "$ac_cv_openssl_export" = "yes"; then
16599
16600 cat >>confdefs.h <<\_ACEOF
16601 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16602 _ACEOF
16603
16604         fi
16605 else
16606         support_tls="no"
16607         support_crypto="no"
16608         OPENSSL_LIBS=""
16609         OPENSSL_INC=""
16610 fi
16611
16612 { echo "$as_me:$LINENO: result: $support_tls" >&5
16613 echo "${ECHO_T}$support_tls" >&6; }
16614
16615
16616
16617
16618 # -----------------------------------------------------------
16619 # dlopen is needed for plugins
16620 # -----------------------------------------------------------
16621 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16622 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16623 if test "${ac_cv_search_dlopen+set}" = set; then
16624   echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626   ac_func_search_save_LIBS=$LIBS
16627 cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h.  */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h.  */
16633
16634 /* Override any GCC internal prototype to avoid an error.
16635    Use char because int might match the return type of a GCC
16636    builtin and then its argument prototype would still apply.  */
16637 #ifdef __cplusplus
16638 extern "C"
16639 #endif
16640 char dlopen ();
16641 int
16642 main ()
16643 {
16644 return dlopen ();
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 for ac_lib in '' dl; do
16650   if test -z "$ac_lib"; then
16651     ac_res="none required"
16652   else
16653     ac_res=-l$ac_lib
16654     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16655   fi
16656   rm -f conftest.$ac_objext conftest$ac_exeext
16657 if { (ac_try="$ac_link"
16658 case "(($ac_try" in
16659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16660   *) ac_try_echo=$ac_try;;
16661 esac
16662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16663   (eval "$ac_link") 2>conftest.er1
16664   ac_status=$?
16665   grep -v '^ *+' conftest.er1 >conftest.err
16666   rm -f conftest.er1
16667   cat conftest.err >&5
16668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669   (exit $ac_status); } && {
16670          test -z "$ac_c_werror_flag" ||
16671          test ! -s conftest.err
16672        } && test -s conftest$ac_exeext &&
16673        $as_test_x conftest$ac_exeext; then
16674   ac_cv_search_dlopen=$ac_res
16675 else
16676   echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679
16680 fi
16681
16682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16683       conftest$ac_exeext
16684   if test "${ac_cv_search_dlopen+set}" = set; then
16685   break
16686 fi
16687 done
16688 if test "${ac_cv_search_dlopen+set}" = set; then
16689   :
16690 else
16691   ac_cv_search_dlopen=no
16692 fi
16693 rm conftest.$ac_ext
16694 LIBS=$ac_func_search_save_LIBS
16695 fi
16696 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16697 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16698 ac_res=$ac_cv_search_dlopen
16699 if test "$ac_res" != no; then
16700   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16701
16702 fi
16703
16704
16705 # ------------------------------------------
16706 # Where to place working dir
16707 # ------------------------------------------
16708 working_dir=`eval echo ${prefix}/var/bacula/working`
16709
16710 # Check whether --with-working-dir was given.
16711 if test "${with_working_dir+set}" = set; then
16712   withval=$with_working_dir;
16713        if test "x$withval" != "xno" ; then
16714               working_dir=$withval
16715        fi
16716
16717
16718 fi
16719
16720
16721
16722
16723 # ------------------------------------------------------------------
16724 # If the user has not set archivedir, we set our default as /tmp
16725 # ------------------------------------------------------------------
16726 archive_dir=/tmp
16727
16728 # Check whether --with-archivedir was given.
16729 if test "${with_archivedir+set}" = set; then
16730   withval=$with_archivedir;
16731        if test "x$withval" != "xno" ; then
16732               archivedir=$withval
16733        fi
16734
16735
16736 fi
16737
16738
16739
16740
16741
16742
16743 # ------------------------------------------
16744 # Where to place scriptdir (script files)
16745 # ------------------------------------------
16746 scriptdir=`eval echo ${sysconfdir}`
16747
16748 # Check whether --with-scriptdir was given.
16749 if test "${with_scriptdir+set}" = set; then
16750   withval=$with_scriptdir;
16751        if test "x$withval" != "xno" ; then
16752               scriptdir=$withval
16753        fi
16754
16755
16756 fi
16757
16758
16759
16760
16761
16762 # ------------------------------------------
16763 # Where to send dump email
16764 # ------------------------------------------
16765 dump_email=root@localhost
16766
16767 # Check whether --with-dump-email was given.
16768 if test "${with_dump_email+set}" = set; then
16769   withval=$with_dump_email;
16770        if test "x$withval" != "xno" ; then
16771               dump_email=$withval
16772        fi
16773
16774
16775 fi
16776
16777
16778
16779
16780 # ------------------------------------------
16781 # Where to send job email
16782 # ------------------------------------------
16783 job_email=root@localhost
16784
16785 # Check whether --with-job-email was given.
16786 if test "${with_job_email+set}" = set; then
16787   withval=$with_job_email;
16788        if test "x$withval" != "xno" ; then
16789               job_email=$withval
16790        fi
16791
16792
16793 fi
16794
16795
16796
16797
16798 # ------------------------------------------
16799 # Where to find smtp host
16800 # ------------------------------------------
16801 smtp_host=localhost
16802
16803 # Check whether --with-smtp_host was given.
16804 if test "${with_smtp_host+set}" = set; then
16805   withval=$with_smtp_host;
16806        if test "x$withval" != "xno" ; then
16807               smtp_host=$withval
16808        fi
16809
16810
16811 fi
16812
16813
16814
16815
16816
16817 # ------------------------------------
16818 # Where to place pid files
16819 # ------------------------------------
16820 piddir=/var/run
16821
16822 # Check whether --with-pid-dir was given.
16823 if test "${with_pid_dir+set}" = set; then
16824   withval=$with_pid_dir;
16825         if test "x$withval" != "xno" ; then
16826             piddir=$withval
16827         fi
16828
16829
16830 fi
16831
16832
16833 cat >>confdefs.h <<_ACEOF
16834 #define _PATH_BACULA_PIDDIR "$piddir"
16835 _ACEOF
16836
16837
16838
16839
16840 # ------------------------------------
16841 # Where to place subsys "lock file"
16842 # ------------------------------------
16843 subsysdir=/var/run/subsys
16844 if test -d /var/run/subsys; then
16845    subsysdir=/var/run/subsys
16846 elif test -d /var/lock/subsys; then
16847    subsysdir=/var/lock/subsys
16848 else
16849    subsysdir=/var/run/subsys
16850 fi
16851
16852 # Check whether --with-subsys-dir was given.
16853 if test "${with_subsys_dir+set}" = set; then
16854   withval=$with_subsys_dir;
16855         if test "x$withval" != "xno" ; then
16856             subsysdir=$withval
16857         fi
16858
16859
16860 fi
16861
16862
16863
16864
16865
16866
16867 # ------------------------------------
16868 # Where to start assigning ports
16869 # ------------------------------------
16870 baseport=9101
16871
16872 # Check whether --with-baseport was given.
16873 if test "${with_baseport+set}" = set; then
16874   withval=$with_baseport;
16875         if test "x$withval" != "xno" ; then
16876              baseport=$withval
16877         fi
16878
16879
16880 fi
16881
16882
16883
16884 dir_port=`expr $baseport`
16885 fd_port=`expr $baseport + 1`
16886 sd_port=`expr $fd_port + 1`
16887
16888
16889
16890
16891
16892
16893 # ------------------------------------------
16894 # Generate passwords
16895 # ------------------------------------------
16896 dir_password=
16897
16898 # Check whether --with-dir-password was given.
16899 if test "${with_dir_password+set}" = set; then
16900   withval=$with_dir_password;
16901        if test "x$withval" != "xno" ; then
16902            dir_password=$withval
16903        fi
16904
16905
16906 fi
16907
16908
16909 if test "x$dir_password" = "x" ; then
16910    if test "x$OPENSSL" = "xnone" ; then
16911       key=`autoconf/randpass 33`
16912    else
16913       key=`openssl rand -base64 33`
16914    fi
16915    dir_password=$key
16916 fi
16917
16918 fd_password=
16919
16920 # Check whether --with-fd-password was given.
16921 if test "${with_fd_password+set}" = set; then
16922   withval=$with_fd_password;
16923        if test "x$withval" != "xno" ; then
16924            fd_password=$withval
16925        fi
16926
16927
16928 fi
16929
16930
16931 if test "x$fd_password" = "x" ; then
16932    if test "x$OPENSSL" = "xnone" ; then
16933       key=`autoconf/randpass 37`
16934    else
16935       key=`openssl rand -base64 33`
16936    fi
16937    fd_password=$key
16938 fi
16939
16940 sd_password=
16941
16942 # Check whether --with-sd-password was given.
16943 if test "${with_sd_password+set}" = set; then
16944   withval=$with_sd_password;
16945        if test "x$withval" != "xno" ; then
16946            sd_password=$withval
16947        fi
16948
16949
16950 fi
16951
16952
16953 if test "x$sd_password" = "x" ; then
16954    if test "x$OPENSSL" = "xnone" ; then
16955       key=`autoconf/randpass 41`
16956    else
16957       key=`openssl rand -base64 33`
16958    fi
16959    sd_password=$key
16960 fi
16961
16962 mon_dir_password=
16963
16964 # Check whether --with-mon-dir-password was given.
16965 if test "${with_mon_dir_password+set}" = set; then
16966   withval=$with_mon_dir_password;
16967        if test "x$withval" != "xno" ; then
16968            mon_dir_password=$withval
16969        fi
16970
16971
16972 fi
16973
16974
16975 if test "x$mon_dir_password" = "x" ; then
16976    if test "x$OPENSSL" = "xnone" ; then
16977       key=`autoconf/randpass 33`
16978    else
16979       key=`openssl rand -base64 33`
16980    fi
16981    mon_dir_password=$key
16982 fi
16983
16984 mon_fd_password=
16985
16986 # Check whether --with-mon-fd-password was given.
16987 if test "${with_mon_fd_password+set}" = set; then
16988   withval=$with_mon_fd_password;
16989        if test "x$withval" != "xno" ; then
16990            mon_fd_password=$withval
16991        fi
16992
16993
16994 fi
16995
16996
16997 if test "x$mon_fd_password" = "x" ; then
16998    if test "x$OPENSSL" = "xnone" ; then
16999       key=`autoconf/randpass 37`
17000    else
17001       key=`openssl rand -base64 33`
17002    fi
17003    mon_fd_password=$key
17004 fi
17005
17006 mon_sd_password=
17007
17008 # Check whether --with-mon-sd-password was given.
17009 if test "${with_mon_sd_password+set}" = set; then
17010   withval=$with_mon_sd_password;
17011        if test "x$withval" != "xno" ; then
17012            mon_sd_password=$withval
17013        fi
17014
17015
17016 fi
17017
17018
17019 if test "x$mon_sd_password" = "x" ; then
17020    if test "x$OPENSSL" = "xnone" ; then
17021       key=`autoconf/randpass 41`
17022    else
17023       key=`openssl rand -base64 33`
17024    fi
17025    mon_sd_password=$key
17026 fi
17027
17028
17029
17030
17031
17032
17033
17034
17035 #
17036 # Pickup any database name
17037 #
17038 db_name=bacula
17039
17040 # Check whether --with-db_name was given.
17041 if test "${with_db_name+set}" = set; then
17042   withval=$with_db_name;
17043         if test "x$withval" != "x" ; then
17044              db_name=$withval
17045         fi
17046
17047
17048 fi
17049
17050
17051
17052 db_user=bacula
17053
17054 # Check whether --with-db_user was given.
17055 if test "${with_db_user+set}" = set; then
17056   withval=$with_db_user;
17057         if test "x$withval" != "x" ; then
17058              db_user=$withval
17059         fi
17060
17061
17062 fi
17063
17064
17065
17066
17067 #
17068 # Handle users and groups for each daemon
17069 #
17070 dir_user=
17071
17072 # Check whether --with-dir_user was given.
17073 if test "${with_dir_user+set}" = set; then
17074   withval=$with_dir_user;
17075         if test "x$withval" != "x" ; then
17076              dir_user=$withval
17077         fi
17078
17079
17080 fi
17081
17082
17083 dir_group=
17084
17085 # Check whether --with-dir_group was given.
17086 if test "${with_dir_group+set}" = set; then
17087   withval=$with_dir_group;
17088         if test "x$withval" != "x" ; then
17089              dir_group=$withval
17090         fi
17091
17092
17093 fi
17094
17095
17096 sd_user=
17097
17098 # Check whether --with-sd_user was given.
17099 if test "${with_sd_user+set}" = set; then
17100   withval=$with_sd_user;
17101         if test "x$withval" != "x" ; then
17102              sd_user=$withval
17103         fi
17104
17105
17106 fi
17107
17108
17109 sd_group=
17110
17111 # Check whether --with-sd_group was given.
17112 if test "${with_sd_group+set}" = set; then
17113   withval=$with_sd_group;
17114         if test "x$withval" != "x" ; then
17115              sd_group=$withval
17116         fi
17117
17118
17119 fi
17120
17121
17122 fd_user=
17123
17124 # Check whether --with-fd_user was given.
17125 if test "${with_fd_user+set}" = set; then
17126   withval=$with_fd_user;
17127         if test "x$withval" != "x" ; then
17128              fd_user=$withval
17129         fi
17130
17131
17132 fi
17133
17134
17135 fd_group=
17136
17137 # Check whether --with-fd_group was given.
17138 if test "${with_fd_group+set}" = set; then
17139   withval=$with_fd_group;
17140         if test "x$withval" != "x" ; then
17141              fd_group=$withval
17142         fi
17143
17144
17145 fi
17146
17147
17148
17149
17150
17151
17152
17153
17154
17155 #
17156 # allow setting default executable permissions
17157 #
17158 SBINPERM=0754
17159
17160 # Check whether --with-sbin-perm was given.
17161 if test "${with_sbin_perm+set}" = set; then
17162   withval=$with_sbin_perm;
17163         if test "x$withval" != "x" ; then
17164             SBINPERM=$withval
17165         fi
17166
17167
17168 fi
17169
17170
17171
17172
17173 # ------------------------------------------------
17174 # Bacula check for various SQL database engines
17175 # ------------------------------------------------
17176 SQL_LIB=
17177
17178 db_found=no
17179 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17180 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17181
17182 # Check whether --with-postgresql was given.
17183 if test "${with_postgresql+set}" = set; then
17184   withval=$with_postgresql;
17185   if test "$withval" != "no"; then
17186       if test "$db_found" = "yes"; then
17187           { echo "$as_me:$LINENO: result: error" >&5
17188 echo "${ECHO_T}error" >&6; }
17189           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17190 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17191    { (exit 1); exit 1; }; };
17192       fi
17193       if test "$withval" = "yes"; then
17194           PG_CONFIG=`which pg_config`
17195           if test -n "$PG_CONFIG";then
17196               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17197               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17198               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17199           elif test -f /usr/local/include/libpq-fe.h; then
17200               POSTGRESQL_INCDIR=/usr/local/include
17201               if test -d /usr/local/lib64; then
17202                  POSTGRESQL_LIBDIR=/usr/local/lib64
17203               else
17204                  POSTGRESQL_LIBDIR=/usr/local/lib
17205               fi
17206               POSTGRESQL_BINDIR=/usr/local/bin
17207           elif test -f /usr/include/libpq-fe.h; then
17208               POSTGRESQL_INCDIR=/usr/include
17209               if test -d /usr/lib64; then
17210                  POSTGRESQL_LIBDIR=/usr/lib64
17211               else
17212                  POSTGRESQL_LIBDIR=/usr/lib
17213               fi
17214               POSTGRESQL_BINDIR=/usr/bin
17215           elif test -f /usr/include/pgsql/libpq-fe.h; then
17216               POSTGRESQL_INCDIR=/usr/include/pgsql
17217               if test -d /usr/lib64/pgsql; then
17218                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17219               else
17220                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17221               fi
17222               POSTGRESQL_BINDIR=/usr/bin
17223           elif test -f /usr/include/postgresql/libpq-fe.h; then
17224               POSTGRESQL_INCDIR=/usr/include/postgresql
17225               if test -d /usr/lib64/postgresql; then
17226                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17227               else
17228                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17229               fi
17230               POSTGRESQL_BINDIR=/usr/bin
17231           else
17232               { echo "$as_me:$LINENO: result: no" >&5
17233 echo "${ECHO_T}no" >&6; }
17234               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17235 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17236    { (exit 1); exit 1; }; }
17237           fi
17238       elif test -f $withval/include/libpq-fe.h; then
17239           POSTGRESQL_INCDIR=$withval/include
17240           POSTGRESQL_LIBDIR=$withval/lib
17241           POSTGRESQL_BINDIR=$withval/bin
17242       elif test -f $withval/include/postgresql/libpq-fe.h; then
17243           POSTGRESQL_INCDIR=$withval/include/postgresql
17244      if test -d $withval/lib64; then
17245          POSTGRESQL_LIBDIR=$withval/lib64
17246      else
17247          POSTGRESQL_LIBDIR=$withval/lib
17248      fi
17249           POSTGRESQL_BINDIR=$withval/bin
17250       else
17251           { echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6; }
17253           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17254 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17255    { (exit 1); exit 1; }; }
17256       fi
17257       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17258       { echo "$as_me:$LINENO: checking for crypt" >&5
17259 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17260 if test "${ac_cv_func_crypt+set}" = set; then
17261   echo $ECHO_N "(cached) $ECHO_C" >&6
17262 else
17263   cat >conftest.$ac_ext <<_ACEOF
17264 /* confdefs.h.  */
17265 _ACEOF
17266 cat confdefs.h >>conftest.$ac_ext
17267 cat >>conftest.$ac_ext <<_ACEOF
17268 /* end confdefs.h.  */
17269 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17271 #define crypt innocuous_crypt
17272
17273 /* System header to define __stub macros and hopefully few prototypes,
17274     which can conflict with char crypt (); below.
17275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17276     <limits.h> exists even on freestanding compilers.  */
17277
17278 #ifdef __STDC__
17279 # include <limits.h>
17280 #else
17281 # include <assert.h>
17282 #endif
17283
17284 #undef crypt
17285
17286 /* Override any GCC internal prototype to avoid an error.
17287    Use char because int might match the return type of a GCC
17288    builtin and then its argument prototype would still apply.  */
17289 #ifdef __cplusplus
17290 extern "C"
17291 #endif
17292 char crypt ();
17293 /* The GNU C library defines this for functions which it implements
17294     to always fail with ENOSYS.  Some functions are actually named
17295     something starting with __ and the normal name is an alias.  */
17296 #if defined __stub_crypt || defined __stub___crypt
17297 choke me
17298 #endif
17299
17300 int
17301 main ()
17302 {
17303 return crypt ();
17304   ;
17305   return 0;
17306 }
17307 _ACEOF
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (ac_try="$ac_link"
17310 case "(($ac_try" in
17311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312   *) ac_try_echo=$ac_try;;
17313 esac
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315   (eval "$ac_link") 2>conftest.er1
17316   ac_status=$?
17317   grep -v '^ *+' conftest.er1 >conftest.err
17318   rm -f conftest.er1
17319   cat conftest.err >&5
17320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321   (exit $ac_status); } && {
17322          test -z "$ac_c_werror_flag" ||
17323          test ! -s conftest.err
17324        } && test -s conftest$ac_exeext &&
17325        $as_test_x conftest$ac_exeext; then
17326   ac_cv_func_crypt=yes
17327 else
17328   echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17330
17331         ac_cv_func_crypt=no
17332 fi
17333
17334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17335       conftest$ac_exeext conftest.$ac_ext
17336 fi
17337 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17338 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17339 if test $ac_cv_func_crypt = yes; then
17340   :
17341 else
17342   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17343 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17344 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17345   echo $ECHO_N "(cached) $ECHO_C" >&6
17346 else
17347   ac_check_lib_save_LIBS=$LIBS
17348 LIBS="-lcrypt  $LIBS"
17349 cat >conftest.$ac_ext <<_ACEOF
17350 /* confdefs.h.  */
17351 _ACEOF
17352 cat confdefs.h >>conftest.$ac_ext
17353 cat >>conftest.$ac_ext <<_ACEOF
17354 /* end confdefs.h.  */
17355
17356 /* Override any GCC internal prototype to avoid an error.
17357    Use char because int might match the return type of a GCC
17358    builtin and then its argument prototype would still apply.  */
17359 #ifdef __cplusplus
17360 extern "C"
17361 #endif
17362 char crypt ();
17363 int
17364 main ()
17365 {
17366 return crypt ();
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_link") 2>conftest.er1
17379   ac_status=$?
17380   grep -v '^ *+' conftest.er1 >conftest.err
17381   rm -f conftest.er1
17382   cat conftest.err >&5
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } && {
17385          test -z "$ac_c_werror_flag" ||
17386          test ! -s conftest.err
17387        } && test -s conftest$ac_exeext &&
17388        $as_test_x conftest$ac_exeext; then
17389   ac_cv_lib_crypt_crypt=yes
17390 else
17391   echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394         ac_cv_lib_crypt_crypt=no
17395 fi
17396
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398       conftest$ac_exeext conftest.$ac_ext
17399 LIBS=$ac_check_lib_save_LIBS
17400 fi
17401 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17402 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17403 if test $ac_cv_lib_crypt_crypt = yes; then
17404   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17405 fi
17406
17407 fi
17408
17409       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17410       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17411       SQL_BINDIR=$POSTGRESQL_BINDIR
17412       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17413
17414       cat >>confdefs.h <<\_ACEOF
17415 #define HAVE_POSTGRESQL 1
17416 _ACEOF
17417
17418       { echo "$as_me:$LINENO: result: yes" >&5
17419 echo "${ECHO_T}yes" >&6; }
17420       db_found=yes
17421       support_postgresql=yes
17422       db_type=PostgreSQL
17423       DB_TYPE=postgresql
17424   else
17425       { echo "$as_me:$LINENO: result: no" >&5
17426 echo "${ECHO_T}no" >&6; }
17427   fi
17428
17429 else
17430
17431   { echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6; }
17433
17434 fi
17435
17436
17437
17438
17439
17440
17441
17442
17443 db_found=no
17444 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17445 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17446
17447 # Check whether --with-mysql was given.
17448 if test "${with_mysql+set}" = set; then
17449   withval=$with_mysql;
17450   if test "$withval" != "no"; then
17451         if test "$withval" = "yes"; then
17452            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17453                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17454                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17455                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17456                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17457                    else
17458                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17459                    fi
17460                    MYSQL_BINDIR=/usr/local/mysql/bin
17461            elif test -f /usr/include/mysql/mysql.h; then
17462                    MYSQL_INCDIR=/usr/include/mysql
17463                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17464                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17465                            MYSQL_LIBDIR=/usr/lib64/mysql
17466                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17467                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17468                            MYSQL_LIBDIR=/usr/lib/mysql
17469                    else
17470                            MYSQL_LIBDIR=/usr/lib
17471                    fi
17472                    MYSQL_BINDIR=/usr/bin
17473            elif test -f /usr/include/mysql.h; then
17474                    MYSQL_INCDIR=/usr/include
17475                    if test -f /usr/lib64/libmysqlclient_r.a \
17476                         -o -f /usr/lib64/libmysqlclient_r.so; then
17477                            MYSQL_LIBDIR=/usr/lib64
17478                    else
17479                            MYSQL_LIBDIR=/usr/lib
17480                    fi
17481                    MYSQL_BINDIR=/usr/bin
17482            elif test -f /usr/local/include/mysql/mysql.h; then
17483                    MYSQL_INCDIR=/usr/local/include/mysql
17484                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17485                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17486                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17487                    else
17488                            MYSQL_LIBDIR=/usr/local/lib/mysql
17489                    fi
17490                    MYSQL_BINDIR=/usr/local/bin
17491            elif test -f /usr/local/include/mysql.h; then
17492                    MYSQL_INCDIR=/usr/local/include
17493                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17494                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17495                            MYSQL_LIBDIR=/usr/local/lib64
17496                    else
17497                            MYSQL_LIBDIR=/usr/local/lib
17498                    fi
17499                    MYSQL_BINDIR=/usr/local/bin
17500            else
17501               { echo "$as_me:$LINENO: result: no" >&5
17502 echo "${ECHO_T}no" >&6; }
17503               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17504 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17505    { (exit 1); exit 1; }; }
17506            fi
17507         else
17508            if test -f $withval/include/mysql/mysql.h; then
17509               MYSQL_INCDIR=$withval/include/mysql
17510               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17511                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17512                  MYSQL_LIBDIR=$withval/lib64/mysql
17513               else
17514                  MYSQL_LIBDIR=$withval/lib/mysql
17515                  # Solaris ...
17516                  if test -f $withval/lib/libmysqlclient_r.so; then
17517                     MYSQL_LIBDIR=$withval/lib
17518                  fi
17519               fi
17520               MYSQL_BINDIR=$withval/bin
17521            elif test -f $withval/include/mysql.h; then
17522               MYSQL_INCDIR=$withval/include
17523               if test -f $withval/lib64/libmysqlclient_r.a \
17524                    -o -f $withval/lib64/libmysqlclient_r.so; then
17525                  MYSQL_LIBDIR=$withval/lib64
17526               else
17527                  MYSQL_LIBDIR=$withval/lib
17528               fi
17529               MYSQL_BINDIR=$withval/bin
17530            else
17531               { echo "$as_me:$LINENO: result: no" >&5
17532 echo "${ECHO_T}no" >&6; }
17533               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17534 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17535    { (exit 1); exit 1; }; }
17536            fi
17537         fi
17538     SQL_INCLUDE=-I$MYSQL_INCDIR
17539     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17540          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17541        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17542        cat >>confdefs.h <<\_ACEOF
17543 #define HAVE_THREAD_SAFE_MYSQL 1
17544 _ACEOF
17545
17546     fi
17547     SQL_BINDIR=$MYSQL_BINDIR
17548     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17549
17550     cat >>confdefs.h <<\_ACEOF
17551 #define HAVE_MYSQL 1
17552 _ACEOF
17553
17554     { echo "$as_me:$LINENO: result: yes" >&5
17555 echo "${ECHO_T}yes" >&6; }
17556     db_found=yes
17557     support_mysql=yes
17558     db_type=MySQL
17559     DB_TYPE=mysql
17560
17561   else
17562         { echo "$as_me:$LINENO: result: no" >&5
17563 echo "${ECHO_T}no" >&6; }
17564   fi
17565
17566
17567 fi
17568
17569
17570
17571 # Check whether --with-embedded-mysql was given.
17572 if test "${with_embedded_mysql+set}" = set; then
17573   withval=$with_embedded_mysql;
17574   if test "$withval" != "no"; then
17575         if test "$withval" = "yes"; then
17576                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17577                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17578                         if test -d /usr/local/mysql/lib64/mysql; then
17579                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17580                         else
17581                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17582                         fi
17583                         MYSQL_BINDIR=/usr/local/mysql/bin
17584                 elif test -f /usr/include/mysql/mysql.h; then
17585                         MYSQL_INCDIR=/usr/include/mysql
17586                         if test -d /usr/lib64/mysql; then
17587                                 MYSQL_LIBDIR=/usr/lib64/mysql
17588                         else
17589                                 MYSQL_LIBDIR=/usr/lib/mysql
17590                         fi
17591                         MYSQL_BINDIR=/usr/bin
17592                 elif test -f /usr/include/mysql.h; then
17593                         MYSQL_INCDIR=/usr/include
17594                         if test -d /usr/lib64; then
17595                                 MYSQL_LIBDIR=/usr/lib64
17596                         else
17597                                 MYSQL_LIBDIR=/usr/lib
17598                         fi
17599                         MYSQL_BINDIR=/usr/bin
17600                 elif test -f /usr/local/include/mysql/mysql.h; then
17601                         MYSQL_INCDIR=/usr/local/include/mysql
17602                         if test -d /usr/local/lib64/mysql; then
17603                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17604                         else
17605                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17606                         fi
17607                         MYSQL_BINDIR=/usr/local/bin
17608                 elif test -f /usr/local/include/mysql.h; then
17609                         MYSQL_INCDIR=/usr/local/include
17610                         if test -d /usr/local/lib64; then
17611                                 MYSQL_LIBDIR=/usr/local/lib64
17612                         else
17613                                 MYSQL_LIBDIR=/usr/local/lib
17614                         fi
17615                         MYSQL_BINDIR=/usr/local/bin
17616                 else
17617                    { echo "$as_me:$LINENO: result: no" >&5
17618 echo "${ECHO_T}no" >&6; }
17619                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17620 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17621    { (exit 1); exit 1; }; }
17622                 fi
17623         else
17624                 if test -f $withval/include/mysql/mysql.h; then
17625                         MYSQL_INCDIR=$withval/include/mysql
17626                         if test -d $withval/lib64/mysql; then
17627                                 MYSQL_LIBDIR=$withval/lib64/mysql
17628                         else
17629                                 MYSQL_LIBDIR=$withval/lib/mysql
17630                         fi
17631                         MYSQL_BINDIR=$withval/bin
17632                 elif test -f $withval/include/mysql.h; then
17633                         MYSQL_INCDIR=$withval/include
17634                         if test -d $withval/lib64; then
17635                                 MYSQL_LIBDIR=$withval/lib64
17636                         else
17637                                 MYSQL_LIBDIR=$withval/lib
17638                         fi
17639                         MYSQL_BINDIR=$withval/bin
17640                 else
17641                    { echo "$as_me:$LINENO: result: no" >&5
17642 echo "${ECHO_T}no" >&6; }
17643                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17644 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17645    { (exit 1); exit 1; }; }
17646                 fi
17647         fi
17648     SQL_INCLUDE=-I$MYSQL_INCDIR
17649     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17650     SQL_BINDIR=$MYSQL_BINDIR
17651     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17652
17653     cat >>confdefs.h <<\_ACEOF
17654 #define HAVE_MYSQL 1
17655 _ACEOF
17656
17657     cat >>confdefs.h <<\_ACEOF
17658 #define HAVE_EMBEDDED_MYSQL 1
17659 _ACEOF
17660
17661     { echo "$as_me:$LINENO: result: yes" >&5
17662 echo "${ECHO_T}yes" >&6; }
17663     db_found=yes
17664     support_mysql=yes
17665     db_type=MySQL
17666     DB_TYPE=mysql
17667
17668   else
17669         { echo "$as_me:$LINENO: result: no" >&5
17670 echo "${ECHO_T}no" >&6; }
17671   fi
17672
17673
17674 fi
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685 db_found=no
17686 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17687 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17688
17689 # Check whether --with-sqlite3 was given.
17690 if test "${with_sqlite3+set}" = set; then
17691   withval=$with_sqlite3;
17692   if test "$withval" != "no"; then
17693      if test "$withval" = "yes"; then
17694         if test -f /usr/local/include/sqlite3.h; then
17695            SQLITE_INCDIR=/usr/local/include
17696            if test -d /usr/local/lib64; then
17697               SQLITE_LIBDIR=/usr/local/lib64
17698            else
17699               SQLITE_LIBDIR=/usr/local/lib
17700            fi
17701            SQLITE_BINDIR=/usr/local/bin
17702         elif test -f /usr/include/sqlite3.h; then
17703            SQLITE_INCDIR=/usr/include
17704            if test -d /usr/lib64; then
17705               SQLITE_LIBDIR=/usr/lib64
17706            else
17707               SQLITE_LIBDIR=/usr/lib
17708            fi
17709            SQLITE_BINDIR=/usr/bin
17710         elif test -f $prefix/include/sqlite3.h; then
17711            SQLITE_INCDIR=$prefix/include
17712            if test -d $prefix/lib64; then
17713               SQLITE_LIBDIR=$prefix/lib64
17714            else
17715               SQLITE_LIBDIR=$prefix/lib
17716            fi
17717            SQLITE_BINDIR=$prefix/bin
17718         else
17719            { echo "$as_me:$LINENO: result: no" >&5
17720 echo "${ECHO_T}no" >&6; }
17721            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17722 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17723    { (exit 1); exit 1; }; }
17724         fi
17725      else
17726         if test -f $withval/sqlite3.h; then
17727            SQLITE_INCDIR=$withval
17728            SQLITE_LIBDIR=$withval
17729            SQLITE_BINDIR=$withval
17730         elif test -f $withval/include/sqlite3.h; then
17731            SQLITE_INCDIR=$withval/include
17732            if test -d $withval/lib64; then
17733               SQLITE_LIBDIR=$withval/lib64
17734            else
17735               SQLITE_LIBDIR=$withval/lib
17736            fi
17737            SQLITE_BINDIR=$withval/bin
17738         else
17739            { echo "$as_me:$LINENO: result: no" >&5
17740 echo "${ECHO_T}no" >&6; }
17741            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17742 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17743    { (exit 1); exit 1; }; }
17744         fi
17745      fi
17746      SQL_INCLUDE=-I$SQLITE_INCDIR
17747      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17748      SQL_BINDIR=$SQLITE_BINDIR
17749      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17750
17751      cat >>confdefs.h <<\_ACEOF
17752 #define HAVE_SQLITE3 1
17753 _ACEOF
17754
17755      { echo "$as_me:$LINENO: result: yes" >&5
17756 echo "${ECHO_T}yes" >&6; }
17757      db_found=yes
17758      support_sqlite3=yes
17759      db_type=SQLite3
17760      DB_TYPE=sqlite3
17761
17762   else
17763      { echo "$as_me:$LINENO: result: no" >&5
17764 echo "${ECHO_T}no" >&6; }
17765   fi
17766
17767 else
17768
17769   { echo "$as_me:$LINENO: result: no" >&5
17770 echo "${ECHO_T}no" >&6; }
17771
17772 fi
17773
17774
17775
17776
17777
17778
17779
17780
17781 db_found=no
17782 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17783 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17784
17785 # Check whether --with-sqlite was given.
17786 if test "${with_sqlite+set}" = set; then
17787   withval=$with_sqlite;
17788   if test "$withval" != "no"; then
17789      if test "$withval" = "yes"; then
17790         if test -f /usr/local/include/sqlite.h; then
17791            SQLITE_INCDIR=/usr/local/include
17792            if test -d /usr/local/lib64; then
17793               SQLITE_LIBDIR=/usr/local/lib64
17794            else
17795               SQLITE_LIBDIR=/usr/local/lib
17796            fi
17797            SQLITE_BINDIR=/usr/local/bin
17798         elif test -f /usr/include/sqlite.h; then
17799            SQLITE_INCDIR=/usr/include
17800            if test -d /usr/lib64; then
17801               SQLITE_LIBDIR=/usr/lib64
17802            else
17803               SQLITE_LIBDIR=/usr/lib
17804            fi
17805            SQLITE_BINDIR=/usr/bin
17806         elif test -f $prefix/include/sqlite.h; then
17807            SQLITE_INCDIR=$prefix/include
17808            if test -d $prefix/lib64; then
17809               SQLITE_LIBDIR=$prefix/lib64
17810            else
17811               SQLITE_LIBDIR=$prefix/lib
17812            fi
17813            SQLITE_BINDIR=$prefix/bin
17814         else
17815            { echo "$as_me:$LINENO: result: no" >&5
17816 echo "${ECHO_T}no" >&6; }
17817            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17818 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17819    { (exit 1); exit 1; }; }
17820         fi
17821      else
17822         if test -f $withval/sqlite.h; then
17823            SQLITE_INCDIR=$withval
17824            SQLITE_LIBDIR=$withval
17825            SQLITE_BINDIR=$withval
17826         elif test -f $withval/include/sqlite.h; then
17827            SQLITE_INCDIR=$withval/include
17828            if test -d $withval/lib64; then
17829               SQLITE_LIBDIR=$withval/lib64
17830            else
17831               SQLITE_LIBDIR=$withval/lib
17832            fi
17833            SQLITE_BINDIR=$withval/bin
17834         else
17835            { echo "$as_me:$LINENO: result: no" >&5
17836 echo "${ECHO_T}no" >&6; }
17837            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17838 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17839    { (exit 1); exit 1; }; }
17840         fi
17841      fi
17842      SQL_INCLUDE=-I$SQLITE_INCDIR
17843      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17844      SQL_BINDIR=$SQLITE_BINDIR
17845      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17846
17847      cat >>confdefs.h <<\_ACEOF
17848 #define HAVE_SQLITE 1
17849 _ACEOF
17850
17851      { echo "$as_me:$LINENO: result: yes" >&5
17852 echo "${ECHO_T}yes" >&6; }
17853      db_found=yes
17854      support_sqlite=yes
17855      db_type=SQLite
17856      DB_TYPE=sqlite
17857
17858   else
17859      { echo "$as_me:$LINENO: result: no" >&5
17860 echo "${ECHO_T}no" >&6; }
17861   fi
17862
17863 else
17864
17865   { echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6; }
17867
17868 fi
17869
17870
17871
17872
17873
17874
17875
17876
17877 db_found=no
17878 { echo "$as_me:$LINENO: checking for DBI support" >&5
17879 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17880
17881 # Check whether --with-dbi was given.
17882 if test "${with_dbi+set}" = set; then
17883   withval=$with_dbi;
17884   if test "$withval" != "no"; then
17885      if test "$withval" = "yes"; then
17886         if test -f /usr/local/include/dbi/dbi.h; then
17887            DBI_INCDIR=/usr/local/dbi/include
17888            if test -d /usr/local/lib64; then
17889               DBI_LIBDIR=/usr/local/lib64
17890            else
17891               DBI_LIBDIR=/usr/local/lib
17892            fi
17893            DBI_BINDIR=/usr/local/bin
17894         elif test -f /usr/include/dbi/dbi.h; then
17895            DBI_INCDIR=/usr/include
17896            if test -d /usr/lib64; then
17897               DBI_LIBDIR=/usr/lib64
17898            else
17899               DBI_LIBDIR=/usr/lib
17900            fi
17901            DBI_BINDIR=/usr/bin
17902         elif test -f $prefix/include/dbi/dbi.h; then
17903            DBI_INCDIR=$prefix/include
17904            if test -d $prefix/lib64; then
17905               DBI_LIBDIR=$prefix/lib64
17906            else
17907               DBI_LIBDIR=$prefix/lib
17908            fi
17909            DBI_BINDIR=$prefix/bin
17910         else
17911            { echo "$as_me:$LINENO: result: no" >&5
17912 echo "${ECHO_T}no" >&6; }
17913            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17914 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17915    { (exit 1); exit 1; }; }
17916         fi
17917         if test -d /usr/local/lib/dbd; then
17918            DRIVERDIR=/usr/local/lib/dbd
17919            if test -d /usr/local/lib64/dbd; then
17920               DRIVERDIR=/usr/local/lib64/dbd
17921            else
17922               DRIVERDIR=/usr/local/lib/dbd
17923            fi
17924         elif test -d /usr/lib/dbd; then
17925            DRIVERDIR=/usr/lib/dbd
17926            if test -d /usr/lib64/dbd; then
17927               DRIVERDIR=/usr/lib64/dbd
17928            else
17929               DRIVERDIR=/usr/lib/dbd
17930            fi
17931         elif test -d $prefix/lib/dbd; then
17932            if test -d $prefix/lib64/dbd; then
17933               DRIVERDIR=$prefix/lib64/dbd
17934            else
17935               DRIVERDIR=$prefix/lib/dbd
17936            fi
17937         else
17938            { echo "$as_me:$LINENO: result: no" >&5
17939 echo "${ECHO_T}no" >&6; }
17940            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17941 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17942    { (exit 1); exit 1; }; }
17943         fi
17944      else
17945         if test -f $withval/dbi.h; then
17946            DBI_INCDIR=$withval
17947            DBI_LIBDIR=$withval
17948            DBI_BINDIR=$withval
17949         elif test -f $withval/include/dbi/dbi.h; then
17950            DBI_INCDIR=$withval/include
17951            if test -d $withval/lib64; then
17952               DBI_LIBDIR=$withval/lib64
17953            else
17954               DBI_LIBDIR=$withval/lib
17955            fi
17956            DBI_BINDIR=$withval/bin
17957         else
17958            { echo "$as_me:$LINENO: result: no" >&5
17959 echo "${ECHO_T}no" >&6; }
17960            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17961 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17962    { (exit 1); exit 1; }; }
17963         fi
17964         if test -d $withval/dbd; then
17965            DRIVERDIR=$withval/dbd
17966         elif test -d $withval/lib/; then
17967            if test -d $withval/lib64/dbd; then
17968               DRIVERDIR=$withval/lib64/dbd
17969            else
17970               DRIVERDIR=$withval/lib/dbd
17971            fi
17972         else
17973            { echo "$as_me:$LINENO: result: no" >&5
17974 echo "${ECHO_T}no" >&6; }
17975            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17976 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17977    { (exit 1); exit 1; }; }
17978         fi
17979      fi
17980      SQL_INCLUDE=-I$DBI_INCDIR
17981      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17982      SQL_BINDIR=$DBI_BINDIR
17983      SQL_LIB=$DBI_LIBDIR/libdbi.a
17984      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
17985
17986
17987 cat >>confdefs.h <<\_ACEOF
17988 #define HAVE_DBI 1
17989 _ACEOF
17990
17991      { echo "$as_me:$LINENO: result: yes" >&5
17992 echo "${ECHO_T}yes" >&6; }
17993      db_found=yes
17994      support_dbi=yes
17995      db_type=DBI
17996      DB_TYPE=dbi
17997
17998   else
17999      { echo "$as_me:$LINENO: result: no" >&5
18000 echo "${ECHO_T}no" >&6; }
18001   fi
18002
18003 else
18004
18005   { echo "$as_me:$LINENO: result: no" >&5
18006 echo "${ECHO_T}no" >&6; }
18007
18008 fi
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018 db_found=no
18019 db_prog=no
18020 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18021 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18022
18023 # Check whether --with-dbi-driver was given.
18024 if test "${with_dbi_driver+set}" = set; then
18025   withval=$with_dbi_driver;
18026   if test "$withval" != "no"; then
18027      case $withval in
18028         "mysql")
18029            db_prog="mysql"
18030            if test -f /usr/local/mysql/bin/mysql; then
18031               SQL_BINDIR=/usr/local/mysql/bin
18032               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18033                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18034                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18035               else
18036                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
18037               fi
18038            elif test -f /usr/bin/mysql; then
18039               SQL_BINDIR=/usr/bin
18040               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18041                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18042                   SQL_LIBDIR=/usr/lib64/mysql
18043               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18044                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18045                   SQL_LIBDIR=/usr/lib/mysql
18046               else
18047                   SQL_LIBDIR=/usr/lib
18048               fi
18049            elif test -f /usr/local/bin/mysql; then
18050               SQL_BINDIR=/usr/local/bin
18051               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18052                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18053                   SQL_LIBDIR=/usr/local/lib64/mysql
18054               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18055                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18056                   SQL_LIBDIR=/usr/local/lib/mysql
18057               else
18058                   SQL_LIBDIR=/usr/local/lib
18059               fi
18060            elif test -f $withval/bin/mysql; then
18061               SQL_BINDIR=$withval/bin
18062               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18063                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18064                   SQL_LIBDIR=$withval/lib64/mysql
18065               elif test -f $withval/lib64/libmysqlclient_r.a \
18066                   -o -f $withval/lib64/libmysqlclient_r.so; then
18067                   SQL_LIBDIR=$withval/lib64
18068               elif test -f $withval/lib/libmysqlclient_r.a \
18069                   -o -f $withval/lib/libmysqlclient_r.so; then
18070                   SQL_LIBDIR=$withval/lib/
18071               else
18072                   SQL_LIBDIR=$withval/lib/mysql
18073               fi
18074            else
18075               { echo "$as_me:$LINENO: result: no" >&5
18076 echo "${ECHO_T}no" >&6; }
18077               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18078 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18079    { (exit 1); exit 1; }; }
18080            fi
18081            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18082         ;;
18083         "postgresql")
18084            db_prog="postgresql"
18085            PG_CONFIG=`which pg_config`
18086            if test -n "$PG_CONFIG"; then
18087               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18088               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18089            elif test -f /usr/local/bin/psql; then
18090               SQL_BINDIR=/usr/local/bin
18091               if test -d /usr/local/lib64; then
18092                  SQL_LIBDIR=/usr/local/lib64
18093               else
18094                  SQL_LIBDIR=/usr/local/lib
18095               fi
18096            elif test -f /usr/bin/psql; then
18097               SQL_BINDIR=/usr/local/bin
18098               if test -d /usr/lib64/postgresql; then
18099                  SQL_LIBDIR=/usr/lib64/postgresql
18100               elif test -d /usr/lib/postgresql; then
18101                  SQL_LIBDIR=/usr/lib/postgresql
18102               elif test -d /usr/lib64; then
18103                  SQL_LIBDIR=/usr/lib64
18104               else
18105                  SQL_LIBDIR=/usr/lib
18106               fi
18107            elif test -f $withval/bin/psql; then
18108               SQL_BINDIR=$withval/bin
18109               if test -d $withval/lib64; then
18110                  SQL_LIBDIR=$withval/lib64
18111               else
18112                  SQL_LIBDIR=$withval/lib
18113               fi
18114            else
18115               { echo "$as_me:$LINENO: result: no" >&5
18116 echo "${ECHO_T}no" >&6; }
18117               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18118 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18119    { (exit 1); exit 1; }; }
18120            fi
18121            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18122         ;;
18123         *)
18124            { echo "$as_me:$LINENO: result: no" >&5
18125 echo "${ECHO_T}no" >&6; }
18126            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18127 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18128    { (exit 1); exit 1; }; }
18129         ;;
18130      esac
18131
18132      { echo "$as_me:$LINENO: result: yes" >&5
18133 echo "${ECHO_T}yes" >&6; }
18134      DB_PROG=$db_prog
18135   else
18136      { echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6; }
18138   fi
18139
18140 else
18141
18142   { echo "$as_me:$LINENO: result: no" >&5
18143 echo "${ECHO_T}no" >&6; }
18144
18145 fi
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156 # -------------------------------------------
18157 # enable batch attribute DB insert (default on)
18158 # -------------------------------------------
18159 support_batch_insert=no
18160 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18161 pkg=$?
18162 if test $pkg = 0; then
18163    support_batch_insert=yes
18164    # Check whether --enable-batch-insert was given.
18165 if test "${enable_batch_insert+set}" = set; then
18166   enableval=$enable_batch_insert; if test x$enableval = xno; then
18167        support_batch_insert=no
18168       else
18169        support_batch_insert=yes
18170      fi
18171 fi
18172
18173 fi
18174
18175 # Check if postgresql support batch mode
18176 if test x$DB_TYPE = xpostgresql; then
18177    A=`nm $SQL_LIB | grep PQputCopyData`
18178    pkg=$?
18179    if test $pkg != 0; then
18180       support_batch_insert=no
18181    fi
18182 fi
18183
18184 if test x$DB_TYPE = xdbi; then
18185    DB_TYPE=$DB_PROG
18186    db_type=$DB_PROG
18187    pkg=1
18188    # Check for batch insert
18189    if test $DB_PROG = postgresql; then
18190       A=`nm $DB_PROG_LIB | grep PQputCopyData`
18191       pkg=$?
18192    fi
18193
18194    if test $DB_PROG = mysql; then
18195       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18196       pkg=$?
18197    fi
18198
18199    if test $pkg = 0; then
18200       # Check whether --enable-batch-insert was given.
18201 if test "${enable_batch_insert+set}" = set; then
18202   enableval=$enable_batch_insert; if test x$enableval = xno; then
18203          support_batch_insert=no
18204        else
18205          support_batch_insert=yes
18206       fi
18207 fi
18208
18209    fi
18210 fi
18211
18212 if test $support_batch_insert = yes ; then
18213
18214 cat >>confdefs.h <<\_ACEOF
18215 #define HAVE_BATCH_FILE_INSERT 1
18216 _ACEOF
18217
18218 fi
18219
18220
18221 cat >>confdefs.h <<\_ACEOF
18222 #define PROTOTYPES 1
18223 _ACEOF
18224
18225
18226 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18227     if test -z "$CCOPTS"; then
18228         CCOPTS='-g -O2 -Wall'
18229     fi
18230     CFLAGS="$CCOPTS"
18231 fi
18232
18233
18234
18235
18236 largefile_support="no"
18237
18238    # Check whether --enable-largefile was given.
18239 if test "${enable_largefile+set}" = set; then
18240   enableval=$enable_largefile;
18241 fi
18242
18243    if test "$enable_largefile" != no; then
18244      if test -n "$ac_tool_prefix"; then
18245   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18246 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18249 if test "${ac_cv_prog_GETCONF+set}" = set; then
18250   echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252   if test -n "$GETCONF"; then
18253   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18254 else
18255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18256 for as_dir in $PATH
18257 do
18258   IFS=$as_save_IFS
18259   test -z "$as_dir" && as_dir=.
18260   for ac_exec_ext in '' $ac_executable_extensions; do
18261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18262     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18264     break 2
18265   fi
18266 done
18267 done
18268 IFS=$as_save_IFS
18269
18270 fi
18271 fi
18272 GETCONF=$ac_cv_prog_GETCONF
18273 if test -n "$GETCONF"; then
18274   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18275 echo "${ECHO_T}$GETCONF" >&6; }
18276 else
18277   { echo "$as_me:$LINENO: result: no" >&5
18278 echo "${ECHO_T}no" >&6; }
18279 fi
18280
18281
18282 fi
18283 if test -z "$ac_cv_prog_GETCONF"; then
18284   ac_ct_GETCONF=$GETCONF
18285   # Extract the first word of "getconf", so it can be a program name with args.
18286 set dummy getconf; ac_word=$2
18287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18289 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18290   echo $ECHO_N "(cached) $ECHO_C" >&6
18291 else
18292   if test -n "$ac_ct_GETCONF"; then
18293   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18294 else
18295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18296 for as_dir in $PATH
18297 do
18298   IFS=$as_save_IFS
18299   test -z "$as_dir" && as_dir=.
18300   for ac_exec_ext in '' $ac_executable_extensions; do
18301   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18302     ac_cv_prog_ac_ct_GETCONF="getconf"
18303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18304     break 2
18305   fi
18306 done
18307 done
18308 IFS=$as_save_IFS
18309
18310 fi
18311 fi
18312 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18313 if test -n "$ac_ct_GETCONF"; then
18314   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18315 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18316 else
18317   { echo "$as_me:$LINENO: result: no" >&5
18318 echo "${ECHO_T}no" >&6; }
18319 fi
18320
18321   if test "x$ac_ct_GETCONF" = x; then
18322     GETCONF=""
18323   else
18324     case $cross_compiling:$ac_tool_warned in
18325 yes:)
18326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18327 whose name does not start with the host triplet.  If you think this
18328 configuration is useful to you, please write to autoconf@gnu.org." >&5
18329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18330 whose name does not start with the host triplet.  If you think this
18331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18332 ac_tool_warned=yes ;;
18333 esac
18334     GETCONF=$ac_ct_GETCONF
18335   fi
18336 else
18337   GETCONF="$ac_cv_prog_GETCONF"
18338 fi
18339
18340      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18341 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18342 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18343   echo $ECHO_N "(cached) $ECHO_C" >&6
18344 else
18345   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18346         ac_cv_sys_largefile_CFLAGS=no
18347         case "$host_os" in
18348            # IRIX 6.2 and later require cc -n32.
18349            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18350              if test "$GCC" != yes; then
18351                ac_cv_sys_largefile_CFLAGS=-n32
18352              fi
18353              ac_save_CC="$CC"
18354              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18355              cat >conftest.$ac_ext <<_ACEOF
18356 /* confdefs.h.  */
18357 _ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h.  */
18361
18362 int
18363 main ()
18364 {
18365
18366   ;
18367   return 0;
18368 }
18369 _ACEOF
18370 rm -f conftest.$ac_objext conftest$ac_exeext
18371 if { (ac_try="$ac_link"
18372 case "(($ac_try" in
18373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18374   *) ac_try_echo=$ac_try;;
18375 esac
18376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18377   (eval "$ac_link") 2>conftest.er1
18378   ac_status=$?
18379   grep -v '^ *+' conftest.er1 >conftest.err
18380   rm -f conftest.er1
18381   cat conftest.err >&5
18382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383   (exit $ac_status); } && {
18384          test -z "$ac_c_werror_flag" ||
18385          test ! -s conftest.err
18386        } && test -s conftest$ac_exeext &&
18387        $as_test_x conftest$ac_exeext; then
18388   :
18389 else
18390   echo "$as_me: failed program was:" >&5
18391 sed 's/^/| /' conftest.$ac_ext >&5
18392
18393         ac_cv_sys_largefile_CFLAGS=no
18394 fi
18395
18396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18397       conftest$ac_exeext conftest.$ac_ext
18398              CC="$ac_save_CC"
18399            esac
18400       }
18401 fi
18402 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18403 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18404      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18405 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18406 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18407   echo $ECHO_N "(cached) $ECHO_C" >&6
18408 else
18409   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18410         ac_cv_sys_largefile_LDFLAGS=no
18411
18412       }
18413 fi
18414 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18415 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18416      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18417 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18418 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18419   echo $ECHO_N "(cached) $ECHO_C" >&6
18420 else
18421   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18422         ac_cv_sys_largefile_LIBS=no
18423
18424       }
18425 fi
18426 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18427 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18428
18429      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18430        case "$ac_flag" in
18431        no) ;;
18432        -D_FILE_OFFSET_BITS=*) ;;
18433        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18434        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18435        -D?* | -I?*)
18436          case "$ac_flag" in
18437    no) ;;
18438    ?*)
18439      case "$CPPFLAGS" in
18440      '') CPPFLAGS="$ac_flag" ;;
18441      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18442      esac ;;
18443    esac ;;
18444        *)
18445          case "$ac_flag" in
18446    no) ;;
18447    ?*)
18448      case "$CFLAGS" in
18449      '') CFLAGS="$ac_flag" ;;
18450      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18451      esac ;;
18452    esac ;;
18453        esac
18454      done
18455      case "$ac_cv_sys_largefile_LDFLAGS" in
18456    no) ;;
18457    ?*)
18458      case "$LDFLAGS" in
18459      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18460      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18461      esac ;;
18462    esac
18463      case "$ac_cv_sys_largefile_LIBS" in
18464    no) ;;
18465    ?*)
18466      case "$LIBS" in
18467      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18468      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18469      esac ;;
18470    esac
18471      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18472 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18473 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18474   echo $ECHO_N "(cached) $ECHO_C" >&6
18475 else
18476   ac_cv_sys_file_offset_bits=no
18477       ac_cv_sys_file_offset_bits=64
18478       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18479         case "$ac_flag" in
18480         -D_FILE_OFFSET_BITS)
18481           ac_cv_sys_file_offset_bits=1 ;;
18482         -D_FILE_OFFSET_BITS=*)
18483           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18484         esac
18485       done
18486
18487 fi
18488 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18489 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18490    if test "$ac_cv_sys_file_offset_bits" != no; then
18491
18492 cat >>confdefs.h <<_ACEOF
18493 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18494 _ACEOF
18495
18496    fi
18497      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18498 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18499 if test "${ac_cv_sys_largefile_source+set}" = set; then
18500   echo $ECHO_N "(cached) $ECHO_C" >&6
18501 else
18502   ac_cv_sys_largefile_source=no
18503       ac_cv_sys_largefile_source=1
18504       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18505         case "$ac_flag" in
18506         -D_LARGEFILE_SOURCE)
18507           ac_cv_sys_largefile_source=1 ;;
18508         -D_LARGEFILE_SOURCE=*)
18509           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18510         esac
18511       done
18512
18513 fi
18514 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18515 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18516    if test "$ac_cv_sys_largefile_source" != no; then
18517
18518 cat >>confdefs.h <<_ACEOF
18519 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18520 _ACEOF
18521
18522    fi
18523      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18524 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18525 if test "${ac_cv_sys_large_files+set}" = set; then
18526   echo $ECHO_N "(cached) $ECHO_C" >&6
18527 else
18528   ac_cv_sys_large_files=no
18529       ac_cv_sys_large_files=1
18530       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18531         case "$ac_flag" in
18532         -D_LARGE_FILES)
18533           ac_cv_sys_large_files=1 ;;
18534         -D_LARGE_FILES=*)
18535           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18536         esac
18537       done
18538
18539 fi
18540 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18541 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18542    if test "$ac_cv_sys_large_files" != no; then
18543
18544 cat >>confdefs.h <<_ACEOF
18545 #define _LARGE_FILES $ac_cv_sys_large_files
18546 _ACEOF
18547
18548    fi
18549    fi
18550
18551
18552
18553 { echo "$as_me:$LINENO: checking for X" >&5
18554 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18555
18556
18557 # Check whether --with-x was given.
18558 if test "${with_x+set}" = set; then
18559   withval=$with_x;
18560 fi
18561
18562 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18563 if test "x$with_x" = xno; then
18564   # The user explicitly disabled X.
18565   have_x=disabled
18566 else
18567   case $x_includes,$x_libraries in #(
18568     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18569 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18570    { (exit 1); exit 1; }; };; #(
18571     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   # One or both of the vars are not set, and there is no cached value.
18575 ac_x_includes=no ac_x_libraries=no
18576 rm -f -r conftest.dir
18577 if mkdir conftest.dir; then
18578   cd conftest.dir
18579   cat >Imakefile <<'_ACEOF'
18580 incroot:
18581         @echo incroot='${INCROOT}'
18582 usrlibdir:
18583         @echo usrlibdir='${USRLIBDIR}'
18584 libdir:
18585         @echo libdir='${LIBDIR}'
18586 _ACEOF
18587   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18588     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18589     for ac_var in incroot usrlibdir libdir; do
18590       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18591     done
18592     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18593     for ac_extension in a so sl; do
18594       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18595          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18596         ac_im_usrlibdir=$ac_im_libdir; break
18597       fi
18598     done
18599     # Screen out bogus values from the imake configuration.  They are
18600     # bogus both because they are the default anyway, and because
18601     # using them would break gcc on systems where it needs fixed includes.
18602     case $ac_im_incroot in
18603         /usr/include) ac_x_includes= ;;
18604         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18605     esac
18606     case $ac_im_usrlibdir in
18607         /usr/lib | /lib) ;;
18608         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18609     esac
18610   fi
18611   cd ..
18612   rm -f -r conftest.dir
18613 fi
18614
18615 # Standard set of common directories for X headers.
18616 # Check X11 before X11Rn because it is often a symlink to the current release.
18617 ac_x_header_dirs='
18618 /usr/X11/include
18619 /usr/X11R6/include
18620 /usr/X11R5/include
18621 /usr/X11R4/include
18622
18623 /usr/include/X11
18624 /usr/include/X11R6
18625 /usr/include/X11R5
18626 /usr/include/X11R4
18627
18628 /usr/local/X11/include
18629 /usr/local/X11R6/include
18630 /usr/local/X11R5/include
18631 /usr/local/X11R4/include
18632
18633 /usr/local/include/X11
18634 /usr/local/include/X11R6
18635 /usr/local/include/X11R5
18636 /usr/local/include/X11R4
18637
18638 /usr/X386/include
18639 /usr/x386/include
18640 /usr/XFree86/include/X11
18641
18642 /usr/include
18643 /usr/local/include
18644 /usr/unsupported/include
18645 /usr/athena/include
18646 /usr/local/x11r5/include
18647 /usr/lpp/Xamples/include
18648
18649 /usr/openwin/include
18650 /usr/openwin/share/include'
18651
18652 if test "$ac_x_includes" = no; then
18653   # Guess where to find include files, by looking for Xlib.h.
18654   # First, try using that file with no special directory specified.
18655   cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661 #include <X11/Xlib.h>
18662 _ACEOF
18663 if { (ac_try="$ac_cpp conftest.$ac_ext"
18664 case "(($ac_try" in
18665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18666   *) ac_try_echo=$ac_try;;
18667 esac
18668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18670   ac_status=$?
18671   grep -v '^ *+' conftest.er1 >conftest.err
18672   rm -f conftest.er1
18673   cat conftest.err >&5
18674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675   (exit $ac_status); } >/dev/null && {
18676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18677          test ! -s conftest.err
18678        }; then
18679   # We can compile using X headers with no special include directory.
18680 ac_x_includes=
18681 else
18682   echo "$as_me: failed program was:" >&5
18683 sed 's/^/| /' conftest.$ac_ext >&5
18684
18685   for ac_dir in $ac_x_header_dirs; do
18686   if test -r "$ac_dir/X11/Xlib.h"; then
18687     ac_x_includes=$ac_dir
18688     break
18689   fi
18690 done
18691 fi
18692
18693 rm -f conftest.err conftest.$ac_ext
18694 fi # $ac_x_includes = no
18695
18696 if test "$ac_x_libraries" = no; then
18697   # Check for the libraries.
18698   # See if we find them without any special options.
18699   # Don't add to $LIBS permanently.
18700   ac_save_LIBS=$LIBS
18701   LIBS="-lX11 $LIBS"
18702   cat >conftest.$ac_ext <<_ACEOF
18703 /* confdefs.h.  */
18704 _ACEOF
18705 cat confdefs.h >>conftest.$ac_ext
18706 cat >>conftest.$ac_ext <<_ACEOF
18707 /* end confdefs.h.  */
18708 #include <X11/Xlib.h>
18709 int
18710 main ()
18711 {
18712 XrmInitialize ()
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest.$ac_objext conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721   *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724   (eval "$ac_link") 2>conftest.er1
18725   ac_status=$?
18726   grep -v '^ *+' conftest.er1 >conftest.err
18727   rm -f conftest.er1
18728   cat conftest.err >&5
18729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730   (exit $ac_status); } && {
18731          test -z "$ac_c_werror_flag" ||
18732          test ! -s conftest.err
18733        } && test -s conftest$ac_exeext &&
18734        $as_test_x conftest$ac_exeext; then
18735   LIBS=$ac_save_LIBS
18736 # We can link X programs with no special library path.
18737 ac_x_libraries=
18738 else
18739   echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18741
18742         LIBS=$ac_save_LIBS
18743 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18744 do
18745   # Don't even attempt the hair of trying to link an X program!
18746   for ac_extension in a so sl; do
18747     if test -r "$ac_dir/libX11.$ac_extension"; then
18748       ac_x_libraries=$ac_dir
18749       break 2
18750     fi
18751   done
18752 done
18753 fi
18754
18755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18756       conftest$ac_exeext conftest.$ac_ext
18757 fi # $ac_x_libraries = no
18758
18759 case $ac_x_includes,$ac_x_libraries in #(
18760   no,* | *,no | *\'*)
18761     # Didn't find X, or a directory has "'" in its name.
18762     ac_cv_have_x="have_x=no";; #(
18763   *)
18764     # Record where we found X for the cache.
18765     ac_cv_have_x="have_x=yes\
18766         ac_x_includes='$ac_x_includes'\
18767         ac_x_libraries='$ac_x_libraries'"
18768 esac
18769 fi
18770 ;; #(
18771     *) have_x=yes;;
18772   esac
18773   eval "$ac_cv_have_x"
18774 fi # $with_x != no
18775
18776 if test "$have_x" != yes; then
18777   { echo "$as_me:$LINENO: result: $have_x" >&5
18778 echo "${ECHO_T}$have_x" >&6; }
18779   no_x=yes
18780 else
18781   # If each of the values was on the command line, it overrides each guess.
18782   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18783   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18784   # Update the cache value to reflect the command line values.
18785   ac_cv_have_x="have_x=yes\
18786         ac_x_includes='$x_includes'\
18787         ac_x_libraries='$x_libraries'"
18788   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18789 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18790 fi
18791
18792 if test "$no_x" = yes; then
18793   # Not all programs may use this symbol, but it does not hurt to define it.
18794
18795 cat >>confdefs.h <<\_ACEOF
18796 #define X_DISPLAY_MISSING 1
18797 _ACEOF
18798
18799   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18800 else
18801   if test -n "$x_includes"; then
18802     X_CFLAGS="$X_CFLAGS -I$x_includes"
18803   fi
18804
18805   # It would also be nice to do this for all -L options, not just this one.
18806   if test -n "$x_libraries"; then
18807     X_LIBS="$X_LIBS -L$x_libraries"
18808     # For Solaris; some versions of Sun CC require a space after -R and
18809     # others require no space.  Words are not sufficient . . . .
18810     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18811 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18812     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18813     ac_xsave_c_werror_flag=$ac_c_werror_flag
18814     ac_c_werror_flag=yes
18815     cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821
18822 int
18823 main ()
18824 {
18825
18826   ;
18827   return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834   *) ac_try_echo=$ac_try;;
18835 esac
18836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18837   (eval "$ac_link") 2>conftest.er1
18838   ac_status=$?
18839   grep -v '^ *+' conftest.er1 >conftest.err
18840   rm -f conftest.er1
18841   cat conftest.err >&5
18842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843   (exit $ac_status); } && {
18844          test -z "$ac_c_werror_flag" ||
18845          test ! -s conftest.err
18846        } && test -s conftest$ac_exeext &&
18847        $as_test_x conftest$ac_exeext; then
18848   { echo "$as_me:$LINENO: result: no" >&5
18849 echo "${ECHO_T}no" >&6; }
18850        X_LIBS="$X_LIBS -R$x_libraries"
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855         LIBS="$ac_xsave_LIBS -R $x_libraries"
18856        cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862
18863 int
18864 main ()
18865 {
18866
18867   ;
18868   return 0;
18869 }
18870 _ACEOF
18871 rm -f conftest.$ac_objext conftest$ac_exeext
18872 if { (ac_try="$ac_link"
18873 case "(($ac_try" in
18874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18875   *) ac_try_echo=$ac_try;;
18876 esac
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878   (eval "$ac_link") 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } && {
18885          test -z "$ac_c_werror_flag" ||
18886          test ! -s conftest.err
18887        } && test -s conftest$ac_exeext &&
18888        $as_test_x conftest$ac_exeext; then
18889   { echo "$as_me:$LINENO: result: yes" >&5
18890 echo "${ECHO_T}yes" >&6; }
18891           X_LIBS="$X_LIBS -R $x_libraries"
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896         { echo "$as_me:$LINENO: result: neither works" >&5
18897 echo "${ECHO_T}neither works" >&6; }
18898 fi
18899
18900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18901       conftest$ac_exeext conftest.$ac_ext
18902 fi
18903
18904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18905       conftest$ac_exeext conftest.$ac_ext
18906     ac_c_werror_flag=$ac_xsave_c_werror_flag
18907     LIBS=$ac_xsave_LIBS
18908   fi
18909
18910   # Check for system-dependent libraries X programs must link with.
18911   # Do this before checking for the system-independent R6 libraries
18912   # (-lICE), since we may need -lsocket or whatever for X linking.
18913
18914   if test "$ISC" = yes; then
18915     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18916   else
18917     # Martyn Johnson says this is needed for Ultrix, if the X
18918     # libraries were built with DECnet support.  And Karl Berry says
18919     # the Alpha needs dnet_stub (dnet does not exist).
18920     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18921     cat >conftest.$ac_ext <<_ACEOF
18922 /* confdefs.h.  */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h.  */
18927
18928 /* Override any GCC internal prototype to avoid an error.
18929    Use char because int might match the return type of a GCC
18930    builtin and then its argument prototype would still apply.  */
18931 #ifdef __cplusplus
18932 extern "C"
18933 #endif
18934 char XOpenDisplay ();
18935 int
18936 main ()
18937 {
18938 return XOpenDisplay ();
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947   *) ac_try_echo=$ac_try;;
18948 esac
18949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18950   (eval "$ac_link") 2>conftest.er1
18951   ac_status=$?
18952   grep -v '^ *+' conftest.er1 >conftest.err
18953   rm -f conftest.er1
18954   cat conftest.err >&5
18955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956   (exit $ac_status); } && {
18957          test -z "$ac_c_werror_flag" ||
18958          test ! -s conftest.err
18959        } && test -s conftest$ac_exeext &&
18960        $as_test_x conftest$ac_exeext; then
18961   :
18962 else
18963   echo "$as_me: failed program was:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18965
18966         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18967 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18968 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18969   echo $ECHO_N "(cached) $ECHO_C" >&6
18970 else
18971   ac_check_lib_save_LIBS=$LIBS
18972 LIBS="-ldnet  $LIBS"
18973 cat >conftest.$ac_ext <<_ACEOF
18974 /* confdefs.h.  */
18975 _ACEOF
18976 cat confdefs.h >>conftest.$ac_ext
18977 cat >>conftest.$ac_ext <<_ACEOF
18978 /* end confdefs.h.  */
18979
18980 /* Override any GCC internal prototype to avoid an error.
18981    Use char because int might match the return type of a GCC
18982    builtin and then its argument prototype would still apply.  */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char dnet_ntoa ();
18987 int
18988 main ()
18989 {
18990 return dnet_ntoa ();
18991   ;
18992   return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999   *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002   (eval "$ac_link") 2>conftest.er1
19003   ac_status=$?
19004   grep -v '^ *+' conftest.er1 >conftest.err
19005   rm -f conftest.er1
19006   cat conftest.err >&5
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } && {
19009          test -z "$ac_c_werror_flag" ||
19010          test ! -s conftest.err
19011        } && test -s conftest$ac_exeext &&
19012        $as_test_x conftest$ac_exeext; then
19013   ac_cv_lib_dnet_dnet_ntoa=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018         ac_cv_lib_dnet_dnet_ntoa=no
19019 fi
19020
19021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19022       conftest$ac_exeext conftest.$ac_ext
19023 LIBS=$ac_check_lib_save_LIBS
19024 fi
19025 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19026 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19027 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19028   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19029 fi
19030
19031     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19032       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19033 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19034 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19035   echo $ECHO_N "(cached) $ECHO_C" >&6
19036 else
19037   ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-ldnet_stub  $LIBS"
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h.  */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h.  */
19045
19046 /* Override any GCC internal prototype to avoid an error.
19047    Use char because int might match the return type of a GCC
19048    builtin and then its argument prototype would still apply.  */
19049 #ifdef __cplusplus
19050 extern "C"
19051 #endif
19052 char dnet_ntoa ();
19053 int
19054 main ()
19055 {
19056 return dnet_ntoa ();
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_link") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } && {
19075          test -z "$ac_c_werror_flag" ||
19076          test ! -s conftest.err
19077        } && test -s conftest$ac_exeext &&
19078        $as_test_x conftest$ac_exeext; then
19079   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084         ac_cv_lib_dnet_stub_dnet_ntoa=no
19085 fi
19086
19087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19088       conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19090 fi
19091 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19092 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19093 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19094   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19095 fi
19096
19097     fi
19098 fi
19099
19100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19101       conftest$ac_exeext conftest.$ac_ext
19102     LIBS="$ac_xsave_LIBS"
19103
19104     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19105     # to get the SysV transport functions.
19106     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19107     # needs -lnsl.
19108     # The nsl library prevents programs from opening the X display
19109     # on Irix 5.2, according to T.E. Dickey.
19110     # The functions gethostbyname, getservbyname, and inet_addr are
19111     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19112     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19113 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_gethostbyname+set}" = set; then
19115   echo $ECHO_N "(cached) $ECHO_C" >&6
19116 else
19117   cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19124    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19125 #define gethostbyname innocuous_gethostbyname
19126
19127 /* System header to define __stub macros and hopefully few prototypes,
19128     which can conflict with char gethostbyname (); below.
19129     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19130     <limits.h> exists even on freestanding compilers.  */
19131
19132 #ifdef __STDC__
19133 # include <limits.h>
19134 #else
19135 # include <assert.h>
19136 #endif
19137
19138 #undef gethostbyname
19139
19140 /* Override any GCC internal prototype to avoid an error.
19141    Use char because int might match the return type of a GCC
19142    builtin and then its argument prototype would still apply.  */
19143 #ifdef __cplusplus
19144 extern "C"
19145 #endif
19146 char gethostbyname ();
19147 /* The GNU C library defines this for functions which it implements
19148     to always fail with ENOSYS.  Some functions are actually named
19149     something starting with __ and the normal name is an alias.  */
19150 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19151 choke me
19152 #endif
19153
19154 int
19155 main ()
19156 {
19157 return gethostbyname ();
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext conftest$ac_exeext
19163 if { (ac_try="$ac_link"
19164 case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169   (eval "$ac_link") 2>conftest.er1
19170   ac_status=$?
19171   grep -v '^ *+' conftest.er1 >conftest.err
19172   rm -f conftest.er1
19173   cat conftest.err >&5
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } && {
19176          test -z "$ac_c_werror_flag" ||
19177          test ! -s conftest.err
19178        } && test -s conftest$ac_exeext &&
19179        $as_test_x conftest$ac_exeext; then
19180   ac_cv_func_gethostbyname=yes
19181 else
19182   echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185         ac_cv_func_gethostbyname=no
19186 fi
19187
19188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19189       conftest$ac_exeext conftest.$ac_ext
19190 fi
19191 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19192 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19193
19194     if test $ac_cv_func_gethostbyname = no; then
19195       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19196 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19197 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19198   echo $ECHO_N "(cached) $ECHO_C" >&6
19199 else
19200   ac_check_lib_save_LIBS=$LIBS
19201 LIBS="-lnsl  $LIBS"
19202 cat >conftest.$ac_ext <<_ACEOF
19203 /* confdefs.h.  */
19204 _ACEOF
19205 cat confdefs.h >>conftest.$ac_ext
19206 cat >>conftest.$ac_ext <<_ACEOF
19207 /* end confdefs.h.  */
19208
19209 /* Override any GCC internal prototype to avoid an error.
19210    Use char because int might match the return type of a GCC
19211    builtin and then its argument prototype would still apply.  */
19212 #ifdef __cplusplus
19213 extern "C"
19214 #endif
19215 char gethostbyname ();
19216 int
19217 main ()
19218 {
19219 return gethostbyname ();
19220   ;
19221   return 0;
19222 }
19223 _ACEOF
19224 rm -f conftest.$ac_objext conftest$ac_exeext
19225 if { (ac_try="$ac_link"
19226 case "(($ac_try" in
19227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19228   *) ac_try_echo=$ac_try;;
19229 esac
19230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19231   (eval "$ac_link") 2>conftest.er1
19232   ac_status=$?
19233   grep -v '^ *+' conftest.er1 >conftest.err
19234   rm -f conftest.er1
19235   cat conftest.err >&5
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); } && {
19238          test -z "$ac_c_werror_flag" ||
19239          test ! -s conftest.err
19240        } && test -s conftest$ac_exeext &&
19241        $as_test_x conftest$ac_exeext; then
19242   ac_cv_lib_nsl_gethostbyname=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247         ac_cv_lib_nsl_gethostbyname=no
19248 fi
19249
19250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19251       conftest$ac_exeext conftest.$ac_ext
19252 LIBS=$ac_check_lib_save_LIBS
19253 fi
19254 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19255 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19256 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19257   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19258 fi
19259
19260       if test $ac_cv_lib_nsl_gethostbyname = no; then
19261         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19262 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19263 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266   ac_check_lib_save_LIBS=$LIBS
19267 LIBS="-lbsd  $LIBS"
19268 cat >conftest.$ac_ext <<_ACEOF
19269 /* confdefs.h.  */
19270 _ACEOF
19271 cat confdefs.h >>conftest.$ac_ext
19272 cat >>conftest.$ac_ext <<_ACEOF
19273 /* end confdefs.h.  */
19274
19275 /* Override any GCC internal prototype to avoid an error.
19276    Use char because int might match the return type of a GCC
19277    builtin and then its argument prototype would still apply.  */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 char gethostbyname ();
19282 int
19283 main ()
19284 {
19285 return gethostbyname ();
19286   ;
19287   return 0;
19288 }
19289 _ACEOF
19290 rm -f conftest.$ac_objext conftest$ac_exeext
19291 if { (ac_try="$ac_link"
19292 case "(($ac_try" in
19293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294   *) ac_try_echo=$ac_try;;
19295 esac
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297   (eval "$ac_link") 2>conftest.er1
19298   ac_status=$?
19299   grep -v '^ *+' conftest.er1 >conftest.err
19300   rm -f conftest.er1
19301   cat conftest.err >&5
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); } && {
19304          test -z "$ac_c_werror_flag" ||
19305          test ! -s conftest.err
19306        } && test -s conftest$ac_exeext &&
19307        $as_test_x conftest$ac_exeext; then
19308   ac_cv_lib_bsd_gethostbyname=yes
19309 else
19310   echo "$as_me: failed program was:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19312
19313         ac_cv_lib_bsd_gethostbyname=no
19314 fi
19315
19316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19317       conftest$ac_exeext conftest.$ac_ext
19318 LIBS=$ac_check_lib_save_LIBS
19319 fi
19320 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19321 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19322 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19323   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19324 fi
19325
19326       fi
19327     fi
19328
19329     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19330     # socket/setsockopt and other routines are undefined under SCO ODT
19331     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19332     # on later versions), says Simon Leinen: it contains gethostby*
19333     # variants that don't use the name server (or something).  -lsocket
19334     # must be given before -lnsl if both are needed.  We assume that
19335     # if connect needs -lnsl, so does gethostbyname.
19336     { echo "$as_me:$LINENO: checking for connect" >&5
19337 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19338 if test "${ac_cv_func_connect+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341   cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19348    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19349 #define connect innocuous_connect
19350
19351 /* System header to define __stub macros and hopefully few prototypes,
19352     which can conflict with char connect (); below.
19353     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19354     <limits.h> exists even on freestanding compilers.  */
19355
19356 #ifdef __STDC__
19357 # include <limits.h>
19358 #else
19359 # include <assert.h>
19360 #endif
19361
19362 #undef connect
19363
19364 /* Override any GCC internal prototype to avoid an error.
19365    Use char because int might match the return type of a GCC
19366    builtin and then its argument prototype would still apply.  */
19367 #ifdef __cplusplus
19368 extern "C"
19369 #endif
19370 char connect ();
19371 /* The GNU C library defines this for functions which it implements
19372     to always fail with ENOSYS.  Some functions are actually named
19373     something starting with __ and the normal name is an alias.  */
19374 #if defined __stub_connect || defined __stub___connect
19375 choke me
19376 #endif
19377
19378 int
19379 main ()
19380 {
19381 return connect ();
19382   ;
19383   return 0;
19384 }
19385 _ACEOF
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (ac_try="$ac_link"
19388 case "(($ac_try" in
19389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390   *) ac_try_echo=$ac_try;;
19391 esac
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393   (eval "$ac_link") 2>conftest.er1
19394   ac_status=$?
19395   grep -v '^ *+' conftest.er1 >conftest.err
19396   rm -f conftest.er1
19397   cat conftest.err >&5
19398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399   (exit $ac_status); } && {
19400          test -z "$ac_c_werror_flag" ||
19401          test ! -s conftest.err
19402        } && test -s conftest$ac_exeext &&
19403        $as_test_x conftest$ac_exeext; then
19404   ac_cv_func_connect=yes
19405 else
19406   echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409         ac_cv_func_connect=no
19410 fi
19411
19412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19413       conftest$ac_exeext conftest.$ac_ext
19414 fi
19415 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19416 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19417
19418     if test $ac_cv_func_connect = no; then
19419       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19420 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19421 if test "${ac_cv_lib_socket_connect+set}" = set; then
19422   echo $ECHO_N "(cached) $ECHO_C" >&6
19423 else
19424   ac_check_lib_save_LIBS=$LIBS
19425 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19426 cat >conftest.$ac_ext <<_ACEOF
19427 /* confdefs.h.  */
19428 _ACEOF
19429 cat confdefs.h >>conftest.$ac_ext
19430 cat >>conftest.$ac_ext <<_ACEOF
19431 /* end confdefs.h.  */
19432
19433 /* Override any GCC internal prototype to avoid an error.
19434    Use char because int might match the return type of a GCC
19435    builtin and then its argument prototype would still apply.  */
19436 #ifdef __cplusplus
19437 extern "C"
19438 #endif
19439 char connect ();
19440 int
19441 main ()
19442 {
19443 return connect ();
19444   ;
19445   return 0;
19446 }
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452   *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455   (eval "$ac_link") 2>conftest.er1
19456   ac_status=$?
19457   grep -v '^ *+' conftest.er1 >conftest.err
19458   rm -f conftest.er1
19459   cat conftest.err >&5
19460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461   (exit $ac_status); } && {
19462          test -z "$ac_c_werror_flag" ||
19463          test ! -s conftest.err
19464        } && test -s conftest$ac_exeext &&
19465        $as_test_x conftest$ac_exeext; then
19466   ac_cv_lib_socket_connect=yes
19467 else
19468   echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471         ac_cv_lib_socket_connect=no
19472 fi
19473
19474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19475       conftest$ac_exeext conftest.$ac_ext
19476 LIBS=$ac_check_lib_save_LIBS
19477 fi
19478 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19479 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19480 if test $ac_cv_lib_socket_connect = yes; then
19481   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19482 fi
19483
19484     fi
19485
19486     # Guillermo Gomez says -lposix is necessary on A/UX.
19487     { echo "$as_me:$LINENO: checking for remove" >&5
19488 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19489 if test "${ac_cv_func_remove+set}" = set; then
19490   echo $ECHO_N "(cached) $ECHO_C" >&6
19491 else
19492   cat >conftest.$ac_ext <<_ACEOF
19493 /* confdefs.h.  */
19494 _ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h.  */
19498 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19500 #define remove innocuous_remove
19501
19502 /* System header to define __stub macros and hopefully few prototypes,
19503     which can conflict with char remove (); below.
19504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19505     <limits.h> exists even on freestanding compilers.  */
19506
19507 #ifdef __STDC__
19508 # include <limits.h>
19509 #else
19510 # include <assert.h>
19511 #endif
19512
19513 #undef remove
19514
19515 /* Override any GCC internal prototype to avoid an error.
19516    Use char because int might match the return type of a GCC
19517    builtin and then its argument prototype would still apply.  */
19518 #ifdef __cplusplus
19519 extern "C"
19520 #endif
19521 char remove ();
19522 /* The GNU C library defines this for functions which it implements
19523     to always fail with ENOSYS.  Some functions are actually named
19524     something starting with __ and the normal name is an alias.  */
19525 #if defined __stub_remove || defined __stub___remove
19526 choke me
19527 #endif
19528
19529 int
19530 main ()
19531 {
19532 return remove ();
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_link") 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } && {
19551          test -z "$ac_c_werror_flag" ||
19552          test ! -s conftest.err
19553        } && test -s conftest$ac_exeext &&
19554        $as_test_x conftest$ac_exeext; then
19555   ac_cv_func_remove=yes
19556 else
19557   echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560         ac_cv_func_remove=no
19561 fi
19562
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564       conftest$ac_exeext conftest.$ac_ext
19565 fi
19566 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19567 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19568
19569     if test $ac_cv_func_remove = no; then
19570       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19571 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19572 if test "${ac_cv_lib_posix_remove+set}" = set; then
19573   echo $ECHO_N "(cached) $ECHO_C" >&6
19574 else
19575   ac_check_lib_save_LIBS=$LIBS
19576 LIBS="-lposix  $LIBS"
19577 cat >conftest.$ac_ext <<_ACEOF
19578 /* confdefs.h.  */
19579 _ACEOF
19580 cat confdefs.h >>conftest.$ac_ext
19581 cat >>conftest.$ac_ext <<_ACEOF
19582 /* end confdefs.h.  */
19583
19584 /* Override any GCC internal prototype to avoid an error.
19585    Use char because int might match the return type of a GCC
19586    builtin and then its argument prototype would still apply.  */
19587 #ifdef __cplusplus
19588 extern "C"
19589 #endif
19590 char remove ();
19591 int
19592 main ()
19593 {
19594 return remove ();
19595   ;
19596   return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext conftest$ac_exeext
19600 if { (ac_try="$ac_link"
19601 case "(($ac_try" in
19602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603   *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606   (eval "$ac_link") 2>conftest.er1
19607   ac_status=$?
19608   grep -v '^ *+' conftest.er1 >conftest.err
19609   rm -f conftest.er1
19610   cat conftest.err >&5
19611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612   (exit $ac_status); } && {
19613          test -z "$ac_c_werror_flag" ||
19614          test ! -s conftest.err
19615        } && test -s conftest$ac_exeext &&
19616        $as_test_x conftest$ac_exeext; then
19617   ac_cv_lib_posix_remove=yes
19618 else
19619   echo "$as_me: failed program was:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19621
19622         ac_cv_lib_posix_remove=no
19623 fi
19624
19625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19626       conftest$ac_exeext conftest.$ac_ext
19627 LIBS=$ac_check_lib_save_LIBS
19628 fi
19629 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19630 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19631 if test $ac_cv_lib_posix_remove = yes; then
19632   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19633 fi
19634
19635     fi
19636
19637     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19638     { echo "$as_me:$LINENO: checking for shmat" >&5
19639 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19640 if test "${ac_cv_func_shmat+set}" = set; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 else
19643   cat >conftest.$ac_ext <<_ACEOF
19644 /* confdefs.h.  */
19645 _ACEOF
19646 cat confdefs.h >>conftest.$ac_ext
19647 cat >>conftest.$ac_ext <<_ACEOF
19648 /* end confdefs.h.  */
19649 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19651 #define shmat innocuous_shmat
19652
19653 /* System header to define __stub macros and hopefully few prototypes,
19654     which can conflict with char shmat (); below.
19655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19656     <limits.h> exists even on freestanding compilers.  */
19657
19658 #ifdef __STDC__
19659 # include <limits.h>
19660 #else
19661 # include <assert.h>
19662 #endif
19663
19664 #undef shmat
19665
19666 /* Override any GCC internal prototype to avoid an error.
19667    Use char because int might match the return type of a GCC
19668    builtin and then its argument prototype would still apply.  */
19669 #ifdef __cplusplus
19670 extern "C"
19671 #endif
19672 char shmat ();
19673 /* The GNU C library defines this for functions which it implements
19674     to always fail with ENOSYS.  Some functions are actually named
19675     something starting with __ and the normal name is an alias.  */
19676 #if defined __stub_shmat || defined __stub___shmat
19677 choke me
19678 #endif
19679
19680 int
19681 main ()
19682 {
19683 return shmat ();
19684   ;
19685   return 0;
19686 }
19687 _ACEOF
19688 rm -f conftest.$ac_objext conftest$ac_exeext
19689 if { (ac_try="$ac_link"
19690 case "(($ac_try" in
19691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692   *) ac_try_echo=$ac_try;;
19693 esac
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695   (eval "$ac_link") 2>conftest.er1
19696   ac_status=$?
19697   grep -v '^ *+' conftest.er1 >conftest.err
19698   rm -f conftest.er1
19699   cat conftest.err >&5
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); } && {
19702          test -z "$ac_c_werror_flag" ||
19703          test ! -s conftest.err
19704        } && test -s conftest$ac_exeext &&
19705        $as_test_x conftest$ac_exeext; then
19706   ac_cv_func_shmat=yes
19707 else
19708   echo "$as_me: failed program was:" >&5
19709 sed 's/^/| /' conftest.$ac_ext >&5
19710
19711         ac_cv_func_shmat=no
19712 fi
19713
19714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19715       conftest$ac_exeext conftest.$ac_ext
19716 fi
19717 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19718 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19719
19720     if test $ac_cv_func_shmat = no; then
19721       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19722 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19723 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19724   echo $ECHO_N "(cached) $ECHO_C" >&6
19725 else
19726   ac_check_lib_save_LIBS=$LIBS
19727 LIBS="-lipc  $LIBS"
19728 cat >conftest.$ac_ext <<_ACEOF
19729 /* confdefs.h.  */
19730 _ACEOF
19731 cat confdefs.h >>conftest.$ac_ext
19732 cat >>conftest.$ac_ext <<_ACEOF
19733 /* end confdefs.h.  */
19734
19735 /* Override any GCC internal prototype to avoid an error.
19736    Use char because int might match the return type of a GCC
19737    builtin and then its argument prototype would still apply.  */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char shmat ();
19742 int
19743 main ()
19744 {
19745 return shmat ();
19746   ;
19747   return 0;
19748 }
19749 _ACEOF
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754   *) ac_try_echo=$ac_try;;
19755 esac
19756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19757   (eval "$ac_link") 2>conftest.er1
19758   ac_status=$?
19759   grep -v '^ *+' conftest.er1 >conftest.err
19760   rm -f conftest.er1
19761   cat conftest.err >&5
19762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19763   (exit $ac_status); } && {
19764          test -z "$ac_c_werror_flag" ||
19765          test ! -s conftest.err
19766        } && test -s conftest$ac_exeext &&
19767        $as_test_x conftest$ac_exeext; then
19768   ac_cv_lib_ipc_shmat=yes
19769 else
19770   echo "$as_me: failed program was:" >&5
19771 sed 's/^/| /' conftest.$ac_ext >&5
19772
19773         ac_cv_lib_ipc_shmat=no
19774 fi
19775
19776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19777       conftest$ac_exeext conftest.$ac_ext
19778 LIBS=$ac_check_lib_save_LIBS
19779 fi
19780 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19781 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19782 if test $ac_cv_lib_ipc_shmat = yes; then
19783   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19784 fi
19785
19786     fi
19787   fi
19788
19789   # Check for libraries that X11R6 Xt/Xaw programs need.
19790   ac_save_LDFLAGS=$LDFLAGS
19791   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19792   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19793   # check for ICE first), but we must link in the order -lSM -lICE or
19794   # we get undefined symbols.  So assume we have SM if we have ICE.
19795   # These have to be linked with before -lX11, unlike the other
19796   # libraries we check for below, so use a different variable.
19797   # John Interrante, Karl Berry
19798   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19799 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19800 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   ac_check_lib_save_LIBS=$LIBS
19804 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h.  */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h.  */
19811
19812 /* Override any GCC internal prototype to avoid an error.
19813    Use char because int might match the return type of a GCC
19814    builtin and then its argument prototype would still apply.  */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char IceConnectionNumber ();
19819 int
19820 main ()
19821 {
19822 return IceConnectionNumber ();
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831   *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834   (eval "$ac_link") 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } && {
19841          test -z "$ac_c_werror_flag" ||
19842          test ! -s conftest.err
19843        } && test -s conftest$ac_exeext &&
19844        $as_test_x conftest$ac_exeext; then
19845   ac_cv_lib_ICE_IceConnectionNumber=yes
19846 else
19847   echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19849
19850         ac_cv_lib_ICE_IceConnectionNumber=no
19851 fi
19852
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854       conftest$ac_exeext conftest.$ac_ext
19855 LIBS=$ac_check_lib_save_LIBS
19856 fi
19857 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19858 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19859 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19860   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19861 fi
19862
19863   LDFLAGS=$ac_save_LDFLAGS
19864
19865 fi
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898 for ac_header in \
19899         assert.h \
19900         fcntl.h \
19901         grp.h \
19902         pwd.h \
19903         libc.h \
19904         limits.h \
19905         stdarg.h \
19906         stdlib.h \
19907         stdint.h \
19908         string.h \
19909         strings.h \
19910         termios.h \
19911         termcap.h \
19912         term.h \
19913         unistd.h \
19914         sys/bitypes.h \
19915         sys/byteorder.h \
19916         sys/ioctl.h \
19917         sys/select.h \
19918         sys/socket.h \
19919         sys/sockio.h \
19920         sys/stat.h \
19921         sys/time.h \
19922         sys/types.h \
19923         arpa/nameser.h \
19924         resolv.h \
19925         mtio.h \
19926         sys/mtio.h \
19927         sys/tape.h \
19928         regex.h \
19929
19930 do
19931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19933   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19936   echo $ECHO_N "(cached) $ECHO_C" >&6
19937 fi
19938 ac_res=`eval echo '${'$as_ac_Header'}'`
19939                { echo "$as_me:$LINENO: result: $ac_res" >&5
19940 echo "${ECHO_T}$ac_res" >&6; }
19941 else
19942   # Is the header compilable?
19943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19945 cat >conftest.$ac_ext <<_ACEOF
19946 /* confdefs.h.  */
19947 _ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h.  */
19951 $ac_includes_default
19952 #include <$ac_header>
19953 _ACEOF
19954 rm -f conftest.$ac_objext
19955 if { (ac_try="$ac_compile"
19956 case "(($ac_try" in
19957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19958   *) ac_try_echo=$ac_try;;
19959 esac
19960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19961   (eval "$ac_compile") 2>conftest.er1
19962   ac_status=$?
19963   grep -v '^ *+' conftest.er1 >conftest.err
19964   rm -f conftest.er1
19965   cat conftest.err >&5
19966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967   (exit $ac_status); } && {
19968          test -z "$ac_c_werror_flag" ||
19969          test ! -s conftest.err
19970        } && test -s conftest.$ac_objext; then
19971   ac_header_compiler=yes
19972 else
19973   echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19975
19976         ac_header_compiler=no
19977 fi
19978
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19981 echo "${ECHO_T}$ac_header_compiler" >&6; }
19982
19983 # Is the header present?
19984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19986 cat >conftest.$ac_ext <<_ACEOF
19987 /* confdefs.h.  */
19988 _ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h.  */
19992 #include <$ac_header>
19993 _ACEOF
19994 if { (ac_try="$ac_cpp conftest.$ac_ext"
19995 case "(($ac_try" in
19996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997   *) ac_try_echo=$ac_try;;
19998 esac
19999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20001   ac_status=$?
20002   grep -v '^ *+' conftest.er1 >conftest.err
20003   rm -f conftest.er1
20004   cat conftest.err >&5
20005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006   (exit $ac_status); } >/dev/null && {
20007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20008          test ! -s conftest.err
20009        }; then
20010   ac_header_preproc=yes
20011 else
20012   echo "$as_me: failed program was:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20014
20015   ac_header_preproc=no
20016 fi
20017
20018 rm -f conftest.err conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20020 echo "${ECHO_T}$ac_header_preproc" >&6; }
20021
20022 # So?  What about this header?
20023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20024   yes:no: )
20025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20029     ac_header_preproc=yes
20030     ;;
20031   no:yes:* )
20032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20044
20045     ;;
20046 esac
20047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20050   echo $ECHO_N "(cached) $ECHO_C" >&6
20051 else
20052   eval "$as_ac_Header=\$ac_header_preproc"
20053 fi
20054 ac_res=`eval echo '${'$as_ac_Header'}'`
20055                { echo "$as_me:$LINENO: result: $ac_res" >&5
20056 echo "${ECHO_T}$ac_res" >&6; }
20057
20058 fi
20059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20060   cat >>confdefs.h <<_ACEOF
20061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20062 _ACEOF
20063
20064 fi
20065
20066 done
20067
20068 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20069 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20070 if test "${ac_cv_header_stdc+set}" = set; then
20071   echo $ECHO_N "(cached) $ECHO_C" >&6
20072 else
20073   cat >conftest.$ac_ext <<_ACEOF
20074 /* confdefs.h.  */
20075 _ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h.  */
20079 #include <stdlib.h>
20080 #include <stdarg.h>
20081 #include <string.h>
20082 #include <float.h>
20083
20084 int
20085 main ()
20086 {
20087
20088   ;
20089   return 0;
20090 }
20091 _ACEOF
20092 rm -f conftest.$ac_objext
20093 if { (ac_try="$ac_compile"
20094 case "(($ac_try" in
20095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096   *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099   (eval "$ac_compile") 2>conftest.er1
20100   ac_status=$?
20101   grep -v '^ *+' conftest.er1 >conftest.err
20102   rm -f conftest.er1
20103   cat conftest.err >&5
20104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105   (exit $ac_status); } && {
20106          test -z "$ac_c_werror_flag" ||
20107          test ! -s conftest.err
20108        } && test -s conftest.$ac_objext; then
20109   ac_cv_header_stdc=yes
20110 else
20111   echo "$as_me: failed program was:" >&5
20112 sed 's/^/| /' conftest.$ac_ext >&5
20113
20114         ac_cv_header_stdc=no
20115 fi
20116
20117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20118
20119 if test $ac_cv_header_stdc = yes; then
20120   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20121   cat >conftest.$ac_ext <<_ACEOF
20122 /* confdefs.h.  */
20123 _ACEOF
20124 cat confdefs.h >>conftest.$ac_ext
20125 cat >>conftest.$ac_ext <<_ACEOF
20126 /* end confdefs.h.  */
20127 #include <string.h>
20128
20129 _ACEOF
20130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20131   $EGREP "memchr" >/dev/null 2>&1; then
20132   :
20133 else
20134   ac_cv_header_stdc=no
20135 fi
20136 rm -f conftest*
20137
20138 fi
20139
20140 if test $ac_cv_header_stdc = yes; then
20141   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20142   cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h.  */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h.  */
20148 #include <stdlib.h>
20149
20150 _ACEOF
20151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20152   $EGREP "free" >/dev/null 2>&1; then
20153   :
20154 else
20155   ac_cv_header_stdc=no
20156 fi
20157 rm -f conftest*
20158
20159 fi
20160
20161 if test $ac_cv_header_stdc = yes; then
20162   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20163   if test "$cross_compiling" = yes; then
20164   :
20165 else
20166   cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172 #include <ctype.h>
20173 #include <stdlib.h>
20174 #if ((' ' & 0x0FF) == 0x020)
20175 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20176 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20177 #else
20178 # define ISLOWER(c) \
20179                    (('a' <= (c) && (c) <= 'i') \
20180                      || ('j' <= (c) && (c) <= 'r') \
20181                      || ('s' <= (c) && (c) <= 'z'))
20182 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20183 #endif
20184
20185 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20186 int
20187 main ()
20188 {
20189   int i;
20190   for (i = 0; i < 256; i++)
20191     if (XOR (islower (i), ISLOWER (i))
20192         || toupper (i) != TOUPPER (i))
20193       return 2;
20194   return 0;
20195 }
20196 _ACEOF
20197 rm -f conftest$ac_exeext
20198 if { (ac_try="$ac_link"
20199 case "(($ac_try" in
20200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201   *) ac_try_echo=$ac_try;;
20202 esac
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204   (eval "$ac_link") 2>&5
20205   ac_status=$?
20206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20208   { (case "(($ac_try" in
20209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210   *) ac_try_echo=$ac_try;;
20211 esac
20212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20213   (eval "$ac_try") 2>&5
20214   ac_status=$?
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); }; }; then
20217   :
20218 else
20219   echo "$as_me: program exited with status $ac_status" >&5
20220 echo "$as_me: failed program was:" >&5
20221 sed 's/^/| /' conftest.$ac_ext >&5
20222
20223 ( exit $ac_status )
20224 ac_cv_header_stdc=no
20225 fi
20226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20227 fi
20228
20229
20230 fi
20231 fi
20232 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20233 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20234 if test $ac_cv_header_stdc = yes; then
20235
20236 cat >>confdefs.h <<\_ACEOF
20237 #define STDC_HEADERS 1
20238 _ACEOF
20239
20240 fi
20241
20242 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20243 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20244 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20245   echo $ECHO_N "(cached) $ECHO_C" >&6
20246 else
20247   cat >conftest.$ac_ext <<_ACEOF
20248 /* confdefs.h.  */
20249 _ACEOF
20250 cat confdefs.h >>conftest.$ac_ext
20251 cat >>conftest.$ac_ext <<_ACEOF
20252 /* end confdefs.h.  */
20253 #include <sys/types.h>
20254 int
20255 main ()
20256 {
20257 return makedev(0, 0);
20258   ;
20259   return 0;
20260 }
20261 _ACEOF
20262 rm -f conftest.$ac_objext conftest$ac_exeext
20263 if { (ac_try="$ac_link"
20264 case "(($ac_try" in
20265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266   *) ac_try_echo=$ac_try;;
20267 esac
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269   (eval "$ac_link") 2>conftest.er1
20270   ac_status=$?
20271   grep -v '^ *+' conftest.er1 >conftest.err
20272   rm -f conftest.er1
20273   cat conftest.err >&5
20274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275   (exit $ac_status); } && {
20276          test -z "$ac_c_werror_flag" ||
20277          test ! -s conftest.err
20278        } && test -s conftest$ac_exeext &&
20279        $as_test_x conftest$ac_exeext; then
20280   ac_cv_header_sys_types_h_makedev=yes
20281 else
20282   echo "$as_me: failed program was:" >&5
20283 sed 's/^/| /' conftest.$ac_ext >&5
20284
20285         ac_cv_header_sys_types_h_makedev=no
20286 fi
20287
20288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20289       conftest$ac_exeext conftest.$ac_ext
20290
20291 fi
20292 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20293 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20294
20295 if test $ac_cv_header_sys_types_h_makedev = no; then
20296 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20297   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20298 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20299 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20300   echo $ECHO_N "(cached) $ECHO_C" >&6
20301 fi
20302 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20303 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20304 else
20305   # Is the header compilable?
20306 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20307 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h.  */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h.  */
20314 $ac_includes_default
20315 #include <sys/mkdev.h>
20316 _ACEOF
20317 rm -f conftest.$ac_objext
20318 if { (ac_try="$ac_compile"
20319 case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_compile") 2>conftest.er1
20325   ac_status=$?
20326   grep -v '^ *+' conftest.er1 >conftest.err
20327   rm -f conftest.er1
20328   cat conftest.err >&5
20329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330   (exit $ac_status); } && {
20331          test -z "$ac_c_werror_flag" ||
20332          test ! -s conftest.err
20333        } && test -s conftest.$ac_objext; then
20334   ac_header_compiler=yes
20335 else
20336   echo "$as_me: failed program was:" >&5
20337 sed 's/^/| /' conftest.$ac_ext >&5
20338
20339         ac_header_compiler=no
20340 fi
20341
20342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20343 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20344 echo "${ECHO_T}$ac_header_compiler" >&6; }
20345
20346 # Is the header present?
20347 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20348 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h.  */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h.  */
20355 #include <sys/mkdev.h>
20356 _ACEOF
20357 if { (ac_try="$ac_cpp conftest.$ac_ext"
20358 case "(($ac_try" in
20359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360   *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } >/dev/null && {
20370          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20371          test ! -s conftest.err
20372        }; then
20373   ac_header_preproc=yes
20374 else
20375   echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20377
20378   ac_header_preproc=no
20379 fi
20380
20381 rm -f conftest.err conftest.$ac_ext
20382 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20383 echo "${ECHO_T}$ac_header_preproc" >&6; }
20384
20385 # So?  What about this header?
20386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20387   yes:no: )
20388     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20389 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20390     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20391 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20392     ac_header_preproc=yes
20393     ;;
20394   no:yes:* )
20395     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20396 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20397     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20398 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20399     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20400 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20401     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20402 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20403     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20404 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20405     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20406 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20407
20408     ;;
20409 esac
20410 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20411 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20412 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20413   echo $ECHO_N "(cached) $ECHO_C" >&6
20414 else
20415   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20416 fi
20417 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20418 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20419
20420 fi
20421 if test $ac_cv_header_sys_mkdev_h = yes; then
20422
20423 cat >>confdefs.h <<\_ACEOF
20424 #define MAJOR_IN_MKDEV 1
20425 _ACEOF
20426
20427 fi
20428
20429
20430
20431   if test $ac_cv_header_sys_mkdev_h = no; then
20432     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20433   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20434 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20435 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20436   echo $ECHO_N "(cached) $ECHO_C" >&6
20437 fi
20438 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20439 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20440 else
20441   # Is the header compilable?
20442 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20443 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450 $ac_includes_default
20451 #include <sys/sysmacros.h>
20452 _ACEOF
20453 rm -f conftest.$ac_objext
20454 if { (ac_try="$ac_compile"
20455 case "(($ac_try" in
20456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20457   *) ac_try_echo=$ac_try;;
20458 esac
20459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20460   (eval "$ac_compile") 2>conftest.er1
20461   ac_status=$?
20462   grep -v '^ *+' conftest.er1 >conftest.err
20463   rm -f conftest.er1
20464   cat conftest.err >&5
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); } && {
20467          test -z "$ac_c_werror_flag" ||
20468          test ! -s conftest.err
20469        } && test -s conftest.$ac_objext; then
20470   ac_header_compiler=yes
20471 else
20472   echo "$as_me: failed program was:" >&5
20473 sed 's/^/| /' conftest.$ac_ext >&5
20474
20475         ac_header_compiler=no
20476 fi
20477
20478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20480 echo "${ECHO_T}$ac_header_compiler" >&6; }
20481
20482 # Is the header present?
20483 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20484 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h.  */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h.  */
20491 #include <sys/sysmacros.h>
20492 _ACEOF
20493 if { (ac_try="$ac_cpp conftest.$ac_ext"
20494 case "(($ac_try" in
20495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496   *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20500   ac_status=$?
20501   grep -v '^ *+' conftest.er1 >conftest.err
20502   rm -f conftest.er1
20503   cat conftest.err >&5
20504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505   (exit $ac_status); } >/dev/null && {
20506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20507          test ! -s conftest.err
20508        }; then
20509   ac_header_preproc=yes
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514   ac_header_preproc=no
20515 fi
20516
20517 rm -f conftest.err conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20519 echo "${ECHO_T}$ac_header_preproc" >&6; }
20520
20521 # So?  What about this header?
20522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20523   yes:no: )
20524     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20525 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20526     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20527 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20528     ac_header_preproc=yes
20529     ;;
20530   no:yes:* )
20531     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20532 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20533     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20534 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20535     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20536 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20537     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20538 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20539     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20540 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20541     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20542 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20543
20544     ;;
20545 esac
20546 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20547 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20548 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20549   echo $ECHO_N "(cached) $ECHO_C" >&6
20550 else
20551   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20552 fi
20553 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20554 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20555
20556 fi
20557 if test $ac_cv_header_sys_sysmacros_h = yes; then
20558
20559 cat >>confdefs.h <<\_ACEOF
20560 #define MAJOR_IN_SYSMACROS 1
20561 _ACEOF
20562
20563 fi
20564
20565
20566   fi
20567 fi
20568
20569
20570
20571
20572
20573
20574 ac_header_dirent=no
20575 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20576   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20577 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20578 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20580   echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582   cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588 #include <sys/types.h>
20589 #include <$ac_hdr>
20590
20591 int
20592 main ()
20593 {
20594 if ((DIR *) 0)
20595 return 0;
20596   ;
20597   return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_compile") 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } && {
20614          test -z "$ac_c_werror_flag" ||
20615          test ! -s conftest.err
20616        } && test -s conftest.$ac_objext; then
20617   eval "$as_ac_Header=yes"
20618 else
20619   echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622         eval "$as_ac_Header=no"
20623 fi
20624
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 fi
20627 ac_res=`eval echo '${'$as_ac_Header'}'`
20628                { echo "$as_me:$LINENO: result: $ac_res" >&5
20629 echo "${ECHO_T}$ac_res" >&6; }
20630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20631   cat >>confdefs.h <<_ACEOF
20632 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20633 _ACEOF
20634
20635 ac_header_dirent=$ac_hdr; break
20636 fi
20637
20638 done
20639 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20640 if test $ac_header_dirent = dirent.h; then
20641   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20642 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20643 if test "${ac_cv_search_opendir+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   ac_func_search_save_LIBS=$LIBS
20647 cat >conftest.$ac_ext <<_ACEOF
20648 /* confdefs.h.  */
20649 _ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h.  */
20653
20654 /* Override any GCC internal prototype to avoid an error.
20655    Use char because int might match the return type of a GCC
20656    builtin and then its argument prototype would still apply.  */
20657 #ifdef __cplusplus
20658 extern "C"
20659 #endif
20660 char opendir ();
20661 int
20662 main ()
20663 {
20664 return opendir ();
20665   ;
20666   return 0;
20667 }
20668 _ACEOF
20669 for ac_lib in '' dir; do
20670   if test -z "$ac_lib"; then
20671     ac_res="none required"
20672   else
20673     ac_res=-l$ac_lib
20674     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20675   fi
20676   rm -f conftest.$ac_objext conftest$ac_exeext
20677 if { (ac_try="$ac_link"
20678 case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683   (eval "$ac_link") 2>conftest.er1
20684   ac_status=$?
20685   grep -v '^ *+' conftest.er1 >conftest.err
20686   rm -f conftest.er1
20687   cat conftest.err >&5
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); } && {
20690          test -z "$ac_c_werror_flag" ||
20691          test ! -s conftest.err
20692        } && test -s conftest$ac_exeext &&
20693        $as_test_x conftest$ac_exeext; then
20694   ac_cv_search_opendir=$ac_res
20695 else
20696   echo "$as_me: failed program was:" >&5
20697 sed 's/^/| /' conftest.$ac_ext >&5
20698
20699
20700 fi
20701
20702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20703       conftest$ac_exeext
20704   if test "${ac_cv_search_opendir+set}" = set; then
20705   break
20706 fi
20707 done
20708 if test "${ac_cv_search_opendir+set}" = set; then
20709   :
20710 else
20711   ac_cv_search_opendir=no
20712 fi
20713 rm conftest.$ac_ext
20714 LIBS=$ac_func_search_save_LIBS
20715 fi
20716 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20717 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20718 ac_res=$ac_cv_search_opendir
20719 if test "$ac_res" != no; then
20720   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20721
20722 fi
20723
20724 else
20725   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20726 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20727 if test "${ac_cv_search_opendir+set}" = set; then
20728   echo $ECHO_N "(cached) $ECHO_C" >&6
20729 else
20730   ac_func_search_save_LIBS=$LIBS
20731 cat >conftest.$ac_ext <<_ACEOF
20732 /* confdefs.h.  */
20733 _ACEOF
20734 cat confdefs.h >>conftest.$ac_ext
20735 cat >>conftest.$ac_ext <<_ACEOF
20736 /* end confdefs.h.  */
20737
20738 /* Override any GCC internal prototype to avoid an error.
20739    Use char because int might match the return type of a GCC
20740    builtin and then its argument prototype would still apply.  */
20741 #ifdef __cplusplus
20742 extern "C"
20743 #endif
20744 char opendir ();
20745 int
20746 main ()
20747 {
20748 return opendir ();
20749   ;
20750   return 0;
20751 }
20752 _ACEOF
20753 for ac_lib in '' x; do
20754   if test -z "$ac_lib"; then
20755     ac_res="none required"
20756   else
20757     ac_res=-l$ac_lib
20758     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20759   fi
20760   rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_link") 2>conftest.er1
20768   ac_status=$?
20769   grep -v '^ *+' conftest.er1 >conftest.err
20770   rm -f conftest.er1
20771   cat conftest.err >&5
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } && {
20774          test -z "$ac_c_werror_flag" ||
20775          test ! -s conftest.err
20776        } && test -s conftest$ac_exeext &&
20777        $as_test_x conftest$ac_exeext; then
20778   ac_cv_search_opendir=$ac_res
20779 else
20780   echo "$as_me: failed program was:" >&5
20781 sed 's/^/| /' conftest.$ac_ext >&5
20782
20783
20784 fi
20785
20786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20787       conftest$ac_exeext
20788   if test "${ac_cv_search_opendir+set}" = set; then
20789   break
20790 fi
20791 done
20792 if test "${ac_cv_search_opendir+set}" = set; then
20793   :
20794 else
20795   ac_cv_search_opendir=no
20796 fi
20797 rm conftest.$ac_ext
20798 LIBS=$ac_func_search_save_LIBS
20799 fi
20800 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20801 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20802 ac_res=$ac_cv_search_opendir
20803 if test "$ac_res" != no; then
20804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20805
20806 fi
20807
20808 fi
20809
20810 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20811 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20812 if test "${ac_cv_header_stat_broken+set}" = set; then
20813   echo $ECHO_N "(cached) $ECHO_C" >&6
20814 else
20815   cat >conftest.$ac_ext <<_ACEOF
20816 /* confdefs.h.  */
20817 _ACEOF
20818 cat confdefs.h >>conftest.$ac_ext
20819 cat >>conftest.$ac_ext <<_ACEOF
20820 /* end confdefs.h.  */
20821 #include <sys/types.h>
20822 #include <sys/stat.h>
20823
20824 #if defined S_ISBLK && defined S_IFDIR
20825 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20826 #endif
20827
20828 #if defined S_ISBLK && defined S_IFCHR
20829 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20830 #endif
20831
20832 #if defined S_ISLNK && defined S_IFREG
20833 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20834 #endif
20835
20836 #if defined S_ISSOCK && defined S_IFREG
20837 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20838 #endif
20839
20840 _ACEOF
20841 rm -f conftest.$ac_objext
20842 if { (ac_try="$ac_compile"
20843 case "(($ac_try" in
20844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20845   *) ac_try_echo=$ac_try;;
20846 esac
20847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20848   (eval "$ac_compile") 2>conftest.er1
20849   ac_status=$?
20850   grep -v '^ *+' conftest.er1 >conftest.err
20851   rm -f conftest.er1
20852   cat conftest.err >&5
20853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854   (exit $ac_status); } && {
20855          test -z "$ac_c_werror_flag" ||
20856          test ! -s conftest.err
20857        } && test -s conftest.$ac_objext; then
20858   ac_cv_header_stat_broken=no
20859 else
20860   echo "$as_me: failed program was:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20862
20863         ac_cv_header_stat_broken=yes
20864 fi
20865
20866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20867 fi
20868 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20869 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20870 if test $ac_cv_header_stat_broken = yes; then
20871
20872 cat >>confdefs.h <<\_ACEOF
20873 #define STAT_MACROS_BROKEN 1
20874 _ACEOF
20875
20876 fi
20877
20878 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20879 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20880 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20881   echo $ECHO_N "(cached) $ECHO_C" >&6
20882 else
20883   cat >conftest.$ac_ext <<_ACEOF
20884 /* confdefs.h.  */
20885 _ACEOF
20886 cat confdefs.h >>conftest.$ac_ext
20887 cat >>conftest.$ac_ext <<_ACEOF
20888 /* end confdefs.h.  */
20889 #include <sys/types.h>
20890 #include <sys/wait.h>
20891 #ifndef WEXITSTATUS
20892 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20893 #endif
20894 #ifndef WIFEXITED
20895 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20896 #endif
20897
20898 int
20899 main ()
20900 {
20901   int s;
20902   wait (&s);
20903   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20904   ;
20905   return 0;
20906 }
20907 _ACEOF
20908 rm -f conftest.$ac_objext
20909 if { (ac_try="$ac_compile"
20910 case "(($ac_try" in
20911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912   *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915   (eval "$ac_compile") 2>conftest.er1
20916   ac_status=$?
20917   grep -v '^ *+' conftest.er1 >conftest.err
20918   rm -f conftest.er1
20919   cat conftest.err >&5
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); } && {
20922          test -z "$ac_c_werror_flag" ||
20923          test ! -s conftest.err
20924        } && test -s conftest.$ac_objext; then
20925   ac_cv_header_sys_wait_h=yes
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930         ac_cv_header_sys_wait_h=no
20931 fi
20932
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 fi
20935 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20936 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20937 if test $ac_cv_header_sys_wait_h = yes; then
20938
20939 cat >>confdefs.h <<\_ACEOF
20940 #define HAVE_SYS_WAIT_H 1
20941 _ACEOF
20942
20943 fi
20944
20945 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20946 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20947 if test "${ac_cv_header_time+set}" = set; then
20948   echo $ECHO_N "(cached) $ECHO_C" >&6
20949 else
20950   cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 #include <sys/types.h>
20957 #include <sys/time.h>
20958 #include <time.h>
20959
20960 int
20961 main ()
20962 {
20963 if ((struct tm *) 0)
20964 return 0;
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (ac_try="$ac_compile"
20971 case "(($ac_try" in
20972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20973   *) ac_try_echo=$ac_try;;
20974 esac
20975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20976   (eval "$ac_compile") 2>conftest.er1
20977   ac_status=$?
20978   grep -v '^ *+' conftest.er1 >conftest.err
20979   rm -f conftest.er1
20980   cat conftest.err >&5
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); } && {
20983          test -z "$ac_c_werror_flag" ||
20984          test ! -s conftest.err
20985        } && test -s conftest.$ac_objext; then
20986   ac_cv_header_time=yes
20987 else
20988   echo "$as_me: failed program was:" >&5
20989 sed 's/^/| /' conftest.$ac_ext >&5
20990
20991         ac_cv_header_time=no
20992 fi
20993
20994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20995 fi
20996 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20997 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20998 if test $ac_cv_header_time = yes; then
20999
21000 cat >>confdefs.h <<\_ACEOF
21001 #define TIME_WITH_SYS_TIME 1
21002 _ACEOF
21003
21004 fi
21005
21006 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21007 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21008 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21009   echo $ECHO_N "(cached) $ECHO_C" >&6
21010 else
21011   cat >conftest.$ac_ext <<_ACEOF
21012 /* confdefs.h.  */
21013 _ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h.  */
21017 $ac_includes_default
21018 int
21019 main ()
21020 {
21021 static struct stat ac_aggr;
21022 if (ac_aggr.st_blksize)
21023 return 0;
21024   ;
21025   return 0;
21026 }
21027 _ACEOF
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032   *) ac_try_echo=$ac_try;;
21033 esac
21034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21035   (eval "$ac_compile") 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } && {
21042          test -z "$ac_c_werror_flag" ||
21043          test ! -s conftest.err
21044        } && test -s conftest.$ac_objext; then
21045   ac_cv_member_struct_stat_st_blksize=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         cat >conftest.$ac_ext <<_ACEOF
21051 /* confdefs.h.  */
21052 _ACEOF
21053 cat confdefs.h >>conftest.$ac_ext
21054 cat >>conftest.$ac_ext <<_ACEOF
21055 /* end confdefs.h.  */
21056 $ac_includes_default
21057 int
21058 main ()
21059 {
21060 static struct stat ac_aggr;
21061 if (sizeof ac_aggr.st_blksize)
21062 return 0;
21063   ;
21064   return 0;
21065 }
21066 _ACEOF
21067 rm -f conftest.$ac_objext
21068 if { (ac_try="$ac_compile"
21069 case "(($ac_try" in
21070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071   *) ac_try_echo=$ac_try;;
21072 esac
21073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21074   (eval "$ac_compile") 2>conftest.er1
21075   ac_status=$?
21076   grep -v '^ *+' conftest.er1 >conftest.err
21077   rm -f conftest.er1
21078   cat conftest.err >&5
21079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080   (exit $ac_status); } && {
21081          test -z "$ac_c_werror_flag" ||
21082          test ! -s conftest.err
21083        } && test -s conftest.$ac_objext; then
21084   ac_cv_member_struct_stat_st_blksize=yes
21085 else
21086   echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21088
21089         ac_cv_member_struct_stat_st_blksize=no
21090 fi
21091
21092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21093 fi
21094
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096 fi
21097 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21099 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21100
21101 cat >>confdefs.h <<_ACEOF
21102 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21103 _ACEOF
21104
21105
21106 cat >>confdefs.h <<\_ACEOF
21107 #define HAVE_ST_BLKSIZE 1
21108 _ACEOF
21109
21110 fi
21111
21112
21113 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21114 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21115 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21116   echo $ECHO_N "(cached) $ECHO_C" >&6
21117 else
21118   cat >conftest.$ac_ext <<_ACEOF
21119 /* confdefs.h.  */
21120 _ACEOF
21121 cat confdefs.h >>conftest.$ac_ext
21122 cat >>conftest.$ac_ext <<_ACEOF
21123 /* end confdefs.h.  */
21124 $ac_includes_default
21125 int
21126 main ()
21127 {
21128 static struct stat ac_aggr;
21129 if (ac_aggr.st_blocks)
21130 return 0;
21131   ;
21132   return 0;
21133 }
21134 _ACEOF
21135 rm -f conftest.$ac_objext
21136 if { (ac_try="$ac_compile"
21137 case "(($ac_try" in
21138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139   *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142   (eval "$ac_compile") 2>conftest.er1
21143   ac_status=$?
21144   grep -v '^ *+' conftest.er1 >conftest.err
21145   rm -f conftest.er1
21146   cat conftest.err >&5
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); } && {
21149          test -z "$ac_c_werror_flag" ||
21150          test ! -s conftest.err
21151        } && test -s conftest.$ac_objext; then
21152   ac_cv_member_struct_stat_st_blocks=yes
21153 else
21154   echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157         cat >conftest.$ac_ext <<_ACEOF
21158 /* confdefs.h.  */
21159 _ACEOF
21160 cat confdefs.h >>conftest.$ac_ext
21161 cat >>conftest.$ac_ext <<_ACEOF
21162 /* end confdefs.h.  */
21163 $ac_includes_default
21164 int
21165 main ()
21166 {
21167 static struct stat ac_aggr;
21168 if (sizeof ac_aggr.st_blocks)
21169 return 0;
21170   ;
21171   return 0;
21172 }
21173 _ACEOF
21174 rm -f conftest.$ac_objext
21175 if { (ac_try="$ac_compile"
21176 case "(($ac_try" in
21177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21178   *) ac_try_echo=$ac_try;;
21179 esac
21180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21181   (eval "$ac_compile") 2>conftest.er1
21182   ac_status=$?
21183   grep -v '^ *+' conftest.er1 >conftest.err
21184   rm -f conftest.er1
21185   cat conftest.err >&5
21186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21187   (exit $ac_status); } && {
21188          test -z "$ac_c_werror_flag" ||
21189          test ! -s conftest.err
21190        } && test -s conftest.$ac_objext; then
21191   ac_cv_member_struct_stat_st_blocks=yes
21192 else
21193   echo "$as_me: failed program was:" >&5
21194 sed 's/^/| /' conftest.$ac_ext >&5
21195
21196         ac_cv_member_struct_stat_st_blocks=no
21197 fi
21198
21199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21200 fi
21201
21202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21203 fi
21204 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21205 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21206 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21207
21208 cat >>confdefs.h <<_ACEOF
21209 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21210 _ACEOF
21211
21212
21213 cat >>confdefs.h <<\_ACEOF
21214 #define HAVE_ST_BLOCKS 1
21215 _ACEOF
21216
21217 else
21218   case " $LIBOBJS " in
21219   *" fileblocks.$ac_objext "* ) ;;
21220   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21221  ;;
21222 esac
21223
21224 fi
21225
21226
21227 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21228 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21229 if test "${ac_cv_struct_tm+set}" = set; then
21230   echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232   cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h.  */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h.  */
21238 #include <sys/types.h>
21239 #include <time.h>
21240
21241 int
21242 main ()
21243 {
21244 struct tm tm;
21245                                      int *p = &tm.tm_sec;
21246                                      return !p;
21247   ;
21248   return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext
21252 if { (ac_try="$ac_compile"
21253 case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258   (eval "$ac_compile") 2>conftest.er1
21259   ac_status=$?
21260   grep -v '^ *+' conftest.er1 >conftest.err
21261   rm -f conftest.er1
21262   cat conftest.err >&5
21263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264   (exit $ac_status); } && {
21265          test -z "$ac_c_werror_flag" ||
21266          test ! -s conftest.err
21267        } && test -s conftest.$ac_objext; then
21268   ac_cv_struct_tm=time.h
21269 else
21270   echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273         ac_cv_struct_tm=sys/time.h
21274 fi
21275
21276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21277 fi
21278 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21279 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21280 if test $ac_cv_struct_tm = sys/time.h; then
21281
21282 cat >>confdefs.h <<\_ACEOF
21283 #define TM_IN_SYS_TIME 1
21284 _ACEOF
21285
21286 fi
21287
21288 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21289 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21290 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21291   echo $ECHO_N "(cached) $ECHO_C" >&6
21292 else
21293   cat >conftest.$ac_ext <<_ACEOF
21294 /* confdefs.h.  */
21295 _ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h.  */
21299 #include <sys/types.h>
21300 #include <$ac_cv_struct_tm>
21301
21302
21303 int
21304 main ()
21305 {
21306 static struct tm ac_aggr;
21307 if (ac_aggr.tm_zone)
21308 return 0;
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317   *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320   (eval "$ac_compile") 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } && {
21327          test -z "$ac_c_werror_flag" ||
21328          test ! -s conftest.err
21329        } && test -s conftest.$ac_objext; then
21330   ac_cv_member_struct_tm_tm_zone=yes
21331 else
21332   echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335         cat >conftest.$ac_ext <<_ACEOF
21336 /* confdefs.h.  */
21337 _ACEOF
21338 cat confdefs.h >>conftest.$ac_ext
21339 cat >>conftest.$ac_ext <<_ACEOF
21340 /* end confdefs.h.  */
21341 #include <sys/types.h>
21342 #include <$ac_cv_struct_tm>
21343
21344
21345 int
21346 main ()
21347 {
21348 static struct tm ac_aggr;
21349 if (sizeof ac_aggr.tm_zone)
21350 return 0;
21351   ;
21352   return 0;
21353 }
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (ac_try="$ac_compile"
21357 case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_compile") 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } && {
21369          test -z "$ac_c_werror_flag" ||
21370          test ! -s conftest.err
21371        } && test -s conftest.$ac_objext; then
21372   ac_cv_member_struct_tm_tm_zone=yes
21373 else
21374   echo "$as_me: failed program was:" >&5
21375 sed 's/^/| /' conftest.$ac_ext >&5
21376
21377         ac_cv_member_struct_tm_tm_zone=no
21378 fi
21379
21380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 fi
21385 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21386 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21387 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21388
21389 cat >>confdefs.h <<_ACEOF
21390 #define HAVE_STRUCT_TM_TM_ZONE 1
21391 _ACEOF
21392
21393
21394 fi
21395
21396 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21397
21398 cat >>confdefs.h <<\_ACEOF
21399 #define HAVE_TM_ZONE 1
21400 _ACEOF
21401
21402 else
21403   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21404 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21405 if test "${ac_cv_have_decl_tzname+set}" = set; then
21406   echo $ECHO_N "(cached) $ECHO_C" >&6
21407 else
21408   cat >conftest.$ac_ext <<_ACEOF
21409 /* confdefs.h.  */
21410 _ACEOF
21411 cat confdefs.h >>conftest.$ac_ext
21412 cat >>conftest.$ac_ext <<_ACEOF
21413 /* end confdefs.h.  */
21414 #include <time.h>
21415
21416 int
21417 main ()
21418 {
21419 #ifndef tzname
21420   (void) tzname;
21421 #endif
21422
21423   ;
21424   return 0;
21425 }
21426 _ACEOF
21427 rm -f conftest.$ac_objext
21428 if { (ac_try="$ac_compile"
21429 case "(($ac_try" in
21430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431   *) ac_try_echo=$ac_try;;
21432 esac
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434   (eval "$ac_compile") 2>conftest.er1
21435   ac_status=$?
21436   grep -v '^ *+' conftest.er1 >conftest.err
21437   rm -f conftest.er1
21438   cat conftest.err >&5
21439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440   (exit $ac_status); } && {
21441          test -z "$ac_c_werror_flag" ||
21442          test ! -s conftest.err
21443        } && test -s conftest.$ac_objext; then
21444   ac_cv_have_decl_tzname=yes
21445 else
21446   echo "$as_me: failed program was:" >&5
21447 sed 's/^/| /' conftest.$ac_ext >&5
21448
21449         ac_cv_have_decl_tzname=no
21450 fi
21451
21452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21453 fi
21454 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21455 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21456 if test $ac_cv_have_decl_tzname = yes; then
21457
21458 cat >>confdefs.h <<_ACEOF
21459 #define HAVE_DECL_TZNAME 1
21460 _ACEOF
21461
21462
21463 else
21464   cat >>confdefs.h <<_ACEOF
21465 #define HAVE_DECL_TZNAME 0
21466 _ACEOF
21467
21468
21469 fi
21470
21471
21472   { echo "$as_me:$LINENO: checking for tzname" >&5
21473 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21474 if test "${ac_cv_var_tzname+set}" = set; then
21475   echo $ECHO_N "(cached) $ECHO_C" >&6
21476 else
21477   cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h.  */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h.  */
21483 #include <time.h>
21484 #if !HAVE_DECL_TZNAME
21485 extern char *tzname[];
21486 #endif
21487
21488 int
21489 main ()
21490 {
21491 return tzname[0][0];
21492   ;
21493   return 0;
21494 }
21495 _ACEOF
21496 rm -f conftest.$ac_objext conftest$ac_exeext
21497 if { (ac_try="$ac_link"
21498 case "(($ac_try" in
21499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21500   *) ac_try_echo=$ac_try;;
21501 esac
21502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21503   (eval "$ac_link") 2>conftest.er1
21504   ac_status=$?
21505   grep -v '^ *+' conftest.er1 >conftest.err
21506   rm -f conftest.er1
21507   cat conftest.err >&5
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); } && {
21510          test -z "$ac_c_werror_flag" ||
21511          test ! -s conftest.err
21512        } && test -s conftest$ac_exeext &&
21513        $as_test_x conftest$ac_exeext; then
21514   ac_cv_var_tzname=yes
21515 else
21516   echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519         ac_cv_var_tzname=no
21520 fi
21521
21522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21523       conftest$ac_exeext conftest.$ac_ext
21524 fi
21525 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21526 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21527   if test $ac_cv_var_tzname = yes; then
21528
21529 cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_TZNAME 1
21531 _ACEOF
21532
21533   fi
21534 fi
21535
21536
21537 { echo "$as_me:$LINENO: checking for utime.h" >&5
21538 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21539 if test "${ba_cv_header_utime_h+set}" = set; then
21540   echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542   cat >conftest.$ac_ext <<_ACEOF
21543 /* confdefs.h.  */
21544 _ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h.  */
21548
21549 #include <sys/types.h>
21550 #include <utime.h>
21551 int
21552 main ()
21553 {
21554 struct utimbuf foo
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_compile") 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } && {
21573          test -z "$ac_c_werror_flag" ||
21574          test ! -s conftest.err
21575        } && test -s conftest.$ac_objext; then
21576   ba_cv_header_utime_h=yes
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581         ba_cv_header_utime_h=no
21582 fi
21583
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21585 fi
21586 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21587 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21588 test $ba_cv_header_utime_h = yes &&
21589 cat >>confdefs.h <<\_ACEOF
21590 #define HAVE_UTIME_H 1
21591 _ACEOF
21592
21593
21594 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21595 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21596 if test "${ba_cv_header_socklen_t+set}" = set; then
21597   echo $ECHO_N "(cached) $ECHO_C" >&6
21598 else
21599   cat >conftest.$ac_ext <<_ACEOF
21600 /* confdefs.h.  */
21601 _ACEOF
21602 cat confdefs.h >>conftest.$ac_ext
21603 cat >>conftest.$ac_ext <<_ACEOF
21604 /* end confdefs.h.  */
21605
21606 #include <sys/types.h>
21607 #include <sys/socket.h>
21608 int
21609 main ()
21610 {
21611 socklen_t x
21612   ;
21613   return 0;
21614 }
21615 _ACEOF
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620   *) ac_try_echo=$ac_try;;
21621 esac
21622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21623   (eval "$ac_compile") 2>conftest.er1
21624   ac_status=$?
21625   grep -v '^ *+' conftest.er1 >conftest.err
21626   rm -f conftest.er1
21627   cat conftest.err >&5
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); } && {
21630          test -z "$ac_c_werror_flag" ||
21631          test ! -s conftest.err
21632        } && test -s conftest.$ac_objext; then
21633   ba_cv_header_socklen_t=yes
21634 else
21635   echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21637
21638         ba_cv_header_socklen_t=no
21639 fi
21640
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 fi
21643 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21644 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21645 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21646 #define HAVE_SOCKLEN_T 1
21647 _ACEOF
21648
21649
21650 { echo "$as_me:$LINENO: checking for bigendian" >&5
21651 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21652 if test "${ba_cv_bigendian+set}" = set; then
21653   echo $ECHO_N "(cached) $ECHO_C" >&6
21654 else
21655   if test "$cross_compiling" = yes; then
21656   ba_cv_bigendian=no
21657 else
21658   cat >conftest.$ac_ext <<_ACEOF
21659 /* confdefs.h.  */
21660 _ACEOF
21661 cat confdefs.h >>conftest.$ac_ext
21662 cat >>conftest.$ac_ext <<_ACEOF
21663 /* end confdefs.h.  */
21664 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21665 _ACEOF
21666 rm -f conftest$ac_exeext
21667 if { (ac_try="$ac_link"
21668 case "(($ac_try" in
21669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670   *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673   (eval "$ac_link") 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21677   { (case "(($ac_try" in
21678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679   *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682   (eval "$ac_try") 2>&5
21683   ac_status=$?
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); }; }; then
21686   ba_cv_bigendian=yes
21687 else
21688   echo "$as_me: program exited with status $ac_status" >&5
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21691
21692 ( exit $ac_status )
21693 ba_cv_bigendian=no
21694 fi
21695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21696 fi
21697
21698
21699 fi
21700 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21701 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21702 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21703 #define HAVE_BIGENDIAN 1
21704 _ACEOF
21705
21706
21707 ac_ext=cpp
21708 ac_cpp='$CXXCPP $CPPFLAGS'
21709 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21710 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21711 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21712
21713
21714 { echo "$as_me:$LINENO: checking for typeof" >&5
21715 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21716 if test "${ba_cv_have_typeof+set}" = set; then
21717   echo $ECHO_N "(cached) $ECHO_C" >&6
21718 else
21719   if test "$cross_compiling" = yes; then
21720   ba_cv_have_typeof=no
21721 else
21722   cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h.  */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h.  */
21728 main(){char *a = 0; a = (typeof a)a;}
21729 _ACEOF
21730 rm -f conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734   *) ac_try_echo=$ac_try;;
21735 esac
21736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21737   (eval "$ac_link") 2>&5
21738   ac_status=$?
21739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21740   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21741   { (case "(($ac_try" in
21742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743   *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746   (eval "$ac_try") 2>&5
21747   ac_status=$?
21748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749   (exit $ac_status); }; }; then
21750   ba_cv_have_typeof=yes
21751 else
21752   echo "$as_me: program exited with status $ac_status" >&5
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ( exit $ac_status )
21757 ba_cv_have_typeof=no
21758 fi
21759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21760 fi
21761
21762
21763 fi
21764 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21765 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21766 test $ba_cv_have_typeof = yes &&
21767 cat >>confdefs.h <<\_ACEOF
21768 #define HAVE_TYPEOF 1
21769 _ACEOF
21770
21771 ac_ext=c
21772 ac_cpp='$CPP $CPPFLAGS'
21773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21776
21777
21778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21780 if test "${ac_cv_c_const+set}" = set; then
21781   echo $ECHO_N "(cached) $ECHO_C" >&6
21782 else
21783   cat >conftest.$ac_ext <<_ACEOF
21784 /* confdefs.h.  */
21785 _ACEOF
21786 cat confdefs.h >>conftest.$ac_ext
21787 cat >>conftest.$ac_ext <<_ACEOF
21788 /* end confdefs.h.  */
21789
21790 int
21791 main ()
21792 {
21793 /* FIXME: Include the comments suggested by Paul. */
21794 #ifndef __cplusplus
21795   /* Ultrix mips cc rejects this.  */
21796   typedef int charset[2];
21797   const charset cs;
21798   /* SunOS 4.1.1 cc rejects this.  */
21799   char const *const *pcpcc;
21800   char **ppc;
21801   /* NEC SVR4.0.2 mips cc rejects this.  */
21802   struct point {int x, y;};
21803   static struct point const zero = {0,0};
21804   /* AIX XL C 1.02.0.0 rejects this.
21805      It does not let you subtract one const X* pointer from another in
21806      an arm of an if-expression whose if-part is not a constant
21807      expression */
21808   const char *g = "string";
21809   pcpcc = &g + (g ? g-g : 0);
21810   /* HPUX 7.0 cc rejects these. */
21811   ++pcpcc;
21812   ppc = (char**) pcpcc;
21813   pcpcc = (char const *const *) ppc;
21814   { /* SCO 3.2v4 cc rejects this.  */
21815     char *t;
21816     char const *s = 0 ? (char *) 0 : (char const *) 0;
21817
21818     *t++ = 0;
21819     if (s) return 0;
21820   }
21821   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21822     int x[] = {25, 17};
21823     const int *foo = &x[0];
21824     ++foo;
21825   }
21826   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21827     typedef const int *iptr;
21828     iptr p = 0;
21829     ++p;
21830   }
21831   { /* AIX XL C 1.02.0.0 rejects this saying
21832        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21833     struct s { int j; const int *ap[3]; };
21834     struct s *b; b->j = 5;
21835   }
21836   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21837     const int foo = 10;
21838     if (!foo) return 0;
21839   }
21840   return !cs[0] && !zero.x;
21841 #endif
21842
21843   ;
21844   return 0;
21845 }
21846 _ACEOF
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851   *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854   (eval "$ac_compile") 2>conftest.er1
21855   ac_status=$?
21856   grep -v '^ *+' conftest.er1 >conftest.err
21857   rm -f conftest.er1
21858   cat conftest.err >&5
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); } && {
21861          test -z "$ac_c_werror_flag" ||
21862          test ! -s conftest.err
21863        } && test -s conftest.$ac_objext; then
21864   ac_cv_c_const=yes
21865 else
21866   echo "$as_me: failed program was:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21868
21869         ac_cv_c_const=no
21870 fi
21871
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 fi
21874 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21875 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21876 if test $ac_cv_c_const = no; then
21877
21878 cat >>confdefs.h <<\_ACEOF
21879 #define const
21880 _ACEOF
21881
21882 fi
21883
21884
21885
21886 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21887 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21888 fstype=no
21889 # The order of these tests is important.
21890 cat >conftest.$ac_ext <<_ACEOF
21891 /* confdefs.h.  */
21892 _ACEOF
21893 cat confdefs.h >>conftest.$ac_ext
21894 cat >>conftest.$ac_ext <<_ACEOF
21895 /* end confdefs.h.  */
21896 #include <sys/statvfs.h>
21897 #include <sys/fstyp.h>
21898 _ACEOF
21899 if { (ac_try="$ac_cpp conftest.$ac_ext"
21900 case "(($ac_try" in
21901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902   *) ac_try_echo=$ac_try;;
21903 esac
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21906   ac_status=$?
21907   grep -v '^ *+' conftest.er1 >conftest.err
21908   rm -f conftest.er1
21909   cat conftest.err >&5
21910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911   (exit $ac_status); } >/dev/null && {
21912          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21913          test ! -s conftest.err
21914        }; then
21915   cat >>confdefs.h <<\_ACEOF
21916 #define FSTYPE_STATVFS 1
21917 _ACEOF
21918  fstype=SVR4
21919 else
21920   echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21922
21923
21924 fi
21925
21926 rm -f conftest.err conftest.$ac_ext
21927 if test $fstype = no; then
21928 cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h.  */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h.  */
21934 #include <sys/statfs.h>
21935 #include <sys/fstyp.h>
21936 _ACEOF
21937 if { (ac_try="$ac_cpp conftest.$ac_ext"
21938 case "(($ac_try" in
21939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940   *) ac_try_echo=$ac_try;;
21941 esac
21942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21944   ac_status=$?
21945   grep -v '^ *+' conftest.er1 >conftest.err
21946   rm -f conftest.er1
21947   cat conftest.err >&5
21948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949   (exit $ac_status); } >/dev/null && {
21950          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21951          test ! -s conftest.err
21952        }; then
21953   cat >>confdefs.h <<\_ACEOF
21954 #define FSTYPE_USG_STATFS 1
21955 _ACEOF
21956  fstype=SVR3
21957 else
21958   echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21960
21961
21962 fi
21963
21964 rm -f conftest.err conftest.$ac_ext
21965 fi
21966 if test $fstype = no; then
21967 cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 #include <sys/statfs.h>
21974 #include <sys/vmount.h>
21975 _ACEOF
21976 if { (ac_try="$ac_cpp conftest.$ac_ext"
21977 case "(($ac_try" in
21978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979   *) ac_try_echo=$ac_try;;
21980 esac
21981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21982   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21983   ac_status=$?
21984   grep -v '^ *+' conftest.er1 >conftest.err
21985   rm -f conftest.er1
21986   cat conftest.err >&5
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); } >/dev/null && {
21989          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21990          test ! -s conftest.err
21991        }; then
21992   cat >>confdefs.h <<\_ACEOF
21993 #define FSTYPE_AIX_STATFS 1
21994 _ACEOF
21995  fstype=AIX
21996 else
21997   echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.$ac_ext >&5
21999
22000
22001 fi
22002
22003 rm -f conftest.err conftest.$ac_ext
22004 fi
22005 if test $fstype = no; then
22006 cat >conftest.$ac_ext <<_ACEOF
22007 /* confdefs.h.  */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h.  */
22012 #include <mntent.h>
22013 _ACEOF
22014 if { (ac_try="$ac_cpp conftest.$ac_ext"
22015 case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } >/dev/null && {
22027          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22028          test ! -s conftest.err
22029        }; then
22030   cat >>confdefs.h <<\_ACEOF
22031 #define FSTYPE_MNTENT 1
22032 _ACEOF
22033  fstype=4.3BSD
22034 else
22035   echo "$as_me: failed program was:" >&5
22036 sed 's/^/| /' conftest.$ac_ext >&5
22037
22038
22039 fi
22040
22041 rm -f conftest.err conftest.$ac_ext
22042 fi
22043 if test $fstype = no; then
22044 cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h.  */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h.  */
22050 #include <sys/mount.h>
22051
22052 _ACEOF
22053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22054   $EGREP "f_type;" >/dev/null 2>&1; then
22055   cat >>confdefs.h <<\_ACEOF
22056 #define FSTYPE_STATFS 1
22057 _ACEOF
22058  fstype=4.4BSD/OSF1
22059 fi
22060 rm -f conftest*
22061
22062 fi
22063 if test $fstype = no; then
22064 cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 #include <sys/mount.h>
22071 #include <sys/fs_types.h>
22072 _ACEOF
22073 if { (ac_try="$ac_cpp conftest.$ac_ext"
22074 case "(($ac_try" in
22075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076   *) ac_try_echo=$ac_try;;
22077 esac
22078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22079   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22080   ac_status=$?
22081   grep -v '^ *+' conftest.er1 >conftest.err
22082   rm -f conftest.er1
22083   cat conftest.err >&5
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); } >/dev/null && {
22086          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22087          test ! -s conftest.err
22088        }; then
22089   cat >>confdefs.h <<\_ACEOF
22090 #define FSTYPE_GETMNT 1
22091 _ACEOF
22092  fstype=Ultrix
22093 else
22094   echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22096
22097
22098 fi
22099
22100 rm -f conftest.err conftest.$ac_ext
22101 fi
22102 { echo "$as_me:$LINENO: result: $fstype" >&5
22103 echo "${ECHO_T}$fstype" >&6; }
22104
22105 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22106   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22107 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22108 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22109   echo $ECHO_N "(cached) $ECHO_C" >&6
22110 fi
22111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22112 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22113 else
22114   # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22116 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123 $ac_includes_default
22124 #include <sys/statvfs.h>
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_compile") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } && {
22140          test -z "$ac_c_werror_flag" ||
22141          test ! -s conftest.err
22142        } && test -s conftest.$ac_objext; then
22143   ac_header_compiler=yes
22144 else
22145   echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22147
22148         ac_header_compiler=no
22149 fi
22150
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22153 echo "${ECHO_T}$ac_header_compiler" >&6; }
22154
22155 # Is the header present?
22156 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22157 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22158 cat >conftest.$ac_ext <<_ACEOF
22159 /* confdefs.h.  */
22160 _ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h.  */
22164 #include <sys/statvfs.h>
22165 _ACEOF
22166 if { (ac_try="$ac_cpp conftest.$ac_ext"
22167 case "(($ac_try" in
22168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22169   *) ac_try_echo=$ac_try;;
22170 esac
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22173   ac_status=$?
22174   grep -v '^ *+' conftest.er1 >conftest.err
22175   rm -f conftest.er1
22176   cat conftest.err >&5
22177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178   (exit $ac_status); } >/dev/null && {
22179          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180          test ! -s conftest.err
22181        }; then
22182   ac_header_preproc=yes
22183 else
22184   echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.$ac_ext >&5
22186
22187   ac_header_preproc=no
22188 fi
22189
22190 rm -f conftest.err conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192 echo "${ECHO_T}$ac_header_preproc" >&6; }
22193
22194 # So?  What about this header?
22195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22196   yes:no: )
22197     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22198 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22199     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22200 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22201     ac_header_preproc=yes
22202     ;;
22203   no:yes:* )
22204     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22205 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22206     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22207 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22208     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22209 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22210     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22211 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22212     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22213 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22214     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22215 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22216
22217     ;;
22218 esac
22219 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22220 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22221 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22222   echo $ECHO_N "(cached) $ECHO_C" >&6
22223 else
22224   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22225 fi
22226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22227 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22228
22229 fi
22230 if test $ac_cv_header_sys_statvfs_h = yes; then
22231
22232 cat >>confdefs.h <<\_ACEOF
22233 #define HAVE_SYS_STATVFS_H 1
22234 _ACEOF
22235
22236 fi
22237
22238
22239
22240 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22241 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22242 if test "${ac_cv_type_signal+set}" = set; then
22243   echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245   cat >conftest.$ac_ext <<_ACEOF
22246 /* confdefs.h.  */
22247 _ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h.  */
22251 #include <sys/types.h>
22252 #include <signal.h>
22253
22254 int
22255 main ()
22256 {
22257 return *(signal (0, 0)) (0) == 1;
22258   ;
22259   return 0;
22260 }
22261 _ACEOF
22262 rm -f conftest.$ac_objext
22263 if { (ac_try="$ac_compile"
22264 case "(($ac_try" in
22265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266   *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269   (eval "$ac_compile") 2>conftest.er1
22270   ac_status=$?
22271   grep -v '^ *+' conftest.er1 >conftest.err
22272   rm -f conftest.er1
22273   cat conftest.err >&5
22274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275   (exit $ac_status); } && {
22276          test -z "$ac_c_werror_flag" ||
22277          test ! -s conftest.err
22278        } && test -s conftest.$ac_objext; then
22279   ac_cv_type_signal=int
22280 else
22281   echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284         ac_cv_type_signal=void
22285 fi
22286
22287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22288 fi
22289 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22290 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22291
22292 cat >>confdefs.h <<_ACEOF
22293 #define RETSIGTYPE $ac_cv_type_signal
22294 _ACEOF
22295
22296
22297
22298   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22299 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22300   if test "${bash_cv_signal_vintage+set}" = set; then
22301   echo $ECHO_N "(cached) $ECHO_C" >&6
22302 else
22303
22304     cat >conftest.$ac_ext <<_ACEOF
22305 /* confdefs.h.  */
22306 _ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h.  */
22310 #include <signal.h>
22311 int
22312 main ()
22313 {
22314
22315       sigset_t ss;
22316       struct sigaction sa;
22317       sigemptyset(&ss); sigsuspend(&ss);
22318       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22319       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22320
22321   ;
22322   return 0;
22323 }
22324 _ACEOF
22325 rm -f conftest.$ac_objext conftest$ac_exeext
22326 if { (ac_try="$ac_link"
22327 case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332   (eval "$ac_link") 2>conftest.er1
22333   ac_status=$?
22334   grep -v '^ *+' conftest.er1 >conftest.err
22335   rm -f conftest.er1
22336   cat conftest.err >&5
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && {
22339          test -z "$ac_c_werror_flag" ||
22340          test ! -s conftest.err
22341        } && test -s conftest$ac_exeext &&
22342        $as_test_x conftest$ac_exeext; then
22343   bash_cv_signal_vintage="posix"
22344 else
22345   echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22347
22348
22349       cat >conftest.$ac_ext <<_ACEOF
22350 /* confdefs.h.  */
22351 _ACEOF
22352 cat confdefs.h >>conftest.$ac_ext
22353 cat >>conftest.$ac_ext <<_ACEOF
22354 /* end confdefs.h.  */
22355 #include <signal.h>
22356 int
22357 main ()
22358 {
22359
22360           int mask = sigmask(SIGINT);
22361           sigsetmask(mask); sigblock(mask); sigpause(mask);
22362
22363   ;
22364   return 0;
22365 }
22366 _ACEOF
22367 rm -f conftest.$ac_objext conftest$ac_exeext
22368 if { (ac_try="$ac_link"
22369 case "(($ac_try" in
22370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371   *) ac_try_echo=$ac_try;;
22372 esac
22373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22374   (eval "$ac_link") 2>conftest.er1
22375   ac_status=$?
22376   grep -v '^ *+' conftest.er1 >conftest.err
22377   rm -f conftest.er1
22378   cat conftest.err >&5
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   (exit $ac_status); } && {
22381          test -z "$ac_c_werror_flag" ||
22382          test ! -s conftest.err
22383        } && test -s conftest$ac_exeext &&
22384        $as_test_x conftest$ac_exeext; then
22385   bash_cv_signal_vintage="4.2bsd"
22386 else
22387   echo "$as_me: failed program was:" >&5
22388 sed 's/^/| /' conftest.$ac_ext >&5
22389
22390
22391         cat >conftest.$ac_ext <<_ACEOF
22392 /* confdefs.h.  */
22393 _ACEOF
22394 cat confdefs.h >>conftest.$ac_ext
22395 cat >>conftest.$ac_ext <<_ACEOF
22396 /* end confdefs.h.  */
22397
22398           #include <signal.h>
22399           RETSIGTYPE foo() { }
22400 int
22401 main ()
22402 {
22403
22404                   int mask = sigmask(SIGINT);
22405                   sigset(SIGINT, foo); sigrelse(SIGINT);
22406                   sighold(SIGINT); sigpause(SIGINT);
22407
22408   ;
22409   return 0;
22410 }
22411 _ACEOF
22412 rm -f conftest.$ac_objext conftest$ac_exeext
22413 if { (ac_try="$ac_link"
22414 case "(($ac_try" in
22415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22416   *) ac_try_echo=$ac_try;;
22417 esac
22418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22419   (eval "$ac_link") 2>conftest.er1
22420   ac_status=$?
22421   grep -v '^ *+' conftest.er1 >conftest.err
22422   rm -f conftest.er1
22423   cat conftest.err >&5
22424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425   (exit $ac_status); } && {
22426          test -z "$ac_c_werror_flag" ||
22427          test ! -s conftest.err
22428        } && test -s conftest$ac_exeext &&
22429        $as_test_x conftest$ac_exeext; then
22430   bash_cv_signal_vintage="svr3"
22431 else
22432   echo "$as_me: failed program was:" >&5
22433 sed 's/^/| /' conftest.$ac_ext >&5
22434
22435         bash_cv_signal_vintage="v7"
22436
22437 fi
22438
22439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22440       conftest$ac_exeext conftest.$ac_ext
22441
22442 fi
22443
22444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22445       conftest$ac_exeext conftest.$ac_ext
22446
22447 fi
22448
22449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22450       conftest$ac_exeext conftest.$ac_ext
22451
22452 fi
22453
22454   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22455 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22456   if test "$bash_cv_signal_vintage" = "posix"; then
22457     cat >>confdefs.h <<\_ACEOF
22458 #define HAVE_POSIX_SIGNALS 1
22459 _ACEOF
22460
22461   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22462     cat >>confdefs.h <<\_ACEOF
22463 #define HAVE_BSD_SIGNALS 1
22464 _ACEOF
22465
22466   elif test "$bash_cv_signal_vintage" = "svr3"; then
22467     cat >>confdefs.h <<\_ACEOF
22468 #define HAVE_USG_SIGHOLD 1
22469 _ACEOF
22470
22471   fi
22472
22473 { echo "$as_me:$LINENO: checking for mode_t" >&5
22474 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22475 if test "${ac_cv_type_mode_t+set}" = set; then
22476   echo $ECHO_N "(cached) $ECHO_C" >&6
22477 else
22478   cat >conftest.$ac_ext <<_ACEOF
22479 /* confdefs.h.  */
22480 _ACEOF
22481 cat confdefs.h >>conftest.$ac_ext
22482 cat >>conftest.$ac_ext <<_ACEOF
22483 /* end confdefs.h.  */
22484 $ac_includes_default
22485 typedef mode_t ac__type_new_;
22486 int
22487 main ()
22488 {
22489 if ((ac__type_new_ *) 0)
22490   return 0;
22491 if (sizeof (ac__type_new_))
22492   return 0;
22493   ;
22494   return 0;
22495 }
22496 _ACEOF
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501   *) ac_try_echo=$ac_try;;
22502 esac
22503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22504   (eval "$ac_compile") 2>conftest.er1
22505   ac_status=$?
22506   grep -v '^ *+' conftest.er1 >conftest.err
22507   rm -f conftest.er1
22508   cat conftest.err >&5
22509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510   (exit $ac_status); } && {
22511          test -z "$ac_c_werror_flag" ||
22512          test ! -s conftest.err
22513        } && test -s conftest.$ac_objext; then
22514   ac_cv_type_mode_t=yes
22515 else
22516   echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22518
22519         ac_cv_type_mode_t=no
22520 fi
22521
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523 fi
22524 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22525 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22526 if test $ac_cv_type_mode_t = yes; then
22527   :
22528 else
22529
22530 cat >>confdefs.h <<_ACEOF
22531 #define mode_t int
22532 _ACEOF
22533
22534 fi
22535
22536 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22537 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22538 if test "${ac_cv_type_uid_t+set}" = set; then
22539   echo $ECHO_N "(cached) $ECHO_C" >&6
22540 else
22541   cat >conftest.$ac_ext <<_ACEOF
22542 /* confdefs.h.  */
22543 _ACEOF
22544 cat confdefs.h >>conftest.$ac_ext
22545 cat >>conftest.$ac_ext <<_ACEOF
22546 /* end confdefs.h.  */
22547 #include <sys/types.h>
22548
22549 _ACEOF
22550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22551   $EGREP "uid_t" >/dev/null 2>&1; then
22552   ac_cv_type_uid_t=yes
22553 else
22554   ac_cv_type_uid_t=no
22555 fi
22556 rm -f conftest*
22557
22558 fi
22559 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22560 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22561 if test $ac_cv_type_uid_t = no; then
22562
22563 cat >>confdefs.h <<\_ACEOF
22564 #define uid_t int
22565 _ACEOF
22566
22567
22568 cat >>confdefs.h <<\_ACEOF
22569 #define gid_t int
22570 _ACEOF
22571
22572 fi
22573
22574 { echo "$as_me:$LINENO: checking for size_t" >&5
22575 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22576 if test "${ac_cv_type_size_t+set}" = set; then
22577   echo $ECHO_N "(cached) $ECHO_C" >&6
22578 else
22579   cat >conftest.$ac_ext <<_ACEOF
22580 /* confdefs.h.  */
22581 _ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h.  */
22585 $ac_includes_default
22586 typedef size_t ac__type_new_;
22587 int
22588 main ()
22589 {
22590 if ((ac__type_new_ *) 0)
22591   return 0;
22592 if (sizeof (ac__type_new_))
22593   return 0;
22594   ;
22595   return 0;
22596 }
22597 _ACEOF
22598 rm -f conftest.$ac_objext
22599 if { (ac_try="$ac_compile"
22600 case "(($ac_try" in
22601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602   *) ac_try_echo=$ac_try;;
22603 esac
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605   (eval "$ac_compile") 2>conftest.er1
22606   ac_status=$?
22607   grep -v '^ *+' conftest.er1 >conftest.err
22608   rm -f conftest.er1
22609   cat conftest.err >&5
22610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611   (exit $ac_status); } && {
22612          test -z "$ac_c_werror_flag" ||
22613          test ! -s conftest.err
22614        } && test -s conftest.$ac_objext; then
22615   ac_cv_type_size_t=yes
22616 else
22617   echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22619
22620         ac_cv_type_size_t=no
22621 fi
22622
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 fi
22625 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22626 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22627 if test $ac_cv_type_size_t = yes; then
22628   :
22629 else
22630
22631 cat >>confdefs.h <<_ACEOF
22632 #define size_t unsigned int
22633 _ACEOF
22634
22635 fi
22636
22637 { echo "$as_me:$LINENO: checking for pid_t" >&5
22638 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22639 if test "${ac_cv_type_pid_t+set}" = set; then
22640   echo $ECHO_N "(cached) $ECHO_C" >&6
22641 else
22642   cat >conftest.$ac_ext <<_ACEOF
22643 /* confdefs.h.  */
22644 _ACEOF
22645 cat confdefs.h >>conftest.$ac_ext
22646 cat >>conftest.$ac_ext <<_ACEOF
22647 /* end confdefs.h.  */
22648 $ac_includes_default
22649 typedef pid_t ac__type_new_;
22650 int
22651 main ()
22652 {
22653 if ((ac__type_new_ *) 0)
22654   return 0;
22655 if (sizeof (ac__type_new_))
22656   return 0;
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 rm -f conftest.$ac_objext
22662 if { (ac_try="$ac_compile"
22663 case "(($ac_try" in
22664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22665   *) ac_try_echo=$ac_try;;
22666 esac
22667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22668   (eval "$ac_compile") 2>conftest.er1
22669   ac_status=$?
22670   grep -v '^ *+' conftest.er1 >conftest.err
22671   rm -f conftest.er1
22672   cat conftest.err >&5
22673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22674   (exit $ac_status); } && {
22675          test -z "$ac_c_werror_flag" ||
22676          test ! -s conftest.err
22677        } && test -s conftest.$ac_objext; then
22678   ac_cv_type_pid_t=yes
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683         ac_cv_type_pid_t=no
22684 fi
22685
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 fi
22688 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22689 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22690 if test $ac_cv_type_pid_t = yes; then
22691   :
22692 else
22693
22694 cat >>confdefs.h <<_ACEOF
22695 #define pid_t int
22696 _ACEOF
22697
22698 fi
22699
22700 { echo "$as_me:$LINENO: checking for off_t" >&5
22701 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22702 if test "${ac_cv_type_off_t+set}" = set; then
22703   echo $ECHO_N "(cached) $ECHO_C" >&6
22704 else
22705   cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h.  */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h.  */
22711 $ac_includes_default
22712 typedef off_t ac__type_new_;
22713 int
22714 main ()
22715 {
22716 if ((ac__type_new_ *) 0)
22717   return 0;
22718 if (sizeof (ac__type_new_))
22719   return 0;
22720   ;
22721   return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728   *) ac_try_echo=$ac_try;;
22729 esac
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731   (eval "$ac_compile") 2>conftest.er1
22732   ac_status=$?
22733   grep -v '^ *+' conftest.er1 >conftest.err
22734   rm -f conftest.er1
22735   cat conftest.err >&5
22736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737   (exit $ac_status); } && {
22738          test -z "$ac_c_werror_flag" ||
22739          test ! -s conftest.err
22740        } && test -s conftest.$ac_objext; then
22741   ac_cv_type_off_t=yes
22742 else
22743   echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22745
22746         ac_cv_type_off_t=no
22747 fi
22748
22749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22750 fi
22751 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22752 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22753 if test $ac_cv_type_off_t = yes; then
22754   :
22755 else
22756
22757 cat >>confdefs.h <<_ACEOF
22758 #define off_t long int
22759 _ACEOF
22760
22761 fi
22762
22763 { echo "$as_me:$LINENO: checking for ino_t" >&5
22764 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22765 if test "${ac_cv_type_ino_t+set}" = set; then
22766   echo $ECHO_N "(cached) $ECHO_C" >&6
22767 else
22768   cat >conftest.$ac_ext <<_ACEOF
22769 /* confdefs.h.  */
22770 _ACEOF
22771 cat confdefs.h >>conftest.$ac_ext
22772 cat >>conftest.$ac_ext <<_ACEOF
22773 /* end confdefs.h.  */
22774 $ac_includes_default
22775 typedef ino_t ac__type_new_;
22776 int
22777 main ()
22778 {
22779 if ((ac__type_new_ *) 0)
22780   return 0;
22781 if (sizeof (ac__type_new_))
22782   return 0;
22783   ;
22784   return 0;
22785 }
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791   *) ac_try_echo=$ac_try;;
22792 esac
22793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22794   (eval "$ac_compile") 2>conftest.er1
22795   ac_status=$?
22796   grep -v '^ *+' conftest.er1 >conftest.err
22797   rm -f conftest.er1
22798   cat conftest.err >&5
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } && {
22801          test -z "$ac_c_werror_flag" ||
22802          test ! -s conftest.err
22803        } && test -s conftest.$ac_objext; then
22804   ac_cv_type_ino_t=yes
22805 else
22806   echo "$as_me: failed program was:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22808
22809         ac_cv_type_ino_t=no
22810 fi
22811
22812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22813 fi
22814 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22815 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22816 if test $ac_cv_type_ino_t = yes; then
22817   :
22818 else
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define ino_t unsigned long
22822 _ACEOF
22823
22824 fi
22825
22826 { echo "$as_me:$LINENO: checking for dev_t" >&5
22827 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22828 if test "${ac_cv_type_dev_t+set}" = set; then
22829   echo $ECHO_N "(cached) $ECHO_C" >&6
22830 else
22831   cat >conftest.$ac_ext <<_ACEOF
22832 /* confdefs.h.  */
22833 _ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h.  */
22837 $ac_includes_default
22838 typedef dev_t ac__type_new_;
22839 int
22840 main ()
22841 {
22842 if ((ac__type_new_ *) 0)
22843   return 0;
22844 if (sizeof (ac__type_new_))
22845   return 0;
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854   *) ac_try_echo=$ac_try;;
22855 esac
22856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22857   (eval "$ac_compile") 2>conftest.er1
22858   ac_status=$?
22859   grep -v '^ *+' conftest.er1 >conftest.err
22860   rm -f conftest.er1
22861   cat conftest.err >&5
22862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863   (exit $ac_status); } && {
22864          test -z "$ac_c_werror_flag" ||
22865          test ! -s conftest.err
22866        } && test -s conftest.$ac_objext; then
22867   ac_cv_type_dev_t=yes
22868 else
22869   echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22871
22872         ac_cv_type_dev_t=no
22873 fi
22874
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22876 fi
22877 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22878 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22879 if test $ac_cv_type_dev_t = yes; then
22880   :
22881 else
22882
22883 cat >>confdefs.h <<_ACEOF
22884 #define dev_t unsigned long
22885 _ACEOF
22886
22887 fi
22888
22889 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22890 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22891 if test "${ac_cv_type_daddr_t+set}" = set; then
22892   echo $ECHO_N "(cached) $ECHO_C" >&6
22893 else
22894   cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h.  */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h.  */
22900 $ac_includes_default
22901 typedef daddr_t ac__type_new_;
22902 int
22903 main ()
22904 {
22905 if ((ac__type_new_ *) 0)
22906   return 0;
22907 if (sizeof (ac__type_new_))
22908   return 0;
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_compile") 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } && {
22927          test -z "$ac_c_werror_flag" ||
22928          test ! -s conftest.err
22929        } && test -s conftest.$ac_objext; then
22930   ac_cv_type_daddr_t=yes
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         ac_cv_type_daddr_t=no
22936 fi
22937
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 fi
22940 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22941 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22942 if test $ac_cv_type_daddr_t = yes; then
22943   :
22944 else
22945
22946 cat >>confdefs.h <<_ACEOF
22947 #define daddr_t long
22948 _ACEOF
22949
22950 fi
22951
22952 { echo "$as_me:$LINENO: checking for major_t" >&5
22953 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22954 if test "${ac_cv_type_major_t+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957   cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963 $ac_includes_default
22964 typedef major_t ac__type_new_;
22965 int
22966 main ()
22967 {
22968 if ((ac__type_new_ *) 0)
22969   return 0;
22970 if (sizeof (ac__type_new_))
22971   return 0;
22972   ;
22973   return 0;
22974 }
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980   *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983   (eval "$ac_compile") 2>conftest.er1
22984   ac_status=$?
22985   grep -v '^ *+' conftest.er1 >conftest.err
22986   rm -f conftest.er1
22987   cat conftest.err >&5
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); } && {
22990          test -z "$ac_c_werror_flag" ||
22991          test ! -s conftest.err
22992        } && test -s conftest.$ac_objext; then
22993   ac_cv_type_major_t=yes
22994 else
22995   echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22997
22998         ac_cv_type_major_t=no
22999 fi
23000
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 fi
23003 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23004 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23005 if test $ac_cv_type_major_t = yes; then
23006   :
23007 else
23008
23009 cat >>confdefs.h <<_ACEOF
23010 #define major_t int
23011 _ACEOF
23012
23013 fi
23014
23015 { echo "$as_me:$LINENO: checking for minor_t" >&5
23016 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23017 if test "${ac_cv_type_minor_t+set}" = set; then
23018   echo $ECHO_N "(cached) $ECHO_C" >&6
23019 else
23020   cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 $ac_includes_default
23027 typedef minor_t ac__type_new_;
23028 int
23029 main ()
23030 {
23031 if ((ac__type_new_ *) 0)
23032   return 0;
23033 if (sizeof (ac__type_new_))
23034   return 0;
23035   ;
23036   return 0;
23037 }
23038 _ACEOF
23039 rm -f conftest.$ac_objext
23040 if { (ac_try="$ac_compile"
23041 case "(($ac_try" in
23042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043   *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046   (eval "$ac_compile") 2>conftest.er1
23047   ac_status=$?
23048   grep -v '^ *+' conftest.er1 >conftest.err
23049   rm -f conftest.er1
23050   cat conftest.err >&5
23051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052   (exit $ac_status); } && {
23053          test -z "$ac_c_werror_flag" ||
23054          test ! -s conftest.err
23055        } && test -s conftest.$ac_objext; then
23056   ac_cv_type_minor_t=yes
23057 else
23058   echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23060
23061         ac_cv_type_minor_t=no
23062 fi
23063
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 fi
23066 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23067 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23068 if test $ac_cv_type_minor_t = yes; then
23069   :
23070 else
23071
23072 cat >>confdefs.h <<_ACEOF
23073 #define minor_t int
23074 _ACEOF
23075
23076 fi
23077
23078 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23079 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23080 if test "${ac_cv_type_ssize_t+set}" = set; then
23081   echo $ECHO_N "(cached) $ECHO_C" >&6
23082 else
23083   cat >conftest.$ac_ext <<_ACEOF
23084 /* confdefs.h.  */
23085 _ACEOF
23086 cat confdefs.h >>conftest.$ac_ext
23087 cat >>conftest.$ac_ext <<_ACEOF
23088 /* end confdefs.h.  */
23089 $ac_includes_default
23090 typedef ssize_t ac__type_new_;
23091 int
23092 main ()
23093 {
23094 if ((ac__type_new_ *) 0)
23095   return 0;
23096 if (sizeof (ac__type_new_))
23097   return 0;
23098   ;
23099   return 0;
23100 }
23101 _ACEOF
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106   *) ac_try_echo=$ac_try;;
23107 esac
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109   (eval "$ac_compile") 2>conftest.er1
23110   ac_status=$?
23111   grep -v '^ *+' conftest.er1 >conftest.err
23112   rm -f conftest.er1
23113   cat conftest.err >&5
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } && {
23116          test -z "$ac_c_werror_flag" ||
23117          test ! -s conftest.err
23118        } && test -s conftest.$ac_objext; then
23119   ac_cv_type_ssize_t=yes
23120 else
23121   echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23123
23124         ac_cv_type_ssize_t=no
23125 fi
23126
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128 fi
23129 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23130 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23131 if test $ac_cv_type_ssize_t = yes; then
23132   :
23133 else
23134
23135 cat >>confdefs.h <<_ACEOF
23136 #define ssize_t int
23137 _ACEOF
23138
23139 fi
23140
23141 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23142 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23143 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23144   echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146   cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152 $ac_includes_default
23153 int
23154 main ()
23155 {
23156 static struct stat ac_aggr;
23157 if (ac_aggr.st_blocks)
23158 return 0;
23159   ;
23160   return 0;
23161 }
23162 _ACEOF
23163 rm -f conftest.$ac_objext
23164 if { (ac_try="$ac_compile"
23165 case "(($ac_try" in
23166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23167   *) ac_try_echo=$ac_try;;
23168 esac
23169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23170   (eval "$ac_compile") 2>conftest.er1
23171   ac_status=$?
23172   grep -v '^ *+' conftest.er1 >conftest.err
23173   rm -f conftest.er1
23174   cat conftest.err >&5
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); } && {
23177          test -z "$ac_c_werror_flag" ||
23178          test ! -s conftest.err
23179        } && test -s conftest.$ac_objext; then
23180   ac_cv_member_struct_stat_st_blocks=yes
23181 else
23182   echo "$as_me: failed program was:" >&5
23183 sed 's/^/| /' conftest.$ac_ext >&5
23184
23185         cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h.  */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h.  */
23191 $ac_includes_default
23192 int
23193 main ()
23194 {
23195 static struct stat ac_aggr;
23196 if (sizeof ac_aggr.st_blocks)
23197 return 0;
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext
23203 if { (ac_try="$ac_compile"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_compile") 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } && {
23216          test -z "$ac_c_werror_flag" ||
23217          test ! -s conftest.err
23218        } && test -s conftest.$ac_objext; then
23219   ac_cv_member_struct_stat_st_blocks=yes
23220 else
23221   echo "$as_me: failed program was:" >&5
23222 sed 's/^/| /' conftest.$ac_ext >&5
23223
23224         ac_cv_member_struct_stat_st_blocks=no
23225 fi
23226
23227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 fi
23229
23230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23231 fi
23232 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23233 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23234 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23235
23236 cat >>confdefs.h <<_ACEOF
23237 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23238 _ACEOF
23239
23240
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_ST_BLOCKS 1
23243 _ACEOF
23244
23245 else
23246   case " $LIBOBJS " in
23247   *" fileblocks.$ac_objext "* ) ;;
23248   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23249  ;;
23250 esac
23251
23252 fi
23253
23254
23255 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23256 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23257 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23258   echo $ECHO_N "(cached) $ECHO_C" >&6
23259 else
23260   cat >conftest.$ac_ext <<_ACEOF
23261 /* confdefs.h.  */
23262 _ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h.  */
23266 $ac_includes_default
23267 int
23268 main ()
23269 {
23270 static struct stat ac_aggr;
23271 if (ac_aggr.st_rdev)
23272 return 0;
23273   ;
23274   return 0;
23275 }
23276 _ACEOF
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281   *) ac_try_echo=$ac_try;;
23282 esac
23283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23284   (eval "$ac_compile") 2>conftest.er1
23285   ac_status=$?
23286   grep -v '^ *+' conftest.er1 >conftest.err
23287   rm -f conftest.er1
23288   cat conftest.err >&5
23289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290   (exit $ac_status); } && {
23291          test -z "$ac_c_werror_flag" ||
23292          test ! -s conftest.err
23293        } && test -s conftest.$ac_objext; then
23294   ac_cv_member_struct_stat_st_rdev=yes
23295 else
23296   echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23298
23299         cat >conftest.$ac_ext <<_ACEOF
23300 /* confdefs.h.  */
23301 _ACEOF
23302 cat confdefs.h >>conftest.$ac_ext
23303 cat >>conftest.$ac_ext <<_ACEOF
23304 /* end confdefs.h.  */
23305 $ac_includes_default
23306 int
23307 main ()
23308 {
23309 static struct stat ac_aggr;
23310 if (sizeof ac_aggr.st_rdev)
23311 return 0;
23312   ;
23313   return 0;
23314 }
23315 _ACEOF
23316 rm -f conftest.$ac_objext
23317 if { (ac_try="$ac_compile"
23318 case "(($ac_try" in
23319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320   *) ac_try_echo=$ac_try;;
23321 esac
23322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23323   (eval "$ac_compile") 2>conftest.er1
23324   ac_status=$?
23325   grep -v '^ *+' conftest.er1 >conftest.err
23326   rm -f conftest.er1
23327   cat conftest.err >&5
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); } && {
23330          test -z "$ac_c_werror_flag" ||
23331          test ! -s conftest.err
23332        } && test -s conftest.$ac_objext; then
23333   ac_cv_member_struct_stat_st_rdev=yes
23334 else
23335   echo "$as_me: failed program was:" >&5
23336 sed 's/^/| /' conftest.$ac_ext >&5
23337
23338         ac_cv_member_struct_stat_st_rdev=no
23339 fi
23340
23341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23342 fi
23343
23344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23345 fi
23346 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23347 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23348 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23349
23350 cat >>confdefs.h <<_ACEOF
23351 #define HAVE_STRUCT_STAT_ST_RDEV 1
23352 _ACEOF
23353
23354
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_ST_RDEV 1
23357 _ACEOF
23358
23359 fi
23360
23361
23362 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23363 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23364 if test "${ac_cv_struct_tm+set}" = set; then
23365   echo $ECHO_N "(cached) $ECHO_C" >&6
23366 else
23367   cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h.  */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h.  */
23373 #include <sys/types.h>
23374 #include <time.h>
23375
23376 int
23377 main ()
23378 {
23379 struct tm tm;
23380                                      int *p = &tm.tm_sec;
23381                                      return !p;
23382   ;
23383   return 0;
23384 }
23385 _ACEOF
23386 rm -f conftest.$ac_objext
23387 if { (ac_try="$ac_compile"
23388 case "(($ac_try" in
23389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23390   *) ac_try_echo=$ac_try;;
23391 esac
23392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23393   (eval "$ac_compile") 2>conftest.er1
23394   ac_status=$?
23395   grep -v '^ *+' conftest.er1 >conftest.err
23396   rm -f conftest.er1
23397   cat conftest.err >&5
23398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399   (exit $ac_status); } && {
23400          test -z "$ac_c_werror_flag" ||
23401          test ! -s conftest.err
23402        } && test -s conftest.$ac_objext; then
23403   ac_cv_struct_tm=time.h
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         ac_cv_struct_tm=sys/time.h
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412 fi
23413 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23414 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23415 if test $ac_cv_struct_tm = sys/time.h; then
23416
23417 cat >>confdefs.h <<\_ACEOF
23418 #define TM_IN_SYS_TIME 1
23419 _ACEOF
23420
23421 fi
23422
23423 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23424 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23425 if test "${ac_cv_c_const+set}" = set; then
23426   echo $ECHO_N "(cached) $ECHO_C" >&6
23427 else
23428   cat >conftest.$ac_ext <<_ACEOF
23429 /* confdefs.h.  */
23430 _ACEOF
23431 cat confdefs.h >>conftest.$ac_ext
23432 cat >>conftest.$ac_ext <<_ACEOF
23433 /* end confdefs.h.  */
23434
23435 int
23436 main ()
23437 {
23438 /* FIXME: Include the comments suggested by Paul. */
23439 #ifndef __cplusplus
23440   /* Ultrix mips cc rejects this.  */
23441   typedef int charset[2];
23442   const charset cs;
23443   /* SunOS 4.1.1 cc rejects this.  */
23444   char const *const *pcpcc;
23445   char **ppc;
23446   /* NEC SVR4.0.2 mips cc rejects this.  */
23447   struct point {int x, y;};
23448   static struct point const zero = {0,0};
23449   /* AIX XL C 1.02.0.0 rejects this.
23450      It does not let you subtract one const X* pointer from another in
23451      an arm of an if-expression whose if-part is not a constant
23452      expression */
23453   const char *g = "string";
23454   pcpcc = &g + (g ? g-g : 0);
23455   /* HPUX 7.0 cc rejects these. */
23456   ++pcpcc;
23457   ppc = (char**) pcpcc;
23458   pcpcc = (char const *const *) ppc;
23459   { /* SCO 3.2v4 cc rejects this.  */
23460     char *t;
23461     char const *s = 0 ? (char *) 0 : (char const *) 0;
23462
23463     *t++ = 0;
23464     if (s) return 0;
23465   }
23466   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23467     int x[] = {25, 17};
23468     const int *foo = &x[0];
23469     ++foo;
23470   }
23471   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23472     typedef const int *iptr;
23473     iptr p = 0;
23474     ++p;
23475   }
23476   { /* AIX XL C 1.02.0.0 rejects this saying
23477        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23478     struct s { int j; const int *ap[3]; };
23479     struct s *b; b->j = 5;
23480   }
23481   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23482     const int foo = 10;
23483     if (!foo) return 0;
23484   }
23485   return !cs[0] && !zero.x;
23486 #endif
23487
23488   ;
23489   return 0;
23490 }
23491 _ACEOF
23492 rm -f conftest.$ac_objext
23493 if { (ac_try="$ac_compile"
23494 case "(($ac_try" in
23495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496   *) ac_try_echo=$ac_try;;
23497 esac
23498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499   (eval "$ac_compile") 2>conftest.er1
23500   ac_status=$?
23501   grep -v '^ *+' conftest.er1 >conftest.err
23502   rm -f conftest.er1
23503   cat conftest.err >&5
23504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505   (exit $ac_status); } && {
23506          test -z "$ac_c_werror_flag" ||
23507          test ! -s conftest.err
23508        } && test -s conftest.$ac_objext; then
23509   ac_cv_c_const=yes
23510 else
23511   echo "$as_me: failed program was:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23513
23514         ac_cv_c_const=no
23515 fi
23516
23517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23518 fi
23519 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23520 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23521 if test $ac_cv_c_const = no; then
23522
23523 cat >>confdefs.h <<\_ACEOF
23524 #define const
23525 _ACEOF
23526
23527 fi
23528
23529
23530
23531 { echo "$as_me:$LINENO: checking for char" >&5
23532 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23533 if test "${ac_cv_type_char+set}" = set; then
23534   echo $ECHO_N "(cached) $ECHO_C" >&6
23535 else
23536   cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h.  */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h.  */
23542 $ac_includes_default
23543 typedef char ac__type_new_;
23544 int
23545 main ()
23546 {
23547 if ((ac__type_new_ *) 0)
23548   return 0;
23549 if (sizeof (ac__type_new_))
23550   return 0;
23551   ;
23552   return 0;
23553 }
23554 _ACEOF
23555 rm -f conftest.$ac_objext
23556 if { (ac_try="$ac_compile"
23557 case "(($ac_try" in
23558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559   *) ac_try_echo=$ac_try;;
23560 esac
23561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23562   (eval "$ac_compile") 2>conftest.er1
23563   ac_status=$?
23564   grep -v '^ *+' conftest.er1 >conftest.err
23565   rm -f conftest.er1
23566   cat conftest.err >&5
23567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568   (exit $ac_status); } && {
23569          test -z "$ac_c_werror_flag" ||
23570          test ! -s conftest.err
23571        } && test -s conftest.$ac_objext; then
23572   ac_cv_type_char=yes
23573 else
23574   echo "$as_me: failed program was:" >&5
23575 sed 's/^/| /' conftest.$ac_ext >&5
23576
23577         ac_cv_type_char=no
23578 fi
23579
23580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23581 fi
23582 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23583 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23584
23585 # The cast to long int works around a bug in the HP C Compiler
23586 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23587 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23588 # This bug is HP SR number 8606223364.
23589 { echo "$as_me:$LINENO: checking size of char" >&5
23590 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23591 if test "${ac_cv_sizeof_char+set}" = set; then
23592   echo $ECHO_N "(cached) $ECHO_C" >&6
23593 else
23594   if test "$cross_compiling" = yes; then
23595   # Depending upon the size, compute the lo and hi bounds.
23596 cat >conftest.$ac_ext <<_ACEOF
23597 /* confdefs.h.  */
23598 _ACEOF
23599 cat confdefs.h >>conftest.$ac_ext
23600 cat >>conftest.$ac_ext <<_ACEOF
23601 /* end confdefs.h.  */
23602 $ac_includes_default
23603    typedef char ac__type_sizeof_;
23604 int
23605 main ()
23606 {
23607 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23608 test_array [0] = 0
23609
23610   ;
23611   return 0;
23612 }
23613 _ACEOF
23614 rm -f conftest.$ac_objext
23615 if { (ac_try="$ac_compile"
23616 case "(($ac_try" in
23617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618   *) ac_try_echo=$ac_try;;
23619 esac
23620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23621   (eval "$ac_compile") 2>conftest.er1
23622   ac_status=$?
23623   grep -v '^ *+' conftest.er1 >conftest.err
23624   rm -f conftest.er1
23625   cat conftest.err >&5
23626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627   (exit $ac_status); } && {
23628          test -z "$ac_c_werror_flag" ||
23629          test ! -s conftest.err
23630        } && test -s conftest.$ac_objext; then
23631   ac_lo=0 ac_mid=0
23632   while :; do
23633     cat >conftest.$ac_ext <<_ACEOF
23634 /* confdefs.h.  */
23635 _ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h.  */
23639 $ac_includes_default
23640    typedef char ac__type_sizeof_;
23641 int
23642 main ()
23643 {
23644 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23645 test_array [0] = 0
23646
23647   ;
23648   return 0;
23649 }
23650 _ACEOF
23651 rm -f conftest.$ac_objext
23652 if { (ac_try="$ac_compile"
23653 case "(($ac_try" in
23654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23655   *) ac_try_echo=$ac_try;;
23656 esac
23657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23658   (eval "$ac_compile") 2>conftest.er1
23659   ac_status=$?
23660   grep -v '^ *+' conftest.er1 >conftest.err
23661   rm -f conftest.er1
23662   cat conftest.err >&5
23663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664   (exit $ac_status); } && {
23665          test -z "$ac_c_werror_flag" ||
23666          test ! -s conftest.err
23667        } && test -s conftest.$ac_objext; then
23668   ac_hi=$ac_mid; break
23669 else
23670   echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673         ac_lo=`expr $ac_mid + 1`
23674                         if test $ac_lo -le $ac_mid; then
23675                           ac_lo= ac_hi=
23676                           break
23677                         fi
23678                         ac_mid=`expr 2 '*' $ac_mid + 1`
23679 fi
23680
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682   done
23683 else
23684   echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687         cat >conftest.$ac_ext <<_ACEOF
23688 /* confdefs.h.  */
23689 _ACEOF
23690 cat confdefs.h >>conftest.$ac_ext
23691 cat >>conftest.$ac_ext <<_ACEOF
23692 /* end confdefs.h.  */
23693 $ac_includes_default
23694    typedef char ac__type_sizeof_;
23695 int
23696 main ()
23697 {
23698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23699 test_array [0] = 0
23700
23701   ;
23702   return 0;
23703 }
23704 _ACEOF
23705 rm -f conftest.$ac_objext
23706 if { (ac_try="$ac_compile"
23707 case "(($ac_try" in
23708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23709   *) ac_try_echo=$ac_try;;
23710 esac
23711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23712   (eval "$ac_compile") 2>conftest.er1
23713   ac_status=$?
23714   grep -v '^ *+' conftest.er1 >conftest.err
23715   rm -f conftest.er1
23716   cat conftest.err >&5
23717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718   (exit $ac_status); } && {
23719          test -z "$ac_c_werror_flag" ||
23720          test ! -s conftest.err
23721        } && test -s conftest.$ac_objext; then
23722   ac_hi=-1 ac_mid=-1
23723   while :; do
23724     cat >conftest.$ac_ext <<_ACEOF
23725 /* confdefs.h.  */
23726 _ACEOF
23727 cat confdefs.h >>conftest.$ac_ext
23728 cat >>conftest.$ac_ext <<_ACEOF
23729 /* end confdefs.h.  */
23730 $ac_includes_default
23731    typedef char ac__type_sizeof_;
23732 int
23733 main ()
23734 {
23735 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23736 test_array [0] = 0
23737
23738   ;
23739   return 0;
23740 }
23741 _ACEOF
23742 rm -f conftest.$ac_objext
23743 if { (ac_try="$ac_compile"
23744 case "(($ac_try" in
23745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23746   *) ac_try_echo=$ac_try;;
23747 esac
23748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23749   (eval "$ac_compile") 2>conftest.er1
23750   ac_status=$?
23751   grep -v '^ *+' conftest.er1 >conftest.err
23752   rm -f conftest.er1
23753   cat conftest.err >&5
23754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755   (exit $ac_status); } && {
23756          test -z "$ac_c_werror_flag" ||
23757          test ! -s conftest.err
23758        } && test -s conftest.$ac_objext; then
23759   ac_lo=$ac_mid; break
23760 else
23761   echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23763
23764         ac_hi=`expr '(' $ac_mid ')' - 1`
23765                         if test $ac_mid -le $ac_hi; then
23766                           ac_lo= ac_hi=
23767                           break
23768                         fi
23769                         ac_mid=`expr 2 '*' $ac_mid`
23770 fi
23771
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773   done
23774 else
23775   echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23777
23778         ac_lo= ac_hi=
23779 fi
23780
23781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 fi
23783
23784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785 # Binary search between lo and hi bounds.
23786 while test "x$ac_lo" != "x$ac_hi"; do
23787   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23788   cat >conftest.$ac_ext <<_ACEOF
23789 /* confdefs.h.  */
23790 _ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h.  */
23794 $ac_includes_default
23795    typedef char ac__type_sizeof_;
23796 int
23797 main ()
23798 {
23799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23800 test_array [0] = 0
23801
23802   ;
23803   return 0;
23804 }
23805 _ACEOF
23806 rm -f conftest.$ac_objext
23807 if { (ac_try="$ac_compile"
23808 case "(($ac_try" in
23809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810   *) ac_try_echo=$ac_try;;
23811 esac
23812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23813   (eval "$ac_compile") 2>conftest.er1
23814   ac_status=$?
23815   grep -v '^ *+' conftest.er1 >conftest.err
23816   rm -f conftest.er1
23817   cat conftest.err >&5
23818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819   (exit $ac_status); } && {
23820          test -z "$ac_c_werror_flag" ||
23821          test ! -s conftest.err
23822        } && test -s conftest.$ac_objext; then
23823   ac_hi=$ac_mid
23824 else
23825   echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23827
23828         ac_lo=`expr '(' $ac_mid ')' + 1`
23829 fi
23830
23831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23832 done
23833 case $ac_lo in
23834 ?*) ac_cv_sizeof_char=$ac_lo;;
23835 '') if test "$ac_cv_type_char" = yes; then
23836      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23837 See \`config.log' for more details." >&5
23838 echo "$as_me: error: cannot compute sizeof (char)
23839 See \`config.log' for more details." >&2;}
23840    { (exit 77); exit 77; }; }
23841    else
23842      ac_cv_sizeof_char=0
23843    fi ;;
23844 esac
23845 else
23846   cat >conftest.$ac_ext <<_ACEOF
23847 /* confdefs.h.  */
23848 _ACEOF
23849 cat confdefs.h >>conftest.$ac_ext
23850 cat >>conftest.$ac_ext <<_ACEOF
23851 /* end confdefs.h.  */
23852 $ac_includes_default
23853    typedef char ac__type_sizeof_;
23854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23856 #include <stdio.h>
23857 #include <stdlib.h>
23858 int
23859 main ()
23860 {
23861
23862   FILE *f = fopen ("conftest.val", "w");
23863   if (! f)
23864     return 1;
23865   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23866     {
23867       long int i = longval ();
23868       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23869         return 1;
23870       fprintf (f, "%ld\n", i);
23871     }
23872   else
23873     {
23874       unsigned long int i = ulongval ();
23875       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23876         return 1;
23877       fprintf (f, "%lu\n", i);
23878     }
23879   return ferror (f) || fclose (f) != 0;
23880
23881   ;
23882   return 0;
23883 }
23884 _ACEOF
23885 rm -f conftest$ac_exeext
23886 if { (ac_try="$ac_link"
23887 case "(($ac_try" in
23888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889   *) ac_try_echo=$ac_try;;
23890 esac
23891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23892   (eval "$ac_link") 2>&5
23893   ac_status=$?
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23896   { (case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23901   (eval "$ac_try") 2>&5
23902   ac_status=$?
23903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904   (exit $ac_status); }; }; then
23905   ac_cv_sizeof_char=`cat conftest.val`
23906 else
23907   echo "$as_me: program exited with status $ac_status" >&5
23908 echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 ( exit $ac_status )
23912 if test "$ac_cv_type_char" = yes; then
23913      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23914 See \`config.log' for more details." >&5
23915 echo "$as_me: error: cannot compute sizeof (char)
23916 See \`config.log' for more details." >&2;}
23917    { (exit 77); exit 77; }; }
23918    else
23919      ac_cv_sizeof_char=0
23920    fi
23921 fi
23922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23923 fi
23924 rm -f conftest.val
23925 fi
23926 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23927 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23928
23929
23930
23931 cat >>confdefs.h <<_ACEOF
23932 #define SIZEOF_CHAR $ac_cv_sizeof_char
23933 _ACEOF
23934
23935
23936 { echo "$as_me:$LINENO: checking for short int" >&5
23937 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23938 if test "${ac_cv_type_short_int+set}" = set; then
23939   echo $ECHO_N "(cached) $ECHO_C" >&6
23940 else
23941   cat >conftest.$ac_ext <<_ACEOF
23942 /* confdefs.h.  */
23943 _ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h.  */
23947 $ac_includes_default
23948 typedef short int ac__type_new_;
23949 int
23950 main ()
23951 {
23952 if ((ac__type_new_ *) 0)
23953   return 0;
23954 if (sizeof (ac__type_new_))
23955   return 0;
23956   ;
23957   return 0;
23958 }
23959 _ACEOF
23960 rm -f conftest.$ac_objext
23961 if { (ac_try="$ac_compile"
23962 case "(($ac_try" in
23963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964   *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967   (eval "$ac_compile") 2>conftest.er1
23968   ac_status=$?
23969   grep -v '^ *+' conftest.er1 >conftest.err
23970   rm -f conftest.er1
23971   cat conftest.err >&5
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); } && {
23974          test -z "$ac_c_werror_flag" ||
23975          test ! -s conftest.err
23976        } && test -s conftest.$ac_objext; then
23977   ac_cv_type_short_int=yes
23978 else
23979   echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23981
23982         ac_cv_type_short_int=no
23983 fi
23984
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986 fi
23987 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23988 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23989
23990 # The cast to long int works around a bug in the HP C Compiler
23991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23993 # This bug is HP SR number 8606223364.
23994 { echo "$as_me:$LINENO: checking size of short int" >&5
23995 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23996 if test "${ac_cv_sizeof_short_int+set}" = set; then
23997   echo $ECHO_N "(cached) $ECHO_C" >&6
23998 else
23999   if test "$cross_compiling" = yes; then
24000   # Depending upon the size, compute the lo and hi bounds.
24001 cat >conftest.$ac_ext <<_ACEOF
24002 /* confdefs.h.  */
24003 _ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h.  */
24007 $ac_includes_default
24008    typedef short int ac__type_sizeof_;
24009 int
24010 main ()
24011 {
24012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24013 test_array [0] = 0
24014
24015   ;
24016   return 0;
24017 }
24018 _ACEOF
24019 rm -f conftest.$ac_objext
24020 if { (ac_try="$ac_compile"
24021 case "(($ac_try" in
24022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24023   *) ac_try_echo=$ac_try;;
24024 esac
24025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24026   (eval "$ac_compile") 2>conftest.er1
24027   ac_status=$?
24028   grep -v '^ *+' conftest.er1 >conftest.err
24029   rm -f conftest.er1
24030   cat conftest.err >&5
24031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24032   (exit $ac_status); } && {
24033          test -z "$ac_c_werror_flag" ||
24034          test ! -s conftest.err
24035        } && test -s conftest.$ac_objext; then
24036   ac_lo=0 ac_mid=0
24037   while :; do
24038     cat >conftest.$ac_ext <<_ACEOF
24039 /* confdefs.h.  */
24040 _ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h.  */
24044 $ac_includes_default
24045    typedef short int ac__type_sizeof_;
24046 int
24047 main ()
24048 {
24049 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24050 test_array [0] = 0
24051
24052   ;
24053   return 0;
24054 }
24055 _ACEOF
24056 rm -f conftest.$ac_objext
24057 if { (ac_try="$ac_compile"
24058 case "(($ac_try" in
24059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24060   *) ac_try_echo=$ac_try;;
24061 esac
24062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24063   (eval "$ac_compile") 2>conftest.er1
24064   ac_status=$?
24065   grep -v '^ *+' conftest.er1 >conftest.err
24066   rm -f conftest.er1
24067   cat conftest.err >&5
24068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069   (exit $ac_status); } && {
24070          test -z "$ac_c_werror_flag" ||
24071          test ! -s conftest.err
24072        } && test -s conftest.$ac_objext; then
24073   ac_hi=$ac_mid; break
24074 else
24075   echo "$as_me: failed program was:" >&5
24076 sed 's/^/| /' conftest.$ac_ext >&5
24077
24078         ac_lo=`expr $ac_mid + 1`
24079                         if test $ac_lo -le $ac_mid; then
24080                           ac_lo= ac_hi=
24081                           break
24082                         fi
24083                         ac_mid=`expr 2 '*' $ac_mid + 1`
24084 fi
24085
24086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24087   done
24088 else
24089   echo "$as_me: failed program was:" >&5
24090 sed 's/^/| /' conftest.$ac_ext >&5
24091
24092         cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098 $ac_includes_default
24099    typedef short int ac__type_sizeof_;
24100 int
24101 main ()
24102 {
24103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24104 test_array [0] = 0
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114   *) ac_try_echo=$ac_try;;
24115 esac
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117   (eval "$ac_compile") 2>conftest.er1
24118   ac_status=$?
24119   grep -v '^ *+' conftest.er1 >conftest.err
24120   rm -f conftest.er1
24121   cat conftest.err >&5
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); } && {
24124          test -z "$ac_c_werror_flag" ||
24125          test ! -s conftest.err
24126        } && test -s conftest.$ac_objext; then
24127   ac_hi=-1 ac_mid=-1
24128   while :; do
24129     cat >conftest.$ac_ext <<_ACEOF
24130 /* confdefs.h.  */
24131 _ACEOF
24132 cat confdefs.h >>conftest.$ac_ext
24133 cat >>conftest.$ac_ext <<_ACEOF
24134 /* end confdefs.h.  */
24135 $ac_includes_default
24136    typedef short int ac__type_sizeof_;
24137 int
24138 main ()
24139 {
24140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24141 test_array [0] = 0
24142
24143   ;
24144   return 0;
24145 }
24146 _ACEOF
24147 rm -f conftest.$ac_objext
24148 if { (ac_try="$ac_compile"
24149 case "(($ac_try" in
24150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24151   *) ac_try_echo=$ac_try;;
24152 esac
24153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24154   (eval "$ac_compile") 2>conftest.er1
24155   ac_status=$?
24156   grep -v '^ *+' conftest.er1 >conftest.err
24157   rm -f conftest.er1
24158   cat conftest.err >&5
24159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); } && {
24161          test -z "$ac_c_werror_flag" ||
24162          test ! -s conftest.err
24163        } && test -s conftest.$ac_objext; then
24164   ac_lo=$ac_mid; break
24165 else
24166   echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169         ac_hi=`expr '(' $ac_mid ')' - 1`
24170                         if test $ac_mid -le $ac_hi; then
24171                           ac_lo= ac_hi=
24172                           break
24173                         fi
24174                         ac_mid=`expr 2 '*' $ac_mid`
24175 fi
24176
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178   done
24179 else
24180   echo "$as_me: failed program was:" >&5
24181 sed 's/^/| /' conftest.$ac_ext >&5
24182
24183         ac_lo= ac_hi=
24184 fi
24185
24186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24187 fi
24188
24189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24190 # Binary search between lo and hi bounds.
24191 while test "x$ac_lo" != "x$ac_hi"; do
24192   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24193   cat >conftest.$ac_ext <<_ACEOF
24194 /* confdefs.h.  */
24195 _ACEOF
24196 cat confdefs.h >>conftest.$ac_ext
24197 cat >>conftest.$ac_ext <<_ACEOF
24198 /* end confdefs.h.  */
24199 $ac_includes_default
24200    typedef short int ac__type_sizeof_;
24201 int
24202 main ()
24203 {
24204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24205 test_array [0] = 0
24206
24207   ;
24208   return 0;
24209 }
24210 _ACEOF
24211 rm -f conftest.$ac_objext
24212 if { (ac_try="$ac_compile"
24213 case "(($ac_try" in
24214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215   *) ac_try_echo=$ac_try;;
24216 esac
24217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24218   (eval "$ac_compile") 2>conftest.er1
24219   ac_status=$?
24220   grep -v '^ *+' conftest.er1 >conftest.err
24221   rm -f conftest.er1
24222   cat conftest.err >&5
24223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24224   (exit $ac_status); } && {
24225          test -z "$ac_c_werror_flag" ||
24226          test ! -s conftest.err
24227        } && test -s conftest.$ac_objext; then
24228   ac_hi=$ac_mid
24229 else
24230   echo "$as_me: failed program was:" >&5
24231 sed 's/^/| /' conftest.$ac_ext >&5
24232
24233         ac_lo=`expr '(' $ac_mid ')' + 1`
24234 fi
24235
24236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24237 done
24238 case $ac_lo in
24239 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24240 '') if test "$ac_cv_type_short_int" = yes; then
24241      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24242 See \`config.log' for more details." >&5
24243 echo "$as_me: error: cannot compute sizeof (short int)
24244 See \`config.log' for more details." >&2;}
24245    { (exit 77); exit 77; }; }
24246    else
24247      ac_cv_sizeof_short_int=0
24248    fi ;;
24249 esac
24250 else
24251   cat >conftest.$ac_ext <<_ACEOF
24252 /* confdefs.h.  */
24253 _ACEOF
24254 cat confdefs.h >>conftest.$ac_ext
24255 cat >>conftest.$ac_ext <<_ACEOF
24256 /* end confdefs.h.  */
24257 $ac_includes_default
24258    typedef short int ac__type_sizeof_;
24259 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24260 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24261 #include <stdio.h>
24262 #include <stdlib.h>
24263 int
24264 main ()
24265 {
24266
24267   FILE *f = fopen ("conftest.val", "w");
24268   if (! f)
24269     return 1;
24270   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24271     {
24272       long int i = longval ();
24273       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24274         return 1;
24275       fprintf (f, "%ld\n", i);
24276     }
24277   else
24278     {
24279       unsigned long int i = ulongval ();
24280       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24281         return 1;
24282       fprintf (f, "%lu\n", i);
24283     }
24284   return ferror (f) || fclose (f) != 0;
24285
24286   ;
24287   return 0;
24288 }
24289 _ACEOF
24290 rm -f conftest$ac_exeext
24291 if { (ac_try="$ac_link"
24292 case "(($ac_try" in
24293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24294   *) ac_try_echo=$ac_try;;
24295 esac
24296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24297   (eval "$ac_link") 2>&5
24298   ac_status=$?
24299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24301   { (case "(($ac_try" in
24302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24303   *) ac_try_echo=$ac_try;;
24304 esac
24305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24306   (eval "$ac_try") 2>&5
24307   ac_status=$?
24308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24309   (exit $ac_status); }; }; then
24310   ac_cv_sizeof_short_int=`cat conftest.val`
24311 else
24312   echo "$as_me: program exited with status $ac_status" >&5
24313 echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24315
24316 ( exit $ac_status )
24317 if test "$ac_cv_type_short_int" = yes; then
24318      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24319 See \`config.log' for more details." >&5
24320 echo "$as_me: error: cannot compute sizeof (short int)
24321 See \`config.log' for more details." >&2;}
24322    { (exit 77); exit 77; }; }
24323    else
24324      ac_cv_sizeof_short_int=0
24325    fi
24326 fi
24327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24328 fi
24329 rm -f conftest.val
24330 fi
24331 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24332 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24333
24334
24335
24336 cat >>confdefs.h <<_ACEOF
24337 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24338 _ACEOF
24339
24340
24341 { echo "$as_me:$LINENO: checking for int" >&5
24342 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24343 if test "${ac_cv_type_int+set}" = set; then
24344   echo $ECHO_N "(cached) $ECHO_C" >&6
24345 else
24346   cat >conftest.$ac_ext <<_ACEOF
24347 /* confdefs.h.  */
24348 _ACEOF
24349 cat confdefs.h >>conftest.$ac_ext
24350 cat >>conftest.$ac_ext <<_ACEOF
24351 /* end confdefs.h.  */
24352 $ac_includes_default
24353 typedef int ac__type_new_;
24354 int
24355 main ()
24356 {
24357 if ((ac__type_new_ *) 0)
24358   return 0;
24359 if (sizeof (ac__type_new_))
24360   return 0;
24361   ;
24362   return 0;
24363 }
24364 _ACEOF
24365 rm -f conftest.$ac_objext
24366 if { (ac_try="$ac_compile"
24367 case "(($ac_try" in
24368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24369   *) ac_try_echo=$ac_try;;
24370 esac
24371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24372   (eval "$ac_compile") 2>conftest.er1
24373   ac_status=$?
24374   grep -v '^ *+' conftest.er1 >conftest.err
24375   rm -f conftest.er1
24376   cat conftest.err >&5
24377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378   (exit $ac_status); } && {
24379          test -z "$ac_c_werror_flag" ||
24380          test ! -s conftest.err
24381        } && test -s conftest.$ac_objext; then
24382   ac_cv_type_int=yes
24383 else
24384   echo "$as_me: failed program was:" >&5
24385 sed 's/^/| /' conftest.$ac_ext >&5
24386
24387         ac_cv_type_int=no
24388 fi
24389
24390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24391 fi
24392 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24393 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24394
24395 # The cast to long int works around a bug in the HP C Compiler
24396 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24397 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24398 # This bug is HP SR number 8606223364.
24399 { echo "$as_me:$LINENO: checking size of int" >&5
24400 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24401 if test "${ac_cv_sizeof_int+set}" = set; then
24402   echo $ECHO_N "(cached) $ECHO_C" >&6
24403 else
24404   if test "$cross_compiling" = yes; then
24405   # Depending upon the size, compute the lo and hi bounds.
24406 cat >conftest.$ac_ext <<_ACEOF
24407 /* confdefs.h.  */
24408 _ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h.  */
24412 $ac_includes_default
24413    typedef int ac__type_sizeof_;
24414 int
24415 main ()
24416 {
24417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24418 test_array [0] = 0
24419
24420   ;
24421   return 0;
24422 }
24423 _ACEOF
24424 rm -f conftest.$ac_objext
24425 if { (ac_try="$ac_compile"
24426 case "(($ac_try" in
24427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24428   *) ac_try_echo=$ac_try;;
24429 esac
24430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24431   (eval "$ac_compile") 2>conftest.er1
24432   ac_status=$?
24433   grep -v '^ *+' conftest.er1 >conftest.err
24434   rm -f conftest.er1
24435   cat conftest.err >&5
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); } && {
24438          test -z "$ac_c_werror_flag" ||
24439          test ! -s conftest.err
24440        } && test -s conftest.$ac_objext; then
24441   ac_lo=0 ac_mid=0
24442   while :; do
24443     cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h.  */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h.  */
24449 $ac_includes_default
24450    typedef int ac__type_sizeof_;
24451 int
24452 main ()
24453 {
24454 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24455 test_array [0] = 0
24456
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 rm -f conftest.$ac_objext
24462 if { (ac_try="$ac_compile"
24463 case "(($ac_try" in
24464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465   *) ac_try_echo=$ac_try;;
24466 esac
24467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24468   (eval "$ac_compile") 2>conftest.er1
24469   ac_status=$?
24470   grep -v '^ *+' conftest.er1 >conftest.err
24471   rm -f conftest.er1
24472   cat conftest.err >&5
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); } && {
24475          test -z "$ac_c_werror_flag" ||
24476          test ! -s conftest.err
24477        } && test -s conftest.$ac_objext; then
24478   ac_hi=$ac_mid; break
24479 else
24480   echo "$as_me: failed program was:" >&5
24481 sed 's/^/| /' conftest.$ac_ext >&5
24482
24483         ac_lo=`expr $ac_mid + 1`
24484                         if test $ac_lo -le $ac_mid; then
24485                           ac_lo= ac_hi=
24486                           break
24487                         fi
24488                         ac_mid=`expr 2 '*' $ac_mid + 1`
24489 fi
24490
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492   done
24493 else
24494   echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24496
24497         cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 $ac_includes_default
24504    typedef int ac__type_sizeof_;
24505 int
24506 main ()
24507 {
24508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24509 test_array [0] = 0
24510
24511   ;
24512   return 0;
24513 }
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (ac_try="$ac_compile"
24517 case "(($ac_try" in
24518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24519   *) ac_try_echo=$ac_try;;
24520 esac
24521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24522   (eval "$ac_compile") 2>conftest.er1
24523   ac_status=$?
24524   grep -v '^ *+' conftest.er1 >conftest.err
24525   rm -f conftest.er1
24526   cat conftest.err >&5
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); } && {
24529          test -z "$ac_c_werror_flag" ||
24530          test ! -s conftest.err
24531        } && test -s conftest.$ac_objext; then
24532   ac_hi=-1 ac_mid=-1
24533   while :; do
24534     cat >conftest.$ac_ext <<_ACEOF
24535 /* confdefs.h.  */
24536 _ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h.  */
24540 $ac_includes_default
24541    typedef int ac__type_sizeof_;
24542 int
24543 main ()
24544 {
24545 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24546 test_array [0] = 0
24547
24548   ;
24549   return 0;
24550 }
24551 _ACEOF
24552 rm -f conftest.$ac_objext
24553 if { (ac_try="$ac_compile"
24554 case "(($ac_try" in
24555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24556   *) ac_try_echo=$ac_try;;
24557 esac
24558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24559   (eval "$ac_compile") 2>conftest.er1
24560   ac_status=$?
24561   grep -v '^ *+' conftest.er1 >conftest.err
24562   rm -f conftest.er1
24563   cat conftest.err >&5
24564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24565   (exit $ac_status); } && {
24566          test -z "$ac_c_werror_flag" ||
24567          test ! -s conftest.err
24568        } && test -s conftest.$ac_objext; then
24569   ac_lo=$ac_mid; break
24570 else
24571   echo "$as_me: failed program was:" >&5
24572 sed 's/^/| /' conftest.$ac_ext >&5
24573
24574         ac_hi=`expr '(' $ac_mid ')' - 1`
24575                         if test $ac_mid -le $ac_hi; then
24576                           ac_lo= ac_hi=
24577                           break
24578                         fi
24579                         ac_mid=`expr 2 '*' $ac_mid`
24580 fi
24581
24582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583   done
24584 else
24585   echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588         ac_lo= ac_hi=
24589 fi
24590
24591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24592 fi
24593
24594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595 # Binary search between lo and hi bounds.
24596 while test "x$ac_lo" != "x$ac_hi"; do
24597   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24598   cat >conftest.$ac_ext <<_ACEOF
24599 /* confdefs.h.  */
24600 _ACEOF
24601 cat confdefs.h >>conftest.$ac_ext
24602 cat >>conftest.$ac_ext <<_ACEOF
24603 /* end confdefs.h.  */
24604 $ac_includes_default
24605    typedef int ac__type_sizeof_;
24606 int
24607 main ()
24608 {
24609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24610 test_array [0] = 0
24611
24612   ;
24613   return 0;
24614 }
24615 _ACEOF
24616 rm -f conftest.$ac_objext
24617 if { (ac_try="$ac_compile"
24618 case "(($ac_try" in
24619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620   *) ac_try_echo=$ac_try;;
24621 esac
24622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24623   (eval "$ac_compile") 2>conftest.er1
24624   ac_status=$?
24625   grep -v '^ *+' conftest.er1 >conftest.err
24626   rm -f conftest.er1
24627   cat conftest.err >&5
24628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629   (exit $ac_status); } && {
24630          test -z "$ac_c_werror_flag" ||
24631          test ! -s conftest.err
24632        } && test -s conftest.$ac_objext; then
24633   ac_hi=$ac_mid
24634 else
24635   echo "$as_me: failed program was:" >&5
24636 sed 's/^/| /' conftest.$ac_ext >&5
24637
24638         ac_lo=`expr '(' $ac_mid ')' + 1`
24639 fi
24640
24641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24642 done
24643 case $ac_lo in
24644 ?*) ac_cv_sizeof_int=$ac_lo;;
24645 '') if test "$ac_cv_type_int" = yes; then
24646      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24647 See \`config.log' for more details." >&5
24648 echo "$as_me: error: cannot compute sizeof (int)
24649 See \`config.log' for more details." >&2;}
24650    { (exit 77); exit 77; }; }
24651    else
24652      ac_cv_sizeof_int=0
24653    fi ;;
24654 esac
24655 else
24656   cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h.  */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h.  */
24662 $ac_includes_default
24663    typedef int ac__type_sizeof_;
24664 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24665 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24666 #include <stdio.h>
24667 #include <stdlib.h>
24668 int
24669 main ()
24670 {
24671
24672   FILE *f = fopen ("conftest.val", "w");
24673   if (! f)
24674     return 1;
24675   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24676     {
24677       long int i = longval ();
24678       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24679         return 1;
24680       fprintf (f, "%ld\n", i);
24681     }
24682   else
24683     {
24684       unsigned long int i = ulongval ();
24685       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24686         return 1;
24687       fprintf (f, "%lu\n", i);
24688     }
24689   return ferror (f) || fclose (f) != 0;
24690
24691   ;
24692   return 0;
24693 }
24694 _ACEOF
24695 rm -f conftest$ac_exeext
24696 if { (ac_try="$ac_link"
24697 case "(($ac_try" in
24698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699   *) ac_try_echo=$ac_try;;
24700 esac
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702   (eval "$ac_link") 2>&5
24703   ac_status=$?
24704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24706   { (case "(($ac_try" in
24707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708   *) ac_try_echo=$ac_try;;
24709 esac
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711   (eval "$ac_try") 2>&5
24712   ac_status=$?
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); }; }; then
24715   ac_cv_sizeof_int=`cat conftest.val`
24716 else
24717   echo "$as_me: program exited with status $ac_status" >&5
24718 echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24720
24721 ( exit $ac_status )
24722 if test "$ac_cv_type_int" = yes; then
24723      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24724 See \`config.log' for more details." >&5
24725 echo "$as_me: error: cannot compute sizeof (int)
24726 See \`config.log' for more details." >&2;}
24727    { (exit 77); exit 77; }; }
24728    else
24729      ac_cv_sizeof_int=0
24730    fi
24731 fi
24732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24733 fi
24734 rm -f conftest.val
24735 fi
24736 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24737 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24738
24739
24740
24741 cat >>confdefs.h <<_ACEOF
24742 #define SIZEOF_INT $ac_cv_sizeof_int
24743 _ACEOF
24744
24745
24746 { echo "$as_me:$LINENO: checking for long int" >&5
24747 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24748 if test "${ac_cv_type_long_int+set}" = set; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   cat >conftest.$ac_ext <<_ACEOF
24752 /* confdefs.h.  */
24753 _ACEOF
24754 cat confdefs.h >>conftest.$ac_ext
24755 cat >>conftest.$ac_ext <<_ACEOF
24756 /* end confdefs.h.  */
24757 $ac_includes_default
24758 typedef long int ac__type_new_;
24759 int
24760 main ()
24761 {
24762 if ((ac__type_new_ *) 0)
24763   return 0;
24764 if (sizeof (ac__type_new_))
24765   return 0;
24766   ;
24767   return 0;
24768 }
24769 _ACEOF
24770 rm -f conftest.$ac_objext
24771 if { (ac_try="$ac_compile"
24772 case "(($ac_try" in
24773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24774   *) ac_try_echo=$ac_try;;
24775 esac
24776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24777   (eval "$ac_compile") 2>conftest.er1
24778   ac_status=$?
24779   grep -v '^ *+' conftest.er1 >conftest.err
24780   rm -f conftest.er1
24781   cat conftest.err >&5
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); } && {
24784          test -z "$ac_c_werror_flag" ||
24785          test ! -s conftest.err
24786        } && test -s conftest.$ac_objext; then
24787   ac_cv_type_long_int=yes
24788 else
24789   echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24791
24792         ac_cv_type_long_int=no
24793 fi
24794
24795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24796 fi
24797 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24798 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24799
24800 # The cast to long int works around a bug in the HP C Compiler
24801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24803 # This bug is HP SR number 8606223364.
24804 { echo "$as_me:$LINENO: checking size of long int" >&5
24805 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24806 if test "${ac_cv_sizeof_long_int+set}" = set; then
24807   echo $ECHO_N "(cached) $ECHO_C" >&6
24808 else
24809   if test "$cross_compiling" = yes; then
24810   # Depending upon the size, compute the lo and hi bounds.
24811 cat >conftest.$ac_ext <<_ACEOF
24812 /* confdefs.h.  */
24813 _ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h.  */
24817 $ac_includes_default
24818    typedef long int ac__type_sizeof_;
24819 int
24820 main ()
24821 {
24822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24823 test_array [0] = 0
24824
24825   ;
24826   return 0;
24827 }
24828 _ACEOF
24829 rm -f conftest.$ac_objext
24830 if { (ac_try="$ac_compile"
24831 case "(($ac_try" in
24832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24833   *) ac_try_echo=$ac_try;;
24834 esac
24835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24836   (eval "$ac_compile") 2>conftest.er1
24837   ac_status=$?
24838   grep -v '^ *+' conftest.er1 >conftest.err
24839   rm -f conftest.er1
24840   cat conftest.err >&5
24841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24842   (exit $ac_status); } && {
24843          test -z "$ac_c_werror_flag" ||
24844          test ! -s conftest.err
24845        } && test -s conftest.$ac_objext; then
24846   ac_lo=0 ac_mid=0
24847   while :; do
24848     cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h.  */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h.  */
24854 $ac_includes_default
24855    typedef long int ac__type_sizeof_;
24856 int
24857 main ()
24858 {
24859 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24860 test_array [0] = 0
24861
24862   ;
24863   return 0;
24864 }
24865 _ACEOF
24866 rm -f conftest.$ac_objext
24867 if { (ac_try="$ac_compile"
24868 case "(($ac_try" in
24869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24870   *) ac_try_echo=$ac_try;;
24871 esac
24872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24873   (eval "$ac_compile") 2>conftest.er1
24874   ac_status=$?
24875   grep -v '^ *+' conftest.er1 >conftest.err
24876   rm -f conftest.er1
24877   cat conftest.err >&5
24878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879   (exit $ac_status); } && {
24880          test -z "$ac_c_werror_flag" ||
24881          test ! -s conftest.err
24882        } && test -s conftest.$ac_objext; then
24883   ac_hi=$ac_mid; break
24884 else
24885   echo "$as_me: failed program was:" >&5
24886 sed 's/^/| /' conftest.$ac_ext >&5
24887
24888         ac_lo=`expr $ac_mid + 1`
24889                         if test $ac_lo -le $ac_mid; then
24890                           ac_lo= ac_hi=
24891                           break
24892                         fi
24893                         ac_mid=`expr 2 '*' $ac_mid + 1`
24894 fi
24895
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897   done
24898 else
24899   echo "$as_me: failed program was:" >&5
24900 sed 's/^/| /' conftest.$ac_ext >&5
24901
24902         cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h.  */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h.  */
24908 $ac_includes_default
24909    typedef long int ac__type_sizeof_;
24910 int
24911 main ()
24912 {
24913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24914 test_array [0] = 0
24915
24916   ;
24917   return 0;
24918 }
24919 _ACEOF
24920 rm -f conftest.$ac_objext
24921 if { (ac_try="$ac_compile"
24922 case "(($ac_try" in
24923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924   *) ac_try_echo=$ac_try;;
24925 esac
24926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927   (eval "$ac_compile") 2>conftest.er1
24928   ac_status=$?
24929   grep -v '^ *+' conftest.er1 >conftest.err
24930   rm -f conftest.er1
24931   cat conftest.err >&5
24932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933   (exit $ac_status); } && {
24934          test -z "$ac_c_werror_flag" ||
24935          test ! -s conftest.err
24936        } && test -s conftest.$ac_objext; then
24937   ac_hi=-1 ac_mid=-1
24938   while :; do
24939     cat >conftest.$ac_ext <<_ACEOF
24940 /* confdefs.h.  */
24941 _ACEOF
24942 cat confdefs.h >>conftest.$ac_ext
24943 cat >>conftest.$ac_ext <<_ACEOF
24944 /* end confdefs.h.  */
24945 $ac_includes_default
24946    typedef long int ac__type_sizeof_;
24947 int
24948 main ()
24949 {
24950 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24951 test_array [0] = 0
24952
24953   ;
24954   return 0;
24955 }
24956 _ACEOF
24957 rm -f conftest.$ac_objext
24958 if { (ac_try="$ac_compile"
24959 case "(($ac_try" in
24960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24961   *) ac_try_echo=$ac_try;;
24962 esac
24963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24964   (eval "$ac_compile") 2>conftest.er1
24965   ac_status=$?
24966   grep -v '^ *+' conftest.er1 >conftest.err
24967   rm -f conftest.er1
24968   cat conftest.err >&5
24969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24970   (exit $ac_status); } && {
24971          test -z "$ac_c_werror_flag" ||
24972          test ! -s conftest.err
24973        } && test -s conftest.$ac_objext; then
24974   ac_lo=$ac_mid; break
24975 else
24976   echo "$as_me: failed program was:" >&5
24977 sed 's/^/| /' conftest.$ac_ext >&5
24978
24979         ac_hi=`expr '(' $ac_mid ')' - 1`
24980                         if test $ac_mid -le $ac_hi; then
24981                           ac_lo= ac_hi=
24982                           break
24983                         fi
24984                         ac_mid=`expr 2 '*' $ac_mid`
24985 fi
24986
24987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24988   done
24989 else
24990   echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24992
24993         ac_lo= ac_hi=
24994 fi
24995
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997 fi
24998
24999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25000 # Binary search between lo and hi bounds.
25001 while test "x$ac_lo" != "x$ac_hi"; do
25002   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25003   cat >conftest.$ac_ext <<_ACEOF
25004 /* confdefs.h.  */
25005 _ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h.  */
25009 $ac_includes_default
25010    typedef long int ac__type_sizeof_;
25011 int
25012 main ()
25013 {
25014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25015 test_array [0] = 0
25016
25017   ;
25018   return 0;
25019 }
25020 _ACEOF
25021 rm -f conftest.$ac_objext
25022 if { (ac_try="$ac_compile"
25023 case "(($ac_try" in
25024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025   *) ac_try_echo=$ac_try;;
25026 esac
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028   (eval "$ac_compile") 2>conftest.er1
25029   ac_status=$?
25030   grep -v '^ *+' conftest.er1 >conftest.err
25031   rm -f conftest.er1
25032   cat conftest.err >&5
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); } && {
25035          test -z "$ac_c_werror_flag" ||
25036          test ! -s conftest.err
25037        } && test -s conftest.$ac_objext; then
25038   ac_hi=$ac_mid
25039 else
25040   echo "$as_me: failed program was:" >&5
25041 sed 's/^/| /' conftest.$ac_ext >&5
25042
25043         ac_lo=`expr '(' $ac_mid ')' + 1`
25044 fi
25045
25046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25047 done
25048 case $ac_lo in
25049 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25050 '') if test "$ac_cv_type_long_int" = yes; then
25051      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25052 See \`config.log' for more details." >&5
25053 echo "$as_me: error: cannot compute sizeof (long int)
25054 See \`config.log' for more details." >&2;}
25055    { (exit 77); exit 77; }; }
25056    else
25057      ac_cv_sizeof_long_int=0
25058    fi ;;
25059 esac
25060 else
25061   cat >conftest.$ac_ext <<_ACEOF
25062 /* confdefs.h.  */
25063 _ACEOF
25064 cat confdefs.h >>conftest.$ac_ext
25065 cat >>conftest.$ac_ext <<_ACEOF
25066 /* end confdefs.h.  */
25067 $ac_includes_default
25068    typedef long int ac__type_sizeof_;
25069 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25070 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25071 #include <stdio.h>
25072 #include <stdlib.h>
25073 int
25074 main ()
25075 {
25076
25077   FILE *f = fopen ("conftest.val", "w");
25078   if (! f)
25079     return 1;
25080   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25081     {
25082       long int i = longval ();
25083       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25084         return 1;
25085       fprintf (f, "%ld\n", i);
25086     }
25087   else
25088     {
25089       unsigned long int i = ulongval ();
25090       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25091         return 1;
25092       fprintf (f, "%lu\n", i);
25093     }
25094   return ferror (f) || fclose (f) != 0;
25095
25096   ;
25097   return 0;
25098 }
25099 _ACEOF
25100 rm -f conftest$ac_exeext
25101 if { (ac_try="$ac_link"
25102 case "(($ac_try" in
25103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25104   *) ac_try_echo=$ac_try;;
25105 esac
25106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25107   (eval "$ac_link") 2>&5
25108   ac_status=$?
25109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25111   { (case "(($ac_try" in
25112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25113   *) ac_try_echo=$ac_try;;
25114 esac
25115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25116   (eval "$ac_try") 2>&5
25117   ac_status=$?
25118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119   (exit $ac_status); }; }; then
25120   ac_cv_sizeof_long_int=`cat conftest.val`
25121 else
25122   echo "$as_me: program exited with status $ac_status" >&5
25123 echo "$as_me: failed program was:" >&5
25124 sed 's/^/| /' conftest.$ac_ext >&5
25125
25126 ( exit $ac_status )
25127 if test "$ac_cv_type_long_int" = yes; then
25128      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25129 See \`config.log' for more details." >&5
25130 echo "$as_me: error: cannot compute sizeof (long int)
25131 See \`config.log' for more details." >&2;}
25132    { (exit 77); exit 77; }; }
25133    else
25134      ac_cv_sizeof_long_int=0
25135    fi
25136 fi
25137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25138 fi
25139 rm -f conftest.val
25140 fi
25141 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25142 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25143
25144
25145
25146 cat >>confdefs.h <<_ACEOF
25147 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25148 _ACEOF
25149
25150
25151 { echo "$as_me:$LINENO: checking for long long int" >&5
25152 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25153 if test "${ac_cv_type_long_long_int+set}" = set; then
25154   echo $ECHO_N "(cached) $ECHO_C" >&6
25155 else
25156   cat >conftest.$ac_ext <<_ACEOF
25157 /* confdefs.h.  */
25158 _ACEOF
25159 cat confdefs.h >>conftest.$ac_ext
25160 cat >>conftest.$ac_ext <<_ACEOF
25161 /* end confdefs.h.  */
25162 $ac_includes_default
25163 typedef long long int ac__type_new_;
25164 int
25165 main ()
25166 {
25167 if ((ac__type_new_ *) 0)
25168   return 0;
25169 if (sizeof (ac__type_new_))
25170   return 0;
25171   ;
25172   return 0;
25173 }
25174 _ACEOF
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179   *) ac_try_echo=$ac_try;;
25180 esac
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182   (eval "$ac_compile") 2>conftest.er1
25183   ac_status=$?
25184   grep -v '^ *+' conftest.er1 >conftest.err
25185   rm -f conftest.er1
25186   cat conftest.err >&5
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); } && {
25189          test -z "$ac_c_werror_flag" ||
25190          test ! -s conftest.err
25191        } && test -s conftest.$ac_objext; then
25192   ac_cv_type_long_long_int=yes
25193 else
25194   echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25196
25197         ac_cv_type_long_long_int=no
25198 fi
25199
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 fi
25202 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25203 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25204
25205 # The cast to long int works around a bug in the HP C Compiler
25206 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25207 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25208 # This bug is HP SR number 8606223364.
25209 { echo "$as_me:$LINENO: checking size of long long int" >&5
25210 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25211 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25212   echo $ECHO_N "(cached) $ECHO_C" >&6
25213 else
25214   if test "$cross_compiling" = yes; then
25215   # Depending upon the size, compute the lo and hi bounds.
25216 cat >conftest.$ac_ext <<_ACEOF
25217 /* confdefs.h.  */
25218 _ACEOF
25219 cat confdefs.h >>conftest.$ac_ext
25220 cat >>conftest.$ac_ext <<_ACEOF
25221 /* end confdefs.h.  */
25222 $ac_includes_default
25223    typedef long long int ac__type_sizeof_;
25224 int
25225 main ()
25226 {
25227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25228 test_array [0] = 0
25229
25230   ;
25231   return 0;
25232 }
25233 _ACEOF
25234 rm -f conftest.$ac_objext
25235 if { (ac_try="$ac_compile"
25236 case "(($ac_try" in
25237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25238   *) ac_try_echo=$ac_try;;
25239 esac
25240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25241   (eval "$ac_compile") 2>conftest.er1
25242   ac_status=$?
25243   grep -v '^ *+' conftest.er1 >conftest.err
25244   rm -f conftest.er1
25245   cat conftest.err >&5
25246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247   (exit $ac_status); } && {
25248          test -z "$ac_c_werror_flag" ||
25249          test ! -s conftest.err
25250        } && test -s conftest.$ac_objext; then
25251   ac_lo=0 ac_mid=0
25252   while :; do
25253     cat >conftest.$ac_ext <<_ACEOF
25254 /* confdefs.h.  */
25255 _ACEOF
25256 cat confdefs.h >>conftest.$ac_ext
25257 cat >>conftest.$ac_ext <<_ACEOF
25258 /* end confdefs.h.  */
25259 $ac_includes_default
25260    typedef long long int ac__type_sizeof_;
25261 int
25262 main ()
25263 {
25264 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25265 test_array [0] = 0
25266
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 rm -f conftest.$ac_objext
25272 if { (ac_try="$ac_compile"
25273 case "(($ac_try" in
25274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275   *) ac_try_echo=$ac_try;;
25276 esac
25277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25278   (eval "$ac_compile") 2>conftest.er1
25279   ac_status=$?
25280   grep -v '^ *+' conftest.er1 >conftest.err
25281   rm -f conftest.er1
25282   cat conftest.err >&5
25283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284   (exit $ac_status); } && {
25285          test -z "$ac_c_werror_flag" ||
25286          test ! -s conftest.err
25287        } && test -s conftest.$ac_objext; then
25288   ac_hi=$ac_mid; break
25289 else
25290   echo "$as_me: failed program was:" >&5
25291 sed 's/^/| /' conftest.$ac_ext >&5
25292
25293         ac_lo=`expr $ac_mid + 1`
25294                         if test $ac_lo -le $ac_mid; then
25295                           ac_lo= ac_hi=
25296                           break
25297                         fi
25298                         ac_mid=`expr 2 '*' $ac_mid + 1`
25299 fi
25300
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25302   done
25303 else
25304   echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306
25307         cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h.  */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h.  */
25313 $ac_includes_default
25314    typedef long long int ac__type_sizeof_;
25315 int
25316 main ()
25317 {
25318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25319 test_array [0] = 0
25320
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 rm -f conftest.$ac_objext
25326 if { (ac_try="$ac_compile"
25327 case "(($ac_try" in
25328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329   *) ac_try_echo=$ac_try;;
25330 esac
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332   (eval "$ac_compile") 2>conftest.er1
25333   ac_status=$?
25334   grep -v '^ *+' conftest.er1 >conftest.err
25335   rm -f conftest.er1
25336   cat conftest.err >&5
25337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338   (exit $ac_status); } && {
25339          test -z "$ac_c_werror_flag" ||
25340          test ! -s conftest.err
25341        } && test -s conftest.$ac_objext; then
25342   ac_hi=-1 ac_mid=-1
25343   while :; do
25344     cat >conftest.$ac_ext <<_ACEOF
25345 /* confdefs.h.  */
25346 _ACEOF
25347 cat confdefs.h >>conftest.$ac_ext
25348 cat >>conftest.$ac_ext <<_ACEOF
25349 /* end confdefs.h.  */
25350 $ac_includes_default
25351    typedef long long int ac__type_sizeof_;
25352 int
25353 main ()
25354 {
25355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25356 test_array [0] = 0
25357
25358   ;
25359   return 0;
25360 }
25361 _ACEOF
25362 rm -f conftest.$ac_objext
25363 if { (ac_try="$ac_compile"
25364 case "(($ac_try" in
25365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366   *) ac_try_echo=$ac_try;;
25367 esac
25368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25369   (eval "$ac_compile") 2>conftest.er1
25370   ac_status=$?
25371   grep -v '^ *+' conftest.er1 >conftest.err
25372   rm -f conftest.er1
25373   cat conftest.err >&5
25374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375   (exit $ac_status); } && {
25376          test -z "$ac_c_werror_flag" ||
25377          test ! -s conftest.err
25378        } && test -s conftest.$ac_objext; then
25379   ac_lo=$ac_mid; break
25380 else
25381   echo "$as_me: failed program was:" >&5
25382 sed 's/^/| /' conftest.$ac_ext >&5
25383
25384         ac_hi=`expr '(' $ac_mid ')' - 1`
25385                         if test $ac_mid -le $ac_hi; then
25386                           ac_lo= ac_hi=
25387                           break
25388                         fi
25389                         ac_mid=`expr 2 '*' $ac_mid`
25390 fi
25391
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393   done
25394 else
25395   echo "$as_me: failed program was:" >&5
25396 sed 's/^/| /' conftest.$ac_ext >&5
25397
25398         ac_lo= ac_hi=
25399 fi
25400
25401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402 fi
25403
25404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25405 # Binary search between lo and hi bounds.
25406 while test "x$ac_lo" != "x$ac_hi"; do
25407   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25408   cat >conftest.$ac_ext <<_ACEOF
25409 /* confdefs.h.  */
25410 _ACEOF
25411 cat confdefs.h >>conftest.$ac_ext
25412 cat >>conftest.$ac_ext <<_ACEOF
25413 /* end confdefs.h.  */
25414 $ac_includes_default
25415    typedef long long int ac__type_sizeof_;
25416 int
25417 main ()
25418 {
25419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25420 test_array [0] = 0
25421
25422   ;
25423   return 0;
25424 }
25425 _ACEOF
25426 rm -f conftest.$ac_objext
25427 if { (ac_try="$ac_compile"
25428 case "(($ac_try" in
25429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430   *) ac_try_echo=$ac_try;;
25431 esac
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433   (eval "$ac_compile") 2>conftest.er1
25434   ac_status=$?
25435   grep -v '^ *+' conftest.er1 >conftest.err
25436   rm -f conftest.er1
25437   cat conftest.err >&5
25438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439   (exit $ac_status); } && {
25440          test -z "$ac_c_werror_flag" ||
25441          test ! -s conftest.err
25442        } && test -s conftest.$ac_objext; then
25443   ac_hi=$ac_mid
25444 else
25445   echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25447
25448         ac_lo=`expr '(' $ac_mid ')' + 1`
25449 fi
25450
25451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25452 done
25453 case $ac_lo in
25454 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25455 '') if test "$ac_cv_type_long_long_int" = yes; then
25456      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25457 See \`config.log' for more details." >&5
25458 echo "$as_me: error: cannot compute sizeof (long long int)
25459 See \`config.log' for more details." >&2;}
25460    { (exit 77); exit 77; }; }
25461    else
25462      ac_cv_sizeof_long_long_int=0
25463    fi ;;
25464 esac
25465 else
25466   cat >conftest.$ac_ext <<_ACEOF
25467 /* confdefs.h.  */
25468 _ACEOF
25469 cat confdefs.h >>conftest.$ac_ext
25470 cat >>conftest.$ac_ext <<_ACEOF
25471 /* end confdefs.h.  */
25472 $ac_includes_default
25473    typedef long long int ac__type_sizeof_;
25474 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25475 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25476 #include <stdio.h>
25477 #include <stdlib.h>
25478 int
25479 main ()
25480 {
25481
25482   FILE *f = fopen ("conftest.val", "w");
25483   if (! f)
25484     return 1;
25485   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25486     {
25487       long int i = longval ();
25488       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25489         return 1;
25490       fprintf (f, "%ld\n", i);
25491     }
25492   else
25493     {
25494       unsigned long int i = ulongval ();
25495       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25496         return 1;
25497       fprintf (f, "%lu\n", i);
25498     }
25499   return ferror (f) || fclose (f) != 0;
25500
25501   ;
25502   return 0;
25503 }
25504 _ACEOF
25505 rm -f conftest$ac_exeext
25506 if { (ac_try="$ac_link"
25507 case "(($ac_try" in
25508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509   *) ac_try_echo=$ac_try;;
25510 esac
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512   (eval "$ac_link") 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25516   { (case "(($ac_try" in
25517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25518   *) ac_try_echo=$ac_try;;
25519 esac
25520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25521   (eval "$ac_try") 2>&5
25522   ac_status=$?
25523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524   (exit $ac_status); }; }; then
25525   ac_cv_sizeof_long_long_int=`cat conftest.val`
25526 else
25527   echo "$as_me: program exited with status $ac_status" >&5
25528 echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25530
25531 ( exit $ac_status )
25532 if test "$ac_cv_type_long_long_int" = yes; then
25533      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25534 See \`config.log' for more details." >&5
25535 echo "$as_me: error: cannot compute sizeof (long long int)
25536 See \`config.log' for more details." >&2;}
25537    { (exit 77); exit 77; }; }
25538    else
25539      ac_cv_sizeof_long_long_int=0
25540    fi
25541 fi
25542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25543 fi
25544 rm -f conftest.val
25545 fi
25546 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25547 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25548
25549
25550
25551 cat >>confdefs.h <<_ACEOF
25552 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25553 _ACEOF
25554
25555
25556 { echo "$as_me:$LINENO: checking for int *" >&5
25557 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25558 if test "${ac_cv_type_int_p+set}" = set; then
25559   echo $ECHO_N "(cached) $ECHO_C" >&6
25560 else
25561   cat >conftest.$ac_ext <<_ACEOF
25562 /* confdefs.h.  */
25563 _ACEOF
25564 cat confdefs.h >>conftest.$ac_ext
25565 cat >>conftest.$ac_ext <<_ACEOF
25566 /* end confdefs.h.  */
25567 $ac_includes_default
25568 typedef int * ac__type_new_;
25569 int
25570 main ()
25571 {
25572 if ((ac__type_new_ *) 0)
25573   return 0;
25574 if (sizeof (ac__type_new_))
25575   return 0;
25576   ;
25577   return 0;
25578 }
25579 _ACEOF
25580 rm -f conftest.$ac_objext
25581 if { (ac_try="$ac_compile"
25582 case "(($ac_try" in
25583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584   *) ac_try_echo=$ac_try;;
25585 esac
25586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25587   (eval "$ac_compile") 2>conftest.er1
25588   ac_status=$?
25589   grep -v '^ *+' conftest.er1 >conftest.err
25590   rm -f conftest.er1
25591   cat conftest.err >&5
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); } && {
25594          test -z "$ac_c_werror_flag" ||
25595          test ! -s conftest.err
25596        } && test -s conftest.$ac_objext; then
25597   ac_cv_type_int_p=yes
25598 else
25599   echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25601
25602         ac_cv_type_int_p=no
25603 fi
25604
25605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606 fi
25607 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25608 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25609
25610 # The cast to long int works around a bug in the HP C Compiler
25611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25613 # This bug is HP SR number 8606223364.
25614 { echo "$as_me:$LINENO: checking size of int *" >&5
25615 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25616 if test "${ac_cv_sizeof_int_p+set}" = set; then
25617   echo $ECHO_N "(cached) $ECHO_C" >&6
25618 else
25619   if test "$cross_compiling" = yes; then
25620   # Depending upon the size, compute the lo and hi bounds.
25621 cat >conftest.$ac_ext <<_ACEOF
25622 /* confdefs.h.  */
25623 _ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h.  */
25627 $ac_includes_default
25628    typedef int * ac__type_sizeof_;
25629 int
25630 main ()
25631 {
25632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25633 test_array [0] = 0
25634
25635   ;
25636   return 0;
25637 }
25638 _ACEOF
25639 rm -f conftest.$ac_objext
25640 if { (ac_try="$ac_compile"
25641 case "(($ac_try" in
25642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25643   *) ac_try_echo=$ac_try;;
25644 esac
25645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25646   (eval "$ac_compile") 2>conftest.er1
25647   ac_status=$?
25648   grep -v '^ *+' conftest.er1 >conftest.err
25649   rm -f conftest.er1
25650   cat conftest.err >&5
25651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25652   (exit $ac_status); } && {
25653          test -z "$ac_c_werror_flag" ||
25654          test ! -s conftest.err
25655        } && test -s conftest.$ac_objext; then
25656   ac_lo=0 ac_mid=0
25657   while :; do
25658     cat >conftest.$ac_ext <<_ACEOF
25659 /* confdefs.h.  */
25660 _ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h.  */
25664 $ac_includes_default
25665    typedef int * ac__type_sizeof_;
25666 int
25667 main ()
25668 {
25669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25670 test_array [0] = 0
25671
25672   ;
25673   return 0;
25674 }
25675 _ACEOF
25676 rm -f conftest.$ac_objext
25677 if { (ac_try="$ac_compile"
25678 case "(($ac_try" in
25679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680   *) ac_try_echo=$ac_try;;
25681 esac
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683   (eval "$ac_compile") 2>conftest.er1
25684   ac_status=$?
25685   grep -v '^ *+' conftest.er1 >conftest.err
25686   rm -f conftest.er1
25687   cat conftest.err >&5
25688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689   (exit $ac_status); } && {
25690          test -z "$ac_c_werror_flag" ||
25691          test ! -s conftest.err
25692        } && test -s conftest.$ac_objext; then
25693   ac_hi=$ac_mid; break
25694 else
25695   echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25697
25698         ac_lo=`expr $ac_mid + 1`
25699                         if test $ac_lo -le $ac_mid; then
25700                           ac_lo= ac_hi=
25701                           break
25702                         fi
25703                         ac_mid=`expr 2 '*' $ac_mid + 1`
25704 fi
25705
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25707   done
25708 else
25709   echo "$as_me: failed program was:" >&5
25710 sed 's/^/| /' conftest.$ac_ext >&5
25711
25712         cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718 $ac_includes_default
25719    typedef int * ac__type_sizeof_;
25720 int
25721 main ()
25722 {
25723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25724 test_array [0] = 0
25725
25726   ;
25727   return 0;
25728 }
25729 _ACEOF
25730 rm -f conftest.$ac_objext
25731 if { (ac_try="$ac_compile"
25732 case "(($ac_try" in
25733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734   *) ac_try_echo=$ac_try;;
25735 esac
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737   (eval "$ac_compile") 2>conftest.er1
25738   ac_status=$?
25739   grep -v '^ *+' conftest.er1 >conftest.err
25740   rm -f conftest.er1
25741   cat conftest.err >&5
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); } && {
25744          test -z "$ac_c_werror_flag" ||
25745          test ! -s conftest.err
25746        } && test -s conftest.$ac_objext; then
25747   ac_hi=-1 ac_mid=-1
25748   while :; do
25749     cat >conftest.$ac_ext <<_ACEOF
25750 /* confdefs.h.  */
25751 _ACEOF
25752 cat confdefs.h >>conftest.$ac_ext
25753 cat >>conftest.$ac_ext <<_ACEOF
25754 /* end confdefs.h.  */
25755 $ac_includes_default
25756    typedef int * ac__type_sizeof_;
25757 int
25758 main ()
25759 {
25760 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25761 test_array [0] = 0
25762
25763   ;
25764   return 0;
25765 }
25766 _ACEOF
25767 rm -f conftest.$ac_objext
25768 if { (ac_try="$ac_compile"
25769 case "(($ac_try" in
25770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25771   *) ac_try_echo=$ac_try;;
25772 esac
25773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25774   (eval "$ac_compile") 2>conftest.er1
25775   ac_status=$?
25776   grep -v '^ *+' conftest.er1 >conftest.err
25777   rm -f conftest.er1
25778   cat conftest.err >&5
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); } && {
25781          test -z "$ac_c_werror_flag" ||
25782          test ! -s conftest.err
25783        } && test -s conftest.$ac_objext; then
25784   ac_lo=$ac_mid; break
25785 else
25786   echo "$as_me: failed program was:" >&5
25787 sed 's/^/| /' conftest.$ac_ext >&5
25788
25789         ac_hi=`expr '(' $ac_mid ')' - 1`
25790                         if test $ac_mid -le $ac_hi; then
25791                           ac_lo= ac_hi=
25792                           break
25793                         fi
25794                         ac_mid=`expr 2 '*' $ac_mid`
25795 fi
25796
25797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25798   done
25799 else
25800   echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
25803         ac_lo= ac_hi=
25804 fi
25805
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 fi
25808
25809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25810 # Binary search between lo and hi bounds.
25811 while test "x$ac_lo" != "x$ac_hi"; do
25812   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25813   cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h.  */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h.  */
25819 $ac_includes_default
25820    typedef int * ac__type_sizeof_;
25821 int
25822 main ()
25823 {
25824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25825 test_array [0] = 0
25826
25827   ;
25828   return 0;
25829 }
25830 _ACEOF
25831 rm -f conftest.$ac_objext
25832 if { (ac_try="$ac_compile"
25833 case "(($ac_try" in
25834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835   *) ac_try_echo=$ac_try;;
25836 esac
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838   (eval "$ac_compile") 2>conftest.er1
25839   ac_status=$?
25840   grep -v '^ *+' conftest.er1 >conftest.err
25841   rm -f conftest.er1
25842   cat conftest.err >&5
25843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844   (exit $ac_status); } && {
25845          test -z "$ac_c_werror_flag" ||
25846          test ! -s conftest.err
25847        } && test -s conftest.$ac_objext; then
25848   ac_hi=$ac_mid
25849 else
25850   echo "$as_me: failed program was:" >&5
25851 sed 's/^/| /' conftest.$ac_ext >&5
25852
25853         ac_lo=`expr '(' $ac_mid ')' + 1`
25854 fi
25855
25856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25857 done
25858 case $ac_lo in
25859 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25860 '') if test "$ac_cv_type_int_p" = yes; then
25861      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25862 See \`config.log' for more details." >&5
25863 echo "$as_me: error: cannot compute sizeof (int *)
25864 See \`config.log' for more details." >&2;}
25865    { (exit 77); exit 77; }; }
25866    else
25867      ac_cv_sizeof_int_p=0
25868    fi ;;
25869 esac
25870 else
25871   cat >conftest.$ac_ext <<_ACEOF
25872 /* confdefs.h.  */
25873 _ACEOF
25874 cat confdefs.h >>conftest.$ac_ext
25875 cat >>conftest.$ac_ext <<_ACEOF
25876 /* end confdefs.h.  */
25877 $ac_includes_default
25878    typedef int * ac__type_sizeof_;
25879 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25880 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25881 #include <stdio.h>
25882 #include <stdlib.h>
25883 int
25884 main ()
25885 {
25886
25887   FILE *f = fopen ("conftest.val", "w");
25888   if (! f)
25889     return 1;
25890   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25891     {
25892       long int i = longval ();
25893       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25894         return 1;
25895       fprintf (f, "%ld\n", i);
25896     }
25897   else
25898     {
25899       unsigned long int i = ulongval ();
25900       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25901         return 1;
25902       fprintf (f, "%lu\n", i);
25903     }
25904   return ferror (f) || fclose (f) != 0;
25905
25906   ;
25907   return 0;
25908 }
25909 _ACEOF
25910 rm -f conftest$ac_exeext
25911 if { (ac_try="$ac_link"
25912 case "(($ac_try" in
25913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25914   *) ac_try_echo=$ac_try;;
25915 esac
25916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25917   (eval "$ac_link") 2>&5
25918   ac_status=$?
25919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25920   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25921   { (case "(($ac_try" in
25922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25923   *) ac_try_echo=$ac_try;;
25924 esac
25925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25926   (eval "$ac_try") 2>&5
25927   ac_status=$?
25928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25929   (exit $ac_status); }; }; then
25930   ac_cv_sizeof_int_p=`cat conftest.val`
25931 else
25932   echo "$as_me: program exited with status $ac_status" >&5
25933 echo "$as_me: failed program was:" >&5
25934 sed 's/^/| /' conftest.$ac_ext >&5
25935
25936 ( exit $ac_status )
25937 if test "$ac_cv_type_int_p" = yes; then
25938      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25939 See \`config.log' for more details." >&5
25940 echo "$as_me: error: cannot compute sizeof (int *)
25941 See \`config.log' for more details." >&2;}
25942    { (exit 77); exit 77; }; }
25943    else
25944      ac_cv_sizeof_int_p=0
25945    fi
25946 fi
25947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25948 fi
25949 rm -f conftest.val
25950 fi
25951 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25952 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25953
25954
25955
25956 cat >>confdefs.h <<_ACEOF
25957 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25958 _ACEOF
25959
25960
25961
25962 # Check for sys/types.h types
25963 { echo "$as_me:$LINENO: checking for u_int type" >&5
25964 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25965 if test "${ac_cv_have_u_int+set}" = set; then
25966   echo $ECHO_N "(cached) $ECHO_C" >&6
25967 else
25968
25969     cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h.  */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h.  */
25975  #include <sys/types.h>
25976 int
25977 main ()
25978 {
25979  u_int a; a = 1;
25980   ;
25981   return 0;
25982 }
25983 _ACEOF
25984 rm -f conftest.$ac_objext
25985 if { (ac_try="$ac_compile"
25986 case "(($ac_try" in
25987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25988   *) ac_try_echo=$ac_try;;
25989 esac
25990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25991   (eval "$ac_compile") 2>conftest.er1
25992   ac_status=$?
25993   grep -v '^ *+' conftest.er1 >conftest.err
25994   rm -f conftest.er1
25995   cat conftest.err >&5
25996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25997   (exit $ac_status); } && {
25998          test -z "$ac_c_werror_flag" ||
25999          test ! -s conftest.err
26000        } && test -s conftest.$ac_objext; then
26001    ac_cv_have_u_int="yes"
26002 else
26003   echo "$as_me: failed program was:" >&5
26004 sed 's/^/| /' conftest.$ac_ext >&5
26005
26006          ac_cv_have_u_int="no"
26007
26008 fi
26009
26010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011
26012 fi
26013 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26014 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26015 if test "x$ac_cv_have_u_int" = "xyes" ; then
26016    cat >>confdefs.h <<\_ACEOF
26017 #define HAVE_U_INT 1
26018 _ACEOF
26019
26020    have_u_int=1
26021 fi
26022
26023 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26024 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26025 if test "${ac_cv_have_intmax_t+set}" = set; then
26026   echo $ECHO_N "(cached) $ECHO_C" >&6
26027 else
26028
26029    cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h.  */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h.  */
26035  #include <sys/types.h>
26036 int
26037 main ()
26038 {
26039  intmax_t a; a = 1;
26040   ;
26041   return 0;
26042 }
26043 _ACEOF
26044 rm -f conftest.$ac_objext
26045 if { (ac_try="$ac_compile"
26046 case "(($ac_try" in
26047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26048   *) ac_try_echo=$ac_try;;
26049 esac
26050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26051   (eval "$ac_compile") 2>conftest.er1
26052   ac_status=$?
26053   grep -v '^ *+' conftest.er1 >conftest.err
26054   rm -f conftest.er1
26055   cat conftest.err >&5
26056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26057   (exit $ac_status); } && {
26058          test -z "$ac_c_werror_flag" ||
26059          test ! -s conftest.err
26060        } && test -s conftest.$ac_objext; then
26061    ac_cv_have_intmax_t="yes"
26062 else
26063   echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26065
26066
26067          cat >conftest.$ac_ext <<_ACEOF
26068 /* confdefs.h.  */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h.  */
26073  #include <stdint.h>
26074 int
26075 main ()
26076 {
26077  intmax_t a; a = 1;
26078   ;
26079   return 0;
26080 }
26081 _ACEOF
26082 rm -f conftest.$ac_objext
26083 if { (ac_try="$ac_compile"
26084 case "(($ac_try" in
26085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086   *) ac_try_echo=$ac_try;;
26087 esac
26088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26089   (eval "$ac_compile") 2>conftest.er1
26090   ac_status=$?
26091   grep -v '^ *+' conftest.er1 >conftest.err
26092   rm -f conftest.er1
26093   cat conftest.err >&5
26094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095   (exit $ac_status); } && {
26096          test -z "$ac_c_werror_flag" ||
26097          test ! -s conftest.err
26098        } && test -s conftest.$ac_objext; then
26099    ac_cv_have_intmax_t="yes"
26100 else
26101   echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26103
26104          ac_cv_have_intmax_t="no"
26105
26106 fi
26107
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26109
26110
26111 fi
26112
26113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26114
26115
26116 fi
26117 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26118 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26119 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26120    cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_INTMAX_T 1
26122 _ACEOF
26123
26124    have_intmax_t=1
26125 fi
26126
26127
26128 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26129 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26130 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26131   echo $ECHO_N "(cached) $ECHO_C" >&6
26132 else
26133
26134    cat >conftest.$ac_ext <<_ACEOF
26135 /* confdefs.h.  */
26136 _ACEOF
26137 cat confdefs.h >>conftest.$ac_ext
26138 cat >>conftest.$ac_ext <<_ACEOF
26139 /* end confdefs.h.  */
26140  #include <sys/types.h>
26141 int
26142 main ()
26143 {
26144  u_intmax_t a; a = 1;
26145   ;
26146   return 0;
26147 }
26148 _ACEOF
26149 rm -f conftest.$ac_objext
26150 if { (ac_try="$ac_compile"
26151 case "(($ac_try" in
26152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26153   *) ac_try_echo=$ac_try;;
26154 esac
26155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26156   (eval "$ac_compile") 2>conftest.er1
26157   ac_status=$?
26158   grep -v '^ *+' conftest.er1 >conftest.err
26159   rm -f conftest.er1
26160   cat conftest.err >&5
26161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162   (exit $ac_status); } && {
26163          test -z "$ac_c_werror_flag" ||
26164          test ! -s conftest.err
26165        } && test -s conftest.$ac_objext; then
26166    ac_cv_have_u_intmax_t="yes"
26167 else
26168   echo "$as_me: failed program was:" >&5
26169 sed 's/^/| /' conftest.$ac_ext >&5
26170
26171
26172          cat >conftest.$ac_ext <<_ACEOF
26173 /* confdefs.h.  */
26174 _ACEOF
26175 cat confdefs.h >>conftest.$ac_ext
26176 cat >>conftest.$ac_ext <<_ACEOF
26177 /* end confdefs.h.  */
26178  #include <stdint.h>
26179 int
26180 main ()
26181 {
26182  u_intmax_t a; a = 1;
26183   ;
26184   return 0;
26185 }
26186 _ACEOF
26187 rm -f conftest.$ac_objext
26188 if { (ac_try="$ac_compile"
26189 case "(($ac_try" in
26190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26191   *) ac_try_echo=$ac_try;;
26192 esac
26193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26194   (eval "$ac_compile") 2>conftest.er1
26195   ac_status=$?
26196   grep -v '^ *+' conftest.er1 >conftest.err
26197   rm -f conftest.er1
26198   cat conftest.err >&5
26199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200   (exit $ac_status); } && {
26201          test -z "$ac_c_werror_flag" ||
26202          test ! -s conftest.err
26203        } && test -s conftest.$ac_objext; then
26204    ac_cv_have_u_intmax_t="yes"
26205 else
26206   echo "$as_me: failed program was:" >&5
26207 sed 's/^/| /' conftest.$ac_ext >&5
26208
26209          ac_cv_have_u_intmax_t="no"
26210
26211 fi
26212
26213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26214
26215
26216 fi
26217
26218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26219
26220 fi
26221 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26222 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26223 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26224    cat >>confdefs.h <<\_ACEOF
26225 #define HAVE_U_INTMAX_T 1
26226 _ACEOF
26227
26228    have_u_intmax_t=1
26229 fi
26230
26231
26232 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26233 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26234 if test "${ac_cv_have_intxx_t+set}" = set; then
26235   echo $ECHO_N "(cached) $ECHO_C" >&6
26236 else
26237
26238    cat >conftest.$ac_ext <<_ACEOF
26239 /* confdefs.h.  */
26240 _ACEOF
26241 cat confdefs.h >>conftest.$ac_ext
26242 cat >>conftest.$ac_ext <<_ACEOF
26243 /* end confdefs.h.  */
26244  #include <sys/types.h>
26245 int
26246 main ()
26247 {
26248  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26249   ;
26250   return 0;
26251 }
26252 _ACEOF
26253 rm -f conftest.$ac_objext
26254 if { (ac_try="$ac_compile"
26255 case "(($ac_try" in
26256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26257   *) ac_try_echo=$ac_try;;
26258 esac
26259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26260   (eval "$ac_compile") 2>conftest.er1
26261   ac_status=$?
26262   grep -v '^ *+' conftest.er1 >conftest.err
26263   rm -f conftest.er1
26264   cat conftest.err >&5
26265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266   (exit $ac_status); } && {
26267          test -z "$ac_c_werror_flag" ||
26268          test ! -s conftest.err
26269        } && test -s conftest.$ac_objext; then
26270    ac_cv_have_intxx_t="yes"
26271 else
26272   echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26274
26275          ac_cv_have_intxx_t="no"
26276
26277 fi
26278
26279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26280
26281 fi
26282 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26283 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26284 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26285    cat >>confdefs.h <<\_ACEOF
26286 #define HAVE_INTXX_T 1
26287 _ACEOF
26288
26289    have_intxx_t=1
26290 fi
26291
26292 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26293 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26294 if test "${ac_cv_have_int64_t+set}" = set; then
26295   echo $ECHO_N "(cached) $ECHO_C" >&6
26296 else
26297
26298    cat >conftest.$ac_ext <<_ACEOF
26299 /* confdefs.h.  */
26300 _ACEOF
26301 cat confdefs.h >>conftest.$ac_ext
26302 cat >>conftest.$ac_ext <<_ACEOF
26303 /* end confdefs.h.  */
26304  #include <sys/types.h>
26305 int
26306 main ()
26307 {
26308  int64_t a; a = 1;
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 rm -f conftest.$ac_objext
26314 if { (ac_try="$ac_compile"
26315 case "(($ac_try" in
26316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26317   *) ac_try_echo=$ac_try;;
26318 esac
26319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26320   (eval "$ac_compile") 2>conftest.er1
26321   ac_status=$?
26322   grep -v '^ *+' conftest.er1 >conftest.err
26323   rm -f conftest.er1
26324   cat conftest.err >&5
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); } && {
26327          test -z "$ac_c_werror_flag" ||
26328          test ! -s conftest.err
26329        } && test -s conftest.$ac_objext; then
26330    ac_cv_have_int64_t="yes"
26331 else
26332   echo "$as_me: failed program was:" >&5
26333 sed 's/^/| /' conftest.$ac_ext >&5
26334
26335          ac_cv_have_int64_t="no"
26336
26337 fi
26338
26339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26340
26341 fi
26342 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26343 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26344 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26345    cat >>confdefs.h <<\_ACEOF
26346 #define HAVE_INT64_T 1
26347 _ACEOF
26348
26349    have_int64_t=1
26350 fi
26351
26352 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26353 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26354 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26355   echo $ECHO_N "(cached) $ECHO_C" >&6
26356 else
26357
26358    cat >conftest.$ac_ext <<_ACEOF
26359 /* confdefs.h.  */
26360 _ACEOF
26361 cat confdefs.h >>conftest.$ac_ext
26362 cat >>conftest.$ac_ext <<_ACEOF
26363 /* end confdefs.h.  */
26364  #include <sys/types.h>
26365 int
26366 main ()
26367 {
26368  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26369   ;
26370   return 0;
26371 }
26372 _ACEOF
26373 rm -f conftest.$ac_objext
26374 if { (ac_try="$ac_compile"
26375 case "(($ac_try" in
26376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26377   *) ac_try_echo=$ac_try;;
26378 esac
26379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26380   (eval "$ac_compile") 2>conftest.er1
26381   ac_status=$?
26382   grep -v '^ *+' conftest.er1 >conftest.err
26383   rm -f conftest.er1
26384   cat conftest.err >&5
26385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26386   (exit $ac_status); } && {
26387          test -z "$ac_c_werror_flag" ||
26388          test ! -s conftest.err
26389        } && test -s conftest.$ac_objext; then
26390    ac_cv_have_u_intxx_t="yes"
26391 else
26392   echo "$as_me: failed program was:" >&5
26393 sed 's/^/| /' conftest.$ac_ext >&5
26394
26395          ac_cv_have_u_intxx_t="no"
26396
26397 fi
26398
26399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400
26401 fi
26402 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26403 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26404 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26405    cat >>confdefs.h <<\_ACEOF
26406 #define HAVE_U_INTXX_T 1
26407 _ACEOF
26408
26409    have_u_intxx_t=1
26410 fi
26411
26412 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26413 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26414 if test "${ac_cv_have_u_int64_t+set}" = set; then
26415   echo $ECHO_N "(cached) $ECHO_C" >&6
26416 else
26417
26418    cat >conftest.$ac_ext <<_ACEOF
26419 /* confdefs.h.  */
26420 _ACEOF
26421 cat confdefs.h >>conftest.$ac_ext
26422 cat >>conftest.$ac_ext <<_ACEOF
26423 /* end confdefs.h.  */
26424  #include <sys/types.h>
26425 int
26426 main ()
26427 {
26428  u_int64_t a; a = 1;
26429   ;
26430   return 0;
26431 }
26432 _ACEOF
26433 rm -f conftest.$ac_objext
26434 if { (ac_try="$ac_compile"
26435 case "(($ac_try" in
26436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437   *) ac_try_echo=$ac_try;;
26438 esac
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440   (eval "$ac_compile") 2>conftest.er1
26441   ac_status=$?
26442   grep -v '^ *+' conftest.er1 >conftest.err
26443   rm -f conftest.er1
26444   cat conftest.err >&5
26445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446   (exit $ac_status); } && {
26447          test -z "$ac_c_werror_flag" ||
26448          test ! -s conftest.err
26449        } && test -s conftest.$ac_objext; then
26450    ac_cv_have_u_int64_t="yes"
26451 else
26452   echo "$as_me: failed program was:" >&5
26453 sed 's/^/| /' conftest.$ac_ext >&5
26454
26455          ac_cv_have_u_int64_t="no"
26456
26457 fi
26458
26459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26460
26461 fi
26462 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26463 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26464 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26465    cat >>confdefs.h <<\_ACEOF
26466 #define HAVE_U_INT64_T 1
26467 _ACEOF
26468
26469    have_u_int64_t=1
26470 fi
26471
26472 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26473            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26474 then
26475    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26476 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26477    cat >conftest.$ac_ext <<_ACEOF
26478 /* confdefs.h.  */
26479 _ACEOF
26480 cat confdefs.h >>conftest.$ac_ext
26481 cat >>conftest.$ac_ext <<_ACEOF
26482 /* end confdefs.h.  */
26483  #include <sys/bitypes.h>
26484 int
26485 main ()
26486 {
26487  int8_t a; int16_t b; int32_t c;
26488         u_int8_t e; u_int16_t f; u_int32_t g;
26489         a = b = c = e = f = g = 1;
26490   ;
26491   return 0;
26492 }
26493 _ACEOF
26494 rm -f conftest.$ac_objext
26495 if { (ac_try="$ac_compile"
26496 case "(($ac_try" in
26497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26498   *) ac_try_echo=$ac_try;;
26499 esac
26500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26501   (eval "$ac_compile") 2>conftest.er1
26502   ac_status=$?
26503   grep -v '^ *+' conftest.er1 >conftest.err
26504   rm -f conftest.er1
26505   cat conftest.err >&5
26506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507   (exit $ac_status); } && {
26508          test -z "$ac_c_werror_flag" ||
26509          test ! -s conftest.err
26510        } && test -s conftest.$ac_objext; then
26511    cat >>confdefs.h <<\_ACEOF
26512 #define HAVE_U_INTXX_T 1
26513 _ACEOF
26514
26515         cat >>confdefs.h <<\_ACEOF
26516 #define HAVE_INTXX_T 1
26517 _ACEOF
26518
26519         cat >>confdefs.h <<\_ACEOF
26520 #define HAVE_SYS_BITYPES_H 1
26521 _ACEOF
26522
26523         { echo "$as_me:$LINENO: result: yes" >&5
26524 echo "${ECHO_T}yes" >&6; }
26525 else
26526   echo "$as_me: failed program was:" >&5
26527 sed 's/^/| /' conftest.$ac_ext >&5
26528
26529          { echo "$as_me:$LINENO: result: no" >&5
26530 echo "${ECHO_T}no" >&6; }
26531
26532 fi
26533
26534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26535 fi
26536
26537 if test -z "$have_u_intxx_t" ; then
26538    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26539 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26540 if test "${ac_cv_have_uintxx_t+set}" = set; then
26541   echo $ECHO_N "(cached) $ECHO_C" >&6
26542 else
26543
26544       cat >conftest.$ac_ext <<_ACEOF
26545 /* confdefs.h.  */
26546 _ACEOF
26547 cat confdefs.h >>conftest.$ac_ext
26548 cat >>conftest.$ac_ext <<_ACEOF
26549 /* end confdefs.h.  */
26550  #include <sys/types.h>
26551 int
26552 main ()
26553 {
26554  uint8_t a; uint16_t b;
26555            uint32_t c; a = b = c = 1;
26556   ;
26557   return 0;
26558 }
26559 _ACEOF
26560 rm -f conftest.$ac_objext
26561 if { (ac_try="$ac_compile"
26562 case "(($ac_try" in
26563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26564   *) ac_try_echo=$ac_try;;
26565 esac
26566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26567   (eval "$ac_compile") 2>conftest.er1
26568   ac_status=$?
26569   grep -v '^ *+' conftest.er1 >conftest.err
26570   rm -f conftest.er1
26571   cat conftest.err >&5
26572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26573   (exit $ac_status); } && {
26574          test -z "$ac_c_werror_flag" ||
26575          test ! -s conftest.err
26576        } && test -s conftest.$ac_objext; then
26577    ac_cv_have_uintxx_t="yes"
26578 else
26579   echo "$as_me: failed program was:" >&5
26580 sed 's/^/| /' conftest.$ac_ext >&5
26581
26582          ac_cv_have_uintxx_t="no"
26583
26584 fi
26585
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26587
26588 fi
26589 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26590 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26591    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26592       cat >>confdefs.h <<\_ACEOF
26593 #define HAVE_UINTXX_T 1
26594 _ACEOF
26595
26596    fi
26597 fi
26598
26599 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26600           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26601 then
26602    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26603 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26604    cat >conftest.$ac_ext <<_ACEOF
26605 /* confdefs.h.  */
26606 _ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h.  */
26610  #include <sys/bitypes.h>
26611 int
26612 main ()
26613 {
26614  int64_t a; u_int64_t b;
26615        a = b = 1;
26616   ;
26617   return 0;
26618 }
26619 _ACEOF
26620 rm -f conftest.$ac_objext
26621 if { (ac_try="$ac_compile"
26622 case "(($ac_try" in
26623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26624   *) ac_try_echo=$ac_try;;
26625 esac
26626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26627   (eval "$ac_compile") 2>conftest.er1
26628   ac_status=$?
26629   grep -v '^ *+' conftest.er1 >conftest.err
26630   rm -f conftest.er1
26631   cat conftest.err >&5
26632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26633   (exit $ac_status); } && {
26634          test -z "$ac_c_werror_flag" ||
26635          test ! -s conftest.err
26636        } && test -s conftest.$ac_objext; then
26637    cat >>confdefs.h <<\_ACEOF
26638 #define HAVE_U_INT64_T 1
26639 _ACEOF
26640
26641        cat >>confdefs.h <<\_ACEOF
26642 #define HAVE_INT64_T 1
26643 _ACEOF
26644
26645        { echo "$as_me:$LINENO: result: yes" >&5
26646 echo "${ECHO_T}yes" >&6; }
26647 else
26648   echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26650
26651          { echo "$as_me:$LINENO: result: no" >&5
26652 echo "${ECHO_T}no" >&6; }
26653
26654 fi
26655
26656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26657 fi
26658
26659 if (test -z "$have_uintxx_t" && \
26660           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26661 then
26662    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26663 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26664    cat >conftest.$ac_ext <<_ACEOF
26665 /* confdefs.h.  */
26666 _ACEOF
26667 cat confdefs.h >>conftest.$ac_ext
26668 cat >>conftest.$ac_ext <<_ACEOF
26669 /* end confdefs.h.  */
26670  #include <sys/bitypes.h>
26671 int
26672 main ()
26673 {
26674  uint8_t a; uint16_t b;
26675           uint32_t c; a = b = c = 1;
26676   ;
26677   return 0;
26678 }
26679 _ACEOF
26680 rm -f conftest.$ac_objext
26681 if { (ac_try="$ac_compile"
26682 case "(($ac_try" in
26683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26684   *) ac_try_echo=$ac_try;;
26685 esac
26686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26687   (eval "$ac_compile") 2>conftest.er1
26688   ac_status=$?
26689   grep -v '^ *+' conftest.er1 >conftest.err
26690   rm -f conftest.er1
26691   cat conftest.err >&5
26692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693   (exit $ac_status); } && {
26694          test -z "$ac_c_werror_flag" ||
26695          test ! -s conftest.err
26696        } && test -s conftest.$ac_objext; then
26697    cat >>confdefs.h <<\_ACEOF
26698 #define HAVE_UINTXX_T 1
26699 _ACEOF
26700
26701        { echo "$as_me:$LINENO: result: yes" >&5
26702 echo "${ECHO_T}yes" >&6; }
26703 else
26704   echo "$as_me: failed program was:" >&5
26705 sed 's/^/| /' conftest.$ac_ext >&5
26706
26707          { echo "$as_me:$LINENO: result: no" >&5
26708 echo "${ECHO_T}no" >&6; }
26709
26710 fi
26711
26712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26713
26714 fi
26715
26716
26717
26718
26719
26720
26721
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732 for ac_func in \
26733         fork \
26734         getcwd \
26735         gethostname \
26736         getpid \
26737         gettimeofday \
26738         setpgid \
26739         setpgrp \
26740         setsid \
26741         signal \
26742         strerror \
26743         strncmp \
26744         strncpy \
26745         vfprintf \
26746
26747 do
26748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26752   echo $ECHO_N "(cached) $ECHO_C" >&6
26753 else
26754   cat >conftest.$ac_ext <<_ACEOF
26755 /* confdefs.h.  */
26756 _ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h.  */
26760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26762 #define $ac_func innocuous_$ac_func
26763
26764 /* System header to define __stub macros and hopefully few prototypes,
26765     which can conflict with char $ac_func (); below.
26766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26767     <limits.h> exists even on freestanding compilers.  */
26768
26769 #ifdef __STDC__
26770 # include <limits.h>
26771 #else
26772 # include <assert.h>
26773 #endif
26774
26775 #undef $ac_func
26776
26777 /* Override any GCC internal prototype to avoid an error.
26778    Use char because int might match the return type of a GCC
26779    builtin and then its argument prototype would still apply.  */
26780 #ifdef __cplusplus
26781 extern "C"
26782 #endif
26783 char $ac_func ();
26784 /* The GNU C library defines this for functions which it implements
26785     to always fail with ENOSYS.  Some functions are actually named
26786     something starting with __ and the normal name is an alias.  */
26787 #if defined __stub_$ac_func || defined __stub___$ac_func
26788 choke me
26789 #endif
26790
26791 int
26792 main ()
26793 {
26794 return $ac_func ();
26795   ;
26796   return 0;
26797 }
26798 _ACEOF
26799 rm -f conftest.$ac_objext conftest$ac_exeext
26800 if { (ac_try="$ac_link"
26801 case "(($ac_try" in
26802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26803   *) ac_try_echo=$ac_try;;
26804 esac
26805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26806   (eval "$ac_link") 2>conftest.er1
26807   ac_status=$?
26808   grep -v '^ *+' conftest.er1 >conftest.err
26809   rm -f conftest.er1
26810   cat conftest.err >&5
26811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812   (exit $ac_status); } && {
26813          test -z "$ac_c_werror_flag" ||
26814          test ! -s conftest.err
26815        } && test -s conftest$ac_exeext &&
26816        $as_test_x conftest$ac_exeext; then
26817   eval "$as_ac_var=yes"
26818 else
26819   echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26821
26822         eval "$as_ac_var=no"
26823 fi
26824
26825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26826       conftest$ac_exeext conftest.$ac_ext
26827 fi
26828 ac_res=`eval echo '${'$as_ac_var'}'`
26829                { echo "$as_me:$LINENO: result: $ac_res" >&5
26830 echo "${ECHO_T}$ac_res" >&6; }
26831 if test `eval echo '${'$as_ac_var'}'` = yes; then
26832   cat >>confdefs.h <<_ACEOF
26833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26834 _ACEOF
26835
26836 else
26837   echo 'configure: cannot find needed function.'; exit 1
26838
26839 fi
26840 done
26841
26842
26843
26844 for ac_func in fchdir
26845 do
26846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26850   echo $ECHO_N "(cached) $ECHO_C" >&6
26851 else
26852   cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h.  */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h.  */
26858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26860 #define $ac_func innocuous_$ac_func
26861
26862 /* System header to define __stub macros and hopefully few prototypes,
26863     which can conflict with char $ac_func (); below.
26864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26865     <limits.h> exists even on freestanding compilers.  */
26866
26867 #ifdef __STDC__
26868 # include <limits.h>
26869 #else
26870 # include <assert.h>
26871 #endif
26872
26873 #undef $ac_func
26874
26875 /* Override any GCC internal prototype to avoid an error.
26876    Use char because int might match the return type of a GCC
26877    builtin and then its argument prototype would still apply.  */
26878 #ifdef __cplusplus
26879 extern "C"
26880 #endif
26881 char $ac_func ();
26882 /* The GNU C library defines this for functions which it implements
26883     to always fail with ENOSYS.  Some functions are actually named
26884     something starting with __ and the normal name is an alias.  */
26885 #if defined __stub_$ac_func || defined __stub___$ac_func
26886 choke me
26887 #endif
26888
26889 int
26890 main ()
26891 {
26892 return $ac_func ();
26893   ;
26894   return 0;
26895 }
26896 _ACEOF
26897 rm -f conftest.$ac_objext conftest$ac_exeext
26898 if { (ac_try="$ac_link"
26899 case "(($ac_try" in
26900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26901   *) ac_try_echo=$ac_try;;
26902 esac
26903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26904   (eval "$ac_link") 2>conftest.er1
26905   ac_status=$?
26906   grep -v '^ *+' conftest.er1 >conftest.err
26907   rm -f conftest.er1
26908   cat conftest.err >&5
26909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910   (exit $ac_status); } && {
26911          test -z "$ac_c_werror_flag" ||
26912          test ! -s conftest.err
26913        } && test -s conftest$ac_exeext &&
26914        $as_test_x conftest$ac_exeext; then
26915   eval "$as_ac_var=yes"
26916 else
26917   echo "$as_me: failed program was:" >&5
26918 sed 's/^/| /' conftest.$ac_ext >&5
26919
26920         eval "$as_ac_var=no"
26921 fi
26922
26923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26924       conftest$ac_exeext conftest.$ac_ext
26925 fi
26926 ac_res=`eval echo '${'$as_ac_var'}'`
26927                { echo "$as_me:$LINENO: result: $ac_res" >&5
26928 echo "${ECHO_T}$ac_res" >&6; }
26929 if test `eval echo '${'$as_ac_var'}'` = yes; then
26930   cat >>confdefs.h <<_ACEOF
26931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26932 _ACEOF
26933  cat >>confdefs.h <<\_ACEOF
26934 #define HAVE_FCHDIR 1
26935 _ACEOF
26936
26937 fi
26938 done
26939
26940
26941 for ac_func in strtoll
26942 do
26943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26947   echo $ECHO_N "(cached) $ECHO_C" >&6
26948 else
26949   cat >conftest.$ac_ext <<_ACEOF
26950 /* confdefs.h.  */
26951 _ACEOF
26952 cat confdefs.h >>conftest.$ac_ext
26953 cat >>conftest.$ac_ext <<_ACEOF
26954 /* end confdefs.h.  */
26955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26957 #define $ac_func innocuous_$ac_func
26958
26959 /* System header to define __stub macros and hopefully few prototypes,
26960     which can conflict with char $ac_func (); below.
26961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26962     <limits.h> exists even on freestanding compilers.  */
26963
26964 #ifdef __STDC__
26965 # include <limits.h>
26966 #else
26967 # include <assert.h>
26968 #endif
26969
26970 #undef $ac_func
26971
26972 /* Override any GCC internal prototype to avoid an error.
26973    Use char because int might match the return type of a GCC
26974    builtin and then its argument prototype would still apply.  */
26975 #ifdef __cplusplus
26976 extern "C"
26977 #endif
26978 char $ac_func ();
26979 /* The GNU C library defines this for functions which it implements
26980     to always fail with ENOSYS.  Some functions are actually named
26981     something starting with __ and the normal name is an alias.  */
26982 #if defined __stub_$ac_func || defined __stub___$ac_func
26983 choke me
26984 #endif
26985
26986 int
26987 main ()
26988 {
26989 return $ac_func ();
26990   ;
26991   return 0;
26992 }
26993 _ACEOF
26994 rm -f conftest.$ac_objext conftest$ac_exeext
26995 if { (ac_try="$ac_link"
26996 case "(($ac_try" in
26997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26998   *) ac_try_echo=$ac_try;;
26999 esac
27000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27001   (eval "$ac_link") 2>conftest.er1
27002   ac_status=$?
27003   grep -v '^ *+' conftest.er1 >conftest.err
27004   rm -f conftest.er1
27005   cat conftest.err >&5
27006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27007   (exit $ac_status); } && {
27008          test -z "$ac_c_werror_flag" ||
27009          test ! -s conftest.err
27010        } && test -s conftest$ac_exeext &&
27011        $as_test_x conftest$ac_exeext; then
27012   eval "$as_ac_var=yes"
27013 else
27014   echo "$as_me: failed program was:" >&5
27015 sed 's/^/| /' conftest.$ac_ext >&5
27016
27017         eval "$as_ac_var=no"
27018 fi
27019
27020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27021       conftest$ac_exeext conftest.$ac_ext
27022 fi
27023 ac_res=`eval echo '${'$as_ac_var'}'`
27024                { echo "$as_me:$LINENO: result: $ac_res" >&5
27025 echo "${ECHO_T}$ac_res" >&6; }
27026 if test `eval echo '${'$as_ac_var'}'` = yes; then
27027   cat >>confdefs.h <<_ACEOF
27028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27029 _ACEOF
27030  cat >>confdefs.h <<\_ACEOF
27031 #define HAVE_STRTOLL 1
27032 _ACEOF
27033
27034 fi
27035 done
27036
27037
27038 for ac_func in posix_fadvise
27039 do
27040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27044   echo $ECHO_N "(cached) $ECHO_C" >&6
27045 else
27046   cat >conftest.$ac_ext <<_ACEOF
27047 /* confdefs.h.  */
27048 _ACEOF
27049 cat confdefs.h >>conftest.$ac_ext
27050 cat >>conftest.$ac_ext <<_ACEOF
27051 /* end confdefs.h.  */
27052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27054 #define $ac_func innocuous_$ac_func
27055
27056 /* System header to define __stub macros and hopefully few prototypes,
27057     which can conflict with char $ac_func (); below.
27058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27059     <limits.h> exists even on freestanding compilers.  */
27060
27061 #ifdef __STDC__
27062 # include <limits.h>
27063 #else
27064 # include <assert.h>
27065 #endif
27066
27067 #undef $ac_func
27068
27069 /* Override any GCC internal prototype to avoid an error.
27070    Use char because int might match the return type of a GCC
27071    builtin and then its argument prototype would still apply.  */
27072 #ifdef __cplusplus
27073 extern "C"
27074 #endif
27075 char $ac_func ();
27076 /* The GNU C library defines this for functions which it implements
27077     to always fail with ENOSYS.  Some functions are actually named
27078     something starting with __ and the normal name is an alias.  */
27079 #if defined __stub_$ac_func || defined __stub___$ac_func
27080 choke me
27081 #endif
27082
27083 int
27084 main ()
27085 {
27086 return $ac_func ();
27087   ;
27088   return 0;
27089 }
27090 _ACEOF
27091 rm -f conftest.$ac_objext conftest$ac_exeext
27092 if { (ac_try="$ac_link"
27093 case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098   (eval "$ac_link") 2>conftest.er1
27099   ac_status=$?
27100   grep -v '^ *+' conftest.er1 >conftest.err
27101   rm -f conftest.er1
27102   cat conftest.err >&5
27103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27104   (exit $ac_status); } && {
27105          test -z "$ac_c_werror_flag" ||
27106          test ! -s conftest.err
27107        } && test -s conftest$ac_exeext &&
27108        $as_test_x conftest$ac_exeext; then
27109   eval "$as_ac_var=yes"
27110 else
27111   echo "$as_me: failed program was:" >&5
27112 sed 's/^/| /' conftest.$ac_ext >&5
27113
27114         eval "$as_ac_var=no"
27115 fi
27116
27117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27118       conftest$ac_exeext conftest.$ac_ext
27119 fi
27120 ac_res=`eval echo '${'$as_ac_var'}'`
27121                { echo "$as_me:$LINENO: result: $ac_res" >&5
27122 echo "${ECHO_T}$ac_res" >&6; }
27123 if test `eval echo '${'$as_ac_var'}'` = yes; then
27124   cat >>confdefs.h <<_ACEOF
27125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27126 _ACEOF
27127
27128 fi
27129 done
27130
27131
27132 for ac_func in fdatasync
27133 do
27134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27138   echo $ECHO_N "(cached) $ECHO_C" >&6
27139 else
27140   cat >conftest.$ac_ext <<_ACEOF
27141 /* confdefs.h.  */
27142 _ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h.  */
27146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27147    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27148 #define $ac_func innocuous_$ac_func
27149
27150 /* System header to define __stub macros and hopefully few prototypes,
27151     which can conflict with char $ac_func (); below.
27152     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27153     <limits.h> exists even on freestanding compilers.  */
27154
27155 #ifdef __STDC__
27156 # include <limits.h>
27157 #else
27158 # include <assert.h>
27159 #endif
27160
27161 #undef $ac_func
27162
27163 /* Override any GCC internal prototype to avoid an error.
27164    Use char because int might match the return type of a GCC
27165    builtin and then its argument prototype would still apply.  */
27166 #ifdef __cplusplus
27167 extern "C"
27168 #endif
27169 char $ac_func ();
27170 /* The GNU C library defines this for functions which it implements
27171     to always fail with ENOSYS.  Some functions are actually named
27172     something starting with __ and the normal name is an alias.  */
27173 #if defined __stub_$ac_func || defined __stub___$ac_func
27174 choke me
27175 #endif
27176
27177 int
27178 main ()
27179 {
27180 return $ac_func ();
27181   ;
27182   return 0;
27183 }
27184 _ACEOF
27185 rm -f conftest.$ac_objext conftest$ac_exeext
27186 if { (ac_try="$ac_link"
27187 case "(($ac_try" in
27188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189   *) ac_try_echo=$ac_try;;
27190 esac
27191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27192   (eval "$ac_link") 2>conftest.er1
27193   ac_status=$?
27194   grep -v '^ *+' conftest.er1 >conftest.err
27195   rm -f conftest.er1
27196   cat conftest.err >&5
27197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27198   (exit $ac_status); } && {
27199          test -z "$ac_c_werror_flag" ||
27200          test ! -s conftest.err
27201        } && test -s conftest$ac_exeext &&
27202        $as_test_x conftest$ac_exeext; then
27203   eval "$as_ac_var=yes"
27204 else
27205   echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27207
27208         eval "$as_ac_var=no"
27209 fi
27210
27211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27212       conftest$ac_exeext conftest.$ac_ext
27213 fi
27214 ac_res=`eval echo '${'$as_ac_var'}'`
27215                { echo "$as_me:$LINENO: result: $ac_res" >&5
27216 echo "${ECHO_T}$ac_res" >&6; }
27217 if test `eval echo '${'$as_ac_var'}'` = yes; then
27218   cat >>confdefs.h <<_ACEOF
27219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27220 _ACEOF
27221
27222 fi
27223 done
27224
27225
27226
27227 for ac_func in chflags
27228 do
27229 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27230 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27231 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27233   echo $ECHO_N "(cached) $ECHO_C" >&6
27234 else
27235   cat >conftest.$ac_ext <<_ACEOF
27236 /* confdefs.h.  */
27237 _ACEOF
27238 cat confdefs.h >>conftest.$ac_ext
27239 cat >>conftest.$ac_ext <<_ACEOF
27240 /* end confdefs.h.  */
27241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27243 #define $ac_func innocuous_$ac_func
27244
27245 /* System header to define __stub macros and hopefully few prototypes,
27246     which can conflict with char $ac_func (); below.
27247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27248     <limits.h> exists even on freestanding compilers.  */
27249
27250 #ifdef __STDC__
27251 # include <limits.h>
27252 #else
27253 # include <assert.h>
27254 #endif
27255
27256 #undef $ac_func
27257
27258 /* Override any GCC internal prototype to avoid an error.
27259    Use char because int might match the return type of a GCC
27260    builtin and then its argument prototype would still apply.  */
27261 #ifdef __cplusplus
27262 extern "C"
27263 #endif
27264 char $ac_func ();
27265 /* The GNU C library defines this for functions which it implements
27266     to always fail with ENOSYS.  Some functions are actually named
27267     something starting with __ and the normal name is an alias.  */
27268 #if defined __stub_$ac_func || defined __stub___$ac_func
27269 choke me
27270 #endif
27271
27272 int
27273 main ()
27274 {
27275 return $ac_func ();
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_link") 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } && {
27294          test -z "$ac_c_werror_flag" ||
27295          test ! -s conftest.err
27296        } && test -s conftest$ac_exeext &&
27297        $as_test_x conftest$ac_exeext; then
27298   eval "$as_ac_var=yes"
27299 else
27300   echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27302
27303         eval "$as_ac_var=no"
27304 fi
27305
27306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27307       conftest$ac_exeext conftest.$ac_ext
27308 fi
27309 ac_res=`eval echo '${'$as_ac_var'}'`
27310                { echo "$as_me:$LINENO: result: $ac_res" >&5
27311 echo "${ECHO_T}$ac_res" >&6; }
27312 if test `eval echo '${'$as_ac_var'}'` = yes; then
27313   cat >>confdefs.h <<_ACEOF
27314 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27315 _ACEOF
27316
27317 fi
27318 done
27319
27320
27321
27322
27323
27324
27325 for ac_func in snprintf vsnprintf gethostid fseeko
27326 do
27327 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27330 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27331   echo $ECHO_N "(cached) $ECHO_C" >&6
27332 else
27333   cat >conftest.$ac_ext <<_ACEOF
27334 /* confdefs.h.  */
27335 _ACEOF
27336 cat confdefs.h >>conftest.$ac_ext
27337 cat >>conftest.$ac_ext <<_ACEOF
27338 /* end confdefs.h.  */
27339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27340    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27341 #define $ac_func innocuous_$ac_func
27342
27343 /* System header to define __stub macros and hopefully few prototypes,
27344     which can conflict with char $ac_func (); below.
27345     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27346     <limits.h> exists even on freestanding compilers.  */
27347
27348 #ifdef __STDC__
27349 # include <limits.h>
27350 #else
27351 # include <assert.h>
27352 #endif
27353
27354 #undef $ac_func
27355
27356 /* Override any GCC internal prototype to avoid an error.
27357    Use char because int might match the return type of a GCC
27358    builtin and then its argument prototype would still apply.  */
27359 #ifdef __cplusplus
27360 extern "C"
27361 #endif
27362 char $ac_func ();
27363 /* The GNU C library defines this for functions which it implements
27364     to always fail with ENOSYS.  Some functions are actually named
27365     something starting with __ and the normal name is an alias.  */
27366 #if defined __stub_$ac_func || defined __stub___$ac_func
27367 choke me
27368 #endif
27369
27370 int
27371 main ()
27372 {
27373 return $ac_func ();
27374   ;
27375   return 0;
27376 }
27377 _ACEOF
27378 rm -f conftest.$ac_objext conftest$ac_exeext
27379 if { (ac_try="$ac_link"
27380 case "(($ac_try" in
27381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27382   *) ac_try_echo=$ac_try;;
27383 esac
27384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27385   (eval "$ac_link") 2>conftest.er1
27386   ac_status=$?
27387   grep -v '^ *+' conftest.er1 >conftest.err
27388   rm -f conftest.er1
27389   cat conftest.err >&5
27390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391   (exit $ac_status); } && {
27392          test -z "$ac_c_werror_flag" ||
27393          test ! -s conftest.err
27394        } && test -s conftest$ac_exeext &&
27395        $as_test_x conftest$ac_exeext; then
27396   eval "$as_ac_var=yes"
27397 else
27398   echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401         eval "$as_ac_var=no"
27402 fi
27403
27404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27405       conftest$ac_exeext conftest.$ac_ext
27406 fi
27407 ac_res=`eval echo '${'$as_ac_var'}'`
27408                { echo "$as_me:$LINENO: result: $ac_res" >&5
27409 echo "${ECHO_T}$ac_res" >&6; }
27410 if test `eval echo '${'$as_ac_var'}'` = yes; then
27411   cat >>confdefs.h <<_ACEOF
27412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27413 _ACEOF
27414
27415 fi
27416 done
27417
27418
27419 { echo "$as_me:$LINENO: checking for va_copy" >&5
27420 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27421 if test "${ba_cv_va_copy+set}" = set; then
27422   echo $ECHO_N "(cached) $ECHO_C" >&6
27423 else
27424   cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h.  */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h.  */
27430
27431 #include <stdarg.h>
27432 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27433 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27434
27435 int
27436 main ()
27437 {
27438 call_use_va_copy(1,2,3)
27439   ;
27440   return 0;
27441 }
27442 _ACEOF
27443 rm -f conftest.$ac_objext conftest$ac_exeext
27444 if { (ac_try="$ac_link"
27445 case "(($ac_try" in
27446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447   *) ac_try_echo=$ac_try;;
27448 esac
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450   (eval "$ac_link") 2>conftest.er1
27451   ac_status=$?
27452   grep -v '^ *+' conftest.er1 >conftest.err
27453   rm -f conftest.er1
27454   cat conftest.err >&5
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); } && {
27457          test -z "$ac_c_werror_flag" ||
27458          test ! -s conftest.err
27459        } && test -s conftest$ac_exeext &&
27460        $as_test_x conftest$ac_exeext; then
27461   ba_cv_va_copy=yes
27462 else
27463   echo "$as_me: failed program was:" >&5
27464 sed 's/^/| /' conftest.$ac_ext >&5
27465
27466         ba_cv_va_copy=no
27467 fi
27468
27469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27470       conftest$ac_exeext conftest.$ac_ext
27471 fi
27472 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27473 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27474 test $ba_cv_va_copy = yes &&
27475 cat >>confdefs.h <<\_ACEOF
27476 #define HAVE_VA_COPY 1
27477 _ACEOF
27478
27479
27480
27481
27482
27483
27484
27485 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27486 do
27487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27491   echo $ECHO_N "(cached) $ECHO_C" >&6
27492 else
27493   cat >conftest.$ac_ext <<_ACEOF
27494 /* confdefs.h.  */
27495 _ACEOF
27496 cat confdefs.h >>conftest.$ac_ext
27497 cat >>conftest.$ac_ext <<_ACEOF
27498 /* end confdefs.h.  */
27499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27500    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27501 #define $ac_func innocuous_$ac_func
27502
27503 /* System header to define __stub macros and hopefully few prototypes,
27504     which can conflict with char $ac_func (); below.
27505     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27506     <limits.h> exists even on freestanding compilers.  */
27507
27508 #ifdef __STDC__
27509 # include <limits.h>
27510 #else
27511 # include <assert.h>
27512 #endif
27513
27514 #undef $ac_func
27515
27516 /* Override any GCC internal prototype to avoid an error.
27517    Use char because int might match the return type of a GCC
27518    builtin and then its argument prototype would still apply.  */
27519 #ifdef __cplusplus
27520 extern "C"
27521 #endif
27522 char $ac_func ();
27523 /* The GNU C library defines this for functions which it implements
27524     to always fail with ENOSYS.  Some functions are actually named
27525     something starting with __ and the normal name is an alias.  */
27526 #if defined __stub_$ac_func || defined __stub___$ac_func
27527 choke me
27528 #endif
27529
27530 int
27531 main ()
27532 {
27533 return $ac_func ();
27534   ;
27535   return 0;
27536 }
27537 _ACEOF
27538 rm -f conftest.$ac_objext conftest$ac_exeext
27539 if { (ac_try="$ac_link"
27540 case "(($ac_try" in
27541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27542   *) ac_try_echo=$ac_try;;
27543 esac
27544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27545   (eval "$ac_link") 2>conftest.er1
27546   ac_status=$?
27547   grep -v '^ *+' conftest.er1 >conftest.err
27548   rm -f conftest.er1
27549   cat conftest.err >&5
27550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); } && {
27552          test -z "$ac_c_werror_flag" ||
27553          test ! -s conftest.err
27554        } && test -s conftest$ac_exeext &&
27555        $as_test_x conftest$ac_exeext; then
27556   eval "$as_ac_var=yes"
27557 else
27558   echo "$as_me: failed program was:" >&5
27559 sed 's/^/| /' conftest.$ac_ext >&5
27560
27561         eval "$as_ac_var=no"
27562 fi
27563
27564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27565       conftest$ac_exeext conftest.$ac_ext
27566 fi
27567 ac_res=`eval echo '${'$as_ac_var'}'`
27568                { echo "$as_me:$LINENO: result: $ac_res" >&5
27569 echo "${ECHO_T}$ac_res" >&6; }
27570 if test `eval echo '${'$as_ac_var'}'` = yes; then
27571   cat >>confdefs.h <<_ACEOF
27572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27573 _ACEOF
27574
27575 fi
27576 done
27577
27578
27579 # If resolver functions are not in libc check for -lnsl or -lresolv.
27580 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27581 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27582 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27583   echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585   cat >conftest.$ac_ext <<_ACEOF
27586 /* confdefs.h.  */
27587 _ACEOF
27588 cat confdefs.h >>conftest.$ac_ext
27589 cat >>conftest.$ac_ext <<_ACEOF
27590 /* end confdefs.h.  */
27591 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27593 #define gethostbyname_r innocuous_gethostbyname_r
27594
27595 /* System header to define __stub macros and hopefully few prototypes,
27596     which can conflict with char gethostbyname_r (); below.
27597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27598     <limits.h> exists even on freestanding compilers.  */
27599
27600 #ifdef __STDC__
27601 # include <limits.h>
27602 #else
27603 # include <assert.h>
27604 #endif
27605
27606 #undef gethostbyname_r
27607
27608 /* Override any GCC internal prototype to avoid an error.
27609    Use char because int might match the return type of a GCC
27610    builtin and then its argument prototype would still apply.  */
27611 #ifdef __cplusplus
27612 extern "C"
27613 #endif
27614 char gethostbyname_r ();
27615 /* The GNU C library defines this for functions which it implements
27616     to always fail with ENOSYS.  Some functions are actually named
27617     something starting with __ and the normal name is an alias.  */
27618 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27619 choke me
27620 #endif
27621
27622 int
27623 main ()
27624 {
27625 return gethostbyname_r ();
27626   ;
27627   return 0;
27628 }
27629 _ACEOF
27630 rm -f conftest.$ac_objext conftest$ac_exeext
27631 if { (ac_try="$ac_link"
27632 case "(($ac_try" in
27633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634   *) ac_try_echo=$ac_try;;
27635 esac
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637   (eval "$ac_link") 2>conftest.er1
27638   ac_status=$?
27639   grep -v '^ *+' conftest.er1 >conftest.err
27640   rm -f conftest.er1
27641   cat conftest.err >&5
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); } && {
27644          test -z "$ac_c_werror_flag" ||
27645          test ! -s conftest.err
27646        } && test -s conftest$ac_exeext &&
27647        $as_test_x conftest$ac_exeext; then
27648   ac_cv_func_gethostbyname_r=yes
27649 else
27650   echo "$as_me: failed program was:" >&5
27651 sed 's/^/| /' conftest.$ac_ext >&5
27652
27653         ac_cv_func_gethostbyname_r=no
27654 fi
27655
27656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27657       conftest$ac_exeext conftest.$ac_ext
27658 fi
27659 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27660 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27661 if test $ac_cv_func_gethostbyname_r = yes; then
27662   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27663 echo "${ECHO_T}using libc's resolver" >&6; }
27664 else
27665
27666 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27667 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27668 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27669   echo $ECHO_N "(cached) $ECHO_C" >&6
27670 else
27671   ac_check_lib_save_LIBS=$LIBS
27672 LIBS="-lnsl  $LIBS"
27673 cat >conftest.$ac_ext <<_ACEOF
27674 /* confdefs.h.  */
27675 _ACEOF
27676 cat confdefs.h >>conftest.$ac_ext
27677 cat >>conftest.$ac_ext <<_ACEOF
27678 /* end confdefs.h.  */
27679
27680 /* Override any GCC internal prototype to avoid an error.
27681    Use char because int might match the return type of a GCC
27682    builtin and then its argument prototype would still apply.  */
27683 #ifdef __cplusplus
27684 extern "C"
27685 #endif
27686 char gethostbyname_r ();
27687 int
27688 main ()
27689 {
27690 return gethostbyname_r ();
27691   ;
27692   return 0;
27693 }
27694 _ACEOF
27695 rm -f conftest.$ac_objext conftest$ac_exeext
27696 if { (ac_try="$ac_link"
27697 case "(($ac_try" in
27698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27699   *) ac_try_echo=$ac_try;;
27700 esac
27701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27702   (eval "$ac_link") 2>conftest.er1
27703   ac_status=$?
27704   grep -v '^ *+' conftest.er1 >conftest.err
27705   rm -f conftest.er1
27706   cat conftest.err >&5
27707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708   (exit $ac_status); } && {
27709          test -z "$ac_c_werror_flag" ||
27710          test ! -s conftest.err
27711        } && test -s conftest$ac_exeext &&
27712        $as_test_x conftest$ac_exeext; then
27713   ac_cv_lib_nsl_gethostbyname_r=yes
27714 else
27715   echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27717
27718         ac_cv_lib_nsl_gethostbyname_r=no
27719 fi
27720
27721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27722       conftest$ac_exeext conftest.$ac_ext
27723 LIBS=$ac_check_lib_save_LIBS
27724 fi
27725 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27726 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27727 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27728   cat >>confdefs.h <<_ACEOF
27729 #define HAVE_LIBNSL 1
27730 _ACEOF
27731
27732   LIBS="-lnsl $LIBS"
27733
27734 fi
27735
27736
27737 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27738 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27739 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27740   echo $ECHO_N "(cached) $ECHO_C" >&6
27741 else
27742   ac_check_lib_save_LIBS=$LIBS
27743 LIBS="-lresolv  $LIBS"
27744 cat >conftest.$ac_ext <<_ACEOF
27745 /* confdefs.h.  */
27746 _ACEOF
27747 cat confdefs.h >>conftest.$ac_ext
27748 cat >>conftest.$ac_ext <<_ACEOF
27749 /* end confdefs.h.  */
27750
27751 /* Override any GCC internal prototype to avoid an error.
27752    Use char because int might match the return type of a GCC
27753    builtin and then its argument prototype would still apply.  */
27754 #ifdef __cplusplus
27755 extern "C"
27756 #endif
27757 char gethostbyname_r ();
27758 int
27759 main ()
27760 {
27761 return gethostbyname_r ();
27762   ;
27763   return 0;
27764 }
27765 _ACEOF
27766 rm -f conftest.$ac_objext conftest$ac_exeext
27767 if { (ac_try="$ac_link"
27768 case "(($ac_try" in
27769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770   *) ac_try_echo=$ac_try;;
27771 esac
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773   (eval "$ac_link") 2>conftest.er1
27774   ac_status=$?
27775   grep -v '^ *+' conftest.er1 >conftest.err
27776   rm -f conftest.er1
27777   cat conftest.err >&5
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); } && {
27780          test -z "$ac_c_werror_flag" ||
27781          test ! -s conftest.err
27782        } && test -s conftest$ac_exeext &&
27783        $as_test_x conftest$ac_exeext; then
27784   ac_cv_lib_resolv_gethostbyname_r=yes
27785 else
27786   echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27788
27789         ac_cv_lib_resolv_gethostbyname_r=no
27790 fi
27791
27792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27793       conftest$ac_exeext conftest.$ac_ext
27794 LIBS=$ac_check_lib_save_LIBS
27795 fi
27796 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27797 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27798 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27799   cat >>confdefs.h <<_ACEOF
27800 #define HAVE_LIBRESOLV 1
27801 _ACEOF
27802
27803   LIBS="-lresolv $LIBS"
27804
27805 fi
27806
27807 fi
27808
27809
27810
27811
27812
27813 for ac_func in inet_pton
27814 do
27815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27816 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27818 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27819   echo $ECHO_N "(cached) $ECHO_C" >&6
27820 else
27821   cat >conftest.$ac_ext <<_ACEOF
27822 /* confdefs.h.  */
27823 _ACEOF
27824 cat confdefs.h >>conftest.$ac_ext
27825 cat >>conftest.$ac_ext <<_ACEOF
27826 /* end confdefs.h.  */
27827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27829 #define $ac_func innocuous_$ac_func
27830
27831 /* System header to define __stub macros and hopefully few prototypes,
27832     which can conflict with char $ac_func (); below.
27833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27834     <limits.h> exists even on freestanding compilers.  */
27835
27836 #ifdef __STDC__
27837 # include <limits.h>
27838 #else
27839 # include <assert.h>
27840 #endif
27841
27842 #undef $ac_func
27843
27844 /* Override any GCC internal prototype to avoid an error.
27845    Use char because int might match the return type of a GCC
27846    builtin and then its argument prototype would still apply.  */
27847 #ifdef __cplusplus
27848 extern "C"
27849 #endif
27850 char $ac_func ();
27851 /* The GNU C library defines this for functions which it implements
27852     to always fail with ENOSYS.  Some functions are actually named
27853     something starting with __ and the normal name is an alias.  */
27854 #if defined __stub_$ac_func || defined __stub___$ac_func
27855 choke me
27856 #endif
27857
27858 int
27859 main ()
27860 {
27861 return $ac_func ();
27862   ;
27863   return 0;
27864 }
27865 _ACEOF
27866 rm -f conftest.$ac_objext conftest$ac_exeext
27867 if { (ac_try="$ac_link"
27868 case "(($ac_try" in
27869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870   *) ac_try_echo=$ac_try;;
27871 esac
27872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27873   (eval "$ac_link") 2>conftest.er1
27874   ac_status=$?
27875   grep -v '^ *+' conftest.er1 >conftest.err
27876   rm -f conftest.er1
27877   cat conftest.err >&5
27878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27879   (exit $ac_status); } && {
27880          test -z "$ac_c_werror_flag" ||
27881          test ! -s conftest.err
27882        } && test -s conftest$ac_exeext &&
27883        $as_test_x conftest$ac_exeext; then
27884   eval "$as_ac_var=yes"
27885 else
27886   echo "$as_me: failed program was:" >&5
27887 sed 's/^/| /' conftest.$ac_ext >&5
27888
27889         eval "$as_ac_var=no"
27890 fi
27891
27892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27893       conftest$ac_exeext conftest.$ac_ext
27894 fi
27895 ac_res=`eval echo '${'$as_ac_var'}'`
27896                { echo "$as_me:$LINENO: result: $ac_res" >&5
27897 echo "${ECHO_T}$ac_res" >&6; }
27898 if test `eval echo '${'$as_ac_var'}'` = yes; then
27899   cat >>confdefs.h <<_ACEOF
27900 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27901 _ACEOF
27902  cat >>confdefs.h <<\_ACEOF
27903 #define HAVE_INET_PTON 1
27904 _ACEOF
27905
27906 fi
27907 done
27908
27909
27910 for ac_func in inet_ntop
27911 do
27912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27913 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27916   echo $ECHO_N "(cached) $ECHO_C" >&6
27917 else
27918   cat >conftest.$ac_ext <<_ACEOF
27919 /* confdefs.h.  */
27920 _ACEOF
27921 cat confdefs.h >>conftest.$ac_ext
27922 cat >>conftest.$ac_ext <<_ACEOF
27923 /* end confdefs.h.  */
27924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27926 #define $ac_func innocuous_$ac_func
27927
27928 /* System header to define __stub macros and hopefully few prototypes,
27929     which can conflict with char $ac_func (); below.
27930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27931     <limits.h> exists even on freestanding compilers.  */
27932
27933 #ifdef __STDC__
27934 # include <limits.h>
27935 #else
27936 # include <assert.h>
27937 #endif
27938
27939 #undef $ac_func
27940
27941 /* Override any GCC internal prototype to avoid an error.
27942    Use char because int might match the return type of a GCC
27943    builtin and then its argument prototype would still apply.  */
27944 #ifdef __cplusplus
27945 extern "C"
27946 #endif
27947 char $ac_func ();
27948 /* The GNU C library defines this for functions which it implements
27949     to always fail with ENOSYS.  Some functions are actually named
27950     something starting with __ and the normal name is an alias.  */
27951 #if defined __stub_$ac_func || defined __stub___$ac_func
27952 choke me
27953 #endif
27954
27955 int
27956 main ()
27957 {
27958 return $ac_func ();
27959   ;
27960   return 0;
27961 }
27962 _ACEOF
27963 rm -f conftest.$ac_objext conftest$ac_exeext
27964 if { (ac_try="$ac_link"
27965 case "(($ac_try" in
27966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967   *) ac_try_echo=$ac_try;;
27968 esac
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970   (eval "$ac_link") 2>conftest.er1
27971   ac_status=$?
27972   grep -v '^ *+' conftest.er1 >conftest.err
27973   rm -f conftest.er1
27974   cat conftest.err >&5
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); } && {
27977          test -z "$ac_c_werror_flag" ||
27978          test ! -s conftest.err
27979        } && test -s conftest$ac_exeext &&
27980        $as_test_x conftest$ac_exeext; then
27981   eval "$as_ac_var=yes"
27982 else
27983   echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27985
27986         eval "$as_ac_var=no"
27987 fi
27988
27989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27990       conftest$ac_exeext conftest.$ac_ext
27991 fi
27992 ac_res=`eval echo '${'$as_ac_var'}'`
27993                { echo "$as_me:$LINENO: result: $ac_res" >&5
27994 echo "${ECHO_T}$ac_res" >&6; }
27995 if test `eval echo '${'$as_ac_var'}'` = yes; then
27996   cat >>confdefs.h <<_ACEOF
27997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27998 _ACEOF
27999  cat >>confdefs.h <<\_ACEOF
28000 #define HAVE_INET_NTOP 1
28001 _ACEOF
28002
28003 fi
28004 done
28005
28006
28007 for ac_func in gethostbyname2
28008 do
28009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28013   echo $ECHO_N "(cached) $ECHO_C" >&6
28014 else
28015   cat >conftest.$ac_ext <<_ACEOF
28016 /* confdefs.h.  */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h.  */
28021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28022    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28023 #define $ac_func innocuous_$ac_func
28024
28025 /* System header to define __stub macros and hopefully few prototypes,
28026     which can conflict with char $ac_func (); below.
28027     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28028     <limits.h> exists even on freestanding compilers.  */
28029
28030 #ifdef __STDC__
28031 # include <limits.h>
28032 #else
28033 # include <assert.h>
28034 #endif
28035
28036 #undef $ac_func
28037
28038 /* Override any GCC internal prototype to avoid an error.
28039    Use char because int might match the return type of a GCC
28040    builtin and then its argument prototype would still apply.  */
28041 #ifdef __cplusplus
28042 extern "C"
28043 #endif
28044 char $ac_func ();
28045 /* The GNU C library defines this for functions which it implements
28046     to always fail with ENOSYS.  Some functions are actually named
28047     something starting with __ and the normal name is an alias.  */
28048 #if defined __stub_$ac_func || defined __stub___$ac_func
28049 choke me
28050 #endif
28051
28052 int
28053 main ()
28054 {
28055 return $ac_func ();
28056   ;
28057   return 0;
28058 }
28059 _ACEOF
28060 rm -f conftest.$ac_objext conftest$ac_exeext
28061 if { (ac_try="$ac_link"
28062 case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28067   (eval "$ac_link") 2>conftest.er1
28068   ac_status=$?
28069   grep -v '^ *+' conftest.er1 >conftest.err
28070   rm -f conftest.er1
28071   cat conftest.err >&5
28072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28073   (exit $ac_status); } && {
28074          test -z "$ac_c_werror_flag" ||
28075          test ! -s conftest.err
28076        } && test -s conftest$ac_exeext &&
28077        $as_test_x conftest$ac_exeext; then
28078   eval "$as_ac_var=yes"
28079 else
28080   echo "$as_me: failed program was:" >&5
28081 sed 's/^/| /' conftest.$ac_ext >&5
28082
28083         eval "$as_ac_var=no"
28084 fi
28085
28086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28087       conftest$ac_exeext conftest.$ac_ext
28088 fi
28089 ac_res=`eval echo '${'$as_ac_var'}'`
28090                { echo "$as_me:$LINENO: result: $ac_res" >&5
28091 echo "${ECHO_T}$ac_res" >&6; }
28092 if test `eval echo '${'$as_ac_var'}'` = yes; then
28093   cat >>confdefs.h <<_ACEOF
28094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28095 _ACEOF
28096  cat >>confdefs.h <<\_ACEOF
28097 #define HAVE_GETHOSTBYNAME2 1
28098 _ACEOF
28099
28100 fi
28101 done
28102
28103
28104 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28105 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28106 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28107   echo $ECHO_N "(cached) $ECHO_C" >&6
28108 else
28109   cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h.  */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h.  */
28115 #include <sys/socket.h>
28116 int
28117 main ()
28118 {
28119 struct sockaddr s; s.sa_len;
28120   ;
28121   return 0;
28122 }
28123 _ACEOF
28124 rm -f conftest.$ac_objext
28125 if { (ac_try="$ac_compile"
28126 case "(($ac_try" in
28127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128   *) ac_try_echo=$ac_try;;
28129 esac
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131   (eval "$ac_compile") 2>conftest.er1
28132   ac_status=$?
28133   grep -v '^ *+' conftest.er1 >conftest.err
28134   rm -f conftest.er1
28135   cat conftest.err >&5
28136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137   (exit $ac_status); } && {
28138          test -z "$ac_c_werror_flag" ||
28139          test ! -s conftest.err
28140        } && test -s conftest.$ac_objext; then
28141   ac_cv_struct_sockaddr_sa_len=yes
28142 else
28143   echo "$as_me: failed program was:" >&5
28144 sed 's/^/| /' conftest.$ac_ext >&5
28145
28146         ac_cv_struct_sockaddr_sa_len=no
28147 fi
28148
28149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28150 fi
28151 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28152 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28153
28154  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28155
28156 cat >>confdefs.h <<\_ACEOF
28157 #define HAVE_SA_LEN 1
28158 _ACEOF
28159
28160  fi
28161
28162
28163
28164
28165
28166 for ac_func in strftime
28167 do
28168 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28170 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28171 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28172   echo $ECHO_N "(cached) $ECHO_C" >&6
28173 else
28174   cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28180 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28181    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28182 #define $ac_func innocuous_$ac_func
28183
28184 /* System header to define __stub macros and hopefully few prototypes,
28185     which can conflict with char $ac_func (); below.
28186     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28187     <limits.h> exists even on freestanding compilers.  */
28188
28189 #ifdef __STDC__
28190 # include <limits.h>
28191 #else
28192 # include <assert.h>
28193 #endif
28194
28195 #undef $ac_func
28196
28197 /* Override any GCC internal prototype to avoid an error.
28198    Use char because int might match the return type of a GCC
28199    builtin and then its argument prototype would still apply.  */
28200 #ifdef __cplusplus
28201 extern "C"
28202 #endif
28203 char $ac_func ();
28204 /* The GNU C library defines this for functions which it implements
28205     to always fail with ENOSYS.  Some functions are actually named
28206     something starting with __ and the normal name is an alias.  */
28207 #if defined __stub_$ac_func || defined __stub___$ac_func
28208 choke me
28209 #endif
28210
28211 int
28212 main ()
28213 {
28214 return $ac_func ();
28215   ;
28216   return 0;
28217 }
28218 _ACEOF
28219 rm -f conftest.$ac_objext conftest$ac_exeext
28220 if { (ac_try="$ac_link"
28221 case "(($ac_try" in
28222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28223   *) ac_try_echo=$ac_try;;
28224 esac
28225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28226   (eval "$ac_link") 2>conftest.er1
28227   ac_status=$?
28228   grep -v '^ *+' conftest.er1 >conftest.err
28229   rm -f conftest.er1
28230   cat conftest.err >&5
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); } && {
28233          test -z "$ac_c_werror_flag" ||
28234          test ! -s conftest.err
28235        } && test -s conftest$ac_exeext &&
28236        $as_test_x conftest$ac_exeext; then
28237   eval "$as_ac_var=yes"
28238 else
28239   echo "$as_me: failed program was:" >&5
28240 sed 's/^/| /' conftest.$ac_ext >&5
28241
28242         eval "$as_ac_var=no"
28243 fi
28244
28245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28246       conftest$ac_exeext conftest.$ac_ext
28247 fi
28248 ac_res=`eval echo '${'$as_ac_var'}'`
28249                { echo "$as_me:$LINENO: result: $ac_res" >&5
28250 echo "${ECHO_T}$ac_res" >&6; }
28251 if test `eval echo '${'$as_ac_var'}'` = yes; then
28252   cat >>confdefs.h <<_ACEOF
28253 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28254 _ACEOF
28255
28256 else
28257   # strftime is in -lintl on SCO UNIX.
28258 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28259 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28260 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28261   echo $ECHO_N "(cached) $ECHO_C" >&6
28262 else
28263   ac_check_lib_save_LIBS=$LIBS
28264 LIBS="-lintl  $LIBS"
28265 cat >conftest.$ac_ext <<_ACEOF
28266 /* confdefs.h.  */
28267 _ACEOF
28268 cat confdefs.h >>conftest.$ac_ext
28269 cat >>conftest.$ac_ext <<_ACEOF
28270 /* end confdefs.h.  */
28271
28272 /* Override any GCC internal prototype to avoid an error.
28273    Use char because int might match the return type of a GCC
28274    builtin and then its argument prototype would still apply.  */
28275 #ifdef __cplusplus
28276 extern "C"
28277 #endif
28278 char strftime ();
28279 int
28280 main ()
28281 {
28282 return strftime ();
28283   ;
28284   return 0;
28285 }
28286 _ACEOF
28287 rm -f conftest.$ac_objext conftest$ac_exeext
28288 if { (ac_try="$ac_link"
28289 case "(($ac_try" in
28290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291   *) ac_try_echo=$ac_try;;
28292 esac
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294   (eval "$ac_link") 2>conftest.er1
28295   ac_status=$?
28296   grep -v '^ *+' conftest.er1 >conftest.err
28297   rm -f conftest.er1
28298   cat conftest.err >&5
28299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28300   (exit $ac_status); } && {
28301          test -z "$ac_c_werror_flag" ||
28302          test ! -s conftest.err
28303        } && test -s conftest$ac_exeext &&
28304        $as_test_x conftest$ac_exeext; then
28305   ac_cv_lib_intl_strftime=yes
28306 else
28307   echo "$as_me: failed program was:" >&5
28308 sed 's/^/| /' conftest.$ac_ext >&5
28309
28310         ac_cv_lib_intl_strftime=no
28311 fi
28312
28313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28314       conftest$ac_exeext conftest.$ac_ext
28315 LIBS=$ac_check_lib_save_LIBS
28316 fi
28317 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28318 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28319 if test $ac_cv_lib_intl_strftime = yes; then
28320   cat >>confdefs.h <<\_ACEOF
28321 #define HAVE_STRFTIME 1
28322 _ACEOF
28323
28324 LIBS="-lintl $LIBS"
28325 fi
28326
28327 fi
28328 done
28329
28330
28331 for ac_func in vprintf
28332 do
28333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28337   echo $ECHO_N "(cached) $ECHO_C" >&6
28338 else
28339   cat >conftest.$ac_ext <<_ACEOF
28340 /* confdefs.h.  */
28341 _ACEOF
28342 cat confdefs.h >>conftest.$ac_ext
28343 cat >>conftest.$ac_ext <<_ACEOF
28344 /* end confdefs.h.  */
28345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28347 #define $ac_func innocuous_$ac_func
28348
28349 /* System header to define __stub macros and hopefully few prototypes,
28350     which can conflict with char $ac_func (); below.
28351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28352     <limits.h> exists even on freestanding compilers.  */
28353
28354 #ifdef __STDC__
28355 # include <limits.h>
28356 #else
28357 # include <assert.h>
28358 #endif
28359
28360 #undef $ac_func
28361
28362 /* Override any GCC internal prototype to avoid an error.
28363    Use char because int might match the return type of a GCC
28364    builtin and then its argument prototype would still apply.  */
28365 #ifdef __cplusplus
28366 extern "C"
28367 #endif
28368 char $ac_func ();
28369 /* The GNU C library defines this for functions which it implements
28370     to always fail with ENOSYS.  Some functions are actually named
28371     something starting with __ and the normal name is an alias.  */
28372 #if defined __stub_$ac_func || defined __stub___$ac_func
28373 choke me
28374 #endif
28375
28376 int
28377 main ()
28378 {
28379 return $ac_func ();
28380   ;
28381   return 0;
28382 }
28383 _ACEOF
28384 rm -f conftest.$ac_objext conftest$ac_exeext
28385 if { (ac_try="$ac_link"
28386 case "(($ac_try" in
28387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28388   *) ac_try_echo=$ac_try;;
28389 esac
28390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28391   (eval "$ac_link") 2>conftest.er1
28392   ac_status=$?
28393   grep -v '^ *+' conftest.er1 >conftest.err
28394   rm -f conftest.er1
28395   cat conftest.err >&5
28396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28397   (exit $ac_status); } && {
28398          test -z "$ac_c_werror_flag" ||
28399          test ! -s conftest.err
28400        } && test -s conftest$ac_exeext &&
28401        $as_test_x conftest$ac_exeext; then
28402   eval "$as_ac_var=yes"
28403 else
28404   echo "$as_me: failed program was:" >&5
28405 sed 's/^/| /' conftest.$ac_ext >&5
28406
28407         eval "$as_ac_var=no"
28408 fi
28409
28410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28411       conftest$ac_exeext conftest.$ac_ext
28412 fi
28413 ac_res=`eval echo '${'$as_ac_var'}'`
28414                { echo "$as_me:$LINENO: result: $ac_res" >&5
28415 echo "${ECHO_T}$ac_res" >&6; }
28416 if test `eval echo '${'$as_ac_var'}'` = yes; then
28417   cat >>confdefs.h <<_ACEOF
28418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28419 _ACEOF
28420
28421 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28422 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28423 if test "${ac_cv_func__doprnt+set}" = set; then
28424   echo $ECHO_N "(cached) $ECHO_C" >&6
28425 else
28426   cat >conftest.$ac_ext <<_ACEOF
28427 /* confdefs.h.  */
28428 _ACEOF
28429 cat confdefs.h >>conftest.$ac_ext
28430 cat >>conftest.$ac_ext <<_ACEOF
28431 /* end confdefs.h.  */
28432 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28433    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28434 #define _doprnt innocuous__doprnt
28435
28436 /* System header to define __stub macros and hopefully few prototypes,
28437     which can conflict with char _doprnt (); below.
28438     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28439     <limits.h> exists even on freestanding compilers.  */
28440
28441 #ifdef __STDC__
28442 # include <limits.h>
28443 #else
28444 # include <assert.h>
28445 #endif
28446
28447 #undef _doprnt
28448
28449 /* Override any GCC internal prototype to avoid an error.
28450    Use char because int might match the return type of a GCC
28451    builtin and then its argument prototype would still apply.  */
28452 #ifdef __cplusplus
28453 extern "C"
28454 #endif
28455 char _doprnt ();
28456 /* The GNU C library defines this for functions which it implements
28457     to always fail with ENOSYS.  Some functions are actually named
28458     something starting with __ and the normal name is an alias.  */
28459 #if defined __stub__doprnt || defined __stub____doprnt
28460 choke me
28461 #endif
28462
28463 int
28464 main ()
28465 {
28466 return _doprnt ();
28467   ;
28468   return 0;
28469 }
28470 _ACEOF
28471 rm -f conftest.$ac_objext conftest$ac_exeext
28472 if { (ac_try="$ac_link"
28473 case "(($ac_try" in
28474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28475   *) ac_try_echo=$ac_try;;
28476 esac
28477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28478   (eval "$ac_link") 2>conftest.er1
28479   ac_status=$?
28480   grep -v '^ *+' conftest.er1 >conftest.err
28481   rm -f conftest.er1
28482   cat conftest.err >&5
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); } && {
28485          test -z "$ac_c_werror_flag" ||
28486          test ! -s conftest.err
28487        } && test -s conftest$ac_exeext &&
28488        $as_test_x conftest$ac_exeext; then
28489   ac_cv_func__doprnt=yes
28490 else
28491   echo "$as_me: failed program was:" >&5
28492 sed 's/^/| /' conftest.$ac_ext >&5
28493
28494         ac_cv_func__doprnt=no
28495 fi
28496
28497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28498       conftest$ac_exeext conftest.$ac_ext
28499 fi
28500 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28501 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28502 if test $ac_cv_func__doprnt = yes; then
28503
28504 cat >>confdefs.h <<\_ACEOF
28505 #define HAVE_DOPRNT 1
28506 _ACEOF
28507
28508 fi
28509
28510 fi
28511 done
28512
28513
28514 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28515 # for constant arguments.  Useless!
28516 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28517 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28518 if test "${ac_cv_working_alloca_h+set}" = set; then
28519   echo $ECHO_N "(cached) $ECHO_C" >&6
28520 else
28521   cat >conftest.$ac_ext <<_ACEOF
28522 /* confdefs.h.  */
28523 _ACEOF
28524 cat confdefs.h >>conftest.$ac_ext
28525 cat >>conftest.$ac_ext <<_ACEOF
28526 /* end confdefs.h.  */
28527 #include <alloca.h>
28528 int
28529 main ()
28530 {
28531 char *p = (char *) alloca (2 * sizeof (int));
28532                           if (p) return 0;
28533   ;
28534   return 0;
28535 }
28536 _ACEOF
28537 rm -f conftest.$ac_objext conftest$ac_exeext
28538 if { (ac_try="$ac_link"
28539 case "(($ac_try" in
28540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28541   *) ac_try_echo=$ac_try;;
28542 esac
28543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28544   (eval "$ac_link") 2>conftest.er1
28545   ac_status=$?
28546   grep -v '^ *+' conftest.er1 >conftest.err
28547   rm -f conftest.er1
28548   cat conftest.err >&5
28549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550   (exit $ac_status); } && {
28551          test -z "$ac_c_werror_flag" ||
28552          test ! -s conftest.err
28553        } && test -s conftest$ac_exeext &&
28554        $as_test_x conftest$ac_exeext; then
28555   ac_cv_working_alloca_h=yes
28556 else
28557   echo "$as_me: failed program was:" >&5
28558 sed 's/^/| /' conftest.$ac_ext >&5
28559
28560         ac_cv_working_alloca_h=no
28561 fi
28562
28563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28564       conftest$ac_exeext conftest.$ac_ext
28565 fi
28566 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28567 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28568 if test $ac_cv_working_alloca_h = yes; then
28569
28570 cat >>confdefs.h <<\_ACEOF
28571 #define HAVE_ALLOCA_H 1
28572 _ACEOF
28573
28574 fi
28575
28576 { echo "$as_me:$LINENO: checking for alloca" >&5
28577 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28578 if test "${ac_cv_func_alloca_works+set}" = set; then
28579   echo $ECHO_N "(cached) $ECHO_C" >&6
28580 else
28581   cat >conftest.$ac_ext <<_ACEOF
28582 /* confdefs.h.  */
28583 _ACEOF
28584 cat confdefs.h >>conftest.$ac_ext
28585 cat >>conftest.$ac_ext <<_ACEOF
28586 /* end confdefs.h.  */
28587 #ifdef __GNUC__
28588 # define alloca __builtin_alloca
28589 #else
28590 # ifdef _MSC_VER
28591 #  include <malloc.h>
28592 #  define alloca _alloca
28593 # else
28594 #  ifdef HAVE_ALLOCA_H
28595 #   include <alloca.h>
28596 #  else
28597 #   ifdef _AIX
28598  #pragma alloca
28599 #   else
28600 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28601 char *alloca ();
28602 #    endif
28603 #   endif
28604 #  endif
28605 # endif
28606 #endif
28607
28608 int
28609 main ()
28610 {
28611 char *p = (char *) alloca (1);
28612                                     if (p) return 0;
28613   ;
28614   return 0;
28615 }
28616 _ACEOF
28617 rm -f conftest.$ac_objext conftest$ac_exeext
28618 if { (ac_try="$ac_link"
28619 case "(($ac_try" in
28620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28621   *) ac_try_echo=$ac_try;;
28622 esac
28623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28624   (eval "$ac_link") 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } && {
28631          test -z "$ac_c_werror_flag" ||
28632          test ! -s conftest.err
28633        } && test -s conftest$ac_exeext &&
28634        $as_test_x conftest$ac_exeext; then
28635   ac_cv_func_alloca_works=yes
28636 else
28637   echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28639
28640         ac_cv_func_alloca_works=no
28641 fi
28642
28643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28644       conftest$ac_exeext conftest.$ac_ext
28645 fi
28646 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28647 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28648
28649 if test $ac_cv_func_alloca_works = yes; then
28650
28651 cat >>confdefs.h <<\_ACEOF
28652 #define HAVE_ALLOCA 1
28653 _ACEOF
28654
28655 else
28656   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28657 # that cause trouble.  Some versions do not even contain alloca or
28658 # contain a buggy version.  If you still want to use their alloca,
28659 # use ar to extract alloca.o from them instead of compiling alloca.c.
28660
28661 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28662
28663 cat >>confdefs.h <<\_ACEOF
28664 #define C_ALLOCA 1
28665 _ACEOF
28666
28667
28668 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28669 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28670 if test "${ac_cv_os_cray+set}" = set; then
28671   echo $ECHO_N "(cached) $ECHO_C" >&6
28672 else
28673   cat >conftest.$ac_ext <<_ACEOF
28674 /* confdefs.h.  */
28675 _ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h.  */
28679 #if defined CRAY && ! defined CRAY2
28680 webecray
28681 #else
28682 wenotbecray
28683 #endif
28684
28685 _ACEOF
28686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28687   $EGREP "webecray" >/dev/null 2>&1; then
28688   ac_cv_os_cray=yes
28689 else
28690   ac_cv_os_cray=no
28691 fi
28692 rm -f conftest*
28693
28694 fi
28695 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28696 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28697 if test $ac_cv_os_cray = yes; then
28698   for ac_func in _getb67 GETB67 getb67; do
28699     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28700 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28703   echo $ECHO_N "(cached) $ECHO_C" >&6
28704 else
28705   cat >conftest.$ac_ext <<_ACEOF
28706 /* confdefs.h.  */
28707 _ACEOF
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h.  */
28711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28713 #define $ac_func innocuous_$ac_func
28714
28715 /* System header to define __stub macros and hopefully few prototypes,
28716     which can conflict with char $ac_func (); below.
28717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28718     <limits.h> exists even on freestanding compilers.  */
28719
28720 #ifdef __STDC__
28721 # include <limits.h>
28722 #else
28723 # include <assert.h>
28724 #endif
28725
28726 #undef $ac_func
28727
28728 /* Override any GCC internal prototype to avoid an error.
28729    Use char because int might match the return type of a GCC
28730    builtin and then its argument prototype would still apply.  */
28731 #ifdef __cplusplus
28732 extern "C"
28733 #endif
28734 char $ac_func ();
28735 /* The GNU C library defines this for functions which it implements
28736     to always fail with ENOSYS.  Some functions are actually named
28737     something starting with __ and the normal name is an alias.  */
28738 #if defined __stub_$ac_func || defined __stub___$ac_func
28739 choke me
28740 #endif
28741
28742 int
28743 main ()
28744 {
28745 return $ac_func ();
28746   ;
28747   return 0;
28748 }
28749 _ACEOF
28750 rm -f conftest.$ac_objext conftest$ac_exeext
28751 if { (ac_try="$ac_link"
28752 case "(($ac_try" in
28753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754   *) ac_try_echo=$ac_try;;
28755 esac
28756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28757   (eval "$ac_link") 2>conftest.er1
28758   ac_status=$?
28759   grep -v '^ *+' conftest.er1 >conftest.err
28760   rm -f conftest.er1
28761   cat conftest.err >&5
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); } && {
28764          test -z "$ac_c_werror_flag" ||
28765          test ! -s conftest.err
28766        } && test -s conftest$ac_exeext &&
28767        $as_test_x conftest$ac_exeext; then
28768   eval "$as_ac_var=yes"
28769 else
28770   echo "$as_me: failed program was:" >&5
28771 sed 's/^/| /' conftest.$ac_ext >&5
28772
28773         eval "$as_ac_var=no"
28774 fi
28775
28776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28777       conftest$ac_exeext conftest.$ac_ext
28778 fi
28779 ac_res=`eval echo '${'$as_ac_var'}'`
28780                { echo "$as_me:$LINENO: result: $ac_res" >&5
28781 echo "${ECHO_T}$ac_res" >&6; }
28782 if test `eval echo '${'$as_ac_var'}'` = yes; then
28783
28784 cat >>confdefs.h <<_ACEOF
28785 #define CRAY_STACKSEG_END $ac_func
28786 _ACEOF
28787
28788     break
28789 fi
28790
28791   done
28792 fi
28793
28794 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28795 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28796 if test "${ac_cv_c_stack_direction+set}" = set; then
28797   echo $ECHO_N "(cached) $ECHO_C" >&6
28798 else
28799   if test "$cross_compiling" = yes; then
28800   ac_cv_c_stack_direction=0
28801 else
28802   cat >conftest.$ac_ext <<_ACEOF
28803 /* confdefs.h.  */
28804 _ACEOF
28805 cat confdefs.h >>conftest.$ac_ext
28806 cat >>conftest.$ac_ext <<_ACEOF
28807 /* end confdefs.h.  */
28808 $ac_includes_default
28809 int
28810 find_stack_direction ()
28811 {
28812   static char *addr = 0;
28813   auto char dummy;
28814   if (addr == 0)
28815     {
28816       addr = &dummy;
28817       return find_stack_direction ();
28818     }
28819   else
28820     return (&dummy > addr) ? 1 : -1;
28821 }
28822
28823 int
28824 main ()
28825 {
28826   return find_stack_direction () < 0;
28827 }
28828 _ACEOF
28829 rm -f conftest$ac_exeext
28830 if { (ac_try="$ac_link"
28831 case "(($ac_try" in
28832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28833   *) ac_try_echo=$ac_try;;
28834 esac
28835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28836   (eval "$ac_link") 2>&5
28837   ac_status=$?
28838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28840   { (case "(($ac_try" in
28841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28842   *) ac_try_echo=$ac_try;;
28843 esac
28844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28845   (eval "$ac_try") 2>&5
28846   ac_status=$?
28847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28848   (exit $ac_status); }; }; then
28849   ac_cv_c_stack_direction=1
28850 else
28851   echo "$as_me: program exited with status $ac_status" >&5
28852 echo "$as_me: failed program was:" >&5
28853 sed 's/^/| /' conftest.$ac_ext >&5
28854
28855 ( exit $ac_status )
28856 ac_cv_c_stack_direction=-1
28857 fi
28858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28859 fi
28860
28861
28862 fi
28863 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28864 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28865
28866 cat >>confdefs.h <<_ACEOF
28867 #define STACK_DIRECTION $ac_cv_c_stack_direction
28868 _ACEOF
28869
28870
28871 fi
28872
28873 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28874 # -lseq on Dynix/PTX, -lgen on Unixware.
28875 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28876 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28877 if test "${ac_cv_search_getmntent+set}" = set; then
28878   echo $ECHO_N "(cached) $ECHO_C" >&6
28879 else
28880   ac_func_search_save_LIBS=$LIBS
28881 cat >conftest.$ac_ext <<_ACEOF
28882 /* confdefs.h.  */
28883 _ACEOF
28884 cat confdefs.h >>conftest.$ac_ext
28885 cat >>conftest.$ac_ext <<_ACEOF
28886 /* end confdefs.h.  */
28887
28888 /* Override any GCC internal prototype to avoid an error.
28889    Use char because int might match the return type of a GCC
28890    builtin and then its argument prototype would still apply.  */
28891 #ifdef __cplusplus
28892 extern "C"
28893 #endif
28894 char getmntent ();
28895 int
28896 main ()
28897 {
28898 return getmntent ();
28899   ;
28900   return 0;
28901 }
28902 _ACEOF
28903 for ac_lib in '' sun seq gen; do
28904   if test -z "$ac_lib"; then
28905     ac_res="none required"
28906   else
28907     ac_res=-l$ac_lib
28908     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28909   fi
28910   rm -f conftest.$ac_objext conftest$ac_exeext
28911 if { (ac_try="$ac_link"
28912 case "(($ac_try" in
28913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914   *) ac_try_echo=$ac_try;;
28915 esac
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917   (eval "$ac_link") 2>conftest.er1
28918   ac_status=$?
28919   grep -v '^ *+' conftest.er1 >conftest.err
28920   rm -f conftest.er1
28921   cat conftest.err >&5
28922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923   (exit $ac_status); } && {
28924          test -z "$ac_c_werror_flag" ||
28925          test ! -s conftest.err
28926        } && test -s conftest$ac_exeext &&
28927        $as_test_x conftest$ac_exeext; then
28928   ac_cv_search_getmntent=$ac_res
28929 else
28930   echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28932
28933
28934 fi
28935
28936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28937       conftest$ac_exeext
28938   if test "${ac_cv_search_getmntent+set}" = set; then
28939   break
28940 fi
28941 done
28942 if test "${ac_cv_search_getmntent+set}" = set; then
28943   :
28944 else
28945   ac_cv_search_getmntent=no
28946 fi
28947 rm conftest.$ac_ext
28948 LIBS=$ac_func_search_save_LIBS
28949 fi
28950 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28951 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28952 ac_res=$ac_cv_search_getmntent
28953 if test "$ac_res" != no; then
28954   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28955   ac_cv_func_getmntent=yes
28956
28957 cat >>confdefs.h <<\_ACEOF
28958 #define HAVE_GETMNTENT 1
28959 _ACEOF
28960
28961 else
28962   ac_cv_func_getmntent=no
28963 fi
28964
28965
28966 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28967 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28968 if test "${ac_cv_func_closedir_void+set}" = set; then
28969   echo $ECHO_N "(cached) $ECHO_C" >&6
28970 else
28971   if test "$cross_compiling" = yes; then
28972   ac_cv_func_closedir_void=yes
28973 else
28974   cat >conftest.$ac_ext <<_ACEOF
28975 /* confdefs.h.  */
28976 _ACEOF
28977 cat confdefs.h >>conftest.$ac_ext
28978 cat >>conftest.$ac_ext <<_ACEOF
28979 /* end confdefs.h.  */
28980 $ac_includes_default
28981 #include <$ac_header_dirent>
28982 #ifndef __cplusplus
28983 int closedir ();
28984 #endif
28985
28986 int
28987 main ()
28988 {
28989 return closedir (opendir (".")) != 0;
28990   ;
28991   return 0;
28992 }
28993 _ACEOF
28994 rm -f conftest$ac_exeext
28995 if { (ac_try="$ac_link"
28996 case "(($ac_try" in
28997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28998   *) ac_try_echo=$ac_try;;
28999 esac
29000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29001   (eval "$ac_link") 2>&5
29002   ac_status=$?
29003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29004   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29005   { (case "(($ac_try" in
29006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29007   *) ac_try_echo=$ac_try;;
29008 esac
29009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29010   (eval "$ac_try") 2>&5
29011   ac_status=$?
29012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29013   (exit $ac_status); }; }; then
29014   ac_cv_func_closedir_void=no
29015 else
29016   echo "$as_me: program exited with status $ac_status" >&5
29017 echo "$as_me: failed program was:" >&5
29018 sed 's/^/| /' conftest.$ac_ext >&5
29019
29020 ( exit $ac_status )
29021 ac_cv_func_closedir_void=yes
29022 fi
29023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29024 fi
29025
29026
29027 fi
29028 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29029 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29030 if test $ac_cv_func_closedir_void = yes; then
29031
29032 cat >>confdefs.h <<\_ACEOF
29033 #define CLOSEDIR_VOID 1
29034 _ACEOF
29035
29036 fi
29037
29038 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29039 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29040 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29041   echo $ECHO_N "(cached) $ECHO_C" >&6
29042 else
29043   if test "$cross_compiling" = yes; then
29044   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29045 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29046    { (exit 1); exit 1; }; }
29047 else
29048   cat >conftest.$ac_ext <<_ACEOF
29049 /* confdefs.h.  */
29050 _ACEOF
29051 cat confdefs.h >>conftest.$ac_ext
29052 cat >>conftest.$ac_ext <<_ACEOF
29053 /* end confdefs.h.  */
29054 $ac_includes_default
29055 int
29056 main ()
29057 {
29058 /* If this system has a BSD-style setpgrp which takes arguments,
29059   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29060   exit successfully. */
29061   return setpgrp (1,1) != -1;
29062   ;
29063   return 0;
29064 }
29065 _ACEOF
29066 rm -f conftest$ac_exeext
29067 if { (ac_try="$ac_link"
29068 case "(($ac_try" in
29069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29070   *) ac_try_echo=$ac_try;;
29071 esac
29072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29073   (eval "$ac_link") 2>&5
29074   ac_status=$?
29075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29076   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29077   { (case "(($ac_try" in
29078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29079   *) ac_try_echo=$ac_try;;
29080 esac
29081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29082   (eval "$ac_try") 2>&5
29083   ac_status=$?
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); }; }; then
29086   ac_cv_func_setpgrp_void=no
29087 else
29088   echo "$as_me: program exited with status $ac_status" >&5
29089 echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29091
29092 ( exit $ac_status )
29093 ac_cv_func_setpgrp_void=yes
29094 fi
29095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29096 fi
29097
29098
29099 fi
29100 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29101 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29102 if test $ac_cv_func_setpgrp_void = yes; then
29103
29104 cat >>confdefs.h <<\_ACEOF
29105 #define SETPGRP_VOID 1
29106 _ACEOF
29107
29108 fi
29109                       # AC_FUNC_FNMATCH    dnl use local version
29110
29111
29112 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29113 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29114 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29115   echo $ECHO_N "(cached) $ECHO_C" >&6
29116 else
29117   ac_check_lib_save_LIBS=$LIBS
29118 LIBS="-lintl  $LIBS"
29119 cat >conftest.$ac_ext <<_ACEOF
29120 /* confdefs.h.  */
29121 _ACEOF
29122 cat confdefs.h >>conftest.$ac_ext
29123 cat >>conftest.$ac_ext <<_ACEOF
29124 /* end confdefs.h.  */
29125
29126 /* Override any GCC internal prototype to avoid an error.
29127    Use char because int might match the return type of a GCC
29128    builtin and then its argument prototype would still apply.  */
29129 #ifdef __cplusplus
29130 extern "C"
29131 #endif
29132 char gettext ();
29133 int
29134 main ()
29135 {
29136 return gettext ();
29137   ;
29138   return 0;
29139 }
29140 _ACEOF
29141 rm -f conftest.$ac_objext conftest$ac_exeext
29142 if { (ac_try="$ac_link"
29143 case "(($ac_try" in
29144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29145   *) ac_try_echo=$ac_try;;
29146 esac
29147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29148   (eval "$ac_link") 2>conftest.er1
29149   ac_status=$?
29150   grep -v '^ *+' conftest.er1 >conftest.err
29151   rm -f conftest.er1
29152   cat conftest.err >&5
29153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154   (exit $ac_status); } && {
29155          test -z "$ac_c_werror_flag" ||
29156          test ! -s conftest.err
29157        } && test -s conftest$ac_exeext &&
29158        $as_test_x conftest$ac_exeext; then
29159   ac_cv_lib_intl_gettext=yes
29160 else
29161   echo "$as_me: failed program was:" >&5
29162 sed 's/^/| /' conftest.$ac_ext >&5
29163
29164         ac_cv_lib_intl_gettext=no
29165 fi
29166
29167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29168       conftest$ac_exeext conftest.$ac_ext
29169 LIBS=$ac_check_lib_save_LIBS
29170 fi
29171 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29172 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29173 if test $ac_cv_lib_intl_gettext = yes; then
29174   LIBS="$LIBS -lintl"
29175 fi
29176
29177
29178
29179
29180 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29181 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29182 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29183   echo $ECHO_N "(cached) $ECHO_C" >&6
29184 else
29185   ac_check_lib_save_LIBS=$LIBS
29186 LIBS="-lsun  $LIBS"
29187 cat >conftest.$ac_ext <<_ACEOF
29188 /* confdefs.h.  */
29189 _ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h.  */
29193
29194 /* Override any GCC internal prototype to avoid an error.
29195    Use char because int might match the return type of a GCC
29196    builtin and then its argument prototype would still apply.  */
29197 #ifdef __cplusplus
29198 extern "C"
29199 #endif
29200 char getpwnam ();
29201 int
29202 main ()
29203 {
29204 return getpwnam ();
29205   ;
29206   return 0;
29207 }
29208 _ACEOF
29209 rm -f conftest.$ac_objext conftest$ac_exeext
29210 if { (ac_try="$ac_link"
29211 case "(($ac_try" in
29212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29213   *) ac_try_echo=$ac_try;;
29214 esac
29215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29216   (eval "$ac_link") 2>conftest.er1
29217   ac_status=$?
29218   grep -v '^ *+' conftest.er1 >conftest.err
29219   rm -f conftest.er1
29220   cat conftest.err >&5
29221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222   (exit $ac_status); } && {
29223          test -z "$ac_c_werror_flag" ||
29224          test ! -s conftest.err
29225        } && test -s conftest$ac_exeext &&
29226        $as_test_x conftest$ac_exeext; then
29227   ac_cv_lib_sun_getpwnam=yes
29228 else
29229   echo "$as_me: failed program was:" >&5
29230 sed 's/^/| /' conftest.$ac_ext >&5
29231
29232         ac_cv_lib_sun_getpwnam=no
29233 fi
29234
29235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29236       conftest$ac_exeext conftest.$ac_ext
29237 LIBS=$ac_check_lib_save_LIBS
29238 fi
29239 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29240 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29241 if test $ac_cv_lib_sun_getpwnam = yes; then
29242   cat >>confdefs.h <<_ACEOF
29243 #define HAVE_LIBSUN 1
29244 _ACEOF
29245
29246   LIBS="-lsun $LIBS"
29247
29248 fi
29249
29250
29251
29252 for ac_header in zlib.h
29253 do
29254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29256   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29259   echo $ECHO_N "(cached) $ECHO_C" >&6
29260 fi
29261 ac_res=`eval echo '${'$as_ac_Header'}'`
29262                { echo "$as_me:$LINENO: result: $ac_res" >&5
29263 echo "${ECHO_T}$ac_res" >&6; }
29264 else
29265   # Is the header compilable?
29266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29268 cat >conftest.$ac_ext <<_ACEOF
29269 /* confdefs.h.  */
29270 _ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h.  */
29274 $ac_includes_default
29275 #include <$ac_header>
29276 _ACEOF
29277 rm -f conftest.$ac_objext
29278 if { (ac_try="$ac_compile"
29279 case "(($ac_try" in
29280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29281   *) ac_try_echo=$ac_try;;
29282 esac
29283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29284   (eval "$ac_compile") 2>conftest.er1
29285   ac_status=$?
29286   grep -v '^ *+' conftest.er1 >conftest.err
29287   rm -f conftest.er1
29288   cat conftest.err >&5
29289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290   (exit $ac_status); } && {
29291          test -z "$ac_c_werror_flag" ||
29292          test ! -s conftest.err
29293        } && test -s conftest.$ac_objext; then
29294   ac_header_compiler=yes
29295 else
29296   echo "$as_me: failed program was:" >&5
29297 sed 's/^/| /' conftest.$ac_ext >&5
29298
29299         ac_header_compiler=no
29300 fi
29301
29302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29304 echo "${ECHO_T}$ac_header_compiler" >&6; }
29305
29306 # Is the header present?
29307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29309 cat >conftest.$ac_ext <<_ACEOF
29310 /* confdefs.h.  */
29311 _ACEOF
29312 cat confdefs.h >>conftest.$ac_ext
29313 cat >>conftest.$ac_ext <<_ACEOF
29314 /* end confdefs.h.  */
29315 #include <$ac_header>
29316 _ACEOF
29317 if { (ac_try="$ac_cpp conftest.$ac_ext"
29318 case "(($ac_try" in
29319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29320   *) ac_try_echo=$ac_try;;
29321 esac
29322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29323   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29324   ac_status=$?
29325   grep -v '^ *+' conftest.er1 >conftest.err
29326   rm -f conftest.er1
29327   cat conftest.err >&5
29328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329   (exit $ac_status); } >/dev/null && {
29330          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29331          test ! -s conftest.err
29332        }; then
29333   ac_header_preproc=yes
29334 else
29335   echo "$as_me: failed program was:" >&5
29336 sed 's/^/| /' conftest.$ac_ext >&5
29337
29338   ac_header_preproc=no
29339 fi
29340
29341 rm -f conftest.err conftest.$ac_ext
29342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29343 echo "${ECHO_T}$ac_header_preproc" >&6; }
29344
29345 # So?  What about this header?
29346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29347   yes:no: )
29348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29352     ac_header_preproc=yes
29353     ;;
29354   no:yes:* )
29355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29367
29368     ;;
29369 esac
29370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 else
29375   eval "$as_ac_Header=\$ac_header_preproc"
29376 fi
29377 ac_res=`eval echo '${'$as_ac_Header'}'`
29378                { echo "$as_me:$LINENO: result: $ac_res" >&5
29379 echo "${ECHO_T}$ac_res" >&6; }
29380
29381 fi
29382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29383   cat >>confdefs.h <<_ACEOF
29384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29385 _ACEOF
29386
29387 fi
29388
29389 done
29390
29391 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29392 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29393 if test "${ac_cv_lib_z_deflate+set}" = set; then
29394   echo $ECHO_N "(cached) $ECHO_C" >&6
29395 else
29396   ac_check_lib_save_LIBS=$LIBS
29397 LIBS="-lz  $LIBS"
29398 cat >conftest.$ac_ext <<_ACEOF
29399 /* confdefs.h.  */
29400 _ACEOF
29401 cat confdefs.h >>conftest.$ac_ext
29402 cat >>conftest.$ac_ext <<_ACEOF
29403 /* end confdefs.h.  */
29404
29405 /* Override any GCC internal prototype to avoid an error.
29406    Use char because int might match the return type of a GCC
29407    builtin and then its argument prototype would still apply.  */
29408 #ifdef __cplusplus
29409 extern "C"
29410 #endif
29411 char deflate ();
29412 int
29413 main ()
29414 {
29415 return deflate ();
29416   ;
29417   return 0;
29418 }
29419 _ACEOF
29420 rm -f conftest.$ac_objext conftest$ac_exeext
29421 if { (ac_try="$ac_link"
29422 case "(($ac_try" in
29423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29424   *) ac_try_echo=$ac_try;;
29425 esac
29426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29427   (eval "$ac_link") 2>conftest.er1
29428   ac_status=$?
29429   grep -v '^ *+' conftest.er1 >conftest.err
29430   rm -f conftest.er1
29431   cat conftest.err >&5
29432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433   (exit $ac_status); } && {
29434          test -z "$ac_c_werror_flag" ||
29435          test ! -s conftest.err
29436        } && test -s conftest$ac_exeext &&
29437        $as_test_x conftest$ac_exeext; then
29438   ac_cv_lib_z_deflate=yes
29439 else
29440   echo "$as_me: failed program was:" >&5
29441 sed 's/^/| /' conftest.$ac_ext >&5
29442
29443         ac_cv_lib_z_deflate=no
29444 fi
29445
29446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29447       conftest$ac_exeext conftest.$ac_ext
29448 LIBS=$ac_check_lib_save_LIBS
29449 fi
29450 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29451 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29452 if test $ac_cv_lib_z_deflate = yes; then
29453   FDLIBS="-lz"
29454 fi
29455
29456 have_zlib=no
29457 if test x$FDLIBS = x-lz; then
29458   cat >>confdefs.h <<\_ACEOF
29459 #define HAVE_LIBZ 1
29460 _ACEOF
29461
29462   have_zlib=yes
29463 fi
29464
29465 #
29466 # Check for ACL libraries
29467 #
29468 have_acl=no
29469 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29470   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29471 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29472 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29473   echo $ECHO_N "(cached) $ECHO_C" >&6
29474 fi
29475 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29476 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29477 else
29478   # Is the header compilable?
29479 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29480 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29481 cat >conftest.$ac_ext <<_ACEOF
29482 /* confdefs.h.  */
29483 _ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h.  */
29487 $ac_includes_default
29488 #include <sys/acl.h>
29489 _ACEOF
29490 rm -f conftest.$ac_objext
29491 if { (ac_try="$ac_compile"
29492 case "(($ac_try" in
29493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29494   *) ac_try_echo=$ac_try;;
29495 esac
29496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29497   (eval "$ac_compile") 2>conftest.er1
29498   ac_status=$?
29499   grep -v '^ *+' conftest.er1 >conftest.err
29500   rm -f conftest.er1
29501   cat conftest.err >&5
29502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29503   (exit $ac_status); } && {
29504          test -z "$ac_c_werror_flag" ||
29505          test ! -s conftest.err
29506        } && test -s conftest.$ac_objext; then
29507   ac_header_compiler=yes
29508 else
29509   echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29511
29512         ac_header_compiler=no
29513 fi
29514
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29517 echo "${ECHO_T}$ac_header_compiler" >&6; }
29518
29519 # Is the header present?
29520 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29521 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29522 cat >conftest.$ac_ext <<_ACEOF
29523 /* confdefs.h.  */
29524 _ACEOF
29525 cat confdefs.h >>conftest.$ac_ext
29526 cat >>conftest.$ac_ext <<_ACEOF
29527 /* end confdefs.h.  */
29528 #include <sys/acl.h>
29529 _ACEOF
29530 if { (ac_try="$ac_cpp conftest.$ac_ext"
29531 case "(($ac_try" in
29532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29533   *) ac_try_echo=$ac_try;;
29534 esac
29535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29537   ac_status=$?
29538   grep -v '^ *+' conftest.er1 >conftest.err
29539   rm -f conftest.er1
29540   cat conftest.err >&5
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); } >/dev/null && {
29543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29544          test ! -s conftest.err
29545        }; then
29546   ac_header_preproc=yes
29547 else
29548   echo "$as_me: failed program was:" >&5
29549 sed 's/^/| /' conftest.$ac_ext >&5
29550
29551   ac_header_preproc=no
29552 fi
29553
29554 rm -f conftest.err conftest.$ac_ext
29555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29556 echo "${ECHO_T}$ac_header_preproc" >&6; }
29557
29558 # So?  What about this header?
29559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29560   yes:no: )
29561     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29562 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29563     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29564 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29565     ac_header_preproc=yes
29566     ;;
29567   no:yes:* )
29568     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29569 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29570     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29571 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29572     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29573 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29574     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29575 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29576     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29577 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29578     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29579 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29580
29581     ;;
29582 esac
29583 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29584 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29585 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29586   echo $ECHO_N "(cached) $ECHO_C" >&6
29587 else
29588   ac_cv_header_sys_acl_h=$ac_header_preproc
29589 fi
29590 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29591 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29592
29593 fi
29594
29595
29596 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29597 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29598 if test "${ac_cv_func_acl_get_file+set}" = set; then
29599   echo $ECHO_N "(cached) $ECHO_C" >&6
29600 else
29601   cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29609 #define acl_get_file innocuous_acl_get_file
29610
29611 /* System header to define __stub macros and hopefully few prototypes,
29612     which can conflict with char acl_get_file (); below.
29613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29614     <limits.h> exists even on freestanding compilers.  */
29615
29616 #ifdef __STDC__
29617 # include <limits.h>
29618 #else
29619 # include <assert.h>
29620 #endif
29621
29622 #undef acl_get_file
29623
29624 /* Override any GCC internal prototype to avoid an error.
29625    Use char because int might match the return type of a GCC
29626    builtin and then its argument prototype would still apply.  */
29627 #ifdef __cplusplus
29628 extern "C"
29629 #endif
29630 char acl_get_file ();
29631 /* The GNU C library defines this for functions which it implements
29632     to always fail with ENOSYS.  Some functions are actually named
29633     something starting with __ and the normal name is an alias.  */
29634 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29635 choke me
29636 #endif
29637
29638 int
29639 main ()
29640 {
29641 return acl_get_file ();
29642   ;
29643   return 0;
29644 }
29645 _ACEOF
29646 rm -f conftest.$ac_objext conftest$ac_exeext
29647 if { (ac_try="$ac_link"
29648 case "(($ac_try" in
29649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650   *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653   (eval "$ac_link") 2>conftest.er1
29654   ac_status=$?
29655   grep -v '^ *+' conftest.er1 >conftest.err
29656   rm -f conftest.er1
29657   cat conftest.err >&5
29658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29659   (exit $ac_status); } && {
29660          test -z "$ac_c_werror_flag" ||
29661          test ! -s conftest.err
29662        } && test -s conftest$ac_exeext &&
29663        $as_test_x conftest$ac_exeext; then
29664   ac_cv_func_acl_get_file=yes
29665 else
29666   echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.$ac_ext >&5
29668
29669         ac_cv_func_acl_get_file=no
29670 fi
29671
29672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29673       conftest$ac_exeext conftest.$ac_ext
29674 fi
29675 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29676 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29677 if test $ac_cv_func_acl_get_file = yes; then
29678   have_acl=yes
29679 else
29680   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29681 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29682 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29683   echo $ECHO_N "(cached) $ECHO_C" >&6
29684 else
29685   ac_check_lib_save_LIBS=$LIBS
29686 LIBS="-lacl  $LIBS"
29687 cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693
29694 /* Override any GCC internal prototype to avoid an error.
29695    Use char because int might match the return type of a GCC
29696    builtin and then its argument prototype would still apply.  */
29697 #ifdef __cplusplus
29698 extern "C"
29699 #endif
29700 char acl_get_file ();
29701 int
29702 main ()
29703 {
29704 return acl_get_file ();
29705   ;
29706   return 0;
29707 }
29708 _ACEOF
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713   *) ac_try_echo=$ac_try;;
29714 esac
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716   (eval "$ac_link") 2>conftest.er1
29717   ac_status=$?
29718   grep -v '^ *+' conftest.er1 >conftest.err
29719   rm -f conftest.er1
29720   cat conftest.err >&5
29721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722   (exit $ac_status); } && {
29723          test -z "$ac_c_werror_flag" ||
29724          test ! -s conftest.err
29725        } && test -s conftest$ac_exeext &&
29726        $as_test_x conftest$ac_exeext; then
29727   ac_cv_lib_acl_acl_get_file=yes
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_cv_lib_acl_acl_get_file=no
29733 fi
29734
29735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29736       conftest$ac_exeext conftest.$ac_ext
29737 LIBS=$ac_check_lib_save_LIBS
29738 fi
29739 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29740 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29741 if test $ac_cv_lib_acl_acl_get_file = yes; then
29742   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29743 else
29744   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29745 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29746 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29747   echo $ECHO_N "(cached) $ECHO_C" >&6
29748 else
29749   ac_check_lib_save_LIBS=$LIBS
29750 LIBS="-lsec  $LIBS"
29751 cat >conftest.$ac_ext <<_ACEOF
29752 /* confdefs.h.  */
29753 _ACEOF
29754 cat confdefs.h >>conftest.$ac_ext
29755 cat >>conftest.$ac_ext <<_ACEOF
29756 /* end confdefs.h.  */
29757
29758 /* Override any GCC internal prototype to avoid an error.
29759    Use char because int might match the return type of a GCC
29760    builtin and then its argument prototype would still apply.  */
29761 #ifdef __cplusplus
29762 extern "C"
29763 #endif
29764 char acltotext ();
29765 int
29766 main ()
29767 {
29768 return acltotext ();
29769   ;
29770   return 0;
29771 }
29772 _ACEOF
29773 rm -f conftest.$ac_objext conftest$ac_exeext
29774 if { (ac_try="$ac_link"
29775 case "(($ac_try" in
29776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777   *) ac_try_echo=$ac_try;;
29778 esac
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780   (eval "$ac_link") 2>conftest.er1
29781   ac_status=$?
29782   grep -v '^ *+' conftest.er1 >conftest.err
29783   rm -f conftest.er1
29784   cat conftest.err >&5
29785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786   (exit $ac_status); } && {
29787          test -z "$ac_c_werror_flag" ||
29788          test ! -s conftest.err
29789        } && test -s conftest$ac_exeext &&
29790        $as_test_x conftest$ac_exeext; then
29791   ac_cv_lib_sec_acltotext=yes
29792 else
29793   echo "$as_me: failed program was:" >&5
29794 sed 's/^/| /' conftest.$ac_ext >&5
29795
29796         ac_cv_lib_sec_acltotext=no
29797 fi
29798
29799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29800       conftest$ac_exeext conftest.$ac_ext
29801 LIBS=$ac_check_lib_save_LIBS
29802 fi
29803 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29804 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29805 if test $ac_cv_lib_sec_acltotext = yes; then
29806   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29807 fi
29808
29809
29810 fi
29811
29812
29813 fi
29814
29815 if test $have_acl = yes; then
29816    cat >>confdefs.h <<\_ACEOF
29817 #define HAVE_ACL 1
29818 _ACEOF
29819
29820 fi
29821
29822 PTHREAD_LIB=""
29823 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29824 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29825 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29826   echo $ECHO_N "(cached) $ECHO_C" >&6
29827 else
29828   ac_check_lib_save_LIBS=$LIBS
29829 LIBS="-lpthread  $LIBS"
29830 cat >conftest.$ac_ext <<_ACEOF
29831 /* confdefs.h.  */
29832 _ACEOF
29833 cat confdefs.h >>conftest.$ac_ext
29834 cat >>conftest.$ac_ext <<_ACEOF
29835 /* end confdefs.h.  */
29836
29837 /* Override any GCC internal prototype to avoid an error.
29838    Use char because int might match the return type of a GCC
29839    builtin and then its argument prototype would still apply.  */
29840 #ifdef __cplusplus
29841 extern "C"
29842 #endif
29843 char pthread_create ();
29844 int
29845 main ()
29846 {
29847 return pthread_create ();
29848   ;
29849   return 0;
29850 }
29851 _ACEOF
29852 rm -f conftest.$ac_objext conftest$ac_exeext
29853 if { (ac_try="$ac_link"
29854 case "(($ac_try" in
29855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29856   *) ac_try_echo=$ac_try;;
29857 esac
29858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29859   (eval "$ac_link") 2>conftest.er1
29860   ac_status=$?
29861   grep -v '^ *+' conftest.er1 >conftest.err
29862   rm -f conftest.er1
29863   cat conftest.err >&5
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); } && {
29866          test -z "$ac_c_werror_flag" ||
29867          test ! -s conftest.err
29868        } && test -s conftest$ac_exeext &&
29869        $as_test_x conftest$ac_exeext; then
29870   ac_cv_lib_pthread_pthread_create=yes
29871 else
29872   echo "$as_me: failed program was:" >&5
29873 sed 's/^/| /' conftest.$ac_ext >&5
29874
29875         ac_cv_lib_pthread_pthread_create=no
29876 fi
29877
29878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29879       conftest$ac_exeext conftest.$ac_ext
29880 LIBS=$ac_check_lib_save_LIBS
29881 fi
29882 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29883 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29884 if test $ac_cv_lib_pthread_pthread_create = yes; then
29885   PTHREAD_LIB="-lpthread"
29886 else
29887   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29888 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29889 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29890   echo $ECHO_N "(cached) $ECHO_C" >&6
29891 else
29892   ac_check_lib_save_LIBS=$LIBS
29893 LIBS="-lpthreads  $LIBS"
29894 cat >conftest.$ac_ext <<_ACEOF
29895 /* confdefs.h.  */
29896 _ACEOF
29897 cat confdefs.h >>conftest.$ac_ext
29898 cat >>conftest.$ac_ext <<_ACEOF
29899 /* end confdefs.h.  */
29900
29901 /* Override any GCC internal prototype to avoid an error.
29902    Use char because int might match the return type of a GCC
29903    builtin and then its argument prototype would still apply.  */
29904 #ifdef __cplusplus
29905 extern "C"
29906 #endif
29907 char pthread_create ();
29908 int
29909 main ()
29910 {
29911 return pthread_create ();
29912   ;
29913   return 0;
29914 }
29915 _ACEOF
29916 rm -f conftest.$ac_objext conftest$ac_exeext
29917 if { (ac_try="$ac_link"
29918 case "(($ac_try" in
29919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29920   *) ac_try_echo=$ac_try;;
29921 esac
29922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29923   (eval "$ac_link") 2>conftest.er1
29924   ac_status=$?
29925   grep -v '^ *+' conftest.er1 >conftest.err
29926   rm -f conftest.er1
29927   cat conftest.err >&5
29928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929   (exit $ac_status); } && {
29930          test -z "$ac_c_werror_flag" ||
29931          test ! -s conftest.err
29932        } && test -s conftest$ac_exeext &&
29933        $as_test_x conftest$ac_exeext; then
29934   ac_cv_lib_pthreads_pthread_create=yes
29935 else
29936   echo "$as_me: failed program was:" >&5
29937 sed 's/^/| /' conftest.$ac_ext >&5
29938
29939         ac_cv_lib_pthreads_pthread_create=no
29940 fi
29941
29942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29943       conftest$ac_exeext conftest.$ac_ext
29944 LIBS=$ac_check_lib_save_LIBS
29945 fi
29946 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29947 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29948 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29949   PTHREAD_LIB="-lpthreads"
29950 else
29951   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29952 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29953 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29954   echo $ECHO_N "(cached) $ECHO_C" >&6
29955 else
29956   ac_check_lib_save_LIBS=$LIBS
29957 LIBS="-lc_r  $LIBS"
29958 cat >conftest.$ac_ext <<_ACEOF
29959 /* confdefs.h.  */
29960 _ACEOF
29961 cat confdefs.h >>conftest.$ac_ext
29962 cat >>conftest.$ac_ext <<_ACEOF
29963 /* end confdefs.h.  */
29964
29965 /* Override any GCC internal prototype to avoid an error.
29966    Use char because int might match the return type of a GCC
29967    builtin and then its argument prototype would still apply.  */
29968 #ifdef __cplusplus
29969 extern "C"
29970 #endif
29971 char pthread_create ();
29972 int
29973 main ()
29974 {
29975 return pthread_create ();
29976   ;
29977   return 0;
29978 }
29979 _ACEOF
29980 rm -f conftest.$ac_objext conftest$ac_exeext
29981 if { (ac_try="$ac_link"
29982 case "(($ac_try" in
29983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29984   *) ac_try_echo=$ac_try;;
29985 esac
29986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29987   (eval "$ac_link") 2>conftest.er1
29988   ac_status=$?
29989   grep -v '^ *+' conftest.er1 >conftest.err
29990   rm -f conftest.er1
29991   cat conftest.err >&5
29992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993   (exit $ac_status); } && {
29994          test -z "$ac_c_werror_flag" ||
29995          test ! -s conftest.err
29996        } && test -s conftest$ac_exeext &&
29997        $as_test_x conftest$ac_exeext; then
29998   ac_cv_lib_c_r_pthread_create=yes
29999 else
30000   echo "$as_me: failed program was:" >&5
30001 sed 's/^/| /' conftest.$ac_ext >&5
30002
30003         ac_cv_lib_c_r_pthread_create=no
30004 fi
30005
30006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30007       conftest$ac_exeext conftest.$ac_ext
30008 LIBS=$ac_check_lib_save_LIBS
30009 fi
30010 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30011 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30012 if test $ac_cv_lib_c_r_pthread_create = yes; then
30013   PTHREAD_LIB="-lc_r"
30014 else
30015   { echo "$as_me:$LINENO: checking for pthread_create" >&5
30016 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30017 if test "${ac_cv_func_pthread_create+set}" = set; then
30018   echo $ECHO_N "(cached) $ECHO_C" >&6
30019 else
30020   cat >conftest.$ac_ext <<_ACEOF
30021 /* confdefs.h.  */
30022 _ACEOF
30023 cat confdefs.h >>conftest.$ac_ext
30024 cat >>conftest.$ac_ext <<_ACEOF
30025 /* end confdefs.h.  */
30026 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30028 #define pthread_create innocuous_pthread_create
30029
30030 /* System header to define __stub macros and hopefully few prototypes,
30031     which can conflict with char pthread_create (); below.
30032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30033     <limits.h> exists even on freestanding compilers.  */
30034
30035 #ifdef __STDC__
30036 # include <limits.h>
30037 #else
30038 # include <assert.h>
30039 #endif
30040
30041 #undef pthread_create
30042
30043 /* Override any GCC internal prototype to avoid an error.
30044    Use char because int might match the return type of a GCC
30045    builtin and then its argument prototype would still apply.  */
30046 #ifdef __cplusplus
30047 extern "C"
30048 #endif
30049 char pthread_create ();
30050 /* The GNU C library defines this for functions which it implements
30051     to always fail with ENOSYS.  Some functions are actually named
30052     something starting with __ and the normal name is an alias.  */
30053 #if defined __stub_pthread_create || defined __stub___pthread_create
30054 choke me
30055 #endif
30056
30057 int
30058 main ()
30059 {
30060 return pthread_create ();
30061   ;
30062   return 0;
30063 }
30064 _ACEOF
30065 rm -f conftest.$ac_objext conftest$ac_exeext
30066 if { (ac_try="$ac_link"
30067 case "(($ac_try" in
30068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30069   *) ac_try_echo=$ac_try;;
30070 esac
30071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30072   (eval "$ac_link") 2>conftest.er1
30073   ac_status=$?
30074   grep -v '^ *+' conftest.er1 >conftest.err
30075   rm -f conftest.er1
30076   cat conftest.err >&5
30077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078   (exit $ac_status); } && {
30079          test -z "$ac_c_werror_flag" ||
30080          test ! -s conftest.err
30081        } && test -s conftest$ac_exeext &&
30082        $as_test_x conftest$ac_exeext; then
30083   ac_cv_func_pthread_create=yes
30084 else
30085   echo "$as_me: failed program was:" >&5
30086 sed 's/^/| /' conftest.$ac_ext >&5
30087
30088         ac_cv_func_pthread_create=no
30089 fi
30090
30091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30092       conftest$ac_exeext conftest.$ac_ext
30093 fi
30094 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30095 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30096
30097
30098 fi
30099
30100
30101 fi
30102
30103
30104 fi
30105
30106
30107
30108 cat >>confdefs.h <<\_ACEOF
30109 #define FDLIBS 1
30110 _ACEOF
30111
30112
30113
30114 CFLAGS=${CFLAGS--O}
30115
30116 if test x$have_gcc = xyes ; then
30117    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30118    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30119 fi
30120 LDFLAGS=${LDFLAGS--O}
30121 DB_LIBS="${SQL_LFLAGS}"
30122 CPPFLAGS="$CPPFLAGS"
30123 CFLAGS="$CFLAGS"
30124
30125
30126
30127
30128
30129
30130
30131
30132
30133
30134
30135
30136
30137
30138
30139
30140 OBJLIST=
30141
30142
30143 lld="lld"
30144 llu="llu"
30145
30146 WCFLAGS=
30147 WLDFLAGS=
30148
30149 #
30150 # Finally we set appropriate distribution specific
30151 #  variables and defaults
30152 #
30153 # PFILES are platform specific files
30154 PFILES="platforms/Makefile"
30155 PSCMD="ps -e"
30156 WIN32=
30157 MACOSX=
30158 hostname=`uname -n | cut -d '.' -f 1`
30159 if test x${hostname} = x ; then
30160   hostname="localhost"
30161 fi
30162 case "$DISTNAME" in
30163 aix)
30164         DISTVER=`uname -r`
30165         PSCMD="ps -e -o pid,comm"
30166         PFILES="${PFILES} \
30167            platforms/aix/Makefile"
30168         TAPEDRIVE="/dev/rmt0.1"
30169   ;;
30170 alpha)
30171         DISTVER=`uname -r`
30172         PTHREAD_LIB="-lpthread -lexc"
30173         if test "${CC}" = "gcc" ; then
30174            lld="lld"
30175            llu="llu"
30176         else
30177            lld="ld"
30178            llu="lu"
30179         fi
30180         TAPEDRIVE="/dev/nrmt0"
30181   ;;
30182 bsdi)
30183         DISTVER=`uname -a |awk '{print $3}'`
30184         TAPEDRIVE="/dev/nrmt0"
30185         PTHREAD_LIB="-pthread"
30186         CFLAGS="${CFLAGS} -pthread"
30187         PSCMD="ps -ax -o pid,command"
30188         lld="qd"
30189         llu="qu"
30190         PFILES="${PFILES} \
30191             platforms/bsdi/Makefile \
30192             platforms/bsdi/bacula-fd \
30193             platforms/bsdi/bacula-sd \
30194             platforms/bsdi/bacula-dir"
30195         largefile_support="yes"
30196   ;;
30197 cygwin)
30198         DISTVER=`uname -a |awk '{print $3}'`
30199         TAPEDRIVE="/dev/nrst0"
30200         WIN32=win32
30201         WCFLAGS="-mwindows"
30202         WLDFLAGS="-mwindows"
30203   ;;
30204 darwin)
30205         DISTVER=`uname -r`
30206         TAPEDRIVE="/dev/nst0"
30207         PSCMD="ps -e -o pid,command"
30208         MACOSX=macosx
30209         PFILES="${PFILES} \
30210            platforms/darwin/Makefile"
30211   ;;
30212 debian)
30213         if `grep -q ubuntu /etc/apt/sources.list`; then
30214            DISTNAME="ubuntu"
30215         fi
30216         DISTVER=`cat /etc/debian_version`
30217         if test -f /etc/lsb-release ; then
30218            . /etc/lsb-release
30219            if test "x$DISTRIB_ID" != "x" ; then
30220               DISTNAME=$DISTRIB_ID
30221            fi
30222            if test "x$DISTRIB_RELEASE" != "x" ; then
30223               DISTVER=$DISTRIB_RELEASE
30224            fi
30225         fi
30226         if test "$DISTNAME" = "Ubuntu" ; then
30227            DISTNAME="ubuntu"
30228         fi
30229         TAPEDRIVE="/dev/nst0"
30230         PSCMD="ps -e -o pid,command"
30231         if test "$DISTNAME" = "ubuntu" ; then
30232            PFILES="${PFILES} \
30233               platforms/ubuntu/Makefile \
30234               platforms/ubuntu/bacula-fd \
30235               platforms/ubuntu/bacula-sd \
30236               platforms/ubuntu/bacula-dir"
30237         else
30238            PFILES="${PFILES} \
30239               platforms/debian/Makefile \
30240               platforms/debian/bacula-fd \
30241               platforms/debian/bacula-sd \
30242               platforms/debian/bacula-dir"
30243         fi
30244   ;;
30245 freebsd)
30246         DISTVER=`uname -a |awk '{print $3}'`
30247         VER=`echo $DISTVER | cut -c 1`
30248         if test x$VER = x4 ; then
30249            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30250            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30251         fi
30252         lld="qd"
30253         llu="qu"
30254         TAPEDRIVE="/dev/nrsa0"
30255         PSCMD="ps -ax -o pid,command"
30256         PFILES="${PFILES} \
30257             platforms/freebsd/Makefile \
30258             platforms/freebsd/bacula-fd \
30259             platforms/freebsd/bacula-sd \
30260             platforms/freebsd/bacula-dir"
30261         largefile_support="yes"
30262   ;;
30263 hpux)
30264         PSCMD="UNIX95=1; ps -e -o pid,comm"
30265         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30266         DISTVER=`uname -r`
30267         TAPEDRIVE="/dev/rmt/0hnb"
30268         PTHREAD_LIB="-lpthread"
30269         cat >>confdefs.h <<\_ACEOF
30270 #define _INCLUDE_LONGLONG 1
30271 _ACEOF
30272
30273   ;;
30274 irix)
30275         DISTVER=`uname -r`
30276         TAPEDRIVE="/dev/rmt/0cbn"
30277         PSCMD="ps -e -o pid,comm"
30278         PFILES="${PFILES} \
30279             platforms/irix/Makefile \
30280             platforms/irix/bacula-fd \
30281             platforms/irix/bacula-sd \
30282             platforms/irix/bacula-dir"
30283   ;;
30284 netbsd)
30285         DISTVER=`uname -a |awk '{print $3}'`
30286         lld="qd"
30287         llu="qu"
30288         TAPEDRIVE="/dev/nrst0"
30289         PSCMD="ps -ax -o pid,command"
30290         PTHREAD_LIB="-pthread"
30291         CFLAGS="${CFLAGS} -pthread"
30292   ;;
30293 openbsd)
30294         DISTVER=`uname -a |awk '{print $3}'`
30295         lld="qd"
30296         llu="qu"
30297         TAPEDRIVE="/dev/nrst0"
30298         PSCMD="ps -ax -o pid,command"
30299         PTHREAD_LIB="-pthread"
30300         CFLAGS="${CFLAGS} -pthread"
30301         PFILES="${PFILES} \
30302             platforms/openbsd/Makefile \
30303             platforms/openbsd/bacula-fd \
30304             platforms/openbsd/bacula-sd \
30305             platforms/openbsd/bacula-dir"
30306   ;;
30307 redhat)
30308         if test -f /etc/whitebox-release ; then
30309            f=/etc/whitebox-release
30310         else
30311            f=/etc/redhat-release
30312         fi
30313         if test `cat $f | grep release |\
30314                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30315            DISTVER="Enterprise "`cat $f | grep release |\
30316                     cut -f 6 -d ' '`
30317         else
30318             DISTVER=`cat /etc/redhat-release | grep release |\
30319                      cut -f 5 -d ' '`
30320         fi
30321         TAPEDRIVE="/dev/nst0"
30322         PSCMD="ps -e -o pid,command"
30323         PFILES="${PFILES} \
30324             platforms/redhat/Makefile \
30325             platforms/redhat/bacula-fd \
30326             platforms/redhat/bacula-sd \
30327             platforms/redhat/bacula-dir \
30328             platforms/redhat/bacula.spec \
30329             "
30330   ;;
30331 mandrake)
30332         DISTVER=`cat /etc/mandrake-release | grep release |\
30333            cut -f 5 -d ' '`
30334         TAPEDRIVE="/dev/nst0"
30335         PSCMD="ps -e -o pid,command"
30336         PFILES="${PFILES} \
30337             platforms/mandrake/Makefile \
30338             platforms/mandrake/bacula-fd \
30339             platforms/mandrake/bacula-sd \
30340             platforms/mandrake/bacula-dir \
30341             platforms/mandrake/bacula.spec \
30342             "
30343   ;;
30344 gentoo)
30345         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30346         TAPEDRIVE="/dev/nst0"
30347         PSCMD="ps -e -o pid,command"
30348         PFILES="${PFILES} \
30349             platforms/gentoo/Makefile \
30350          platforms/gentoo/bacula-init \
30351             platforms/gentoo/bacula-fd \
30352             platforms/gentoo/bacula-sd \
30353             platforms/gentoo/bacula-dir"
30354   ;;
30355 slackware)
30356         DISTVER=`cat /etc/slackware-version`
30357         TAPEDRIVE="/dev/nst0"
30358         PSCMD="ps -e -o pid,command"
30359         PFILES="${PFILES} \
30360             platforms/slackware/Makefile \
30361             platforms/slackware/rc.bacula-fd \
30362             platforms/slackware/rc.bacula-sd \
30363             platforms/slackware/rc.bacula-dir\
30364             platforms/slackware/functions.bacula"
30365   ;;
30366 solaris)
30367         DISTVER=`uname -r`
30368         TAPEDRIVE="/dev/rmt/0cbn"
30369         PSCMD="ps -e -o pid,comm"
30370         PFILES="${PFILES} \
30371             platforms/solaris/Makefile \
30372             platforms/solaris/bacula-fd \
30373             platforms/solaris/bacula-sd \
30374             platforms/solaris/bacula-dir"
30375         if test x$DISTVER = x5.6 ; then
30376             cat >>confdefs.h <<\_ACEOF
30377 #define HAVE_OLD_SOCKOPT 1
30378 _ACEOF
30379
30380         fi
30381         LIBS="$LIBS -lresolv"
30382   ;;
30383 suse)
30384         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30385             cut -f 3 -d ' '`
30386         TAPEDRIVE="/dev/nst0"
30387         PSCMD="ps -e -o pid,command"
30388         PFILES="${PFILES} \
30389             platforms/suse/Makefile \
30390             platforms/suse/bacula-fd \
30391             platforms/suse/bacula-sd \
30392             platforms/suse/bacula-dir \
30393             platforms/suse/bacula \
30394             platforms/suse/bacula.spec"
30395   ;;
30396 suse5)
30397         DISTNAME=suse
30398         DISTVER=5.x
30399         TAPEDRIVE="/dev/nst0"
30400         PSCMD="ps -e -o pid,command"
30401         PFILES="${PFILES} \
30402             platforms/suse/Makefile \
30403             platforms/suse/bacula-fd \
30404             platforms/suse/bacula-sd \
30405             platforms/suse/bacula-dir"
30406   ;;
30407 unknown)
30408         DISTVER=unknown
30409         TAPEDRIVE="/dev/nst0"
30410   ;;
30411 *)
30412   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30413   ;;
30414 esac
30415
30416
30417
30418 LIBS="$PTHREAD_LIB $LIBS"
30419
30420 cat >>confdefs.h <<_ACEOF
30421 #define lld "$lld"
30422 _ACEOF
30423
30424 cat >>confdefs.h <<_ACEOF
30425 #define llu "$llu"
30426 _ACEOF
30427
30428
30429
30430
30431
30432
30433
30434
30435 MCOMMON=./autoconf/Make.common
30436
30437
30438 if test "x${subsysdir}" = "x${sbindir}" ; then
30439    echo " "
30440    echo " "
30441    echo "You have set both --sbindir and --with-subsys-dir"
30442    echo "  equal to: ${subsysdir} "
30443    echo "This is not permitted. Please reconfigure."
30444    echo " "
30445    echo "Aborting configuration ..."
30446    echo " "
30447    echo " "
30448    exit 1
30449 fi
30450
30451 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
30452
30453 ac_config_commands="$ac_config_commands default"
30454
30455 cat >confcache <<\_ACEOF
30456 # This file is a shell script that caches the results of configure
30457 # tests run on this system so they can be shared between configure
30458 # scripts and configure runs, see configure's option --config-cache.
30459 # It is not useful on other systems.  If it contains results you don't
30460 # want to keep, you may remove or edit it.
30461 #
30462 # config.status only pays attention to the cache file if you give it
30463 # the --recheck option to rerun configure.
30464 #
30465 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30466 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30467 # following values.
30468
30469 _ACEOF
30470
30471 # The following way of writing the cache mishandles newlines in values,
30472 # but we know of no workaround that is simple, portable, and efficient.
30473 # So, we kill variables containing newlines.
30474 # Ultrix sh set writes to stderr and can't be redirected directly,
30475 # and sets the high bit in the cache file unless we assign to the vars.
30476 (
30477   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30478     eval ac_val=\$$ac_var
30479     case $ac_val in #(
30480     *${as_nl}*)
30481       case $ac_var in #(
30482       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30483 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30484       esac
30485       case $ac_var in #(
30486       _ | IFS | as_nl) ;; #(
30487       *) $as_unset $ac_var ;;
30488       esac ;;
30489     esac
30490   done
30491
30492   (set) 2>&1 |
30493     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30494     *${as_nl}ac_space=\ *)
30495       # `set' does not quote correctly, so add quotes (double-quote
30496       # substitution turns \\\\ into \\, and sed turns \\ into \).
30497       sed -n \
30498         "s/'/'\\\\''/g;
30499           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30500       ;; #(
30501     *)
30502       # `set' quotes correctly as required by POSIX, so do not add quotes.
30503       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30504       ;;
30505     esac |
30506     sort
30507 ) |
30508   sed '
30509      /^ac_cv_env_/b end
30510      t clear
30511      :clear
30512      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30513      t end
30514      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30515      :end' >>confcache
30516 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30517   if test -w "$cache_file"; then
30518     test "x$cache_file" != "x/dev/null" &&
30519       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30520 echo "$as_me: updating cache $cache_file" >&6;}
30521     cat confcache >$cache_file
30522   else
30523     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30524 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30525   fi
30526 fi
30527 rm -f confcache
30528
30529 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30530 # Let make expand exec_prefix.
30531 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30532
30533 DEFS=-DHAVE_CONFIG_H
30534
30535 ac_libobjs=
30536 ac_ltlibobjs=
30537 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30538   # 1. Remove the extension, and $U if already installed.
30539   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30540   ac_i=`echo "$ac_i" | sed "$ac_script"`
30541   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30542   #    will be set to the directory where LIBOBJS objects are built.
30543   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30544   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30545 done
30546 LIBOBJS=$ac_libobjs
30547
30548 LTLIBOBJS=$ac_ltlibobjs
30549
30550
30551
30552 : ${CONFIG_STATUS=./config.status}
30553 ac_clean_files_save=$ac_clean_files
30554 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30555 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30556 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30557 cat >$CONFIG_STATUS <<_ACEOF
30558 #! $SHELL
30559 # Generated by $as_me.
30560 # Run this file to recreate the current configuration.
30561 # Compiler output produced by configure, useful for debugging
30562 # configure, is in config.log if it exists.
30563
30564 debug=false
30565 ac_cs_recheck=false
30566 ac_cs_silent=false
30567 SHELL=\${CONFIG_SHELL-$SHELL}
30568 _ACEOF
30569
30570 cat >>$CONFIG_STATUS <<\_ACEOF
30571 ## --------------------- ##
30572 ## M4sh Initialization.  ##
30573 ## --------------------- ##
30574
30575 # Be more Bourne compatible
30576 DUALCASE=1; export DUALCASE # for MKS sh
30577 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30578   emulate sh
30579   NULLCMD=:
30580   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30581   # is contrary to our usage.  Disable this feature.
30582   alias -g '${1+"$@"}'='"$@"'
30583   setopt NO_GLOB_SUBST
30584 else
30585   case `(set -o) 2>/dev/null` in
30586   *posix*) set -o posix ;;
30587 esac
30588
30589 fi
30590
30591
30592
30593
30594 # PATH needs CR
30595 # Avoid depending upon Character Ranges.
30596 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30597 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30598 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30599 as_cr_digits='0123456789'
30600 as_cr_alnum=$as_cr_Letters$as_cr_digits
30601
30602 # The user is always right.
30603 if test "${PATH_SEPARATOR+set}" != set; then
30604   echo "#! /bin/sh" >conf$$.sh
30605   echo  "exit 0"   >>conf$$.sh
30606   chmod +x conf$$.sh
30607   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30608     PATH_SEPARATOR=';'
30609   else
30610     PATH_SEPARATOR=:
30611   fi
30612   rm -f conf$$.sh
30613 fi
30614
30615 # Support unset when possible.
30616 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30617   as_unset=unset
30618 else
30619   as_unset=false
30620 fi
30621
30622
30623 # IFS
30624 # We need space, tab and new line, in precisely that order.  Quoting is
30625 # there to prevent editors from complaining about space-tab.
30626 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30627 # splitting by setting IFS to empty value.)
30628 as_nl='
30629 '
30630 IFS=" ""        $as_nl"
30631
30632 # Find who we are.  Look in the path if we contain no directory separator.
30633 case $0 in
30634   *[\\/]* ) as_myself=$0 ;;
30635   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30636 for as_dir in $PATH
30637 do
30638   IFS=$as_save_IFS
30639   test -z "$as_dir" && as_dir=.
30640   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30641 done
30642 IFS=$as_save_IFS
30643
30644      ;;
30645 esac
30646 # We did not find ourselves, most probably we were run as `sh COMMAND'
30647 # in which case we are not to be found in the path.
30648 if test "x$as_myself" = x; then
30649   as_myself=$0
30650 fi
30651 if test ! -f "$as_myself"; then
30652   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30653   { (exit 1); exit 1; }
30654 fi
30655
30656 # Work around bugs in pre-3.0 UWIN ksh.
30657 for as_var in ENV MAIL MAILPATH
30658 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30659 done
30660 PS1='$ '
30661 PS2='> '
30662 PS4='+ '
30663
30664 # NLS nuisances.
30665 for as_var in \
30666   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30667   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30668   LC_TELEPHONE LC_TIME
30669 do
30670   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30671     eval $as_var=C; export $as_var
30672   else
30673     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30674   fi
30675 done
30676
30677 # Required to use basename.
30678 if expr a : '\(a\)' >/dev/null 2>&1 &&
30679    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30680   as_expr=expr
30681 else
30682   as_expr=false
30683 fi
30684
30685 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30686   as_basename=basename
30687 else
30688   as_basename=false
30689 fi
30690
30691
30692 # Name of the executable.
30693 as_me=`$as_basename -- "$0" ||
30694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30695          X"$0" : 'X\(//\)$' \| \
30696          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30697 echo X/"$0" |
30698     sed '/^.*\/\([^/][^/]*\)\/*$/{
30699             s//\1/
30700             q
30701           }
30702           /^X\/\(\/\/\)$/{
30703             s//\1/
30704             q
30705           }
30706           /^X\/\(\/\).*/{
30707             s//\1/
30708             q
30709           }
30710           s/.*/./; q'`
30711
30712 # CDPATH.
30713 $as_unset CDPATH
30714
30715
30716
30717   as_lineno_1=$LINENO
30718   as_lineno_2=$LINENO
30719   test "x$as_lineno_1" != "x$as_lineno_2" &&
30720   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30721
30722   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30723   # uniformly replaced by the line number.  The first 'sed' inserts a
30724   # line-number line after each line using $LINENO; the second 'sed'
30725   # does the real work.  The second script uses 'N' to pair each
30726   # line-number line with the line containing $LINENO, and appends
30727   # trailing '-' during substitution so that $LINENO is not a special
30728   # case at line end.
30729   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30730   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30731   # E. McMahon (1931-1989) for sed's syntax.  :-)
30732   sed -n '
30733     p
30734     /[$]LINENO/=
30735   ' <$as_myself |
30736     sed '
30737       s/[$]LINENO.*/&-/
30738       t lineno
30739       b
30740       :lineno
30741       N
30742       :loop
30743       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30744       t loop
30745       s/-\n.*//
30746     ' >$as_me.lineno &&
30747   chmod +x "$as_me.lineno" ||
30748     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30749    { (exit 1); exit 1; }; }
30750
30751   # Don't try to exec as it changes $[0], causing all sort of problems
30752   # (the dirname of $[0] is not the place where we might find the
30753   # original and so on.  Autoconf is especially sensitive to this).
30754   . "./$as_me.lineno"
30755   # Exit status is that of the last command.
30756   exit
30757 }
30758
30759
30760 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30761   as_dirname=dirname
30762 else
30763   as_dirname=false
30764 fi
30765
30766 ECHO_C= ECHO_N= ECHO_T=
30767 case `echo -n x` in
30768 -n*)
30769   case `echo 'x\c'` in
30770   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30771   *)   ECHO_C='\c';;
30772   esac;;
30773 *)
30774   ECHO_N='-n';;
30775 esac
30776
30777 if expr a : '\(a\)' >/dev/null 2>&1 &&
30778    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30779   as_expr=expr
30780 else
30781   as_expr=false
30782 fi
30783
30784 rm -f conf$$ conf$$.exe conf$$.file
30785 if test -d conf$$.dir; then
30786   rm -f conf$$.dir/conf$$.file
30787 else
30788   rm -f conf$$.dir
30789   mkdir conf$$.dir
30790 fi
30791 echo >conf$$.file
30792 if ln -s conf$$.file conf$$ 2>/dev/null; then
30793   as_ln_s='ln -s'
30794   # ... but there are two gotchas:
30795   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30796   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30797   # In both cases, we have to default to `cp -p'.
30798   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30799     as_ln_s='cp -p'
30800 elif ln conf$$.file conf$$ 2>/dev/null; then
30801   as_ln_s=ln
30802 else
30803   as_ln_s='cp -p'
30804 fi
30805 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30806 rmdir conf$$.dir 2>/dev/null
30807
30808 if mkdir -p . 2>/dev/null; then
30809   as_mkdir_p=:
30810 else
30811   test -d ./-p && rmdir ./-p
30812   as_mkdir_p=false
30813 fi
30814
30815 if test -x / >/dev/null 2>&1; then
30816   as_test_x='test -x'
30817 else
30818   if ls -dL / >/dev/null 2>&1; then
30819     as_ls_L_option=L
30820   else
30821     as_ls_L_option=
30822   fi
30823   as_test_x='
30824     eval sh -c '\''
30825       if test -d "$1"; then
30826         test -d "$1/.";
30827       else
30828         case $1 in
30829         -*)set "./$1";;
30830         esac;
30831         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30832         ???[sx]*):;;*)false;;esac;fi
30833     '\'' sh
30834   '
30835 fi
30836 as_executable_p=$as_test_x
30837
30838 # Sed expression to map a string onto a valid CPP name.
30839 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30840
30841 # Sed expression to map a string onto a valid variable name.
30842 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30843
30844
30845 exec 6>&1
30846
30847 # Save the log message, to keep $[0] and so on meaningful, and to
30848 # report actual input values of CONFIG_FILES etc. instead of their
30849 # values after options handling.
30850 ac_log="
30851 This file was extended by $as_me, which was
30852 generated by GNU Autoconf 2.61.  Invocation command line was
30853
30854   CONFIG_FILES    = $CONFIG_FILES
30855   CONFIG_HEADERS  = $CONFIG_HEADERS
30856   CONFIG_LINKS    = $CONFIG_LINKS
30857   CONFIG_COMMANDS = $CONFIG_COMMANDS
30858   $ $0 $@
30859
30860 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30861 "
30862
30863 _ACEOF
30864
30865 cat >>$CONFIG_STATUS <<_ACEOF
30866 # Files that config.status was made for.
30867 config_files="$ac_config_files"
30868 config_headers="$ac_config_headers"
30869 config_commands="$ac_config_commands"
30870
30871 _ACEOF
30872
30873 cat >>$CONFIG_STATUS <<\_ACEOF
30874 ac_cs_usage="\
30875 \`$as_me' instantiates files from templates according to the
30876 current configuration.
30877
30878 Usage: $0 [OPTIONS] [FILE]...
30879
30880   -h, --help       print this help, then exit
30881   -V, --version    print version number and configuration settings, then exit
30882   -q, --quiet      do not print progress messages
30883   -d, --debug      don't remove temporary files
30884       --recheck    update $as_me by reconfiguring in the same conditions
30885   --file=FILE[:TEMPLATE]
30886                    instantiate the configuration file FILE
30887   --header=FILE[:TEMPLATE]
30888                    instantiate the configuration header FILE
30889
30890 Configuration files:
30891 $config_files
30892
30893 Configuration headers:
30894 $config_headers
30895
30896 Configuration commands:
30897 $config_commands
30898
30899 Report bugs to <bug-autoconf@gnu.org>."
30900
30901 _ACEOF
30902 cat >>$CONFIG_STATUS <<_ACEOF
30903 ac_cs_version="\\
30904 config.status
30905 configured by $0, generated by GNU Autoconf 2.61,
30906   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30907
30908 Copyright (C) 2006 Free Software Foundation, Inc.
30909 This config.status script is free software; the Free Software Foundation
30910 gives unlimited permission to copy, distribute and modify it."
30911
30912 ac_pwd='$ac_pwd'
30913 srcdir='$srcdir'
30914 INSTALL='$INSTALL'
30915 _ACEOF
30916
30917 cat >>$CONFIG_STATUS <<\_ACEOF
30918 # If no file are specified by the user, then we need to provide default
30919 # value.  By we need to know if files were specified by the user.
30920 ac_need_defaults=:
30921 while test $# != 0
30922 do
30923   case $1 in
30924   --*=*)
30925     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30926     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30927     ac_shift=:
30928     ;;
30929   *)
30930     ac_option=$1
30931     ac_optarg=$2
30932     ac_shift=shift
30933     ;;
30934   esac
30935
30936   case $ac_option in
30937   # Handling of the options.
30938   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30939     ac_cs_recheck=: ;;
30940   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30941     echo "$ac_cs_version"; exit ;;
30942   --debug | --debu | --deb | --de | --d | -d )
30943     debug=: ;;
30944   --file | --fil | --fi | --f )
30945     $ac_shift
30946     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30947     ac_need_defaults=false;;
30948   --header | --heade | --head | --hea )
30949     $ac_shift
30950     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30951     ac_need_defaults=false;;
30952   --he | --h)
30953     # Conflict between --help and --header
30954     { echo "$as_me: error: ambiguous option: $1
30955 Try \`$0 --help' for more information." >&2
30956    { (exit 1); exit 1; }; };;
30957   --help | --hel | -h )
30958     echo "$ac_cs_usage"; exit ;;
30959   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30960   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30961     ac_cs_silent=: ;;
30962
30963   # This is an error.
30964   -*) { echo "$as_me: error: unrecognized option: $1
30965 Try \`$0 --help' for more information." >&2
30966    { (exit 1); exit 1; }; } ;;
30967
30968   *) ac_config_targets="$ac_config_targets $1"
30969      ac_need_defaults=false ;;
30970
30971   esac
30972   shift
30973 done
30974
30975 ac_configure_extra_args=
30976
30977 if $ac_cs_silent; then
30978   exec 6>/dev/null
30979   ac_configure_extra_args="$ac_configure_extra_args --silent"
30980 fi
30981
30982 _ACEOF
30983 cat >>$CONFIG_STATUS <<_ACEOF
30984 if \$ac_cs_recheck; then
30985   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30986   CONFIG_SHELL=$SHELL
30987   export CONFIG_SHELL
30988   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30989 fi
30990
30991 _ACEOF
30992 cat >>$CONFIG_STATUS <<\_ACEOF
30993 exec 5>>config.log
30994 {
30995   echo
30996   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30997 ## Running $as_me. ##
30998 _ASBOX
30999   echo "$ac_log"
31000 } >&5
31001
31002 _ACEOF
31003 cat >>$CONFIG_STATUS <<_ACEOF
31004 #
31005 # INIT-COMMANDS
31006 #
31007 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31008     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31009     # from automake.
31010     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31011     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31012     LINGUAS="${LINGUAS-%UNSET%}"
31013
31014
31015 _ACEOF
31016
31017 cat >>$CONFIG_STATUS <<\_ACEOF
31018
31019 # Handling of arguments.
31020 for ac_config_target in $ac_config_targets
31021 do
31022   case $ac_config_target in
31023     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31024     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31025     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31026     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31027     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31028     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31029     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31030     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31031     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31032     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31033     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31034     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31035     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31036     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31037     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31038     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31039     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31040     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31041     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31042     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31043     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31044     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31045     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31046     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31047     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31048     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31049     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31050     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31051     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31052     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31053     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31054     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31055     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31056     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31057     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31058     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31059     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31060     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31061     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31062     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31063     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31064     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31065     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31066     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31067     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31068     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31069     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31070     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31071     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31072     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31073     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31074     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31075     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31076     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31077     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31078     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31079     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31080     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31081     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31082     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31083     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31084     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31085     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31086     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31087     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31088     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31089     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31090     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31091     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31092     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31093     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31094     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31095     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31096     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31097     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31098     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31099     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31100     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31101     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31102     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31103     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31104     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31105     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31106     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31107     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31108     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31109     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31110     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31111     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31112     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31113     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31114     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31115     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31116     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31117     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31118     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31119     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31120     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31121     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31122     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31123     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31124     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31125     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31126     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31127     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31128     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31129     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31130     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31131     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31132     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31133
31134   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31136    { (exit 1); exit 1; }; };;
31137   esac
31138 done
31139
31140
31141 # If the user did not use the arguments to specify the items to instantiate,
31142 # then the envvar interface is used.  Set only those that are not.
31143 # We use the long form for the default assignment because of an extremely
31144 # bizarre bug on SunOS 4.1.3.
31145 if $ac_need_defaults; then
31146   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31147   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31148   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31149 fi
31150
31151 # Have a temporary directory for convenience.  Make it in the build tree
31152 # simply because there is no reason against having it here, and in addition,
31153 # creating and moving files from /tmp can sometimes cause problems.
31154 # Hook for its removal unless debugging.
31155 # Note that there is a small window in which the directory will not be cleaned:
31156 # after its creation but before its name has been assigned to `$tmp'.
31157 $debug ||
31158 {
31159   tmp=
31160   trap 'exit_status=$?
31161   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31162 ' 0
31163   trap '{ (exit 1); exit 1; }' 1 2 13 15
31164 }
31165 # Create a (secure) tmp directory for tmp files.
31166
31167 {
31168   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31169   test -n "$tmp" && test -d "$tmp"
31170 }  ||
31171 {
31172   tmp=./conf$$-$RANDOM
31173   (umask 077 && mkdir "$tmp")
31174 } ||
31175 {
31176    echo "$me: cannot create a temporary directory in ." >&2
31177    { (exit 1); exit 1; }
31178 }
31179
31180 #
31181 # Set up the sed scripts for CONFIG_FILES section.
31182 #
31183
31184 # No need to generate the scripts if there are no CONFIG_FILES.
31185 # This happens for instance when ./config.status config.h
31186 if test -n "$CONFIG_FILES"; then
31187
31188 _ACEOF
31189
31190 # Create sed commands to just substitute file output variables.
31191
31192 # Remaining file output variables are in a fragment that also has non-file
31193 # output varibles.
31194
31195
31196
31197 ac_delim='%!_!# '
31198 for ac_last_try in false false false false false :; do
31199   cat >conf$$subs.sed <<_ACEOF
31200 SHELL!$SHELL$ac_delim
31201 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31202 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31203 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31204 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31205 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31206 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31207 exec_prefix!$exec_prefix$ac_delim
31208 prefix!$prefix$ac_delim
31209 program_transform_name!$program_transform_name$ac_delim
31210 bindir!$bindir$ac_delim
31211 sbindir!$sbindir$ac_delim
31212 libexecdir!$libexecdir$ac_delim
31213 datarootdir!$datarootdir$ac_delim
31214 datadir!$datadir$ac_delim
31215 sysconfdir!$sysconfdir$ac_delim
31216 sharedstatedir!$sharedstatedir$ac_delim
31217 localstatedir!$localstatedir$ac_delim
31218 includedir!$includedir$ac_delim
31219 oldincludedir!$oldincludedir$ac_delim
31220 docdir!$docdir$ac_delim
31221 infodir!$infodir$ac_delim
31222 htmldir!$htmldir$ac_delim
31223 dvidir!$dvidir$ac_delim
31224 pdfdir!$pdfdir$ac_delim
31225 psdir!$psdir$ac_delim
31226 libdir!$libdir$ac_delim
31227 localedir!$localedir$ac_delim
31228 mandir!$mandir$ac_delim
31229 DEFS!$DEFS$ac_delim
31230 ECHO_C!$ECHO_C$ac_delim
31231 ECHO_N!$ECHO_N$ac_delim
31232 ECHO_T!$ECHO_T$ac_delim
31233 LIBS!$LIBS$ac_delim
31234 build_alias!$build_alias$ac_delim
31235 host_alias!$host_alias$ac_delim
31236 target_alias!$target_alias$ac_delim
31237 BUILD_DIR!$BUILD_DIR$ac_delim
31238 TOP_DIR!$TOP_DIR$ac_delim
31239 TRUEPRG!$TRUEPRG$ac_delim
31240 FALSEPRG!$FALSEPRG$ac_delim
31241 VERSION!$VERSION$ac_delim
31242 DATE!$DATE$ac_delim
31243 LSMDATE!$LSMDATE$ac_delim
31244 CC!$CC$ac_delim
31245 CFLAGS!$CFLAGS$ac_delim
31246 LDFLAGS!$LDFLAGS$ac_delim
31247 CPPFLAGS!$CPPFLAGS$ac_delim
31248 ac_ct_CC!$ac_ct_CC$ac_delim
31249 EXEEXT!$EXEEXT$ac_delim
31250 OBJEXT!$OBJEXT$ac_delim
31251 CXX!$CXX$ac_delim
31252 CXXFLAGS!$CXXFLAGS$ac_delim
31253 ac_ct_CXX!$ac_ct_CXX$ac_delim
31254 CPP!$CPP$ac_delim
31255 GREP!$GREP$ac_delim
31256 EGREP!$EGREP$ac_delim
31257 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31258 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31259 INSTALL_DATA!$INSTALL_DATA$ac_delim
31260 RANLIB!$RANLIB$ac_delim
31261 MV!$MV$ac_delim
31262 RM!$RM$ac_delim
31263 CP!$CP$ac_delim
31264 SED!$SED$ac_delim
31265 ECHO!$ECHO$ac_delim
31266 CMP!$CMP$ac_delim
31267 TBL!$TBL$ac_delim
31268 AR!$AR$ac_delim
31269 OPENSSL!$OPENSSL$ac_delim
31270 MTX!$MTX$ac_delim
31271 DD!$DD$ac_delim
31272 MKISOFS!$MKISOFS$ac_delim
31273 PYTHON!$PYTHON$ac_delim
31274 GROWISOFS!$GROWISOFS$ac_delim
31275 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31276 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31277 PKGCONFIG!$PKGCONFIG$ac_delim
31278 QMAKE!$QMAKE$ac_delim
31279 QMAKEQT4!$QMAKEQT4$ac_delim
31280 WXCONFIG!$WXCONFIG$ac_delim
31281 WXFLAGS!$WXFLAGS$ac_delim
31282 CDRECORD!$CDRECORD$ac_delim
31283 PIDOF!$PIDOF$ac_delim
31284 AWK!$AWK$ac_delim
31285 ARFLAGS!$ARFLAGS$ac_delim
31286 MAKE_SHELL!$MAKE_SHELL$ac_delim
31287 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31288 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31289 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31290 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31291 build!$build$ac_delim
31292 build_cpu!$build_cpu$ac_delim
31293 build_vendor!$build_vendor$ac_delim
31294 _ACEOF
31295
31296   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31297     break
31298   elif $ac_last_try; then
31299     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31300 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31301    { (exit 1); exit 1; }; }
31302   else
31303     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31304   fi
31305 done
31306
31307 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31308 if test -n "$ac_eof"; then
31309   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31310   ac_eof=`expr $ac_eof + 1`
31311 fi
31312
31313 cat >>$CONFIG_STATUS <<_ACEOF
31314 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31316 /^[      ]*@MCOMMON@[    ]*$/{
31317 r $MCOMMON
31318 d
31319 }
31320 _ACEOF
31321 sed '
31322 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31323 s/^/s,@/; s/!/@,|#_!!_#|/
31324 :n
31325 t n
31326 s/'"$ac_delim"'$/,g/; t
31327 s/$/\\/; p
31328 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31329 ' >>$CONFIG_STATUS <conf$$subs.sed
31330 rm -f conf$$subs.sed
31331 cat >>$CONFIG_STATUS <<_ACEOF
31332 CEOF$ac_eof
31333 _ACEOF
31334
31335
31336 ac_delim='%!_!# '
31337 for ac_last_try in false false false false false :; do
31338   cat >conf$$subs.sed <<_ACEOF
31339 build_os!$build_os$ac_delim
31340 host!$host$ac_delim
31341 host_cpu!$host_cpu$ac_delim
31342 host_vendor!$host_vendor$ac_delim
31343 host_os!$host_os$ac_delim
31344 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31345 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31346 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31347 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31348 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31349 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31350 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31351 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31352 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31353 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31354 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31355 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31356 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31357 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31358 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31359 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31360 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31361 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31362 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31363 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31364 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31365 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31366 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31367 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31368 SET_MAKE!$SET_MAKE$ac_delim
31369 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31370 USE_NLS!$USE_NLS$ac_delim
31371 MSGFMT!$MSGFMT$ac_delim
31372 GMSGFMT!$GMSGFMT$ac_delim
31373 XGETTEXT!$XGETTEXT$ac_delim
31374 MSGMERGE!$MSGMERGE$ac_delim
31375 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31376 LIBICONV!$LIBICONV$ac_delim
31377 LTLIBICONV!$LTLIBICONV$ac_delim
31378 INTLLIBS!$INTLLIBS$ac_delim
31379 LIBINTL!$LIBINTL$ac_delim
31380 LTLIBINTL!$LTLIBINTL$ac_delim
31381 POSUB!$POSUB$ac_delim
31382 GLIBC2!$GLIBC2$ac_delim
31383 ALLOCA!$ALLOCA$ac_delim
31384 GLIBC21!$GLIBC21$ac_delim
31385 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31386 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31387 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31388 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31389 INTLBISON!$INTLBISON$ac_delim
31390 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31391 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31392 CATOBJEXT!$CATOBJEXT$ac_delim
31393 DATADIRNAME!$DATADIRNAME$ac_delim
31394 INSTOBJEXT!$INSTOBJEXT$ac_delim
31395 GENCAT!$GENCAT$ac_delim
31396 INTLOBJS!$INTLOBJS$ac_delim
31397 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31398 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31399 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31400 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31401 GNOME_LIBS!$GNOME_LIBS$ac_delim
31402 GNOME_DIR!$GNOME_DIR$ac_delim
31403 BAT_DIR!$BAT_DIR$ac_delim
31404 QWT_INC!$QWT_INC$ac_delim
31405 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31406 QWT_LIB!$QWT_LIB$ac_delim
31407 QWT!$QWT$ac_delim
31408 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31409 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31410 WX_DIR!$WX_DIR$ac_delim
31411 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31412 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31413 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31414 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31415 STATIC_FD!$STATIC_FD$ac_delim
31416 STATIC_SD!$STATIC_SD$ac_delim
31417 STATIC_DIR!$STATIC_DIR$ac_delim
31418 STATIC_CONS!$STATIC_CONS$ac_delim
31419 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31420 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31421 ALL_DIRS!$ALL_DIRS$ac_delim
31422 DIRD_DIR!$DIRD_DIR$ac_delim
31423 DIR_TOOLS!$DIR_TOOLS$ac_delim
31424 STORED_DIR!$STORED_DIR$ac_delim
31425 CONS_INC!$CONS_INC$ac_delim
31426 CONS_OBJ!$CONS_OBJ$ac_delim
31427 CONS_SRC!$CONS_SRC$ac_delim
31428 CONS_LIBS!$CONS_LIBS$ac_delim
31429 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31430 READLINE_SRC!$READLINE_SRC$ac_delim
31431 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31432 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31433 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31434 OPENSSL_INC!$OPENSSL_INC$ac_delim
31435 working_dir!$working_dir$ac_delim
31436 _ACEOF
31437
31438   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31439     break
31440   elif $ac_last_try; then
31441     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31442 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31443    { (exit 1); exit 1; }; }
31444   else
31445     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31446   fi
31447 done
31448
31449 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31450 if test -n "$ac_eof"; then
31451   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31452   ac_eof=`expr $ac_eof + 1`
31453 fi
31454
31455 cat >>$CONFIG_STATUS <<_ACEOF
31456 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31458 _ACEOF
31459 sed '
31460 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31461 s/^/s,@/; s/!/@,|#_!!_#|/
31462 :n
31463 t n
31464 s/'"$ac_delim"'$/,g/; t
31465 s/$/\\/; p
31466 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31467 ' >>$CONFIG_STATUS <conf$$subs.sed
31468 rm -f conf$$subs.sed
31469 cat >>$CONFIG_STATUS <<_ACEOF
31470 CEOF$ac_eof
31471 _ACEOF
31472
31473
31474 ac_delim='%!_!# '
31475 for ac_last_try in false false false false false :; do
31476   cat >conf$$subs.sed <<_ACEOF
31477 archivedir!$archivedir$ac_delim
31478 scriptdir!$scriptdir$ac_delim
31479 dump_email!$dump_email$ac_delim
31480 job_email!$job_email$ac_delim
31481 smtp_host!$smtp_host$ac_delim
31482 piddir!$piddir$ac_delim
31483 subsysdir!$subsysdir$ac_delim
31484 baseport!$baseport$ac_delim
31485 dir_port!$dir_port$ac_delim
31486 fd_port!$fd_port$ac_delim
31487 sd_port!$sd_port$ac_delim
31488 dir_password!$dir_password$ac_delim
31489 fd_password!$fd_password$ac_delim
31490 sd_password!$sd_password$ac_delim
31491 mon_dir_password!$mon_dir_password$ac_delim
31492 mon_fd_password!$mon_fd_password$ac_delim
31493 mon_sd_password!$mon_sd_password$ac_delim
31494 db_name!$db_name$ac_delim
31495 db_user!$db_user$ac_delim
31496 dir_user!$dir_user$ac_delim
31497 dir_group!$dir_group$ac_delim
31498 sd_user!$sd_user$ac_delim
31499 sd_group!$sd_group$ac_delim
31500 fd_user!$fd_user$ac_delim
31501 fd_group!$fd_group$ac_delim
31502 SBINPERM!$SBINPERM$ac_delim
31503 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31504 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31505 SQL_BINDIR!$SQL_BINDIR$ac_delim
31506 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31507 DB_PROG!$DB_PROG$ac_delim
31508 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31509 cats!$cats$ac_delim
31510 DB_TYPE!$DB_TYPE$ac_delim
31511 GETCONF!$GETCONF$ac_delim
31512 XMKMF!$XMKMF$ac_delim
31513 X_CFLAGS!$X_CFLAGS$ac_delim
31514 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31515 X_LIBS!$X_LIBS$ac_delim
31516 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31517 LIBOBJS!$LIBOBJS$ac_delim
31518 FDLIBS!$FDLIBS$ac_delim
31519 DEBUG!$DEBUG$ac_delim
31520 DINCLUDE!$DINCLUDE$ac_delim
31521 DLIB!$DLIB$ac_delim
31522 DB_LIBS!$DB_LIBS$ac_delim
31523 WCFLAGS!$WCFLAGS$ac_delim
31524 WLDFLAGS!$WLDFLAGS$ac_delim
31525 WRAPLIBS!$WRAPLIBS$ac_delim
31526 OBJLIST!$OBJLIST$ac_delim
31527 hostname!$hostname$ac_delim
31528 TAPEDRIVE!$TAPEDRIVE$ac_delim
31529 PSCMD!$PSCMD$ac_delim
31530 WIN32!$WIN32$ac_delim
31531 MACOSX!$MACOSX$ac_delim
31532 DISTNAME!$DISTNAME$ac_delim
31533 DISTVER!$DISTVER$ac_delim
31534 LTLIBOBJS!$LTLIBOBJS$ac_delim
31535 _ACEOF
31536
31537   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 58; then
31538     break
31539   elif $ac_last_try; then
31540     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31541 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31542    { (exit 1); exit 1; }; }
31543   else
31544     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31545   fi
31546 done
31547
31548 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31549 if test -n "$ac_eof"; then
31550   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31551   ac_eof=`expr $ac_eof + 1`
31552 fi
31553
31554 cat >>$CONFIG_STATUS <<_ACEOF
31555 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31556 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31557 _ACEOF
31558 sed '
31559 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31560 s/^/s,@/; s/!/@,|#_!!_#|/
31561 :n
31562 t n
31563 s/'"$ac_delim"'$/,g/; t
31564 s/$/\\/; p
31565 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31566 ' >>$CONFIG_STATUS <conf$$subs.sed
31567 rm -f conf$$subs.sed
31568 cat >>$CONFIG_STATUS <<_ACEOF
31569 :end
31570 s/|#_!!_#|//g
31571 CEOF$ac_eof
31572 _ACEOF
31573
31574
31575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31577 # trailing colons and then remove the whole line if VPATH becomes empty
31578 # (actually we leave an empty line to preserve line numbers).
31579 if test "x$srcdir" = x.; then
31580   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31581 s/:*\$(srcdir):*/:/
31582 s/:*\${srcdir}:*/:/
31583 s/:*@srcdir@:*/:/
31584 s/^\([^=]*=[     ]*\):*/\1/
31585 s/:*$//
31586 s/^[^=]*=[       ]*$//
31587 }'
31588 fi
31589
31590 cat >>$CONFIG_STATUS <<\_ACEOF
31591 fi # test -n "$CONFIG_FILES"
31592
31593
31594 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31595 do
31596   case $ac_tag in
31597   :[FHLC]) ac_mode=$ac_tag; continue;;
31598   esac
31599   case $ac_mode$ac_tag in
31600   :[FHL]*:*);;
31601   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31602 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31603    { (exit 1); exit 1; }; };;
31604   :[FH]-) ac_tag=-:-;;
31605   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31606   esac
31607   ac_save_IFS=$IFS
31608   IFS=:
31609   set x $ac_tag
31610   IFS=$ac_save_IFS
31611   shift
31612   ac_file=$1
31613   shift
31614
31615   case $ac_mode in
31616   :L) ac_source=$1;;
31617   :[FH])
31618     ac_file_inputs=
31619     for ac_f
31620     do
31621       case $ac_f in
31622       -) ac_f="$tmp/stdin";;
31623       *) # Look for the file first in the build tree, then in the source tree
31624          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31625          # because $ac_f cannot contain `:'.
31626          test -f "$ac_f" ||
31627            case $ac_f in
31628            [\\/$]*) false;;
31629            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31630            esac ||
31631            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31632 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31633    { (exit 1); exit 1; }; };;
31634       esac
31635       ac_file_inputs="$ac_file_inputs $ac_f"
31636     done
31637
31638     # Let's still pretend it is `configure' which instantiates (i.e., don't
31639     # use $as_me), people would be surprised to read:
31640     #    /* config.h.  Generated by config.status.  */
31641     configure_input="Generated from "`IFS=:
31642           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31643     if test x"$ac_file" != x-; then
31644       configure_input="$ac_file.  $configure_input"
31645       { echo "$as_me:$LINENO: creating $ac_file" >&5
31646 echo "$as_me: creating $ac_file" >&6;}
31647     fi
31648
31649     case $ac_tag in
31650     *:-:* | *:-) cat >"$tmp/stdin";;
31651     esac
31652     ;;
31653   esac
31654
31655   ac_dir=`$as_dirname -- "$ac_file" ||
31656 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31657          X"$ac_file" : 'X\(//\)[^/]' \| \
31658          X"$ac_file" : 'X\(//\)$' \| \
31659          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31660 echo X"$ac_file" |
31661     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31662             s//\1/
31663             q
31664           }
31665           /^X\(\/\/\)[^/].*/{
31666             s//\1/
31667             q
31668           }
31669           /^X\(\/\/\)$/{
31670             s//\1/
31671             q
31672           }
31673           /^X\(\/\).*/{
31674             s//\1/
31675             q
31676           }
31677           s/.*/./; q'`
31678   { as_dir="$ac_dir"
31679   case $as_dir in #(
31680   -*) as_dir=./$as_dir;;
31681   esac
31682   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31683     as_dirs=
31684     while :; do
31685       case $as_dir in #(
31686       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31687       *) as_qdir=$as_dir;;
31688       esac
31689       as_dirs="'$as_qdir' $as_dirs"
31690       as_dir=`$as_dirname -- "$as_dir" ||
31691 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31692          X"$as_dir" : 'X\(//\)[^/]' \| \
31693          X"$as_dir" : 'X\(//\)$' \| \
31694          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31695 echo X"$as_dir" |
31696     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31697             s//\1/
31698             q
31699           }
31700           /^X\(\/\/\)[^/].*/{
31701             s//\1/
31702             q
31703           }
31704           /^X\(\/\/\)$/{
31705             s//\1/
31706             q
31707           }
31708           /^X\(\/\).*/{
31709             s//\1/
31710             q
31711           }
31712           s/.*/./; q'`
31713       test -d "$as_dir" && break
31714     done
31715     test -z "$as_dirs" || eval "mkdir $as_dirs"
31716   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31717 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31718    { (exit 1); exit 1; }; }; }
31719   ac_builddir=.
31720
31721 case "$ac_dir" in
31722 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31723 *)
31724   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31725   # A ".." for each directory in $ac_dir_suffix.
31726   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31727   case $ac_top_builddir_sub in
31728   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31729   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31730   esac ;;
31731 esac
31732 ac_abs_top_builddir=$ac_pwd
31733 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31734 # for backward compatibility:
31735 ac_top_builddir=$ac_top_build_prefix
31736
31737 case $srcdir in
31738   .)  # We are building in place.
31739     ac_srcdir=.
31740     ac_top_srcdir=$ac_top_builddir_sub
31741     ac_abs_top_srcdir=$ac_pwd ;;
31742   [\\/]* | ?:[\\/]* )  # Absolute name.
31743     ac_srcdir=$srcdir$ac_dir_suffix;
31744     ac_top_srcdir=$srcdir
31745     ac_abs_top_srcdir=$srcdir ;;
31746   *) # Relative name.
31747     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31748     ac_top_srcdir=$ac_top_build_prefix$srcdir
31749     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31750 esac
31751 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31752
31753
31754   case $ac_mode in
31755   :F)
31756   #
31757   # CONFIG_FILE
31758   #
31759
31760   case $INSTALL in
31761   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31762   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31763   esac
31764 _ACEOF
31765
31766 cat >>$CONFIG_STATUS <<\_ACEOF
31767 # If the template does not know about datarootdir, expand it.
31768 # FIXME: This hack should be removed a few years after 2.60.
31769 ac_datarootdir_hack=; ac_datarootdir_seen=
31770
31771 case `sed -n '/datarootdir/ {
31772   p
31773   q
31774 }
31775 /@datadir@/p
31776 /@docdir@/p
31777 /@infodir@/p
31778 /@localedir@/p
31779 /@mandir@/p
31780 ' $ac_file_inputs` in
31781 *datarootdir*) ac_datarootdir_seen=yes;;
31782 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31783   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31784 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31785 _ACEOF
31786 cat >>$CONFIG_STATUS <<_ACEOF
31787   ac_datarootdir_hack='
31788   s&@datadir@&$datadir&g
31789   s&@docdir@&$docdir&g
31790   s&@infodir@&$infodir&g
31791   s&@localedir@&$localedir&g
31792   s&@mandir@&$mandir&g
31793     s&\\\${datarootdir}&$datarootdir&g' ;;
31794 esac
31795 _ACEOF
31796
31797 # Neutralize VPATH when `$srcdir' = `.'.
31798 # Shell code in configure.ac might set extrasub.
31799 # FIXME: do we really want to maintain this feature?
31800 cat >>$CONFIG_STATUS <<_ACEOF
31801   sed "$ac_vpsub
31802 $extrasub
31803 _ACEOF
31804 cat >>$CONFIG_STATUS <<\_ACEOF
31805 :t
31806 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31807 s&@configure_input@&$configure_input&;t t
31808 s&@top_builddir@&$ac_top_builddir_sub&;t t
31809 s&@srcdir@&$ac_srcdir&;t t
31810 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31811 s&@top_srcdir@&$ac_top_srcdir&;t t
31812 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31813 s&@builddir@&$ac_builddir&;t t
31814 s&@abs_builddir@&$ac_abs_builddir&;t t
31815 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31816 s&@INSTALL@&$ac_INSTALL&;t t
31817 $ac_datarootdir_hack
31818 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31819
31820 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31821   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31822   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31823   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31824 which seems to be undefined.  Please make sure it is defined." >&5
31825 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31826 which seems to be undefined.  Please make sure it is defined." >&2;}
31827
31828   rm -f "$tmp/stdin"
31829   case $ac_file in
31830   -) cat "$tmp/out"; rm -f "$tmp/out";;
31831   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31832   esac
31833  ;;
31834   :H)
31835   #
31836   # CONFIG_HEADER
31837   #
31838 _ACEOF
31839
31840 # Transform confdefs.h into a sed script `conftest.defines', that
31841 # substitutes the proper values into config.h.in to produce config.h.
31842 rm -f conftest.defines conftest.tail
31843 # First, append a space to every undef/define line, to ease matching.
31844 echo 's/$/ /' >conftest.defines
31845 # Then, protect against being on the right side of a sed subst, or in
31846 # an unquoted here document, in config.status.  If some macros were
31847 # called several times there might be several #defines for the same
31848 # symbol, which is useless.  But do not sort them, since the last
31849 # AC_DEFINE must be honored.
31850 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31851 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31852 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31853 # PARAMS is the parameter list in the macro definition--in most cases, it's
31854 # just an empty string.
31855 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31856 ac_dB='\\)[      (].*,\\1define\\2'
31857 ac_dC=' '
31858 ac_dD=' ,'
31859
31860 uniq confdefs.h |
31861   sed -n '
31862         t rset
31863         :rset
31864         s/^[     ]*#[    ]*define[       ][      ]*//
31865         t ok
31866         d
31867         :ok
31868         s/[\\&,]/\\&/g
31869         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31870         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31871   ' >>conftest.defines
31872
31873 # Remove the space that was appended to ease matching.
31874 # Then replace #undef with comments.  This is necessary, for
31875 # example, in the case of _POSIX_SOURCE, which is predefined and required
31876 # on some systems where configure will not decide to define it.
31877 # (The regexp can be short, since the line contains either #define or #undef.)
31878 echo 's/ $//
31879 s,^[     #]*u.*,/* & */,' >>conftest.defines
31880
31881 # Break up conftest.defines:
31882 ac_max_sed_lines=50
31883
31884 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31885 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31886 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31887 # et cetera.
31888 ac_in='$ac_file_inputs'
31889 ac_out='"$tmp/out1"'
31890 ac_nxt='"$tmp/out2"'
31891
31892 while :
31893 do
31894   # Write a here document:
31895     cat >>$CONFIG_STATUS <<_ACEOF
31896     # First, check the format of the line:
31897     cat >"\$tmp/defines.sed" <<\\CEOF
31898 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31899 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31900 b
31901 :def
31902 _ACEOF
31903   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31904   echo 'CEOF
31905     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31906   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31907   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31908   grep . conftest.tail >/dev/null || break
31909   rm -f conftest.defines
31910   mv conftest.tail conftest.defines
31911 done
31912 rm -f conftest.defines conftest.tail
31913
31914 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31915 cat >>$CONFIG_STATUS <<\_ACEOF
31916   if test x"$ac_file" != x-; then
31917     echo "/* $configure_input  */" >"$tmp/config.h"
31918     cat "$ac_result" >>"$tmp/config.h"
31919     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31920       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31921 echo "$as_me: $ac_file is unchanged" >&6;}
31922     else
31923       rm -f $ac_file
31924       mv "$tmp/config.h" $ac_file
31925     fi
31926   else
31927     echo "/* $configure_input  */"
31928     cat "$ac_result"
31929   fi
31930   rm -f "$tmp/out12"
31931  ;;
31932
31933   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31934 echo "$as_me: executing $ac_file commands" >&6;}
31935  ;;
31936   esac
31937
31938
31939   case $ac_file$ac_mode in
31940     "default-1":C)
31941     for ac_file in $CONFIG_FILES; do
31942       # Support "outfile[:infile[:infile...]]"
31943       case "$ac_file" in
31944         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31945       esac
31946       # PO directories have a Makefile.in generated from Makefile.in.in.
31947       case "$ac_file" in */Makefile.in)
31948         # Adjust a relative srcdir.
31949         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31950         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31951         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31952         # In autoconf-2.13 it is called $ac_given_srcdir.
31953         # In autoconf-2.50 it is called $srcdir.
31954         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31955         case "$ac_given_srcdir" in
31956           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31957           /*) top_srcdir="$ac_given_srcdir" ;;
31958           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31959         esac
31960         # Treat a directory as a PO directory if and only if it has a
31961         # POTFILES.in file. This allows packages to have multiple PO
31962         # directories under different names or in different locations.
31963         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31964           rm -f "$ac_dir/POTFILES"
31965           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31966           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31967           POMAKEFILEDEPS="POTFILES.in"
31968           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31969           # on $ac_dir but don't depend on user-specified configuration
31970           # parameters.
31971           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31972             # The LINGUAS file contains the set of available languages.
31973             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31974               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31975             fi
31976             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31977             # Hide the ALL_LINGUAS assigment from automake.
31978             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31979             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31980           else
31981             # The set of available languages was given in configure.in.
31982             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31983           fi
31984           # Compute POFILES
31985           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31986           # Compute UPDATEPOFILES
31987           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31988           # Compute DUMMYPOFILES
31989           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31990           # Compute GMOFILES
31991           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31992           case "$ac_given_srcdir" in
31993             .) srcdirpre= ;;
31994             *) srcdirpre='$(srcdir)/' ;;
31995           esac
31996           POFILES=
31997           UPDATEPOFILES=
31998           DUMMYPOFILES=
31999           GMOFILES=
32000           for lang in $ALL_LINGUAS; do
32001             POFILES="$POFILES $srcdirpre$lang.po"
32002             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32003             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32004             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32005           done
32006           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32007           # environment variable.
32008           INST_LINGUAS=
32009           if test -n "$ALL_LINGUAS"; then
32010             for presentlang in $ALL_LINGUAS; do
32011               useit=no
32012               if test "%UNSET%" != "$LINGUAS"; then
32013                 desiredlanguages="$LINGUAS"
32014               else
32015                 desiredlanguages="$ALL_LINGUAS"
32016               fi
32017               for desiredlang in $desiredlanguages; do
32018                 # Use the presentlang catalog if desiredlang is
32019                 #   a. equal to presentlang, or
32020                 #   b. a variant of presentlang (because in this case,
32021                 #      presentlang can be used as a fallback for messages
32022                 #      which are not translated in the desiredlang catalog).
32023                 case "$desiredlang" in
32024                   "$presentlang"*) useit=yes;;
32025                 esac
32026               done
32027               if test $useit = yes; then
32028                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32029               fi
32030             done
32031           fi
32032           CATALOGS=
32033           if test -n "$INST_LINGUAS"; then
32034             for lang in $INST_LINGUAS; do
32035               CATALOGS="$CATALOGS $lang.gmo"
32036             done
32037           fi
32038           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32039           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"
32040           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32041             if test -f "$f"; then
32042               case "$f" in
32043                 *.orig | *.bak | *~) ;;
32044                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32045               esac
32046             fi
32047           done
32048         fi
32049         ;;
32050       esac
32051     done ;;
32052     "default":C)
32053  ;;
32054
32055   esac
32056 done # for ac_tag
32057
32058
32059 { (exit 0); exit 0; }
32060 _ACEOF
32061 chmod +x $CONFIG_STATUS
32062 ac_clean_files=$ac_clean_files_save
32063
32064
32065 # configure is writing to config.log, and then calls config.status.
32066 # config.status does its own redirection, appending to config.log.
32067 # Unfortunately, on DOS this fails, as config.log is still kept open
32068 # by configure, so config.status won't be able to write to it; its
32069 # output is simply discarded.  So we exec the FD to /dev/null,
32070 # effectively closing config.log, so it can be properly (re)opened and
32071 # appended to by config.status.  When coming back to configure, we
32072 # need to make the FD available again.
32073 if test "$no_create" != yes; then
32074   ac_cs_success=:
32075   ac_config_status_args=
32076   test "$silent" = yes &&
32077     ac_config_status_args="$ac_config_status_args --quiet"
32078   exec 5>/dev/null
32079   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32080   exec 5>>config.log
32081   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32082   # would make configure fail if this is the last instruction.
32083   $ac_cs_success || { (exit 1); exit 1; }
32084 fi
32085
32086
32087 if test "${support_bat}" = "yes" ; then
32088   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32089   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32090   exit 1
32091   fi
32092
32093   QMAKEBIN="qmake"
32094
32095   if test "x$QMAKEQT4" != "xnone"; then
32096     QMAKEBIN=qmake-qt4
32097   fi
32098
32099   cd src/qt-console
32100   chmod 755 install_conf_file build-depkgs-qt-console
32101   echo "Creating bat Makefile"
32102   $QMAKEBIN
32103   make clean
32104   cd ${BUILD_DIR}
32105 fi
32106
32107 # configure and prepare libtokyodbm for bacula
32108 pushd src/lib/tokyocabinet > /dev/null
32109 tcdbm_opt=
32110 if test x$largefile_support = xyes; then
32111    tcdbm_opt=--enable-off64
32112 fi
32113 ./configure $tcdbm_opt
32114 popd > /dev/null
32115 # need tokyo header files for "make depend"
32116 cp src/lib/tokyocabinet/t*.h src/lib
32117
32118 echo "Doing make of dependencies"
32119 ${MAKE:-make} depend
32120
32121 cd scripts
32122 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32123 chmod 755 dvd-handler dvd-simulator
32124 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32125 cd ..
32126
32127 c=updatedb
32128 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32129 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32130
32131 c=src/cats
32132
32133 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32134 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32135
32136 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32137 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32138
32139 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32140 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32141
32142 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32143 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32144
32145 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32146 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32147
32148 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32149 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32150
32151 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32152 chmod 755 $c/sqlite
32153 chmod 755 $c/mysql
32154
32155 chmod 755 src/win32/build-depkgs-mingw32
32156
32157
32158
32159 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32160    largefile_support="yes"
32161 fi
32162
32163 #
32164 # A whole lot of hand springs to get the compiler version.
32165 #  This is because gcc changed the output in version 3.0
32166 #
32167 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32168 if test "x${CCVERSION}" = "x" ; then
32169   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32170 fi
32171 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32172 if test x"${CXXVERSION}" = x ; then
32173   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32174 fi
32175
32176 if test "x${subsysdir}" = "x${sbindir}" ; then
32177    echo " "
32178    echo " "
32179    echo "You have set --sbindir and --with-subsys-dir"
32180    echo "  both equal to: ${subsysdir} "
32181    echo "  This is not permitted. Please reconfigure."
32182    echo " "
32183    echo "Aborting configuration ..."
32184    echo " "
32185    echo " "
32186    exit 1
32187 fi
32188
32189 if test "x${db_type}" = "xInternal" ; then
32190    echo " "
32191    echo " "
32192    echo "You have not specified either --enable-client-only or one of the"
32193    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32194    echo "  This is not permitted. Please reconfigure."
32195    echo " "
32196    echo "Aborting the configuration ..."
32197    echo " "
32198    echo " "
32199    exit 1
32200 fi
32201
32202 echo "
32203 Configuration on `date`:
32204
32205   Host:                       $host -- ${DISTNAME} ${DISTVER}
32206   Bacula version:             ${VERSION} (${DATE})
32207   Source code location:       ${srcdir}
32208   Install binaries:           ${sbindir}
32209   Install config files:       ${sysconfdir}
32210   Scripts directory:          ${scriptdir}
32211   Archive directory:          ${archivedir}
32212   Working directory:          ${working_dir}
32213   PID directory:              ${piddir}
32214   Subsys directory:           ${subsysdir}
32215   Man directory:              ${mandir}
32216   Data directory:             ${datadir}
32217   C Compiler:                 ${CC} ${CCVERSION}
32218   C++ Compiler:               ${CXX} ${CXXVERSION}
32219   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32220   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32221   Libraries:                  ${LIBS}
32222   Statically Linked Tools:    ${support_static_tools}
32223   Statically Linked FD:       ${support_static_fd}
32224   Statically Linked SD:       ${support_static_sd}
32225   Statically Linked DIR:      ${support_static_dir}
32226   Statically Linked CONS:     ${support_static_cons}
32227   Database type:              ${db_type}
32228   Database lib:               ${DB_LIBS}
32229   Database name:              ${db_name}
32230   Database user:              ${db_user}
32231
32232   Job Output Email:           ${job_email}
32233   Traceback Email:            ${dump_email}
32234   SMTP Host Address:          ${smtp_host}
32235
32236   Director Port:              ${dir_port}
32237   File daemon Port:           ${fd_port}
32238   Storage daemon Port:        ${sd_port}
32239
32240   Director User:              ${dir_user}
32241   Director Group:             ${dir_group}
32242   Storage Daemon User:        ${sd_user}
32243   Storage DaemonGroup:        ${sd_group}
32244   File Daemon User:           ${fd_user}
32245   File Daemon Group:          ${fd_group}
32246
32247   SQL binaries Directory      ${SQL_BINDIR}
32248
32249   Large file support:         $largefile_support
32250   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32251   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32252   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32253   TLS support:                ${support_tls}
32254   Encryption support:         ${support_crypto}
32255   ZLIB support:               ${have_zlib}
32256   enable-smartalloc:          ${support_smartalloc}
32257   bat support:                ${support_bat} ${QWT_LDFLAGS}
32258   enable-gnome:               ${support_gnome} ${gnome_version}
32259   enable-bwx-console:         ${support_wx_console} ${wx_version}
32260   enable-tray-monitor:        ${support_tray_monitor}
32261   client-only:                ${build_client_only}
32262   build-dird:                 ${build_dird}
32263   build-stored:               ${build_stored}
32264   ACL support:                ${have_acl}
32265   Python support:             ${support_python} ${PYTHON_LIBS}
32266   Batch insert enabled:       ${support_batch_insert}
32267
32268   " > config.out
32269
32270 cat config.out