]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
ebl Fix typo in configure.in that breaks --with-db-password option
[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 db_password
827 dir_user
828 dir_group
829 sd_user
830 sd_group
831 fd_user
832 fd_group
833 SBINPERM
834 SQL_LFLAGS
835 SQL_INCLUDE
836 SQL_BINDIR
837 cats
838 DB_TYPE
839 GETCONF
840 XMKMF
841 X_CFLAGS
842 X_PRE_LIBS
843 X_LIBS
844 X_EXTRA_LIBS
845 LIBOBJS
846 FDLIBS
847 DEBUG
848 DINCLUDE
849 DLIB
850 DB_LIBS
851 WCFLAGS
852 WLDFLAGS
853 WRAPLIBS
854 OBJLIST
855 hostname
856 TAPEDRIVE
857 PSCMD
858 WIN32
859 MACOSX
860 DISTNAME
861 DISTVER
862 LTLIBOBJS'
863 ac_subst_files='MCOMMON'
864       ac_precious_vars='build_alias
865 host_alias
866 target_alias
867 CC
868 CFLAGS
869 LDFLAGS
870 LIBS
871 CPPFLAGS
872 CXX
873 CXXFLAGS
874 CCC
875 CPP
876 WXCONFIG
877 WXFLAGS
878 XMKMF'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931   # If the previous option needs an argument, assign it.
932   if test -n "$ac_prev"; then
933     eval $ac_prev=\$ac_option
934     ac_prev=
935     continue
936   fi
937
938   case $ac_option in
939   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940   *)    ac_optarg=yes ;;
941   esac
942
943   # Accept the important Cygnus configure options, so we can diagnose typos.
944
945   case $ac_dashdash$ac_option in
946   --)
947     ac_dashdash=yes ;;
948
949   -bindir | --bindir | --bindi | --bind | --bin | --bi)
950     ac_prev=bindir ;;
951   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
952     bindir=$ac_optarg ;;
953
954   -build | --build | --buil | --bui | --bu)
955     ac_prev=build_alias ;;
956   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957     build_alias=$ac_optarg ;;
958
959   -cache-file | --cache-file | --cache-fil | --cache-fi \
960   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961     ac_prev=cache_file ;;
962   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964     cache_file=$ac_optarg ;;
965
966   --config-cache | -C)
967     cache_file=config.cache ;;
968
969   -datadir | --datadir | --datadi | --datad)
970     ac_prev=datadir ;;
971   -datadir=* | --datadir=* | --datadi=* | --datad=*)
972     datadir=$ac_optarg ;;
973
974   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975   | --dataroo | --dataro | --datar)
976     ac_prev=datarootdir ;;
977   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979     datarootdir=$ac_optarg ;;
980
981   -disable-* | --disable-*)
982     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983     # Reject names that are not valid shell variable names.
984     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986    { (exit 1); exit 1; }; }
987     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
988     eval enable_$ac_feature=no ;;
989
990   -docdir | --docdir | --docdi | --doc | --do)
991     ac_prev=docdir ;;
992   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
993     docdir=$ac_optarg ;;
994
995   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
996     ac_prev=dvidir ;;
997   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
998     dvidir=$ac_optarg ;;
999
1000   -enable-* | --enable-*)
1001     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002     # Reject names that are not valid shell variable names.
1003     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005    { (exit 1); exit 1; }; }
1006     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007     eval enable_$ac_feature=\$ac_optarg ;;
1008
1009   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011   | --exec | --exe | --ex)
1012     ac_prev=exec_prefix ;;
1013   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015   | --exec=* | --exe=* | --ex=*)
1016     exec_prefix=$ac_optarg ;;
1017
1018   -gas | --gas | --ga | --g)
1019     # Obsolete; use --with-gas.
1020     with_gas=yes ;;
1021
1022   -help | --help | --hel | --he | -h)
1023     ac_init_help=long ;;
1024   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025     ac_init_help=recursive ;;
1026   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027     ac_init_help=short ;;
1028
1029   -host | --host | --hos | --ho)
1030     ac_prev=host_alias ;;
1031   -host=* | --host=* | --hos=* | --ho=*)
1032     host_alias=$ac_optarg ;;
1033
1034   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1035     ac_prev=htmldir ;;
1036   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1037   | --ht=*)
1038     htmldir=$ac_optarg ;;
1039
1040   -includedir | --includedir | --includedi | --included | --include \
1041   | --includ | --inclu | --incl | --inc)
1042     ac_prev=includedir ;;
1043   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044   | --includ=* | --inclu=* | --incl=* | --inc=*)
1045     includedir=$ac_optarg ;;
1046
1047   -infodir | --infodir | --infodi | --infod | --info | --inf)
1048     ac_prev=infodir ;;
1049   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050     infodir=$ac_optarg ;;
1051
1052   -libdir | --libdir | --libdi | --libd)
1053     ac_prev=libdir ;;
1054   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055     libdir=$ac_optarg ;;
1056
1057   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058   | --libexe | --libex | --libe)
1059     ac_prev=libexecdir ;;
1060   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061   | --libexe=* | --libex=* | --libe=*)
1062     libexecdir=$ac_optarg ;;
1063
1064   -localedir | --localedir | --localedi | --localed | --locale)
1065     ac_prev=localedir ;;
1066   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067     localedir=$ac_optarg ;;
1068
1069   -localstatedir | --localstatedir | --localstatedi | --localstated \
1070   | --localstate | --localstat | --localsta | --localst | --locals)
1071     ac_prev=localstatedir ;;
1072   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074     localstatedir=$ac_optarg ;;
1075
1076   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1077     ac_prev=mandir ;;
1078   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079     mandir=$ac_optarg ;;
1080
1081   -nfp | --nfp | --nf)
1082     # Obsolete; use --without-fp.
1083     with_fp=no ;;
1084
1085   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086   | --no-cr | --no-c | -n)
1087     no_create=yes ;;
1088
1089   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1091     no_recursion=yes ;;
1092
1093   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095   | --oldin | --oldi | --old | --ol | --o)
1096     ac_prev=oldincludedir ;;
1097   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100     oldincludedir=$ac_optarg ;;
1101
1102   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1103     ac_prev=prefix ;;
1104   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105     prefix=$ac_optarg ;;
1106
1107   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108   | --program-pre | --program-pr | --program-p)
1109     ac_prev=program_prefix ;;
1110   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112     program_prefix=$ac_optarg ;;
1113
1114   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115   | --program-suf | --program-su | --program-s)
1116     ac_prev=program_suffix ;;
1117   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119     program_suffix=$ac_optarg ;;
1120
1121   -program-transform-name | --program-transform-name \
1122   | --program-transform-nam | --program-transform-na \
1123   | --program-transform-n | --program-transform- \
1124   | --program-transform | --program-transfor \
1125   | --program-transfo | --program-transf \
1126   | --program-trans | --program-tran \
1127   | --progr-tra | --program-tr | --program-t)
1128     ac_prev=program_transform_name ;;
1129   -program-transform-name=* | --program-transform-name=* \
1130   | --program-transform-nam=* | --program-transform-na=* \
1131   | --program-transform-n=* | --program-transform-=* \
1132   | --program-transform=* | --program-transfor=* \
1133   | --program-transfo=* | --program-transf=* \
1134   | --program-trans=* | --program-tran=* \
1135   | --progr-tra=* | --program-tr=* | --program-t=*)
1136     program_transform_name=$ac_optarg ;;
1137
1138   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1139     ac_prev=pdfdir ;;
1140   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141     pdfdir=$ac_optarg ;;
1142
1143   -psdir | --psdir | --psdi | --psd | --ps)
1144     ac_prev=psdir ;;
1145   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1146     psdir=$ac_optarg ;;
1147
1148   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149   | -silent | --silent | --silen | --sile | --sil)
1150     silent=yes ;;
1151
1152   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153     ac_prev=sbindir ;;
1154   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155   | --sbi=* | --sb=*)
1156     sbindir=$ac_optarg ;;
1157
1158   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160   | --sharedst | --shareds | --shared | --share | --shar \
1161   | --sha | --sh)
1162     ac_prev=sharedstatedir ;;
1163   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166   | --sha=* | --sh=*)
1167     sharedstatedir=$ac_optarg ;;
1168
1169   -site | --site | --sit)
1170     ac_prev=site ;;
1171   -site=* | --site=* | --sit=*)
1172     site=$ac_optarg ;;
1173
1174   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175     ac_prev=srcdir ;;
1176   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177     srcdir=$ac_optarg ;;
1178
1179   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180   | --syscon | --sysco | --sysc | --sys | --sy)
1181     ac_prev=sysconfdir ;;
1182   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184     sysconfdir=$ac_optarg ;;
1185
1186   -target | --target | --targe | --targ | --tar | --ta | --t)
1187     ac_prev=target_alias ;;
1188   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189     target_alias=$ac_optarg ;;
1190
1191   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192     verbose=yes ;;
1193
1194   -version | --version | --versio | --versi | --vers | -V)
1195     ac_init_version=: ;;
1196
1197   -with-* | --with-*)
1198     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199     # Reject names that are not valid shell variable names.
1200     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201       { echo "$as_me: error: invalid package name: $ac_package" >&2
1202    { (exit 1); exit 1; }; }
1203     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204     eval with_$ac_package=\$ac_optarg ;;
1205
1206   -without-* | --without-*)
1207     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208     # Reject names that are not valid shell variable names.
1209     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210       { echo "$as_me: error: invalid package name: $ac_package" >&2
1211    { (exit 1); exit 1; }; }
1212     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213     eval with_$ac_package=no ;;
1214
1215   --x)
1216     # Obsolete; use --with-x.
1217     with_x=yes ;;
1218
1219   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220   | --x-incl | --x-inc | --x-in | --x-i)
1221     ac_prev=x_includes ;;
1222   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224     x_includes=$ac_optarg ;;
1225
1226   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228     ac_prev=x_libraries ;;
1229   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231     x_libraries=$ac_optarg ;;
1232
1233   -*) { echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235    { (exit 1); exit 1; }; }
1236     ;;
1237
1238   *=*)
1239     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240     # Reject names that are not valid shell variable names.
1241     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243    { (exit 1); exit 1; }; }
1244     eval $ac_envvar=\$ac_optarg
1245     export $ac_envvar ;;
1246
1247   *)
1248     # FIXME: should be removed in autoconf 3.0.
1249     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1253     ;;
1254
1255   esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260   { echo "$as_me: error: missing argument to $ac_option" >&2
1261    { (exit 1); exit 1; }; }
1262 fi
1263
1264 # Be sure to have absolute directory names.
1265 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266                 datadir sysconfdir sharedstatedir localstatedir includedir \
1267                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268                 libdir localedir mandir
1269 do
1270   eval ac_val=\$$ac_var
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276    { (exit 1); exit 1; }; }
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288   if test "x$build_alias" = x; then
1289     cross_compiling=maybe
1290     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291     If a cross compiler is detected then cross compile mode will be used." >&2
1292   elif test "x$build_alias" != "x$host_alias"; then
1293     cross_compiling=yes
1294   fi
1295 fi
1296
1297 ac_tool_prefix=
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300 test "$silent" = yes && exec 6>/dev/null
1301
1302
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306   { echo "$as_me: error: Working directory cannot be determined" >&2
1307    { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   { echo "$as_me: error: pwd does not report name of working directory" >&2
1310    { (exit 1); exit 1; }; }
1311
1312
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315   ac_srcdir_defaulted=yes
1316   # Try the directory containing this script, then the parent directory.
1317   ac_confdir=`$as_dirname -- "$0" ||
1318 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319          X"$0" : 'X\(//\)[^/]' \| \
1320          X"$0" : 'X\(//\)$' \| \
1321          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1322 echo X"$0" |
1323     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324             s//\1/
1325             q
1326           }
1327           /^X\(\/\/\)[^/].*/{
1328             s//\1/
1329             q
1330           }
1331           /^X\(\/\/\)$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\).*/{
1336             s//\1/
1337             q
1338           }
1339           s/.*/./; q'`
1340   srcdir=$ac_confdir
1341   if test ! -r "$srcdir/$ac_unique_file"; then
1342     srcdir=..
1343   fi
1344 else
1345   ac_srcdir_defaulted=no
1346 fi
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350    { (exit 1); exit 1; }; }
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1355    { (exit 1); exit 1; }; }
1356         pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359   srcdir=.
1360 fi
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369   eval ac_env_${ac_var}_value=\$${ac_var}
1370   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1373
1374 #
1375 # Report the --help message.
1376 #
1377 if test "$ac_init_help" = "long"; then
1378   # Omit some internal or obsolete options to make the list less imposing.
1379   # This message is too long to be a string in the A/UX 3.1 sh.
1380   cat <<_ACEOF
1381 \`configure' configures this package to adapt to many kinds of systems.
1382
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1384
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE.  See below for descriptions of some of the useful variables.
1387
1388 Defaults for the options are specified in brackets.
1389
1390 Configuration:
1391   -h, --help              display this help and exit
1392       --help=short        display options specific to this package
1393       --help=recursive    display the short help of all the included packages
1394   -V, --version           display version information and exit
1395   -q, --quiet, --silent   do not print \`checking...' messages
1396       --cache-file=FILE   cache test results in FILE [disabled]
1397   -C, --config-cache      alias for \`--cache-file=config.cache'
1398   -n, --no-create         do not create output files
1399       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1400
1401 Installation directories:
1402   --prefix=PREFIX         install architecture-independent files in PREFIX
1403                           [$ac_default_prefix]
1404   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1405                           [PREFIX]
1406
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1411
1412 For better control, use the options below.
1413
1414 Fine tuning of the installation directories:
1415   --bindir=DIR           user executables [EPREFIX/bin]
1416   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1417   --libexecdir=DIR       program executables [EPREFIX/libexec]
1418   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1419   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1420   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1421   --libdir=DIR           object code libraries [EPREFIX/lib]
1422   --includedir=DIR       C header files [PREFIX/include]
1423   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1424   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1425   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1426   --infodir=DIR          info documentation [DATAROOTDIR/info]
1427   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1428   --mandir=DIR           man documentation [DATAROOTDIR/man]
1429   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1430   --htmldir=DIR          html documentation [DOCDIR]
1431   --dvidir=DIR           dvi documentation [DOCDIR]
1432   --pdfdir=DIR           pdf documentation [DOCDIR]
1433   --psdir=DIR            ps documentation [DOCDIR]
1434 _ACEOF
1435
1436   cat <<\_ACEOF
1437
1438 X features:
1439   --x-includes=DIR    X include files are in DIR
1440   --x-libraries=DIR   X library files are in DIR
1441
1442 System types:
1443   --build=BUILD     configure for building on BUILD [guessed]
1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445 _ACEOF
1446 fi
1447
1448 if test -n "$ac_init_help"; then
1449
1450   cat <<\_ACEOF
1451
1452 Optional Features:
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --disable-nls           do not use Native Language Support
1456   --disable-rpath         do not hardcode runtime library paths
1457   --enable-gnome          enable build of bgnome-console GUI disabled
1458   --enable-bat  enable build of bat Qt4 GUI disabled
1459   --enable-bwx-console     enable build of wxWidgets console disabled
1460   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1461   --enable-smartalloc     enable smartalloc debugging support disabled
1462   --enable-static-tools   enable static tape tools disabled
1463   --enable-static-fd      enable static File daemon disabled
1464   --enable-static-sd      enable static Storage daemon disabled
1465   --enable-static-dir     enable static Director disabled
1466   --enable-static-cons    enable static Console disabled
1467   --enable-client-only    build client (File daemon) only disabled
1468   --enable-build-dird     enable building of dird (Director) enabled
1469   --enable-build-stored   enable building of stored (Storage daemon) enabled
1470  --disable-conio disable conio support enabled
1471
1472   --enable-ipv6             enable ipv6 support enabled
1473
1474   --disable-readline      disable readline support disable
1475
1476         --enable-batch-insert       enable the DB batch insert code disabled
1477   --disable-largefile     omit support for large files
1478
1479 Optional Packages:
1480   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1481   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1482   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1483   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1484   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1485   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1486   --without-libintl-prefix     don't search for libintl in includedir and libdir
1487   --with-included-gettext use the GNU gettext library included here
1488  --with-qwt[=DIR]                 specify qwt library directory
1489  --with-readline[=DIR]         specify readline library directory
1490
1491   --with-python[=DIR]   Include Python support.  DIR is the Python base
1492                           install directory, default is to search through
1493                           a number of common places for the Python files.
1494   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1495   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1496   --with-working-dir=PATH        specify path of Bacula working directory
1497   --with-archivedir=PATH        specify path of SD archive directory
1498   --with-scriptdir=PATH    specify path of Bacula scripts directory
1499   --with-dump-email=EMAIL        dump email address
1500   --with-job-email=EMAIL         job output email address
1501   --with-smtp-host=HOST          SMTP mail host address
1502   --with-pid-dir=PATH            specify location of Bacula pid files
1503   --with-subsys-dir=PATH         specify location of Bacula subsys file
1504   --with-baseport=PORT           specify base port address for daemons
1505   --with-dir-password=PASSWORD   specify Director's password
1506   --with-fd-password=PASSWORD    specify Client's password
1507   --with-sd-password=PASSWORD    specify Storage daemon's password
1508   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1509   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1510   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1511   --with-db-name=DBNAME        specify database name (default bacula)
1512   --with-db-user=UNAME         specify database user (default bacula)
1513   --with-db-password=UNAME         specify database password (default *none*)
1514   --with-dir-user=USER           specify user for Director daemon
1515   --with-dir-group=GROUP                 specify group for Director daemon
1516   --with-sd-user=USER            specify user for Storage daemon
1517   --with-sd-group=GROUP          specify group for Storage daemon
1518   --with-fd-user=USER            specify user for File daemon
1519   --with-fd-group=GROUP          specify group for File daemon
1520   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1521   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1522                           base install directory, defaults to /usr/local/pgsql
1523
1524   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1525                           install directory, default is to search through
1526                           a number of common places for the MySQL files.
1527
1528   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1529                           install directory, default is to search through
1530                           a number of common places for the MySQL files.
1531
1532   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1533                           install directory, default is to search through
1534                           a number of common places for the SQLite3 files.
1535
1536   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1537                           install directory, default is to search through
1538                           a number of common places for the SQLite files.
1539   --with-x                use the X Window System
1540
1541 Some influential environment variables:
1542   CC          C compiler command
1543   CFLAGS      C compiler flags
1544   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1545               nonstandard directory <lib dir>
1546   LIBS        libraries to pass to the linker, e.g. -l<library>
1547   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548               you have headers in a nonstandard directory <include dir>
1549   CXX         C++ compiler command
1550   CXXFLAGS    C++ compiler flags
1551   CPP         C preprocessor
1552   WXCONFIG    wx-config command. On some systems, you must set it to
1553               wx-config-2.6 to use wxWidgets 2.6.
1554   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1555   XMKMF       Path to xmkmf, Makefile generator for X Window System
1556
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1559
1560 _ACEOF
1561 ac_status=$?
1562 fi
1563
1564 if test "$ac_init_help" = "recursive"; then
1565   # If there are subdirs, report their specific --help.
1566   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567     test -d "$ac_dir" || continue
1568     ac_builddir=.
1569
1570 case "$ac_dir" in
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *)
1573   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1574   # A ".." for each directory in $ac_dir_suffix.
1575   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1576   case $ac_top_builddir_sub in
1577   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1579   esac ;;
1580 esac
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1585
1586 case $srcdir in
1587   .)  # We are building in place.
1588     ac_srcdir=.
1589     ac_top_srcdir=$ac_top_builddir_sub
1590     ac_abs_top_srcdir=$ac_pwd ;;
1591   [\\/]* | ?:[\\/]* )  # Absolute name.
1592     ac_srcdir=$srcdir$ac_dir_suffix;
1593     ac_top_srcdir=$srcdir
1594     ac_abs_top_srcdir=$srcdir ;;
1595   *) # Relative name.
1596     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597     ac_top_srcdir=$ac_top_build_prefix$srcdir
1598     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1599 esac
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1601
1602     cd "$ac_dir" || { ac_status=$?; continue; }
1603     # Check for guested configure.
1604     if test -f "$ac_srcdir/configure.gnu"; then
1605       echo &&
1606       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607     elif test -f "$ac_srcdir/configure"; then
1608       echo &&
1609       $SHELL "$ac_srcdir/configure" --help=recursive
1610     else
1611       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1612     fi || ac_status=$?
1613     cd "$ac_pwd" || { ac_status=$?; break; }
1614   done
1615 fi
1616
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1619   cat <<\_ACEOF
1620 configure
1621 generated by GNU Autoconf 2.61
1622
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF
1628   exit
1629 fi
1630 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1633
1634 It was created by $as_me, which was
1635 generated by GNU Autoconf 2.61.  Invocation command line was
1636
1637   $ $0 $@
1638
1639 _ACEOF
1640 exec 5>>config.log
1641 {
1642 cat <<_ASUNAME
1643 ## --------- ##
1644 ## Platform. ##
1645 ## --------- ##
1646
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1652
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1655
1656 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1657 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1660 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1661 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1662 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1663
1664 _ASUNAME
1665
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   echo "PATH: $as_dir"
1672 done
1673 IFS=$as_save_IFS
1674
1675 } >&5
1676
1677 cat >&5 <<_ACEOF
1678
1679
1680 ## ----------- ##
1681 ## Core tests. ##
1682 ## ----------- ##
1683
1684 _ACEOF
1685
1686
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1692 ac_configure_args=
1693 ac_configure_args0=
1694 ac_configure_args1=
1695 ac_must_keep_next=false
1696 for ac_pass in 1 2
1697 do
1698   for ac_arg
1699   do
1700     case $ac_arg in
1701     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1702     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1703     | -silent | --silent | --silen | --sile | --sil)
1704       continue ;;
1705     *\'*)
1706       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1707     esac
1708     case $ac_pass in
1709     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1710     2)
1711       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1712       if test $ac_must_keep_next = true; then
1713         ac_must_keep_next=false # Got value, back to normal.
1714       else
1715         case $ac_arg in
1716           *=* | --config-cache | -C | -disable-* | --disable-* \
1717           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1718           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1719           | -with-* | --with-* | -without-* | --without-* | --x)
1720             case "$ac_configure_args0 " in
1721               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1722             esac
1723             ;;
1724           -* ) ac_must_keep_next=true ;;
1725         esac
1726       fi
1727       ac_configure_args="$ac_configure_args '$ac_arg'"
1728       ;;
1729     esac
1730   done
1731 done
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1734
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log.  We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741   # Save into config.log some information that might help in debugging.
1742   {
1743     echo
1744
1745     cat <<\_ASBOX
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1749 _ASBOX
1750     echo
1751     # The following way of writing the cache mishandles newlines in values,
1752 (
1753   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754     eval ac_val=\$$ac_var
1755     case $ac_val in #(
1756     *${as_nl}*)
1757       case $ac_var in #(
1758       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1759 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1760       esac
1761       case $ac_var in #(
1762       _ | IFS | as_nl) ;; #(
1763       *) $as_unset $ac_var ;;
1764       esac ;;
1765     esac
1766   done
1767   (set) 2>&1 |
1768     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1769     *${as_nl}ac_space=\ *)
1770       sed -n \
1771         "s/'\''/'\''\\\\'\'''\''/g;
1772           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1773       ;; #(
1774     *)
1775       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1776       ;;
1777     esac |
1778     sort
1779 )
1780     echo
1781
1782     cat <<\_ASBOX
1783 ## ----------------- ##
1784 ## Output variables. ##
1785 ## ----------------- ##
1786 _ASBOX
1787     echo
1788     for ac_var in $ac_subst_vars
1789     do
1790       eval ac_val=\$$ac_var
1791       case $ac_val in
1792       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1793       esac
1794       echo "$ac_var='\''$ac_val'\''"
1795     done | sort
1796     echo
1797
1798     if test -n "$ac_subst_files"; then
1799       cat <<\_ASBOX
1800 ## ------------------- ##
1801 ## File substitutions. ##
1802 ## ------------------- ##
1803 _ASBOX
1804       echo
1805       for ac_var in $ac_subst_files
1806       do
1807         eval ac_val=\$$ac_var
1808         case $ac_val in
1809         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810         esac
1811         echo "$ac_var='\''$ac_val'\''"
1812       done | sort
1813       echo
1814     fi
1815
1816     if test -s confdefs.h; then
1817       cat <<\_ASBOX
1818 ## ----------- ##
1819 ## confdefs.h. ##
1820 ## ----------- ##
1821 _ASBOX
1822       echo
1823       cat confdefs.h
1824       echo
1825     fi
1826     test "$ac_signal" != 0 &&
1827       echo "$as_me: caught signal $ac_signal"
1828     echo "$as_me: exit $exit_status"
1829   } >&5
1830   rm -f core *.core core.conftest.* &&
1831     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1832     exit $exit_status
1833 ' 0
1834 for ac_signal in 1 2 13 15; do
1835   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1836 done
1837 ac_signal=0
1838
1839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1840 rm -f -r conftest* confdefs.h
1841
1842 # Predefined preprocessor variables.
1843
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_NAME "$PACKAGE_NAME"
1846 _ACEOF
1847
1848
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1851 _ACEOF
1852
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_STRING "$PACKAGE_STRING"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1866 _ACEOF
1867
1868
1869 # Let the site file select an alternate cache file if it wants to.
1870 # Prefer explicitly selected file to automatically selected ones.
1871 if test -n "$CONFIG_SITE"; then
1872   set x "$CONFIG_SITE"
1873 elif test "x$prefix" != xNONE; then
1874   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1875 else
1876   set x "$ac_default_prefix/share/config.site" \
1877         "$ac_default_prefix/etc/config.site"
1878 fi
1879 shift
1880 for ac_site_file
1881 do
1882   if test -r "$ac_site_file"; then
1883     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 echo "$as_me: loading site script $ac_site_file" >&6;}
1885     sed 's/^/| /' "$ac_site_file" >&5
1886     . "$ac_site_file"
1887   fi
1888 done
1889
1890 if test -r "$cache_file"; then
1891   # Some versions of bash will fail to source /dev/null (special
1892   # files actually), so we avoid doing that.
1893   if test -f "$cache_file"; then
1894     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 echo "$as_me: loading cache $cache_file" >&6;}
1896     case $cache_file in
1897       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898       *)                      . "./$cache_file";;
1899     esac
1900   fi
1901 else
1902   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 echo "$as_me: creating cache $cache_file" >&6;}
1904   >$cache_file
1905 fi
1906
1907 # Check that the precious variables saved in the cache have kept the same
1908 # value.
1909 ac_cache_corrupted=false
1910 for ac_var in $ac_precious_vars; do
1911   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1912   eval ac_new_set=\$ac_env_${ac_var}_set
1913   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1914   eval ac_new_val=\$ac_env_${ac_var}_value
1915   case $ac_old_set,$ac_new_set in
1916     set,)
1917       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1919       ac_cache_corrupted=: ;;
1920     ,set)
1921       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1923       ac_cache_corrupted=: ;;
1924     ,);;
1925     *)
1926       if test "x$ac_old_val" != "x$ac_new_val"; then
1927         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1928 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1929         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1930 echo "$as_me:   former value:  $ac_old_val" >&2;}
1931         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1932 echo "$as_me:   current value: $ac_new_val" >&2;}
1933         ac_cache_corrupted=:
1934       fi;;
1935   esac
1936   # Pass precious variables to config.status.
1937   if test "$ac_new_set" = set; then
1938     case $ac_new_val in
1939     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940     *) ac_arg=$ac_var=$ac_new_val ;;
1941     esac
1942     case " $ac_configure_args " in
1943       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1944       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1945     esac
1946   fi
1947 done
1948 if $ac_cache_corrupted; then
1949   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953    { (exit 1); exit 1; }; }
1954 fi
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972 ac_ext=c
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1977
1978
1979 BUILD_DIR=`pwd`
1980 cd ..
1981 TOP_DIR=`pwd`
1982 cd ${BUILD_DIR}
1983
1984
1985 ac_aux_dir=
1986 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1987   if test -f "$ac_dir/install-sh"; then
1988     ac_aux_dir=$ac_dir
1989     ac_install_sh="$ac_aux_dir/install-sh -c"
1990     break
1991   elif test -f "$ac_dir/install.sh"; then
1992     ac_aux_dir=$ac_dir
1993     ac_install_sh="$ac_aux_dir/install.sh -c"
1994     break
1995   elif test -f "$ac_dir/shtool"; then
1996     ac_aux_dir=$ac_dir
1997     ac_install_sh="$ac_aux_dir/shtool install -c"
1998     break
1999   fi
2000 done
2001 if test -z "$ac_aux_dir"; then
2002   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2003 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2004    { (exit 1); exit 1; }; }
2005 fi
2006
2007 # These three variables are undocumented and unsupported,
2008 # and are intended to be withdrawn in a future Autoconf release.
2009 # They can cause serious problems if a builder's source tree is in a directory
2010 # whose full name contains unusual characters.
2011 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2012 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2013 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2014
2015
2016 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2017
2018
2019
2020
2021
2022 for ac_prog in true
2023 do
2024   # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2028 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   case $TRUEPRG in
2032   [\\/]* | ?:[\\/]*)
2033   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2034   ;;
2035   *)
2036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037 for as_dir in $PATH
2038 do
2039   IFS=$as_save_IFS
2040   test -z "$as_dir" && as_dir=.
2041   for ac_exec_ext in '' $ac_executable_extensions; do
2042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045     break 2
2046   fi
2047 done
2048 done
2049 IFS=$as_save_IFS
2050
2051   ;;
2052 esac
2053 fi
2054 TRUEPRG=$ac_cv_path_TRUEPRG
2055 if test -n "$TRUEPRG"; then
2056   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2057 echo "${ECHO_T}$TRUEPRG" >&6; }
2058 else
2059   { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2061 fi
2062
2063
2064   test -n "$TRUEPRG" && break
2065 done
2066 test -n "$TRUEPRG" || TRUEPRG=":"
2067
2068 for ac_prog in false
2069 do
2070   # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   case $FALSEPRG in
2078   [\\/]* | ?:[\\/]*)
2079   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2080   ;;
2081   *)
2082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 for as_dir in $PATH
2084 do
2085   IFS=$as_save_IFS
2086   test -z "$as_dir" && as_dir=.
2087   for ac_exec_ext in '' $ac_executable_extensions; do
2088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2091     break 2
2092   fi
2093 done
2094 done
2095 IFS=$as_save_IFS
2096
2097   ;;
2098 esac
2099 fi
2100 FALSEPRG=$ac_cv_path_FALSEPRG
2101 if test -n "$FALSEPRG"; then
2102   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2103 echo "${ECHO_T}$FALSEPRG" >&6; }
2104 else
2105   { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2107 fi
2108
2109
2110   test -n "$FALSEPRG" && break
2111 done
2112 test -n "$FALSEPRG" || FALSEPRG=":"
2113
2114
2115
2116 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2117 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2118 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2119 echo "configuring for bacula $VERSION ($DATE)"
2120
2121
2122
2123 ac_ext=c
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128 if test -n "$ac_tool_prefix"; then
2129   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152 IFS=$as_save_IFS
2153
2154 fi
2155 fi
2156 CC=$ac_cv_prog_CC
2157 if test -n "$CC"; then
2158   { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2160 else
2161   { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2163 fi
2164
2165
2166 fi
2167 if test -z "$ac_cv_prog_CC"; then
2168   ac_ct_CC=$CC
2169   # Extract the first word of "gcc", so it can be a program name with args.
2170 set dummy gcc; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174   echo $ECHO_N "(cached) $ECHO_C" >&6
2175 else
2176   if test -n "$ac_ct_CC"; then
2177   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2178 else
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180 for as_dir in $PATH
2181 do
2182   IFS=$as_save_IFS
2183   test -z "$as_dir" && as_dir=.
2184   for ac_exec_ext in '' $ac_executable_extensions; do
2185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186     ac_cv_prog_ac_ct_CC="gcc"
2187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2188     break 2
2189   fi
2190 done
2191 done
2192 IFS=$as_save_IFS
2193
2194 fi
2195 fi
2196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2197 if test -n "$ac_ct_CC"; then
2198   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2199 echo "${ECHO_T}$ac_ct_CC" >&6; }
2200 else
2201   { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2203 fi
2204
2205   if test "x$ac_ct_CC" = x; then
2206     CC=""
2207   else
2208     case $cross_compiling:$ac_tool_warned in
2209 yes:)
2210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet.  If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&5
2213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2214 whose name does not start with the host triplet.  If you think this
2215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2216 ac_tool_warned=yes ;;
2217 esac
2218     CC=$ac_ct_CC
2219   fi
2220 else
2221   CC="$ac_cv_prog_CC"
2222 fi
2223
2224 if test -z "$CC"; then
2225           if test -n "$ac_tool_prefix"; then
2226     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}cc; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231   echo $ECHO_N "(cached) $ECHO_C" >&6
2232 else
2233   if test -n "$CC"; then
2234   ac_cv_prog_CC="$CC" # Let the user override the test.
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241   for ac_exec_ext in '' $ac_executable_extensions; do
2242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243     ac_cv_prog_CC="${ac_tool_prefix}cc"
2244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2245     break 2
2246   fi
2247 done
2248 done
2249 IFS=$as_save_IFS
2250
2251 fi
2252 fi
2253 CC=$ac_cv_prog_CC
2254 if test -n "$CC"; then
2255   { echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6; }
2257 else
2258   { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2260 fi
2261
2262
2263   fi
2264 fi
2265 if test -z "$CC"; then
2266   # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271   echo $ECHO_N "(cached) $ECHO_C" >&6
2272 else
2273   if test -n "$CC"; then
2274   ac_cv_prog_CC="$CC" # Let the user override the test.
2275 else
2276   ac_prog_rejected=no
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2285        ac_prog_rejected=yes
2286        continue
2287      fi
2288     ac_cv_prog_CC="cc"
2289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2290     break 2
2291   fi
2292 done
2293 done
2294 IFS=$as_save_IFS
2295
2296 if test $ac_prog_rejected = yes; then
2297   # We found a bogon in the path, so make sure we never use it.
2298   set dummy $ac_cv_prog_CC
2299   shift
2300   if test $# != 0; then
2301     # We chose a different compiler from the bogus one.
2302     # However, it has the same basename, so the bogon will be chosen
2303     # first if we set CC to just the basename; use the full file name.
2304     shift
2305     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2306   fi
2307 fi
2308 fi
2309 fi
2310 CC=$ac_cv_prog_CC
2311 if test -n "$CC"; then
2312   { echo "$as_me:$LINENO: result: $CC" >&5
2313 echo "${ECHO_T}$CC" >&6; }
2314 else
2315   { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2317 fi
2318
2319
2320 fi
2321 if test -z "$CC"; then
2322   if test -n "$ac_tool_prefix"; then
2323   for ac_prog in cl.exe
2324   do
2325     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_CC+set}" = set; then
2330   echo $ECHO_N "(cached) $ECHO_C" >&6
2331 else
2332   if test -n "$CC"; then
2333   ac_cv_prog_CC="$CC" # Let the user override the test.
2334 else
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2337 do
2338   IFS=$as_save_IFS
2339   test -z "$as_dir" && as_dir=.
2340   for ac_exec_ext in '' $ac_executable_extensions; do
2341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348 IFS=$as_save_IFS
2349
2350 fi
2351 fi
2352 CC=$ac_cv_prog_CC
2353 if test -n "$CC"; then
2354   { echo "$as_me:$LINENO: result: $CC" >&5
2355 echo "${ECHO_T}$CC" >&6; }
2356 else
2357   { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2359 fi
2360
2361
2362     test -n "$CC" && break
2363   done
2364 fi
2365 if test -z "$CC"; then
2366   ac_ct_CC=$CC
2367   for ac_prog in cl.exe
2368 do
2369   # Extract the first word of "$ac_prog", so it can be a program name with args.
2370 set dummy $ac_prog; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374   echo $ECHO_N "(cached) $ECHO_C" >&6
2375 else
2376   if test -n "$ac_ct_CC"; then
2377   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2378 else
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380 for as_dir in $PATH
2381 do
2382   IFS=$as_save_IFS
2383   test -z "$as_dir" && as_dir=.
2384   for ac_exec_ext in '' $ac_executable_extensions; do
2385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386     ac_cv_prog_ac_ct_CC="$ac_prog"
2387     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388     break 2
2389   fi
2390 done
2391 done
2392 IFS=$as_save_IFS
2393
2394 fi
2395 fi
2396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2397 if test -n "$ac_ct_CC"; then
2398   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2399 echo "${ECHO_T}$ac_ct_CC" >&6; }
2400 else
2401   { echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6; }
2403 fi
2404
2405
2406   test -n "$ac_ct_CC" && break
2407 done
2408
2409   if test "x$ac_ct_CC" = x; then
2410     CC=""
2411   else
2412     case $cross_compiling:$ac_tool_warned in
2413 yes:)
2414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet.  If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&5
2417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet.  If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2420 ac_tool_warned=yes ;;
2421 esac
2422     CC=$ac_ct_CC
2423   fi
2424 fi
2425
2426 fi
2427
2428
2429 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: no acceptable C compiler found in \$PATH
2432 See \`config.log' for more details." >&2;}
2433    { (exit 1); exit 1; }; }
2434
2435 # Provide some information about the compiler.
2436 echo "$as_me:$LINENO: checking for C compiler version" >&5
2437 ac_compiler=`set X $ac_compile; echo $2`
2438 { (ac_try="$ac_compiler --version >&5"
2439 case "(($ac_try" in
2440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441   *) ac_try_echo=$ac_try;;
2442 esac
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444   (eval "$ac_compiler --version >&5") 2>&5
2445   ac_status=$?
2446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447   (exit $ac_status); }
2448 { (ac_try="$ac_compiler -v >&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 -v >&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
2469 cat >conftest.$ac_ext <<_ACEOF
2470 /* confdefs.h.  */
2471 _ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h.  */
2475
2476 int
2477 main ()
2478 {
2479
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 ac_clean_files_save=$ac_clean_files
2485 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2486 # Try to create an executable without -o first, disregard a.out.
2487 # It will help us diagnose broken compilers, and finding out an intuition
2488 # of exeext.
2489 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2490 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2491 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2492 #
2493 # List of possible output files, starting from the most likely.
2494 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2495 # only as a last resort.  b.out is created by i960 compilers.
2496 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2497 #
2498 # The IRIX 6 linker writes into existing files which may not be
2499 # executable, retaining their permissions.  Remove them first so a
2500 # subsequent execution test works.
2501 ac_rmfiles=
2502 for ac_file in $ac_files
2503 do
2504   case $ac_file in
2505     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2506     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2507   esac
2508 done
2509 rm -f $ac_rmfiles
2510
2511 if { (ac_try="$ac_link_default"
2512 case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517   (eval "$ac_link_default") 2>&5
2518   ac_status=$?
2519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520   (exit $ac_status); }; then
2521   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2523 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2524 # so that the user can short-circuit this test for compilers unknown to
2525 # Autoconf.
2526 for ac_file in $ac_files ''
2527 do
2528   test -f "$ac_file" || continue
2529   case $ac_file in
2530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2531         ;;
2532     [ab].out )
2533         # We found the default executable, but exeext='' is most
2534         # certainly right.
2535         break;;
2536     *.* )
2537         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2538         then :; else
2539            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2540         fi
2541         # We set ac_cv_exeext here because the later test for it is not
2542         # safe: cross compilers may not add the suffix if given an `-o'
2543         # argument, so we may need to know it at that point already.
2544         # Even if this section looks crufty: it has the advantage of
2545         # actually working.
2546         break;;
2547     * )
2548         break;;
2549   esac
2550 done
2551 test "$ac_cv_exeext" = no && ac_cv_exeext=
2552
2553 else
2554   ac_file=''
2555 fi
2556
2557 { echo "$as_me:$LINENO: result: $ac_file" >&5
2558 echo "${ECHO_T}$ac_file" >&6; }
2559 if test -z "$ac_file"; then
2560   echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2562
2563 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: C compiler cannot create executables
2566 See \`config.log' for more details." >&2;}
2567    { (exit 77); exit 77; }; }
2568 fi
2569
2570 ac_exeext=$ac_cv_exeext
2571
2572 # Check that the compiler produces executables we can run.  If not, either
2573 # the compiler is broken, or we cross compile.
2574 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2575 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2576 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2577 # If not cross compiling, check that we can run a simple program.
2578 if test "$cross_compiling" != yes; then
2579   if { ac_try='./$ac_file'
2580   { (case "(($ac_try" in
2581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582   *) ac_try_echo=$ac_try;;
2583 esac
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585   (eval "$ac_try") 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589     cross_compiling=no
2590   else
2591     if test "$cross_compiling" = maybe; then
2592         cross_compiling=yes
2593     else
2594         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: cannot run C compiled programs.
2598 If you meant to cross compile, use \`--host'.
2599 See \`config.log' for more details." >&2;}
2600    { (exit 1); exit 1; }; }
2601     fi
2602   fi
2603 fi
2604 { echo "$as_me:$LINENO: result: yes" >&5
2605 echo "${ECHO_T}yes" >&6; }
2606
2607 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2608 ac_clean_files=$ac_clean_files_save
2609 # Check that the compiler produces executables we can run.  If not, either
2610 # the compiler is broken, or we cross compile.
2611 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2612 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2613 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2614 echo "${ECHO_T}$cross_compiling" >&6; }
2615
2616 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2617 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2618 if { (ac_try="$ac_link"
2619 case "(($ac_try" in
2620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621   *) ac_try_echo=$ac_try;;
2622 esac
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624   (eval "$ac_link") 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; then
2628   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2629 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2630 # work properly (i.e., refer to `conftest.exe'), while it won't with
2631 # `rm'.
2632 for ac_file in conftest.exe conftest conftest.*; do
2633   test -f "$ac_file" || continue
2634   case $ac_file in
2635     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2636     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2637           break;;
2638     * ) break;;
2639   esac
2640 done
2641 else
2642   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2643 See \`config.log' for more details." >&5
2644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2645 See \`config.log' for more details." >&2;}
2646    { (exit 1); exit 1; }; }
2647 fi
2648
2649 rm -f conftest$ac_cv_exeext
2650 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2652
2653 rm -f conftest.$ac_ext
2654 EXEEXT=$ac_cv_exeext
2655 ac_exeext=$EXEEXT
2656 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2658 if test "${ac_cv_objext+set}" = set; then
2659   echo $ECHO_N "(cached) $ECHO_C" >&6
2660 else
2661   cat >conftest.$ac_ext <<_ACEOF
2662 /* confdefs.h.  */
2663 _ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h.  */
2667
2668 int
2669 main ()
2670 {
2671
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 rm -f conftest.o conftest.obj
2677 if { (ac_try="$ac_compile"
2678 case "(($ac_try" in
2679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680   *) ac_try_echo=$ac_try;;
2681 esac
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683   (eval "$ac_compile") 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; then
2687   for ac_file in conftest.o conftest.obj conftest.*; do
2688   test -f "$ac_file" || continue;
2689   case $ac_file in
2690     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2691     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2692        break;;
2693   esac
2694 done
2695 else
2696   echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2698
2699 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2702 See \`config.log' for more details." >&2;}
2703    { (exit 1); exit 1; }; }
2704 fi
2705
2706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2707 fi
2708 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2709 echo "${ECHO_T}$ac_cv_objext" >&6; }
2710 OBJEXT=$ac_cv_objext
2711 ac_objext=$OBJEXT
2712 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2715   echo $ECHO_N "(cached) $ECHO_C" >&6
2716 else
2717   cat >conftest.$ac_ext <<_ACEOF
2718 /* confdefs.h.  */
2719 _ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h.  */
2723
2724 int
2725 main ()
2726 {
2727 #ifndef __GNUC__
2728        choke me
2729 #endif
2730
2731   ;
2732   return 0;
2733 }
2734 _ACEOF
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2737 case "(($ac_try" in
2738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739   *) ac_try_echo=$ac_try;;
2740 esac
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742   (eval "$ac_compile") 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } && {
2749          test -z "$ac_c_werror_flag" ||
2750          test ! -s conftest.err
2751        } && test -s conftest.$ac_objext; then
2752   ac_compiler_gnu=yes
2753 else
2754   echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2756
2757         ac_compiler_gnu=no
2758 fi
2759
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2762
2763 fi
2764 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2766 GCC=`test $ac_compiler_gnu = yes && echo yes`
2767 ac_test_CFLAGS=${CFLAGS+set}
2768 ac_save_CFLAGS=$CFLAGS
2769 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2770 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_cc_g+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   ac_save_c_werror_flag=$ac_c_werror_flag
2775    ac_c_werror_flag=yes
2776    ac_cv_prog_cc_g=no
2777    CFLAGS="-g"
2778    cat >conftest.$ac_ext <<_ACEOF
2779 /* confdefs.h.  */
2780 _ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h.  */
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2795 case "(($ac_try" in
2796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797   *) ac_try_echo=$ac_try;;
2798 esac
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800   (eval "$ac_compile") 2>conftest.er1
2801   ac_status=$?
2802   grep -v '^ *+' conftest.er1 >conftest.err
2803   rm -f conftest.er1
2804   cat conftest.err >&5
2805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806   (exit $ac_status); } && {
2807          test -z "$ac_c_werror_flag" ||
2808          test ! -s conftest.err
2809        } && test -s conftest.$ac_objext; then
2810   ac_cv_prog_cc_g=yes
2811 else
2812   echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2814
2815         CFLAGS=""
2816       cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h.  */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h.  */
2822
2823 int
2824 main ()
2825 {
2826
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_compile") 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } && {
2845          test -z "$ac_c_werror_flag" ||
2846          test ! -s conftest.err
2847        } && test -s conftest.$ac_objext; then
2848   :
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853         ac_c_werror_flag=$ac_save_c_werror_flag
2854          CFLAGS="-g"
2855          cat >conftest.$ac_ext <<_ACEOF
2856 /* confdefs.h.  */
2857 _ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h.  */
2861
2862 int
2863 main ()
2864 {
2865
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (ac_try="$ac_compile"
2872 case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877   (eval "$ac_compile") 2>conftest.er1
2878   ac_status=$?
2879   grep -v '^ *+' conftest.er1 >conftest.err
2880   rm -f conftest.er1
2881   cat conftest.err >&5
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); } && {
2884          test -z "$ac_c_werror_flag" ||
2885          test ! -s conftest.err
2886        } && test -s conftest.$ac_objext; then
2887   ac_cv_prog_cc_g=yes
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892
2893 fi
2894
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 fi
2897
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 fi
2900
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902    ac_c_werror_flag=$ac_save_c_werror_flag
2903 fi
2904 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2905 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2906 if test "$ac_test_CFLAGS" = set; then
2907   CFLAGS=$ac_save_CFLAGS
2908 elif test $ac_cv_prog_cc_g = yes; then
2909   if test "$GCC" = yes; then
2910     CFLAGS="-g -O2"
2911   else
2912     CFLAGS="-g"
2913   fi
2914 else
2915   if test "$GCC" = yes; then
2916     CFLAGS="-O2"
2917   else
2918     CFLAGS=
2919   fi
2920 fi
2921 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2922 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_cc_c89+set}" = set; then
2924   echo $ECHO_N "(cached) $ECHO_C" >&6
2925 else
2926   ac_cv_prog_cc_c89=no
2927 ac_save_CC=$CC
2928 cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934 #include <stdarg.h>
2935 #include <stdio.h>
2936 #include <sys/types.h>
2937 #include <sys/stat.h>
2938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2939 struct buf { int x; };
2940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2941 static char *e (p, i)
2942      char **p;
2943      int i;
2944 {
2945   return p[i];
2946 }
2947 static char *f (char * (*g) (char **, int), char **p, ...)
2948 {
2949   char *s;
2950   va_list v;
2951   va_start (v,p);
2952   s = g (p, va_arg (v,int));
2953   va_end (v);
2954   return s;
2955 }
2956
2957 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2958    function prototypes and stuff, but not '\xHH' hex character constants.
2959    These don't provoke an error unfortunately, instead are silently treated
2960    as 'x'.  The following induces an error, until -std is added to get
2961    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2962    array size at least.  It's necessary to write '\x00'==0 to get something
2963    that's true only with -std.  */
2964 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2965
2966 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2967    inside strings and character constants.  */
2968 #define FOO(x) 'x'
2969 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2970
2971 int test (int i, double x);
2972 struct s1 {int (*f) (int a);};
2973 struct s2 {int (*f) (double a);};
2974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2975 int argc;
2976 char **argv;
2977 int
2978 main ()
2979 {
2980 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2981   ;
2982   return 0;
2983 }
2984 _ACEOF
2985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2986         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2987 do
2988   CC="$ac_save_CC $ac_arg"
2989   rm -f conftest.$ac_objext
2990 if { (ac_try="$ac_compile"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_compile") 2>conftest.er1
2997   ac_status=$?
2998   grep -v '^ *+' conftest.er1 >conftest.err
2999   rm -f conftest.er1
3000   cat conftest.err >&5
3001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002   (exit $ac_status); } && {
3003          test -z "$ac_c_werror_flag" ||
3004          test ! -s conftest.err
3005        } && test -s conftest.$ac_objext; then
3006   ac_cv_prog_cc_c89=$ac_arg
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011
3012 fi
3013
3014 rm -f core conftest.err conftest.$ac_objext
3015   test "x$ac_cv_prog_cc_c89" != "xno" && break
3016 done
3017 rm -f conftest.$ac_ext
3018 CC=$ac_save_CC
3019
3020 fi
3021 # AC_CACHE_VAL
3022 case "x$ac_cv_prog_cc_c89" in
3023   x)
3024     { echo "$as_me:$LINENO: result: none needed" >&5
3025 echo "${ECHO_T}none needed" >&6; } ;;
3026   xno)
3027     { echo "$as_me:$LINENO: result: unsupported" >&5
3028 echo "${ECHO_T}unsupported" >&6; } ;;
3029   *)
3030     CC="$CC $ac_cv_prog_cc_c89"
3031     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3032 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3033 esac
3034
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041
3042 ac_ext=cpp
3043 ac_cpp='$CXXCPP $CPPFLAGS'
3044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3047 if test -z "$CXX"; then
3048   if test -n "$CCC"; then
3049     CXX=$CCC
3050   else
3051     if test -n "$ac_tool_prefix"; then
3052   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3053   do
3054     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_CXX+set}" = set; then
3059   echo $ECHO_N "(cached) $ECHO_C" >&6
3060 else
3061   if test -n "$CXX"; then
3062   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3063 else
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3065 for as_dir in $PATH
3066 do
3067   IFS=$as_save_IFS
3068   test -z "$as_dir" && as_dir=.
3069   for ac_exec_ext in '' $ac_executable_extensions; do
3070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3073     break 2
3074   fi
3075 done
3076 done
3077 IFS=$as_save_IFS
3078
3079 fi
3080 fi
3081 CXX=$ac_cv_prog_CXX
3082 if test -n "$CXX"; then
3083   { echo "$as_me:$LINENO: result: $CXX" >&5
3084 echo "${ECHO_T}$CXX" >&6; }
3085 else
3086   { echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6; }
3088 fi
3089
3090
3091     test -n "$CXX" && break
3092   done
3093 fi
3094 if test -z "$CXX"; then
3095   ac_ct_CXX=$CXX
3096   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3097 do
3098   # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3103   echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105   if test -n "$ac_ct_CXX"; then
3106   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113   for ac_exec_ext in '' $ac_executable_extensions; do
3114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115     ac_cv_prog_ac_ct_CXX="$ac_prog"
3116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3126 if test -n "$ac_ct_CXX"; then
3127   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3128 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3129 else
3130   { echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6; }
3132 fi
3133
3134
3135   test -n "$ac_ct_CXX" && break
3136 done
3137
3138   if test "x$ac_ct_CXX" = x; then
3139     CXX="g++"
3140   else
3141     case $cross_compiling:$ac_tool_warned in
3142 yes:)
3143 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3144 whose name does not start with the host triplet.  If you think this
3145 configuration is useful to you, please write to autoconf@gnu.org." >&5
3146 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3147 whose name does not start with the host triplet.  If you think this
3148 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3149 ac_tool_warned=yes ;;
3150 esac
3151     CXX=$ac_ct_CXX
3152   fi
3153 fi
3154
3155   fi
3156 fi
3157 # Provide some information about the compiler.
3158 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3159 ac_compiler=`set X $ac_compile; echo $2`
3160 { (ac_try="$ac_compiler --version >&5"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166   (eval "$ac_compiler --version >&5") 2>&5
3167   ac_status=$?
3168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }
3170 { (ac_try="$ac_compiler -v >&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 -v >&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
3191 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194   echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196   cat >conftest.$ac_ext <<_ACEOF
3197 /* confdefs.h.  */
3198 _ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h.  */
3202
3203 int
3204 main ()
3205 {
3206 #ifndef __GNUC__
3207        choke me
3208 #endif
3209
3210   ;
3211   return 0;
3212 }
3213 _ACEOF
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3216 case "(($ac_try" in
3217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218   *) ac_try_echo=$ac_try;;
3219 esac
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221   (eval "$ac_compile") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } && {
3228          test -z "$ac_cxx_werror_flag" ||
3229          test ! -s conftest.err
3230        } && test -s conftest.$ac_objext; then
3231   ac_compiler_gnu=yes
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236         ac_compiler_gnu=no
3237 fi
3238
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3241
3242 fi
3243 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3244 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3245 GXX=`test $ac_compiler_gnu = yes && echo yes`
3246 ac_test_CXXFLAGS=${CXXFLAGS+set}
3247 ac_save_CXXFLAGS=$CXXFLAGS
3248 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3249 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cxx_g+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3254    ac_cxx_werror_flag=yes
3255    ac_cv_prog_cxx_g=no
3256    CXXFLAGS="-g"
3257    cat >conftest.$ac_ext <<_ACEOF
3258 /* confdefs.h.  */
3259 _ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h.  */
3263
3264 int
3265 main ()
3266 {
3267
3268   ;
3269   return 0;
3270 }
3271 _ACEOF
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3274 case "(($ac_try" in
3275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276   *) ac_try_echo=$ac_try;;
3277 esac
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279   (eval "$ac_compile") 2>conftest.er1
3280   ac_status=$?
3281   grep -v '^ *+' conftest.er1 >conftest.err
3282   rm -f conftest.er1
3283   cat conftest.err >&5
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); } && {
3286          test -z "$ac_cxx_werror_flag" ||
3287          test ! -s conftest.err
3288        } && test -s conftest.$ac_objext; then
3289   ac_cv_prog_cxx_g=yes
3290 else
3291   echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3293
3294         CXXFLAGS=""
3295       cat >conftest.$ac_ext <<_ACEOF
3296 /* confdefs.h.  */
3297 _ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h.  */
3301
3302 int
3303 main ()
3304 {
3305
3306   ;
3307   return 0;
3308 }
3309 _ACEOF
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3312 case "(($ac_try" in
3313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314   *) ac_try_echo=$ac_try;;
3315 esac
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317   (eval "$ac_compile") 2>conftest.er1
3318   ac_status=$?
3319   grep -v '^ *+' conftest.er1 >conftest.err
3320   rm -f conftest.er1
3321   cat conftest.err >&5
3322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323   (exit $ac_status); } && {
3324          test -z "$ac_cxx_werror_flag" ||
3325          test ! -s conftest.err
3326        } && test -s conftest.$ac_objext; then
3327   :
3328 else
3329   echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3331
3332         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3333          CXXFLAGS="-g"
3334          cat >conftest.$ac_ext <<_ACEOF
3335 /* confdefs.h.  */
3336 _ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h.  */
3340
3341 int
3342 main ()
3343 {
3344
3345   ;
3346   return 0;
3347 }
3348 _ACEOF
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3351 case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356   (eval "$ac_compile") 2>conftest.er1
3357   ac_status=$?
3358   grep -v '^ *+' conftest.er1 >conftest.err
3359   rm -f conftest.er1
3360   cat conftest.err >&5
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); } && {
3363          test -z "$ac_cxx_werror_flag" ||
3364          test ! -s conftest.err
3365        } && test -s conftest.$ac_objext; then
3366   ac_cv_prog_cxx_g=yes
3367 else
3368   echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371
3372 fi
3373
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3375 fi
3376
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3378 fi
3379
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3382 fi
3383 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3384 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3385 if test "$ac_test_CXXFLAGS" = set; then
3386   CXXFLAGS=$ac_save_CXXFLAGS
3387 elif test $ac_cv_prog_cxx_g = yes; then
3388   if test "$GXX" = yes; then
3389     CXXFLAGS="-g -O2"
3390   else
3391     CXXFLAGS="-g"
3392   fi
3393 else
3394   if test "$GXX" = yes; then
3395     CXXFLAGS="-O2"
3396   else
3397     CXXFLAGS=
3398   fi
3399 fi
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406 if test "x$CC" != xcc; then
3407   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3408 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3409 else
3410   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3411 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3412 fi
3413 set dummy $CC; ac_cc=`echo $2 |
3414                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3415 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 # Make sure it works both with $CC and with simple cc.
3434 # We do the test twice because some compilers refuse to overwrite an
3435 # existing .o file with -o, though they will create one.
3436 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3437 rm -f conftest2.*
3438 if { (case "(($ac_try" in
3439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440   *) ac_try_echo=$ac_try;;
3441 esac
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443   (eval "$ac_try") 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } &&
3447    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449   *) ac_try_echo=$ac_try;;
3450 esac
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452   (eval "$ac_try") 2>&5
3453   ac_status=$?
3454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); };
3456 then
3457   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3458   if test "x$CC" != xcc; then
3459     # Test first that cc exists at all.
3460     if { ac_try='cc -c conftest.$ac_ext >&5'
3461   { (case "(($ac_try" in
3462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463   *) ac_try_echo=$ac_try;;
3464 esac
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466   (eval "$ac_try") 2>&5
3467   ac_status=$?
3468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469   (exit $ac_status); }; }; then
3470       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3471       rm -f conftest2.*
3472       if { (case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_try") 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); } &&
3481          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486   (eval "$ac_try") 2>&5
3487   ac_status=$?
3488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489   (exit $ac_status); };
3490       then
3491         # cc works too.
3492         :
3493       else
3494         # cc exists but doesn't like -o.
3495         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3496       fi
3497     fi
3498   fi
3499 else
3500   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3501 fi
3502 rm -f core conftest*
3503
3504 fi
3505 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3506   { echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6; }
3508 else
3509   { echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6; }
3511
3512 cat >>confdefs.h <<\_ACEOF
3513 #define NO_MINUS_C_MINUS_O 1
3514 _ACEOF
3515
3516 fi
3517
3518 ac_ext=c
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3524 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3525 # On Suns, sometimes $CPP names a directory.
3526 if test -n "$CPP" && test -d "$CPP"; then
3527   CPP=
3528 fi
3529 if test -z "$CPP"; then
3530   if test "${ac_cv_prog_CPP+set}" = set; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533       # Double quotes because CPP needs to be expanded
3534     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3535     do
3536       ac_preproc_ok=false
3537 for ac_c_preproc_warn_flag in '' yes
3538 do
3539   # Use a header file that comes with gcc, so configuring glibc
3540   # with a fresh cross-compiler works.
3541   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542   # <limits.h> exists even on freestanding compilers.
3543   # On the NeXT, cc -E runs the code through the compiler's parser,
3544   # not just through cpp. "Syntax error" is here to catch this case.
3545   cat >conftest.$ac_ext <<_ACEOF
3546 /* confdefs.h.  */
3547 _ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h.  */
3551 #ifdef __STDC__
3552 # include <limits.h>
3553 #else
3554 # include <assert.h>
3555 #endif
3556                      Syntax error
3557 _ACEOF
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3565   ac_status=$?
3566   grep -v '^ *+' conftest.er1 >conftest.err
3567   rm -f conftest.er1
3568   cat conftest.err >&5
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); } >/dev/null && {
3571          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3572          test ! -s conftest.err
3573        }; then
3574   :
3575 else
3576   echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579   # Broken: fails on valid input.
3580 continue
3581 fi
3582
3583 rm -f conftest.err conftest.$ac_ext
3584
3585   # OK, works on sane cases.  Now check whether nonexistent headers
3586   # can be detected and how.
3587   cat >conftest.$ac_ext <<_ACEOF
3588 /* confdefs.h.  */
3589 _ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h.  */
3593 #include <ac_nonexistent.h>
3594 _ACEOF
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3596 case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3602   ac_status=$?
3603   grep -v '^ *+' conftest.er1 >conftest.err
3604   rm -f conftest.er1
3605   cat conftest.err >&5
3606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607   (exit $ac_status); } >/dev/null && {
3608          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3609          test ! -s conftest.err
3610        }; then
3611   # Broken: success on invalid input.
3612 continue
3613 else
3614   echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3616
3617   # Passes both tests.
3618 ac_preproc_ok=:
3619 break
3620 fi
3621
3622 rm -f conftest.err conftest.$ac_ext
3623
3624 done
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then
3628   break
3629 fi
3630
3631     done
3632     ac_cv_prog_CPP=$CPP
3633
3634 fi
3635   CPP=$ac_cv_prog_CPP
3636 else
3637   ac_cv_prog_CPP=$CPP
3638 fi
3639 { echo "$as_me:$LINENO: result: $CPP" >&5
3640 echo "${ECHO_T}$CPP" >&6; }
3641 ac_preproc_ok=false
3642 for ac_c_preproc_warn_flag in '' yes
3643 do
3644   # Use a header file that comes with gcc, so configuring glibc
3645   # with a fresh cross-compiler works.
3646   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647   # <limits.h> exists even on freestanding compilers.
3648   # On the NeXT, cc -E runs the code through the compiler's parser,
3649   # not just through cpp. "Syntax error" is here to catch this case.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h.  */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h.  */
3656 #ifdef __STDC__
3657 # include <limits.h>
3658 #else
3659 # include <assert.h>
3660 #endif
3661                      Syntax error
3662 _ACEOF
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3664 case "(($ac_try" in
3665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666   *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3670   ac_status=$?
3671   grep -v '^ *+' conftest.er1 >conftest.err
3672   rm -f conftest.er1
3673   cat conftest.err >&5
3674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675   (exit $ac_status); } >/dev/null && {
3676          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677          test ! -s conftest.err
3678        }; then
3679   :
3680 else
3681   echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684   # Broken: fails on valid input.
3685 continue
3686 fi
3687
3688 rm -f conftest.err conftest.$ac_ext
3689
3690   # OK, works on sane cases.  Now check whether nonexistent headers
3691   # can be detected and how.
3692   cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h.  */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h.  */
3698 #include <ac_nonexistent.h>
3699 _ACEOF
3700 if { (ac_try="$ac_cpp conftest.$ac_ext"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3707   ac_status=$?
3708   grep -v '^ *+' conftest.er1 >conftest.err
3709   rm -f conftest.er1
3710   cat conftest.err >&5
3711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712   (exit $ac_status); } >/dev/null && {
3713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3714          test ! -s conftest.err
3715        }; then
3716   # Broken: success on invalid input.
3717 continue
3718 else
3719   echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722   # Passes both tests.
3723 ac_preproc_ok=:
3724 break
3725 fi
3726
3727 rm -f conftest.err conftest.$ac_ext
3728
3729 done
3730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731 rm -f conftest.err conftest.$ac_ext
3732 if $ac_preproc_ok; then
3733   :
3734 else
3735   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3738 See \`config.log' for more details." >&2;}
3739    { (exit 1); exit 1; }; }
3740 fi
3741
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
3748
3749 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3750 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_GREP+set}" = set; then
3752   echo $ECHO_N "(cached) $ECHO_C" >&6
3753 else
3754   # Extract the first word of "grep ggrep" to use in msg output
3755 if test -z "$GREP"; then
3756 set dummy grep ggrep; ac_prog_name=$2
3757 if test "${ac_cv_path_GREP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   ac_path_GREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_prog in grep ggrep; do
3768   for ac_exec_ext in '' $ac_executable_extensions; do
3769     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3770     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3771     # Check for GNU ac_path_GREP and select it if it is found.
3772   # Check for GNU $ac_path_GREP
3773 case `"$ac_path_GREP" --version 2>&1` in
3774 *GNU*)
3775   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3776 *)
3777   ac_count=0
3778   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3779   while :
3780   do
3781     cat "conftest.in" "conftest.in" >"conftest.tmp"
3782     mv "conftest.tmp" "conftest.in"
3783     cp "conftest.in" "conftest.nl"
3784     echo 'GREP' >> "conftest.nl"
3785     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787     ac_count=`expr $ac_count + 1`
3788     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3789       # Best one so far, save it but keep looking for a better one
3790       ac_cv_path_GREP="$ac_path_GREP"
3791       ac_path_GREP_max=$ac_count
3792     fi
3793     # 10*(2^10) chars as input seems more than enough
3794     test $ac_count -gt 10 && break
3795   done
3796   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3797 esac
3798
3799
3800     $ac_path_GREP_found && break 3
3801   done
3802 done
3803
3804 done
3805 IFS=$as_save_IFS
3806
3807
3808 fi
3809
3810 GREP="$ac_cv_path_GREP"
3811 if test -z "$GREP"; then
3812   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814    { (exit 1); exit 1; }; }
3815 fi
3816
3817 else
3818   ac_cv_path_GREP=$GREP
3819 fi
3820
3821
3822 fi
3823 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3824 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3825  GREP="$ac_cv_path_GREP"
3826
3827
3828 { echo "$as_me:$LINENO: checking for egrep" >&5
3829 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3830 if test "${ac_cv_path_EGREP+set}" = set; then
3831   echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3834    then ac_cv_path_EGREP="$GREP -E"
3835    else
3836      # Extract the first word of "egrep" to use in msg output
3837 if test -z "$EGREP"; then
3838 set dummy egrep; ac_prog_name=$2
3839 if test "${ac_cv_path_EGREP+set}" = set; then
3840   echo $ECHO_N "(cached) $ECHO_C" >&6
3841 else
3842   ac_path_EGREP_found=false
3843 # Loop through the user's path and test for each of PROGNAME-LIST
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849   for ac_prog in egrep; do
3850   for ac_exec_ext in '' $ac_executable_extensions; do
3851     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3852     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3853     # Check for GNU ac_path_EGREP and select it if it is found.
3854   # Check for GNU $ac_path_EGREP
3855 case `"$ac_path_EGREP" --version 2>&1` in
3856 *GNU*)
3857   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3858 *)
3859   ac_count=0
3860   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3861   while :
3862   do
3863     cat "conftest.in" "conftest.in" >"conftest.tmp"
3864     mv "conftest.tmp" "conftest.in"
3865     cp "conftest.in" "conftest.nl"
3866     echo 'EGREP' >> "conftest.nl"
3867     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3868     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3869     ac_count=`expr $ac_count + 1`
3870     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3871       # Best one so far, save it but keep looking for a better one
3872       ac_cv_path_EGREP="$ac_path_EGREP"
3873       ac_path_EGREP_max=$ac_count
3874     fi
3875     # 10*(2^10) chars as input seems more than enough
3876     test $ac_count -gt 10 && break
3877   done
3878   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3879 esac
3880
3881
3882     $ac_path_EGREP_found && break 3
3883   done
3884 done
3885
3886 done
3887 IFS=$as_save_IFS
3888
3889
3890 fi
3891
3892 EGREP="$ac_cv_path_EGREP"
3893 if test -z "$EGREP"; then
3894   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3895 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3896    { (exit 1); exit 1; }; }
3897 fi
3898
3899 else
3900   ac_cv_path_EGREP=$EGREP
3901 fi
3902
3903
3904    fi
3905 fi
3906 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3907 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3908  EGREP="$ac_cv_path_EGREP"
3909
3910
3911 if test $ac_cv_c_compiler_gnu = yes; then
3912     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3913 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3914 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917     ac_pattern="Autoconf.*'x'"
3918   cat >conftest.$ac_ext <<_ACEOF
3919 /* confdefs.h.  */
3920 _ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h.  */
3924 #include <sgtty.h>
3925 Autoconf TIOCGETP
3926 _ACEOF
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3929   ac_cv_prog_gcc_traditional=yes
3930 else
3931   ac_cv_prog_gcc_traditional=no
3932 fi
3933 rm -f conftest*
3934
3935
3936   if test $ac_cv_prog_gcc_traditional = no; then
3937     cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h.  */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h.  */
3943 #include <termio.h>
3944 Autoconf TCGETA
3945 _ACEOF
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3948   ac_cv_prog_gcc_traditional=yes
3949 fi
3950 rm -f conftest*
3951
3952   fi
3953 fi
3954 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3955 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3956   if test $ac_cv_prog_gcc_traditional = yes; then
3957     CC="$CC -traditional"
3958   fi
3959 fi
3960
3961 BASECC=`basename $CC`
3962 have_gcc=no
3963 if test "x$BASECC" = xgcc; then
3964    cat >>confdefs.h <<\_ACEOF
3965 #define HAVE_GCC 1
3966 _ACEOF
3967
3968    have_gcc=yes
3969 fi
3970 # Extract the first word of "$CXX", so it can be a program name with args.
3971 set dummy $CXX; ac_word=$2
3972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_CXX+set}" = set; then
3975   echo $ECHO_N "(cached) $ECHO_C" >&6
3976 else
3977   case $CXX in
3978   [\\/]* | ?:[\\/]*)
3979   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3980   ;;
3981   *)
3982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3984 do
3985   IFS=$as_save_IFS
3986   test -z "$as_dir" && as_dir=.
3987   for ac_exec_ext in '' $ac_executable_extensions; do
3988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3990     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991     break 2
3992   fi
3993 done
3994 done
3995 IFS=$as_save_IFS
3996
3997   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3998   ;;
3999 esac
4000 fi
4001 CXX=$ac_cv_path_CXX
4002 if test -n "$CXX"; then
4003   { echo "$as_me:$LINENO: result: $CXX" >&5
4004 echo "${ECHO_T}$CXX" >&6; }
4005 else
4006   { echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6; }
4008 fi
4009
4010
4011 if test ! -e $CXX; then
4012    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4013 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4014    { (exit 1); exit 1; }; }
4015 fi
4016
4017 # Find a good install program.  We prefer a C program (faster),
4018 # so one script is as good as another.  But avoid the broken or
4019 # incompatible versions:
4020 # SysV /etc/install, /usr/sbin/install
4021 # SunOS /usr/etc/install
4022 # IRIX /sbin/install
4023 # AIX /bin/install
4024 # AmigaOS /C/install, which installs bootblocks on floppy discs
4025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4028 # OS/2's system install, which has a completely different semantic
4029 # ./install, which can be erroneously created by make from ./install.sh.
4030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4032 if test -z "$INSTALL"; then
4033 if test "${ac_cv_path_install+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4038 do
4039   IFS=$as_save_IFS
4040   test -z "$as_dir" && as_dir=.
4041   # Account for people who put trailing slashes in PATH elements.
4042 case $as_dir/ in
4043   ./ | .// | /cC/* | \
4044   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4045   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4046   /usr/ucb/* ) ;;
4047   *)
4048     # OSF1 and SCO ODT 3.0 have their own names for install.
4049     # Don't use installbsd from OSF since it installs stuff as root
4050     # by default.
4051     for ac_prog in ginstall scoinst install; do
4052       for ac_exec_ext in '' $ac_executable_extensions; do
4053         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4054           if test $ac_prog = install &&
4055             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4056             # AIX install.  It has an incompatible calling convention.
4057             :
4058           elif test $ac_prog = install &&
4059             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4060             # program-specific install script used by HP pwplus--don't use.
4061             :
4062           else
4063             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4064             break 3
4065           fi
4066         fi
4067       done
4068     done
4069     ;;
4070 esac
4071 done
4072 IFS=$as_save_IFS
4073
4074
4075 fi
4076   if test "${ac_cv_path_install+set}" = set; then
4077     INSTALL=$ac_cv_path_install
4078   else
4079     # As a last resort, use the slow shell script.  Don't cache a
4080     # value for INSTALL within a source directory, because that will
4081     # break other packages using the cache if that directory is
4082     # removed, or if the value is a relative name.
4083     INSTALL=$ac_install_sh
4084   fi
4085 fi
4086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4087 echo "${ECHO_T}$INSTALL" >&6; }
4088
4089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4090 # It thinks the first close brace ends the variable substitution.
4091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4092
4093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4094
4095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4096
4097 if test -n "$ac_tool_prefix"; then
4098   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102 if test "${ac_cv_prog_RANLIB+set}" = set; then
4103   echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105   if test -n "$RANLIB"; then
4106   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4107 else
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 for as_dir in $PATH
4110 do
4111   IFS=$as_save_IFS
4112   test -z "$as_dir" && as_dir=.
4113   for ac_exec_ext in '' $ac_executable_extensions; do
4114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4116     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117     break 2
4118   fi
4119 done
4120 done
4121 IFS=$as_save_IFS
4122
4123 fi
4124 fi
4125 RANLIB=$ac_cv_prog_RANLIB
4126 if test -n "$RANLIB"; then
4127   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4128 echo "${ECHO_T}$RANLIB" >&6; }
4129 else
4130   { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4132 fi
4133
4134
4135 fi
4136 if test -z "$ac_cv_prog_RANLIB"; then
4137   ac_ct_RANLIB=$RANLIB
4138   # Extract the first word of "ranlib", so it can be a program name with args.
4139 set dummy ranlib; ac_word=$2
4140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   if test -n "$ac_ct_RANLIB"; then
4146   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4147 else
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH
4150 do
4151   IFS=$as_save_IFS
4152   test -z "$as_dir" && as_dir=.
4153   for ac_exec_ext in '' $ac_executable_extensions; do
4154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155     ac_cv_prog_ac_ct_RANLIB="ranlib"
4156     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4157     break 2
4158   fi
4159 done
4160 done
4161 IFS=$as_save_IFS
4162
4163 fi
4164 fi
4165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4166 if test -n "$ac_ct_RANLIB"; then
4167   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4168 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4169 else
4170   { echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6; }
4172 fi
4173
4174   if test "x$ac_ct_RANLIB" = x; then
4175     RANLIB=":"
4176   else
4177     case $cross_compiling:$ac_tool_warned in
4178 yes:)
4179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4180 whose name does not start with the host triplet.  If you think this
4181 configuration is useful to you, please write to autoconf@gnu.org." >&5
4182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4183 whose name does not start with the host triplet.  If you think this
4184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4185 ac_tool_warned=yes ;;
4186 esac
4187     RANLIB=$ac_ct_RANLIB
4188   fi
4189 else
4190   RANLIB="$ac_cv_prog_RANLIB"
4191 fi
4192
4193 # Extract the first word of "mv", so it can be a program name with args.
4194 set dummy mv; ac_word=$2
4195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197 if test "${ac_cv_path_MV+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   case $MV in
4201   [\\/]* | ?:[\\/]*)
4202   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4203   ;;
4204   *)
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218 IFS=$as_save_IFS
4219
4220   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4221   ;;
4222 esac
4223 fi
4224 MV=$ac_cv_path_MV
4225 if test -n "$MV"; then
4226   { echo "$as_me:$LINENO: result: $MV" >&5
4227 echo "${ECHO_T}$MV" >&6; }
4228 else
4229   { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4231 fi
4232
4233
4234 # Extract the first word of "rm", so it can be a program name with args.
4235 set dummy rm; ac_word=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_path_RM+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   case $RM in
4242   [\\/]* | ?:[\\/]*)
4243   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4244   ;;
4245   *)
4246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259 IFS=$as_save_IFS
4260
4261   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4262   ;;
4263 esac
4264 fi
4265 RM=$ac_cv_path_RM
4266 if test -n "$RM"; then
4267   { echo "$as_me:$LINENO: result: $RM" >&5
4268 echo "${ECHO_T}$RM" >&6; }
4269 else
4270   { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4272 fi
4273
4274
4275 # Extract the first word of "cp", so it can be a program name with args.
4276 set dummy cp; ac_word=$2
4277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4279 if test "${ac_cv_path_CP+set}" = set; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   case $CP in
4283   [\\/]* | ?:[\\/]*)
4284   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4285   ;;
4286   *)
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300 IFS=$as_save_IFS
4301
4302   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4303   ;;
4304 esac
4305 fi
4306 CP=$ac_cv_path_CP
4307 if test -n "$CP"; then
4308   { echo "$as_me:$LINENO: result: $CP" >&5
4309 echo "${ECHO_T}$CP" >&6; }
4310 else
4311   { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4313 fi
4314
4315
4316 # Extract the first word of "sed", so it can be a program name with args.
4317 set dummy sed; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_path_SED+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   case $SED in
4324   [\\/]* | ?:[\\/]*)
4325   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4326   ;;
4327   *)
4328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH
4330 do
4331   IFS=$as_save_IFS
4332   test -z "$as_dir" && as_dir=.
4333   for ac_exec_ext in '' $ac_executable_extensions; do
4334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4336     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4337     break 2
4338   fi
4339 done
4340 done
4341 IFS=$as_save_IFS
4342
4343   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4344   ;;
4345 esac
4346 fi
4347 SED=$ac_cv_path_SED
4348 if test -n "$SED"; then
4349   { echo "$as_me:$LINENO: result: $SED" >&5
4350 echo "${ECHO_T}$SED" >&6; }
4351 else
4352   { echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6; }
4354 fi
4355
4356
4357 # Extract the first word of "echo", so it can be a program name with args.
4358 set dummy echo; ac_word=$2
4359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361 if test "${ac_cv_path_ECHO+set}" = set; then
4362   echo $ECHO_N "(cached) $ECHO_C" >&6
4363 else
4364   case $ECHO in
4365   [\\/]* | ?:[\\/]*)
4366   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4367   ;;
4368   *)
4369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH
4371 do
4372   IFS=$as_save_IFS
4373   test -z "$as_dir" && as_dir=.
4374   for ac_exec_ext in '' $ac_executable_extensions; do
4375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378     break 2
4379   fi
4380 done
4381 done
4382 IFS=$as_save_IFS
4383
4384   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4385   ;;
4386 esac
4387 fi
4388 ECHO=$ac_cv_path_ECHO
4389 if test -n "$ECHO"; then
4390   { echo "$as_me:$LINENO: result: $ECHO" >&5
4391 echo "${ECHO_T}$ECHO" >&6; }
4392 else
4393   { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4395 fi
4396
4397
4398 # Extract the first word of "cmp", so it can be a program name with args.
4399 set dummy cmp; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_path_CMP+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405   case $CMP in
4406   [\\/]* | ?:[\\/]*)
4407   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4408   ;;
4409   *)
4410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413   IFS=$as_save_IFS
4414   test -z "$as_dir" && as_dir=.
4415   for ac_exec_ext in '' $ac_executable_extensions; do
4416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4418     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4419     break 2
4420   fi
4421 done
4422 done
4423 IFS=$as_save_IFS
4424
4425   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4426   ;;
4427 esac
4428 fi
4429 CMP=$ac_cv_path_CMP
4430 if test -n "$CMP"; then
4431   { echo "$as_me:$LINENO: result: $CMP" >&5
4432 echo "${ECHO_T}$CMP" >&6; }
4433 else
4434   { echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6; }
4436 fi
4437
4438
4439 # Extract the first word of "tbl", so it can be a program name with args.
4440 set dummy tbl; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_path_TBL+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   case $TBL in
4447   [\\/]* | ?:[\\/]*)
4448   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4449   ;;
4450   *)
4451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454   IFS=$as_save_IFS
4455   test -z "$as_dir" && as_dir=.
4456   for ac_exec_ext in '' $ac_executable_extensions; do
4457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4459     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4460     break 2
4461   fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4467   ;;
4468 esac
4469 fi
4470 TBL=$ac_cv_path_TBL
4471 if test -n "$TBL"; then
4472   { echo "$as_me:$LINENO: result: $TBL" >&5
4473 echo "${ECHO_T}$TBL" >&6; }
4474 else
4475   { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4477 fi
4478
4479
4480 # Extract the first word of "ar", so it can be a program name with args.
4481 set dummy ar; ac_word=$2
4482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484 if test "${ac_cv_path_AR+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   case $AR in
4488   [\\/]* | ?:[\\/]*)
4489   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4490   ;;
4491   *)
4492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497   for ac_exec_ext in '' $ac_executable_extensions; do
4498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4500     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504 done
4505 IFS=$as_save_IFS
4506
4507   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4508   ;;
4509 esac
4510 fi
4511 AR=$ac_cv_path_AR
4512 if test -n "$AR"; then
4513   { echo "$as_me:$LINENO: result: $AR" >&5
4514 echo "${ECHO_T}$AR" >&6; }
4515 else
4516   { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4518 fi
4519
4520
4521 # Extract the first word of "openssl", so it can be a program name with args.
4522 set dummy openssl; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_path_OPENSSL+set}" = set; then
4526   echo $ECHO_N "(cached) $ECHO_C" >&6
4527 else
4528   case $OPENSSL in
4529   [\\/]* | ?:[\\/]*)
4530   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4531   ;;
4532   *)
4533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536   IFS=$as_save_IFS
4537   test -z "$as_dir" && as_dir=.
4538   for ac_exec_ext in '' $ac_executable_extensions; do
4539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4541     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542     break 2
4543   fi
4544 done
4545 done
4546 IFS=$as_save_IFS
4547
4548   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4549   ;;
4550 esac
4551 fi
4552 OPENSSL=$ac_cv_path_OPENSSL
4553 if test -n "$OPENSSL"; then
4554   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4555 echo "${ECHO_T}$OPENSSL" >&6; }
4556 else
4557   { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4559 fi
4560
4561
4562 # Extract the first word of "mtx", so it can be a program name with args.
4563 set dummy mtx; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_path_MTX+set}" = set; then
4567   echo $ECHO_N "(cached) $ECHO_C" >&6
4568 else
4569   case $MTX in
4570   [\\/]* | ?:[\\/]*)
4571   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4572   ;;
4573   *)
4574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577   IFS=$as_save_IFS
4578   test -z "$as_dir" && as_dir=.
4579   for ac_exec_ext in '' $ac_executable_extensions; do
4580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4583     break 2
4584   fi
4585 done
4586 done
4587 IFS=$as_save_IFS
4588
4589   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4590   ;;
4591 esac
4592 fi
4593 MTX=$ac_cv_path_MTX
4594 if test -n "$MTX"; then
4595   { echo "$as_me:$LINENO: result: $MTX" >&5
4596 echo "${ECHO_T}$MTX" >&6; }
4597 else
4598   { echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6; }
4600 fi
4601
4602
4603 # Extract the first word of "dd", so it can be a program name with args.
4604 set dummy dd; ac_word=$2
4605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607 if test "${ac_cv_path_DD+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   case $DD in
4611   [\\/]* | ?:[\\/]*)
4612   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4613   ;;
4614   *)
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4631   ;;
4632 esac
4633 fi
4634 DD=$ac_cv_path_DD
4635 if test -n "$DD"; then
4636   { echo "$as_me:$LINENO: result: $DD" >&5
4637 echo "${ECHO_T}$DD" >&6; }
4638 else
4639   { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4641 fi
4642
4643
4644 # Extract the first word of "mkisofs", so it can be a program name with args.
4645 set dummy mkisofs; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_path_MKISOFS+set}" = set; then
4649   echo $ECHO_N "(cached) $ECHO_C" >&6
4650 else
4651   case $MKISOFS in
4652   [\\/]* | ?:[\\/]*)
4653   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4654   ;;
4655   *)
4656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661   for ac_exec_ext in '' $ac_executable_extensions; do
4662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665     break 2
4666   fi
4667 done
4668 done
4669 IFS=$as_save_IFS
4670
4671   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4672   ;;
4673 esac
4674 fi
4675 MKISOFS=$ac_cv_path_MKISOFS
4676 if test -n "$MKISOFS"; then
4677   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4678 echo "${ECHO_T}$MKISOFS" >&6; }
4679 else
4680   { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4682 fi
4683
4684
4685 # Extract the first word of "python", so it can be a program name with args.
4686 set dummy python; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_path_PYTHON+set}" = set; then
4690   echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692   case $PYTHON in
4693   [\\/]* | ?:[\\/]*)
4694   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4695   ;;
4696   *)
4697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700   IFS=$as_save_IFS
4701   test -z "$as_dir" && as_dir=.
4702   for ac_exec_ext in '' $ac_executable_extensions; do
4703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706     break 2
4707   fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4713   ;;
4714 esac
4715 fi
4716 PYTHON=$ac_cv_path_PYTHON
4717 if test -n "$PYTHON"; then
4718   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4719 echo "${ECHO_T}$PYTHON" >&6; }
4720 else
4721   { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4723 fi
4724
4725
4726 # Extract the first word of "growisofs", so it can be a program name with args.
4727 set dummy growisofs; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4731   echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733   case $GROWISOFS in
4734   [\\/]* | ?:[\\/]*)
4735   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4736   ;;
4737   *)
4738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743   for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750 done
4751 IFS=$as_save_IFS
4752
4753   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4754   ;;
4755 esac
4756 fi
4757 GROWISOFS=$ac_cv_path_GROWISOFS
4758 if test -n "$GROWISOFS"; then
4759   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4760 echo "${ECHO_T}$GROWISOFS" >&6; }
4761 else
4762   { echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6; }
4764 fi
4765
4766
4767 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4768 set dummy dvd+rw-mediainfo; ac_word=$2
4769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4772   echo $ECHO_N "(cached) $ECHO_C" >&6
4773 else
4774   case $DVDRWMEDIAINFO in
4775   [\\/]* | ?:[\\/]*)
4776   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4777   ;;
4778   *)
4779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH
4781 do
4782   IFS=$as_save_IFS
4783   test -z "$as_dir" && as_dir=.
4784   for ac_exec_ext in '' $ac_executable_extensions; do
4785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4787     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788     break 2
4789   fi
4790 done
4791 done
4792 IFS=$as_save_IFS
4793
4794   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4795   ;;
4796 esac
4797 fi
4798 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4799 if test -n "$DVDRWMEDIAINFO"; then
4800   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4801 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4802 else
4803   { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4805 fi
4806
4807
4808 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4809 set dummy dvd+rw-format; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815   case $DVDRWFORMAT in
4816   [\\/]* | ?:[\\/]*)
4817   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4818   ;;
4819   *)
4820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4822 do
4823   IFS=$as_save_IFS
4824   test -z "$as_dir" && as_dir=.
4825   for ac_exec_ext in '' $ac_executable_extensions; do
4826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4828     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829     break 2
4830   fi
4831 done
4832 done
4833 IFS=$as_save_IFS
4834
4835   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4836   ;;
4837 esac
4838 fi
4839 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4840 if test -n "$DVDRWFORMAT"; then
4841   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4842 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4843 else
4844   { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4846 fi
4847
4848
4849 # Extract the first word of "pkg-config", so it can be a program name with args.
4850 set dummy pkg-config; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4854   echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856   case $PKGCONFIG in
4857   [\\/]* | ?:[\\/]*)
4858   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4859   ;;
4860   *)
4861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4869     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4877   ;;
4878 esac
4879 fi
4880 PKGCONFIG=$ac_cv_path_PKGCONFIG
4881 if test -n "$PKGCONFIG"; then
4882   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4883 echo "${ECHO_T}$PKGCONFIG" >&6; }
4884 else
4885   { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4887 fi
4888
4889
4890 # Extract the first word of "qmake", so it can be a program name with args.
4891 set dummy qmake; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_path_QMAKE+set}" = set; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   case $QMAKE in
4898   [\\/]* | ?:[\\/]*)
4899   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4900   ;;
4901   *)
4902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907   for ac_exec_ext in '' $ac_executable_extensions; do
4908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4910     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4911     break 2
4912   fi
4913 done
4914 done
4915 IFS=$as_save_IFS
4916
4917   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4918   ;;
4919 esac
4920 fi
4921 QMAKE=$ac_cv_path_QMAKE
4922 if test -n "$QMAKE"; then
4923   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4924 echo "${ECHO_T}$QMAKE" >&6; }
4925 else
4926   { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4928 fi
4929
4930
4931 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4932 set dummy qmake-qt4; ac_word=$2
4933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4936   echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938   case $QMAKEQT4 in
4939   [\\/]* | ?:[\\/]*)
4940   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4941   ;;
4942   *)
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948   for ac_exec_ext in '' $ac_executable_extensions; do
4949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4951     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4959   ;;
4960 esac
4961 fi
4962 QMAKEQT4=$ac_cv_path_QMAKEQT4
4963 if test -n "$QMAKEQT4"; then
4964   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4965 echo "${ECHO_T}$QMAKEQT4" >&6; }
4966 else
4967   { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4969 fi
4970
4971
4972
4973 if test "x$WXCONFIG" = x; then
4974   WXCONFIG=wx-config
4975 fi
4976 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4977 set dummy ${WXCONFIG}; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4981   echo $ECHO_N "(cached) $ECHO_C" >&6
4982 else
4983   case $WXCONFIG in
4984   [\\/]* | ?:[\\/]*)
4985   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4986   ;;
4987   *)
4988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991   IFS=$as_save_IFS
4992   test -z "$as_dir" && as_dir=.
4993   for ac_exec_ext in '' $ac_executable_extensions; do
4994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997     break 2
4998   fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5004   ;;
5005 esac
5006 fi
5007 WXCONFIG=$ac_cv_path_WXCONFIG
5008 if test -n "$WXCONFIG"; then
5009   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5010 echo "${ECHO_T}$WXCONFIG" >&6; }
5011 else
5012   { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5014 fi
5015
5016
5017
5018 # Extract the first word of "cdrecord", so it can be a program name with args.
5019 set dummy cdrecord; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_path_CDRECORD+set}" = set; then
5023   echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025   case $CDRECORD in
5026   [\\/]* | ?:[\\/]*)
5027   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5028   ;;
5029   *)
5030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 for as_dir in $PATH
5032 do
5033   IFS=$as_save_IFS
5034   test -z "$as_dir" && as_dir=.
5035   for ac_exec_ext in '' $ac_executable_extensions; do
5036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039     break 2
5040   fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5046   ;;
5047 esac
5048 fi
5049 CDRECORD=$ac_cv_path_CDRECORD
5050 if test -n "$CDRECORD"; then
5051   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5052 echo "${ECHO_T}$CDRECORD" >&6; }
5053 else
5054   { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5056 fi
5057
5058
5059 # Extract the first word of "pidof", so it can be a program name with args.
5060 set dummy pidof; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_PIDOF+set}" = set; then
5064   echo $ECHO_N "(cached) $ECHO_C" >&6
5065 else
5066   case $PIDOF in
5067   [\\/]* | ?:[\\/]*)
5068   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5069   ;;
5070   *)
5071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076   for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5087   ;;
5088 esac
5089 fi
5090 PIDOF=$ac_cv_path_PIDOF
5091 if test -n "$PIDOF"; then
5092   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5093 echo "${ECHO_T}$PIDOF" >&6; }
5094 else
5095   { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5097 fi
5098
5099
5100 for ac_prog in gawk mawk nawk awk
5101 do
5102   # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy $ac_prog; ac_word=$2
5104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5106 if test "${ac_cv_prog_AWK+set}" = set; then
5107   echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109   if test -n "$AWK"; then
5110   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115   IFS=$as_save_IFS
5116   test -z "$as_dir" && as_dir=.
5117   for ac_exec_ext in '' $ac_executable_extensions; do
5118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119     ac_cv_prog_AWK="$ac_prog"
5120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121     break 2
5122   fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 AWK=$ac_cv_prog_AWK
5130 if test -n "$AWK"; then
5131   { echo "$as_me:$LINENO: result: $AWK" >&5
5132 echo "${ECHO_T}$AWK" >&6; }
5133 else
5134   { echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6; }
5136 fi
5137
5138
5139   test -n "$AWK" && break
5140 done
5141
5142 # Some AWK programs fail, so test it and warn the user
5143 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5144       { if ((prog == $2) || (("(" prog ")") == $2) ||
5145            (("" prog "") == $2) ||
5146            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5147 else
5148   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5149    The regex engine of $AWK is too broken to be used you
5150    might want to install GNU AWK.
5151    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5152 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5153    The regex engine of $AWK is too broken to be used you
5154    might want to install GNU AWK.
5155    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5156    { (exit 1); exit 1; }; }
5157 fi
5158 THE_AWK=$AWK
5159 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5160 set dummy $THE_AWK; ac_word=$2
5161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163 if test "${ac_cv_path_AWK+set}" = set; then
5164   echo $ECHO_N "(cached) $ECHO_C" >&6
5165 else
5166   case $AWK in
5167   [\\/]* | ?:[\\/]*)
5168   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5169   ;;
5170   *)
5171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176   for ac_exec_ext in '' $ac_executable_extensions; do
5177   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5179     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183 done
5184 IFS=$as_save_IFS
5185
5186   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5187   ;;
5188 esac
5189 fi
5190 AWK=$ac_cv_path_AWK
5191 if test -n "$AWK"; then
5192   { echo "$as_me:$LINENO: result: $AWK" >&5
5193 echo "${ECHO_T}$AWK" >&6; }
5194 else
5195   { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5197 fi
5198
5199
5200
5201
5202 test -n "$ARFLAG" || ARFLAGS="cr"
5203
5204
5205 MAKE_SHELL=/bin/sh
5206
5207
5208
5209
5210
5211
5212
5213 # Make sure we can run config.sub.
5214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5215   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5216 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5217    { (exit 1); exit 1; }; }
5218
5219 { echo "$as_me:$LINENO: checking build system type" >&5
5220 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5221 if test "${ac_cv_build+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   ac_build_alias=$build_alias
5225 test "x$ac_build_alias" = x &&
5226   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5227 test "x$ac_build_alias" = x &&
5228   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5229 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5230    { (exit 1); exit 1; }; }
5231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5232   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5233 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5234    { (exit 1); exit 1; }; }
5235
5236 fi
5237 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5238 echo "${ECHO_T}$ac_cv_build" >&6; }
5239 case $ac_cv_build in
5240 *-*-*) ;;
5241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5242 echo "$as_me: error: invalid value of canonical build" >&2;}
5243    { (exit 1); exit 1; }; };;
5244 esac
5245 build=$ac_cv_build
5246 ac_save_IFS=$IFS; IFS='-'
5247 set x $ac_cv_build
5248 shift
5249 build_cpu=$1
5250 build_vendor=$2
5251 shift; shift
5252 # Remember, the first character of IFS is used to create $*,
5253 # except with old shells:
5254 build_os=$*
5255 IFS=$ac_save_IFS
5256 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5257
5258
5259
5260 { echo "$as_me:$LINENO: checking host system type" >&5
5261 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5262 if test "${ac_cv_host+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   if test "x$host_alias" = x; then
5266   ac_cv_host=$ac_cv_build
5267 else
5268   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5269     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5270 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5271    { (exit 1); exit 1; }; }
5272 fi
5273
5274 fi
5275 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5276 echo "${ECHO_T}$ac_cv_host" >&6; }
5277 case $ac_cv_host in
5278 *-*-*) ;;
5279 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5280 echo "$as_me: error: invalid value of canonical host" >&2;}
5281    { (exit 1); exit 1; }; };;
5282 esac
5283 host=$ac_cv_host
5284 ac_save_IFS=$IFS; IFS='-'
5285 set x $ac_cv_host
5286 shift
5287 host_cpu=$1
5288 host_vendor=$2
5289 shift; shift
5290 # Remember, the first character of IFS is used to create $*,
5291 # except with old shells:
5292 host_os=$*
5293 IFS=$ac_save_IFS
5294 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5295
5296
5297 case $host_os in
5298   *cygwin* ) CYGWIN=yes;;
5299          * ) CYGWIN=no;;
5300 esac
5301
5302 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5303 then
5304
5305
5306 if $TRUEPRG; then
5307   HAVE_SUN_OS_TRUE=
5308   HAVE_SUN_OS_FALSE='#'
5309 else
5310   HAVE_SUN_OS_TRUE='#'
5311   HAVE_SUN_OS_FALSE=
5312 fi
5313         cat >>confdefs.h <<\_ACEOF
5314 #define HAVE_SUN_OS 1
5315 _ACEOF
5316
5317 else
5318
5319
5320 if $FALSEPRG; then
5321   HAVE_SUN_OS_TRUE=
5322   HAVE_SUN_OS_FALSE='#'
5323 else
5324   HAVE_SUN_OS_TRUE='#'
5325   HAVE_SUN_OS_FALSE=
5326 fi
5327 fi
5328
5329 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5330 then
5331
5332
5333 if $TRUEPRG; then
5334   HAVE_OSF1_OS_TRUE=
5335   HAVE_OSF1_OS_FALSE='#'
5336 else
5337   HAVE_OSF1_OS_TRUE='#'
5338   HAVE_OSF1_OS_FALSE=
5339 fi
5340         cat >>confdefs.h <<\_ACEOF
5341 #define HAVE_OSF1_OS 1
5342 _ACEOF
5343
5344 else
5345
5346
5347 if $FALSEPRG; then
5348   HAVE_OSF1_OS_TRUE=
5349   HAVE_OSF1_OS_FALSE='#'
5350 else
5351   HAVE_OSF1_OS_TRUE='#'
5352   HAVE_OSF1_OS_FALSE=
5353 fi
5354 fi
5355
5356 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5357 then
5358
5359
5360 if $TRUEPRG; then
5361   HAVE_AIX_OS_TRUE=
5362   HAVE_AIX_OS_FALSE='#'
5363 else
5364   HAVE_AIX_OS_TRUE='#'
5365   HAVE_AIX_OS_FALSE=
5366 fi
5367         cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_AIX_OS 1
5369 _ACEOF
5370
5371 else
5372
5373
5374 if $FALSEPRG; then
5375   HAVE_AIX_OS_TRUE=
5376   HAVE_AIX_OS_FALSE='#'
5377 else
5378   HAVE_AIX_OS_TRUE='#'
5379   HAVE_AIX_OS_FALSE=
5380 fi
5381 fi
5382
5383 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5384 then
5385
5386
5387 if $TRUEPRG; then
5388   HAVE_HPUX_OS_TRUE=
5389   HAVE_HPUX_OS_FALSE='#'
5390 else
5391   HAVE_HPUX_OS_TRUE='#'
5392   HAVE_HPUX_OS_FALSE=
5393 fi
5394         cat >>confdefs.h <<\_ACEOF
5395 #define HAVE_HPUX_OS 1
5396 _ACEOF
5397
5398 else
5399
5400
5401 if $FALSEPRG; then
5402   HAVE_HPUX_OS_TRUE=
5403   HAVE_HPUX_OS_FALSE='#'
5404 else
5405   HAVE_HPUX_OS_TRUE='#'
5406   HAVE_HPUX_OS_FALSE=
5407 fi
5408 fi
5409
5410 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5411 then
5412
5413
5414 if $TRUEPRG; then
5415   HAVE_LINUX_OS_TRUE=
5416   HAVE_LINUX_OS_FALSE='#'
5417 else
5418   HAVE_LINUX_OS_TRUE='#'
5419   HAVE_LINUX_OS_FALSE=
5420 fi
5421         cat >>confdefs.h <<\_ACEOF
5422 #define HAVE_LINUX_OS 1
5423 _ACEOF
5424
5425 else
5426
5427
5428 if $FALSEPRG; then
5429   HAVE_LINUX_OS_TRUE=
5430   HAVE_LINUX_OS_FALSE='#'
5431 else
5432   HAVE_LINUX_OS_TRUE='#'
5433   HAVE_LINUX_OS_FALSE=
5434 fi
5435 fi
5436
5437 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5438 then
5439
5440
5441 if $TRUEPRG; then
5442   HAVE_FREEBSD_OS_TRUE=
5443   HAVE_FREEBSD_OS_FALSE='#'
5444 else
5445   HAVE_FREEBSD_OS_TRUE='#'
5446   HAVE_FREEBSD_OS_FALSE=
5447 fi
5448         cat >>confdefs.h <<\_ACEOF
5449 #define HAVE_FREEBSD_OS 1
5450 _ACEOF
5451
5452 else
5453
5454
5455 if $FALSEPRG; then
5456   HAVE_FREEBSD_OS_TRUE=
5457   HAVE_FREEBSD_OS_FALSE='#'
5458 else
5459   HAVE_FREEBSD_OS_TRUE='#'
5460   HAVE_FREEBSD_OS_FALSE=
5461 fi
5462 fi
5463
5464 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5465 then
5466
5467
5468 if $TRUEPRG; then
5469   HAVE_NETBSD_OS_TRUE=
5470   HAVE_NETBSD_OS_FALSE='#'
5471 else
5472   HAVE_NETBSD_OS_TRUE='#'
5473   HAVE_NETBSD_OS_FALSE=
5474 fi
5475         cat >>confdefs.h <<\_ACEOF
5476 #define HAVE_NETBSD_OS 1
5477 _ACEOF
5478
5479 else
5480
5481
5482 if $FALSEPRG; then
5483   HAVE_NETBSD_OS_TRUE=
5484   HAVE_NETBSD_OS_FALSE='#'
5485 else
5486   HAVE_NETBSD_OS_TRUE='#'
5487   HAVE_NETBSD_OS_FALSE=
5488 fi
5489 fi
5490
5491 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5492 then
5493
5494
5495 if $TRUEPRG; then
5496   HAVE_OPENBSD_OS_TRUE=
5497   HAVE_OPENBSD_OS_FALSE='#'
5498 else
5499   HAVE_OPENBSD_OS_TRUE='#'
5500   HAVE_OPENBSD_OS_FALSE=
5501 fi
5502         cat >>confdefs.h <<\_ACEOF
5503 #define HAVE_OPENBSD_OS 1
5504 _ACEOF
5505
5506 else
5507
5508
5509 if $FALSEPRG; then
5510   HAVE_OPENBSD_OS_TRUE=
5511   HAVE_OPENBSD_OS_FALSE='#'
5512 else
5513   HAVE_OPENBSD_OS_TRUE='#'
5514   HAVE_OPENBSD_OS_FALSE=
5515 fi
5516 fi
5517
5518 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5519 then
5520
5521
5522 if $TRUEPRG; then
5523   HAVE_BSDI_OS_TRUE=
5524   HAVE_BSDI_OS_FALSE='#'
5525 else
5526   HAVE_BSDI_OS_TRUE='#'
5527   HAVE_BSDI_OS_FALSE=
5528 fi
5529         cat >>confdefs.h <<\_ACEOF
5530 #define HAVE_BSDI_OS 1
5531 _ACEOF
5532
5533 else
5534
5535
5536 if $FALSEPRG; then
5537   HAVE_BSDI_OS_TRUE=
5538   HAVE_BSDI_OS_FALSE='#'
5539 else
5540   HAVE_BSDI_OS_TRUE='#'
5541   HAVE_BSDI_OS_FALSE=
5542 fi
5543 fi
5544
5545 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5546 then
5547
5548
5549 if $TRUEPRG; then
5550   HAVE_SGI_OS_TRUE=
5551   HAVE_SGI_OS_FALSE='#'
5552 else
5553   HAVE_SGI_OS_TRUE='#'
5554   HAVE_SGI_OS_FALSE=
5555 fi
5556         cat >>confdefs.h <<\_ACEOF
5557 #define HAVE_SGI_OS 1
5558 _ACEOF
5559
5560 else
5561
5562
5563 if $FALSEPRG; then
5564   HAVE_SGI_OS_TRUE=
5565   HAVE_SGI_OS_FALSE='#'
5566 else
5567   HAVE_SGI_OS_TRUE='#'
5568   HAVE_SGI_OS_FALSE=
5569 fi
5570 fi
5571
5572 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5573 then
5574
5575
5576 if $TRUEPRG; then
5577   HAVE_IRIX_OS_TRUE=
5578   HAVE_IRIX_OS_FALSE='#'
5579 else
5580   HAVE_IRIX_OS_TRUE='#'
5581   HAVE_IRIX_OS_FALSE=
5582 fi
5583         cat >>confdefs.h <<\_ACEOF
5584 #define HAVE_IRIX_OS 1
5585 _ACEOF
5586
5587 else
5588
5589
5590 if $FALSEPRG; then
5591   HAVE_IRIX_OS_TRUE=
5592   HAVE_IRIX_OS_FALSE='#'
5593 else
5594   HAVE_IRIX_OS_TRUE='#'
5595   HAVE_IRIX_OS_FALSE=
5596 fi
5597 fi
5598
5599 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5600 then
5601
5602
5603 if $TRUEPRG; then
5604   HAVE_DARWIN_OS_TRUE=
5605   HAVE_DARWIN_OS_FALSE='#'
5606 else
5607   HAVE_DARWIN_OS_TRUE='#'
5608   HAVE_DARWIN_OS_FALSE=
5609 fi
5610     cat >>confdefs.h <<\_ACEOF
5611 #define HAVE_DARWIN_OS 1
5612 _ACEOF
5613
5614 else
5615
5616
5617 if $FALSEPRG; then
5618   HAVE_DARWIN_OS_TRUE=
5619   HAVE_DARWIN_OS_FALSE='#'
5620 else
5621   HAVE_DARWIN_OS_TRUE='#'
5622   HAVE_DARWIN_OS_FALSE=
5623 fi
5624 fi
5625
5626
5627 # -----------------------------------------------------------
5628 # ----------------------------------------------------------
5629 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5630 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5631 if test "x$DISTNAME" != "x"
5632 then
5633         echo "distname set to $DISTNAME"
5634 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5635 then
5636         DISTNAME=alpha
5637 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5638 then
5639         DISTNAME=aix
5640 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5641 then
5642         DISTNAME=hpux
5643 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5644 then
5645         DISTNAME=solaris
5646 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5647 then
5648         DISTNAME=freebsd
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5650 then
5651         DISTNAME=netbsd
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5653 then
5654         DISTNAME=openbsd
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5656 then
5657         DISTNAME=irix
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5659 then
5660         DISTNAME=bsdi
5661 elif test -f /etc/SuSE-release
5662 then
5663         DISTNAME=suse
5664 elif test -d /etc/SuSEconfig
5665 then
5666         DISTNAME=suse5
5667 elif test -f /etc/mandrake-release
5668 then
5669         DISTNAME=mandrake
5670 elif test -f /etc/whitebox-release
5671 then
5672        DISTNAME=redhat
5673 elif test -f /etc/redhat-release
5674 then
5675         DISTNAME=redhat
5676 elif test -f /etc/gentoo-release
5677 then
5678         DISTNAME=gentoo
5679 elif test -f /etc/debian_version
5680 then
5681         DISTNAME=debian
5682 elif test -f /etc/slackware-version
5683 then
5684         DISTNAME=slackware
5685 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5686 then
5687     DISTNAME=darwin
5688 elif test -f /etc/engarde-version
5689 then
5690         DISTNAME=engarde
5691 elif test "$CYGWIN" = yes
5692 then
5693         DISTNAME=cygwin
5694         cat >>confdefs.h <<\_ACEOF
5695 #define HAVE_CYGWIN 1
5696 _ACEOF
5697
5698 else
5699         DISTNAME=unknown
5700 fi
5701 { echo "$as_me:$LINENO: result: done" >&5
5702 echo "${ECHO_T}done" >&6; }
5703
5704
5705 # --------------------------------------------------
5706 # Suppport for gettext (translations)
5707 # By default, $datadir is ${prefix}/share
5708 # --------------------------------------------------
5709 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5710 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5711 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5712 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5713   echo $ECHO_N "(cached) $ECHO_C" >&6
5714 else
5715   cat >conftest.make <<\_ACEOF
5716 SHELL = /bin/sh
5717 all:
5718         @echo '@@@%%%=$(MAKE)=@@@%%%'
5719 _ACEOF
5720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5722   *@@@%%%=?*=@@@%%%*)
5723     eval ac_cv_prog_make_${ac_make}_set=yes;;
5724   *)
5725     eval ac_cv_prog_make_${ac_make}_set=no;;
5726 esac
5727 rm -f conftest.make
5728 fi
5729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5730   { echo "$as_me:$LINENO: result: yes" >&5
5731 echo "${ECHO_T}yes" >&6; }
5732   SET_MAKE=
5733 else
5734   { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5736   SET_MAKE="MAKE=${MAKE-make}"
5737 fi
5738
5739
5740
5741         MKINSTALLDIRS=
5742   if test -n "$ac_aux_dir"; then
5743     case "$ac_aux_dir" in
5744       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5745       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5746     esac
5747   fi
5748   if test -z "$MKINSTALLDIRS"; then
5749     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5750   fi
5751
5752
5753
5754   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5755 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5756     # Check whether --enable-nls was given.
5757 if test "${enable_nls+set}" = set; then
5758   enableval=$enable_nls; USE_NLS=$enableval
5759 else
5760   USE_NLS=yes
5761 fi
5762
5763   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5764 echo "${ECHO_T}$USE_NLS" >&6; }
5765
5766
5767
5768
5769
5770
5771 # Prepare PATH_SEPARATOR.
5772 # The user is always right.
5773 if test "${PATH_SEPARATOR+set}" != set; then
5774   echo "#! /bin/sh" >conf$$.sh
5775   echo  "exit 0"   >>conf$$.sh
5776   chmod +x conf$$.sh
5777   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5778     PATH_SEPARATOR=';'
5779   else
5780     PATH_SEPARATOR=:
5781   fi
5782   rm -f conf$$.sh
5783 fi
5784
5785 # Find out how to test for executable files. Don't use a zero-byte file,
5786 # as systems may use methods other than mode bits to determine executability.
5787 cat >conf$$.file <<_ASEOF
5788 #! /bin/sh
5789 exit 0
5790 _ASEOF
5791 chmod +x conf$$.file
5792 if test -x conf$$.file >/dev/null 2>&1; then
5793   ac_executable_p="test -x"
5794 else
5795   ac_executable_p="test -f"
5796 fi
5797 rm -f conf$$.file
5798
5799 # Extract the first word of "msgfmt", so it can be a program name with args.
5800 set dummy msgfmt; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_MSGFMT+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   case "$MSGFMT" in
5807   [\\/]* | ?:[\\/]*)
5808     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5809     ;;
5810   *)
5811     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5812     for ac_dir in $PATH; do
5813       IFS="$ac_save_IFS"
5814       test -z "$ac_dir" && ac_dir=.
5815       for ac_exec_ext in '' $ac_executable_extensions; do
5816         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5817           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5818           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5819      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5820             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5821             break 2
5822           fi
5823         fi
5824       done
5825     done
5826     IFS="$ac_save_IFS"
5827   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5828     ;;
5829 esac
5830 fi
5831 MSGFMT="$ac_cv_path_MSGFMT"
5832 if test "$MSGFMT" != ":"; then
5833   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5834 echo "${ECHO_T}$MSGFMT" >&6; }
5835 else
5836   { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5838 fi
5839
5840   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5841 set dummy gmsgfmt; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847   case $GMSGFMT in
5848   [\\/]* | ?:[\\/]*)
5849   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5850   ;;
5851   *)
5852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865 IFS=$as_save_IFS
5866
5867   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5868   ;;
5869 esac
5870 fi
5871 GMSGFMT=$ac_cv_path_GMSGFMT
5872 if test -n "$GMSGFMT"; then
5873   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5874 echo "${ECHO_T}$GMSGFMT" >&6; }
5875 else
5876   { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5878 fi
5879
5880
5881
5882
5883 # Prepare PATH_SEPARATOR.
5884 # The user is always right.
5885 if test "${PATH_SEPARATOR+set}" != set; then
5886   echo "#! /bin/sh" >conf$$.sh
5887   echo  "exit 0"   >>conf$$.sh
5888   chmod +x conf$$.sh
5889   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5890     PATH_SEPARATOR=';'
5891   else
5892     PATH_SEPARATOR=:
5893   fi
5894   rm -f conf$$.sh
5895 fi
5896
5897 # Find out how to test for executable files. Don't use a zero-byte file,
5898 # as systems may use methods other than mode bits to determine executability.
5899 cat >conf$$.file <<_ASEOF
5900 #! /bin/sh
5901 exit 0
5902 _ASEOF
5903 chmod +x conf$$.file
5904 if test -x conf$$.file >/dev/null 2>&1; then
5905   ac_executable_p="test -x"
5906 else
5907   ac_executable_p="test -f"
5908 fi
5909 rm -f conf$$.file
5910
5911 # Extract the first word of "xgettext", so it can be a program name with args.
5912 set dummy xgettext; ac_word=$2
5913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5915 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   case "$XGETTEXT" in
5919   [\\/]* | ?:[\\/]*)
5920     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5921     ;;
5922   *)
5923     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5924     for ac_dir in $PATH; do
5925       IFS="$ac_save_IFS"
5926       test -z "$ac_dir" && ac_dir=.
5927       for ac_exec_ext in '' $ac_executable_extensions; do
5928         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5929           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5930           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5931      (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
5932             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5933             break 2
5934           fi
5935         fi
5936       done
5937     done
5938     IFS="$ac_save_IFS"
5939   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5940     ;;
5941 esac
5942 fi
5943 XGETTEXT="$ac_cv_path_XGETTEXT"
5944 if test "$XGETTEXT" != ":"; then
5945   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5946 echo "${ECHO_T}$XGETTEXT" >&6; }
5947 else
5948   { echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6; }
5950 fi
5951
5952     rm -f messages.po
5953
5954
5955 # Prepare PATH_SEPARATOR.
5956 # The user is always right.
5957 if test "${PATH_SEPARATOR+set}" != set; then
5958   echo "#! /bin/sh" >conf$$.sh
5959   echo  "exit 0"   >>conf$$.sh
5960   chmod +x conf$$.sh
5961   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5962     PATH_SEPARATOR=';'
5963   else
5964     PATH_SEPARATOR=:
5965   fi
5966   rm -f conf$$.sh
5967 fi
5968
5969 # Find out how to test for executable files. Don't use a zero-byte file,
5970 # as systems may use methods other than mode bits to determine executability.
5971 cat >conf$$.file <<_ASEOF
5972 #! /bin/sh
5973 exit 0
5974 _ASEOF
5975 chmod +x conf$$.file
5976 if test -x conf$$.file >/dev/null 2>&1; then
5977   ac_executable_p="test -x"
5978 else
5979   ac_executable_p="test -f"
5980 fi
5981 rm -f conf$$.file
5982
5983 # Extract the first word of "msgmerge", so it can be a program name with args.
5984 set dummy msgmerge; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   case "$MSGMERGE" in
5991   [\\/]* | ?:[\\/]*)
5992     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5993     ;;
5994   *)
5995     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5996     for ac_dir in $PATH; do
5997       IFS="$ac_save_IFS"
5998       test -z "$ac_dir" && ac_dir=.
5999       for ac_exec_ext in '' $ac_executable_extensions; do
6000         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6001           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6002           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6003             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6004             break 2
6005           fi
6006         fi
6007       done
6008     done
6009     IFS="$ac_save_IFS"
6010   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6011     ;;
6012 esac
6013 fi
6014 MSGMERGE="$ac_cv_path_MSGMERGE"
6015 if test "$MSGMERGE" != ":"; then
6016   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6017 echo "${ECHO_T}$MSGMERGE" >&6; }
6018 else
6019   { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6021 fi
6022
6023
6024       if test "$GMSGFMT" != ":"; then
6025             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6026        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6027       : ;
6028     else
6029       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6030       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6031 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6032       GMSGFMT=":"
6033     fi
6034   fi
6035
6036       if test "$XGETTEXT" != ":"; then
6037             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6038        (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
6039       : ;
6040     else
6041       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6042 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6043       XGETTEXT=":"
6044     fi
6045         rm -f messages.po
6046   fi
6047
6048   ac_config_commands="$ac_config_commands default-1"
6049
6050
6051
6052       if test "X$prefix" = "XNONE"; then
6053     acl_final_prefix="$ac_default_prefix"
6054   else
6055     acl_final_prefix="$prefix"
6056   fi
6057   if test "X$exec_prefix" = "XNONE"; then
6058     acl_final_exec_prefix='${prefix}'
6059   else
6060     acl_final_exec_prefix="$exec_prefix"
6061   fi
6062   acl_save_prefix="$prefix"
6063   prefix="$acl_final_prefix"
6064   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6065   prefix="$acl_save_prefix"
6066
6067
6068 # Check whether --with-gnu-ld was given.
6069 if test "${with_gnu_ld+set}" = set; then
6070   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6071 else
6072   with_gnu_ld=no
6073 fi
6074
6075 # Prepare PATH_SEPARATOR.
6076 # The user is always right.
6077 if test "${PATH_SEPARATOR+set}" != set; then
6078   echo "#! /bin/sh" >conf$$.sh
6079   echo  "exit 0"   >>conf$$.sh
6080   chmod +x conf$$.sh
6081   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6082     PATH_SEPARATOR=';'
6083   else
6084     PATH_SEPARATOR=:
6085   fi
6086   rm -f conf$$.sh
6087 fi
6088 ac_prog=ld
6089 if test "$GCC" = yes; then
6090   # Check if gcc -print-prog-name=ld gives a path.
6091   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6092 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6093   case $host in
6094   *-*-mingw*)
6095     # gcc leaves a trailing carriage return which upsets mingw
6096     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6097   *)
6098     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6099   esac
6100   case $ac_prog in
6101     # Accept absolute paths.
6102     [\\/]* | [A-Za-z]:[\\/]*)
6103       re_direlt='/[^/][^/]*/\.\./'
6104       # Canonicalize the path of ld
6105       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6106       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6107         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6108       done
6109       test -z "$LD" && LD="$ac_prog"
6110       ;;
6111   "")
6112     # If it fails, then pretend we aren't using GCC.
6113     ac_prog=ld
6114     ;;
6115   *)
6116     # If it is relative, then search for the first ld in PATH.
6117     with_gnu_ld=unknown
6118     ;;
6119   esac
6120 elif test "$with_gnu_ld" = yes; then
6121   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6122 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6123 else
6124   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6125 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6126 fi
6127 if test "${acl_cv_path_LD+set}" = set; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130   if test -z "$LD"; then
6131   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6132   for ac_dir in $PATH; do
6133     test -z "$ac_dir" && ac_dir=.
6134     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6135       acl_cv_path_LD="$ac_dir/$ac_prog"
6136       # Check to see if the program is GNU ld.  I'd rather use --version,
6137       # but apparently some GNU ld's only accept -v.
6138       # Break only if it was the GNU/non-GNU ld that we prefer.
6139       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6140       *GNU* | *'with BFD'*)
6141         test "$with_gnu_ld" != no && break ;;
6142       *)
6143         test "$with_gnu_ld" != yes && break ;;
6144       esac
6145     fi
6146   done
6147   IFS="$ac_save_ifs"
6148 else
6149   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6150 fi
6151 fi
6152
6153 LD="$acl_cv_path_LD"
6154 if test -n "$LD"; then
6155   { echo "$as_me:$LINENO: result: $LD" >&5
6156 echo "${ECHO_T}$LD" >&6; }
6157 else
6158   { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6160 fi
6161 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6162 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6163    { (exit 1); exit 1; }; }
6164 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6165 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6166 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6170 case `$LD -v 2>&1 </dev/null` in
6171 *GNU* | *'with BFD'*)
6172   acl_cv_prog_gnu_ld=yes ;;
6173 *)
6174   acl_cv_prog_gnu_ld=no ;;
6175 esac
6176 fi
6177 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6178 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6179 with_gnu_ld=$acl_cv_prog_gnu_ld
6180
6181
6182
6183
6184                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6185 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6186 if test "${acl_cv_rpath+set}" = set; then
6187   echo $ECHO_N "(cached) $ECHO_C" >&6
6188 else
6189
6190     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6191     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6192     . ./conftest.sh
6193     rm -f ./conftest.sh
6194     acl_cv_rpath=done
6195
6196 fi
6197 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6198 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6199   wl="$acl_cv_wl"
6200   libext="$acl_cv_libext"
6201   shlibext="$acl_cv_shlibext"
6202   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6203   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6204   hardcode_direct="$acl_cv_hardcode_direct"
6205   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6206     # Check whether --enable-rpath was given.
6207 if test "${enable_rpath+set}" = set; then
6208   enableval=$enable_rpath; :
6209 else
6210   enable_rpath=yes
6211 fi
6212
6213
6214
6215
6216
6217
6218
6219
6220     use_additional=yes
6221
6222   acl_save_prefix="$prefix"
6223   prefix="$acl_final_prefix"
6224   acl_save_exec_prefix="$exec_prefix"
6225   exec_prefix="$acl_final_exec_prefix"
6226
6227     eval additional_includedir=\"$includedir\"
6228     eval additional_libdir=\"$libdir\"
6229
6230   exec_prefix="$acl_save_exec_prefix"
6231   prefix="$acl_save_prefix"
6232
6233
6234 # Check whether --with-libiconv-prefix was given.
6235 if test "${with_libiconv_prefix+set}" = set; then
6236   withval=$with_libiconv_prefix;
6237     if test "X$withval" = "Xno"; then
6238       use_additional=no
6239     else
6240       if test "X$withval" = "X"; then
6241
6242   acl_save_prefix="$prefix"
6243   prefix="$acl_final_prefix"
6244   acl_save_exec_prefix="$exec_prefix"
6245   exec_prefix="$acl_final_exec_prefix"
6246
6247           eval additional_includedir=\"$includedir\"
6248           eval additional_libdir=\"$libdir\"
6249
6250   exec_prefix="$acl_save_exec_prefix"
6251   prefix="$acl_save_prefix"
6252
6253       else
6254         additional_includedir="$withval/include"
6255         additional_libdir="$withval/lib"
6256       fi
6257     fi
6258
6259 fi
6260
6261       LIBICONV=
6262   LTLIBICONV=
6263   INCICONV=
6264   rpathdirs=
6265   ltrpathdirs=
6266   names_already_handled=
6267   names_next_round='iconv '
6268   while test -n "$names_next_round"; do
6269     names_this_round="$names_next_round"
6270     names_next_round=
6271     for name in $names_this_round; do
6272       already_handled=
6273       for n in $names_already_handled; do
6274         if test "$n" = "$name"; then
6275           already_handled=yes
6276           break
6277         fi
6278       done
6279       if test -z "$already_handled"; then
6280         names_already_handled="$names_already_handled $name"
6281                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6282         eval value=\"\$HAVE_LIB$uppername\"
6283         if test -n "$value"; then
6284           if test "$value" = yes; then
6285             eval value=\"\$LIB$uppername\"
6286             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6287             eval value=\"\$LTLIB$uppername\"
6288             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6289           else
6290                                     :
6291           fi
6292         else
6293                               found_dir=
6294           found_la=
6295           found_so=
6296           found_a=
6297           if test $use_additional = yes; then
6298             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6299               found_dir="$additional_libdir"
6300               found_so="$additional_libdir/lib$name.$shlibext"
6301               if test -f "$additional_libdir/lib$name.la"; then
6302                 found_la="$additional_libdir/lib$name.la"
6303               fi
6304             else
6305               if test -f "$additional_libdir/lib$name.$libext"; then
6306                 found_dir="$additional_libdir"
6307                 found_a="$additional_libdir/lib$name.$libext"
6308                 if test -f "$additional_libdir/lib$name.la"; then
6309                   found_la="$additional_libdir/lib$name.la"
6310                 fi
6311               fi
6312             fi
6313           fi
6314           if test "X$found_dir" = "X"; then
6315             for x in $LDFLAGS $LTLIBICONV; do
6316
6317   acl_save_prefix="$prefix"
6318   prefix="$acl_final_prefix"
6319   acl_save_exec_prefix="$exec_prefix"
6320   exec_prefix="$acl_final_exec_prefix"
6321   eval x=\"$x\"
6322   exec_prefix="$acl_save_exec_prefix"
6323   prefix="$acl_save_prefix"
6324
6325               case "$x" in
6326                 -L*)
6327                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6328                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6329                     found_dir="$dir"
6330                     found_so="$dir/lib$name.$shlibext"
6331                     if test -f "$dir/lib$name.la"; then
6332                       found_la="$dir/lib$name.la"
6333                     fi
6334                   else
6335                     if test -f "$dir/lib$name.$libext"; then
6336                       found_dir="$dir"
6337                       found_a="$dir/lib$name.$libext"
6338                       if test -f "$dir/lib$name.la"; then
6339                         found_la="$dir/lib$name.la"
6340                       fi
6341                     fi
6342                   fi
6343                   ;;
6344               esac
6345               if test "X$found_dir" != "X"; then
6346                 break
6347               fi
6348             done
6349           fi
6350           if test "X$found_dir" != "X"; then
6351                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6352             if test "X$found_so" != "X"; then
6353                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6354                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6355               else
6356                                                                                 haveit=
6357                 for x in $ltrpathdirs; do
6358                   if test "X$x" = "X$found_dir"; then
6359                     haveit=yes
6360                     break
6361                   fi
6362                 done
6363                 if test -z "$haveit"; then
6364                   ltrpathdirs="$ltrpathdirs $found_dir"
6365                 fi
6366                                 if test "$hardcode_direct" = yes; then
6367                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6368                 else
6369                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6370                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6371                                                             haveit=
6372                     for x in $rpathdirs; do
6373                       if test "X$x" = "X$found_dir"; then
6374                         haveit=yes
6375                         break
6376                       fi
6377                     done
6378                     if test -z "$haveit"; then
6379                       rpathdirs="$rpathdirs $found_dir"
6380                     fi
6381                   else
6382                                                                                 haveit=
6383                     for x in $LDFLAGS $LIBICONV; do
6384
6385   acl_save_prefix="$prefix"
6386   prefix="$acl_final_prefix"
6387   acl_save_exec_prefix="$exec_prefix"
6388   exec_prefix="$acl_final_exec_prefix"
6389   eval x=\"$x\"
6390   exec_prefix="$acl_save_exec_prefix"
6391   prefix="$acl_save_prefix"
6392
6393                       if test "X$x" = "X-L$found_dir"; then
6394                         haveit=yes
6395                         break
6396                       fi
6397                     done
6398                     if test -z "$haveit"; then
6399                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6400                     fi
6401                     if test "$hardcode_minus_L" != no; then
6402                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6403                     else
6404                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6405                     fi
6406                   fi
6407                 fi
6408               fi
6409             else
6410               if test "X$found_a" != "X"; then
6411                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6412               else
6413                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6414               fi
6415             fi
6416                         additional_includedir=
6417             case "$found_dir" in
6418               */lib | */lib/)
6419                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6420                 additional_includedir="$basedir/include"
6421                 ;;
6422             esac
6423             if test "X$additional_includedir" != "X"; then
6424                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6425                 haveit=
6426                 if test "X$additional_includedir" = "X/usr/local/include"; then
6427                   if test -n "$GCC"; then
6428                     case $host_os in
6429                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6430                     esac
6431                   fi
6432                 fi
6433                 if test -z "$haveit"; then
6434                   for x in $CPPFLAGS $INCICONV; do
6435
6436   acl_save_prefix="$prefix"
6437   prefix="$acl_final_prefix"
6438   acl_save_exec_prefix="$exec_prefix"
6439   exec_prefix="$acl_final_exec_prefix"
6440   eval x=\"$x\"
6441   exec_prefix="$acl_save_exec_prefix"
6442   prefix="$acl_save_prefix"
6443
6444                     if test "X$x" = "X-I$additional_includedir"; then
6445                       haveit=yes
6446                       break
6447                     fi
6448                   done
6449                   if test -z "$haveit"; then
6450                     if test -d "$additional_includedir"; then
6451                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6452                     fi
6453                   fi
6454                 fi
6455               fi
6456             fi
6457                         if test -n "$found_la"; then
6458                                                         save_libdir="$libdir"
6459               case "$found_la" in
6460                 */* | *\\*) . "$found_la" ;;
6461                 *) . "./$found_la" ;;
6462               esac
6463               libdir="$save_libdir"
6464                             for dep in $dependency_libs; do
6465                 case "$dep" in
6466                   -L*)
6467                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6468                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6469                       haveit=
6470                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6471                         if test -n "$GCC"; then
6472                           case $host_os in
6473                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6474                           esac
6475                         fi
6476                       fi
6477                       if test -z "$haveit"; then
6478                         haveit=
6479                         for x in $LDFLAGS $LIBICONV; do
6480
6481   acl_save_prefix="$prefix"
6482   prefix="$acl_final_prefix"
6483   acl_save_exec_prefix="$exec_prefix"
6484   exec_prefix="$acl_final_exec_prefix"
6485   eval x=\"$x\"
6486   exec_prefix="$acl_save_exec_prefix"
6487   prefix="$acl_save_prefix"
6488
6489                           if test "X$x" = "X-L$additional_libdir"; then
6490                             haveit=yes
6491                             break
6492                           fi
6493                         done
6494                         if test -z "$haveit"; then
6495                           if test -d "$additional_libdir"; then
6496                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6497                           fi
6498                         fi
6499                         haveit=
6500                         for x in $LDFLAGS $LTLIBICONV; do
6501
6502   acl_save_prefix="$prefix"
6503   prefix="$acl_final_prefix"
6504   acl_save_exec_prefix="$exec_prefix"
6505   exec_prefix="$acl_final_exec_prefix"
6506   eval x=\"$x\"
6507   exec_prefix="$acl_save_exec_prefix"
6508   prefix="$acl_save_prefix"
6509
6510                           if test "X$x" = "X-L$additional_libdir"; then
6511                             haveit=yes
6512                             break
6513                           fi
6514                         done
6515                         if test -z "$haveit"; then
6516                           if test -d "$additional_libdir"; then
6517                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6518                           fi
6519                         fi
6520                       fi
6521                     fi
6522                     ;;
6523                   -R*)
6524                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6525                     if test "$enable_rpath" != no; then
6526                                                                   haveit=
6527                       for x in $rpathdirs; do
6528                         if test "X$x" = "X$dir"; then
6529                           haveit=yes
6530                           break
6531                         fi
6532                       done
6533                       if test -z "$haveit"; then
6534                         rpathdirs="$rpathdirs $dir"
6535                       fi
6536                                                                   haveit=
6537                       for x in $ltrpathdirs; 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                         ltrpathdirs="$ltrpathdirs $dir"
6545                       fi
6546                     fi
6547                     ;;
6548                   -l*)
6549                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6550                     ;;
6551                   *.la)
6552                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6553                     ;;
6554                   *)
6555                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6556                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6557                     ;;
6558                 esac
6559               done
6560             fi
6561           else
6562                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6563             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6564           fi
6565         fi
6566       fi
6567     done
6568   done
6569   if test "X$rpathdirs" != "X"; then
6570     if test -n "$hardcode_libdir_separator"; then
6571                         alldirs=
6572       for found_dir in $rpathdirs; do
6573         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6574       done
6575             acl_save_libdir="$libdir"
6576       libdir="$alldirs"
6577       eval flag=\"$hardcode_libdir_flag_spec\"
6578       libdir="$acl_save_libdir"
6579       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6580     else
6581             for found_dir in $rpathdirs; do
6582         acl_save_libdir="$libdir"
6583         libdir="$found_dir"
6584         eval flag=\"$hardcode_libdir_flag_spec\"
6585         libdir="$acl_save_libdir"
6586         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6587       done
6588     fi
6589   fi
6590   if test "X$ltrpathdirs" != "X"; then
6591             for found_dir in $ltrpathdirs; do
6592       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6593     done
6594   fi
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6614 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6615 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6616   echo $ECHO_N "(cached) $ECHO_C" >&6
6617 else
6618   gt_save_CPPFLAGS="$CPPFLAGS"
6619      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6620      gt_save_LIBS="$LIBS"
6621      LIBS="$LIBS -framework CoreFoundation"
6622      cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h.  */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h.  */
6628 #include <CFPreferences.h>
6629 int
6630 main ()
6631 {
6632 CFPreferencesCopyAppValue(NULL, NULL)
6633   ;
6634   return 0;
6635 }
6636 _ACEOF
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (ac_try="$ac_link"
6639 case "(($ac_try" in
6640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641   *) ac_try_echo=$ac_try;;
6642 esac
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644   (eval "$ac_link") 2>conftest.er1
6645   ac_status=$?
6646   grep -v '^ *+' conftest.er1 >conftest.err
6647   rm -f conftest.er1
6648   cat conftest.err >&5
6649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650   (exit $ac_status); } && {
6651          test -z "$ac_c_werror_flag" ||
6652          test ! -s conftest.err
6653        } && test -s conftest$ac_exeext &&
6654        $as_test_x conftest$ac_exeext; then
6655   gt_cv_func_CFPreferencesCopyAppValue=yes
6656 else
6657   echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660         gt_cv_func_CFPreferencesCopyAppValue=no
6661 fi
6662
6663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6664       conftest$ac_exeext conftest.$ac_ext
6665      CPPFLAGS="$gt_save_CPPFLAGS"
6666      LIBS="$gt_save_LIBS"
6667 fi
6668 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6669 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6670   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6671
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6674 _ACEOF
6675
6676   fi
6677     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6678 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6679 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   gt_save_CPPFLAGS="$CPPFLAGS"
6683      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6684      gt_save_LIBS="$LIBS"
6685      LIBS="$LIBS -framework CoreFoundation"
6686      cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h.  */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h.  */
6692 #include <CFLocale.h>
6693 int
6694 main ()
6695 {
6696 CFLocaleCopyCurrent();
6697   ;
6698   return 0;
6699 }
6700 _ACEOF
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (ac_try="$ac_link"
6703 case "(($ac_try" in
6704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705   *) ac_try_echo=$ac_try;;
6706 esac
6707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708   (eval "$ac_link") 2>conftest.er1
6709   ac_status=$?
6710   grep -v '^ *+' conftest.er1 >conftest.err
6711   rm -f conftest.er1
6712   cat conftest.err >&5
6713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714   (exit $ac_status); } && {
6715          test -z "$ac_c_werror_flag" ||
6716          test ! -s conftest.err
6717        } && test -s conftest$ac_exeext &&
6718        $as_test_x conftest$ac_exeext; then
6719   gt_cv_func_CFLocaleCopyCurrent=yes
6720 else
6721   echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6723
6724         gt_cv_func_CFLocaleCopyCurrent=no
6725 fi
6726
6727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6728       conftest$ac_exeext conftest.$ac_ext
6729      CPPFLAGS="$gt_save_CPPFLAGS"
6730      LIBS="$gt_save_LIBS"
6731 fi
6732 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6733 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6734   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6735
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_CFLOCALECOPYCURRENT 1
6738 _ACEOF
6739
6740   fi
6741   INTL_MACOSX_LIBS=
6742   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6743     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6744   fi
6745
6746
6747
6748
6749   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6750 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6751     # Check whether --enable-nls was given.
6752 if test "${enable_nls+set}" = set; then
6753   enableval=$enable_nls; USE_NLS=$enableval
6754 else
6755   USE_NLS=yes
6756 fi
6757
6758   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6759 echo "${ECHO_T}$USE_NLS" >&6; }
6760
6761
6762
6763
6764   LIBINTL=
6765   LTLIBINTL=
6766   POSUB=
6767
6768     if test "$USE_NLS" = "yes"; then
6769     gt_use_preinstalled_gnugettext=no
6770
6771
6772
6773
6774
6775
6776         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6777 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6778 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h.  */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h.  */
6787 #include <libintl.h>
6788 extern int _nl_msg_cat_cntr;
6789 extern int *_nl_domain_bindings;
6790 int
6791 main ()
6792 {
6793 bindtextdomain ("", "");
6794 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6795   ;
6796   return 0;
6797 }
6798 _ACEOF
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (ac_try="$ac_link"
6801 case "(($ac_try" in
6802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803   *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806   (eval "$ac_link") 2>conftest.er1
6807   ac_status=$?
6808   grep -v '^ *+' conftest.er1 >conftest.err
6809   rm -f conftest.er1
6810   cat conftest.err >&5
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); } && {
6813          test -z "$ac_c_werror_flag" ||
6814          test ! -s conftest.err
6815        } && test -s conftest$ac_exeext &&
6816        $as_test_x conftest$ac_exeext; then
6817   gt_cv_func_gnugettext1_libc=yes
6818 else
6819   echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822         gt_cv_func_gnugettext1_libc=no
6823 fi
6824
6825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6826       conftest$ac_exeext conftest.$ac_ext
6827 fi
6828 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6829 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6830
6831         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6832
6833
6834
6835
6836
6837           am_save_CPPFLAGS="$CPPFLAGS"
6838
6839   for element in $INCICONV; do
6840     haveit=
6841     for x in $CPPFLAGS; do
6842
6843   acl_save_prefix="$prefix"
6844   prefix="$acl_final_prefix"
6845   acl_save_exec_prefix="$exec_prefix"
6846   exec_prefix="$acl_final_exec_prefix"
6847   eval x=\"$x\"
6848   exec_prefix="$acl_save_exec_prefix"
6849   prefix="$acl_save_prefix"
6850
6851       if test "X$x" = "X$element"; then
6852         haveit=yes
6853         break
6854       fi
6855     done
6856     if test -z "$haveit"; then
6857       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6858     fi
6859   done
6860
6861
6862   { echo "$as_me:$LINENO: checking for iconv" >&5
6863 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6864 if test "${am_cv_func_iconv+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867
6868     am_cv_func_iconv="no, consider installing GNU libiconv"
6869     am_cv_lib_iconv=no
6870     cat >conftest.$ac_ext <<_ACEOF
6871 /* confdefs.h.  */
6872 _ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h.  */
6876 #include <stdlib.h>
6877 #include <iconv.h>
6878 int
6879 main ()
6880 {
6881 iconv_t cd = iconv_open("","");
6882        iconv(cd,NULL,NULL,NULL,NULL);
6883        iconv_close(cd);
6884   ;
6885   return 0;
6886 }
6887 _ACEOF
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (ac_try="$ac_link"
6890 case "(($ac_try" in
6891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892   *) ac_try_echo=$ac_try;;
6893 esac
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895   (eval "$ac_link") 2>conftest.er1
6896   ac_status=$?
6897   grep -v '^ *+' conftest.er1 >conftest.err
6898   rm -f conftest.er1
6899   cat conftest.err >&5
6900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901   (exit $ac_status); } && {
6902          test -z "$ac_c_werror_flag" ||
6903          test ! -s conftest.err
6904        } && test -s conftest$ac_exeext &&
6905        $as_test_x conftest$ac_exeext; then
6906   am_cv_func_iconv=yes
6907 else
6908   echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911
6912 fi
6913
6914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6915       conftest$ac_exeext conftest.$ac_ext
6916     if test "$am_cv_func_iconv" != yes; then
6917       am_save_LIBS="$LIBS"
6918       LIBS="$LIBS $LIBICONV"
6919       cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h.  */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h.  */
6925 #include <stdlib.h>
6926 #include <iconv.h>
6927 int
6928 main ()
6929 {
6930 iconv_t cd = iconv_open("","");
6931          iconv(cd,NULL,NULL,NULL,NULL);
6932          iconv_close(cd);
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (ac_try="$ac_link"
6939 case "(($ac_try" in
6940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941   *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944   (eval "$ac_link") 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } && {
6951          test -z "$ac_c_werror_flag" ||
6952          test ! -s conftest.err
6953        } && test -s conftest$ac_exeext &&
6954        $as_test_x conftest$ac_exeext; then
6955   am_cv_lib_iconv=yes
6956         am_cv_func_iconv=yes
6957 else
6958   echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961
6962 fi
6963
6964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6965       conftest$ac_exeext conftest.$ac_ext
6966       LIBS="$am_save_LIBS"
6967     fi
6968
6969 fi
6970 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6971 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6972   if test "$am_cv_func_iconv" = yes; then
6973
6974 cat >>confdefs.h <<\_ACEOF
6975 #define HAVE_ICONV 1
6976 _ACEOF
6977
6978   fi
6979   if test "$am_cv_lib_iconv" = yes; then
6980     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6981 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6982     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6983 echo "${ECHO_T}$LIBICONV" >&6; }
6984   else
6985             CPPFLAGS="$am_save_CPPFLAGS"
6986     LIBICONV=
6987     LTLIBICONV=
6988   fi
6989
6990
6991
6992
6993
6994
6995     use_additional=yes
6996
6997   acl_save_prefix="$prefix"
6998   prefix="$acl_final_prefix"
6999   acl_save_exec_prefix="$exec_prefix"
7000   exec_prefix="$acl_final_exec_prefix"
7001
7002     eval additional_includedir=\"$includedir\"
7003     eval additional_libdir=\"$libdir\"
7004
7005   exec_prefix="$acl_save_exec_prefix"
7006   prefix="$acl_save_prefix"
7007
7008
7009 # Check whether --with-libintl-prefix was given.
7010 if test "${with_libintl_prefix+set}" = set; then
7011   withval=$with_libintl_prefix;
7012     if test "X$withval" = "Xno"; then
7013       use_additional=no
7014     else
7015       if test "X$withval" = "X"; then
7016
7017   acl_save_prefix="$prefix"
7018   prefix="$acl_final_prefix"
7019   acl_save_exec_prefix="$exec_prefix"
7020   exec_prefix="$acl_final_exec_prefix"
7021
7022           eval additional_includedir=\"$includedir\"
7023           eval additional_libdir=\"$libdir\"
7024
7025   exec_prefix="$acl_save_exec_prefix"
7026   prefix="$acl_save_prefix"
7027
7028       else
7029         additional_includedir="$withval/include"
7030         additional_libdir="$withval/lib"
7031       fi
7032     fi
7033
7034 fi
7035
7036       LIBINTL=
7037   LTLIBINTL=
7038   INCINTL=
7039   rpathdirs=
7040   ltrpathdirs=
7041   names_already_handled=
7042   names_next_round='intl '
7043   while test -n "$names_next_round"; do
7044     names_this_round="$names_next_round"
7045     names_next_round=
7046     for name in $names_this_round; do
7047       already_handled=
7048       for n in $names_already_handled; do
7049         if test "$n" = "$name"; then
7050           already_handled=yes
7051           break
7052         fi
7053       done
7054       if test -z "$already_handled"; then
7055         names_already_handled="$names_already_handled $name"
7056                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7057         eval value=\"\$HAVE_LIB$uppername\"
7058         if test -n "$value"; then
7059           if test "$value" = yes; then
7060             eval value=\"\$LIB$uppername\"
7061             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7062             eval value=\"\$LTLIB$uppername\"
7063             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7064           else
7065                                     :
7066           fi
7067         else
7068                               found_dir=
7069           found_la=
7070           found_so=
7071           found_a=
7072           if test $use_additional = yes; then
7073             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7074               found_dir="$additional_libdir"
7075               found_so="$additional_libdir/lib$name.$shlibext"
7076               if test -f "$additional_libdir/lib$name.la"; then
7077                 found_la="$additional_libdir/lib$name.la"
7078               fi
7079             else
7080               if test -f "$additional_libdir/lib$name.$libext"; then
7081                 found_dir="$additional_libdir"
7082                 found_a="$additional_libdir/lib$name.$libext"
7083                 if test -f "$additional_libdir/lib$name.la"; then
7084                   found_la="$additional_libdir/lib$name.la"
7085                 fi
7086               fi
7087             fi
7088           fi
7089           if test "X$found_dir" = "X"; then
7090             for x in $LDFLAGS $LTLIBINTL; do
7091
7092   acl_save_prefix="$prefix"
7093   prefix="$acl_final_prefix"
7094   acl_save_exec_prefix="$exec_prefix"
7095   exec_prefix="$acl_final_exec_prefix"
7096   eval x=\"$x\"
7097   exec_prefix="$acl_save_exec_prefix"
7098   prefix="$acl_save_prefix"
7099
7100               case "$x" in
7101                 -L*)
7102                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7103                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7104                     found_dir="$dir"
7105                     found_so="$dir/lib$name.$shlibext"
7106                     if test -f "$dir/lib$name.la"; then
7107                       found_la="$dir/lib$name.la"
7108                     fi
7109                   else
7110                     if test -f "$dir/lib$name.$libext"; then
7111                       found_dir="$dir"
7112                       found_a="$dir/lib$name.$libext"
7113                       if test -f "$dir/lib$name.la"; then
7114                         found_la="$dir/lib$name.la"
7115                       fi
7116                     fi
7117                   fi
7118                   ;;
7119               esac
7120               if test "X$found_dir" != "X"; then
7121                 break
7122               fi
7123             done
7124           fi
7125           if test "X$found_dir" != "X"; then
7126                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7127             if test "X$found_so" != "X"; then
7128                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7129                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7130               else
7131                                                                                 haveit=
7132                 for x in $ltrpathdirs; do
7133                   if test "X$x" = "X$found_dir"; then
7134                     haveit=yes
7135                     break
7136                   fi
7137                 done
7138                 if test -z "$haveit"; then
7139                   ltrpathdirs="$ltrpathdirs $found_dir"
7140                 fi
7141                                 if test "$hardcode_direct" = yes; then
7142                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7143                 else
7144                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7145                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7146                                                             haveit=
7147                     for x in $rpathdirs; do
7148                       if test "X$x" = "X$found_dir"; then
7149                         haveit=yes
7150                         break
7151                       fi
7152                     done
7153                     if test -z "$haveit"; then
7154                       rpathdirs="$rpathdirs $found_dir"
7155                     fi
7156                   else
7157                                                                                 haveit=
7158                     for x in $LDFLAGS $LIBINTL; do
7159
7160   acl_save_prefix="$prefix"
7161   prefix="$acl_final_prefix"
7162   acl_save_exec_prefix="$exec_prefix"
7163   exec_prefix="$acl_final_exec_prefix"
7164   eval x=\"$x\"
7165   exec_prefix="$acl_save_exec_prefix"
7166   prefix="$acl_save_prefix"
7167
7168                       if test "X$x" = "X-L$found_dir"; then
7169                         haveit=yes
7170                         break
7171                       fi
7172                     done
7173                     if test -z "$haveit"; then
7174                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7175                     fi
7176                     if test "$hardcode_minus_L" != no; then
7177                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7178                     else
7179                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7180                     fi
7181                   fi
7182                 fi
7183               fi
7184             else
7185               if test "X$found_a" != "X"; then
7186                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7187               else
7188                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7189               fi
7190             fi
7191                         additional_includedir=
7192             case "$found_dir" in
7193               */lib | */lib/)
7194                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7195                 additional_includedir="$basedir/include"
7196                 ;;
7197             esac
7198             if test "X$additional_includedir" != "X"; then
7199                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7200                 haveit=
7201                 if test "X$additional_includedir" = "X/usr/local/include"; then
7202                   if test -n "$GCC"; then
7203                     case $host_os in
7204                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7205                     esac
7206                   fi
7207                 fi
7208                 if test -z "$haveit"; then
7209                   for x in $CPPFLAGS $INCINTL; do
7210
7211   acl_save_prefix="$prefix"
7212   prefix="$acl_final_prefix"
7213   acl_save_exec_prefix="$exec_prefix"
7214   exec_prefix="$acl_final_exec_prefix"
7215   eval x=\"$x\"
7216   exec_prefix="$acl_save_exec_prefix"
7217   prefix="$acl_save_prefix"
7218
7219                     if test "X$x" = "X-I$additional_includedir"; then
7220                       haveit=yes
7221                       break
7222                     fi
7223                   done
7224                   if test -z "$haveit"; then
7225                     if test -d "$additional_includedir"; then
7226                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7227                     fi
7228                   fi
7229                 fi
7230               fi
7231             fi
7232                         if test -n "$found_la"; then
7233                                                         save_libdir="$libdir"
7234               case "$found_la" in
7235                 */* | *\\*) . "$found_la" ;;
7236                 *) . "./$found_la" ;;
7237               esac
7238               libdir="$save_libdir"
7239                             for dep in $dependency_libs; do
7240                 case "$dep" in
7241                   -L*)
7242                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7243                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7244                       haveit=
7245                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7246                         if test -n "$GCC"; then
7247                           case $host_os in
7248                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7249                           esac
7250                         fi
7251                       fi
7252                       if test -z "$haveit"; then
7253                         haveit=
7254                         for x in $LDFLAGS $LIBINTL; do
7255
7256   acl_save_prefix="$prefix"
7257   prefix="$acl_final_prefix"
7258   acl_save_exec_prefix="$exec_prefix"
7259   exec_prefix="$acl_final_exec_prefix"
7260   eval x=\"$x\"
7261   exec_prefix="$acl_save_exec_prefix"
7262   prefix="$acl_save_prefix"
7263
7264                           if test "X$x" = "X-L$additional_libdir"; then
7265                             haveit=yes
7266                             break
7267                           fi
7268                         done
7269                         if test -z "$haveit"; then
7270                           if test -d "$additional_libdir"; then
7271                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7272                           fi
7273                         fi
7274                         haveit=
7275                         for x in $LDFLAGS $LTLIBINTL; do
7276
7277   acl_save_prefix="$prefix"
7278   prefix="$acl_final_prefix"
7279   acl_save_exec_prefix="$exec_prefix"
7280   exec_prefix="$acl_final_exec_prefix"
7281   eval x=\"$x\"
7282   exec_prefix="$acl_save_exec_prefix"
7283   prefix="$acl_save_prefix"
7284
7285                           if test "X$x" = "X-L$additional_libdir"; then
7286                             haveit=yes
7287                             break
7288                           fi
7289                         done
7290                         if test -z "$haveit"; then
7291                           if test -d "$additional_libdir"; then
7292                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7293                           fi
7294                         fi
7295                       fi
7296                     fi
7297                     ;;
7298                   -R*)
7299                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7300                     if test "$enable_rpath" != no; then
7301                                                                   haveit=
7302                       for x in $rpathdirs; do
7303                         if test "X$x" = "X$dir"; then
7304                           haveit=yes
7305                           break
7306                         fi
7307                       done
7308                       if test -z "$haveit"; then
7309                         rpathdirs="$rpathdirs $dir"
7310                       fi
7311                                                                   haveit=
7312                       for x in $ltrpathdirs; 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                         ltrpathdirs="$ltrpathdirs $dir"
7320                       fi
7321                     fi
7322                     ;;
7323                   -l*)
7324                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7325                     ;;
7326                   *.la)
7327                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7328                     ;;
7329                   *)
7330                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7331                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7332                     ;;
7333                 esac
7334               done
7335             fi
7336           else
7337                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7338             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7339           fi
7340         fi
7341       fi
7342     done
7343   done
7344   if test "X$rpathdirs" != "X"; then
7345     if test -n "$hardcode_libdir_separator"; then
7346                         alldirs=
7347       for found_dir in $rpathdirs; do
7348         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7349       done
7350             acl_save_libdir="$libdir"
7351       libdir="$alldirs"
7352       eval flag=\"$hardcode_libdir_flag_spec\"
7353       libdir="$acl_save_libdir"
7354       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7355     else
7356             for found_dir in $rpathdirs; do
7357         acl_save_libdir="$libdir"
7358         libdir="$found_dir"
7359         eval flag=\"$hardcode_libdir_flag_spec\"
7360         libdir="$acl_save_libdir"
7361         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7362       done
7363     fi
7364   fi
7365   if test "X$ltrpathdirs" != "X"; then
7366             for found_dir in $ltrpathdirs; do
7367       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7368     done
7369   fi
7370
7371           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7372 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7373 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7374   echo $ECHO_N "(cached) $ECHO_C" >&6
7375 else
7376   gt_save_CPPFLAGS="$CPPFLAGS"
7377             CPPFLAGS="$CPPFLAGS $INCINTL"
7378             gt_save_LIBS="$LIBS"
7379             LIBS="$LIBS $LIBINTL"
7380                         cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386 #include <libintl.h>
7387 extern int _nl_msg_cat_cntr;
7388 extern
7389 #ifdef __cplusplus
7390 "C"
7391 #endif
7392 const char *_nl_expand_alias (const char *);
7393 int
7394 main ()
7395 {
7396 bindtextdomain ("", "");
7397 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7398   ;
7399   return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7404 case "(($ac_try" in
7405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406   *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409   (eval "$ac_link") 2>conftest.er1
7410   ac_status=$?
7411   grep -v '^ *+' conftest.er1 >conftest.err
7412   rm -f conftest.er1
7413   cat conftest.err >&5
7414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415   (exit $ac_status); } && {
7416          test -z "$ac_c_werror_flag" ||
7417          test ! -s conftest.err
7418        } && test -s conftest$ac_exeext &&
7419        $as_test_x conftest$ac_exeext; then
7420   gt_cv_func_gnugettext1_libintl=yes
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425         gt_cv_func_gnugettext1_libintl=no
7426 fi
7427
7428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7429       conftest$ac_exeext conftest.$ac_ext
7430                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7431               LIBS="$LIBS $LIBICONV"
7432               cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h.  */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h.  */
7438 #include <libintl.h>
7439 extern int _nl_msg_cat_cntr;
7440 extern
7441 #ifdef __cplusplus
7442 "C"
7443 #endif
7444 const char *_nl_expand_alias (const char *);
7445 int
7446 main ()
7447 {
7448 bindtextdomain ("", "");
7449 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7450   ;
7451   return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (ac_try="$ac_link"
7456 case "(($ac_try" in
7457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458   *) ac_try_echo=$ac_try;;
7459 esac
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461   (eval "$ac_link") 2>conftest.er1
7462   ac_status=$?
7463   grep -v '^ *+' conftest.er1 >conftest.err
7464   rm -f conftest.er1
7465   cat conftest.err >&5
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); } && {
7468          test -z "$ac_c_werror_flag" ||
7469          test ! -s conftest.err
7470        } && test -s conftest$ac_exeext &&
7471        $as_test_x conftest$ac_exeext; then
7472   LIBINTL="$LIBINTL $LIBICONV"
7473                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7474                 gt_cv_func_gnugettext1_libintl=yes
7475
7476 else
7477   echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7479
7480
7481 fi
7482
7483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7484       conftest$ac_exeext conftest.$ac_ext
7485             fi
7486             CPPFLAGS="$gt_save_CPPFLAGS"
7487             LIBS="$gt_save_LIBS"
7488 fi
7489 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7491         fi
7492
7493                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7494            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7495                 && test "$PACKAGE" != gettext-runtime \
7496                 && test "$PACKAGE" != gettext-tools; }; then
7497           gt_use_preinstalled_gnugettext=yes
7498         else
7499                     LIBINTL=
7500           LTLIBINTL=
7501           INCINTL=
7502         fi
7503
7504
7505
7506     if test -n "$INTL_MACOSX_LIBS"; then
7507       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7508          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7509                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7510         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7511       fi
7512     fi
7513
7514     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7515        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7516
7517 cat >>confdefs.h <<\_ACEOF
7518 #define ENABLE_NLS 1
7519 _ACEOF
7520
7521     else
7522       USE_NLS=no
7523     fi
7524   fi
7525
7526   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7527 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7528   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7529 echo "${ECHO_T}$USE_NLS" >&6; }
7530   if test "$USE_NLS" = "yes"; then
7531     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7532 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7533     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7534       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7535         gt_source="external libintl"
7536       else
7537         gt_source="libc"
7538       fi
7539     else
7540       gt_source="included intl directory"
7541     fi
7542     { echo "$as_me:$LINENO: result: $gt_source" >&5
7543 echo "${ECHO_T}$gt_source" >&6; }
7544   fi
7545
7546   if test "$USE_NLS" = "yes"; then
7547
7548     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7549       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7550         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7551 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7552         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7553 echo "${ECHO_T}$LIBINTL" >&6; }
7554
7555   for element in $INCINTL; do
7556     haveit=
7557     for x in $CPPFLAGS; do
7558
7559   acl_save_prefix="$prefix"
7560   prefix="$acl_final_prefix"
7561   acl_save_exec_prefix="$exec_prefix"
7562   exec_prefix="$acl_final_exec_prefix"
7563   eval x=\"$x\"
7564   exec_prefix="$acl_save_exec_prefix"
7565   prefix="$acl_save_prefix"
7566
7567       if test "X$x" = "X$element"; then
7568         haveit=yes
7569         break
7570       fi
7571     done
7572     if test -z "$haveit"; then
7573       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7574     fi
7575   done
7576
7577       fi
7578
7579
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_GETTEXT 1
7582 _ACEOF
7583
7584
7585 cat >>confdefs.h <<\_ACEOF
7586 #define HAVE_DCGETTEXT 1
7587 _ACEOF
7588
7589     fi
7590
7591         POSUB=po
7592   fi
7593
7594
7595
7596     INTLLIBS="$LIBINTL"
7597
7598
7599
7600
7601
7602
7603 if test x${prefix} = xNONE ; then
7604    if test `eval echo ${datadir}` = NONE/share ; then
7605       datadir=/usr/share
7606    fi
7607 fi
7608
7609 # ------------------------------------------------------------------
7610 #  If the user has not set --prefix, we set our default to nothing.
7611 #  In this case, if the user has not set --sysconfdir, we set it
7612 #  to the package default of /etc/bacula.  If either --prefix or
7613 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7614 # ------------------------------------------------------------------
7615 if test x${prefix} = xNONE ; then
7616     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7617         sysconfdir=/etc/bacula
7618     fi
7619     prefix=
7620 fi
7621 sysconfdir=`eval echo ${sysconfdir}`
7622 datadir=`eval echo ${datadir}`
7623 localedir=`eval echo ${datadir}/locale`
7624 cat >>confdefs.h <<_ACEOF
7625 #define LOCALEDIR "$localedir"
7626 _ACEOF
7627
7628 cat >>confdefs.h <<_ACEOF
7629 #define SYSCONFDIR "$sysconfdir"
7630 _ACEOF
7631
7632
7633 # -------------------------------------------------------------------------
7634 #  If the user has not set --exec-prefix, we default to ${prefix}
7635 # -------------------------------------------------------------------------
7636 if test x${exec_prefix} = xNONE ; then
7637     exec_prefix=${prefix}
7638 fi
7639
7640 # ------------------------------------------------------------------
7641 # If the user has not set --sbindir, we set our default as /sbin
7642 # ------------------------------------------------------------------
7643 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7644     sbindir=${exec_prefix}/sbin
7645 fi
7646 sbindir=`eval echo ${sbindir}`
7647
7648
7649 # -------------------------------------------------------------------------
7650 #  If the user has not set --mandir, we default to /usr/share/man
7651 # -------------------------------------------------------------------------
7652 if test x$mandir = x'${prefix}/man' ; then
7653    mandir=/usr/share/man
7654 fi
7655
7656
7657 for ac_prog in msgfmt
7658 do
7659   # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_MSGFMT+set}" = set; then
7664   echo $ECHO_N "(cached) $ECHO_C" >&6
7665 else
7666   case $MSGFMT in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676   for ac_exec_ext in '' $ac_executable_extensions; do
7677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686   ;;
7687 esac
7688 fi
7689 MSGFMT=$ac_cv_path_MSGFMT
7690 if test -n "$MSGFMT"; then
7691   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7692 echo "${ECHO_T}$MSGFMT" >&6; }
7693 else
7694   { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7696 fi
7697
7698
7699   test -n "$MSGFMT" && break
7700 done
7701 test -n "$MSGFMT" || MSGFMT="no"
7702
7703 if test "$MSGFMT" = "no"
7704 then
7705    echo 'msgfmt program not found, disabling NLS !'
7706    USE_NLS=no
7707    USE_INCLUDED_LIBINTL=no
7708 #else
7709
7710     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7711 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7712 if test "${ac_cv_gnu_library_2+set}" = set; then
7713   echo $ECHO_N "(cached) $ECHO_C" >&6
7714 else
7715   cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h.  */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h.  */
7721
7722 #include <features.h>
7723 #ifdef __GNU_LIBRARY__
7724  #if (__GLIBC__ >= 2)
7725   Lucky GNU user
7726  #endif
7727 #endif
7728
7729 _ACEOF
7730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7731   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7732   ac_cv_gnu_library_2=yes
7733 else
7734   ac_cv_gnu_library_2=no
7735 fi
7736 rm -f conftest*
7737
7738
7739
7740 fi
7741 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7742 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7743
7744     GLIBC2="$ac_cv_gnu_library_2"
7745
7746
7747
7748         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7749 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7750 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7751   echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753   ac_check_lib_save_LIBS=$LIBS
7754 LIBS="-lcposix  $LIBS"
7755 cat >conftest.$ac_ext <<_ACEOF
7756 /* confdefs.h.  */
7757 _ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h.  */
7761
7762 /* Override any GCC internal prototype to avoid an error.
7763    Use char because int might match the return type of a GCC
7764    builtin and then its argument prototype would still apply.  */
7765 #ifdef __cplusplus
7766 extern "C"
7767 #endif
7768 char strerror ();
7769 int
7770 main ()
7771 {
7772 return strerror ();
7773   ;
7774   return 0;
7775 }
7776 _ACEOF
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (ac_try="$ac_link"
7779 case "(($ac_try" in
7780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781   *) ac_try_echo=$ac_try;;
7782 esac
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784   (eval "$ac_link") 2>conftest.er1
7785   ac_status=$?
7786   grep -v '^ *+' conftest.er1 >conftest.err
7787   rm -f conftest.er1
7788   cat conftest.err >&5
7789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790   (exit $ac_status); } && {
7791          test -z "$ac_c_werror_flag" ||
7792          test ! -s conftest.err
7793        } && test -s conftest$ac_exeext &&
7794        $as_test_x conftest$ac_exeext; then
7795   ac_cv_lib_cposix_strerror=yes
7796 else
7797   echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7799
7800         ac_cv_lib_cposix_strerror=no
7801 fi
7802
7803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7804       conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7806 fi
7807 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7808 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7809 if test $ac_cv_lib_cposix_strerror = yes; then
7810   LIBS="$LIBS -lcposix"
7811 fi
7812
7813
7814
7815 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7817 if test "${ac_cv_header_stdc+set}" = set; then
7818   echo $ECHO_N "(cached) $ECHO_C" >&6
7819 else
7820   cat >conftest.$ac_ext <<_ACEOF
7821 /* confdefs.h.  */
7822 _ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h.  */
7826 #include <stdlib.h>
7827 #include <stdarg.h>
7828 #include <string.h>
7829 #include <float.h>
7830
7831 int
7832 main ()
7833 {
7834
7835   ;
7836   return 0;
7837 }
7838 _ACEOF
7839 rm -f conftest.$ac_objext
7840 if { (ac_try="$ac_compile"
7841 case "(($ac_try" in
7842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843   *) ac_try_echo=$ac_try;;
7844 esac
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846   (eval "$ac_compile") 2>conftest.er1
7847   ac_status=$?
7848   grep -v '^ *+' conftest.er1 >conftest.err
7849   rm -f conftest.er1
7850   cat conftest.err >&5
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); } && {
7853          test -z "$ac_c_werror_flag" ||
7854          test ! -s conftest.err
7855        } && test -s conftest.$ac_objext; then
7856   ac_cv_header_stdc=yes
7857 else
7858   echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861         ac_cv_header_stdc=no
7862 fi
7863
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865
7866 if test $ac_cv_header_stdc = yes; then
7867   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7868   cat >conftest.$ac_ext <<_ACEOF
7869 /* confdefs.h.  */
7870 _ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h.  */
7874 #include <string.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878   $EGREP "memchr" >/dev/null 2>&1; then
7879   :
7880 else
7881   ac_cv_header_stdc=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886
7887 if test $ac_cv_header_stdc = yes; then
7888   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7889   cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 #include <stdlib.h>
7896
7897 _ACEOF
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899   $EGREP "free" >/dev/null 2>&1; then
7900   :
7901 else
7902   ac_cv_header_stdc=no
7903 fi
7904 rm -f conftest*
7905
7906 fi
7907
7908 if test $ac_cv_header_stdc = yes; then
7909   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7910   if test "$cross_compiling" = yes; then
7911   :
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 #include <ctype.h>
7920 #include <stdlib.h>
7921 #if ((' ' & 0x0FF) == 0x020)
7922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7924 #else
7925 # define ISLOWER(c) \
7926                    (('a' <= (c) && (c) <= 'i') \
7927                      || ('j' <= (c) && (c) <= 'r') \
7928                      || ('s' <= (c) && (c) <= 'z'))
7929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7930 #endif
7931
7932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7933 int
7934 main ()
7935 {
7936   int i;
7937   for (i = 0; i < 256; i++)
7938     if (XOR (islower (i), ISLOWER (i))
7939         || toupper (i) != TOUPPER (i))
7940       return 2;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7946 case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_link") 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7955   { (case "(($ac_try" in
7956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957   *) ac_try_echo=$ac_try;;
7958 esac
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960   (eval "$ac_try") 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; }; then
7964   :
7965 else
7966   echo "$as_me: program exited with status $ac_status" >&5
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970 ( exit $ac_status )
7971 ac_cv_header_stdc=no
7972 fi
7973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7974 fi
7975
7976
7977 fi
7978 fi
7979 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7980 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7981 if test $ac_cv_header_stdc = yes; then
7982
7983 cat >>confdefs.h <<\_ACEOF
7984 #define STDC_HEADERS 1
7985 _ACEOF
7986
7987 fi
7988
7989 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7991 if test "${ac_cv_c_const+set}" = set; then
7992   echo $ECHO_N "(cached) $ECHO_C" >&6
7993 else
7994   cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h.  */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h.  */
8000
8001 int
8002 main ()
8003 {
8004 /* FIXME: Include the comments suggested by Paul. */
8005 #ifndef __cplusplus
8006   /* Ultrix mips cc rejects this.  */
8007   typedef int charset[2];
8008   const charset cs;
8009   /* SunOS 4.1.1 cc rejects this.  */
8010   char const *const *pcpcc;
8011   char **ppc;
8012   /* NEC SVR4.0.2 mips cc rejects this.  */
8013   struct point {int x, y;};
8014   static struct point const zero = {0,0};
8015   /* AIX XL C 1.02.0.0 rejects this.
8016      It does not let you subtract one const X* pointer from another in
8017      an arm of an if-expression whose if-part is not a constant
8018      expression */
8019   const char *g = "string";
8020   pcpcc = &g + (g ? g-g : 0);
8021   /* HPUX 7.0 cc rejects these. */
8022   ++pcpcc;
8023   ppc = (char**) pcpcc;
8024   pcpcc = (char const *const *) ppc;
8025   { /* SCO 3.2v4 cc rejects this.  */
8026     char *t;
8027     char const *s = 0 ? (char *) 0 : (char const *) 0;
8028
8029     *t++ = 0;
8030     if (s) return 0;
8031   }
8032   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8033     int x[] = {25, 17};
8034     const int *foo = &x[0];
8035     ++foo;
8036   }
8037   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038     typedef const int *iptr;
8039     iptr p = 0;
8040     ++p;
8041   }
8042   { /* AIX XL C 1.02.0.0 rejects this saying
8043        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044     struct s { int j; const int *ap[3]; };
8045     struct s *b; b->j = 5;
8046   }
8047   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8048     const int foo = 10;
8049     if (!foo) return 0;
8050   }
8051   return !cs[0] && !zero.x;
8052 #endif
8053
8054   ;
8055   return 0;
8056 }
8057 _ACEOF
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8060 case "(($ac_try" in
8061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062   *) ac_try_echo=$ac_try;;
8063 esac
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065   (eval "$ac_compile") 2>conftest.er1
8066   ac_status=$?
8067   grep -v '^ *+' conftest.er1 >conftest.err
8068   rm -f conftest.er1
8069   cat conftest.err >&5
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); } && {
8072          test -z "$ac_c_werror_flag" ||
8073          test ! -s conftest.err
8074        } && test -s conftest.$ac_objext; then
8075   ac_cv_c_const=yes
8076 else
8077   echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8079
8080         ac_cv_c_const=no
8081 fi
8082
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 fi
8085 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8086 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8087 if test $ac_cv_c_const = no; then
8088
8089 cat >>confdefs.h <<\_ACEOF
8090 #define const
8091 _ACEOF
8092
8093 fi
8094
8095
8096   { echo "$as_me:$LINENO: checking for signed" >&5
8097 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8098 if test "${bh_cv_c_signed+set}" = set; then
8099   echo $ECHO_N "(cached) $ECHO_C" >&6
8100 else
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107
8108 int
8109 main ()
8110 {
8111 signed char x;
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8118 case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_compile") 2>conftest.er1
8124   ac_status=$?
8125   grep -v '^ *+' conftest.er1 >conftest.err
8126   rm -f conftest.er1
8127   cat conftest.err >&5
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); } && {
8130          test -z "$ac_c_werror_flag" ||
8131          test ! -s conftest.err
8132        } && test -s conftest.$ac_objext; then
8133   bh_cv_c_signed=yes
8134 else
8135   echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8137
8138         bh_cv_c_signed=no
8139 fi
8140
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 fi
8143 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8144 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8145   if test $bh_cv_c_signed = no; then
8146
8147 cat >>confdefs.h <<\_ACEOF
8148 #define signed
8149 _ACEOF
8150
8151   fi
8152
8153 { echo "$as_me:$LINENO: checking for inline" >&5
8154 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8155 if test "${ac_cv_c_inline+set}" = set; then
8156   echo $ECHO_N "(cached) $ECHO_C" >&6
8157 else
8158   ac_cv_c_inline=no
8159 for ac_kw in inline __inline__ __inline; do
8160   cat >conftest.$ac_ext <<_ACEOF
8161 /* confdefs.h.  */
8162 _ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h.  */
8166 #ifndef __cplusplus
8167 typedef int foo_t;
8168 static $ac_kw foo_t static_foo () {return 0; }
8169 $ac_kw foo_t foo () {return 0; }
8170 #endif
8171
8172 _ACEOF
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8175 case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_compile") 2>conftest.er1
8181   ac_status=$?
8182   grep -v '^ *+' conftest.er1 >conftest.err
8183   rm -f conftest.er1
8184   cat conftest.err >&5
8185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186   (exit $ac_status); } && {
8187          test -z "$ac_c_werror_flag" ||
8188          test ! -s conftest.err
8189        } && test -s conftest.$ac_objext; then
8190   ac_cv_c_inline=$ac_kw
8191 else
8192   echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8194
8195
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199   test "$ac_cv_c_inline" != no && break
8200 done
8201
8202 fi
8203 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8204 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8205
8206
8207 case $ac_cv_c_inline in
8208   inline | yes) ;;
8209   *)
8210     case $ac_cv_c_inline in
8211       no) ac_val=;;
8212       *) ac_val=$ac_cv_c_inline;;
8213     esac
8214     cat >>confdefs.h <<_ACEOF
8215 #ifndef __cplusplus
8216 #define inline $ac_val
8217 #endif
8218 _ACEOF
8219     ;;
8220 esac
8221
8222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8233                   inttypes.h stdint.h unistd.h
8234 do
8235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8239   echo $ECHO_N "(cached) $ECHO_C" >&6
8240 else
8241   cat >conftest.$ac_ext <<_ACEOF
8242 /* confdefs.h.  */
8243 _ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h.  */
8247 $ac_includes_default
8248
8249 #include <$ac_header>
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255   *) ac_try_echo=$ac_try;;
8256 esac
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258   (eval "$ac_compile") 2>conftest.er1
8259   ac_status=$?
8260   grep -v '^ *+' conftest.er1 >conftest.err
8261   rm -f conftest.er1
8262   cat conftest.err >&5
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); } && {
8265          test -z "$ac_c_werror_flag" ||
8266          test ! -s conftest.err
8267        } && test -s conftest.$ac_objext; then
8268   eval "$as_ac_Header=yes"
8269 else
8270   echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8272
8273         eval "$as_ac_Header=no"
8274 fi
8275
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8277 fi
8278 ac_res=`eval echo '${'$as_ac_Header'}'`
8279                { echo "$as_me:$LINENO: result: $ac_res" >&5
8280 echo "${ECHO_T}$ac_res" >&6; }
8281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8282   cat >>confdefs.h <<_ACEOF
8283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8284 _ACEOF
8285
8286 fi
8287
8288 done
8289
8290
8291 { echo "$as_me:$LINENO: checking for off_t" >&5
8292 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8293 if test "${ac_cv_type_off_t+set}" = set; then
8294   echo $ECHO_N "(cached) $ECHO_C" >&6
8295 else
8296   cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h.  */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h.  */
8302 $ac_includes_default
8303 typedef off_t ac__type_new_;
8304 int
8305 main ()
8306 {
8307 if ((ac__type_new_ *) 0)
8308   return 0;
8309 if (sizeof (ac__type_new_))
8310   return 0;
8311   ;
8312   return 0;
8313 }
8314 _ACEOF
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8317 case "(($ac_try" in
8318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319   *) ac_try_echo=$ac_try;;
8320 esac
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322   (eval "$ac_compile") 2>conftest.er1
8323   ac_status=$?
8324   grep -v '^ *+' conftest.er1 >conftest.err
8325   rm -f conftest.er1
8326   cat conftest.err >&5
8327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328   (exit $ac_status); } && {
8329          test -z "$ac_c_werror_flag" ||
8330          test ! -s conftest.err
8331        } && test -s conftest.$ac_objext; then
8332   ac_cv_type_off_t=yes
8333 else
8334   echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8336
8337         ac_cv_type_off_t=no
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 fi
8342 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8343 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8344 if test $ac_cv_type_off_t = yes; then
8345   :
8346 else
8347
8348 cat >>confdefs.h <<_ACEOF
8349 #define off_t long int
8350 _ACEOF
8351
8352 fi
8353
8354 { echo "$as_me:$LINENO: checking for size_t" >&5
8355 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8356 if test "${ac_cv_type_size_t+set}" = set; then
8357   echo $ECHO_N "(cached) $ECHO_C" >&6
8358 else
8359   cat >conftest.$ac_ext <<_ACEOF
8360 /* confdefs.h.  */
8361 _ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h.  */
8365 $ac_includes_default
8366 typedef size_t ac__type_new_;
8367 int
8368 main ()
8369 {
8370 if ((ac__type_new_ *) 0)
8371   return 0;
8372 if (sizeof (ac__type_new_))
8373   return 0;
8374   ;
8375   return 0;
8376 }
8377 _ACEOF
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8380 case "(($ac_try" in
8381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382   *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385   (eval "$ac_compile") 2>conftest.er1
8386   ac_status=$?
8387   grep -v '^ *+' conftest.er1 >conftest.err
8388   rm -f conftest.er1
8389   cat conftest.err >&5
8390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391   (exit $ac_status); } && {
8392          test -z "$ac_c_werror_flag" ||
8393          test ! -s conftest.err
8394        } && test -s conftest.$ac_objext; then
8395   ac_cv_type_size_t=yes
8396 else
8397   echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8399
8400         ac_cv_type_size_t=no
8401 fi
8402
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8404 fi
8405 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8406 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8407 if test $ac_cv_type_size_t = yes; then
8408   :
8409 else
8410
8411 cat >>confdefs.h <<_ACEOF
8412 #define size_t unsigned int
8413 _ACEOF
8414
8415 fi
8416
8417
8418   { echo "$as_me:$LINENO: checking for long long" >&5
8419 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8420 if test "${ac_cv_type_long_long+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429 long long ll = 1LL; int i = 63;
8430 int
8431 main ()
8432 {
8433 long long llmax = (long long) -1;
8434      return ll << i | ll >> i | llmax / ll | llmax % ll;
8435   ;
8436   return 0;
8437 }
8438 _ACEOF
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (ac_try="$ac_link"
8441 case "(($ac_try" in
8442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443   *) ac_try_echo=$ac_try;;
8444 esac
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446   (eval "$ac_link") 2>conftest.er1
8447   ac_status=$?
8448   grep -v '^ *+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } && {
8453          test -z "$ac_c_werror_flag" ||
8454          test ! -s conftest.err
8455        } && test -s conftest$ac_exeext &&
8456        $as_test_x conftest$ac_exeext; then
8457   ac_cv_type_long_long=yes
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462         ac_cv_type_long_long=no
8463 fi
8464
8465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466       conftest$ac_exeext conftest.$ac_ext
8467 fi
8468 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8469 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8470   if test $ac_cv_type_long_long = yes; then
8471
8472 cat >>confdefs.h <<\_ACEOF
8473 #define HAVE_LONG_LONG 1
8474 _ACEOF
8475
8476   fi
8477
8478
8479   { echo "$as_me:$LINENO: checking for long double" >&5
8480 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8481 if test "${gt_cv_c_long_double+set}" = set; then
8482   echo $ECHO_N "(cached) $ECHO_C" >&6
8483 else
8484   if test "$GCC" = yes; then
8485        gt_cv_c_long_double=yes
8486      else
8487        cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h.  */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h.  */
8493
8494          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8495          long double foo = 0.0;
8496          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8497          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8498
8499 int
8500 main ()
8501 {
8502
8503   ;
8504   return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8509 case "(($ac_try" in
8510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511   *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514   (eval "$ac_compile") 2>conftest.er1
8515   ac_status=$?
8516   grep -v '^ *+' conftest.er1 >conftest.err
8517   rm -f conftest.er1
8518   cat conftest.err >&5
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); } && {
8521          test -z "$ac_c_werror_flag" ||
8522          test ! -s conftest.err
8523        } && test -s conftest.$ac_objext; then
8524   gt_cv_c_long_double=yes
8525 else
8526   echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529         gt_cv_c_long_double=no
8530 fi
8531
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533      fi
8534 fi
8535 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8536 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8537   if test $gt_cv_c_long_double = yes; then
8538
8539 cat >>confdefs.h <<\_ACEOF
8540 #define HAVE_LONG_DOUBLE 1
8541 _ACEOF
8542
8543   fi
8544
8545
8546   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8547 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8548 if test "${gt_cv_c_wchar_t+set}" = set; then
8549   echo $ECHO_N "(cached) $ECHO_C" >&6
8550 else
8551   cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h.  */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h.  */
8557 #include <stddef.h>
8558        wchar_t foo = (wchar_t)'\0';
8559 int
8560 main ()
8561 {
8562
8563   ;
8564   return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8569 case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574   (eval "$ac_compile") 2>conftest.er1
8575   ac_status=$?
8576   grep -v '^ *+' conftest.er1 >conftest.err
8577   rm -f conftest.er1
8578   cat conftest.err >&5
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } && {
8581          test -z "$ac_c_werror_flag" ||
8582          test ! -s conftest.err
8583        } && test -s conftest.$ac_objext; then
8584   gt_cv_c_wchar_t=yes
8585 else
8586   echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589         gt_cv_c_wchar_t=no
8590 fi
8591
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8593 fi
8594 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8595 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8596   if test $gt_cv_c_wchar_t = yes; then
8597
8598 cat >>confdefs.h <<\_ACEOF
8599 #define HAVE_WCHAR_T 1
8600 _ACEOF
8601
8602   fi
8603
8604
8605   { echo "$as_me:$LINENO: checking for wint_t" >&5
8606 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8607 if test "${gt_cv_c_wint_t+set}" = set; then
8608   echo $ECHO_N "(cached) $ECHO_C" >&6
8609 else
8610   cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616 #include <wchar.h>
8617        wint_t foo = (wchar_t)'\0';
8618 int
8619 main ()
8620 {
8621
8622   ;
8623   return 0;
8624 }
8625 _ACEOF
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8628 case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_compile") 2>conftest.er1
8634   ac_status=$?
8635   grep -v '^ *+' conftest.er1 >conftest.err
8636   rm -f conftest.er1
8637   cat conftest.err >&5
8638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639   (exit $ac_status); } && {
8640          test -z "$ac_c_werror_flag" ||
8641          test ! -s conftest.err
8642        } && test -s conftest.$ac_objext; then
8643   gt_cv_c_wint_t=yes
8644 else
8645   echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8647
8648         gt_cv_c_wint_t=no
8649 fi
8650
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8654 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8655   if test $gt_cv_c_wint_t = yes; then
8656
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_WINT_T 1
8659 _ACEOF
8660
8661   fi
8662
8663
8664   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8665 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8666 if test "${gl_cv_header_inttypes_h+set}" = set; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669   cat >conftest.$ac_ext <<_ACEOF
8670 /* confdefs.h.  */
8671 _ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h.  */
8675 #include <sys/types.h>
8676 #include <inttypes.h>
8677 int
8678 main ()
8679 {
8680 uintmax_t i = (uintmax_t) -1;
8681   ;
8682   return 0;
8683 }
8684 _ACEOF
8685 rm -f conftest.$ac_objext
8686 if { (ac_try="$ac_compile"
8687 case "(($ac_try" in
8688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689   *) ac_try_echo=$ac_try;;
8690 esac
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692   (eval "$ac_compile") 2>conftest.er1
8693   ac_status=$?
8694   grep -v '^ *+' conftest.er1 >conftest.err
8695   rm -f conftest.er1
8696   cat conftest.err >&5
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); } && {
8699          test -z "$ac_c_werror_flag" ||
8700          test ! -s conftest.err
8701        } && test -s conftest.$ac_objext; then
8702   gl_cv_header_inttypes_h=yes
8703 else
8704   echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707         gl_cv_header_inttypes_h=no
8708 fi
8709
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 fi
8712 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8713 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8714   if test $gl_cv_header_inttypes_h = yes; then
8715
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8718 _ACEOF
8719
8720   fi
8721
8722
8723   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8724 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8725 if test "${gl_cv_header_stdint_h+set}" = set; then
8726   echo $ECHO_N "(cached) $ECHO_C" >&6
8727 else
8728   cat >conftest.$ac_ext <<_ACEOF
8729 /* confdefs.h.  */
8730 _ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h.  */
8734 #include <sys/types.h>
8735 #include <stdint.h>
8736 int
8737 main ()
8738 {
8739 uintmax_t i = (uintmax_t) -1;
8740   ;
8741   return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext
8745 if { (ac_try="$ac_compile"
8746 case "(($ac_try" in
8747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748   *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751   (eval "$ac_compile") 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } && {
8758          test -z "$ac_c_werror_flag" ||
8759          test ! -s conftest.err
8760        } && test -s conftest.$ac_objext; then
8761   gl_cv_header_stdint_h=yes
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766         gl_cv_header_stdint_h=no
8767 fi
8768
8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8770 fi
8771 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8772 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8773   if test $gl_cv_header_stdint_h = yes; then
8774
8775 cat >>confdefs.h <<_ACEOF
8776 #define HAVE_STDINT_H_WITH_UINTMAX 1
8777 _ACEOF
8778
8779   fi
8780
8781
8782
8783
8784   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8785 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8786 if test "${gt_cv_c_intmax_t+set}" = set; then
8787   echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789   cat >conftest.$ac_ext <<_ACEOF
8790 /* confdefs.h.  */
8791 _ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h.  */
8795
8796 #include <stddef.h>
8797 #include <stdlib.h>
8798 #if HAVE_STDINT_H_WITH_UINTMAX
8799 #include <stdint.h>
8800 #endif
8801 #if HAVE_INTTYPES_H_WITH_UINTMAX
8802 #include <inttypes.h>
8803 #endif
8804
8805 int
8806 main ()
8807 {
8808 intmax_t x = -1;
8809   ;
8810   return 0;
8811 }
8812 _ACEOF
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8815 case "(($ac_try" in
8816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817   *) ac_try_echo=$ac_try;;
8818 esac
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820   (eval "$ac_compile") 2>conftest.er1
8821   ac_status=$?
8822   grep -v '^ *+' conftest.er1 >conftest.err
8823   rm -f conftest.er1
8824   cat conftest.err >&5
8825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826   (exit $ac_status); } && {
8827          test -z "$ac_c_werror_flag" ||
8828          test ! -s conftest.err
8829        } && test -s conftest.$ac_objext; then
8830   gt_cv_c_intmax_t=yes
8831 else
8832   echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8834
8835         gt_cv_c_intmax_t=no
8836 fi
8837
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8839 fi
8840 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8841 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8842   if test $gt_cv_c_intmax_t = yes; then
8843
8844 cat >>confdefs.h <<\_ACEOF
8845 #define HAVE_INTMAX_T 1
8846 _ACEOF
8847
8848   fi
8849
8850
8851
8852   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8853 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8854 if test "${gt_cv_func_printf_posix+set}" = set; then
8855   echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857
8858       if test "$cross_compiling" = yes; then
8859
8860         cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866
8867 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8868   notposix
8869 #endif
8870
8871 _ACEOF
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873   $EGREP "notposix" >/dev/null 2>&1; then
8874   gt_cv_func_printf_posix="guessing no"
8875 else
8876   gt_cv_func_printf_posix="guessing yes"
8877 fi
8878 rm -f conftest*
8879
8880
8881 else
8882   cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888
8889 #include <stdio.h>
8890 #include <string.h>
8891 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8892    dollar expansion (possibly an autoconf bug).  */
8893 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8894 static char buf[100];
8895 int main ()
8896 {
8897   sprintf (buf, format, 33, 55);
8898   return (strcmp (buf, "55 33") != 0);
8899 }
8900 _ACEOF
8901 rm -f conftest$ac_exeext
8902 if { (ac_try="$ac_link"
8903 case "(($ac_try" in
8904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905   *) ac_try_echo=$ac_try;;
8906 esac
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908   (eval "$ac_link") 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8912   { (case "(($ac_try" in
8913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914   *) ac_try_echo=$ac_try;;
8915 esac
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917   (eval "$ac_try") 2>&5
8918   ac_status=$?
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); }; }; then
8921   gt_cv_func_printf_posix=yes
8922 else
8923   echo "$as_me: program exited with status $ac_status" >&5
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927 ( exit $ac_status )
8928 gt_cv_func_printf_posix=no
8929 fi
8930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8931 fi
8932
8933
8934
8935 fi
8936 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8937 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8938   case $gt_cv_func_printf_posix in
8939     *yes)
8940
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_POSIX_PRINTF 1
8943 _ACEOF
8944
8945       ;;
8946   esac
8947
8948 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8949 # for constant arguments.  Useless!
8950 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8951 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8952 if test "${ac_cv_working_alloca_h+set}" = set; then
8953   echo $ECHO_N "(cached) $ECHO_C" >&6
8954 else
8955   cat >conftest.$ac_ext <<_ACEOF
8956 /* confdefs.h.  */
8957 _ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h.  */
8961 #include <alloca.h>
8962 int
8963 main ()
8964 {
8965 char *p = (char *) alloca (2 * sizeof (int));
8966                           if (p) return 0;
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8973 case "(($ac_try" in
8974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975   *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978   (eval "$ac_link") 2>conftest.er1
8979   ac_status=$?
8980   grep -v '^ *+' conftest.er1 >conftest.err
8981   rm -f conftest.er1
8982   cat conftest.err >&5
8983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984   (exit $ac_status); } && {
8985          test -z "$ac_c_werror_flag" ||
8986          test ! -s conftest.err
8987        } && test -s conftest$ac_exeext &&
8988        $as_test_x conftest$ac_exeext; then
8989   ac_cv_working_alloca_h=yes
8990 else
8991   echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8993
8994         ac_cv_working_alloca_h=no
8995 fi
8996
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8998       conftest$ac_exeext conftest.$ac_ext
8999 fi
9000 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9001 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9002 if test $ac_cv_working_alloca_h = yes; then
9003
9004 cat >>confdefs.h <<\_ACEOF
9005 #define HAVE_ALLOCA_H 1
9006 _ACEOF
9007
9008 fi
9009
9010 { echo "$as_me:$LINENO: checking for alloca" >&5
9011 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9012 if test "${ac_cv_func_alloca_works+set}" = set; then
9013   echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015   cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h.  */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h.  */
9021 #ifdef __GNUC__
9022 # define alloca __builtin_alloca
9023 #else
9024 # ifdef _MSC_VER
9025 #  include <malloc.h>
9026 #  define alloca _alloca
9027 # else
9028 #  ifdef HAVE_ALLOCA_H
9029 #   include <alloca.h>
9030 #  else
9031 #   ifdef _AIX
9032  #pragma alloca
9033 #   else
9034 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9035 char *alloca ();
9036 #    endif
9037 #   endif
9038 #  endif
9039 # endif
9040 #endif
9041
9042 int
9043 main ()
9044 {
9045 char *p = (char *) alloca (1);
9046                                     if (p) return 0;
9047   ;
9048   return 0;
9049 }
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (ac_try="$ac_link"
9053 case "(($ac_try" in
9054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055   *) ac_try_echo=$ac_try;;
9056 esac
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058   (eval "$ac_link") 2>conftest.er1
9059   ac_status=$?
9060   grep -v '^ *+' conftest.er1 >conftest.err
9061   rm -f conftest.er1
9062   cat conftest.err >&5
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); } && {
9065          test -z "$ac_c_werror_flag" ||
9066          test ! -s conftest.err
9067        } && test -s conftest$ac_exeext &&
9068        $as_test_x conftest$ac_exeext; then
9069   ac_cv_func_alloca_works=yes
9070 else
9071   echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9073
9074         ac_cv_func_alloca_works=no
9075 fi
9076
9077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9078       conftest$ac_exeext conftest.$ac_ext
9079 fi
9080 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9081 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9082
9083 if test $ac_cv_func_alloca_works = yes; then
9084
9085 cat >>confdefs.h <<\_ACEOF
9086 #define HAVE_ALLOCA 1
9087 _ACEOF
9088
9089 else
9090   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9091 # that cause trouble.  Some versions do not even contain alloca or
9092 # contain a buggy version.  If you still want to use their alloca,
9093 # use ar to extract alloca.o from them instead of compiling alloca.c.
9094
9095 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9096
9097 cat >>confdefs.h <<\_ACEOF
9098 #define C_ALLOCA 1
9099 _ACEOF
9100
9101
9102 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9103 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9104 if test "${ac_cv_os_cray+set}" = set; then
9105   echo $ECHO_N "(cached) $ECHO_C" >&6
9106 else
9107   cat >conftest.$ac_ext <<_ACEOF
9108 /* confdefs.h.  */
9109 _ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h.  */
9113 #if defined CRAY && ! defined CRAY2
9114 webecray
9115 #else
9116 wenotbecray
9117 #endif
9118
9119 _ACEOF
9120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9121   $EGREP "webecray" >/dev/null 2>&1; then
9122   ac_cv_os_cray=yes
9123 else
9124   ac_cv_os_cray=no
9125 fi
9126 rm -f conftest*
9127
9128 fi
9129 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9130 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9131 if test $ac_cv_os_cray = yes; then
9132   for ac_func in _getb67 GETB67 getb67; do
9133     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9137   echo $ECHO_N "(cached) $ECHO_C" >&6
9138 else
9139   cat >conftest.$ac_ext <<_ACEOF
9140 /* confdefs.h.  */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h.  */
9145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9147 #define $ac_func innocuous_$ac_func
9148
9149 /* System header to define __stub macros and hopefully few prototypes,
9150     which can conflict with char $ac_func (); below.
9151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9152     <limits.h> exists even on freestanding compilers.  */
9153
9154 #ifdef __STDC__
9155 # include <limits.h>
9156 #else
9157 # include <assert.h>
9158 #endif
9159
9160 #undef $ac_func
9161
9162 /* Override any GCC internal prototype to avoid an error.
9163    Use char because int might match the return type of a GCC
9164    builtin and then its argument prototype would still apply.  */
9165 #ifdef __cplusplus
9166 extern "C"
9167 #endif
9168 char $ac_func ();
9169 /* The GNU C library defines this for functions which it implements
9170     to always fail with ENOSYS.  Some functions are actually named
9171     something starting with __ and the normal name is an alias.  */
9172 #if defined __stub_$ac_func || defined __stub___$ac_func
9173 choke me
9174 #endif
9175
9176 int
9177 main ()
9178 {
9179 return $ac_func ();
9180   ;
9181   return 0;
9182 }
9183 _ACEOF
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9186 case "(($ac_try" in
9187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188   *) ac_try_echo=$ac_try;;
9189 esac
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191   (eval "$ac_link") 2>conftest.er1
9192   ac_status=$?
9193   grep -v '^ *+' conftest.er1 >conftest.err
9194   rm -f conftest.er1
9195   cat conftest.err >&5
9196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197   (exit $ac_status); } && {
9198          test -z "$ac_c_werror_flag" ||
9199          test ! -s conftest.err
9200        } && test -s conftest$ac_exeext &&
9201        $as_test_x conftest$ac_exeext; then
9202   eval "$as_ac_var=yes"
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207         eval "$as_ac_var=no"
9208 fi
9209
9210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9211       conftest$ac_exeext conftest.$ac_ext
9212 fi
9213 ac_res=`eval echo '${'$as_ac_var'}'`
9214                { echo "$as_me:$LINENO: result: $ac_res" >&5
9215 echo "${ECHO_T}$ac_res" >&6; }
9216 if test `eval echo '${'$as_ac_var'}'` = yes; then
9217
9218 cat >>confdefs.h <<_ACEOF
9219 #define CRAY_STACKSEG_END $ac_func
9220 _ACEOF
9221
9222     break
9223 fi
9224
9225   done
9226 fi
9227
9228 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9229 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9230 if test "${ac_cv_c_stack_direction+set}" = set; then
9231   echo $ECHO_N "(cached) $ECHO_C" >&6
9232 else
9233   if test "$cross_compiling" = yes; then
9234   ac_cv_c_stack_direction=0
9235 else
9236   cat >conftest.$ac_ext <<_ACEOF
9237 /* confdefs.h.  */
9238 _ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h.  */
9242 $ac_includes_default
9243 int
9244 find_stack_direction ()
9245 {
9246   static char *addr = 0;
9247   auto char dummy;
9248   if (addr == 0)
9249     {
9250       addr = &dummy;
9251       return find_stack_direction ();
9252     }
9253   else
9254     return (&dummy > addr) ? 1 : -1;
9255 }
9256
9257 int
9258 main ()
9259 {
9260   return find_stack_direction () < 0;
9261 }
9262 _ACEOF
9263 rm -f conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9265 case "(($ac_try" in
9266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267   *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270   (eval "$ac_link") 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9274   { (case "(($ac_try" in
9275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276   *) ac_try_echo=$ac_try;;
9277 esac
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279   (eval "$ac_try") 2>&5
9280   ac_status=$?
9281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); }; }; then
9283   ac_cv_c_stack_direction=1
9284 else
9285   echo "$as_me: program exited with status $ac_status" >&5
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9288
9289 ( exit $ac_status )
9290 ac_cv_c_stack_direction=-1
9291 fi
9292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9293 fi
9294
9295
9296 fi
9297 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9298 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9299
9300 cat >>confdefs.h <<_ACEOF
9301 #define STACK_DIRECTION $ac_cv_c_stack_direction
9302 _ACEOF
9303
9304
9305 fi
9306
9307
9308
9309 for ac_header in stdlib.h unistd.h
9310 do
9311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9313   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9316   echo $ECHO_N "(cached) $ECHO_C" >&6
9317 fi
9318 ac_res=`eval echo '${'$as_ac_Header'}'`
9319                { echo "$as_me:$LINENO: result: $ac_res" >&5
9320 echo "${ECHO_T}$ac_res" >&6; }
9321 else
9322   # Is the header compilable?
9323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h.  */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h.  */
9331 $ac_includes_default
9332 #include <$ac_header>
9333 _ACEOF
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9336 case "(($ac_try" in
9337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338   *) ac_try_echo=$ac_try;;
9339 esac
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341   (eval "$ac_compile") 2>conftest.er1
9342   ac_status=$?
9343   grep -v '^ *+' conftest.er1 >conftest.err
9344   rm -f conftest.er1
9345   cat conftest.err >&5
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && {
9348          test -z "$ac_c_werror_flag" ||
9349          test ! -s conftest.err
9350        } && test -s conftest.$ac_objext; then
9351   ac_header_compiler=yes
9352 else
9353   echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9355
9356         ac_header_compiler=no
9357 fi
9358
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9361 echo "${ECHO_T}$ac_header_compiler" >&6; }
9362
9363 # Is the header present?
9364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h.  */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h.  */
9372 #include <$ac_header>
9373 _ACEOF
9374 if { (ac_try="$ac_cpp conftest.$ac_ext"
9375 case "(($ac_try" in
9376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377   *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } >/dev/null && {
9387          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9388          test ! -s conftest.err
9389        }; then
9390   ac_header_preproc=yes
9391 else
9392   echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9394
9395   ac_header_preproc=no
9396 fi
9397
9398 rm -f conftest.err conftest.$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9400 echo "${ECHO_T}$ac_header_preproc" >&6; }
9401
9402 # So?  What about this header?
9403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9404   yes:no: )
9405     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9409     ac_header_preproc=yes
9410     ;;
9411   no:yes:* )
9412     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9414     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9415 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9419 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9420     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9424
9425     ;;
9426 esac
9427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9430   echo $ECHO_N "(cached) $ECHO_C" >&6
9431 else
9432   eval "$as_ac_Header=\$ac_header_preproc"
9433 fi
9434 ac_res=`eval echo '${'$as_ac_Header'}'`
9435                { echo "$as_me:$LINENO: result: $ac_res" >&5
9436 echo "${ECHO_T}$ac_res" >&6; }
9437
9438 fi
9439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440   cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9442 _ACEOF
9443
9444 fi
9445
9446 done
9447
9448
9449 for ac_func in getpagesize
9450 do
9451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9455   echo $ECHO_N "(cached) $ECHO_C" >&6
9456 else
9457   cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9464    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9465 #define $ac_func innocuous_$ac_func
9466
9467 /* System header to define __stub macros and hopefully few prototypes,
9468     which can conflict with char $ac_func (); below.
9469     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9470     <limits.h> exists even on freestanding compilers.  */
9471
9472 #ifdef __STDC__
9473 # include <limits.h>
9474 #else
9475 # include <assert.h>
9476 #endif
9477
9478 #undef $ac_func
9479
9480 /* Override any GCC internal prototype to avoid an error.
9481    Use char because int might match the return type of a GCC
9482    builtin and then its argument prototype would still apply.  */
9483 #ifdef __cplusplus
9484 extern "C"
9485 #endif
9486 char $ac_func ();
9487 /* The GNU C library defines this for functions which it implements
9488     to always fail with ENOSYS.  Some functions are actually named
9489     something starting with __ and the normal name is an alias.  */
9490 #if defined __stub_$ac_func || defined __stub___$ac_func
9491 choke me
9492 #endif
9493
9494 int
9495 main ()
9496 {
9497 return $ac_func ();
9498   ;
9499   return 0;
9500 }
9501 _ACEOF
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (ac_try="$ac_link"
9504 case "(($ac_try" in
9505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506   *) ac_try_echo=$ac_try;;
9507 esac
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509   (eval "$ac_link") 2>conftest.er1
9510   ac_status=$?
9511   grep -v '^ *+' conftest.er1 >conftest.err
9512   rm -f conftest.er1
9513   cat conftest.err >&5
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); } && {
9516          test -z "$ac_c_werror_flag" ||
9517          test ! -s conftest.err
9518        } && test -s conftest$ac_exeext &&
9519        $as_test_x conftest$ac_exeext; then
9520   eval "$as_ac_var=yes"
9521 else
9522   echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9524
9525         eval "$as_ac_var=no"
9526 fi
9527
9528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9529       conftest$ac_exeext conftest.$ac_ext
9530 fi
9531 ac_res=`eval echo '${'$as_ac_var'}'`
9532                { echo "$as_me:$LINENO: result: $ac_res" >&5
9533 echo "${ECHO_T}$ac_res" >&6; }
9534 if test `eval echo '${'$as_ac_var'}'` = yes; then
9535   cat >>confdefs.h <<_ACEOF
9536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9537 _ACEOF
9538
9539 fi
9540 done
9541
9542 { echo "$as_me:$LINENO: checking for working mmap" >&5
9543 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9544 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9545   echo $ECHO_N "(cached) $ECHO_C" >&6
9546 else
9547   if test "$cross_compiling" = yes; then
9548   ac_cv_func_mmap_fixed_mapped=no
9549 else
9550   cat >conftest.$ac_ext <<_ACEOF
9551 /* confdefs.h.  */
9552 _ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h.  */
9556 $ac_includes_default
9557 /* malloc might have been renamed as rpl_malloc. */
9558 #undef malloc
9559
9560 /* Thanks to Mike Haertel and Jim Avera for this test.
9561    Here is a matrix of mmap possibilities:
9562         mmap private not fixed
9563         mmap private fixed at somewhere currently unmapped
9564         mmap private fixed at somewhere already mapped
9565         mmap shared not fixed
9566         mmap shared fixed at somewhere currently unmapped
9567         mmap shared fixed at somewhere already mapped
9568    For private mappings, we should verify that changes cannot be read()
9569    back from the file, nor mmap's back from the file at a different
9570    address.  (There have been systems where private was not correctly
9571    implemented like the infamous i386 svr4.0, and systems where the
9572    VM page cache was not coherent with the file system buffer cache
9573    like early versions of FreeBSD and possibly contemporary NetBSD.)
9574    For shared mappings, we should conversely verify that changes get
9575    propagated back to all the places they're supposed to be.
9576
9577    Grep wants private fixed already mapped.
9578    The main things grep needs to know about mmap are:
9579    * does it exist and is it safe to write into the mmap'd area
9580    * how to use it (BSD variants)  */
9581
9582 #include <fcntl.h>
9583 #include <sys/mman.h>
9584
9585 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9586 char *malloc ();
9587 #endif
9588
9589 /* This mess was copied from the GNU getpagesize.h.  */
9590 #ifndef HAVE_GETPAGESIZE
9591 /* Assume that all systems that can run configure have sys/param.h.  */
9592 # ifndef HAVE_SYS_PARAM_H
9593 #  define HAVE_SYS_PARAM_H 1
9594 # endif
9595
9596 # ifdef _SC_PAGESIZE
9597 #  define getpagesize() sysconf(_SC_PAGESIZE)
9598 # else /* no _SC_PAGESIZE */
9599 #  ifdef HAVE_SYS_PARAM_H
9600 #   include <sys/param.h>
9601 #   ifdef EXEC_PAGESIZE
9602 #    define getpagesize() EXEC_PAGESIZE
9603 #   else /* no EXEC_PAGESIZE */
9604 #    ifdef NBPG
9605 #     define getpagesize() NBPG * CLSIZE
9606 #     ifndef CLSIZE
9607 #      define CLSIZE 1
9608 #     endif /* no CLSIZE */
9609 #    else /* no NBPG */
9610 #     ifdef NBPC
9611 #      define getpagesize() NBPC
9612 #     else /* no NBPC */
9613 #      ifdef PAGESIZE
9614 #       define getpagesize() PAGESIZE
9615 #      endif /* PAGESIZE */
9616 #     endif /* no NBPC */
9617 #    endif /* no NBPG */
9618 #   endif /* no EXEC_PAGESIZE */
9619 #  else /* no HAVE_SYS_PARAM_H */
9620 #   define getpagesize() 8192   /* punt totally */
9621 #  endif /* no HAVE_SYS_PARAM_H */
9622 # endif /* no _SC_PAGESIZE */
9623
9624 #endif /* no HAVE_GETPAGESIZE */
9625
9626 int
9627 main ()
9628 {
9629   char *data, *data2, *data3;
9630   int i, pagesize;
9631   int fd;
9632
9633   pagesize = getpagesize ();
9634
9635   /* First, make a file with some known garbage in it. */
9636   data = (char *) malloc (pagesize);
9637   if (!data)
9638     return 1;
9639   for (i = 0; i < pagesize; ++i)
9640     *(data + i) = rand ();
9641   umask (0);
9642   fd = creat ("conftest.mmap", 0600);
9643   if (fd < 0)
9644     return 1;
9645   if (write (fd, data, pagesize) != pagesize)
9646     return 1;
9647   close (fd);
9648
9649   /* Next, try to mmap the file at a fixed address which already has
9650      something else allocated at it.  If we can, also make sure that
9651      we see the same garbage.  */
9652   fd = open ("conftest.mmap", O_RDWR);
9653   if (fd < 0)
9654     return 1;
9655   data2 = (char *) malloc (2 * pagesize);
9656   if (!data2)
9657     return 1;
9658   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9659   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9660                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9661     return 1;
9662   for (i = 0; i < pagesize; ++i)
9663     if (*(data + i) != *(data2 + i))
9664       return 1;
9665
9666   /* Finally, make sure that changes to the mapped area do not
9667      percolate back to the file as seen by read().  (This is a bug on
9668      some variants of i386 svr4.0.)  */
9669   for (i = 0; i < pagesize; ++i)
9670     *(data2 + i) = *(data2 + i) + 1;
9671   data3 = (char *) malloc (pagesize);
9672   if (!data3)
9673     return 1;
9674   if (read (fd, data3, pagesize) != pagesize)
9675     return 1;
9676   for (i = 0; i < pagesize; ++i)
9677     if (*(data + i) != *(data3 + i))
9678       return 1;
9679   close (fd);
9680   return 0;
9681 }
9682 _ACEOF
9683 rm -f conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9685 case "(($ac_try" in
9686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687   *) ac_try_echo=$ac_try;;
9688 esac
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690   (eval "$ac_link") 2>&5
9691   ac_status=$?
9692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9694   { (case "(($ac_try" in
9695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696   *) ac_try_echo=$ac_try;;
9697 esac
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699   (eval "$ac_try") 2>&5
9700   ac_status=$?
9701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702   (exit $ac_status); }; }; then
9703   ac_cv_func_mmap_fixed_mapped=yes
9704 else
9705   echo "$as_me: program exited with status $ac_status" >&5
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9708
9709 ( exit $ac_status )
9710 ac_cv_func_mmap_fixed_mapped=no
9711 fi
9712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9713 fi
9714
9715
9716 fi
9717 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9718 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9719 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9720
9721 cat >>confdefs.h <<\_ACEOF
9722 #define HAVE_MMAP 1
9723 _ACEOF
9724
9725 fi
9726 rm -f conftest.mmap
9727
9728
9729     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9730 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9731 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9732   echo $ECHO_N "(cached) $ECHO_C" >&6
9733 else
9734   cat >conftest.$ac_ext <<_ACEOF
9735 /* confdefs.h.  */
9736 _ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h.  */
9740
9741 #include <features.h>
9742 #ifdef __GNU_LIBRARY__
9743  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9744   Lucky GNU user
9745  #endif
9746 #endif
9747
9748 _ACEOF
9749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9750   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9751   ac_cv_gnu_library_2_1=yes
9752 else
9753   ac_cv_gnu_library_2_1=no
9754 fi
9755 rm -f conftest*
9756
9757
9758
9759 fi
9760 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9761 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9762
9763     GLIBC21="$ac_cv_gnu_library_2_1"
9764
9765
9766
9767
9768   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9769 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9770 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9771   echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773
9774       if test "$cross_compiling" = yes; then
9775
9776           # Guess based on the CPU.
9777           case "$host_cpu" in
9778             alpha* | i3456786 | m68k | s390*)
9779               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9780             *)
9781               gt_cv_int_divbyzero_sigfpe="guessing no";;
9782           esac
9783
9784 else
9785   cat >conftest.$ac_ext <<_ACEOF
9786 /* confdefs.h.  */
9787 _ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h.  */
9791
9792 #include <stdlib.h>
9793 #include <signal.h>
9794
9795 static void
9796 #ifdef __cplusplus
9797 sigfpe_handler (int sig)
9798 #else
9799 sigfpe_handler (sig) int sig;
9800 #endif
9801 {
9802   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9803   exit (sig != SIGFPE);
9804 }
9805
9806 int x = 1;
9807 int y = 0;
9808 int z;
9809 int nan;
9810
9811 int main ()
9812 {
9813   signal (SIGFPE, sigfpe_handler);
9814 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9815 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9816   signal (SIGTRAP, sigfpe_handler);
9817 #endif
9818 /* Linux/SPARC yields signal SIGILL.  */
9819 #if defined (__sparc__) && defined (__linux__)
9820   signal (SIGILL, sigfpe_handler);
9821 #endif
9822
9823   z = x / y;
9824   nan = y / y;
9825   exit (1);
9826 }
9827
9828 _ACEOF
9829 rm -f conftest$ac_exeext
9830 if { (ac_try="$ac_link"
9831 case "(($ac_try" in
9832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833   *) ac_try_echo=$ac_try;;
9834 esac
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836   (eval "$ac_link") 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9840   { (case "(($ac_try" in
9841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842   *) ac_try_echo=$ac_try;;
9843 esac
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845   (eval "$ac_try") 2>&5
9846   ac_status=$?
9847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); }; }; then
9849   gt_cv_int_divbyzero_sigfpe=yes
9850 else
9851   echo "$as_me: program exited with status $ac_status" >&5
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 ( exit $ac_status )
9856 gt_cv_int_divbyzero_sigfpe=no
9857 fi
9858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9859 fi
9860
9861
9862
9863 fi
9864 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9865 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9866   case "$gt_cv_int_divbyzero_sigfpe" in
9867     *yes) value=1;;
9868     *) value=0;;
9869   esac
9870
9871 cat >>confdefs.h <<_ACEOF
9872 #define INTDIV0_RAISES_SIGFPE $value
9873 _ACEOF
9874
9875
9876
9877   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9878 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9879 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9880   echo $ECHO_N "(cached) $ECHO_C" >&6
9881 else
9882   cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 unsigned long long ull = 1ULL; int i = 63;
9889 int
9890 main ()
9891 {
9892 unsigned long long ullmax = (unsigned long long) -1;
9893      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9894   ;
9895   return 0;
9896 }
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9900 case "(($ac_try" in
9901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902   *) ac_try_echo=$ac_try;;
9903 esac
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905   (eval "$ac_link") 2>conftest.er1
9906   ac_status=$?
9907   grep -v '^ *+' conftest.er1 >conftest.err
9908   rm -f conftest.er1
9909   cat conftest.err >&5
9910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911   (exit $ac_status); } && {
9912          test -z "$ac_c_werror_flag" ||
9913          test ! -s conftest.err
9914        } && test -s conftest$ac_exeext &&
9915        $as_test_x conftest$ac_exeext; then
9916   ac_cv_type_unsigned_long_long=yes
9917 else
9918   echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9920
9921         ac_cv_type_unsigned_long_long=no
9922 fi
9923
9924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9925       conftest$ac_exeext conftest.$ac_ext
9926 fi
9927 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9928 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9929   if test $ac_cv_type_unsigned_long_long = yes; then
9930
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_UNSIGNED_LONG_LONG 1
9933 _ACEOF
9934
9935   fi
9936
9937
9938
9939
9940   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9941
9942     test $ac_cv_type_unsigned_long_long = yes \
9943       && ac_type='unsigned long long' \
9944       || ac_type='unsigned long'
9945
9946 cat >>confdefs.h <<_ACEOF
9947 #define uintmax_t $ac_type
9948 _ACEOF
9949
9950   else
9951
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_UINTMAX_T 1
9954 _ACEOF
9955
9956   fi
9957
9958
9959   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9960 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9961 if test "${gt_cv_header_inttypes_h+set}" = set; then
9962   echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964
9965     cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971 #include <sys/types.h>
9972 #include <inttypes.h>
9973 int
9974 main ()
9975 {
9976
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext
9982 if { (ac_try="$ac_compile"
9983 case "(($ac_try" in
9984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985   *) ac_try_echo=$ac_try;;
9986 esac
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988   (eval "$ac_compile") 2>conftest.er1
9989   ac_status=$?
9990   grep -v '^ *+' conftest.er1 >conftest.err
9991   rm -f conftest.er1
9992   cat conftest.err >&5
9993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994   (exit $ac_status); } && {
9995          test -z "$ac_c_werror_flag" ||
9996          test ! -s conftest.err
9997        } && test -s conftest.$ac_objext; then
9998   gt_cv_header_inttypes_h=yes
9999 else
10000   echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10002
10003         gt_cv_header_inttypes_h=no
10004 fi
10005
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10007
10008 fi
10009 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10010 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10011   if test $gt_cv_header_inttypes_h = yes; then
10012
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_INTTYPES_H 1
10015 _ACEOF
10016
10017   fi
10018
10019
10020
10021   if test $gt_cv_header_inttypes_h = yes; then
10022     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10023 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10024 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10025   echo $ECHO_N "(cached) $ECHO_C" >&6
10026 else
10027
10028         cat >conftest.$ac_ext <<_ACEOF
10029 /* confdefs.h.  */
10030 _ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h.  */
10034 #include <inttypes.h>
10035 #ifdef PRId32
10036 char *p = PRId32;
10037 #endif
10038
10039 int
10040 main ()
10041 {
10042
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext
10048 if { (ac_try="$ac_compile"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054   (eval "$ac_compile") 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } && {
10061          test -z "$ac_c_werror_flag" ||
10062          test ! -s conftest.err
10063        } && test -s conftest.$ac_objext; then
10064   gt_cv_inttypes_pri_broken=no
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069         gt_cv_inttypes_pri_broken=yes
10070 fi
10071
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10073
10074 fi
10075 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10076 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10077   fi
10078   if test "$gt_cv_inttypes_pri_broken" = yes; then
10079
10080 cat >>confdefs.h <<_ACEOF
10081 #define PRI_MACROS_BROKEN 1
10082 _ACEOF
10083
10084   fi
10085
10086
10087
10088 for ac_header in stdint.h
10089 do
10090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10092   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10095   echo $ECHO_N "(cached) $ECHO_C" >&6
10096 fi
10097 ac_res=`eval echo '${'$as_ac_Header'}'`
10098                { echo "$as_me:$LINENO: result: $ac_res" >&5
10099 echo "${ECHO_T}$ac_res" >&6; }
10100 else
10101   # Is the header compilable?
10102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10104 cat >conftest.$ac_ext <<_ACEOF
10105 /* confdefs.h.  */
10106 _ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h.  */
10110 $ac_includes_default
10111 #include <$ac_header>
10112 _ACEOF
10113 rm -f conftest.$ac_objext
10114 if { (ac_try="$ac_compile"
10115 case "(($ac_try" in
10116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117   *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120   (eval "$ac_compile") 2>conftest.er1
10121   ac_status=$?
10122   grep -v '^ *+' conftest.er1 >conftest.err
10123   rm -f conftest.er1
10124   cat conftest.err >&5
10125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126   (exit $ac_status); } && {
10127          test -z "$ac_c_werror_flag" ||
10128          test ! -s conftest.err
10129        } && test -s conftest.$ac_objext; then
10130   ac_header_compiler=yes
10131 else
10132   echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10134
10135         ac_header_compiler=no
10136 fi
10137
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10140 echo "${ECHO_T}$ac_header_compiler" >&6; }
10141
10142 # Is the header present?
10143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10145 cat >conftest.$ac_ext <<_ACEOF
10146 /* confdefs.h.  */
10147 _ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h.  */
10151 #include <$ac_header>
10152 _ACEOF
10153 if { (ac_try="$ac_cpp conftest.$ac_ext"
10154 case "(($ac_try" in
10155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156   *) ac_try_echo=$ac_try;;
10157 esac
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10160   ac_status=$?
10161   grep -v '^ *+' conftest.er1 >conftest.err
10162   rm -f conftest.er1
10163   cat conftest.err >&5
10164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165   (exit $ac_status); } >/dev/null && {
10166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10167          test ! -s conftest.err
10168        }; then
10169   ac_header_preproc=yes
10170 else
10171   echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10173
10174   ac_header_preproc=no
10175 fi
10176
10177 rm -f conftest.err conftest.$ac_ext
10178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10179 echo "${ECHO_T}$ac_header_preproc" >&6; }
10180
10181 # So?  What about this header?
10182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10183   yes:no: )
10184     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10188     ac_header_preproc=yes
10189     ;;
10190   no:yes:* )
10191     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10193     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10194 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10197     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10198 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10199     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10201     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10203
10204     ;;
10205 esac
10206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10209   echo $ECHO_N "(cached) $ECHO_C" >&6
10210 else
10211   eval "$as_ac_Header=\$ac_header_preproc"
10212 fi
10213 ac_res=`eval echo '${'$as_ac_Header'}'`
10214                { echo "$as_me:$LINENO: result: $ac_res" >&5
10215 echo "${ECHO_T}$ac_res" >&6; }
10216
10217 fi
10218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10219   cat >>confdefs.h <<_ACEOF
10220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10221 _ACEOF
10222
10223 fi
10224
10225 done
10226
10227     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10228 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10229   result=
10230   cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h.  */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h.  */
10236
10237 #include <limits.h>
10238 #if HAVE_STDINT_H
10239 #include <stdint.h>
10240 #endif
10241 #ifdef SIZE_MAX
10242 Found it
10243 #endif
10244
10245 _ACEOF
10246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10247   $EGREP "Found it" >/dev/null 2>&1; then
10248   result=yes
10249 fi
10250 rm -f conftest*
10251
10252   if test -z "$result"; then
10253                     if test "$cross_compiling" = yes; then
10254   # Depending upon the size, compute the lo and hi bounds.
10255 cat >conftest.$ac_ext <<_ACEOF
10256 /* confdefs.h.  */
10257 _ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h.  */
10261 #include <stddef.h>
10262 int
10263 main ()
10264 {
10265 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10266 test_array [0] = 0
10267
10268   ;
10269   return 0;
10270 }
10271 _ACEOF
10272 rm -f conftest.$ac_objext
10273 if { (ac_try="$ac_compile"
10274 case "(($ac_try" in
10275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276   *) ac_try_echo=$ac_try;;
10277 esac
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279   (eval "$ac_compile") 2>conftest.er1
10280   ac_status=$?
10281   grep -v '^ *+' conftest.er1 >conftest.err
10282   rm -f conftest.er1
10283   cat conftest.err >&5
10284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285   (exit $ac_status); } && {
10286          test -z "$ac_c_werror_flag" ||
10287          test ! -s conftest.err
10288        } && test -s conftest.$ac_objext; then
10289   ac_lo=0 ac_mid=0
10290   while :; do
10291     cat >conftest.$ac_ext <<_ACEOF
10292 /* confdefs.h.  */
10293 _ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h.  */
10297 #include <stddef.h>
10298 int
10299 main ()
10300 {
10301 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10302 test_array [0] = 0
10303
10304   ;
10305   return 0;
10306 }
10307 _ACEOF
10308 rm -f conftest.$ac_objext
10309 if { (ac_try="$ac_compile"
10310 case "(($ac_try" in
10311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312   *) ac_try_echo=$ac_try;;
10313 esac
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315   (eval "$ac_compile") 2>conftest.er1
10316   ac_status=$?
10317   grep -v '^ *+' conftest.er1 >conftest.err
10318   rm -f conftest.er1
10319   cat conftest.err >&5
10320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321   (exit $ac_status); } && {
10322          test -z "$ac_c_werror_flag" ||
10323          test ! -s conftest.err
10324        } && test -s conftest.$ac_objext; then
10325   ac_hi=$ac_mid; break
10326 else
10327   echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10329
10330         ac_lo=`expr $ac_mid + 1`
10331                         if test $ac_lo -le $ac_mid; then
10332                           ac_lo= ac_hi=
10333                           break
10334                         fi
10335                         ac_mid=`expr 2 '*' $ac_mid + 1`
10336 fi
10337
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339   done
10340 else
10341   echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10343
10344         cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350 #include <stddef.h>
10351 int
10352 main ()
10353 {
10354 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10355 test_array [0] = 0
10356
10357   ;
10358   return 0;
10359 }
10360 _ACEOF
10361 rm -f conftest.$ac_objext
10362 if { (ac_try="$ac_compile"
10363 case "(($ac_try" in
10364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365   *) ac_try_echo=$ac_try;;
10366 esac
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368   (eval "$ac_compile") 2>conftest.er1
10369   ac_status=$?
10370   grep -v '^ *+' conftest.er1 >conftest.err
10371   rm -f conftest.er1
10372   cat conftest.err >&5
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); } && {
10375          test -z "$ac_c_werror_flag" ||
10376          test ! -s conftest.err
10377        } && test -s conftest.$ac_objext; then
10378   ac_hi=-1 ac_mid=-1
10379   while :; do
10380     cat >conftest.$ac_ext <<_ACEOF
10381 /* confdefs.h.  */
10382 _ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h.  */
10386 #include <stddef.h>
10387 int
10388 main ()
10389 {
10390 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10391 test_array [0] = 0
10392
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (ac_try="$ac_compile"
10399 case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404   (eval "$ac_compile") 2>conftest.er1
10405   ac_status=$?
10406   grep -v '^ *+' conftest.er1 >conftest.err
10407   rm -f conftest.er1
10408   cat conftest.err >&5
10409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410   (exit $ac_status); } && {
10411          test -z "$ac_c_werror_flag" ||
10412          test ! -s conftest.err
10413        } && test -s conftest.$ac_objext; then
10414   ac_lo=$ac_mid; break
10415 else
10416   echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10418
10419         ac_hi=`expr '(' $ac_mid ')' - 1`
10420                         if test $ac_mid -le $ac_hi; then
10421                           ac_lo= ac_hi=
10422                           break
10423                         fi
10424                         ac_mid=`expr 2 '*' $ac_mid`
10425 fi
10426
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428   done
10429 else
10430   echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10432
10433         ac_lo= ac_hi=
10434 fi
10435
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10437 fi
10438
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 # Binary search between lo and hi bounds.
10441 while test "x$ac_lo" != "x$ac_hi"; do
10442   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10443   cat >conftest.$ac_ext <<_ACEOF
10444 /* confdefs.h.  */
10445 _ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h.  */
10449 #include <stddef.h>
10450 int
10451 main ()
10452 {
10453 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10454 test_array [0] = 0
10455
10456   ;
10457   return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext
10461 if { (ac_try="$ac_compile"
10462 case "(($ac_try" in
10463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464   *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467   (eval "$ac_compile") 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } && {
10474          test -z "$ac_c_werror_flag" ||
10475          test ! -s conftest.err
10476        } && test -s conftest.$ac_objext; then
10477   ac_hi=$ac_mid
10478 else
10479   echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10481
10482         ac_lo=`expr '(' $ac_mid ')' + 1`
10483 fi
10484
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10486 done
10487 case $ac_lo in
10488 ?*) res_hi=$ac_lo;;
10489 '') result=? ;;
10490 esac
10491 else
10492   cat >conftest.$ac_ext <<_ACEOF
10493 /* confdefs.h.  */
10494 _ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h.  */
10498 #include <stddef.h>
10499 static long int longval () { return ~(size_t)0 / 10; }
10500 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10501 #include <stdio.h>
10502 #include <stdlib.h>
10503 int
10504 main ()
10505 {
10506
10507   FILE *f = fopen ("conftest.val", "w");
10508   if (! f)
10509     return 1;
10510   if ((~(size_t)0 / 10) < 0)
10511     {
10512       long int i = longval ();
10513       if (i != (~(size_t)0 / 10))
10514         return 1;
10515       fprintf (f, "%ld\n", i);
10516     }
10517   else
10518     {
10519       unsigned long int i = ulongval ();
10520       if (i != (~(size_t)0 / 10))
10521         return 1;
10522       fprintf (f, "%lu\n", i);
10523     }
10524   return ferror (f) || fclose (f) != 0;
10525
10526   ;
10527   return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_link") 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10541   { (case "(($ac_try" in
10542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543   *) ac_try_echo=$ac_try;;
10544 esac
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546   (eval "$ac_try") 2>&5
10547   ac_status=$?
10548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549   (exit $ac_status); }; }; then
10550   res_hi=`cat conftest.val`
10551 else
10552   echo "$as_me: program exited with status $ac_status" >&5
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556 ( exit $ac_status )
10557 result=?
10558 fi
10559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10560 fi
10561 rm -f conftest.val
10562
10563     if test "$cross_compiling" = yes; then
10564   # Depending upon the size, compute the lo and hi bounds.
10565 cat >conftest.$ac_ext <<_ACEOF
10566 /* confdefs.h.  */
10567 _ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h.  */
10571 #include <stddef.h>
10572 int
10573 main ()
10574 {
10575 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10576 test_array [0] = 0
10577
10578   ;
10579   return 0;
10580 }
10581 _ACEOF
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586   *) ac_try_echo=$ac_try;;
10587 esac
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589   (eval "$ac_compile") 2>conftest.er1
10590   ac_status=$?
10591   grep -v '^ *+' conftest.er1 >conftest.err
10592   rm -f conftest.er1
10593   cat conftest.err >&5
10594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595   (exit $ac_status); } && {
10596          test -z "$ac_c_werror_flag" ||
10597          test ! -s conftest.err
10598        } && test -s conftest.$ac_objext; then
10599   ac_lo=0 ac_mid=0
10600   while :; do
10601     cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h.  */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h.  */
10607 #include <stddef.h>
10608 int
10609 main ()
10610 {
10611 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10612 test_array [0] = 0
10613
10614   ;
10615   return 0;
10616 }
10617 _ACEOF
10618 rm -f conftest.$ac_objext
10619 if { (ac_try="$ac_compile"
10620 case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_compile") 2>conftest.er1
10626   ac_status=$?
10627   grep -v '^ *+' conftest.er1 >conftest.err
10628   rm -f conftest.er1
10629   cat conftest.err >&5
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); } && {
10632          test -z "$ac_c_werror_flag" ||
10633          test ! -s conftest.err
10634        } && test -s conftest.$ac_objext; then
10635   ac_hi=$ac_mid; break
10636 else
10637   echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10639
10640         ac_lo=`expr $ac_mid + 1`
10641                         if test $ac_lo -le $ac_mid; then
10642                           ac_lo= ac_hi=
10643                           break
10644                         fi
10645                         ac_mid=`expr 2 '*' $ac_mid + 1`
10646 fi
10647
10648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10649   done
10650 else
10651   echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10653
10654         cat >conftest.$ac_ext <<_ACEOF
10655 /* confdefs.h.  */
10656 _ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h.  */
10660 #include <stddef.h>
10661 int
10662 main ()
10663 {
10664 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10665 test_array [0] = 0
10666
10667   ;
10668   return 0;
10669 }
10670 _ACEOF
10671 rm -f conftest.$ac_objext
10672 if { (ac_try="$ac_compile"
10673 case "(($ac_try" in
10674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675   *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678   (eval "$ac_compile") 2>conftest.er1
10679   ac_status=$?
10680   grep -v '^ *+' conftest.er1 >conftest.err
10681   rm -f conftest.er1
10682   cat conftest.err >&5
10683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684   (exit $ac_status); } && {
10685          test -z "$ac_c_werror_flag" ||
10686          test ! -s conftest.err
10687        } && test -s conftest.$ac_objext; then
10688   ac_hi=-1 ac_mid=-1
10689   while :; do
10690     cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h.  */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h.  */
10696 #include <stddef.h>
10697 int
10698 main ()
10699 {
10700 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10701 test_array [0] = 0
10702
10703   ;
10704   return 0;
10705 }
10706 _ACEOF
10707 rm -f conftest.$ac_objext
10708 if { (ac_try="$ac_compile"
10709 case "(($ac_try" in
10710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711   *) ac_try_echo=$ac_try;;
10712 esac
10713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714   (eval "$ac_compile") 2>conftest.er1
10715   ac_status=$?
10716   grep -v '^ *+' conftest.er1 >conftest.err
10717   rm -f conftest.er1
10718   cat conftest.err >&5
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); } && {
10721          test -z "$ac_c_werror_flag" ||
10722          test ! -s conftest.err
10723        } && test -s conftest.$ac_objext; then
10724   ac_lo=$ac_mid; break
10725 else
10726   echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729         ac_hi=`expr '(' $ac_mid ')' - 1`
10730                         if test $ac_mid -le $ac_hi; then
10731                           ac_lo= ac_hi=
10732                           break
10733                         fi
10734                         ac_mid=`expr 2 '*' $ac_mid`
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10738   done
10739 else
10740   echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10742
10743         ac_lo= ac_hi=
10744 fi
10745
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10747 fi
10748
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 # Binary search between lo and hi bounds.
10751 while test "x$ac_lo" != "x$ac_hi"; do
10752   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10753   cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 #include <stddef.h>
10760 int
10761 main ()
10762 {
10763 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10764 test_array [0] = 0
10765
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774   *) ac_try_echo=$ac_try;;
10775 esac
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777   (eval "$ac_compile") 2>conftest.er1
10778   ac_status=$?
10779   grep -v '^ *+' conftest.er1 >conftest.err
10780   rm -f conftest.er1
10781   cat conftest.err >&5
10782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783   (exit $ac_status); } && {
10784          test -z "$ac_c_werror_flag" ||
10785          test ! -s conftest.err
10786        } && test -s conftest.$ac_objext; then
10787   ac_hi=$ac_mid
10788 else
10789   echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10791
10792         ac_lo=`expr '(' $ac_mid ')' + 1`
10793 fi
10794
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10796 done
10797 case $ac_lo in
10798 ?*) res_lo=$ac_lo;;
10799 '') result=? ;;
10800 esac
10801 else
10802   cat >conftest.$ac_ext <<_ACEOF
10803 /* confdefs.h.  */
10804 _ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h.  */
10808 #include <stddef.h>
10809 static long int longval () { return ~(size_t)0 % 10; }
10810 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10811 #include <stdio.h>
10812 #include <stdlib.h>
10813 int
10814 main ()
10815 {
10816
10817   FILE *f = fopen ("conftest.val", "w");
10818   if (! f)
10819     return 1;
10820   if ((~(size_t)0 % 10) < 0)
10821     {
10822       long int i = longval ();
10823       if (i != (~(size_t)0 % 10))
10824         return 1;
10825       fprintf (f, "%ld\n", i);
10826     }
10827   else
10828     {
10829       unsigned long int i = ulongval ();
10830       if (i != (~(size_t)0 % 10))
10831         return 1;
10832       fprintf (f, "%lu\n", i);
10833     }
10834   return ferror (f) || fclose (f) != 0;
10835
10836   ;
10837   return 0;
10838 }
10839 _ACEOF
10840 rm -f conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844   *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847   (eval "$ac_link") 2>&5
10848   ac_status=$?
10849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10851   { (case "(($ac_try" in
10852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853   *) ac_try_echo=$ac_try;;
10854 esac
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856   (eval "$ac_try") 2>&5
10857   ac_status=$?
10858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); }; }; then
10860   res_lo=`cat conftest.val`
10861 else
10862   echo "$as_me: program exited with status $ac_status" >&5
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866 ( exit $ac_status )
10867 result=?
10868 fi
10869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10870 fi
10871 rm -f conftest.val
10872
10873     if test "$cross_compiling" = yes; then
10874   # Depending upon the size, compute the lo and hi bounds.
10875 cat >conftest.$ac_ext <<_ACEOF
10876 /* confdefs.h.  */
10877 _ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h.  */
10881 #include <stddef.h>
10882 int
10883 main ()
10884 {
10885 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10886 test_array [0] = 0
10887
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896   *) ac_try_echo=$ac_try;;
10897 esac
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899   (eval "$ac_compile") 2>conftest.er1
10900   ac_status=$?
10901   grep -v '^ *+' conftest.er1 >conftest.err
10902   rm -f conftest.er1
10903   cat conftest.err >&5
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } && {
10906          test -z "$ac_c_werror_flag" ||
10907          test ! -s conftest.err
10908        } && test -s conftest.$ac_objext; then
10909   ac_lo=0 ac_mid=0
10910   while :; do
10911     cat >conftest.$ac_ext <<_ACEOF
10912 /* confdefs.h.  */
10913 _ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h.  */
10917 #include <stddef.h>
10918 int
10919 main ()
10920 {
10921 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10922 test_array [0] = 0
10923
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 rm -f conftest.$ac_objext
10929 if { (ac_try="$ac_compile"
10930 case "(($ac_try" in
10931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932   *) ac_try_echo=$ac_try;;
10933 esac
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935   (eval "$ac_compile") 2>conftest.er1
10936   ac_status=$?
10937   grep -v '^ *+' conftest.er1 >conftest.err
10938   rm -f conftest.er1
10939   cat conftest.err >&5
10940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941   (exit $ac_status); } && {
10942          test -z "$ac_c_werror_flag" ||
10943          test ! -s conftest.err
10944        } && test -s conftest.$ac_objext; then
10945   ac_hi=$ac_mid; break
10946 else
10947   echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10949
10950         ac_lo=`expr $ac_mid + 1`
10951                         if test $ac_lo -le $ac_mid; then
10952                           ac_lo= ac_hi=
10953                           break
10954                         fi
10955                         ac_mid=`expr 2 '*' $ac_mid + 1`
10956 fi
10957
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959   done
10960 else
10961   echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10963
10964         cat >conftest.$ac_ext <<_ACEOF
10965 /* confdefs.h.  */
10966 _ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h.  */
10970 #include <stddef.h>
10971 int
10972 main ()
10973 {
10974 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10975 test_array [0] = 0
10976
10977   ;
10978   return 0;
10979 }
10980 _ACEOF
10981 rm -f conftest.$ac_objext
10982 if { (ac_try="$ac_compile"
10983 case "(($ac_try" in
10984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985   *) ac_try_echo=$ac_try;;
10986 esac
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988   (eval "$ac_compile") 2>conftest.er1
10989   ac_status=$?
10990   grep -v '^ *+' conftest.er1 >conftest.err
10991   rm -f conftest.er1
10992   cat conftest.err >&5
10993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994   (exit $ac_status); } && {
10995          test -z "$ac_c_werror_flag" ||
10996          test ! -s conftest.err
10997        } && test -s conftest.$ac_objext; then
10998   ac_hi=-1 ac_mid=-1
10999   while :; do
11000     cat >conftest.$ac_ext <<_ACEOF
11001 /* confdefs.h.  */
11002 _ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h.  */
11006 #include <stddef.h>
11007 int
11008 main ()
11009 {
11010 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11011 test_array [0] = 0
11012
11013   ;
11014   return 0;
11015 }
11016 _ACEOF
11017 rm -f conftest.$ac_objext
11018 if { (ac_try="$ac_compile"
11019 case "(($ac_try" in
11020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021   *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024   (eval "$ac_compile") 2>conftest.er1
11025   ac_status=$?
11026   grep -v '^ *+' conftest.er1 >conftest.err
11027   rm -f conftest.er1
11028   cat conftest.err >&5
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); } && {
11031          test -z "$ac_c_werror_flag" ||
11032          test ! -s conftest.err
11033        } && test -s conftest.$ac_objext; then
11034   ac_lo=$ac_mid; break
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039         ac_hi=`expr '(' $ac_mid ')' - 1`
11040                         if test $ac_mid -le $ac_hi; then
11041                           ac_lo= ac_hi=
11042                           break
11043                         fi
11044                         ac_mid=`expr 2 '*' $ac_mid`
11045 fi
11046
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11048   done
11049 else
11050   echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053         ac_lo= ac_hi=
11054 fi
11055
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 fi
11058
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 # Binary search between lo and hi bounds.
11061 while test "x$ac_lo" != "x$ac_hi"; do
11062   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11063   cat >conftest.$ac_ext <<_ACEOF
11064 /* confdefs.h.  */
11065 _ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h.  */
11069 #include <stddef.h>
11070 int
11071 main ()
11072 {
11073 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11074 test_array [0] = 0
11075
11076   ;
11077   return 0;
11078 }
11079 _ACEOF
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084   *) ac_try_echo=$ac_try;;
11085 esac
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087   (eval "$ac_compile") 2>conftest.er1
11088   ac_status=$?
11089   grep -v '^ *+' conftest.er1 >conftest.err
11090   rm -f conftest.er1
11091   cat conftest.err >&5
11092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093   (exit $ac_status); } && {
11094          test -z "$ac_c_werror_flag" ||
11095          test ! -s conftest.err
11096        } && test -s conftest.$ac_objext; then
11097   ac_hi=$ac_mid
11098 else
11099   echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11101
11102         ac_lo=`expr '(' $ac_mid ')' + 1`
11103 fi
11104
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 done
11107 case $ac_lo in
11108 ?*) fits_in_uint=$ac_lo;;
11109 '') result=? ;;
11110 esac
11111 else
11112   cat >conftest.$ac_ext <<_ACEOF
11113 /* confdefs.h.  */
11114 _ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h.  */
11118 #include <stddef.h>
11119 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11120 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11121 #include <stdio.h>
11122 #include <stdlib.h>
11123 int
11124 main ()
11125 {
11126
11127   FILE *f = fopen ("conftest.val", "w");
11128   if (! f)
11129     return 1;
11130   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11131     {
11132       long int i = longval ();
11133       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11134         return 1;
11135       fprintf (f, "%ld\n", i);
11136     }
11137   else
11138     {
11139       unsigned long int i = ulongval ();
11140       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11141         return 1;
11142       fprintf (f, "%lu\n", i);
11143     }
11144   return ferror (f) || fclose (f) != 0;
11145
11146   ;
11147   return 0;
11148 }
11149 _ACEOF
11150 rm -f conftest$ac_exeext
11151 if { (ac_try="$ac_link"
11152 case "(($ac_try" in
11153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154   *) ac_try_echo=$ac_try;;
11155 esac
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157   (eval "$ac_link") 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11161   { (case "(($ac_try" in
11162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163   *) ac_try_echo=$ac_try;;
11164 esac
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166   (eval "$ac_try") 2>&5
11167   ac_status=$?
11168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169   (exit $ac_status); }; }; then
11170   fits_in_uint=`cat conftest.val`
11171 else
11172   echo "$as_me: program exited with status $ac_status" >&5
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11175
11176 ( exit $ac_status )
11177 result=?
11178 fi
11179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11180 fi
11181 rm -f conftest.val
11182
11183     if test "$fits_in_uint" = 1; then
11184                   cat >conftest.$ac_ext <<_ACEOF
11185 /* confdefs.h.  */
11186 _ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h.  */
11190 #include <stddef.h>
11191         extern size_t foo;
11192         extern unsigned long foo;
11193
11194 int
11195 main ()
11196 {
11197
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206   *) ac_try_echo=$ac_try;;
11207 esac
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209   (eval "$ac_compile") 2>conftest.er1
11210   ac_status=$?
11211   grep -v '^ *+' conftest.er1 >conftest.err
11212   rm -f conftest.er1
11213   cat conftest.err >&5
11214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215   (exit $ac_status); } && {
11216          test -z "$ac_c_werror_flag" ||
11217          test ! -s conftest.err
11218        } && test -s conftest.$ac_objext; then
11219   fits_in_uint=0
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224
11225 fi
11226
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11228     fi
11229     if test -z "$result"; then
11230       if test "$fits_in_uint" = 1; then
11231         result="$res_hi$res_lo"U
11232       else
11233         result="$res_hi$res_lo"UL
11234       fi
11235     else
11236             result='~(size_t)0'
11237     fi
11238   fi
11239   { echo "$as_me:$LINENO: result: $result" >&5
11240 echo "${ECHO_T}$result" >&6; }
11241   if test "$result" != yes; then
11242
11243 cat >>confdefs.h <<_ACEOF
11244 #define SIZE_MAX $result
11245 _ACEOF
11246
11247   fi
11248
11249
11250
11251
11252
11253 for ac_header in stdint.h
11254 do
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260   echo $ECHO_N "(cached) $ECHO_C" >&6
11261 fi
11262 ac_res=`eval echo '${'$as_ac_Header'}'`
11263                { echo "$as_me:$LINENO: result: $ac_res" >&5
11264 echo "${ECHO_T}$ac_res" >&6; }
11265 else
11266   # Is the header compilable?
11267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11270 /* confdefs.h.  */
11271 _ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h.  */
11275 $ac_includes_default
11276 #include <$ac_header>
11277 _ACEOF
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_compile") 2>conftest.er1
11286   ac_status=$?
11287   grep -v '^ *+' conftest.er1 >conftest.err
11288   rm -f conftest.er1
11289   cat conftest.err >&5
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); } && {
11292          test -z "$ac_c_werror_flag" ||
11293          test ! -s conftest.err
11294        } && test -s conftest.$ac_objext; then
11295   ac_header_compiler=yes
11296 else
11297   echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11299
11300         ac_header_compiler=no
11301 fi
11302
11303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11305 echo "${ECHO_T}$ac_header_compiler" >&6; }
11306
11307 # Is the header present?
11308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h.  */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h.  */
11316 #include <$ac_header>
11317 _ACEOF
11318 if { (ac_try="$ac_cpp conftest.$ac_ext"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } >/dev/null && {
11331          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11332          test ! -s conftest.err
11333        }; then
11334   ac_header_preproc=yes
11335 else
11336   echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11338
11339   ac_header_preproc=no
11340 fi
11341
11342 rm -f conftest.err conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6; }
11345
11346 # So?  What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11348   yes:no: )
11349     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353     ac_header_preproc=yes
11354     ;;
11355   no:yes:* )
11356     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11360     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11368
11369     ;;
11370 esac
11371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374   echo $ECHO_N "(cached) $ECHO_C" >&6
11375 else
11376   eval "$as_ac_Header=\$ac_header_preproc"
11377 fi
11378 ac_res=`eval echo '${'$as_ac_Header'}'`
11379                { echo "$as_me:$LINENO: result: $ac_res" >&5
11380 echo "${ECHO_T}$ac_res" >&6; }
11381
11382 fi
11383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384   cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 _ACEOF
11387
11388 fi
11389
11390 done
11391
11392
11393
11394
11395
11396
11397
11398
11399   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11400 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11401 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11402   echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404   cat >conftest.$ac_ext <<_ACEOF
11405 /* confdefs.h.  */
11406 _ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h.  */
11410 $ac_includes_default
11411 typedef ptrdiff_t ac__type_new_;
11412 int
11413 main ()
11414 {
11415 if ((ac__type_new_ *) 0)
11416   return 0;
11417 if (sizeof (ac__type_new_))
11418   return 0;
11419   ;
11420   return 0;
11421 }
11422 _ACEOF
11423 rm -f conftest.$ac_objext
11424 if { (ac_try="$ac_compile"
11425 case "(($ac_try" in
11426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427   *) ac_try_echo=$ac_try;;
11428 esac
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430   (eval "$ac_compile") 2>conftest.er1
11431   ac_status=$?
11432   grep -v '^ *+' conftest.er1 >conftest.err
11433   rm -f conftest.er1
11434   cat conftest.err >&5
11435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436   (exit $ac_status); } && {
11437          test -z "$ac_c_werror_flag" ||
11438          test ! -s conftest.err
11439        } && test -s conftest.$ac_objext; then
11440   ac_cv_type_ptrdiff_t=yes
11441 else
11442   echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11444
11445         ac_cv_type_ptrdiff_t=no
11446 fi
11447
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449 fi
11450 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11451 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11452 if test $ac_cv_type_ptrdiff_t = yes; then
11453   :
11454 else
11455
11456 cat >>confdefs.h <<\_ACEOF
11457 #define ptrdiff_t long
11458 _ACEOF
11459
11460
11461 fi
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11474 stdlib.h string.h unistd.h sys/param.h
11475 do
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481   echo $ECHO_N "(cached) $ECHO_C" >&6
11482 fi
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484                { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11486 else
11487   # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11491 /* confdefs.h.  */
11492 _ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h.  */
11496 $ac_includes_default
11497 #include <$ac_header>
11498 _ACEOF
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503   *) ac_try_echo=$ac_try;;
11504 esac
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506   (eval "$ac_compile") 2>conftest.er1
11507   ac_status=$?
11508   grep -v '^ *+' conftest.er1 >conftest.err
11509   rm -f conftest.er1
11510   cat conftest.err >&5
11511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512   (exit $ac_status); } && {
11513          test -z "$ac_c_werror_flag" ||
11514          test ! -s conftest.err
11515        } && test -s conftest.$ac_objext; then
11516   ac_header_compiler=yes
11517 else
11518   echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11520
11521         ac_header_compiler=no
11522 fi
11523
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11527
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.$ac_ext <<_ACEOF
11532 /* confdefs.h.  */
11533 _ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h.  */
11537 #include <$ac_header>
11538 _ACEOF
11539 if { (ac_try="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542   *) ac_try_echo=$ac_try;;
11543 esac
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11546   ac_status=$?
11547   grep -v '^ *+' conftest.er1 >conftest.err
11548   rm -f conftest.er1
11549   cat conftest.err >&5
11550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551   (exit $ac_status); } >/dev/null && {
11552          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553          test ! -s conftest.err
11554        }; then
11555   ac_header_preproc=yes
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560   ac_header_preproc=no
11561 fi
11562
11563 rm -f conftest.err conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11566
11567 # So?  What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11569   yes:no: )
11570     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574     ac_header_preproc=yes
11575     ;;
11576   no:yes:* )
11577     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11581     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11589
11590     ;;
11591 esac
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595   echo $ECHO_N "(cached) $ECHO_C" >&6
11596 else
11597   eval "$as_ac_Header=\$ac_header_preproc"
11598 fi
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600                { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11602
11603 fi
11604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605   cat >>confdefs.h <<_ACEOF
11606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11607 _ACEOF
11608
11609 fi
11610
11611 done
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11637 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11638 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11639 __fsetlocking
11640 do
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645   echo $ECHO_N "(cached) $ECHO_C" >&6
11646 else
11647   cat >conftest.$ac_ext <<_ACEOF
11648 /* confdefs.h.  */
11649 _ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h.  */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11655 #define $ac_func innocuous_$ac_func
11656
11657 /* System header to define __stub macros and hopefully few prototypes,
11658     which can conflict with char $ac_func (); below.
11659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660     <limits.h> exists even on freestanding compilers.  */
11661
11662 #ifdef __STDC__
11663 # include <limits.h>
11664 #else
11665 # include <assert.h>
11666 #endif
11667
11668 #undef $ac_func
11669
11670 /* Override any GCC internal prototype to avoid an error.
11671    Use char because int might match the return type of a GCC
11672    builtin and then its argument prototype would still apply.  */
11673 #ifdef __cplusplus
11674 extern "C"
11675 #endif
11676 char $ac_func ();
11677 /* The GNU C library defines this for functions which it implements
11678     to always fail with ENOSYS.  Some functions are actually named
11679     something starting with __ and the normal name is an alias.  */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11681 choke me
11682 #endif
11683
11684 int
11685 main ()
11686 {
11687 return $ac_func ();
11688   ;
11689   return 0;
11690 }
11691 _ACEOF
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_link") 2>conftest.er1
11700   ac_status=$?
11701   grep -v '^ *+' conftest.er1 >conftest.err
11702   rm -f conftest.er1
11703   cat conftest.err >&5
11704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705   (exit $ac_status); } && {
11706          test -z "$ac_c_werror_flag" ||
11707          test ! -s conftest.err
11708        } && test -s conftest$ac_exeext &&
11709        $as_test_x conftest$ac_exeext; then
11710   eval "$as_ac_var=yes"
11711 else
11712   echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11714
11715         eval "$as_ac_var=no"
11716 fi
11717
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719       conftest$ac_exeext conftest.$ac_ext
11720 fi
11721 ac_res=`eval echo '${'$as_ac_var'}'`
11722                { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11724 if test `eval echo '${'$as_ac_var'}'` = yes; then
11725   cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11727 _ACEOF
11728
11729 fi
11730 done
11731
11732
11733
11734   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11735 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11736 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11737   echo $ECHO_N "(cached) $ECHO_C" >&6
11738 else
11739   cat >conftest.$ac_ext <<_ACEOF
11740 /* confdefs.h.  */
11741 _ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h.  */
11745 #include <stdio.h>
11746 int
11747 main ()
11748 {
11749
11750 #ifndef _snprintf
11751   char *p = (char *) _snprintf;
11752 #endif
11753
11754   ;
11755   return 0;
11756 }
11757 _ACEOF
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765   (eval "$ac_compile") 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } && {
11772          test -z "$ac_c_werror_flag" ||
11773          test ! -s conftest.err
11774        } && test -s conftest.$ac_objext; then
11775   ac_cv_have_decl__snprintf=yes
11776 else
11777   echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11779
11780         ac_cv_have_decl__snprintf=no
11781 fi
11782
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11784 fi
11785 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11786 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11787   if test $ac_cv_have_decl__snprintf = yes; then
11788     gt_value=1
11789   else
11790     gt_value=0
11791   fi
11792
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_DECL__SNPRINTF $gt_value
11795 _ACEOF
11796
11797
11798
11799   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11800 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11801 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11802   echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804   cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h.  */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h.  */
11810 #include <stdio.h>
11811 int
11812 main ()
11813 {
11814
11815 #ifndef _snwprintf
11816   char *p = (char *) _snwprintf;
11817 #endif
11818
11819   ;
11820   return 0;
11821 }
11822 _ACEOF
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827   *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830   (eval "$ac_compile") 2>conftest.er1
11831   ac_status=$?
11832   grep -v '^ *+' conftest.er1 >conftest.err
11833   rm -f conftest.er1
11834   cat conftest.err >&5
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); } && {
11837          test -z "$ac_c_werror_flag" ||
11838          test ! -s conftest.err
11839        } && test -s conftest.$ac_objext; then
11840   ac_cv_have_decl__snwprintf=yes
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845         ac_cv_have_decl__snwprintf=no
11846 fi
11847
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11849 fi
11850 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11851 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11852   if test $ac_cv_have_decl__snwprintf = yes; then
11853     gt_value=1
11854   else
11855     gt_value=0
11856   fi
11857
11858 cat >>confdefs.h <<_ACEOF
11859 #define HAVE_DECL__SNWPRINTF $gt_value
11860 _ACEOF
11861
11862
11863
11864
11865   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11866 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11867 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11868   echo $ECHO_N "(cached) $ECHO_C" >&6
11869 else
11870   cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <stdio.h>
11877 int
11878 main ()
11879 {
11880
11881 #ifndef feof_unlocked
11882   char *p = (char *) feof_unlocked;
11883 #endif
11884
11885   ;
11886   return 0;
11887 }
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (ac_try="$ac_compile"
11891 case "(($ac_try" in
11892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893   *) ac_try_echo=$ac_try;;
11894 esac
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896   (eval "$ac_compile") 2>conftest.er1
11897   ac_status=$?
11898   grep -v '^ *+' conftest.er1 >conftest.err
11899   rm -f conftest.er1
11900   cat conftest.err >&5
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); } && {
11903          test -z "$ac_c_werror_flag" ||
11904          test ! -s conftest.err
11905        } && test -s conftest.$ac_objext; then
11906   ac_cv_have_decl_feof_unlocked=yes
11907 else
11908   echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11910
11911         ac_cv_have_decl_feof_unlocked=no
11912 fi
11913
11914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 fi
11916 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11917 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11918   if test $ac_cv_have_decl_feof_unlocked = yes; then
11919     gt_value=1
11920   else
11921     gt_value=0
11922   fi
11923
11924 cat >>confdefs.h <<_ACEOF
11925 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11926 _ACEOF
11927
11928
11929
11930   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11931 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11932 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11933   echo $ECHO_N "(cached) $ECHO_C" >&6
11934 else
11935   cat >conftest.$ac_ext <<_ACEOF
11936 /* confdefs.h.  */
11937 _ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h.  */
11941 #include <stdio.h>
11942 int
11943 main ()
11944 {
11945
11946 #ifndef fgets_unlocked
11947   char *p = (char *) fgets_unlocked;
11948 #endif
11949
11950   ;
11951   return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_compile") 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } && {
11968          test -z "$ac_c_werror_flag" ||
11969          test ! -s conftest.err
11970        } && test -s conftest.$ac_objext; then
11971   ac_cv_have_decl_fgets_unlocked=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976         ac_cv_have_decl_fgets_unlocked=no
11977 fi
11978
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 fi
11981 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11982 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11983   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11984     gt_value=1
11985   else
11986     gt_value=0
11987   fi
11988
11989 cat >>confdefs.h <<_ACEOF
11990 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11991 _ACEOF
11992
11993
11994
11995   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11996 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11997 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11998   echo $ECHO_N "(cached) $ECHO_C" >&6
11999 else
12000   cat >conftest.$ac_ext <<_ACEOF
12001 /* confdefs.h.  */
12002 _ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h.  */
12006 #include <stdio.h>
12007 int
12008 main ()
12009 {
12010
12011 #ifndef getc_unlocked
12012   char *p = (char *) getc_unlocked;
12013 #endif
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 rm -f conftest.$ac_objext
12020 if { (ac_try="$ac_compile"
12021 case "(($ac_try" in
12022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023   *) ac_try_echo=$ac_try;;
12024 esac
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026   (eval "$ac_compile") 2>conftest.er1
12027   ac_status=$?
12028   grep -v '^ *+' conftest.er1 >conftest.err
12029   rm -f conftest.er1
12030   cat conftest.err >&5
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); } && {
12033          test -z "$ac_c_werror_flag" ||
12034          test ! -s conftest.err
12035        } && test -s conftest.$ac_objext; then
12036   ac_cv_have_decl_getc_unlocked=yes
12037 else
12038   echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12040
12041         ac_cv_have_decl_getc_unlocked=no
12042 fi
12043
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 fi
12046 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12047 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12048   if test $ac_cv_have_decl_getc_unlocked = yes; then
12049     gt_value=1
12050   else
12051     gt_value=0
12052   fi
12053
12054 cat >>confdefs.h <<_ACEOF
12055 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12056 _ACEOF
12057
12058
12059
12060   case $gt_cv_func_printf_posix in
12061     *yes) HAVE_POSIX_PRINTF=1 ;;
12062     *) HAVE_POSIX_PRINTF=0 ;;
12063   esac
12064
12065   if test "$ac_cv_func_asprintf" = yes; then
12066     HAVE_ASPRINTF=1
12067   else
12068     HAVE_ASPRINTF=0
12069   fi
12070
12071   if test "$ac_cv_func_snprintf" = yes; then
12072     HAVE_SNPRINTF=1
12073   else
12074     HAVE_SNPRINTF=0
12075   fi
12076
12077   if test "$ac_cv_func_wprintf" = yes; then
12078     HAVE_WPRINTF=1
12079   else
12080     HAVE_WPRINTF=0
12081   fi
12082
12083
12084
12085
12086
12087
12088
12089           am_save_CPPFLAGS="$CPPFLAGS"
12090
12091   for element in $INCICONV; do
12092     haveit=
12093     for x in $CPPFLAGS; do
12094
12095   acl_save_prefix="$prefix"
12096   prefix="$acl_final_prefix"
12097   acl_save_exec_prefix="$exec_prefix"
12098   exec_prefix="$acl_final_exec_prefix"
12099   eval x=\"$x\"
12100   exec_prefix="$acl_save_exec_prefix"
12101   prefix="$acl_save_prefix"
12102
12103       if test "X$x" = "X$element"; then
12104         haveit=yes
12105         break
12106       fi
12107     done
12108     if test -z "$haveit"; then
12109       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12110     fi
12111   done
12112
12113
12114   { echo "$as_me:$LINENO: checking for iconv" >&5
12115 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12116 if test "${am_cv_func_iconv+set}" = set; then
12117   echo $ECHO_N "(cached) $ECHO_C" >&6
12118 else
12119
12120     am_cv_func_iconv="no, consider installing GNU libiconv"
12121     am_cv_lib_iconv=no
12122     cat >conftest.$ac_ext <<_ACEOF
12123 /* confdefs.h.  */
12124 _ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h.  */
12128 #include <stdlib.h>
12129 #include <iconv.h>
12130 int
12131 main ()
12132 {
12133 iconv_t cd = iconv_open("","");
12134        iconv(cd,NULL,NULL,NULL,NULL);
12135        iconv_close(cd);
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144   *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147   (eval "$ac_link") 2>conftest.er1
12148   ac_status=$?
12149   grep -v '^ *+' conftest.er1 >conftest.err
12150   rm -f conftest.er1
12151   cat conftest.err >&5
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); } && {
12154          test -z "$ac_c_werror_flag" ||
12155          test ! -s conftest.err
12156        } && test -s conftest$ac_exeext &&
12157        $as_test_x conftest$ac_exeext; then
12158   am_cv_func_iconv=yes
12159 else
12160   echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12162
12163
12164 fi
12165
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167       conftest$ac_exeext conftest.$ac_ext
12168     if test "$am_cv_func_iconv" != yes; then
12169       am_save_LIBS="$LIBS"
12170       LIBS="$LIBS $LIBICONV"
12171       cat >conftest.$ac_ext <<_ACEOF
12172 /* confdefs.h.  */
12173 _ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h.  */
12177 #include <stdlib.h>
12178 #include <iconv.h>
12179 int
12180 main ()
12181 {
12182 iconv_t cd = iconv_open("","");
12183          iconv(cd,NULL,NULL,NULL,NULL);
12184          iconv_close(cd);
12185   ;
12186   return 0;
12187 }
12188 _ACEOF
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (ac_try="$ac_link"
12191 case "(($ac_try" in
12192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193   *) ac_try_echo=$ac_try;;
12194 esac
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196   (eval "$ac_link") 2>conftest.er1
12197   ac_status=$?
12198   grep -v '^ *+' conftest.er1 >conftest.err
12199   rm -f conftest.er1
12200   cat conftest.err >&5
12201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202   (exit $ac_status); } && {
12203          test -z "$ac_c_werror_flag" ||
12204          test ! -s conftest.err
12205        } && test -s conftest$ac_exeext &&
12206        $as_test_x conftest$ac_exeext; then
12207   am_cv_lib_iconv=yes
12208         am_cv_func_iconv=yes
12209 else
12210   echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12212
12213
12214 fi
12215
12216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12217       conftest$ac_exeext conftest.$ac_ext
12218       LIBS="$am_save_LIBS"
12219     fi
12220
12221 fi
12222 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12223 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12224   if test "$am_cv_func_iconv" = yes; then
12225
12226 cat >>confdefs.h <<\_ACEOF
12227 #define HAVE_ICONV 1
12228 _ACEOF
12229
12230   fi
12231   if test "$am_cv_lib_iconv" = yes; then
12232     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12233 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12234     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12235 echo "${ECHO_T}$LIBICONV" >&6; }
12236   else
12237             CPPFLAGS="$am_save_CPPFLAGS"
12238     LIBICONV=
12239     LTLIBICONV=
12240   fi
12241
12242
12243
12244   if test "$am_cv_func_iconv" = yes; then
12245     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12246 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12247     if test "${am_cv_proto_iconv+set}" = set; then
12248   echo $ECHO_N "(cached) $ECHO_C" >&6
12249 else
12250
12251       cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h.  */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h.  */
12257
12258 #include <stdlib.h>
12259 #include <iconv.h>
12260 extern
12261 #ifdef __cplusplus
12262 "C"
12263 #endif
12264 #if defined(__STDC__) || defined(__cplusplus)
12265 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12266 #else
12267 size_t iconv();
12268 #endif
12269
12270 int
12271 main ()
12272 {
12273
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (ac_try="$ac_compile"
12280 case "(($ac_try" in
12281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282   *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285   (eval "$ac_compile") 2>conftest.er1
12286   ac_status=$?
12287   grep -v '^ *+' conftest.er1 >conftest.err
12288   rm -f conftest.er1
12289   cat conftest.err >&5
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); } && {
12292          test -z "$ac_c_werror_flag" ||
12293          test ! -s conftest.err
12294        } && test -s conftest.$ac_objext; then
12295   am_cv_proto_iconv_arg1=""
12296 else
12297   echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300         am_cv_proto_iconv_arg1="const"
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304       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);"
12305 fi
12306
12307     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12308     { echo "$as_me:$LINENO: result: ${ac_t:-
12309          }$am_cv_proto_iconv" >&5
12310 echo "${ECHO_T}${ac_t:-
12311          }$am_cv_proto_iconv" >&6; }
12312
12313 cat >>confdefs.h <<_ACEOF
12314 #define ICONV_CONST $am_cv_proto_iconv_arg1
12315 _ACEOF
12316
12317   fi
12318
12319
12320   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12321 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12322 if test "${am_cv_langinfo_codeset+set}" = set; then
12323   echo $ECHO_N "(cached) $ECHO_C" >&6
12324 else
12325   cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h.  */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h.  */
12331 #include <langinfo.h>
12332 int
12333 main ()
12334 {
12335 char* cs = nl_langinfo(CODESET);
12336   ;
12337   return 0;
12338 }
12339 _ACEOF
12340 rm -f conftest.$ac_objext conftest$ac_exeext
12341 if { (ac_try="$ac_link"
12342 case "(($ac_try" in
12343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344   *) ac_try_echo=$ac_try;;
12345 esac
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347   (eval "$ac_link") 2>conftest.er1
12348   ac_status=$?
12349   grep -v '^ *+' conftest.er1 >conftest.err
12350   rm -f conftest.er1
12351   cat conftest.err >&5
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); } && {
12354          test -z "$ac_c_werror_flag" ||
12355          test ! -s conftest.err
12356        } && test -s conftest$ac_exeext &&
12357        $as_test_x conftest$ac_exeext; then
12358   am_cv_langinfo_codeset=yes
12359 else
12360   echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12362
12363         am_cv_langinfo_codeset=no
12364 fi
12365
12366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12367       conftest$ac_exeext conftest.$ac_ext
12368
12369 fi
12370 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12371 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12372   if test $am_cv_langinfo_codeset = yes; then
12373
12374 cat >>confdefs.h <<\_ACEOF
12375 #define HAVE_LANGINFO_CODESET 1
12376 _ACEOF
12377
12378   fi
12379
12380   if test $ac_cv_header_locale_h = yes; then
12381
12382   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12383 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12384 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 else
12387   cat >conftest.$ac_ext <<_ACEOF
12388 /* confdefs.h.  */
12389 _ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h.  */
12393 #include <locale.h>
12394 int
12395 main ()
12396 {
12397 return LC_MESSAGES
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (ac_try="$ac_link"
12404 case "(($ac_try" in
12405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406   *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409   (eval "$ac_link") 2>conftest.er1
12410   ac_status=$?
12411   grep -v '^ *+' conftest.er1 >conftest.err
12412   rm -f conftest.er1
12413   cat conftest.err >&5
12414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415   (exit $ac_status); } && {
12416          test -z "$ac_c_werror_flag" ||
12417          test ! -s conftest.err
12418        } && test -s conftest$ac_exeext &&
12419        $as_test_x conftest$ac_exeext; then
12420   gt_cv_val_LC_MESSAGES=yes
12421 else
12422   echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12424
12425         gt_cv_val_LC_MESSAGES=no
12426 fi
12427
12428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12429       conftest$ac_exeext conftest.$ac_ext
12430 fi
12431 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12432 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12433   if test $gt_cv_val_LC_MESSAGES = yes; then
12434
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_LC_MESSAGES 1
12437 _ACEOF
12438
12439   fi
12440
12441   fi
12442
12443   if test -n "$INTL_MACOSX_LIBS"; then
12444     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12445   fi
12446
12447                       for ac_prog in bison
12448 do
12449   # Extract the first word of "$ac_prog", so it can be a program name with args.
12450 set dummy $ac_prog; ac_word=$2
12451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12453 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12454   echo $ECHO_N "(cached) $ECHO_C" >&6
12455 else
12456   if test -n "$INTLBISON"; then
12457   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12458 else
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12461 do
12462   IFS=$as_save_IFS
12463   test -z "$as_dir" && as_dir=.
12464   for ac_exec_ext in '' $ac_executable_extensions; do
12465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466     ac_cv_prog_INTLBISON="$ac_prog"
12467     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12468     break 2
12469   fi
12470 done
12471 done
12472 IFS=$as_save_IFS
12473
12474 fi
12475 fi
12476 INTLBISON=$ac_cv_prog_INTLBISON
12477 if test -n "$INTLBISON"; then
12478   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12479 echo "${ECHO_T}$INTLBISON" >&6; }
12480 else
12481   { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12483 fi
12484
12485
12486   test -n "$INTLBISON" && break
12487 done
12488
12489   if test -z "$INTLBISON"; then
12490     ac_verc_fail=yes
12491   else
12492         { echo "$as_me:$LINENO: checking version of bison" >&5
12493 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12494     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12495     case $ac_prog_version in
12496       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12497       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12498          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12499       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12500     esac
12501     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12502 echo "${ECHO_T}$ac_prog_version" >&6; }
12503   fi
12504   if test $ac_verc_fail = yes; then
12505     INTLBISON=:
12506   fi
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12524 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12525 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12526   echo $ECHO_N "(cached) $ECHO_C" >&6
12527 else
12528   gt_save_CPPFLAGS="$CPPFLAGS"
12529      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12530      gt_save_LIBS="$LIBS"
12531      LIBS="$LIBS -framework CoreFoundation"
12532      cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h.  */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h.  */
12538 #include <CFPreferences.h>
12539 int
12540 main ()
12541 {
12542 CFPreferencesCopyAppValue(NULL, NULL)
12543   ;
12544   return 0;
12545 }
12546 _ACEOF
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551   *) ac_try_echo=$ac_try;;
12552 esac
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554   (eval "$ac_link") 2>conftest.er1
12555   ac_status=$?
12556   grep -v '^ *+' conftest.er1 >conftest.err
12557   rm -f conftest.er1
12558   cat conftest.err >&5
12559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); } && {
12561          test -z "$ac_c_werror_flag" ||
12562          test ! -s conftest.err
12563        } && test -s conftest$ac_exeext &&
12564        $as_test_x conftest$ac_exeext; then
12565   gt_cv_func_CFPreferencesCopyAppValue=yes
12566 else
12567   echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12569
12570         gt_cv_func_CFPreferencesCopyAppValue=no
12571 fi
12572
12573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12574       conftest$ac_exeext conftest.$ac_ext
12575      CPPFLAGS="$gt_save_CPPFLAGS"
12576      LIBS="$gt_save_LIBS"
12577 fi
12578 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12579 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12580   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12581
12582 cat >>confdefs.h <<\_ACEOF
12583 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12584 _ACEOF
12585
12586   fi
12587     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12588 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12589 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   gt_save_CPPFLAGS="$CPPFLAGS"
12593      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12594      gt_save_LIBS="$LIBS"
12595      LIBS="$LIBS -framework CoreFoundation"
12596      cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602 #include <CFLocale.h>
12603 int
12604 main ()
12605 {
12606 CFLocaleCopyCurrent();
12607   ;
12608   return 0;
12609 }
12610 _ACEOF
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615   *) ac_try_echo=$ac_try;;
12616 esac
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618   (eval "$ac_link") 2>conftest.er1
12619   ac_status=$?
12620   grep -v '^ *+' conftest.er1 >conftest.err
12621   rm -f conftest.er1
12622   cat conftest.err >&5
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); } && {
12625          test -z "$ac_c_werror_flag" ||
12626          test ! -s conftest.err
12627        } && test -s conftest$ac_exeext &&
12628        $as_test_x conftest$ac_exeext; then
12629   gt_cv_func_CFLocaleCopyCurrent=yes
12630 else
12631   echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12633
12634         gt_cv_func_CFLocaleCopyCurrent=no
12635 fi
12636
12637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12638       conftest$ac_exeext conftest.$ac_ext
12639      CPPFLAGS="$gt_save_CPPFLAGS"
12640      LIBS="$gt_save_LIBS"
12641 fi
12642 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12643 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12644   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12645
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_CFLOCALECOPYCURRENT 1
12648 _ACEOF
12649
12650   fi
12651   INTL_MACOSX_LIBS=
12652   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12653     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12654   fi
12655
12656
12657
12658
12659   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12660 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12661     # Check whether --enable-nls was given.
12662 if test "${enable_nls+set}" = set; then
12663   enableval=$enable_nls; USE_NLS=$enableval
12664 else
12665   USE_NLS=yes
12666 fi
12667
12668   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12669 echo "${ECHO_T}$USE_NLS" >&6; }
12670
12671
12672
12673
12674     BUILD_INCLUDED_LIBINTL=no
12675     USE_INCLUDED_LIBINTL=no
12676
12677   LIBINTL=
12678   LTLIBINTL=
12679   POSUB=
12680
12681     if test "$USE_NLS" = "yes"; then
12682     gt_use_preinstalled_gnugettext=no
12683
12684       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12685 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12686
12687 # Check whether --with-included-gettext was given.
12688 if test "${with_included_gettext+set}" = set; then
12689   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12690 else
12691   nls_cv_force_use_gnu_gettext=no
12692 fi
12693
12694       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12695 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12696
12697       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12698       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12699
12700
12701
12702
12703
12704
12705         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12706 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12707 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12708   echo $ECHO_N "(cached) $ECHO_C" >&6
12709 else
12710   cat >conftest.$ac_ext <<_ACEOF
12711 /* confdefs.h.  */
12712 _ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h.  */
12716 #include <libintl.h>
12717 extern int _nl_msg_cat_cntr;
12718 extern int *_nl_domain_bindings;
12719 int
12720 main ()
12721 {
12722 bindtextdomain ("", "");
12723 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12724   ;
12725   return 0;
12726 }
12727 _ACEOF
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (ac_try="$ac_link"
12730 case "(($ac_try" in
12731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732   *) ac_try_echo=$ac_try;;
12733 esac
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735   (eval "$ac_link") 2>conftest.er1
12736   ac_status=$?
12737   grep -v '^ *+' conftest.er1 >conftest.err
12738   rm -f conftest.er1
12739   cat conftest.err >&5
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); } && {
12742          test -z "$ac_c_werror_flag" ||
12743          test ! -s conftest.err
12744        } && test -s conftest$ac_exeext &&
12745        $as_test_x conftest$ac_exeext; then
12746   gt_cv_func_gnugettext1_libc=yes
12747 else
12748   echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12750
12751         gt_cv_func_gnugettext1_libc=no
12752 fi
12753
12754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12755       conftest$ac_exeext conftest.$ac_ext
12756 fi
12757 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12758 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12759
12760         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12761
12762
12763
12764     use_additional=yes
12765
12766   acl_save_prefix="$prefix"
12767   prefix="$acl_final_prefix"
12768   acl_save_exec_prefix="$exec_prefix"
12769   exec_prefix="$acl_final_exec_prefix"
12770
12771     eval additional_includedir=\"$includedir\"
12772     eval additional_libdir=\"$libdir\"
12773
12774   exec_prefix="$acl_save_exec_prefix"
12775   prefix="$acl_save_prefix"
12776
12777
12778 # Check whether --with-libintl-prefix was given.
12779 if test "${with_libintl_prefix+set}" = set; then
12780   withval=$with_libintl_prefix;
12781     if test "X$withval" = "Xno"; then
12782       use_additional=no
12783     else
12784       if test "X$withval" = "X"; then
12785
12786   acl_save_prefix="$prefix"
12787   prefix="$acl_final_prefix"
12788   acl_save_exec_prefix="$exec_prefix"
12789   exec_prefix="$acl_final_exec_prefix"
12790
12791           eval additional_includedir=\"$includedir\"
12792           eval additional_libdir=\"$libdir\"
12793
12794   exec_prefix="$acl_save_exec_prefix"
12795   prefix="$acl_save_prefix"
12796
12797       else
12798         additional_includedir="$withval/include"
12799         additional_libdir="$withval/lib"
12800       fi
12801     fi
12802
12803 fi
12804
12805       LIBINTL=
12806   LTLIBINTL=
12807   INCINTL=
12808   rpathdirs=
12809   ltrpathdirs=
12810   names_already_handled=
12811   names_next_round='intl '
12812   while test -n "$names_next_round"; do
12813     names_this_round="$names_next_round"
12814     names_next_round=
12815     for name in $names_this_round; do
12816       already_handled=
12817       for n in $names_already_handled; do
12818         if test "$n" = "$name"; then
12819           already_handled=yes
12820           break
12821         fi
12822       done
12823       if test -z "$already_handled"; then
12824         names_already_handled="$names_already_handled $name"
12825                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12826         eval value=\"\$HAVE_LIB$uppername\"
12827         if test -n "$value"; then
12828           if test "$value" = yes; then
12829             eval value=\"\$LIB$uppername\"
12830             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12831             eval value=\"\$LTLIB$uppername\"
12832             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12833           else
12834                                     :
12835           fi
12836         else
12837                               found_dir=
12838           found_la=
12839           found_so=
12840           found_a=
12841           if test $use_additional = yes; then
12842             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12843               found_dir="$additional_libdir"
12844               found_so="$additional_libdir/lib$name.$shlibext"
12845               if test -f "$additional_libdir/lib$name.la"; then
12846                 found_la="$additional_libdir/lib$name.la"
12847               fi
12848             else
12849               if test -f "$additional_libdir/lib$name.$libext"; then
12850                 found_dir="$additional_libdir"
12851                 found_a="$additional_libdir/lib$name.$libext"
12852                 if test -f "$additional_libdir/lib$name.la"; then
12853                   found_la="$additional_libdir/lib$name.la"
12854                 fi
12855               fi
12856             fi
12857           fi
12858           if test "X$found_dir" = "X"; then
12859             for x in $LDFLAGS $LTLIBINTL; do
12860
12861   acl_save_prefix="$prefix"
12862   prefix="$acl_final_prefix"
12863   acl_save_exec_prefix="$exec_prefix"
12864   exec_prefix="$acl_final_exec_prefix"
12865   eval x=\"$x\"
12866   exec_prefix="$acl_save_exec_prefix"
12867   prefix="$acl_save_prefix"
12868
12869               case "$x" in
12870                 -L*)
12871                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12872                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12873                     found_dir="$dir"
12874                     found_so="$dir/lib$name.$shlibext"
12875                     if test -f "$dir/lib$name.la"; then
12876                       found_la="$dir/lib$name.la"
12877                     fi
12878                   else
12879                     if test -f "$dir/lib$name.$libext"; then
12880                       found_dir="$dir"
12881                       found_a="$dir/lib$name.$libext"
12882                       if test -f "$dir/lib$name.la"; then
12883                         found_la="$dir/lib$name.la"
12884                       fi
12885                     fi
12886                   fi
12887                   ;;
12888               esac
12889               if test "X$found_dir" != "X"; then
12890                 break
12891               fi
12892             done
12893           fi
12894           if test "X$found_dir" != "X"; then
12895                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12896             if test "X$found_so" != "X"; then
12897                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12898                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12899               else
12900                                                                                 haveit=
12901                 for x in $ltrpathdirs; do
12902                   if test "X$x" = "X$found_dir"; then
12903                     haveit=yes
12904                     break
12905                   fi
12906                 done
12907                 if test -z "$haveit"; then
12908                   ltrpathdirs="$ltrpathdirs $found_dir"
12909                 fi
12910                                 if test "$hardcode_direct" = yes; then
12911                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12912                 else
12913                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12914                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12915                                                             haveit=
12916                     for x in $rpathdirs; do
12917                       if test "X$x" = "X$found_dir"; then
12918                         haveit=yes
12919                         break
12920                       fi
12921                     done
12922                     if test -z "$haveit"; then
12923                       rpathdirs="$rpathdirs $found_dir"
12924                     fi
12925                   else
12926                                                                                 haveit=
12927                     for x in $LDFLAGS $LIBINTL; do
12928
12929   acl_save_prefix="$prefix"
12930   prefix="$acl_final_prefix"
12931   acl_save_exec_prefix="$exec_prefix"
12932   exec_prefix="$acl_final_exec_prefix"
12933   eval x=\"$x\"
12934   exec_prefix="$acl_save_exec_prefix"
12935   prefix="$acl_save_prefix"
12936
12937                       if test "X$x" = "X-L$found_dir"; then
12938                         haveit=yes
12939                         break
12940                       fi
12941                     done
12942                     if test -z "$haveit"; then
12943                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12944                     fi
12945                     if test "$hardcode_minus_L" != no; then
12946                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12947                     else
12948                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12949                     fi
12950                   fi
12951                 fi
12952               fi
12953             else
12954               if test "X$found_a" != "X"; then
12955                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12956               else
12957                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12958               fi
12959             fi
12960                         additional_includedir=
12961             case "$found_dir" in
12962               */lib | */lib/)
12963                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12964                 additional_includedir="$basedir/include"
12965                 ;;
12966             esac
12967             if test "X$additional_includedir" != "X"; then
12968                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12969                 haveit=
12970                 if test "X$additional_includedir" = "X/usr/local/include"; then
12971                   if test -n "$GCC"; then
12972                     case $host_os in
12973                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12974                     esac
12975                   fi
12976                 fi
12977                 if test -z "$haveit"; then
12978                   for x in $CPPFLAGS $INCINTL; do
12979
12980   acl_save_prefix="$prefix"
12981   prefix="$acl_final_prefix"
12982   acl_save_exec_prefix="$exec_prefix"
12983   exec_prefix="$acl_final_exec_prefix"
12984   eval x=\"$x\"
12985   exec_prefix="$acl_save_exec_prefix"
12986   prefix="$acl_save_prefix"
12987
12988                     if test "X$x" = "X-I$additional_includedir"; then
12989                       haveit=yes
12990                       break
12991                     fi
12992                   done
12993                   if test -z "$haveit"; then
12994                     if test -d "$additional_includedir"; then
12995                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12996                     fi
12997                   fi
12998                 fi
12999               fi
13000             fi
13001                         if test -n "$found_la"; then
13002                                                         save_libdir="$libdir"
13003               case "$found_la" in
13004                 */* | *\\*) . "$found_la" ;;
13005                 *) . "./$found_la" ;;
13006               esac
13007               libdir="$save_libdir"
13008                             for dep in $dependency_libs; do
13009                 case "$dep" in
13010                   -L*)
13011                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13012                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13013                       haveit=
13014                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13015                         if test -n "$GCC"; then
13016                           case $host_os in
13017                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13018                           esac
13019                         fi
13020                       fi
13021                       if test -z "$haveit"; then
13022                         haveit=
13023                         for x in $LDFLAGS $LIBINTL; do
13024
13025   acl_save_prefix="$prefix"
13026   prefix="$acl_final_prefix"
13027   acl_save_exec_prefix="$exec_prefix"
13028   exec_prefix="$acl_final_exec_prefix"
13029   eval x=\"$x\"
13030   exec_prefix="$acl_save_exec_prefix"
13031   prefix="$acl_save_prefix"
13032
13033                           if test "X$x" = "X-L$additional_libdir"; then
13034                             haveit=yes
13035                             break
13036                           fi
13037                         done
13038                         if test -z "$haveit"; then
13039                           if test -d "$additional_libdir"; then
13040                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13041                           fi
13042                         fi
13043                         haveit=
13044                         for x in $LDFLAGS $LTLIBINTL; do
13045
13046   acl_save_prefix="$prefix"
13047   prefix="$acl_final_prefix"
13048   acl_save_exec_prefix="$exec_prefix"
13049   exec_prefix="$acl_final_exec_prefix"
13050   eval x=\"$x\"
13051   exec_prefix="$acl_save_exec_prefix"
13052   prefix="$acl_save_prefix"
13053
13054                           if test "X$x" = "X-L$additional_libdir"; then
13055                             haveit=yes
13056                             break
13057                           fi
13058                         done
13059                         if test -z "$haveit"; then
13060                           if test -d "$additional_libdir"; then
13061                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13062                           fi
13063                         fi
13064                       fi
13065                     fi
13066                     ;;
13067                   -R*)
13068                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13069                     if test "$enable_rpath" != no; then
13070                                                                   haveit=
13071                       for x in $rpathdirs; do
13072                         if test "X$x" = "X$dir"; then
13073                           haveit=yes
13074                           break
13075                         fi
13076                       done
13077                       if test -z "$haveit"; then
13078                         rpathdirs="$rpathdirs $dir"
13079                       fi
13080                                                                   haveit=
13081                       for x in $ltrpathdirs; 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                         ltrpathdirs="$ltrpathdirs $dir"
13089                       fi
13090                     fi
13091                     ;;
13092                   -l*)
13093                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13094                     ;;
13095                   *.la)
13096                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13097                     ;;
13098                   *)
13099                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13100                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13101                     ;;
13102                 esac
13103               done
13104             fi
13105           else
13106                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13107             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13108           fi
13109         fi
13110       fi
13111     done
13112   done
13113   if test "X$rpathdirs" != "X"; then
13114     if test -n "$hardcode_libdir_separator"; then
13115                         alldirs=
13116       for found_dir in $rpathdirs; do
13117         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13118       done
13119             acl_save_libdir="$libdir"
13120       libdir="$alldirs"
13121       eval flag=\"$hardcode_libdir_flag_spec\"
13122       libdir="$acl_save_libdir"
13123       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13124     else
13125             for found_dir in $rpathdirs; do
13126         acl_save_libdir="$libdir"
13127         libdir="$found_dir"
13128         eval flag=\"$hardcode_libdir_flag_spec\"
13129         libdir="$acl_save_libdir"
13130         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13131       done
13132     fi
13133   fi
13134   if test "X$ltrpathdirs" != "X"; then
13135             for found_dir in $ltrpathdirs; do
13136       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13137     done
13138   fi
13139
13140           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13141 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13142 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13143   echo $ECHO_N "(cached) $ECHO_C" >&6
13144 else
13145   gt_save_CPPFLAGS="$CPPFLAGS"
13146             CPPFLAGS="$CPPFLAGS $INCINTL"
13147             gt_save_LIBS="$LIBS"
13148             LIBS="$LIBS $LIBINTL"
13149                         cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 #include <libintl.h>
13156 extern int _nl_msg_cat_cntr;
13157 extern
13158 #ifdef __cplusplus
13159 "C"
13160 #endif
13161 const char *_nl_expand_alias (const char *);
13162 int
13163 main ()
13164 {
13165 bindtextdomain ("", "");
13166 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13167   ;
13168   return 0;
13169 }
13170 _ACEOF
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175   *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178   (eval "$ac_link") 2>conftest.er1
13179   ac_status=$?
13180   grep -v '^ *+' conftest.er1 >conftest.err
13181   rm -f conftest.er1
13182   cat conftest.err >&5
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } && {
13185          test -z "$ac_c_werror_flag" ||
13186          test ! -s conftest.err
13187        } && test -s conftest$ac_exeext &&
13188        $as_test_x conftest$ac_exeext; then
13189   gt_cv_func_gnugettext1_libintl=yes
13190 else
13191   echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13193
13194         gt_cv_func_gnugettext1_libintl=no
13195 fi
13196
13197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13198       conftest$ac_exeext conftest.$ac_ext
13199                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13200               LIBS="$LIBS $LIBICONV"
13201               cat >conftest.$ac_ext <<_ACEOF
13202 /* confdefs.h.  */
13203 _ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h.  */
13207 #include <libintl.h>
13208 extern int _nl_msg_cat_cntr;
13209 extern
13210 #ifdef __cplusplus
13211 "C"
13212 #endif
13213 const char *_nl_expand_alias (const char *);
13214 int
13215 main ()
13216 {
13217 bindtextdomain ("", "");
13218 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13219   ;
13220   return 0;
13221 }
13222 _ACEOF
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227   *) ac_try_echo=$ac_try;;
13228 esac
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230   (eval "$ac_link") 2>conftest.er1
13231   ac_status=$?
13232   grep -v '^ *+' conftest.er1 >conftest.err
13233   rm -f conftest.er1
13234   cat conftest.err >&5
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); } && {
13237          test -z "$ac_c_werror_flag" ||
13238          test ! -s conftest.err
13239        } && test -s conftest$ac_exeext &&
13240        $as_test_x conftest$ac_exeext; then
13241   LIBINTL="$LIBINTL $LIBICONV"
13242                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13243                 gt_cv_func_gnugettext1_libintl=yes
13244
13245 else
13246   echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13248
13249
13250 fi
13251
13252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13253       conftest$ac_exeext conftest.$ac_ext
13254             fi
13255             CPPFLAGS="$gt_save_CPPFLAGS"
13256             LIBS="$gt_save_LIBS"
13257 fi
13258 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13259 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13260         fi
13261
13262                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13263            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13264                 && test "$PACKAGE" != gettext-runtime \
13265                 && test "$PACKAGE" != gettext-tools; }; then
13266           gt_use_preinstalled_gnugettext=yes
13267         else
13268                     LIBINTL=
13269           LTLIBINTL=
13270           INCINTL=
13271         fi
13272
13273
13274         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13275                               nls_cv_use_gnu_gettext=yes
13276         fi
13277       fi
13278
13279       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13280                 BUILD_INCLUDED_LIBINTL=yes
13281         USE_INCLUDED_LIBINTL=yes
13282         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13283         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13284         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13285       fi
13286
13287       CATOBJEXT=
13288       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13289          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13290                 CATOBJEXT=.gmo
13291       fi
13292
13293
13294     if test -n "$INTL_MACOSX_LIBS"; then
13295       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13296          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13297                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13298         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13299       fi
13300     fi
13301
13302     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13303        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13304
13305 cat >>confdefs.h <<\_ACEOF
13306 #define ENABLE_NLS 1
13307 _ACEOF
13308
13309     else
13310       USE_NLS=no
13311     fi
13312   fi
13313
13314   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13315 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13316   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13317 echo "${ECHO_T}$USE_NLS" >&6; }
13318   if test "$USE_NLS" = "yes"; then
13319     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13320 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13321     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13322       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13323         gt_source="external libintl"
13324       else
13325         gt_source="libc"
13326       fi
13327     else
13328       gt_source="included intl directory"
13329     fi
13330     { echo "$as_me:$LINENO: result: $gt_source" >&5
13331 echo "${ECHO_T}$gt_source" >&6; }
13332   fi
13333
13334   if test "$USE_NLS" = "yes"; then
13335
13336     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13337       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13338         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13339 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13340         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13341 echo "${ECHO_T}$LIBINTL" >&6; }
13342
13343   for element in $INCINTL; do
13344     haveit=
13345     for x in $CPPFLAGS; do
13346
13347   acl_save_prefix="$prefix"
13348   prefix="$acl_final_prefix"
13349   acl_save_exec_prefix="$exec_prefix"
13350   exec_prefix="$acl_final_exec_prefix"
13351   eval x=\"$x\"
13352   exec_prefix="$acl_save_exec_prefix"
13353   prefix="$acl_save_prefix"
13354
13355       if test "X$x" = "X$element"; then
13356         haveit=yes
13357         break
13358       fi
13359     done
13360     if test -z "$haveit"; then
13361       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13362     fi
13363   done
13364
13365       fi
13366
13367
13368 cat >>confdefs.h <<\_ACEOF
13369 #define HAVE_GETTEXT 1
13370 _ACEOF
13371
13372
13373 cat >>confdefs.h <<\_ACEOF
13374 #define HAVE_DCGETTEXT 1
13375 _ACEOF
13376
13377     fi
13378
13379         POSUB=po
13380   fi
13381
13382
13383             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13384       BUILD_INCLUDED_LIBINTL=yes
13385     fi
13386
13387
13388
13389
13390
13391         nls_cv_header_intl=
13392     nls_cv_header_libgt=
13393
13394         DATADIRNAME=share
13395
13396
13397         INSTOBJEXT=.mo
13398
13399
13400         GENCAT=gencat
13401
13402
13403         INTLOBJS=
13404     if test "$USE_INCLUDED_LIBINTL" = yes; then
13405       INTLOBJS="\$(GETTOBJS)"
13406     fi
13407
13408
13409         INTL_LIBTOOL_SUFFIX_PREFIX=
13410
13411
13412
13413     INTLLIBS="$LIBINTL"
13414
13415
13416
13417
13418
13419
13420 fi
13421
13422
13423 support_mysql=no
13424 support_sqlite=no
13425 support_sqlite3=no
13426 support_postgresql=no
13427 support_smartalloc=yes
13428 support_readline=yes
13429 support_conio=yes
13430 support_gnome=no
13431 support_bat=no
13432 support_wx_console=no
13433 support_tls=no
13434 support_crypto=no
13435 gnome_version=
13436 wx_version=
13437 support_static_tools=no
13438 support_static_fd=no
13439 support_static_sd=no
13440 support_static_dir=no
13441 support_static_cons=no
13442 support_python=no
13443 build_client_only=no
13444 build_dird=yes
13445 build_stored=yes
13446 cats=
13447 db_type=Internal
13448 DB_TYPE=bdb
13449
13450
13451 # -------------------------------------------
13452 # gnome (default off)
13453 # -------------------------------------------
13454 # Check whether --enable-gnome was given.
13455 if test "${enable_gnome+set}" = set; then
13456   enableval=$enable_gnome; if test x$enableval = xyes; then
13457     support_gnome=yes
13458   fi
13459 fi
13460
13461
13462 GNOME_DIR=
13463 if test x$support_gnome = xyes; then
13464   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13465   pkg=$?
13466   if test $pkg = 0; then
13467      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13468      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13469      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13470      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13471
13472
13473
13474
13475      GNOME_DIR=src/gnome2-console
13476      gnome_version="Version 2.x"
13477   else
13478      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13479 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13480    { (exit 1); exit 1; }; }
13481   fi
13482 fi
13483
13484
13485 # -------------------------------------------
13486 # bat (default off)
13487 # -------------------------------------------
13488 # Check whether --enable-bat was given.
13489 if test "${enable_bat+set}" = set; then
13490   enableval=$enable_bat; if test x$enableval = xyes; then
13491
13492 cat >>confdefs.h <<\_ACEOF
13493 #define HAVE_BAT 1
13494 _ACEOF
13495
13496     support_bat=yes
13497   fi
13498 fi
13499
13500
13501 BAT_DIR=
13502 if test x$support_bat = xyes; then
13503   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13504   pkg=$?
13505   if test $pkg = 0; then
13506      BAT_DIR=src/qt-console
13507   else
13508      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13509 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13510    { (exit 1); exit 1; }; }
13511   fi
13512 fi
13513
13514 #
13515 #  If bat is enabled, we need the qwt library
13516 got_qwt=no
13517 QWT_INC=
13518 QWT_LDFLAGS=
13519 QWT_LIB=
13520 QWT=
13521 no_qwt=no
13522 if test x$support_bat = xyes; then
13523    { echo "$as_me:$LINENO: checking for qwt support" >&5
13524 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13525
13526 # Check whether --with-qwt was given.
13527 if test "${with_qwt+set}" = set; then
13528   withval=$with_qwt;
13529         case "$with_qwt" in
13530         no)
13531            no_qwt=yes
13532           ;;
13533         yes|*)
13534           if test -f ${with_qwt}/include/qwt.h; then
13535              QWT_INC="${with_qwt}/include"
13536              QWT_LDFLAGS="-L${with_qwt}/lib"
13537              QWT_LIB="-lqwt"
13538              QWT="qwt"
13539           fi
13540           ;;
13541         esac
13542
13543
13544 fi
13545
13546 #
13547 # Search in standard places, or --with-qwt not specified
13548 #
13549    if test $no_qwt = no; then
13550     if test x$QWT_INC = x; then
13551       for root in /usr /usr/local; do
13552          for ver in qwt qwt5 qwt-qt4; do
13553             if test -f ${root}/include/${ver}/qwt.h; then
13554                QWT_INC="${root}/include/${ver}"
13555                if test -d ${root}/lib64/; then
13556                   QWT_LDFLAGS="-L${root}/lib64"
13557                else
13558                   QWT_LDFLAGS="-L${root}/lib"
13559                fi
13560                QWT_LIB="-lqwt"
13561                QWT="qwt"
13562                got_qwt=yes
13563                break;
13564             fi
13565          done
13566       done
13567     fi
13568    fi
13569    if test x$QWT_INC = x; then
13570       { echo "$as_me:$LINENO: result: no" >&5
13571 echo "${ECHO_T}no" >&6; }
13572    else
13573
13574 cat >>confdefs.h <<\_ACEOF
13575 #define HAVE_QWT 1
13576 _ACEOF
13577
13578       { echo "$as_me:$LINENO: result: yes" >&5
13579 echo "${ECHO_T}yes" >&6; }
13580    fi
13581 fi
13582
13583
13584
13585
13586
13587
13588
13589
13590 # -------------------------------------------
13591 # bwx-console (default off)
13592 # -------------------------------------------
13593 # Check whether --enable-bwx-console was given.
13594 if test "${enable_bwx_console+set}" = set; then
13595   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13596     support_wx_console=yes
13597   fi
13598 fi
13599
13600
13601 WX_DIR=
13602 if test x$support_wx_console = xyes; then
13603   abc=`$WXCONFIG $WXFLAGS --cppflags`
13604   pkg=$?
13605   if test $pkg = 0; then
13606      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13607      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13608      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13609
13610
13611
13612      WX_DIR=src/wx-console
13613   else
13614      echo " "
13615      echo "wx-config program not found. bwx-console disabled."
13616      echo " "
13617      support_wx_console=no
13618   fi
13619 fi
13620
13621
13622
13623 # -------------------------------------------
13624 # tray-monitor (default off)
13625 # -------------------------------------------
13626 # Check whether --enable-tray-monitor was given.
13627 if test "${enable_tray_monitor+set}" = set; then
13628   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13629     support_tray_monitor=yes
13630   fi
13631 fi
13632
13633
13634 TRAY_MONITOR_DIR=
13635 if test x$support_tray_monitor = xyes; then
13636   abc=`$PKGCONFIG --exists gtk+-2.0`
13637   pkg=$?
13638   if test $pkg = 0; then
13639      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13640      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13641
13642
13643      TRAY_MONITOR_DIR=src/tray-monitor
13644      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13645      pkg=$?
13646      if test $pkg = 0; then
13647
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_GTK_2_4 1
13650 _ACEOF
13651
13652      fi
13653   fi
13654 fi
13655
13656
13657 # -------------------------------------------
13658 # smartalloc (default off)
13659 # -------------------------------------------
13660 # Check whether --enable-smartalloc was given.
13661 if test "${enable_smartalloc+set}" = set; then
13662   enableval=$enable_smartalloc; if test x$enableval = xno; then
13663     support_smartalloc=no
13664   fi
13665 fi
13666
13667
13668 if test x$support_smartalloc = xyes; then
13669
13670 cat >>confdefs.h <<\_ACEOF
13671 #define SMARTALLOC 1
13672 _ACEOF
13673
13674 fi
13675
13676 # -------------------------------------------
13677 # static-tools (default off)
13678 # -------------------------------------------
13679 # Check whether --enable-static-tools was given.
13680 if test "${enable_static_tools+set}" = set; then
13681   enableval=$enable_static_tools; if test x$enableval = xyes; then
13682      support_static_tools=yes
13683    fi
13684 fi
13685
13686
13687 TTOOL_LDFLAGS=
13688 if test x$support_static_tools = xyes; then
13689    TTOOL_LDFLAGS="-static"
13690 fi
13691
13692
13693 # -------------------------------------------
13694 # static-fd    (default off)
13695 # -------------------------------------------
13696 # Check whether --enable-static-fd was given.
13697 if test "${enable_static_fd+set}" = set; then
13698   enableval=$enable_static_fd; if test x$enableval = xyes; then
13699      support_static_fd=yes
13700    fi
13701 fi
13702
13703
13704 STATIC_FD=
13705 if test x$support_static_fd = xyes; then
13706    STATIC_FD="static-bacula-fd"
13707 fi
13708
13709
13710 # -------------------------------------------
13711 # static-sd    (default off)
13712 # -------------------------------------------
13713 # Check whether --enable-static-sd was given.
13714 if test "${enable_static_sd+set}" = set; then
13715   enableval=$enable_static_sd; if test x$enableval = xyes; then
13716      support_static_sd=yes
13717    fi
13718 fi
13719
13720
13721 STATIC_SD=
13722 if test x$support_static_sd = xyes; then
13723    STATIC_SD="static-bacula-sd"
13724 fi
13725
13726
13727 # -------------------------------------------
13728 # static-dir   (default off)
13729 # -------------------------------------------
13730 # Check whether --enable-static-dir was given.
13731 if test "${enable_static_dir+set}" = set; then
13732   enableval=$enable_static_dir; if test x$enableval = xyes; then
13733      support_static_dir=yes
13734    fi
13735 fi
13736
13737
13738 STATIC_DIR=
13739 if test x$support_static_dir = xyes; then
13740    STATIC_DIR="static-bacula-dir"
13741 fi
13742
13743
13744 # -------------------------------------------
13745 # static-cons  (default off)
13746 # -------------------------------------------
13747 # Check whether --enable-static-cons was given.
13748 if test "${enable_static_cons+set}" = set; then
13749   enableval=$enable_static_cons; if test x$enableval = xyes; then
13750      support_static_cons=yes
13751    fi
13752 fi
13753
13754
13755 STATIC_CONS=
13756 STATIC_GNOME_CONS=
13757 STATIC_WX_CONS=
13758 if test x$support_static_cons = xyes; then
13759    STATIC_CONS="static-bconsole"
13760    STATIC_GNOME_CONS="static-bgnome-console"
13761    STATIC_WX_CONS="static-bwx-console"
13762 fi
13763
13764
13765
13766
13767 # -------------------------------------------
13768 # client_only  (default off)
13769 # -------------------------------------------
13770 # Check whether --enable-client-only was given.
13771 if test "${enable_client_only+set}" = set; then
13772   enableval=$enable_client_only; if test x$enableval = xyes; then
13773       build_client_only=yes
13774       db_type=None
13775       DB_TYPE=none
13776    fi
13777 fi
13778
13779 if test x$build_client_only = xno; then
13780    ALL_DIRS="subdirs"
13781 else
13782    ALL_DIRS=""
13783 fi
13784
13785
13786 # -------------------------------------------
13787 # director  (default on)
13788 # -------------------------------------------
13789 # Check whether --enable-build-dird was given.
13790 if test "${enable_build_dird+set}" = set; then
13791   enableval=$enable_build_dird; if test x$enableval = xno; then
13792       build_dird=no
13793    fi
13794 fi
13795
13796 if test x$build_dird = xyes; then
13797    DIRD_DIR="src/dird"
13798    DIR_TOOLS="DIRTOOLS"
13799 else
13800    DIRD_DIR=""
13801    DIR_TOOLS="NODIRTOOLS"
13802 fi
13803
13804
13805
13806 # -------------------------------------------
13807 # stored  (default on)
13808 # -------------------------------------------
13809 # Check whether --enable-build-stored was given.
13810 if test "${enable_build_stored+set}" = set; then
13811   enableval=$enable_build_stored; if test x$enableval = xno; then
13812       build_stored=no
13813    fi
13814 fi
13815
13816 if test x$build_stored = xyes; then
13817    STORED_DIR="src/stored"
13818 else
13819    STORED_DIR=""
13820 fi
13821
13822
13823 # ---------------------------------------------------
13824 # Check for conio (Bacula readline substitute)(
13825 # ---------------------------------------------------
13826 # this allows you to turn it completely off
13827 # Check whether --enable-conio was given.
13828 if test "${enable_conio+set}" = set; then
13829   enableval=$enable_conio; if test x$enableval = xno; then
13830      support_conio=no
13831   fi
13832
13833 fi
13834
13835
13836
13837 # ---------------------------------------------------
13838 # Check for IPv6 support
13839 # ---------------------------------------------------
13840 # this allows you to turn it completely off
13841 support_ipv6=yes
13842 # Check whether --enable-ipv6 was given.
13843 if test "${enable_ipv6+set}" = set; then
13844   enableval=$enable_ipv6; if test x$enableval = xno; then
13845      support_ipv6=no
13846   fi
13847
13848 fi
13849
13850
13851 if test x$support_ipv6 = xyes; then
13852     cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858  #include <sys/types.h>
13859 #include <sys/socket.h>
13860 #include <netinet/in.h>
13861 int
13862 main ()
13863 {
13864 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13865   ;
13866   return 0;
13867 }
13868 _ACEOF
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873   *) ac_try_echo=$ac_try;;
13874 esac
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876   (eval "$ac_link") 2>conftest.er1
13877   ac_status=$?
13878   grep -v '^ *+' conftest.er1 >conftest.err
13879   rm -f conftest.er1
13880   cat conftest.err >&5
13881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882   (exit $ac_status); } && {
13883          test -z "$ac_c_werror_flag" ||
13884          test ! -s conftest.err
13885        } && test -s conftest$ac_exeext &&
13886        $as_test_x conftest$ac_exeext; then
13887   support_ipv6=yes
13888 else
13889   echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13891
13892         support_ipv6=no
13893 fi
13894
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896       conftest$ac_exeext conftest.$ac_ext
13897 fi
13898
13899 if test x$support_ipv6 = xyes; then
13900
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_IPV6 1
13903 _ACEOF
13904
13905 fi
13906
13907
13908
13909 got_conio="no"
13910 if test x$support_conio = xyes; then
13911    if test "${ac_cv_header_termcap_h+set}" = set; then
13912   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13913 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13914 if test "${ac_cv_header_termcap_h+set}" = set; then
13915   echo $ECHO_N "(cached) $ECHO_C" >&6
13916 fi
13917 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13918 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13919 else
13920   # Is the header compilable?
13921 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13922 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h.  */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h.  */
13929 $ac_includes_default
13930 #include <termcap.h>
13931 _ACEOF
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936   *) ac_try_echo=$ac_try;;
13937 esac
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939   (eval "$ac_compile") 2>conftest.er1
13940   ac_status=$?
13941   grep -v '^ *+' conftest.er1 >conftest.err
13942   rm -f conftest.er1
13943   cat conftest.err >&5
13944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945   (exit $ac_status); } && {
13946          test -z "$ac_c_werror_flag" ||
13947          test ! -s conftest.err
13948        } && test -s conftest.$ac_objext; then
13949   ac_header_compiler=yes
13950 else
13951   echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13953
13954         ac_header_compiler=no
13955 fi
13956
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
13960
13961 # Is the header present?
13962 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13963 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h.  */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h.  */
13970 #include <termcap.h>
13971 _ACEOF
13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
13973 case "(($ac_try" in
13974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975   *) ac_try_echo=$ac_try;;
13976 esac
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13979   ac_status=$?
13980   grep -v '^ *+' conftest.er1 >conftest.err
13981   rm -f conftest.er1
13982   cat conftest.err >&5
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); } >/dev/null && {
13985          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13986          test ! -s conftest.err
13987        }; then
13988   ac_header_preproc=yes
13989 else
13990   echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13992
13993   ac_header_preproc=no
13994 fi
13995
13996 rm -f conftest.err conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
13999
14000 # So?  What about this header?
14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14002   yes:no: )
14003     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14004 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14005     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14006 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14007     ac_header_preproc=yes
14008     ;;
14009   no:yes:* )
14010     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14011 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14012     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14013 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14014     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14015 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14016     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14017 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14018     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14019 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14020     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14021 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14022
14023     ;;
14024 esac
14025 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14026 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14027 if test "${ac_cv_header_termcap_h+set}" = set; then
14028   echo $ECHO_N "(cached) $ECHO_C" >&6
14029 else
14030   ac_cv_header_termcap_h=$ac_header_preproc
14031 fi
14032 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14033 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14034
14035 fi
14036 if test $ac_cv_header_termcap_h = yes; then
14037    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14038 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14039 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   ac_check_lib_save_LIBS=$LIBS
14043 LIBS="-ltermcap  $LIBS"
14044 cat >conftest.$ac_ext <<_ACEOF
14045 /* confdefs.h.  */
14046 _ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h.  */
14050
14051 /* Override any GCC internal prototype to avoid an error.
14052    Use char because int might match the return type of a GCC
14053    builtin and then its argument prototype would still apply.  */
14054 #ifdef __cplusplus
14055 extern "C"
14056 #endif
14057 char tgetent ();
14058 int
14059 main ()
14060 {
14061 return tgetent ();
14062   ;
14063   return 0;
14064 }
14065 _ACEOF
14066 rm -f conftest.$ac_objext conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070   *) ac_try_echo=$ac_try;;
14071 esac
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073   (eval "$ac_link") 2>conftest.er1
14074   ac_status=$?
14075   grep -v '^ *+' conftest.er1 >conftest.err
14076   rm -f conftest.er1
14077   cat conftest.err >&5
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); } && {
14080          test -z "$ac_c_werror_flag" ||
14081          test ! -s conftest.err
14082        } && test -s conftest$ac_exeext &&
14083        $as_test_x conftest$ac_exeext; then
14084   ac_cv_lib_termcap_tgetent=yes
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089         ac_cv_lib_termcap_tgetent=no
14090 fi
14091
14092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14093       conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14095 fi
14096 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14097 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14098 if test $ac_cv_lib_termcap_tgetent = yes; then
14099    CONS_LIBS="-ltermcap"
14100          CONS_OBJ="conio.o"
14101          CONS_SRC="conio.c"
14102          got_conio="yes"
14103          support_readline=no
14104
14105 cat >>confdefs.h <<\_ACEOF
14106 #define HAVE_CONIO 1
14107 _ACEOF
14108
14109
14110 else
14111    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14112 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14113 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14114   echo $ECHO_N "(cached) $ECHO_C" >&6
14115 else
14116   ac_check_lib_save_LIBS=$LIBS
14117 LIBS="-lncurses  $LIBS"
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h.  */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h.  */
14124
14125 /* Override any GCC internal prototype to avoid an error.
14126    Use char because int might match the return type of a GCC
14127    builtin and then its argument prototype would still apply.  */
14128 #ifdef __cplusplus
14129 extern "C"
14130 #endif
14131 char tgetent ();
14132 int
14133 main ()
14134 {
14135 return tgetent ();
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (ac_try="$ac_link"
14142 case "(($ac_try" in
14143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144   *) ac_try_echo=$ac_try;;
14145 esac
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147   (eval "$ac_link") 2>conftest.er1
14148   ac_status=$?
14149   grep -v '^ *+' conftest.er1 >conftest.err
14150   rm -f conftest.er1
14151   cat conftest.err >&5
14152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153   (exit $ac_status); } && {
14154          test -z "$ac_c_werror_flag" ||
14155          test ! -s conftest.err
14156        } && test -s conftest$ac_exeext &&
14157        $as_test_x conftest$ac_exeext; then
14158   ac_cv_lib_ncurses_tgetent=yes
14159 else
14160   echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163         ac_cv_lib_ncurses_tgetent=no
14164 fi
14165
14166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14167       conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14169 fi
14170 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14171 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14172 if test $ac_cv_lib_ncurses_tgetent = yes; then
14173    CONS_LIBS="-lncurses"
14174            CONS_OBJ="conio.o"
14175            CONS_SRC="conio.c"
14176            got_conio="yes"
14177            support_readline=no
14178
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_CONIO 1
14181 _ACEOF
14182
14183
14184 fi
14185
14186
14187 fi
14188
14189
14190 else
14191
14192
14193 for ac_header in curses.h
14194 do
14195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14197   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 fi
14202 ac_res=`eval echo '${'$as_ac_Header'}'`
14203                { echo "$as_me:$LINENO: result: $ac_res" >&5
14204 echo "${ECHO_T}$ac_res" >&6; }
14205 else
14206   # Is the header compilable?
14207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14209 cat >conftest.$ac_ext <<_ACEOF
14210 /* confdefs.h.  */
14211 _ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h.  */
14215 $ac_includes_default
14216 #include <$ac_header>
14217 _ACEOF
14218 rm -f conftest.$ac_objext
14219 if { (ac_try="$ac_compile"
14220 case "(($ac_try" in
14221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222   *) ac_try_echo=$ac_try;;
14223 esac
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225   (eval "$ac_compile") 2>conftest.er1
14226   ac_status=$?
14227   grep -v '^ *+' conftest.er1 >conftest.err
14228   rm -f conftest.er1
14229   cat conftest.err >&5
14230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231   (exit $ac_status); } && {
14232          test -z "$ac_c_werror_flag" ||
14233          test ! -s conftest.err
14234        } && test -s conftest.$ac_objext; then
14235   ac_header_compiler=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240         ac_header_compiler=no
14241 fi
14242
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14245 echo "${ECHO_T}$ac_header_compiler" >&6; }
14246
14247 # Is the header present?
14248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14250 cat >conftest.$ac_ext <<_ACEOF
14251 /* confdefs.h.  */
14252 _ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h.  */
14256 #include <$ac_header>
14257 _ACEOF
14258 if { (ac_try="$ac_cpp conftest.$ac_ext"
14259 case "(($ac_try" in
14260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261   *) ac_try_echo=$ac_try;;
14262 esac
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14265   ac_status=$?
14266   grep -v '^ *+' conftest.er1 >conftest.err
14267   rm -f conftest.er1
14268   cat conftest.err >&5
14269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270   (exit $ac_status); } >/dev/null && {
14271          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14272          test ! -s conftest.err
14273        }; then
14274   ac_header_preproc=yes
14275 else
14276   echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14278
14279   ac_header_preproc=no
14280 fi
14281
14282 rm -f conftest.err conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14284 echo "${ECHO_T}$ac_header_preproc" >&6; }
14285
14286 # So?  What about this header?
14287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14288   yes:no: )
14289     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14293     ac_header_preproc=yes
14294     ;;
14295   no:yes:* )
14296     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14300     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14302     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14303 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14304     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14306     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14308
14309     ;;
14310 esac
14311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14314   echo $ECHO_N "(cached) $ECHO_C" >&6
14315 else
14316   eval "$as_ac_Header=\$ac_header_preproc"
14317 fi
14318 ac_res=`eval echo '${'$as_ac_Header'}'`
14319                { echo "$as_me:$LINENO: result: $ac_res" >&5
14320 echo "${ECHO_T}$ac_res" >&6; }
14321
14322 fi
14323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14324   cat >>confdefs.h <<_ACEOF
14325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14326 _ACEOF
14327
14328 fi
14329
14330 done
14331
14332          { echo "$as_me:$LINENO: checking for term.h" >&5
14333 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14334 if test "${ac_cv_header_term_h+set}" = set; then
14335   echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337   cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 #if HAVE_CURSES_H
14344 #include <curses.h>
14345 #endif
14346
14347
14348 #include <term.h>
14349 _ACEOF
14350 rm -f conftest.$ac_objext
14351 if { (ac_try="$ac_compile"
14352 case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_compile") 2>conftest.er1
14358   ac_status=$?
14359   grep -v '^ *+' conftest.er1 >conftest.err
14360   rm -f conftest.er1
14361   cat conftest.err >&5
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); } && {
14364          test -z "$ac_c_werror_flag" ||
14365          test ! -s conftest.err
14366        } && test -s conftest.$ac_objext; then
14367   ac_cv_header_term_h=yes
14368 else
14369   echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372         ac_cv_header_term_h=no
14373 fi
14374
14375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14376 fi
14377 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14378 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14379 if test $ac_cv_header_term_h = yes; then
14380    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14381 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14382 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14383   echo $ECHO_N "(cached) $ECHO_C" >&6
14384 else
14385   ac_check_lib_save_LIBS=$LIBS
14386 LIBS="-lcurses  $LIBS"
14387 cat >conftest.$ac_ext <<_ACEOF
14388 /* confdefs.h.  */
14389 _ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h.  */
14393
14394 /* Override any GCC internal prototype to avoid an error.
14395    Use char because int might match the return type of a GCC
14396    builtin and then its argument prototype would still apply.  */
14397 #ifdef __cplusplus
14398 extern "C"
14399 #endif
14400 char tgetent ();
14401 int
14402 main ()
14403 {
14404 return tgetent ();
14405   ;
14406   return 0;
14407 }
14408 _ACEOF
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413   *) ac_try_echo=$ac_try;;
14414 esac
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416   (eval "$ac_link") 2>conftest.er1
14417   ac_status=$?
14418   grep -v '^ *+' conftest.er1 >conftest.err
14419   rm -f conftest.er1
14420   cat conftest.err >&5
14421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422   (exit $ac_status); } && {
14423          test -z "$ac_c_werror_flag" ||
14424          test ! -s conftest.err
14425        } && test -s conftest$ac_exeext &&
14426        $as_test_x conftest$ac_exeext; then
14427   ac_cv_lib_curses_tgetent=yes
14428 else
14429   echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14431
14432         ac_cv_lib_curses_tgetent=no
14433 fi
14434
14435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14436       conftest$ac_exeext conftest.$ac_ext
14437 LIBS=$ac_check_lib_save_LIBS
14438 fi
14439 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14440 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14441 if test $ac_cv_lib_curses_tgetent = yes; then
14442    CONS_LIBS="-lcurses"
14443                    CONS_OBJ="conio.o"
14444                    CONS_SRC="conio.c"
14445                    got_conio="yes"
14446                    support_readline=no
14447
14448 cat >>confdefs.h <<\_ACEOF
14449 #define HAVE_CONIO 1
14450 _ACEOF
14451
14452
14453 fi
14454
14455
14456 else
14457    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14458 fi
14459
14460
14461
14462 fi
14463
14464
14465 fi
14466
14467
14468 # ---------------------------------------------------
14469 # Check for readline support/directory (default off)
14470 # ---------------------------------------------------
14471 # this allows you to turn it completely off
14472 # Check whether --enable-readline was given.
14473 if test "${enable_readline+set}" = set; then
14474   enableval=$enable_readline; if test x$enableval = xno; then
14475     support_readline=no
14476   fi
14477 fi
14478
14479
14480 got_readline="no"
14481 READLINE_SRC=
14482 if test x$support_readline = xyes; then
14483
14484 # Check whether --with-readline was given.
14485 if test "${with_readline+set}" = set; then
14486   withval=$with_readline;
14487         case "$with_readline" in
14488         no) : ;;
14489         yes|*)
14490           if test -f ${with_readline}/readline.h; then
14491              CONS_INC="-I${with_readline}"
14492              CONS_LDFLAGS="-L$with_readline"
14493           elif test -f ${with_readline}/include/readline/readline.h; then
14494              CONS_INC="-I${with_readline}/include/readline"
14495              CONS_LDFLAGS="-L${with_readline}/lib"
14496              with_readline="${with_readline}/include/readline"
14497           else
14498              with_readline="/usr/include/readline"
14499           fi
14500           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14503 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14505   echo $ECHO_N "(cached) $ECHO_C" >&6
14506 fi
14507 ac_res=`eval echo '${'$as_ac_Header'}'`
14508                { echo "$as_me:$LINENO: result: $ac_res" >&5
14509 echo "${ECHO_T}$ac_res" >&6; }
14510 else
14511   # Is the header compilable?
14512 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14513 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14515 /* confdefs.h.  */
14516 _ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h.  */
14520 $ac_includes_default
14521 #include <${with_readline}/readline.h>
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (ac_try="$ac_compile"
14525 case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_compile") 2>conftest.er1
14531   ac_status=$?
14532   grep -v '^ *+' conftest.er1 >conftest.err
14533   rm -f conftest.er1
14534   cat conftest.err >&5
14535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536   (exit $ac_status); } && {
14537          test -z "$ac_c_werror_flag" ||
14538          test ! -s conftest.err
14539        } && test -s conftest.$ac_objext; then
14540   ac_header_compiler=yes
14541 else
14542   echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545         ac_header_compiler=no
14546 fi
14547
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550 echo "${ECHO_T}$ac_header_compiler" >&6; }
14551
14552 # Is the header present?
14553 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14554 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14555 cat >conftest.$ac_ext <<_ACEOF
14556 /* confdefs.h.  */
14557 _ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h.  */
14561 #include <${with_readline}/readline.h>
14562 _ACEOF
14563 if { (ac_try="$ac_cpp conftest.$ac_ext"
14564 case "(($ac_try" in
14565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566   *) ac_try_echo=$ac_try;;
14567 esac
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14570   ac_status=$?
14571   grep -v '^ *+' conftest.er1 >conftest.err
14572   rm -f conftest.er1
14573   cat conftest.err >&5
14574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575   (exit $ac_status); } >/dev/null && {
14576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14577          test ! -s conftest.err
14578        }; then
14579   ac_header_preproc=yes
14580 else
14581   echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14583
14584   ac_header_preproc=no
14585 fi
14586
14587 rm -f conftest.err conftest.$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14589 echo "${ECHO_T}$ac_header_preproc" >&6; }
14590
14591 # So?  What about this header?
14592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14593   yes:no: )
14594     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14595 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14596     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14597 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14598     ac_header_preproc=yes
14599     ;;
14600   no:yes:* )
14601     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14602 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14603     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14604 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14605     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14606 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14607     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14608 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14609     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14610 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14611     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14613
14614     ;;
14615 esac
14616 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14617 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14619   echo $ECHO_N "(cached) $ECHO_C" >&6
14620 else
14621   eval "$as_ac_Header=\$ac_header_preproc"
14622 fi
14623 ac_res=`eval echo '${'$as_ac_Header'}'`
14624                { echo "$as_me:$LINENO: result: $ac_res" >&5
14625 echo "${ECHO_T}$ac_res" >&6; }
14626
14627 fi
14628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14629
14630 cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_READLINE 1
14632 _ACEOF
14633
14634                CONS_LIBS="-lreadline -lhistory -ltermcap"
14635                got_readline="yes"
14636
14637 else
14638    echo " "
14639                echo "readline.h not found. readline turned off ..."
14640                echo " "
14641
14642
14643 fi
14644
14645
14646           ;;
14647         esac
14648
14649 else
14650
14651        # check for standard readline library
14652        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14653   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14654 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14655 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14656   echo $ECHO_N "(cached) $ECHO_C" >&6
14657 fi
14658 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14659 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14660 else
14661   # Is the header compilable?
14662 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14663 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14665 /* confdefs.h.  */
14666 _ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h.  */
14670 $ac_includes_default
14671 #include </usr/include/readline/readline.h>
14672 _ACEOF
14673 rm -f conftest.$ac_objext
14674 if { (ac_try="$ac_compile"
14675 case "(($ac_try" in
14676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677   *) ac_try_echo=$ac_try;;
14678 esac
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680   (eval "$ac_compile") 2>conftest.er1
14681   ac_status=$?
14682   grep -v '^ *+' conftest.er1 >conftest.err
14683   rm -f conftest.er1
14684   cat conftest.err >&5
14685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686   (exit $ac_status); } && {
14687          test -z "$ac_c_werror_flag" ||
14688          test ! -s conftest.err
14689        } && test -s conftest.$ac_objext; then
14690   ac_header_compiler=yes
14691 else
14692   echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14694
14695         ac_header_compiler=no
14696 fi
14697
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14700 echo "${ECHO_T}$ac_header_compiler" >&6; }
14701
14702 # Is the header present?
14703 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14704 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14705 cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h.  */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h.  */
14711 #include </usr/include/readline/readline.h>
14712 _ACEOF
14713 if { (ac_try="$ac_cpp conftest.$ac_ext"
14714 case "(($ac_try" in
14715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716   *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14720   ac_status=$?
14721   grep -v '^ *+' conftest.er1 >conftest.err
14722   rm -f conftest.er1
14723   cat conftest.err >&5
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); } >/dev/null && {
14726          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14727          test ! -s conftest.err
14728        }; then
14729   ac_header_preproc=yes
14730 else
14731   echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734   ac_header_preproc=no
14735 fi
14736
14737 rm -f conftest.err conftest.$ac_ext
14738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14739 echo "${ECHO_T}$ac_header_preproc" >&6; }
14740
14741 # So?  What about this header?
14742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14743   yes:no: )
14744     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14745 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14746     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14747 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14748     ac_header_preproc=yes
14749     ;;
14750   no:yes:* )
14751     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14752 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14753     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14754 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14755     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14756 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14757     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14758 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14759     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14760 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14761     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14763
14764     ;;
14765 esac
14766 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14767 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14768 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14769   echo $ECHO_N "(cached) $ECHO_C" >&6
14770 else
14771   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14772 fi
14773 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14774 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14775
14776 fi
14777 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14778
14779 cat >>confdefs.h <<\_ACEOF
14780 #define HAVE_READLINE 1
14781 _ACEOF
14782
14783            got_readline="yes"
14784            CONS_INC="-I/usr/include/readline"
14785            CONS_LIBS="-lreadline -ltermcap"
14786
14787 else
14788
14789            # Did not find standard library, so try Bacula's default
14790             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14792   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14793 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795   echo $ECHO_N "(cached) $ECHO_C" >&6
14796 fi
14797 ac_res=`eval echo '${'$as_ac_Header'}'`
14798                { echo "$as_me:$LINENO: result: $ac_res" >&5
14799 echo "${ECHO_T}$ac_res" >&6; }
14800 else
14801   # Is the header compilable?
14802 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14803 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14804 cat >conftest.$ac_ext <<_ACEOF
14805 /* confdefs.h.  */
14806 _ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h.  */
14810 $ac_includes_default
14811 #include <${TOP_DIR}/depkgs/readline/readline.h>
14812 _ACEOF
14813 rm -f conftest.$ac_objext
14814 if { (ac_try="$ac_compile"
14815 case "(($ac_try" in
14816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817   *) ac_try_echo=$ac_try;;
14818 esac
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820   (eval "$ac_compile") 2>conftest.er1
14821   ac_status=$?
14822   grep -v '^ *+' conftest.er1 >conftest.err
14823   rm -f conftest.er1
14824   cat conftest.err >&5
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); } && {
14827          test -z "$ac_c_werror_flag" ||
14828          test ! -s conftest.err
14829        } && test -s conftest.$ac_objext; then
14830   ac_header_compiler=yes
14831 else
14832   echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14834
14835         ac_header_compiler=no
14836 fi
14837
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840 echo "${ECHO_T}$ac_header_compiler" >&6; }
14841
14842 # Is the header present?
14843 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14844 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14846 /* confdefs.h.  */
14847 _ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h.  */
14851 #include <${TOP_DIR}/depkgs/readline/readline.h>
14852 _ACEOF
14853 if { (ac_try="$ac_cpp conftest.$ac_ext"
14854 case "(($ac_try" in
14855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856   *) ac_try_echo=$ac_try;;
14857 esac
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14860   ac_status=$?
14861   grep -v '^ *+' conftest.er1 >conftest.err
14862   rm -f conftest.er1
14863   cat conftest.err >&5
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); } >/dev/null && {
14866          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14867          test ! -s conftest.err
14868        }; then
14869   ac_header_preproc=yes
14870 else
14871   echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14873
14874   ac_header_preproc=no
14875 fi
14876
14877 rm -f conftest.err conftest.$ac_ext
14878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14879 echo "${ECHO_T}$ac_header_preproc" >&6; }
14880
14881 # So?  What about this header?
14882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14883   yes:no: )
14884     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14885 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14886     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14887 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14888     ac_header_preproc=yes
14889     ;;
14890   no:yes:* )
14891     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14892 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14893     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14894 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14896 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14897     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14898 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14899     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14900 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14901     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14903
14904     ;;
14905 esac
14906 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14907 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14909   echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911   eval "$as_ac_Header=\$ac_header_preproc"
14912 fi
14913 ac_res=`eval echo '${'$as_ac_Header'}'`
14914                { echo "$as_me:$LINENO: result: $ac_res" >&5
14915 echo "${ECHO_T}$ac_res" >&6; }
14916
14917 fi
14918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14919
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_READLINE 1
14922 _ACEOF
14923
14924                  got_readline="yes"
14925                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14926                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14927                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14928                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14929
14930 else
14931    echo " "
14932                 echo "readline.h not found. readline turned off ..."
14933                 echo " "
14934
14935
14936 fi
14937
14938
14939
14940
14941 fi
14942
14943
14944
14945
14946 fi
14947
14948 fi
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959 # Minimal stuff for readline Makefile configuration
14960 MAKE_SHELL=/bin/sh
14961
14962 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14963 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14964 if test "${ac_cv_header_stat_broken+set}" = set; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967   cat >conftest.$ac_ext <<_ACEOF
14968 /* confdefs.h.  */
14969 _ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h.  */
14973 #include <sys/types.h>
14974 #include <sys/stat.h>
14975
14976 #if defined S_ISBLK && defined S_IFDIR
14977 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14978 #endif
14979
14980 #if defined S_ISBLK && defined S_IFCHR
14981 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14982 #endif
14983
14984 #if defined S_ISLNK && defined S_IFREG
14985 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14986 #endif
14987
14988 #if defined S_ISSOCK && defined S_IFREG
14989 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14990 #endif
14991
14992 _ACEOF
14993 rm -f conftest.$ac_objext
14994 if { (ac_try="$ac_compile"
14995 case "(($ac_try" in
14996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997   *) ac_try_echo=$ac_try;;
14998 esac
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000   (eval "$ac_compile") 2>conftest.er1
15001   ac_status=$?
15002   grep -v '^ *+' conftest.er1 >conftest.err
15003   rm -f conftest.er1
15004   cat conftest.err >&5
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); } && {
15007          test -z "$ac_c_werror_flag" ||
15008          test ! -s conftest.err
15009        } && test -s conftest.$ac_objext; then
15010   ac_cv_header_stat_broken=no
15011 else
15012   echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15014
15015         ac_cv_header_stat_broken=yes
15016 fi
15017
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15019 fi
15020 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15021 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15022 if test $ac_cv_header_stat_broken = yes; then
15023
15024 cat >>confdefs.h <<\_ACEOF
15025 #define STAT_MACROS_BROKEN 1
15026 _ACEOF
15027
15028 fi
15029
15030
15031
15032
15033
15034
15035 ac_header_dirent=no
15036 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15037   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15038 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15039 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h.  */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h.  */
15049 #include <sys/types.h>
15050 #include <$ac_hdr>
15051
15052 int
15053 main ()
15054 {
15055 if ((DIR *) 0)
15056 return 0;
15057   ;
15058   return 0;
15059 }
15060 _ACEOF
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065   *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068   (eval "$ac_compile") 2>conftest.er1
15069   ac_status=$?
15070   grep -v '^ *+' conftest.er1 >conftest.err
15071   rm -f conftest.er1
15072   cat conftest.err >&5
15073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074   (exit $ac_status); } && {
15075          test -z "$ac_c_werror_flag" ||
15076          test ! -s conftest.err
15077        } && test -s conftest.$ac_objext; then
15078   eval "$as_ac_Header=yes"
15079 else
15080   echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15082
15083         eval "$as_ac_Header=no"
15084 fi
15085
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 fi
15088 ac_res=`eval echo '${'$as_ac_Header'}'`
15089                { echo "$as_me:$LINENO: result: $ac_res" >&5
15090 echo "${ECHO_T}$ac_res" >&6; }
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092   cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15094 _ACEOF
15095
15096 ac_header_dirent=$ac_hdr; break
15097 fi
15098
15099 done
15100 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15101 if test $ac_header_dirent = dirent.h; then
15102   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15103 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15104 if test "${ac_cv_search_opendir+set}" = set; then
15105   echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107   ac_func_search_save_LIBS=$LIBS
15108 cat >conftest.$ac_ext <<_ACEOF
15109 /* confdefs.h.  */
15110 _ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h.  */
15114
15115 /* Override any GCC internal prototype to avoid an error.
15116    Use char because int might match the return type of a GCC
15117    builtin and then its argument prototype would still apply.  */
15118 #ifdef __cplusplus
15119 extern "C"
15120 #endif
15121 char opendir ();
15122 int
15123 main ()
15124 {
15125 return opendir ();
15126   ;
15127   return 0;
15128 }
15129 _ACEOF
15130 for ac_lib in '' dir; do
15131   if test -z "$ac_lib"; then
15132     ac_res="none required"
15133   else
15134     ac_res=-l$ac_lib
15135     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15136   fi
15137   rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141   *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144   (eval "$ac_link") 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } && {
15151          test -z "$ac_c_werror_flag" ||
15152          test ! -s conftest.err
15153        } && test -s conftest$ac_exeext &&
15154        $as_test_x conftest$ac_exeext; then
15155   ac_cv_search_opendir=$ac_res
15156 else
15157   echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15159
15160
15161 fi
15162
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15164       conftest$ac_exeext
15165   if test "${ac_cv_search_opendir+set}" = set; then
15166   break
15167 fi
15168 done
15169 if test "${ac_cv_search_opendir+set}" = set; then
15170   :
15171 else
15172   ac_cv_search_opendir=no
15173 fi
15174 rm conftest.$ac_ext
15175 LIBS=$ac_func_search_save_LIBS
15176 fi
15177 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15178 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15179 ac_res=$ac_cv_search_opendir
15180 if test "$ac_res" != no; then
15181   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15182
15183 fi
15184
15185 else
15186   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15187 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15188 if test "${ac_cv_search_opendir+set}" = set; then
15189   echo $ECHO_N "(cached) $ECHO_C" >&6
15190 else
15191   ac_func_search_save_LIBS=$LIBS
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h.  */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h.  */
15198
15199 /* Override any GCC internal prototype to avoid an error.
15200    Use char because int might match the return type of a GCC
15201    builtin and then its argument prototype would still apply.  */
15202 #ifdef __cplusplus
15203 extern "C"
15204 #endif
15205 char opendir ();
15206 int
15207 main ()
15208 {
15209 return opendir ();
15210   ;
15211   return 0;
15212 }
15213 _ACEOF
15214 for ac_lib in '' x; do
15215   if test -z "$ac_lib"; then
15216     ac_res="none required"
15217   else
15218     ac_res=-l$ac_lib
15219     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15220   fi
15221   rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (ac_try="$ac_link"
15223 case "(($ac_try" in
15224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225   *) ac_try_echo=$ac_try;;
15226 esac
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228   (eval "$ac_link") 2>conftest.er1
15229   ac_status=$?
15230   grep -v '^ *+' conftest.er1 >conftest.err
15231   rm -f conftest.er1
15232   cat conftest.err >&5
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); } && {
15235          test -z "$ac_c_werror_flag" ||
15236          test ! -s conftest.err
15237        } && test -s conftest$ac_exeext &&
15238        $as_test_x conftest$ac_exeext; then
15239   ac_cv_search_opendir=$ac_res
15240 else
15241   echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15243
15244
15245 fi
15246
15247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248       conftest$ac_exeext
15249   if test "${ac_cv_search_opendir+set}" = set; then
15250   break
15251 fi
15252 done
15253 if test "${ac_cv_search_opendir+set}" = set; then
15254   :
15255 else
15256   ac_cv_search_opendir=no
15257 fi
15258 rm conftest.$ac_ext
15259 LIBS=$ac_func_search_save_LIBS
15260 fi
15261 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15262 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15263 ac_res=$ac_cv_search_opendir
15264 if test "$ac_res" != no; then
15265   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15266
15267 fi
15268
15269 fi
15270
15271
15272
15273
15274
15275
15276
15277
15278 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15279 do
15280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15294 #define $ac_func innocuous_$ac_func
15295
15296 /* System header to define __stub macros and hopefully few prototypes,
15297     which can conflict with char $ac_func (); below.
15298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15299     <limits.h> exists even on freestanding compilers.  */
15300
15301 #ifdef __STDC__
15302 # include <limits.h>
15303 #else
15304 # include <assert.h>
15305 #endif
15306
15307 #undef $ac_func
15308
15309 /* Override any GCC internal prototype to avoid an error.
15310    Use char because int might match the return type of a GCC
15311    builtin and then its argument prototype would still apply.  */
15312 #ifdef __cplusplus
15313 extern "C"
15314 #endif
15315 char $ac_func ();
15316 /* The GNU C library defines this for functions which it implements
15317     to always fail with ENOSYS.  Some functions are actually named
15318     something starting with __ and the normal name is an alias.  */
15319 #if defined __stub_$ac_func || defined __stub___$ac_func
15320 choke me
15321 #endif
15322
15323 int
15324 main ()
15325 {
15326 return $ac_func ();
15327   ;
15328   return 0;
15329 }
15330 _ACEOF
15331 rm -f conftest.$ac_objext conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_link") 2>conftest.er1
15339   ac_status=$?
15340   grep -v '^ *+' conftest.er1 >conftest.err
15341   rm -f conftest.er1
15342   cat conftest.err >&5
15343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344   (exit $ac_status); } && {
15345          test -z "$ac_c_werror_flag" ||
15346          test ! -s conftest.err
15347        } && test -s conftest$ac_exeext &&
15348        $as_test_x conftest$ac_exeext; then
15349   eval "$as_ac_var=yes"
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354         eval "$as_ac_var=no"
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15358       conftest$ac_exeext conftest.$ac_ext
15359 fi
15360 ac_res=`eval echo '${'$as_ac_var'}'`
15361                { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364   cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15366 _ACEOF
15367
15368 fi
15369 done
15370
15371
15372
15373 for ac_func in nanosleep nl_langinfo
15374 do
15375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15389 #define $ac_func innocuous_$ac_func
15390
15391 /* System header to define __stub macros and hopefully few prototypes,
15392     which can conflict with char $ac_func (); below.
15393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394     <limits.h> exists even on freestanding compilers.  */
15395
15396 #ifdef __STDC__
15397 # include <limits.h>
15398 #else
15399 # include <assert.h>
15400 #endif
15401
15402 #undef $ac_func
15403
15404 /* Override any GCC internal prototype to avoid an error.
15405    Use char because int might match the return type of a GCC
15406    builtin and then its argument prototype would still apply.  */
15407 #ifdef __cplusplus
15408 extern "C"
15409 #endif
15410 char $ac_func ();
15411 /* The GNU C library defines this for functions which it implements
15412     to always fail with ENOSYS.  Some functions are actually named
15413     something starting with __ and the normal name is an alias.  */
15414 #if defined __stub_$ac_func || defined __stub___$ac_func
15415 choke me
15416 #endif
15417
15418 int
15419 main ()
15420 {
15421 return $ac_func ();
15422   ;
15423   return 0;
15424 }
15425 _ACEOF
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430   *) ac_try_echo=$ac_try;;
15431 esac
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433   (eval "$ac_link") 2>conftest.er1
15434   ac_status=$?
15435   grep -v '^ *+' conftest.er1 >conftest.err
15436   rm -f conftest.er1
15437   cat conftest.err >&5
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); } && {
15440          test -z "$ac_c_werror_flag" ||
15441          test ! -s conftest.err
15442        } && test -s conftest$ac_exeext &&
15443        $as_test_x conftest$ac_exeext; then
15444   eval "$as_ac_var=yes"
15445 else
15446   echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15448
15449         eval "$as_ac_var=no"
15450 fi
15451
15452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15453       conftest$ac_exeext conftest.$ac_ext
15454 fi
15455 ac_res=`eval echo '${'$as_ac_var'}'`
15456                { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15458 if test `eval echo '${'$as_ac_var'}'` = yes; then
15459   cat >>confdefs.h <<_ACEOF
15460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15461 _ACEOF
15462
15463 fi
15464 done
15465
15466
15467 for ac_header in varargs.h
15468 do
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474   echo $ECHO_N "(cached) $ECHO_C" >&6
15475 fi
15476 ac_res=`eval echo '${'$as_ac_Header'}'`
15477                { echo "$as_me:$LINENO: result: $ac_res" >&5
15478 echo "${ECHO_T}$ac_res" >&6; }
15479 else
15480   # Is the header compilable?
15481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15484 /* confdefs.h.  */
15485 _ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h.  */
15489 $ac_includes_default
15490 #include <$ac_header>
15491 _ACEOF
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496   *) ac_try_echo=$ac_try;;
15497 esac
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499   (eval "$ac_compile") 2>conftest.er1
15500   ac_status=$?
15501   grep -v '^ *+' conftest.er1 >conftest.err
15502   rm -f conftest.er1
15503   cat conftest.err >&5
15504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505   (exit $ac_status); } && {
15506          test -z "$ac_c_werror_flag" ||
15507          test ! -s conftest.err
15508        } && test -s conftest.$ac_objext; then
15509   ac_header_compiler=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514         ac_header_compiler=no
15515 fi
15516
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15519 echo "${ECHO_T}$ac_header_compiler" >&6; }
15520
15521 # Is the header present?
15522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15524 cat >conftest.$ac_ext <<_ACEOF
15525 /* confdefs.h.  */
15526 _ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h.  */
15530 #include <$ac_header>
15531 _ACEOF
15532 if { (ac_try="$ac_cpp conftest.$ac_ext"
15533 case "(($ac_try" in
15534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535   *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15539   ac_status=$?
15540   grep -v '^ *+' conftest.er1 >conftest.err
15541   rm -f conftest.er1
15542   cat conftest.err >&5
15543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544   (exit $ac_status); } >/dev/null && {
15545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15546          test ! -s conftest.err
15547        }; then
15548   ac_header_preproc=yes
15549 else
15550   echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15552
15553   ac_header_preproc=no
15554 fi
15555
15556 rm -f conftest.err conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6; }
15559
15560 # So?  What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15562   yes:no: )
15563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567     ac_header_preproc=yes
15568     ;;
15569   no:yes:* )
15570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15582
15583     ;;
15584 esac
15585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15588   echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590   eval "$as_ac_Header=\$ac_header_preproc"
15591 fi
15592 ac_res=`eval echo '${'$as_ac_Header'}'`
15593                { echo "$as_me:$LINENO: result: $ac_res" >&5
15594 echo "${ECHO_T}$ac_res" >&6; }
15595
15596 fi
15597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15598   cat >>confdefs.h <<_ACEOF
15599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15600 _ACEOF
15601
15602 fi
15603
15604 done
15605
15606
15607 # End of readline/conio stuff
15608 # -----------------------------------------------------------------------
15609
15610 # -----------------------------------------------------------------------
15611 #  Check for Python support
15612 #
15613 { echo "$as_me:$LINENO: checking for Python support" >&5
15614 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15615
15616 # Check whether --with-python was given.
15617 if test "${with_python+set}" = set; then
15618   withval=$with_python;
15619   PYTHON_INCDIR=
15620   PYTHON_LIBS=
15621   if test "$withval" != "no"; then
15622      if test "$withval" = "yes"; then
15623         for python_root in /usr /usr/local /usr/sfw; do
15624           for ver in python2.2 python2.3 python2.4 python2.5; do
15625              if test -f $python_root/include/${ver}/Python.h; then
15626                 PYTHON_INCDIR=-I$python_root/include/${ver}
15627                 if test -d $python_root/lib64/${ver}/config; then
15628                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15629                 else
15630                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15631                 fi
15632                 break
15633              fi
15634           done
15635         done
15636         if test x$PYTHON_INCDIR = x; then
15637           if test -f $prefix/include/Python.h; then
15638              PYTHON_INCDIR=-I$prefix/include
15639              if test -d $prefix/lib64/config; then
15640                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15641              else
15642                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15643              fi
15644           else
15645            { echo "$as_me:$LINENO: result: no" >&5
15646 echo "${ECHO_T}no" >&6; }
15647            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15648 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15649    { (exit 1); exit 1; }; }
15650           fi
15651         fi
15652      else
15653         if test -f $withval/Python.h; then
15654            PYTHON_INCDIR=-I$withval
15655            PYTHON_LIBS="-L$withval/config -lpython"
15656         elif test -f $withval/include/Python.h; then
15657            PYTHON_INCDIR=-I$withval/include
15658            if test -d $withval/lib64/config; then
15659               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15660            else
15661               PYTHON_LIBS="-L$withval/lib/config -lpython"
15662            fi
15663         elif test -f $withval/include/python/Python.h; then
15664            PYTHON_INCDIR=-I$withval/include/python
15665            if test -d $withval/lib64/python/config; then
15666               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15667            else
15668               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15669            fi
15670         else
15671            { echo "$as_me:$LINENO: result: no" >&5
15672 echo "${ECHO_T}no" >&6; }
15673            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15674 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15675    { (exit 1); exit 1; }; }
15676         fi
15677      fi
15678      cat >>confdefs.h <<\_ACEOF
15679 #define HAVE_PYTHON 1
15680 _ACEOF
15681
15682      { echo "$as_me:$LINENO: result: yes" >&5
15683 echo "${ECHO_T}yes" >&6; }
15684      support_python=yes
15685      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15686 echo "$as_me: checking for more Python libs" >&6;}
15687      saved_LIBS="$LIBS"; LIBS=
15688      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15689 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15690 if test "${ac_cv_search_shm_open+set}" = set; then
15691   echo $ECHO_N "(cached) $ECHO_C" >&6
15692 else
15693   ac_func_search_save_LIBS=$LIBS
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h.  */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h.  */
15700
15701 /* Override any GCC internal prototype to avoid an error.
15702    Use char because int might match the return type of a GCC
15703    builtin and then its argument prototype would still apply.  */
15704 #ifdef __cplusplus
15705 extern "C"
15706 #endif
15707 char shm_open ();
15708 int
15709 main ()
15710 {
15711 return shm_open ();
15712   ;
15713   return 0;
15714 }
15715 _ACEOF
15716 for ac_lib in '' rt; do
15717   if test -z "$ac_lib"; then
15718     ac_res="none required"
15719   else
15720     ac_res=-l$ac_lib
15721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15722   fi
15723   rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727   *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730   (eval "$ac_link") 2>conftest.er1
15731   ac_status=$?
15732   grep -v '^ *+' conftest.er1 >conftest.err
15733   rm -f conftest.er1
15734   cat conftest.err >&5
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); } && {
15737          test -z "$ac_c_werror_flag" ||
15738          test ! -s conftest.err
15739        } && test -s conftest$ac_exeext &&
15740        $as_test_x conftest$ac_exeext; then
15741   ac_cv_search_shm_open=$ac_res
15742 else
15743   echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15745
15746
15747 fi
15748
15749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15750       conftest$ac_exeext
15751   if test "${ac_cv_search_shm_open+set}" = set; then
15752   break
15753 fi
15754 done
15755 if test "${ac_cv_search_shm_open+set}" = set; then
15756   :
15757 else
15758   ac_cv_search_shm_open=no
15759 fi
15760 rm conftest.$ac_ext
15761 LIBS=$ac_func_search_save_LIBS
15762 fi
15763 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15764 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15765 ac_res=$ac_cv_search_shm_open
15766 if test "$ac_res" != no; then
15767   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15768
15769 fi
15770
15771
15772 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15773 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15774 if test "${ac_cv_lib_util_openpty+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-lutil  $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785
15786 /* Override any GCC internal prototype to avoid an error.
15787    Use char because int might match the return type of a GCC
15788    builtin and then its argument prototype would still apply.  */
15789 #ifdef __cplusplus
15790 extern "C"
15791 #endif
15792 char openpty ();
15793 int
15794 main ()
15795 {
15796 return openpty ();
15797   ;
15798   return 0;
15799 }
15800 _ACEOF
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (ac_try="$ac_link"
15803 case "(($ac_try" in
15804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805   *) ac_try_echo=$ac_try;;
15806 esac
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808   (eval "$ac_link") 2>conftest.er1
15809   ac_status=$?
15810   grep -v '^ *+' conftest.er1 >conftest.err
15811   rm -f conftest.er1
15812   cat conftest.err >&5
15813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814   (exit $ac_status); } && {
15815          test -z "$ac_c_werror_flag" ||
15816          test ! -s conftest.err
15817        } && test -s conftest$ac_exeext &&
15818        $as_test_x conftest$ac_exeext; then
15819   ac_cv_lib_util_openpty=yes
15820 else
15821   echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15823
15824         ac_cv_lib_util_openpty=no
15825 fi
15826
15827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15828       conftest$ac_exeext conftest.$ac_ext
15829 LIBS=$ac_check_lib_save_LIBS
15830 fi
15831 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15832 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15833 if test $ac_cv_lib_util_openpty = yes; then
15834   cat >>confdefs.h <<_ACEOF
15835 #define HAVE_LIBUTIL 1
15836 _ACEOF
15837
15838   LIBS="-lutil $LIBS"
15839
15840 fi
15841
15842      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15843      LIBS="$saved_LIBS"
15844   else
15845      { echo "$as_me:$LINENO: result: no" >&5
15846 echo "${ECHO_T}no" >&6; }
15847   fi
15848
15849 else
15850
15851   { echo "$as_me:$LINENO: result: no" >&5
15852 echo "${ECHO_T}no" >&6; }
15853
15854 fi
15855
15856
15857
15858
15859 #
15860 # Find where sockets are (especially for Solaris)
15861 # Do this before the TCP Wrappers test since tcp wrappers
15862 # uses the socket library and some linkers are stupid.
15863 #
15864 { echo "$as_me:$LINENO: checking for socket" >&5
15865 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15866 if test "${ac_cv_func_socket+set}" = set; then
15867   echo $ECHO_N "(cached) $ECHO_C" >&6
15868 else
15869   cat >conftest.$ac_ext <<_ACEOF
15870 /* confdefs.h.  */
15871 _ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h.  */
15875 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15876    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15877 #define socket innocuous_socket
15878
15879 /* System header to define __stub macros and hopefully few prototypes,
15880     which can conflict with char socket (); below.
15881     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882     <limits.h> exists even on freestanding compilers.  */
15883
15884 #ifdef __STDC__
15885 # include <limits.h>
15886 #else
15887 # include <assert.h>
15888 #endif
15889
15890 #undef socket
15891
15892 /* Override any GCC internal prototype to avoid an error.
15893    Use char because int might match the return type of a GCC
15894    builtin and then its argument prototype would still apply.  */
15895 #ifdef __cplusplus
15896 extern "C"
15897 #endif
15898 char socket ();
15899 /* The GNU C library defines this for functions which it implements
15900     to always fail with ENOSYS.  Some functions are actually named
15901     something starting with __ and the normal name is an alias.  */
15902 #if defined __stub_socket || defined __stub___socket
15903 choke me
15904 #endif
15905
15906 int
15907 main ()
15908 {
15909 return socket ();
15910   ;
15911   return 0;
15912 }
15913 _ACEOF
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (ac_try="$ac_link"
15916 case "(($ac_try" in
15917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918   *) ac_try_echo=$ac_try;;
15919 esac
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921   (eval "$ac_link") 2>conftest.er1
15922   ac_status=$?
15923   grep -v '^ *+' conftest.er1 >conftest.err
15924   rm -f conftest.er1
15925   cat conftest.err >&5
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); } && {
15928          test -z "$ac_c_werror_flag" ||
15929          test ! -s conftest.err
15930        } && test -s conftest$ac_exeext &&
15931        $as_test_x conftest$ac_exeext; then
15932   ac_cv_func_socket=yes
15933 else
15934   echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15936
15937         ac_cv_func_socket=no
15938 fi
15939
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941       conftest$ac_exeext conftest.$ac_ext
15942 fi
15943 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15944 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15945 if test $ac_cv_func_socket = yes; then
15946   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15947 echo "${ECHO_T}using libc's socket" >&6; }
15948 else
15949
15950 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15951 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15952 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955   ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lxnet  $LIBS"
15957 cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h.  */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h.  */
15963
15964 /* Override any GCC internal prototype to avoid an error.
15965    Use char because int might match the return type of a GCC
15966    builtin and then its argument prototype would still apply.  */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 char socket ();
15971 int
15972 main ()
15973 {
15974 return socket ();
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983   *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986   (eval "$ac_link") 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
15990   cat conftest.err >&5
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } && {
15993          test -z "$ac_c_werror_flag" ||
15994          test ! -s conftest.err
15995        } && test -s conftest$ac_exeext &&
15996        $as_test_x conftest$ac_exeext; then
15997   ac_cv_lib_xnet_socket=yes
15998 else
15999   echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16001
16002         ac_cv_lib_xnet_socket=no
16003 fi
16004
16005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16006       conftest$ac_exeext conftest.$ac_ext
16007 LIBS=$ac_check_lib_save_LIBS
16008 fi
16009 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16010 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16011 if test $ac_cv_lib_xnet_socket = yes; then
16012   cat >>confdefs.h <<_ACEOF
16013 #define HAVE_LIBXNET 1
16014 _ACEOF
16015
16016   LIBS="-lxnet $LIBS"
16017
16018 fi
16019
16020
16021 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16022 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16023 if test "${ac_cv_lib_socket_socket+set}" = set; then
16024   echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026   ac_check_lib_save_LIBS=$LIBS
16027 LIBS="-lsocket  $LIBS"
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034
16035 /* Override any GCC internal prototype to avoid an error.
16036    Use char because int might match the return type of a GCC
16037    builtin and then its argument prototype would still apply.  */
16038 #ifdef __cplusplus
16039 extern "C"
16040 #endif
16041 char socket ();
16042 int
16043 main ()
16044 {
16045 return socket ();
16046   ;
16047   return 0;
16048 }
16049 _ACEOF
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (ac_try="$ac_link"
16052 case "(($ac_try" in
16053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054   *) ac_try_echo=$ac_try;;
16055 esac
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057   (eval "$ac_link") 2>conftest.er1
16058   ac_status=$?
16059   grep -v '^ *+' conftest.er1 >conftest.err
16060   rm -f conftest.er1
16061   cat conftest.err >&5
16062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063   (exit $ac_status); } && {
16064          test -z "$ac_c_werror_flag" ||
16065          test ! -s conftest.err
16066        } && test -s conftest$ac_exeext &&
16067        $as_test_x conftest$ac_exeext; then
16068   ac_cv_lib_socket_socket=yes
16069 else
16070   echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16072
16073         ac_cv_lib_socket_socket=no
16074 fi
16075
16076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16077       conftest$ac_exeext conftest.$ac_ext
16078 LIBS=$ac_check_lib_save_LIBS
16079 fi
16080 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16081 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16082 if test $ac_cv_lib_socket_socket = yes; then
16083   cat >>confdefs.h <<_ACEOF
16084 #define HAVE_LIBSOCKET 1
16085 _ACEOF
16086
16087   LIBS="-lsocket $LIBS"
16088
16089 fi
16090
16091
16092 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16093 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16094 if test "${ac_cv_lib_inet_socket+set}" = set; then
16095   echo $ECHO_N "(cached) $ECHO_C" >&6
16096 else
16097   ac_check_lib_save_LIBS=$LIBS
16098 LIBS="-linet  $LIBS"
16099 cat >conftest.$ac_ext <<_ACEOF
16100 /* confdefs.h.  */
16101 _ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h.  */
16105
16106 /* Override any GCC internal prototype to avoid an error.
16107    Use char because int might match the return type of a GCC
16108    builtin and then its argument prototype would still apply.  */
16109 #ifdef __cplusplus
16110 extern "C"
16111 #endif
16112 char socket ();
16113 int
16114 main ()
16115 {
16116 return socket ();
16117   ;
16118   return 0;
16119 }
16120 _ACEOF
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (ac_try="$ac_link"
16123 case "(($ac_try" in
16124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125   *) ac_try_echo=$ac_try;;
16126 esac
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128   (eval "$ac_link") 2>conftest.er1
16129   ac_status=$?
16130   grep -v '^ *+' conftest.er1 >conftest.err
16131   rm -f conftest.er1
16132   cat conftest.err >&5
16133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134   (exit $ac_status); } && {
16135          test -z "$ac_c_werror_flag" ||
16136          test ! -s conftest.err
16137        } && test -s conftest$ac_exeext &&
16138        $as_test_x conftest$ac_exeext; then
16139   ac_cv_lib_inet_socket=yes
16140 else
16141   echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16143
16144         ac_cv_lib_inet_socket=no
16145 fi
16146
16147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16148       conftest$ac_exeext conftest.$ac_ext
16149 LIBS=$ac_check_lib_save_LIBS
16150 fi
16151 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16152 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16153 if test $ac_cv_lib_inet_socket = yes; then
16154   cat >>confdefs.h <<_ACEOF
16155 #define HAVE_LIBINET 1
16156 _ACEOF
16157
16158   LIBS="-linet $LIBS"
16159
16160 fi
16161
16162 fi
16163
16164
16165
16166 # -----------------------------------------------------------
16167 # Check whether user wants TCP wrappers support (default off)
16168 # -----------------------------------------------------------
16169 TCPW_MSG="no"
16170 WRAPLIBS=""
16171
16172 # Check whether --with-tcp-wrappers was given.
16173 if test "${with_tcp_wrappers+set}" = set; then
16174   withval=$with_tcp_wrappers;
16175     if test "x$withval" != "xno" ; then
16176        saved_LIBS="$LIBS"
16177        LIBS="$saved_LIBS -lwrap"
16178        { echo "$as_me:$LINENO: checking for libwrap" >&5
16179 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16180        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16181 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16182 if test "${ac_cv_search_nanosleep+set}" = set; then
16183   echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185   ac_func_search_save_LIBS=$LIBS
16186 cat >conftest.$ac_ext <<_ACEOF
16187 /* confdefs.h.  */
16188 _ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h.  */
16192
16193 /* Override any GCC internal prototype to avoid an error.
16194    Use char because int might match the return type of a GCC
16195    builtin and then its argument prototype would still apply.  */
16196 #ifdef __cplusplus
16197 extern "C"
16198 #endif
16199 char nanosleep ();
16200 int
16201 main ()
16202 {
16203 return nanosleep ();
16204   ;
16205   return 0;
16206 }
16207 _ACEOF
16208 for ac_lib in '' rt; do
16209   if test -z "$ac_lib"; then
16210     ac_res="none required"
16211   else
16212     ac_res=-l$ac_lib
16213     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16214   fi
16215   rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219   *) ac_try_echo=$ac_try;;
16220 esac
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222   (eval "$ac_link") 2>conftest.er1
16223   ac_status=$?
16224   grep -v '^ *+' conftest.er1 >conftest.err
16225   rm -f conftest.er1
16226   cat conftest.err >&5
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } && {
16229          test -z "$ac_c_werror_flag" ||
16230          test ! -s conftest.err
16231        } && test -s conftest$ac_exeext &&
16232        $as_test_x conftest$ac_exeext; then
16233   ac_cv_search_nanosleep=$ac_res
16234 else
16235   echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16237
16238
16239 fi
16240
16241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16242       conftest$ac_exeext
16243   if test "${ac_cv_search_nanosleep+set}" = set; then
16244   break
16245 fi
16246 done
16247 if test "${ac_cv_search_nanosleep+set}" = set; then
16248   :
16249 else
16250   ac_cv_search_nanosleep=no
16251 fi
16252 rm conftest.$ac_ext
16253 LIBS=$ac_func_search_save_LIBS
16254 fi
16255 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16256 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16257 ac_res=$ac_cv_search_nanosleep
16258 if test "$ac_res" != no; then
16259   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16260
16261 fi
16262
16263        cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269  #include <sys/types.h>
16270             #include <tcpd.h>
16271              int deny_severity = 0;
16272              int allow_severity = 0;
16273              struct request_info *req;
16274 int
16275 main ()
16276 {
16277  hosts_access(req);
16278   ;
16279   return 0;
16280 }
16281 _ACEOF
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286   *) ac_try_echo=$ac_try;;
16287 esac
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289   (eval "$ac_link") 2>conftest.er1
16290   ac_status=$?
16291   grep -v '^ *+' conftest.er1 >conftest.err
16292   rm -f conftest.er1
16293   cat conftest.err >&5
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); } && {
16296          test -z "$ac_c_werror_flag" ||
16297          test ! -s conftest.err
16298        } && test -s conftest$ac_exeext &&
16299        $as_test_x conftest$ac_exeext; then
16300
16301             { echo "$as_me:$LINENO: result: yes" >&5
16302 echo "${ECHO_T}yes" >&6; }
16303
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_LIBWRAP 1
16306 _ACEOF
16307
16308             TCPW_MSG="yes"
16309             LIBS="$saved_LIBS"
16310             WRAPLIBS="-lwrap"
16311
16312 else
16313   echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16315
16316
16317             LIBS="$saved_LIBS -lwrap -lnsl"
16318             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16319             cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325  #include <sys/types.h>
16326                  #include <tcpd.h>
16327                  int deny_severity = 0;
16328                  int allow_severity = 0;
16329                  struct request_info *req;
16330 int
16331 main ()
16332 {
16333  hosts_access(req);
16334   ;
16335   return 0;
16336 }
16337 _ACEOF
16338 rm -f conftest.$ac_objext conftest$ac_exeext
16339 if { (ac_try="$ac_link"
16340 case "(($ac_try" in
16341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342   *) ac_try_echo=$ac_try;;
16343 esac
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345   (eval "$ac_link") 2>conftest.er1
16346   ac_status=$?
16347   grep -v '^ *+' conftest.er1 >conftest.err
16348   rm -f conftest.er1
16349   cat conftest.err >&5
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); } && {
16352          test -z "$ac_c_werror_flag" ||
16353          test ! -s conftest.err
16354        } && test -s conftest$ac_exeext &&
16355        $as_test_x conftest$ac_exeext; then
16356
16357                  { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16359
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_LIBWRAP 1
16362 _ACEOF
16363
16364                  TCPW_MSG="yes"
16365                  LIBS="$saved_LIBS"
16366                  WRAPLIBS="-lwrap"
16367
16368 else
16369   echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16371
16372         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16373 echo "$as_me: error: *** libwrap missing" >&2;}
16374    { (exit 1); exit 1; }; }
16375
16376 fi
16377
16378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16379       conftest$ac_exeext conftest.$ac_ext
16380
16381 fi
16382
16383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16384       conftest$ac_exeext conftest.$ac_ext
16385     fi
16386
16387
16388 fi
16389
16390
16391 # -----------------------------------------------------------
16392 # Check whether OpenSSL is available
16393 # -----------------------------------------------------------
16394 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16395 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16396
16397 # Check whether --with-openssl was given.
16398 if test "${with_openssl+set}" = set; then
16399   withval=$with_openssl; with_openssl_directory=${withval}
16400 fi
16401
16402
16403 if test "x$with_openssl_directory" != "x"; then
16404         OPENSSL_LIBS="-lssl -lcrypto"
16405         OPENSSL_INC=""
16406
16407         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16408                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16409                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16410         fi
16411
16412         saved_LIBS="${LIBS}"
16413         saved_CFLAGS="${CFLAGS}"
16414         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16415         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16416
16417         cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423  #include <openssl/ssl.h>
16424 int
16425 main ()
16426 {
16427  CRYPTO_set_id_callback(NULL);
16428   ;
16429   return 0;
16430 }
16431 _ACEOF
16432 rm -f conftest.$ac_objext conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_link") 2>conftest.er1
16440   ac_status=$?
16441   grep -v '^ *+' conftest.er1 >conftest.err
16442   rm -f conftest.er1
16443   cat conftest.err >&5
16444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445   (exit $ac_status); } && {
16446          test -z "$ac_c_werror_flag" ||
16447          test ! -s conftest.err
16448        } && test -s conftest$ac_exeext &&
16449        $as_test_x conftest$ac_exeext; then
16450
16451                         support_tls="yes"
16452                         support_crypto="yes"
16453
16454 else
16455   echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458          support_tls="no"
16459
16460 fi
16461
16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463       conftest$ac_exeext conftest.$ac_ext
16464
16465         cat >conftest.$ac_ext <<_ACEOF
16466 /* confdefs.h.  */
16467 _ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h.  */
16471  #include <openssl/evp.h>
16472 int
16473 main ()
16474 {
16475  EVP_sha512();
16476   ;
16477   return 0;
16478 }
16479 _ACEOF
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484   *) ac_try_echo=$ac_try;;
16485 esac
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487   (eval "$ac_link") 2>conftest.er1
16488   ac_status=$?
16489   grep -v '^ *+' conftest.er1 >conftest.err
16490   rm -f conftest.er1
16491   cat conftest.err >&5
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); } && {
16494          test -z "$ac_c_werror_flag" ||
16495          test ! -s conftest.err
16496        } && test -s conftest$ac_exeext &&
16497        $as_test_x conftest$ac_exeext; then
16498    ac_cv_openssl_sha2="yes"
16499 else
16500   echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16502
16503          ac_cv_openssl_sha2="no"
16504
16505 fi
16506
16507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16508       conftest$ac_exeext conftest.$ac_ext
16509
16510         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16511         # implementation, presumably for export reasons. If 192bit AES
16512         # is available, we assume that we're running with a 'non-export'
16513         # openssl library.
16514         cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520  #include <openssl/evp.h>
16521 int
16522 main ()
16523 {
16524  EVP_aes_192_cbc();
16525   ;
16526   return 0;
16527 }
16528 _ACEOF
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533   *) ac_try_echo=$ac_try;;
16534 esac
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536   (eval "$ac_link") 2>conftest.er1
16537   ac_status=$?
16538   grep -v '^ *+' conftest.er1 >conftest.err
16539   rm -f conftest.er1
16540   cat conftest.err >&5
16541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542   (exit $ac_status); } && {
16543          test -z "$ac_c_werror_flag" ||
16544          test ! -s conftest.err
16545        } && test -s conftest$ac_exeext &&
16546        $as_test_x conftest$ac_exeext; then
16547    ac_cv_openssl_export="no"
16548 else
16549   echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16551
16552          ac_cv_openssl_export="yes"
16553
16554 fi
16555
16556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16557       conftest$ac_exeext conftest.$ac_ext
16558
16559         LIBS="${saved_LIBS}"
16560         CFLAGS="${saved_CFLAGS}"
16561
16562         if test "$support_tls" = "yes"; then
16563
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_OPENSSL 1
16566 _ACEOF
16567
16568
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_TLS 1
16571 _ACEOF
16572
16573
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_CRYPTO 1
16576 _ACEOF
16577
16578         fi
16579
16580         if test "$ac_cv_openssl_sha2" = "yes"; then
16581
16582 cat >>confdefs.h <<\_ACEOF
16583 #define HAVE_SHA2 1
16584 _ACEOF
16585
16586         fi
16587
16588         if test "$ac_cv_openssl_export" = "yes"; then
16589
16590 cat >>confdefs.h <<\_ACEOF
16591 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16592 _ACEOF
16593
16594         fi
16595 else
16596         support_tls="no"
16597         support_crypto="no"
16598         OPENSSL_LIBS=""
16599         OPENSSL_INC=""
16600 fi
16601
16602 { echo "$as_me:$LINENO: result: $support_tls" >&5
16603 echo "${ECHO_T}$support_tls" >&6; }
16604
16605
16606
16607
16608 # -----------------------------------------------------------
16609 # Python and OpenSSL are using dlopen
16610 # -----------------------------------------------------------
16611
16612 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16613    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16614 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16615 if test "${ac_cv_search_dlopen+set}" = set; then
16616   echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618   ac_func_search_save_LIBS=$LIBS
16619 cat >conftest.$ac_ext <<_ACEOF
16620 /* confdefs.h.  */
16621 _ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h.  */
16625
16626 /* Override any GCC internal prototype to avoid an error.
16627    Use char because int might match the return type of a GCC
16628    builtin and then its argument prototype would still apply.  */
16629 #ifdef __cplusplus
16630 extern "C"
16631 #endif
16632 char dlopen ();
16633 int
16634 main ()
16635 {
16636 return dlopen ();
16637   ;
16638   return 0;
16639 }
16640 _ACEOF
16641 for ac_lib in '' dl; do
16642   if test -z "$ac_lib"; then
16643     ac_res="none required"
16644   else
16645     ac_res=-l$ac_lib
16646     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16647   fi
16648   rm -f conftest.$ac_objext conftest$ac_exeext
16649 if { (ac_try="$ac_link"
16650 case "(($ac_try" in
16651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652   *) ac_try_echo=$ac_try;;
16653 esac
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655   (eval "$ac_link") 2>conftest.er1
16656   ac_status=$?
16657   grep -v '^ *+' conftest.er1 >conftest.err
16658   rm -f conftest.er1
16659   cat conftest.err >&5
16660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661   (exit $ac_status); } && {
16662          test -z "$ac_c_werror_flag" ||
16663          test ! -s conftest.err
16664        } && test -s conftest$ac_exeext &&
16665        $as_test_x conftest$ac_exeext; then
16666   ac_cv_search_dlopen=$ac_res
16667 else
16668   echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16670
16671
16672 fi
16673
16674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16675       conftest$ac_exeext
16676   if test "${ac_cv_search_dlopen+set}" = set; then
16677   break
16678 fi
16679 done
16680 if test "${ac_cv_search_dlopen+set}" = set; then
16681   :
16682 else
16683   ac_cv_search_dlopen=no
16684 fi
16685 rm conftest.$ac_ext
16686 LIBS=$ac_func_search_save_LIBS
16687 fi
16688 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16689 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16690 ac_res=$ac_cv_search_dlopen
16691 if test "$ac_res" != no; then
16692   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16693
16694 fi
16695
16696 fi
16697
16698 # ------------------------------------------
16699 # Where to place working dir
16700 # ------------------------------------------
16701 working_dir=`eval echo ${prefix}/var/bacula/working`
16702
16703 # Check whether --with-working-dir was given.
16704 if test "${with_working_dir+set}" = set; then
16705   withval=$with_working_dir;
16706        if test "x$withval" != "xno" ; then
16707               working_dir=$withval
16708        fi
16709
16710
16711 fi
16712
16713
16714
16715
16716 # ------------------------------------------------------------------
16717 # If the user has not set archivedir, we set our default as /tmp
16718 # ------------------------------------------------------------------
16719 archive_dir=/tmp
16720
16721 # Check whether --with-archivedir was given.
16722 if test "${with_archivedir+set}" = set; then
16723   withval=$with_archivedir;
16724        if test "x$withval" != "xno" ; then
16725               archivedir=$withval
16726        fi
16727
16728
16729 fi
16730
16731
16732
16733
16734
16735
16736 # ------------------------------------------
16737 # Where to place scriptdir (script files)
16738 # ------------------------------------------
16739 scriptdir=`eval echo ${sysconfdir}`
16740
16741 # Check whether --with-scriptdir was given.
16742 if test "${with_scriptdir+set}" = set; then
16743   withval=$with_scriptdir;
16744        if test "x$withval" != "xno" ; then
16745               scriptdir=$withval
16746        fi
16747
16748
16749 fi
16750
16751
16752
16753
16754
16755 # ------------------------------------------
16756 # Where to send dump email
16757 # ------------------------------------------
16758 dump_email=root@localhost
16759
16760 # Check whether --with-dump-email was given.
16761 if test "${with_dump_email+set}" = set; then
16762   withval=$with_dump_email;
16763        if test "x$withval" != "xno" ; then
16764               dump_email=$withval
16765        fi
16766
16767
16768 fi
16769
16770
16771
16772
16773 # ------------------------------------------
16774 # Where to send job email
16775 # ------------------------------------------
16776 job_email=root@localhost
16777
16778 # Check whether --with-job-email was given.
16779 if test "${with_job_email+set}" = set; then
16780   withval=$with_job_email;
16781        if test "x$withval" != "xno" ; then
16782               job_email=$withval
16783        fi
16784
16785
16786 fi
16787
16788
16789
16790
16791 # ------------------------------------------
16792 # Where to find smtp host
16793 # ------------------------------------------
16794 smtp_host=localhost
16795
16796 # Check whether --with-smtp_host was given.
16797 if test "${with_smtp_host+set}" = set; then
16798   withval=$with_smtp_host;
16799        if test "x$withval" != "xno" ; then
16800               smtp_host=$withval
16801        fi
16802
16803
16804 fi
16805
16806
16807
16808
16809
16810 # ------------------------------------
16811 # Where to place pid files
16812 # ------------------------------------
16813 piddir=/var/run
16814
16815 # Check whether --with-pid-dir was given.
16816 if test "${with_pid_dir+set}" = set; then
16817   withval=$with_pid_dir;
16818         if test "x$withval" != "xno" ; then
16819             piddir=$withval
16820         fi
16821
16822
16823 fi
16824
16825
16826 cat >>confdefs.h <<_ACEOF
16827 #define _PATH_BACULA_PIDDIR "$piddir"
16828 _ACEOF
16829
16830
16831
16832
16833 # ------------------------------------
16834 # Where to place subsys "lock file"
16835 # ------------------------------------
16836 subsysdir=/var/run/subsys
16837 if test -d /var/run/subsys; then
16838    subsysdir=/var/run/subsys
16839 elif test -d /var/lock/subsys; then
16840    subsysdir=/var/lock/subsys
16841 else
16842    subsysdir=/var/run/subsys
16843 fi
16844
16845 # Check whether --with-subsys-dir was given.
16846 if test "${with_subsys_dir+set}" = set; then
16847   withval=$with_subsys_dir;
16848         if test "x$withval" != "xno" ; then
16849             subsysdir=$withval
16850         fi
16851
16852
16853 fi
16854
16855
16856
16857
16858
16859
16860 # ------------------------------------
16861 # Where to start assigning ports
16862 # ------------------------------------
16863 baseport=9101
16864
16865 # Check whether --with-baseport was given.
16866 if test "${with_baseport+set}" = set; then
16867   withval=$with_baseport;
16868         if test "x$withval" != "xno" ; then
16869              baseport=$withval
16870         fi
16871
16872
16873 fi
16874
16875
16876
16877 dir_port=`expr $baseport`
16878 fd_port=`expr $baseport + 1`
16879 sd_port=`expr $fd_port + 1`
16880
16881
16882
16883
16884
16885
16886 # ------------------------------------------
16887 # Generate passwords
16888 # ------------------------------------------
16889 dir_password=
16890
16891 # Check whether --with-dir-password was given.
16892 if test "${with_dir_password+set}" = set; then
16893   withval=$with_dir_password;
16894        if test "x$withval" != "xno" ; then
16895            dir_password=$withval
16896        fi
16897
16898
16899 fi
16900
16901
16902 if test "x$dir_password" = "x" ; then
16903    if test "x$OPENSSL" = "xnone" ; then
16904       key=`autoconf/randpass 33`
16905    else
16906       key=`openssl rand -base64 33`
16907    fi
16908    dir_password=$key
16909 fi
16910
16911 fd_password=
16912
16913 # Check whether --with-fd-password was given.
16914 if test "${with_fd_password+set}" = set; then
16915   withval=$with_fd_password;
16916        if test "x$withval" != "xno" ; then
16917            fd_password=$withval
16918        fi
16919
16920
16921 fi
16922
16923
16924 if test "x$fd_password" = "x" ; then
16925    if test "x$OPENSSL" = "xnone" ; then
16926       key=`autoconf/randpass 37`
16927    else
16928       key=`openssl rand -base64 33`
16929    fi
16930    fd_password=$key
16931 fi
16932
16933 sd_password=
16934
16935 # Check whether --with-sd-password was given.
16936 if test "${with_sd_password+set}" = set; then
16937   withval=$with_sd_password;
16938        if test "x$withval" != "xno" ; then
16939            sd_password=$withval
16940        fi
16941
16942
16943 fi
16944
16945
16946 if test "x$sd_password" = "x" ; then
16947    if test "x$OPENSSL" = "xnone" ; then
16948       key=`autoconf/randpass 41`
16949    else
16950       key=`openssl rand -base64 33`
16951    fi
16952    sd_password=$key
16953 fi
16954
16955 mon_dir_password=
16956
16957 # Check whether --with-mon-dir-password was given.
16958 if test "${with_mon_dir_password+set}" = set; then
16959   withval=$with_mon_dir_password;
16960        if test "x$withval" != "xno" ; then
16961            mon_dir_password=$withval
16962        fi
16963
16964
16965 fi
16966
16967
16968 if test "x$mon_dir_password" = "x" ; then
16969    if test "x$OPENSSL" = "xnone" ; then
16970       key=`autoconf/randpass 33`
16971    else
16972       key=`openssl rand -base64 33`
16973    fi
16974    mon_dir_password=$key
16975 fi
16976
16977 mon_fd_password=
16978
16979 # Check whether --with-mon-fd-password was given.
16980 if test "${with_mon_fd_password+set}" = set; then
16981   withval=$with_mon_fd_password;
16982        if test "x$withval" != "xno" ; then
16983            mon_fd_password=$withval
16984        fi
16985
16986
16987 fi
16988
16989
16990 if test "x$mon_fd_password" = "x" ; then
16991    if test "x$OPENSSL" = "xnone" ; then
16992       key=`autoconf/randpass 37`
16993    else
16994       key=`openssl rand -base64 33`
16995    fi
16996    mon_fd_password=$key
16997 fi
16998
16999 mon_sd_password=
17000
17001 # Check whether --with-mon-sd-password was given.
17002 if test "${with_mon_sd_password+set}" = set; then
17003   withval=$with_mon_sd_password;
17004        if test "x$withval" != "xno" ; then
17005            mon_sd_password=$withval
17006        fi
17007
17008
17009 fi
17010
17011
17012 if test "x$mon_sd_password" = "x" ; then
17013    if test "x$OPENSSL" = "xnone" ; then
17014       key=`autoconf/randpass 41`
17015    else
17016       key=`openssl rand -base64 33`
17017    fi
17018    mon_sd_password=$key
17019 fi
17020
17021
17022
17023
17024
17025
17026
17027
17028 #
17029 # Pickup any database name
17030 #
17031 db_name=bacula
17032
17033 # Check whether --with-db_name was given.
17034 if test "${with_db_name+set}" = set; then
17035   withval=$with_db_name;
17036         if test "x$withval" != "x" ; then
17037              db_name=$withval
17038         fi
17039
17040
17041 fi
17042
17043
17044
17045 db_user=bacula
17046
17047 # Check whether --with-db_user was given.
17048 if test "${with_db_user+set}" = set; then
17049   withval=$with_db_user;
17050         if test "x$withval" != "x" ; then
17051              db_user=$withval
17052         fi
17053
17054
17055 fi
17056
17057
17058
17059 db_password=
17060
17061 # Check whether --with-db_password was given.
17062 if test "${with_db_password+set}" = set; then
17063   withval=$with_db_password;
17064         if test "x$withval" != "x" ; then
17065              db_password=$withval
17066         fi
17067
17068
17069 fi
17070
17071
17072
17073 #
17074 # Handle users and groups for each daemon
17075 #
17076 dir_user=
17077
17078 # Check whether --with-dir_user was given.
17079 if test "${with_dir_user+set}" = set; then
17080   withval=$with_dir_user;
17081         if test "x$withval" != "x" ; then
17082              dir_user=$withval
17083         fi
17084
17085
17086 fi
17087
17088
17089 dir_group=
17090
17091 # Check whether --with-dir_group was given.
17092 if test "${with_dir_group+set}" = set; then
17093   withval=$with_dir_group;
17094         if test "x$withval" != "x" ; then
17095              dir_group=$withval
17096         fi
17097
17098
17099 fi
17100
17101
17102 sd_user=
17103
17104 # Check whether --with-sd_user was given.
17105 if test "${with_sd_user+set}" = set; then
17106   withval=$with_sd_user;
17107         if test "x$withval" != "x" ; then
17108              sd_user=$withval
17109         fi
17110
17111
17112 fi
17113
17114
17115 sd_group=
17116
17117 # Check whether --with-sd_group was given.
17118 if test "${with_sd_group+set}" = set; then
17119   withval=$with_sd_group;
17120         if test "x$withval" != "x" ; then
17121              sd_group=$withval
17122         fi
17123
17124
17125 fi
17126
17127
17128 fd_user=
17129
17130 # Check whether --with-fd_user was given.
17131 if test "${with_fd_user+set}" = set; then
17132   withval=$with_fd_user;
17133         if test "x$withval" != "x" ; then
17134              fd_user=$withval
17135         fi
17136
17137
17138 fi
17139
17140
17141 fd_group=
17142
17143 # Check whether --with-fd_group was given.
17144 if test "${with_fd_group+set}" = set; then
17145   withval=$with_fd_group;
17146         if test "x$withval" != "x" ; then
17147              fd_group=$withval
17148         fi
17149
17150
17151 fi
17152
17153
17154
17155
17156
17157
17158
17159
17160
17161 #
17162 # allow setting default executable permissions
17163 #
17164 SBINPERM=0754
17165
17166 # Check whether --with-sbin-perm was given.
17167 if test "${with_sbin_perm+set}" = set; then
17168   withval=$with_sbin_perm;
17169         if test "x$withval" != "x" ; then
17170             SBINPERM=$withval
17171         fi
17172
17173
17174 fi
17175
17176
17177
17178
17179 # ------------------------------------------------
17180 # Bacula check for various SQL database engines
17181 # ------------------------------------------------
17182 SQL_LIB=
17183
17184 db_found=no
17185 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17186 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17187
17188 # Check whether --with-postgresql was given.
17189 if test "${with_postgresql+set}" = set; then
17190   withval=$with_postgresql;
17191   if test "$withval" != "no"; then
17192       if test "$db_found" = "yes"; then
17193           { echo "$as_me:$LINENO: result: error" >&5
17194 echo "${ECHO_T}error" >&6; }
17195           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17196 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17197    { (exit 1); exit 1; }; };
17198       fi
17199       if test "$withval" = "yes"; then
17200           PG_CONFIG=`which pg_config`
17201           if test -n "$PG_CONFIG";then
17202               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17203               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17204               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17205           elif test -f /usr/local/include/libpq-fe.h; then
17206               POSTGRESQL_INCDIR=/usr/local/include
17207               if test -d /usr/local/lib64; then
17208                  POSTGRESQL_LIBDIR=/usr/local/lib64
17209               else
17210                  POSTGRESQL_LIBDIR=/usr/local/lib
17211               fi
17212               POSTGRESQL_BINDIR=/usr/local/bin
17213           elif test -f /usr/include/libpq-fe.h; then
17214               POSTGRESQL_INCDIR=/usr/include
17215               if test -d /usr/lib64; then
17216                  POSTGRESQL_LIBDIR=/usr/lib64
17217               else
17218                  POSTGRESQL_LIBDIR=/usr/lib
17219               fi
17220               POSTGRESQL_BINDIR=/usr/bin
17221           elif test -f /usr/include/pgsql/libpq-fe.h; then
17222               POSTGRESQL_INCDIR=/usr/include/pgsql
17223               if test -d /usr/lib64/pgsql; then
17224                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17225               else
17226                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17227               fi
17228               POSTGRESQL_BINDIR=/usr/bin
17229           elif test -f /usr/include/postgresql/libpq-fe.h; then
17230               POSTGRESQL_INCDIR=/usr/include/postgresql
17231               if test -d /usr/lib64/postgresql; then
17232                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17233               else
17234                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17235               fi
17236               POSTGRESQL_BINDIR=/usr/bin
17237           else
17238               { echo "$as_me:$LINENO: result: no" >&5
17239 echo "${ECHO_T}no" >&6; }
17240               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17241 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17242    { (exit 1); exit 1; }; }
17243           fi
17244       elif test -f $withval/include/libpq-fe.h; then
17245           POSTGRESQL_INCDIR=$withval/include
17246           POSTGRESQL_LIBDIR=$withval/lib
17247           POSTGRESQL_BINDIR=$withval/bin
17248       elif test -f $withval/include/postgresql/libpq-fe.h; then
17249           POSTGRESQL_INCDIR=$withval/include/postgresql
17250      if test -d $withval/lib64; then
17251          POSTGRESQL_LIBDIR=$withval/lib64
17252      else
17253          POSTGRESQL_LIBDIR=$withval/lib
17254      fi
17255           POSTGRESQL_BINDIR=$withval/bin
17256       else
17257           { echo "$as_me:$LINENO: result: no" >&5
17258 echo "${ECHO_T}no" >&6; }
17259           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17260 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17261    { (exit 1); exit 1; }; }
17262       fi
17263       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17264       { echo "$as_me:$LINENO: checking for crypt" >&5
17265 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17266 if test "${ac_cv_func_crypt+set}" = set; then
17267   echo $ECHO_N "(cached) $ECHO_C" >&6
17268 else
17269   cat >conftest.$ac_ext <<_ACEOF
17270 /* confdefs.h.  */
17271 _ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h.  */
17275 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17277 #define crypt innocuous_crypt
17278
17279 /* System header to define __stub macros and hopefully few prototypes,
17280     which can conflict with char crypt (); below.
17281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282     <limits.h> exists even on freestanding compilers.  */
17283
17284 #ifdef __STDC__
17285 # include <limits.h>
17286 #else
17287 # include <assert.h>
17288 #endif
17289
17290 #undef crypt
17291
17292 /* Override any GCC internal prototype to avoid an error.
17293    Use char because int might match the return type of a GCC
17294    builtin and then its argument prototype would still apply.  */
17295 #ifdef __cplusplus
17296 extern "C"
17297 #endif
17298 char crypt ();
17299 /* The GNU C library defines this for functions which it implements
17300     to always fail with ENOSYS.  Some functions are actually named
17301     something starting with __ and the normal name is an alias.  */
17302 #if defined __stub_crypt || defined __stub___crypt
17303 choke me
17304 #endif
17305
17306 int
17307 main ()
17308 {
17309 return crypt ();
17310   ;
17311   return 0;
17312 }
17313 _ACEOF
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (ac_try="$ac_link"
17316 case "(($ac_try" in
17317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318   *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321   (eval "$ac_link") 2>conftest.er1
17322   ac_status=$?
17323   grep -v '^ *+' conftest.er1 >conftest.err
17324   rm -f conftest.er1
17325   cat conftest.err >&5
17326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327   (exit $ac_status); } && {
17328          test -z "$ac_c_werror_flag" ||
17329          test ! -s conftest.err
17330        } && test -s conftest$ac_exeext &&
17331        $as_test_x conftest$ac_exeext; then
17332   ac_cv_func_crypt=yes
17333 else
17334   echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17336
17337         ac_cv_func_crypt=no
17338 fi
17339
17340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17341       conftest$ac_exeext conftest.$ac_ext
17342 fi
17343 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17344 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17345 if test $ac_cv_func_crypt = yes; then
17346   :
17347 else
17348   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17349 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17350 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17351   echo $ECHO_N "(cached) $ECHO_C" >&6
17352 else
17353   ac_check_lib_save_LIBS=$LIBS
17354 LIBS="-lcrypt  $LIBS"
17355 cat >conftest.$ac_ext <<_ACEOF
17356 /* confdefs.h.  */
17357 _ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h.  */
17361
17362 /* Override any GCC internal prototype to avoid an error.
17363    Use char because int might match the return type of a GCC
17364    builtin and then its argument prototype would still apply.  */
17365 #ifdef __cplusplus
17366 extern "C"
17367 #endif
17368 char crypt ();
17369 int
17370 main ()
17371 {
17372 return crypt ();
17373   ;
17374   return 0;
17375 }
17376 _ACEOF
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381   *) ac_try_echo=$ac_try;;
17382 esac
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384   (eval "$ac_link") 2>conftest.er1
17385   ac_status=$?
17386   grep -v '^ *+' conftest.er1 >conftest.err
17387   rm -f conftest.er1
17388   cat conftest.err >&5
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); } && {
17391          test -z "$ac_c_werror_flag" ||
17392          test ! -s conftest.err
17393        } && test -s conftest$ac_exeext &&
17394        $as_test_x conftest$ac_exeext; then
17395   ac_cv_lib_crypt_crypt=yes
17396 else
17397   echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17399
17400         ac_cv_lib_crypt_crypt=no
17401 fi
17402
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404       conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17406 fi
17407 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17408 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17409 if test $ac_cv_lib_crypt_crypt = yes; then
17410   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17411 fi
17412
17413 fi
17414
17415       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17416       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17417       SQL_BINDIR=$POSTGRESQL_BINDIR
17418       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17419
17420       cat >>confdefs.h <<\_ACEOF
17421 #define HAVE_POSTGRESQL 1
17422 _ACEOF
17423
17424       { echo "$as_me:$LINENO: result: yes" >&5
17425 echo "${ECHO_T}yes" >&6; }
17426       db_found=yes
17427       support_postgresql=yes
17428       db_type=PostgreSQL
17429       DB_TYPE=postgresql
17430   else
17431       { echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6; }
17433   fi
17434
17435 else
17436
17437   { echo "$as_me:$LINENO: result: no" >&5
17438 echo "${ECHO_T}no" >&6; }
17439
17440 fi
17441
17442
17443
17444
17445
17446
17447
17448
17449 db_found=no
17450 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17451 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17452
17453 # Check whether --with-mysql was given.
17454 if test "${with_mysql+set}" = set; then
17455   withval=$with_mysql;
17456   if test "$withval" != "no"; then
17457         if test "$withval" = "yes"; then
17458            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17459                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17460                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17461                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17462                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17463                    else
17464                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17465                    fi
17466                    MYSQL_BINDIR=/usr/local/mysql/bin
17467            elif test -f /usr/include/mysql/mysql.h; then
17468                    MYSQL_INCDIR=/usr/include/mysql
17469                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17470                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17471                            MYSQL_LIBDIR=/usr/lib64/mysql
17472                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17473                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17474                            MYSQL_LIBDIR=/usr/lib/mysql
17475                    else
17476                            MYSQL_LIBDIR=/usr/lib
17477                    fi
17478                    MYSQL_BINDIR=/usr/bin
17479            elif test -f /usr/include/mysql.h; then
17480                    MYSQL_INCDIR=/usr/include
17481                    if test -f /usr/lib64/libmysqlclient_r.a \
17482                         -o -f /usr/lib64/libmysqlclient_r.so; then
17483                            MYSQL_LIBDIR=/usr/lib64
17484                    else
17485                            MYSQL_LIBDIR=/usr/lib
17486                    fi
17487                    MYSQL_BINDIR=/usr/bin
17488            elif test -f /usr/local/include/mysql/mysql.h; then
17489                    MYSQL_INCDIR=/usr/local/include/mysql
17490                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17491                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17492                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17493                    else
17494                            MYSQL_LIBDIR=/usr/local/lib/mysql
17495                    fi
17496                    MYSQL_BINDIR=/usr/local/bin
17497            elif test -f /usr/local/include/mysql.h; then
17498                    MYSQL_INCDIR=/usr/local/include
17499                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17500                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17501                            MYSQL_LIBDIR=/usr/local/lib64
17502                    else
17503                            MYSQL_LIBDIR=/usr/local/lib
17504                    fi
17505                    MYSQL_BINDIR=/usr/local/bin
17506            else
17507               { echo "$as_me:$LINENO: result: no" >&5
17508 echo "${ECHO_T}no" >&6; }
17509               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17510 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17511    { (exit 1); exit 1; }; }
17512            fi
17513         else
17514            if test -f $withval/include/mysql/mysql.h; then
17515               MYSQL_INCDIR=$withval/include/mysql
17516               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17517                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17518                  MYSQL_LIBDIR=$withval/lib64/mysql
17519               else
17520                  MYSQL_LIBDIR=$withval/lib/mysql
17521                  # Solaris ...
17522                  if test -f $withval/lib/libmysqlclient_r.so; then
17523                     MYSQL_LIBDIR=$withval/lib
17524                  fi
17525               fi
17526               MYSQL_BINDIR=$withval/bin
17527            elif test -f $withval/include/mysql.h; then
17528               MYSQL_INCDIR=$withval/include
17529               if test -f $withval/lib64/libmysqlclient_r.a \
17530                    -o -f $withval/lib64/libmysqlclient_r.so; then
17531                  MYSQL_LIBDIR=$withval/lib64
17532               else
17533                  MYSQL_LIBDIR=$withval/lib
17534               fi
17535               MYSQL_BINDIR=$withval/bin
17536            else
17537               { echo "$as_me:$LINENO: result: no" >&5
17538 echo "${ECHO_T}no" >&6; }
17539               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17540 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17541    { (exit 1); exit 1; }; }
17542            fi
17543         fi
17544     SQL_INCLUDE=-I$MYSQL_INCDIR
17545     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17546          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17547        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17548        cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_THREAD_SAFE_MYSQL 1
17550 _ACEOF
17551
17552     fi
17553     SQL_BINDIR=$MYSQL_BINDIR
17554     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17555
17556     cat >>confdefs.h <<\_ACEOF
17557 #define HAVE_MYSQL 1
17558 _ACEOF
17559
17560     { echo "$as_me:$LINENO: result: yes" >&5
17561 echo "${ECHO_T}yes" >&6; }
17562     db_found=yes
17563     support_mysql=yes
17564     db_type=MySQL
17565     DB_TYPE=mysql
17566
17567   else
17568         { echo "$as_me:$LINENO: result: no" >&5
17569 echo "${ECHO_T}no" >&6; }
17570   fi
17571
17572
17573 fi
17574
17575
17576
17577 # Check whether --with-embedded-mysql was given.
17578 if test "${with_embedded_mysql+set}" = set; then
17579   withval=$with_embedded_mysql;
17580   if test "$withval" != "no"; then
17581         if test "$withval" = "yes"; then
17582                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17583                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17584                         if test -d /usr/local/mysql/lib64/mysql; then
17585                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17586                         else
17587                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17588                         fi
17589                         MYSQL_BINDIR=/usr/local/mysql/bin
17590                 elif test -f /usr/include/mysql/mysql.h; then
17591                         MYSQL_INCDIR=/usr/include/mysql
17592                         if test -d /usr/lib64/mysql; then
17593                                 MYSQL_LIBDIR=/usr/lib64/mysql
17594                         else
17595                                 MYSQL_LIBDIR=/usr/lib/mysql
17596                         fi
17597                         MYSQL_BINDIR=/usr/bin
17598                 elif test -f /usr/include/mysql.h; then
17599                         MYSQL_INCDIR=/usr/include
17600                         if test -d /usr/lib64; then
17601                                 MYSQL_LIBDIR=/usr/lib64
17602                         else
17603                                 MYSQL_LIBDIR=/usr/lib
17604                         fi
17605                         MYSQL_BINDIR=/usr/bin
17606                 elif test -f /usr/local/include/mysql/mysql.h; then
17607                         MYSQL_INCDIR=/usr/local/include/mysql
17608                         if test -d /usr/local/lib64/mysql; then
17609                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17610                         else
17611                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17612                         fi
17613                         MYSQL_BINDIR=/usr/local/bin
17614                 elif test -f /usr/local/include/mysql.h; then
17615                         MYSQL_INCDIR=/usr/local/include
17616                         if test -d /usr/local/lib64; then
17617                                 MYSQL_LIBDIR=/usr/local/lib64
17618                         else
17619                                 MYSQL_LIBDIR=/usr/local/lib
17620                         fi
17621                         MYSQL_BINDIR=/usr/local/bin
17622                 else
17623                    { echo "$as_me:$LINENO: result: no" >&5
17624 echo "${ECHO_T}no" >&6; }
17625                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17626 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17627    { (exit 1); exit 1; }; }
17628                 fi
17629         else
17630                 if test -f $withval/include/mysql/mysql.h; then
17631                         MYSQL_INCDIR=$withval/include/mysql
17632                         if test -d $withval/lib64/mysql; then
17633                                 MYSQL_LIBDIR=$withval/lib64/mysql
17634                         else
17635                                 MYSQL_LIBDIR=$withval/lib/mysql
17636                         fi
17637                         MYSQL_BINDIR=$withval/bin
17638                 elif test -f $withval/include/mysql.h; then
17639                         MYSQL_INCDIR=$withval/include
17640                         if test -d $withval/lib64; then
17641                                 MYSQL_LIBDIR=$withval/lib64
17642                         else
17643                                 MYSQL_LIBDIR=$withval/lib
17644                         fi
17645                         MYSQL_BINDIR=$withval/bin
17646                 else
17647                    { echo "$as_me:$LINENO: result: no" >&5
17648 echo "${ECHO_T}no" >&6; }
17649                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17650 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17651    { (exit 1); exit 1; }; }
17652                 fi
17653         fi
17654     SQL_INCLUDE=-I$MYSQL_INCDIR
17655     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17656     SQL_BINDIR=$MYSQL_BINDIR
17657     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17658
17659     cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_MYSQL 1
17661 _ACEOF
17662
17663     cat >>confdefs.h <<\_ACEOF
17664 #define HAVE_EMBEDDED_MYSQL 1
17665 _ACEOF
17666
17667     { echo "$as_me:$LINENO: result: yes" >&5
17668 echo "${ECHO_T}yes" >&6; }
17669     db_found=yes
17670     support_mysql=yes
17671     db_type=MySQL
17672     DB_TYPE=mysql
17673
17674   else
17675         { echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6; }
17677   fi
17678
17679
17680 fi
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691 db_found=no
17692 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17693 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17694
17695 # Check whether --with-sqlite3 was given.
17696 if test "${with_sqlite3+set}" = set; then
17697   withval=$with_sqlite3;
17698   if test "$withval" != "no"; then
17699      if test "$withval" = "yes"; then
17700         if test -f /usr/local/include/sqlite3.h; then
17701            SQLITE_INCDIR=/usr/local/include
17702            if test -d /usr/local/lib64; then
17703               SQLITE_LIBDIR=/usr/local/lib64
17704            else
17705               SQLITE_LIBDIR=/usr/local/lib
17706            fi
17707            SQLITE_BINDIR=/usr/local/bin
17708         elif test -f /usr/include/sqlite3.h; then
17709            SQLITE_INCDIR=/usr/include
17710            if test -d /usr/lib64; then
17711               SQLITE_LIBDIR=/usr/lib64
17712            else
17713               SQLITE_LIBDIR=/usr/lib
17714            fi
17715            SQLITE_BINDIR=/usr/bin
17716         elif test -f $prefix/include/sqlite3.h; then
17717            SQLITE_INCDIR=$prefix/include
17718            if test -d $prefix/lib64; then
17719               SQLITE_LIBDIR=$prefix/lib64
17720            else
17721               SQLITE_LIBDIR=$prefix/lib
17722            fi
17723            SQLITE_BINDIR=$prefix/bin
17724         else
17725            { echo "$as_me:$LINENO: result: no" >&5
17726 echo "${ECHO_T}no" >&6; }
17727            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17728 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17729    { (exit 1); exit 1; }; }
17730         fi
17731      else
17732         if test -f $withval/sqlite3.h; then
17733            SQLITE_INCDIR=$withval
17734            SQLITE_LIBDIR=$withval
17735            SQLITE_BINDIR=$withval
17736         elif test -f $withval/include/sqlite3.h; then
17737            SQLITE_INCDIR=$withval/include
17738            if test -d $withval/lib64; then
17739               SQLITE_LIBDIR=$withval/lib64
17740            else
17741               SQLITE_LIBDIR=$withval/lib
17742            fi
17743            SQLITE_BINDIR=$withval/bin
17744         else
17745            { echo "$as_me:$LINENO: result: no" >&5
17746 echo "${ECHO_T}no" >&6; }
17747            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17748 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17749    { (exit 1); exit 1; }; }
17750         fi
17751      fi
17752      SQL_INCLUDE=-I$SQLITE_INCDIR
17753      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17754      SQL_BINDIR=$SQLITE_BINDIR
17755      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17756
17757      cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_SQLITE3 1
17759 _ACEOF
17760
17761      { echo "$as_me:$LINENO: result: yes" >&5
17762 echo "${ECHO_T}yes" >&6; }
17763      db_found=yes
17764      support_sqlite3=yes
17765      db_type=SQLite3
17766      DB_TYPE=sqlite3
17767
17768   else
17769      { echo "$as_me:$LINENO: result: no" >&5
17770 echo "${ECHO_T}no" >&6; }
17771   fi
17772
17773 else
17774
17775   { echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6; }
17777
17778 fi
17779
17780
17781
17782
17783
17784
17785
17786
17787 db_found=no
17788 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17789 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17790
17791 # Check whether --with-sqlite was given.
17792 if test "${with_sqlite+set}" = set; then
17793   withval=$with_sqlite;
17794   if test "$withval" != "no"; then
17795      if test "$withval" = "yes"; then
17796         if test -f /usr/local/include/sqlite.h; then
17797            SQLITE_INCDIR=/usr/local/include
17798            if test -d /usr/local/lib64; then
17799               SQLITE_LIBDIR=/usr/local/lib64
17800            else
17801               SQLITE_LIBDIR=/usr/local/lib
17802            fi
17803            SQLITE_BINDIR=/usr/local/bin
17804         elif test -f /usr/include/sqlite.h; then
17805            SQLITE_INCDIR=/usr/include
17806            if test -d /usr/lib64; then
17807               SQLITE_LIBDIR=/usr/lib64
17808            else
17809               SQLITE_LIBDIR=/usr/lib
17810            fi
17811            SQLITE_BINDIR=/usr/bin
17812         elif test -f $prefix/include/sqlite.h; then
17813            SQLITE_INCDIR=$prefix/include
17814            if test -d $prefix/lib64; then
17815               SQLITE_LIBDIR=$prefix/lib64
17816            else
17817               SQLITE_LIBDIR=$prefix/lib
17818            fi
17819            SQLITE_BINDIR=$prefix/bin
17820         else
17821            { echo "$as_me:$LINENO: result: no" >&5
17822 echo "${ECHO_T}no" >&6; }
17823            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17824 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17825    { (exit 1); exit 1; }; }
17826         fi
17827      else
17828         if test -f $withval/sqlite.h; then
17829            SQLITE_INCDIR=$withval
17830            SQLITE_LIBDIR=$withval
17831            SQLITE_BINDIR=$withval
17832         elif test -f $withval/include/sqlite.h; then
17833            SQLITE_INCDIR=$withval/include
17834            if test -d $withval/lib64; then
17835               SQLITE_LIBDIR=$withval/lib64
17836            else
17837               SQLITE_LIBDIR=$withval/lib
17838            fi
17839            SQLITE_BINDIR=$withval/bin
17840         else
17841            { echo "$as_me:$LINENO: result: no" >&5
17842 echo "${ECHO_T}no" >&6; }
17843            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17844 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17845    { (exit 1); exit 1; }; }
17846         fi
17847      fi
17848      SQL_INCLUDE=-I$SQLITE_INCDIR
17849      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17850      SQL_BINDIR=$SQLITE_BINDIR
17851      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17852
17853      cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_SQLITE 1
17855 _ACEOF
17856
17857      { echo "$as_me:$LINENO: result: yes" >&5
17858 echo "${ECHO_T}yes" >&6; }
17859      db_found=yes
17860      support_sqlite=yes
17861      db_type=SQLite
17862      DB_TYPE=sqlite
17863
17864   else
17865      { echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6; }
17867   fi
17868
17869 else
17870
17871   { echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6; }
17873
17874 fi
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885 # -------------------------------------------
17886 # enable batch attribute DB insert (default on)
17887 # -------------------------------------------
17888 support_batch_insert=no
17889 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17890 pkg=$?
17891 if test $pkg = 0; then
17892    support_batch_insert=yes
17893    # Check whether --enable-batch-insert was given.
17894 if test "${enable_batch_insert+set}" = set; then
17895   enableval=$enable_batch_insert; if test x$enableval = xno; then
17896        support_batch_insert=no
17897       else
17898        support_batch_insert=yes
17899      fi
17900 fi
17901
17902 fi
17903
17904 # Check if postgresql support batch mode
17905 if test x$DB_TYPE = xpostgresql; then
17906    A=`nm $SQL_LIB | grep PQputCopyData`
17907    pkg=$?
17908    if test $pkg != 0; then
17909       support_batch_insert=no
17910    fi
17911 fi
17912
17913 if test $support_batch_insert = yes ; then
17914
17915 cat >>confdefs.h <<\_ACEOF
17916 #define HAVE_BATCH_FILE_INSERT 1
17917 _ACEOF
17918
17919 fi
17920
17921
17922 cat >>confdefs.h <<\_ACEOF
17923 #define PROTOTYPES 1
17924 _ACEOF
17925
17926
17927 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17928     if test -z "$CCOPTS"; then
17929         CCOPTS='-g -O2 -Wall'
17930     fi
17931     CFLAGS="$CCOPTS"
17932 fi
17933
17934
17935
17936
17937 largefile_support="no"
17938
17939    # Check whether --enable-largefile was given.
17940 if test "${enable_largefile+set}" = set; then
17941   enableval=$enable_largefile;
17942 fi
17943
17944    if test "$enable_largefile" != no; then
17945      if test -n "$ac_tool_prefix"; then
17946   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17947 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17950 if test "${ac_cv_prog_GETCONF+set}" = set; then
17951   echo $ECHO_N "(cached) $ECHO_C" >&6
17952 else
17953   if test -n "$GETCONF"; then
17954   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17955 else
17956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17957 for as_dir in $PATH
17958 do
17959   IFS=$as_save_IFS
17960   test -z "$as_dir" && as_dir=.
17961   for ac_exec_ext in '' $ac_executable_extensions; do
17962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17963     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17965     break 2
17966   fi
17967 done
17968 done
17969 IFS=$as_save_IFS
17970
17971 fi
17972 fi
17973 GETCONF=$ac_cv_prog_GETCONF
17974 if test -n "$GETCONF"; then
17975   { echo "$as_me:$LINENO: result: $GETCONF" >&5
17976 echo "${ECHO_T}$GETCONF" >&6; }
17977 else
17978   { echo "$as_me:$LINENO: result: no" >&5
17979 echo "${ECHO_T}no" >&6; }
17980 fi
17981
17982
17983 fi
17984 if test -z "$ac_cv_prog_GETCONF"; then
17985   ac_ct_GETCONF=$GETCONF
17986   # Extract the first word of "getconf", so it can be a program name with args.
17987 set dummy getconf; ac_word=$2
17988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17990 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17991   echo $ECHO_N "(cached) $ECHO_C" >&6
17992 else
17993   if test -n "$ac_ct_GETCONF"; then
17994   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17995 else
17996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17997 for as_dir in $PATH
17998 do
17999   IFS=$as_save_IFS
18000   test -z "$as_dir" && as_dir=.
18001   for ac_exec_ext in '' $ac_executable_extensions; do
18002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18003     ac_cv_prog_ac_ct_GETCONF="getconf"
18004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18005     break 2
18006   fi
18007 done
18008 done
18009 IFS=$as_save_IFS
18010
18011 fi
18012 fi
18013 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18014 if test -n "$ac_ct_GETCONF"; then
18015   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18016 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18017 else
18018   { echo "$as_me:$LINENO: result: no" >&5
18019 echo "${ECHO_T}no" >&6; }
18020 fi
18021
18022   if test "x$ac_ct_GETCONF" = x; then
18023     GETCONF=""
18024   else
18025     case $cross_compiling:$ac_tool_warned in
18026 yes:)
18027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18028 whose name does not start with the host triplet.  If you think this
18029 configuration is useful to you, please write to autoconf@gnu.org." >&5
18030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18031 whose name does not start with the host triplet.  If you think this
18032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18033 ac_tool_warned=yes ;;
18034 esac
18035     GETCONF=$ac_ct_GETCONF
18036   fi
18037 else
18038   GETCONF="$ac_cv_prog_GETCONF"
18039 fi
18040
18041      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18042 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18043 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18044   echo $ECHO_N "(cached) $ECHO_C" >&6
18045 else
18046   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18047         ac_cv_sys_largefile_CFLAGS=no
18048         case "$host_os" in
18049            # IRIX 6.2 and later require cc -n32.
18050            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18051              if test "$GCC" != yes; then
18052                ac_cv_sys_largefile_CFLAGS=-n32
18053              fi
18054              ac_save_CC="$CC"
18055              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18056              cat >conftest.$ac_ext <<_ACEOF
18057 /* confdefs.h.  */
18058 _ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h.  */
18062
18063 int
18064 main ()
18065 {
18066
18067   ;
18068   return 0;
18069 }
18070 _ACEOF
18071 rm -f conftest.$ac_objext conftest$ac_exeext
18072 if { (ac_try="$ac_link"
18073 case "(($ac_try" in
18074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075   *) ac_try_echo=$ac_try;;
18076 esac
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078   (eval "$ac_link") 2>conftest.er1
18079   ac_status=$?
18080   grep -v '^ *+' conftest.er1 >conftest.err
18081   rm -f conftest.er1
18082   cat conftest.err >&5
18083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); } && {
18085          test -z "$ac_c_werror_flag" ||
18086          test ! -s conftest.err
18087        } && test -s conftest$ac_exeext &&
18088        $as_test_x conftest$ac_exeext; then
18089   :
18090 else
18091   echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094         ac_cv_sys_largefile_CFLAGS=no
18095 fi
18096
18097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18098       conftest$ac_exeext conftest.$ac_ext
18099              CC="$ac_save_CC"
18100            esac
18101       }
18102 fi
18103 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18104 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18105      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18106 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18107 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18108   echo $ECHO_N "(cached) $ECHO_C" >&6
18109 else
18110   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18111         ac_cv_sys_largefile_LDFLAGS=no
18112
18113       }
18114 fi
18115 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18116 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18117      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18118 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18119 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18120   echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18123         ac_cv_sys_largefile_LIBS=no
18124
18125       }
18126 fi
18127 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18128 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18129
18130      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18131        case "$ac_flag" in
18132        no) ;;
18133        -D_FILE_OFFSET_BITS=*) ;;
18134        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18135        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18136        -D?* | -I?*)
18137          case "$ac_flag" in
18138    no) ;;
18139    ?*)
18140      case "$CPPFLAGS" in
18141      '') CPPFLAGS="$ac_flag" ;;
18142      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18143      esac ;;
18144    esac ;;
18145        *)
18146          case "$ac_flag" in
18147    no) ;;
18148    ?*)
18149      case "$CFLAGS" in
18150      '') CFLAGS="$ac_flag" ;;
18151      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18152      esac ;;
18153    esac ;;
18154        esac
18155      done
18156      case "$ac_cv_sys_largefile_LDFLAGS" in
18157    no) ;;
18158    ?*)
18159      case "$LDFLAGS" in
18160      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18161      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18162      esac ;;
18163    esac
18164      case "$ac_cv_sys_largefile_LIBS" in
18165    no) ;;
18166    ?*)
18167      case "$LIBS" in
18168      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18169      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18170      esac ;;
18171    esac
18172      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18173 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18174 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18175   echo $ECHO_N "(cached) $ECHO_C" >&6
18176 else
18177   ac_cv_sys_file_offset_bits=no
18178       ac_cv_sys_file_offset_bits=64
18179       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18180         case "$ac_flag" in
18181         -D_FILE_OFFSET_BITS)
18182           ac_cv_sys_file_offset_bits=1 ;;
18183         -D_FILE_OFFSET_BITS=*)
18184           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18185         esac
18186       done
18187
18188 fi
18189 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18190 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18191    if test "$ac_cv_sys_file_offset_bits" != no; then
18192
18193 cat >>confdefs.h <<_ACEOF
18194 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18195 _ACEOF
18196
18197    fi
18198      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18199 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18200 if test "${ac_cv_sys_largefile_source+set}" = set; then
18201   echo $ECHO_N "(cached) $ECHO_C" >&6
18202 else
18203   ac_cv_sys_largefile_source=no
18204       ac_cv_sys_largefile_source=1
18205       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18206         case "$ac_flag" in
18207         -D_LARGEFILE_SOURCE)
18208           ac_cv_sys_largefile_source=1 ;;
18209         -D_LARGEFILE_SOURCE=*)
18210           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18211         esac
18212       done
18213
18214 fi
18215 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18216 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18217    if test "$ac_cv_sys_largefile_source" != no; then
18218
18219 cat >>confdefs.h <<_ACEOF
18220 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18221 _ACEOF
18222
18223    fi
18224      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18225 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18226 if test "${ac_cv_sys_large_files+set}" = set; then
18227   echo $ECHO_N "(cached) $ECHO_C" >&6
18228 else
18229   ac_cv_sys_large_files=no
18230       ac_cv_sys_large_files=1
18231       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18232         case "$ac_flag" in
18233         -D_LARGE_FILES)
18234           ac_cv_sys_large_files=1 ;;
18235         -D_LARGE_FILES=*)
18236           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18237         esac
18238       done
18239
18240 fi
18241 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18242 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18243    if test "$ac_cv_sys_large_files" != no; then
18244
18245 cat >>confdefs.h <<_ACEOF
18246 #define _LARGE_FILES $ac_cv_sys_large_files
18247 _ACEOF
18248
18249    fi
18250    fi
18251
18252
18253
18254 { echo "$as_me:$LINENO: checking for X" >&5
18255 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18256
18257
18258 # Check whether --with-x was given.
18259 if test "${with_x+set}" = set; then
18260   withval=$with_x;
18261 fi
18262
18263 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18264 if test "x$with_x" = xno; then
18265   # The user explicitly disabled X.
18266   have_x=disabled
18267 else
18268   case $x_includes,$x_libraries in #(
18269     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18270 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18271    { (exit 1); exit 1; }; };; #(
18272     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18273   echo $ECHO_N "(cached) $ECHO_C" >&6
18274 else
18275   # One or both of the vars are not set, and there is no cached value.
18276 ac_x_includes=no ac_x_libraries=no
18277 rm -f -r conftest.dir
18278 if mkdir conftest.dir; then
18279   cd conftest.dir
18280   cat >Imakefile <<'_ACEOF'
18281 incroot:
18282         @echo incroot='${INCROOT}'
18283 usrlibdir:
18284         @echo usrlibdir='${USRLIBDIR}'
18285 libdir:
18286         @echo libdir='${LIBDIR}'
18287 _ACEOF
18288   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18289     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18290     for ac_var in incroot usrlibdir libdir; do
18291       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18292     done
18293     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18294     for ac_extension in a so sl; do
18295       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18296          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18297         ac_im_usrlibdir=$ac_im_libdir; break
18298       fi
18299     done
18300     # Screen out bogus values from the imake configuration.  They are
18301     # bogus both because they are the default anyway, and because
18302     # using them would break gcc on systems where it needs fixed includes.
18303     case $ac_im_incroot in
18304         /usr/include) ac_x_includes= ;;
18305         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18306     esac
18307     case $ac_im_usrlibdir in
18308         /usr/lib | /lib) ;;
18309         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18310     esac
18311   fi
18312   cd ..
18313   rm -f -r conftest.dir
18314 fi
18315
18316 # Standard set of common directories for X headers.
18317 # Check X11 before X11Rn because it is often a symlink to the current release.
18318 ac_x_header_dirs='
18319 /usr/X11/include
18320 /usr/X11R6/include
18321 /usr/X11R5/include
18322 /usr/X11R4/include
18323
18324 /usr/include/X11
18325 /usr/include/X11R6
18326 /usr/include/X11R5
18327 /usr/include/X11R4
18328
18329 /usr/local/X11/include
18330 /usr/local/X11R6/include
18331 /usr/local/X11R5/include
18332 /usr/local/X11R4/include
18333
18334 /usr/local/include/X11
18335 /usr/local/include/X11R6
18336 /usr/local/include/X11R5
18337 /usr/local/include/X11R4
18338
18339 /usr/X386/include
18340 /usr/x386/include
18341 /usr/XFree86/include/X11
18342
18343 /usr/include
18344 /usr/local/include
18345 /usr/unsupported/include
18346 /usr/athena/include
18347 /usr/local/x11r5/include
18348 /usr/lpp/Xamples/include
18349
18350 /usr/openwin/include
18351 /usr/openwin/share/include'
18352
18353 if test "$ac_x_includes" = no; then
18354   # Guess where to find include files, by looking for Xlib.h.
18355   # First, try using that file with no special directory specified.
18356   cat >conftest.$ac_ext <<_ACEOF
18357 /* confdefs.h.  */
18358 _ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h.  */
18362 #include <X11/Xlib.h>
18363 _ACEOF
18364 if { (ac_try="$ac_cpp conftest.$ac_ext"
18365 case "(($ac_try" in
18366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367   *) ac_try_echo=$ac_try;;
18368 esac
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18371   ac_status=$?
18372   grep -v '^ *+' conftest.er1 >conftest.err
18373   rm -f conftest.er1
18374   cat conftest.err >&5
18375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376   (exit $ac_status); } >/dev/null && {
18377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18378          test ! -s conftest.err
18379        }; then
18380   # We can compile using X headers with no special include directory.
18381 ac_x_includes=
18382 else
18383   echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18385
18386   for ac_dir in $ac_x_header_dirs; do
18387   if test -r "$ac_dir/X11/Xlib.h"; then
18388     ac_x_includes=$ac_dir
18389     break
18390   fi
18391 done
18392 fi
18393
18394 rm -f conftest.err conftest.$ac_ext
18395 fi # $ac_x_includes = no
18396
18397 if test "$ac_x_libraries" = no; then
18398   # Check for the libraries.
18399   # See if we find them without any special options.
18400   # Don't add to $LIBS permanently.
18401   ac_save_LIBS=$LIBS
18402   LIBS="-lX11 $LIBS"
18403   cat >conftest.$ac_ext <<_ACEOF
18404 /* confdefs.h.  */
18405 _ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h.  */
18409 #include <X11/Xlib.h>
18410 int
18411 main ()
18412 {
18413 XrmInitialize ()
18414   ;
18415   return 0;
18416 }
18417 _ACEOF
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425   (eval "$ac_link") 2>conftest.er1
18426   ac_status=$?
18427   grep -v '^ *+' conftest.er1 >conftest.err
18428   rm -f conftest.er1
18429   cat conftest.err >&5
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } && {
18432          test -z "$ac_c_werror_flag" ||
18433          test ! -s conftest.err
18434        } && test -s conftest$ac_exeext &&
18435        $as_test_x conftest$ac_exeext; then
18436   LIBS=$ac_save_LIBS
18437 # We can link X programs with no special library path.
18438 ac_x_libraries=
18439 else
18440   echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18442
18443         LIBS=$ac_save_LIBS
18444 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18445 do
18446   # Don't even attempt the hair of trying to link an X program!
18447   for ac_extension in a so sl; do
18448     if test -r "$ac_dir/libX11.$ac_extension"; then
18449       ac_x_libraries=$ac_dir
18450       break 2
18451     fi
18452   done
18453 done
18454 fi
18455
18456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18457       conftest$ac_exeext conftest.$ac_ext
18458 fi # $ac_x_libraries = no
18459
18460 case $ac_x_includes,$ac_x_libraries in #(
18461   no,* | *,no | *\'*)
18462     # Didn't find X, or a directory has "'" in its name.
18463     ac_cv_have_x="have_x=no";; #(
18464   *)
18465     # Record where we found X for the cache.
18466     ac_cv_have_x="have_x=yes\
18467         ac_x_includes='$ac_x_includes'\
18468         ac_x_libraries='$ac_x_libraries'"
18469 esac
18470 fi
18471 ;; #(
18472     *) have_x=yes;;
18473   esac
18474   eval "$ac_cv_have_x"
18475 fi # $with_x != no
18476
18477 if test "$have_x" != yes; then
18478   { echo "$as_me:$LINENO: result: $have_x" >&5
18479 echo "${ECHO_T}$have_x" >&6; }
18480   no_x=yes
18481 else
18482   # If each of the values was on the command line, it overrides each guess.
18483   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18484   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18485   # Update the cache value to reflect the command line values.
18486   ac_cv_have_x="have_x=yes\
18487         ac_x_includes='$x_includes'\
18488         ac_x_libraries='$x_libraries'"
18489   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18490 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18491 fi
18492
18493 if test "$no_x" = yes; then
18494   # Not all programs may use this symbol, but it does not hurt to define it.
18495
18496 cat >>confdefs.h <<\_ACEOF
18497 #define X_DISPLAY_MISSING 1
18498 _ACEOF
18499
18500   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18501 else
18502   if test -n "$x_includes"; then
18503     X_CFLAGS="$X_CFLAGS -I$x_includes"
18504   fi
18505
18506   # It would also be nice to do this for all -L options, not just this one.
18507   if test -n "$x_libraries"; then
18508     X_LIBS="$X_LIBS -L$x_libraries"
18509     # For Solaris; some versions of Sun CC require a space after -R and
18510     # others require no space.  Words are not sufficient . . . .
18511     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18512 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18513     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18514     ac_xsave_c_werror_flag=$ac_c_werror_flag
18515     ac_c_werror_flag=yes
18516     cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h.  */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h.  */
18522
18523 int
18524 main ()
18525 {
18526
18527   ;
18528   return 0;
18529 }
18530 _ACEOF
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535   *) ac_try_echo=$ac_try;;
18536 esac
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538   (eval "$ac_link") 2>conftest.er1
18539   ac_status=$?
18540   grep -v '^ *+' conftest.er1 >conftest.err
18541   rm -f conftest.er1
18542   cat conftest.err >&5
18543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544   (exit $ac_status); } && {
18545          test -z "$ac_c_werror_flag" ||
18546          test ! -s conftest.err
18547        } && test -s conftest$ac_exeext &&
18548        $as_test_x conftest$ac_exeext; then
18549   { echo "$as_me:$LINENO: result: no" >&5
18550 echo "${ECHO_T}no" >&6; }
18551        X_LIBS="$X_LIBS -R$x_libraries"
18552 else
18553   echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18555
18556         LIBS="$ac_xsave_LIBS -R $x_libraries"
18557        cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 int
18565 main ()
18566 {
18567
18568   ;
18569   return 0;
18570 }
18571 _ACEOF
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (ac_try="$ac_link"
18574 case "(($ac_try" in
18575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576   *) ac_try_echo=$ac_try;;
18577 esac
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579   (eval "$ac_link") 2>conftest.er1
18580   ac_status=$?
18581   grep -v '^ *+' conftest.er1 >conftest.err
18582   rm -f conftest.er1
18583   cat conftest.err >&5
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); } && {
18586          test -z "$ac_c_werror_flag" ||
18587          test ! -s conftest.err
18588        } && test -s conftest$ac_exeext &&
18589        $as_test_x conftest$ac_exeext; then
18590   { echo "$as_me:$LINENO: result: yes" >&5
18591 echo "${ECHO_T}yes" >&6; }
18592           X_LIBS="$X_LIBS -R $x_libraries"
18593 else
18594   echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18596
18597         { echo "$as_me:$LINENO: result: neither works" >&5
18598 echo "${ECHO_T}neither works" >&6; }
18599 fi
18600
18601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18602       conftest$ac_exeext conftest.$ac_ext
18603 fi
18604
18605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18606       conftest$ac_exeext conftest.$ac_ext
18607     ac_c_werror_flag=$ac_xsave_c_werror_flag
18608     LIBS=$ac_xsave_LIBS
18609   fi
18610
18611   # Check for system-dependent libraries X programs must link with.
18612   # Do this before checking for the system-independent R6 libraries
18613   # (-lICE), since we may need -lsocket or whatever for X linking.
18614
18615   if test "$ISC" = yes; then
18616     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18617   else
18618     # Martyn Johnson says this is needed for Ultrix, if the X
18619     # libraries were built with DECnet support.  And Karl Berry says
18620     # the Alpha needs dnet_stub (dnet does not exist).
18621     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18622     cat >conftest.$ac_ext <<_ACEOF
18623 /* confdefs.h.  */
18624 _ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h.  */
18628
18629 /* Override any GCC internal prototype to avoid an error.
18630    Use char because int might match the return type of a GCC
18631    builtin and then its argument prototype would still apply.  */
18632 #ifdef __cplusplus
18633 extern "C"
18634 #endif
18635 char XOpenDisplay ();
18636 int
18637 main ()
18638 {
18639 return XOpenDisplay ();
18640   ;
18641   return 0;
18642 }
18643 _ACEOF
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (ac_try="$ac_link"
18646 case "(($ac_try" in
18647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648   *) ac_try_echo=$ac_try;;
18649 esac
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651   (eval "$ac_link") 2>conftest.er1
18652   ac_status=$?
18653   grep -v '^ *+' conftest.er1 >conftest.err
18654   rm -f conftest.er1
18655   cat conftest.err >&5
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } && {
18658          test -z "$ac_c_werror_flag" ||
18659          test ! -s conftest.err
18660        } && test -s conftest$ac_exeext &&
18661        $as_test_x conftest$ac_exeext; then
18662   :
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18668 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18669 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18670   echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672   ac_check_lib_save_LIBS=$LIBS
18673 LIBS="-ldnet  $LIBS"
18674 cat >conftest.$ac_ext <<_ACEOF
18675 /* confdefs.h.  */
18676 _ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h.  */
18680
18681 /* Override any GCC internal prototype to avoid an error.
18682    Use char because int might match the return type of a GCC
18683    builtin and then its argument prototype would still apply.  */
18684 #ifdef __cplusplus
18685 extern "C"
18686 #endif
18687 char dnet_ntoa ();
18688 int
18689 main ()
18690 {
18691 return dnet_ntoa ();
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (ac_try="$ac_link"
18698 case "(($ac_try" in
18699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700   *) ac_try_echo=$ac_try;;
18701 esac
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703   (eval "$ac_link") 2>conftest.er1
18704   ac_status=$?
18705   grep -v '^ *+' conftest.er1 >conftest.err
18706   rm -f conftest.er1
18707   cat conftest.err >&5
18708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709   (exit $ac_status); } && {
18710          test -z "$ac_c_werror_flag" ||
18711          test ! -s conftest.err
18712        } && test -s conftest$ac_exeext &&
18713        $as_test_x conftest$ac_exeext; then
18714   ac_cv_lib_dnet_dnet_ntoa=yes
18715 else
18716   echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18718
18719         ac_cv_lib_dnet_dnet_ntoa=no
18720 fi
18721
18722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18723       conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18725 fi
18726 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18727 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18728 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18729   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18730 fi
18731
18732     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18733       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18734 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18735 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18736   echo $ECHO_N "(cached) $ECHO_C" >&6
18737 else
18738   ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-ldnet_stub  $LIBS"
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h.  */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h.  */
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748    Use char because int might match the return type of a GCC
18749    builtin and then its argument prototype would still apply.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char dnet_ntoa ();
18754 int
18755 main ()
18756 {
18757 return dnet_ntoa ();
18758   ;
18759   return 0;
18760 }
18761 _ACEOF
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766   *) ac_try_echo=$ac_try;;
18767 esac
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769   (eval "$ac_link") 2>conftest.er1
18770   ac_status=$?
18771   grep -v '^ *+' conftest.er1 >conftest.err
18772   rm -f conftest.er1
18773   cat conftest.err >&5
18774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775   (exit $ac_status); } && {
18776          test -z "$ac_c_werror_flag" ||
18777          test ! -s conftest.err
18778        } && test -s conftest$ac_exeext &&
18779        $as_test_x conftest$ac_exeext; then
18780   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18781 else
18782   echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18784
18785         ac_cv_lib_dnet_stub_dnet_ntoa=no
18786 fi
18787
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789       conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18791 fi
18792 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18793 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18794 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18795   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18796 fi
18797
18798     fi
18799 fi
18800
18801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18802       conftest$ac_exeext conftest.$ac_ext
18803     LIBS="$ac_xsave_LIBS"
18804
18805     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18806     # to get the SysV transport functions.
18807     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18808     # needs -lnsl.
18809     # The nsl library prevents programs from opening the X display
18810     # on Irix 5.2, according to T.E. Dickey.
18811     # The functions gethostbyname, getservbyname, and inet_addr are
18812     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18813     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18814 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18815 if test "${ac_cv_func_gethostbyname+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18826 #define gethostbyname innocuous_gethostbyname
18827
18828 /* System header to define __stub macros and hopefully few prototypes,
18829     which can conflict with char gethostbyname (); below.
18830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18831     <limits.h> exists even on freestanding compilers.  */
18832
18833 #ifdef __STDC__
18834 # include <limits.h>
18835 #else
18836 # include <assert.h>
18837 #endif
18838
18839 #undef gethostbyname
18840
18841 /* Override any GCC internal prototype to avoid an error.
18842    Use char because int might match the return type of a GCC
18843    builtin and then its argument prototype would still apply.  */
18844 #ifdef __cplusplus
18845 extern "C"
18846 #endif
18847 char gethostbyname ();
18848 /* The GNU C library defines this for functions which it implements
18849     to always fail with ENOSYS.  Some functions are actually named
18850     something starting with __ and the normal name is an alias.  */
18851 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18852 choke me
18853 #endif
18854
18855 int
18856 main ()
18857 {
18858 return gethostbyname ();
18859   ;
18860   return 0;
18861 }
18862 _ACEOF
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (ac_try="$ac_link"
18865 case "(($ac_try" in
18866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867   *) ac_try_echo=$ac_try;;
18868 esac
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870   (eval "$ac_link") 2>conftest.er1
18871   ac_status=$?
18872   grep -v '^ *+' conftest.er1 >conftest.err
18873   rm -f conftest.er1
18874   cat conftest.err >&5
18875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876   (exit $ac_status); } && {
18877          test -z "$ac_c_werror_flag" ||
18878          test ! -s conftest.err
18879        } && test -s conftest$ac_exeext &&
18880        $as_test_x conftest$ac_exeext; then
18881   ac_cv_func_gethostbyname=yes
18882 else
18883   echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886         ac_cv_func_gethostbyname=no
18887 fi
18888
18889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18890       conftest$ac_exeext conftest.$ac_ext
18891 fi
18892 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18893 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18894
18895     if test $ac_cv_func_gethostbyname = no; then
18896       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18897 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18898 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18899   echo $ECHO_N "(cached) $ECHO_C" >&6
18900 else
18901   ac_check_lib_save_LIBS=$LIBS
18902 LIBS="-lnsl  $LIBS"
18903 cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909
18910 /* Override any GCC internal prototype to avoid an error.
18911    Use char because int might match the return type of a GCC
18912    builtin and then its argument prototype would still apply.  */
18913 #ifdef __cplusplus
18914 extern "C"
18915 #endif
18916 char gethostbyname ();
18917 int
18918 main ()
18919 {
18920 return gethostbyname ();
18921   ;
18922   return 0;
18923 }
18924 _ACEOF
18925 rm -f conftest.$ac_objext conftest$ac_exeext
18926 if { (ac_try="$ac_link"
18927 case "(($ac_try" in
18928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929   *) ac_try_echo=$ac_try;;
18930 esac
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932   (eval "$ac_link") 2>conftest.er1
18933   ac_status=$?
18934   grep -v '^ *+' conftest.er1 >conftest.err
18935   rm -f conftest.er1
18936   cat conftest.err >&5
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); } && {
18939          test -z "$ac_c_werror_flag" ||
18940          test ! -s conftest.err
18941        } && test -s conftest$ac_exeext &&
18942        $as_test_x conftest$ac_exeext; then
18943   ac_cv_lib_nsl_gethostbyname=yes
18944 else
18945   echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18947
18948         ac_cv_lib_nsl_gethostbyname=no
18949 fi
18950
18951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18952       conftest$ac_exeext conftest.$ac_ext
18953 LIBS=$ac_check_lib_save_LIBS
18954 fi
18955 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18956 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18957 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18958   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18959 fi
18960
18961       if test $ac_cv_lib_nsl_gethostbyname = no; then
18962         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18963 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18964 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18965   echo $ECHO_N "(cached) $ECHO_C" >&6
18966 else
18967   ac_check_lib_save_LIBS=$LIBS
18968 LIBS="-lbsd  $LIBS"
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975
18976 /* Override any GCC internal prototype to avoid an error.
18977    Use char because int might match the return type of a GCC
18978    builtin and then its argument prototype would still apply.  */
18979 #ifdef __cplusplus
18980 extern "C"
18981 #endif
18982 char gethostbyname ();
18983 int
18984 main ()
18985 {
18986 return gethostbyname ();
18987   ;
18988   return 0;
18989 }
18990 _ACEOF
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (ac_try="$ac_link"
18993 case "(($ac_try" in
18994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995   *) ac_try_echo=$ac_try;;
18996 esac
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998   (eval "$ac_link") 2>conftest.er1
18999   ac_status=$?
19000   grep -v '^ *+' conftest.er1 >conftest.err
19001   rm -f conftest.er1
19002   cat conftest.err >&5
19003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004   (exit $ac_status); } && {
19005          test -z "$ac_c_werror_flag" ||
19006          test ! -s conftest.err
19007        } && test -s conftest$ac_exeext &&
19008        $as_test_x conftest$ac_exeext; then
19009   ac_cv_lib_bsd_gethostbyname=yes
19010 else
19011   echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19013
19014         ac_cv_lib_bsd_gethostbyname=no
19015 fi
19016
19017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19018       conftest$ac_exeext conftest.$ac_ext
19019 LIBS=$ac_check_lib_save_LIBS
19020 fi
19021 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19022 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19023 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19024   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19025 fi
19026
19027       fi
19028     fi
19029
19030     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19031     # socket/setsockopt and other routines are undefined under SCO ODT
19032     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19033     # on later versions), says Simon Leinen: it contains gethostby*
19034     # variants that don't use the name server (or something).  -lsocket
19035     # must be given before -lnsl if both are needed.  We assume that
19036     # if connect needs -lnsl, so does gethostbyname.
19037     { echo "$as_me:$LINENO: checking for connect" >&5
19038 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19039 if test "${ac_cv_func_connect+set}" = set; then
19040   echo $ECHO_N "(cached) $ECHO_C" >&6
19041 else
19042   cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h.  */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h.  */
19048 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19050 #define connect innocuous_connect
19051
19052 /* System header to define __stub macros and hopefully few prototypes,
19053     which can conflict with char connect (); below.
19054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19055     <limits.h> exists even on freestanding compilers.  */
19056
19057 #ifdef __STDC__
19058 # include <limits.h>
19059 #else
19060 # include <assert.h>
19061 #endif
19062
19063 #undef connect
19064
19065 /* Override any GCC internal prototype to avoid an error.
19066    Use char because int might match the return type of a GCC
19067    builtin and then its argument prototype would still apply.  */
19068 #ifdef __cplusplus
19069 extern "C"
19070 #endif
19071 char connect ();
19072 /* The GNU C library defines this for functions which it implements
19073     to always fail with ENOSYS.  Some functions are actually named
19074     something starting with __ and the normal name is an alias.  */
19075 #if defined __stub_connect || defined __stub___connect
19076 choke me
19077 #endif
19078
19079 int
19080 main ()
19081 {
19082 return connect ();
19083   ;
19084   return 0;
19085 }
19086 _ACEOF
19087 rm -f conftest.$ac_objext conftest$ac_exeext
19088 if { (ac_try="$ac_link"
19089 case "(($ac_try" in
19090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091   *) ac_try_echo=$ac_try;;
19092 esac
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094   (eval "$ac_link") 2>conftest.er1
19095   ac_status=$?
19096   grep -v '^ *+' conftest.er1 >conftest.err
19097   rm -f conftest.er1
19098   cat conftest.err >&5
19099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100   (exit $ac_status); } && {
19101          test -z "$ac_c_werror_flag" ||
19102          test ! -s conftest.err
19103        } && test -s conftest$ac_exeext &&
19104        $as_test_x conftest$ac_exeext; then
19105   ac_cv_func_connect=yes
19106 else
19107   echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19109
19110         ac_cv_func_connect=no
19111 fi
19112
19113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19114       conftest$ac_exeext conftest.$ac_ext
19115 fi
19116 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19117 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19118
19119     if test $ac_cv_func_connect = no; then
19120       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19121 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19122 if test "${ac_cv_lib_socket_connect+set}" = set; then
19123   echo $ECHO_N "(cached) $ECHO_C" >&6
19124 else
19125   ac_check_lib_save_LIBS=$LIBS
19126 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19127 cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133
19134 /* Override any GCC internal prototype to avoid an error.
19135    Use char because int might match the return type of a GCC
19136    builtin and then its argument prototype would still apply.  */
19137 #ifdef __cplusplus
19138 extern "C"
19139 #endif
19140 char connect ();
19141 int
19142 main ()
19143 {
19144 return connect ();
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (ac_try="$ac_link"
19151 case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_link") 2>conftest.er1
19157   ac_status=$?
19158   grep -v '^ *+' conftest.er1 >conftest.err
19159   rm -f conftest.er1
19160   cat conftest.err >&5
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); } && {
19163          test -z "$ac_c_werror_flag" ||
19164          test ! -s conftest.err
19165        } && test -s conftest$ac_exeext &&
19166        $as_test_x conftest$ac_exeext; then
19167   ac_cv_lib_socket_connect=yes
19168 else
19169   echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19171
19172         ac_cv_lib_socket_connect=no
19173 fi
19174
19175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19176       conftest$ac_exeext conftest.$ac_ext
19177 LIBS=$ac_check_lib_save_LIBS
19178 fi
19179 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19180 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19181 if test $ac_cv_lib_socket_connect = yes; then
19182   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19183 fi
19184
19185     fi
19186
19187     # Guillermo Gomez says -lposix is necessary on A/UX.
19188     { echo "$as_me:$LINENO: checking for remove" >&5
19189 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19190 if test "${ac_cv_func_remove+set}" = set; then
19191   echo $ECHO_N "(cached) $ECHO_C" >&6
19192 else
19193   cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h.  */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h.  */
19199 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19201 #define remove innocuous_remove
19202
19203 /* System header to define __stub macros and hopefully few prototypes,
19204     which can conflict with char remove (); below.
19205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19206     <limits.h> exists even on freestanding compilers.  */
19207
19208 #ifdef __STDC__
19209 # include <limits.h>
19210 #else
19211 # include <assert.h>
19212 #endif
19213
19214 #undef remove
19215
19216 /* Override any GCC internal prototype to avoid an error.
19217    Use char because int might match the return type of a GCC
19218    builtin and then its argument prototype would still apply.  */
19219 #ifdef __cplusplus
19220 extern "C"
19221 #endif
19222 char remove ();
19223 /* The GNU C library defines this for functions which it implements
19224     to always fail with ENOSYS.  Some functions are actually named
19225     something starting with __ and the normal name is an alias.  */
19226 #if defined __stub_remove || defined __stub___remove
19227 choke me
19228 #endif
19229
19230 int
19231 main ()
19232 {
19233 return remove ();
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242   *) ac_try_echo=$ac_try;;
19243 esac
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245   (eval "$ac_link") 2>conftest.er1
19246   ac_status=$?
19247   grep -v '^ *+' conftest.er1 >conftest.err
19248   rm -f conftest.er1
19249   cat conftest.err >&5
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); } && {
19252          test -z "$ac_c_werror_flag" ||
19253          test ! -s conftest.err
19254        } && test -s conftest$ac_exeext &&
19255        $as_test_x conftest$ac_exeext; then
19256   ac_cv_func_remove=yes
19257 else
19258   echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261         ac_cv_func_remove=no
19262 fi
19263
19264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19265       conftest$ac_exeext conftest.$ac_ext
19266 fi
19267 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19268 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19269
19270     if test $ac_cv_func_remove = no; then
19271       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19272 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_posix_remove+set}" = set; then
19274   echo $ECHO_N "(cached) $ECHO_C" >&6
19275 else
19276   ac_check_lib_save_LIBS=$LIBS
19277 LIBS="-lposix  $LIBS"
19278 cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284
19285 /* Override any GCC internal prototype to avoid an error.
19286    Use char because int might match the return type of a GCC
19287    builtin and then its argument prototype would still apply.  */
19288 #ifdef __cplusplus
19289 extern "C"
19290 #endif
19291 char remove ();
19292 int
19293 main ()
19294 {
19295 return remove ();
19296   ;
19297   return 0;
19298 }
19299 _ACEOF
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_link") 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } && {
19314          test -z "$ac_c_werror_flag" ||
19315          test ! -s conftest.err
19316        } && test -s conftest$ac_exeext &&
19317        $as_test_x conftest$ac_exeext; then
19318   ac_cv_lib_posix_remove=yes
19319 else
19320   echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19322
19323         ac_cv_lib_posix_remove=no
19324 fi
19325
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327       conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19329 fi
19330 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19331 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19332 if test $ac_cv_lib_posix_remove = yes; then
19333   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19334 fi
19335
19336     fi
19337
19338     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19339     { echo "$as_me:$LINENO: checking for shmat" >&5
19340 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19341 if test "${ac_cv_func_shmat+set}" = set; then
19342   echo $ECHO_N "(cached) $ECHO_C" >&6
19343 else
19344   cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h.  */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h.  */
19350 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19352 #define shmat innocuous_shmat
19353
19354 /* System header to define __stub macros and hopefully few prototypes,
19355     which can conflict with char shmat (); below.
19356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19357     <limits.h> exists even on freestanding compilers.  */
19358
19359 #ifdef __STDC__
19360 # include <limits.h>
19361 #else
19362 # include <assert.h>
19363 #endif
19364
19365 #undef shmat
19366
19367 /* Override any GCC internal prototype to avoid an error.
19368    Use char because int might match the return type of a GCC
19369    builtin and then its argument prototype would still apply.  */
19370 #ifdef __cplusplus
19371 extern "C"
19372 #endif
19373 char shmat ();
19374 /* The GNU C library defines this for functions which it implements
19375     to always fail with ENOSYS.  Some functions are actually named
19376     something starting with __ and the normal name is an alias.  */
19377 #if defined __stub_shmat || defined __stub___shmat
19378 choke me
19379 #endif
19380
19381 int
19382 main ()
19383 {
19384 return shmat ();
19385   ;
19386   return 0;
19387 }
19388 _ACEOF
19389 rm -f conftest.$ac_objext conftest$ac_exeext
19390 if { (ac_try="$ac_link"
19391 case "(($ac_try" in
19392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393   *) ac_try_echo=$ac_try;;
19394 esac
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396   (eval "$ac_link") 2>conftest.er1
19397   ac_status=$?
19398   grep -v '^ *+' conftest.er1 >conftest.err
19399   rm -f conftest.er1
19400   cat conftest.err >&5
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); } && {
19403          test -z "$ac_c_werror_flag" ||
19404          test ! -s conftest.err
19405        } && test -s conftest$ac_exeext &&
19406        $as_test_x conftest$ac_exeext; then
19407   ac_cv_func_shmat=yes
19408 else
19409   echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19411
19412         ac_cv_func_shmat=no
19413 fi
19414
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416       conftest$ac_exeext conftest.$ac_ext
19417 fi
19418 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19419 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19420
19421     if test $ac_cv_func_shmat = no; then
19422       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19423 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19424 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19425   echo $ECHO_N "(cached) $ECHO_C" >&6
19426 else
19427   ac_check_lib_save_LIBS=$LIBS
19428 LIBS="-lipc  $LIBS"
19429 cat >conftest.$ac_ext <<_ACEOF
19430 /* confdefs.h.  */
19431 _ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h.  */
19435
19436 /* Override any GCC internal prototype to avoid an error.
19437    Use char because int might match the return type of a GCC
19438    builtin and then its argument prototype would still apply.  */
19439 #ifdef __cplusplus
19440 extern "C"
19441 #endif
19442 char shmat ();
19443 int
19444 main ()
19445 {
19446 return shmat ();
19447   ;
19448   return 0;
19449 }
19450 _ACEOF
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455   *) ac_try_echo=$ac_try;;
19456 esac
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458   (eval "$ac_link") 2>conftest.er1
19459   ac_status=$?
19460   grep -v '^ *+' conftest.er1 >conftest.err
19461   rm -f conftest.er1
19462   cat conftest.err >&5
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); } && {
19465          test -z "$ac_c_werror_flag" ||
19466          test ! -s conftest.err
19467        } && test -s conftest$ac_exeext &&
19468        $as_test_x conftest$ac_exeext; then
19469   ac_cv_lib_ipc_shmat=yes
19470 else
19471   echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19473
19474         ac_cv_lib_ipc_shmat=no
19475 fi
19476
19477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19478       conftest$ac_exeext conftest.$ac_ext
19479 LIBS=$ac_check_lib_save_LIBS
19480 fi
19481 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19482 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19483 if test $ac_cv_lib_ipc_shmat = yes; then
19484   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19485 fi
19486
19487     fi
19488   fi
19489
19490   # Check for libraries that X11R6 Xt/Xaw programs need.
19491   ac_save_LDFLAGS=$LDFLAGS
19492   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19493   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19494   # check for ICE first), but we must link in the order -lSM -lICE or
19495   # we get undefined symbols.  So assume we have SM if we have ICE.
19496   # These have to be linked with before -lX11, unlike the other
19497   # libraries we check for below, so use a different variable.
19498   # John Interrante, Karl Berry
19499   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19500 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19501 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19502   echo $ECHO_N "(cached) $ECHO_C" >&6
19503 else
19504   ac_check_lib_save_LIBS=$LIBS
19505 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19506 cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h.  */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h.  */
19512
19513 /* Override any GCC internal prototype to avoid an error.
19514    Use char because int might match the return type of a GCC
19515    builtin and then its argument prototype would still apply.  */
19516 #ifdef __cplusplus
19517 extern "C"
19518 #endif
19519 char IceConnectionNumber ();
19520 int
19521 main ()
19522 {
19523 return IceConnectionNumber ();
19524   ;
19525   return 0;
19526 }
19527 _ACEOF
19528 rm -f conftest.$ac_objext conftest$ac_exeext
19529 if { (ac_try="$ac_link"
19530 case "(($ac_try" in
19531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532   *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535   (eval "$ac_link") 2>conftest.er1
19536   ac_status=$?
19537   grep -v '^ *+' conftest.er1 >conftest.err
19538   rm -f conftest.er1
19539   cat conftest.err >&5
19540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541   (exit $ac_status); } && {
19542          test -z "$ac_c_werror_flag" ||
19543          test ! -s conftest.err
19544        } && test -s conftest$ac_exeext &&
19545        $as_test_x conftest$ac_exeext; then
19546   ac_cv_lib_ICE_IceConnectionNumber=yes
19547 else
19548   echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19550
19551         ac_cv_lib_ICE_IceConnectionNumber=no
19552 fi
19553
19554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19555       conftest$ac_exeext conftest.$ac_ext
19556 LIBS=$ac_check_lib_save_LIBS
19557 fi
19558 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19559 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19560 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19561   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19562 fi
19563
19564   LDFLAGS=$ac_save_LDFLAGS
19565
19566 fi
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599 for ac_header in \
19600         assert.h \
19601         fcntl.h \
19602         grp.h \
19603         pwd.h \
19604         libc.h \
19605         limits.h \
19606         stdarg.h \
19607         stdlib.h \
19608         stdint.h \
19609         string.h \
19610         strings.h \
19611         termios.h \
19612         termcap.h \
19613         term.h \
19614         unistd.h \
19615         sys/bitypes.h \
19616         sys/byteorder.h \
19617         sys/ioctl.h \
19618         sys/select.h \
19619         sys/socket.h \
19620         sys/sockio.h \
19621         sys/stat.h \
19622         sys/time.h \
19623         sys/types.h \
19624         arpa/nameser.h \
19625         resolv.h \
19626         mtio.h \
19627         sys/mtio.h \
19628         sys/tape.h \
19629         regex.h \
19630
19631 do
19632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19637   echo $ECHO_N "(cached) $ECHO_C" >&6
19638 fi
19639 ac_res=`eval echo '${'$as_ac_Header'}'`
19640                { echo "$as_me:$LINENO: result: $ac_res" >&5
19641 echo "${ECHO_T}$ac_res" >&6; }
19642 else
19643   # Is the header compilable?
19644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h.  */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h.  */
19652 $ac_includes_default
19653 #include <$ac_header>
19654 _ACEOF
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659   *) ac_try_echo=$ac_try;;
19660 esac
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662   (eval "$ac_compile") 2>conftest.er1
19663   ac_status=$?
19664   grep -v '^ *+' conftest.er1 >conftest.err
19665   rm -f conftest.er1
19666   cat conftest.err >&5
19667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668   (exit $ac_status); } && {
19669          test -z "$ac_c_werror_flag" ||
19670          test ! -s conftest.err
19671        } && test -s conftest.$ac_objext; then
19672   ac_header_compiler=yes
19673 else
19674   echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677         ac_header_compiler=no
19678 fi
19679
19680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19682 echo "${ECHO_T}$ac_header_compiler" >&6; }
19683
19684 # Is the header present?
19685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19687 cat >conftest.$ac_ext <<_ACEOF
19688 /* confdefs.h.  */
19689 _ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h.  */
19693 #include <$ac_header>
19694 _ACEOF
19695 if { (ac_try="$ac_cpp conftest.$ac_ext"
19696 case "(($ac_try" in
19697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698   *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19702   ac_status=$?
19703   grep -v '^ *+' conftest.er1 >conftest.err
19704   rm -f conftest.er1
19705   cat conftest.err >&5
19706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707   (exit $ac_status); } >/dev/null && {
19708          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19709          test ! -s conftest.err
19710        }; then
19711   ac_header_preproc=yes
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716   ac_header_preproc=no
19717 fi
19718
19719 rm -f conftest.err conftest.$ac_ext
19720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19721 echo "${ECHO_T}$ac_header_preproc" >&6; }
19722
19723 # So?  What about this header?
19724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19725   yes:no: )
19726     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19730     ac_header_preproc=yes
19731     ;;
19732   no:yes:* )
19733     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19735     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19736 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19737     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19739     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19740 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19741     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19743     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19745
19746     ;;
19747 esac
19748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751   echo $ECHO_N "(cached) $ECHO_C" >&6
19752 else
19753   eval "$as_ac_Header=\$ac_header_preproc"
19754 fi
19755 ac_res=`eval echo '${'$as_ac_Header'}'`
19756                { echo "$as_me:$LINENO: result: $ac_res" >&5
19757 echo "${ECHO_T}$ac_res" >&6; }
19758
19759 fi
19760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19761   cat >>confdefs.h <<_ACEOF
19762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19763 _ACEOF
19764
19765 fi
19766
19767 done
19768
19769 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19771 if test "${ac_cv_header_stdc+set}" = set; then
19772   echo $ECHO_N "(cached) $ECHO_C" >&6
19773 else
19774   cat >conftest.$ac_ext <<_ACEOF
19775 /* confdefs.h.  */
19776 _ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h.  */
19780 #include <stdlib.h>
19781 #include <stdarg.h>
19782 #include <string.h>
19783 #include <float.h>
19784
19785 int
19786 main ()
19787 {
19788
19789   ;
19790   return 0;
19791 }
19792 _ACEOF
19793 rm -f conftest.$ac_objext
19794 if { (ac_try="$ac_compile"
19795 case "(($ac_try" in
19796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797   *) ac_try_echo=$ac_try;;
19798 esac
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800   (eval "$ac_compile") 2>conftest.er1
19801   ac_status=$?
19802   grep -v '^ *+' conftest.er1 >conftest.err
19803   rm -f conftest.er1
19804   cat conftest.err >&5
19805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806   (exit $ac_status); } && {
19807          test -z "$ac_c_werror_flag" ||
19808          test ! -s conftest.err
19809        } && test -s conftest.$ac_objext; then
19810   ac_cv_header_stdc=yes
19811 else
19812   echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19814
19815         ac_cv_header_stdc=no
19816 fi
19817
19818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19819
19820 if test $ac_cv_header_stdc = yes; then
19821   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19822   cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h.  */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h.  */
19828 #include <string.h>
19829
19830 _ACEOF
19831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19832   $EGREP "memchr" >/dev/null 2>&1; then
19833   :
19834 else
19835   ac_cv_header_stdc=no
19836 fi
19837 rm -f conftest*
19838
19839 fi
19840
19841 if test $ac_cv_header_stdc = yes; then
19842   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19843   cat >conftest.$ac_ext <<_ACEOF
19844 /* confdefs.h.  */
19845 _ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h.  */
19849 #include <stdlib.h>
19850
19851 _ACEOF
19852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19853   $EGREP "free" >/dev/null 2>&1; then
19854   :
19855 else
19856   ac_cv_header_stdc=no
19857 fi
19858 rm -f conftest*
19859
19860 fi
19861
19862 if test $ac_cv_header_stdc = yes; then
19863   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19864   if test "$cross_compiling" = yes; then
19865   :
19866 else
19867   cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873 #include <ctype.h>
19874 #include <stdlib.h>
19875 #if ((' ' & 0x0FF) == 0x020)
19876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19878 #else
19879 # define ISLOWER(c) \
19880                    (('a' <= (c) && (c) <= 'i') \
19881                      || ('j' <= (c) && (c) <= 'r') \
19882                      || ('s' <= (c) && (c) <= 'z'))
19883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19884 #endif
19885
19886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19887 int
19888 main ()
19889 {
19890   int i;
19891   for (i = 0; i < 256; i++)
19892     if (XOR (islower (i), ISLOWER (i))
19893         || toupper (i) != TOUPPER (i))
19894       return 2;
19895   return 0;
19896 }
19897 _ACEOF
19898 rm -f conftest$ac_exeext
19899 if { (ac_try="$ac_link"
19900 case "(($ac_try" in
19901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902   *) ac_try_echo=$ac_try;;
19903 esac
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905   (eval "$ac_link") 2>&5
19906   ac_status=$?
19907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19909   { (case "(($ac_try" in
19910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911   *) ac_try_echo=$ac_try;;
19912 esac
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914   (eval "$ac_try") 2>&5
19915   ac_status=$?
19916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917   (exit $ac_status); }; }; then
19918   :
19919 else
19920   echo "$as_me: program exited with status $ac_status" >&5
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19923
19924 ( exit $ac_status )
19925 ac_cv_header_stdc=no
19926 fi
19927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19928 fi
19929
19930
19931 fi
19932 fi
19933 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19934 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19935 if test $ac_cv_header_stdc = yes; then
19936
19937 cat >>confdefs.h <<\_ACEOF
19938 #define STDC_HEADERS 1
19939 _ACEOF
19940
19941 fi
19942
19943 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19944 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19945 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19946   echo $ECHO_N "(cached) $ECHO_C" >&6
19947 else
19948   cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <sys/types.h>
19955 int
19956 main ()
19957 {
19958 return makedev(0, 0);
19959   ;
19960   return 0;
19961 }
19962 _ACEOF
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967   *) ac_try_echo=$ac_try;;
19968 esac
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970   (eval "$ac_link") 2>conftest.er1
19971   ac_status=$?
19972   grep -v '^ *+' conftest.er1 >conftest.err
19973   rm -f conftest.er1
19974   cat conftest.err >&5
19975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976   (exit $ac_status); } && {
19977          test -z "$ac_c_werror_flag" ||
19978          test ! -s conftest.err
19979        } && test -s conftest$ac_exeext &&
19980        $as_test_x conftest$ac_exeext; then
19981   ac_cv_header_sys_types_h_makedev=yes
19982 else
19983   echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19985
19986         ac_cv_header_sys_types_h_makedev=no
19987 fi
19988
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990       conftest$ac_exeext conftest.$ac_ext
19991
19992 fi
19993 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19994 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19995
19996 if test $ac_cv_header_sys_types_h_makedev = no; then
19997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19998   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19999 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20000 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20001   echo $ECHO_N "(cached) $ECHO_C" >&6
20002 fi
20003 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20004 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20005 else
20006   # Is the header compilable?
20007 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20008 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20009 cat >conftest.$ac_ext <<_ACEOF
20010 /* confdefs.h.  */
20011 _ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h.  */
20015 $ac_includes_default
20016 #include <sys/mkdev.h>
20017 _ACEOF
20018 rm -f conftest.$ac_objext
20019 if { (ac_try="$ac_compile"
20020 case "(($ac_try" in
20021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022   *) ac_try_echo=$ac_try;;
20023 esac
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025   (eval "$ac_compile") 2>conftest.er1
20026   ac_status=$?
20027   grep -v '^ *+' conftest.er1 >conftest.err
20028   rm -f conftest.er1
20029   cat conftest.err >&5
20030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031   (exit $ac_status); } && {
20032          test -z "$ac_c_werror_flag" ||
20033          test ! -s conftest.err
20034        } && test -s conftest.$ac_objext; then
20035   ac_header_compiler=yes
20036 else
20037   echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20039
20040         ac_header_compiler=no
20041 fi
20042
20043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20045 echo "${ECHO_T}$ac_header_compiler" >&6; }
20046
20047 # Is the header present?
20048 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20049 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20050 cat >conftest.$ac_ext <<_ACEOF
20051 /* confdefs.h.  */
20052 _ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h.  */
20056 #include <sys/mkdev.h>
20057 _ACEOF
20058 if { (ac_try="$ac_cpp conftest.$ac_ext"
20059 case "(($ac_try" in
20060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061   *) ac_try_echo=$ac_try;;
20062 esac
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20065   ac_status=$?
20066   grep -v '^ *+' conftest.er1 >conftest.err
20067   rm -f conftest.er1
20068   cat conftest.err >&5
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); } >/dev/null && {
20071          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20072          test ! -s conftest.err
20073        }; then
20074   ac_header_preproc=yes
20075 else
20076   echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079   ac_header_preproc=no
20080 fi
20081
20082 rm -f conftest.err conftest.$ac_ext
20083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20084 echo "${ECHO_T}$ac_header_preproc" >&6; }
20085
20086 # So?  What about this header?
20087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20088   yes:no: )
20089     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20090 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20091     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20092 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20093     ac_header_preproc=yes
20094     ;;
20095   no:yes:* )
20096     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20097 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20098     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20099 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20100     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20101 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20102     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20103 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20104     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20105 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20106     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20107 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20108
20109     ;;
20110 esac
20111 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20112 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20113 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20114   echo $ECHO_N "(cached) $ECHO_C" >&6
20115 else
20116   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20117 fi
20118 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20119 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20120
20121 fi
20122 if test $ac_cv_header_sys_mkdev_h = yes; then
20123
20124 cat >>confdefs.h <<\_ACEOF
20125 #define MAJOR_IN_MKDEV 1
20126 _ACEOF
20127
20128 fi
20129
20130
20131
20132   if test $ac_cv_header_sys_mkdev_h = no; then
20133     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20134   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20135 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20136 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20137   echo $ECHO_N "(cached) $ECHO_C" >&6
20138 fi
20139 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20140 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20141 else
20142   # Is the header compilable?
20143 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20144 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20145 cat >conftest.$ac_ext <<_ACEOF
20146 /* confdefs.h.  */
20147 _ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h.  */
20151 $ac_includes_default
20152 #include <sys/sysmacros.h>
20153 _ACEOF
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_compile") 2>conftest.er1
20162   ac_status=$?
20163   grep -v '^ *+' conftest.er1 >conftest.err
20164   rm -f conftest.er1
20165   cat conftest.err >&5
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); } && {
20168          test -z "$ac_c_werror_flag" ||
20169          test ! -s conftest.err
20170        } && test -s conftest.$ac_objext; then
20171   ac_header_compiler=yes
20172 else
20173   echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20175
20176         ac_header_compiler=no
20177 fi
20178
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20181 echo "${ECHO_T}$ac_header_compiler" >&6; }
20182
20183 # Is the header present?
20184 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20185 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h.  */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h.  */
20192 #include <sys/sysmacros.h>
20193 _ACEOF
20194 if { (ac_try="$ac_cpp conftest.$ac_ext"
20195 case "(($ac_try" in
20196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197   *) ac_try_echo=$ac_try;;
20198 esac
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20201   ac_status=$?
20202   grep -v '^ *+' conftest.er1 >conftest.err
20203   rm -f conftest.er1
20204   cat conftest.err >&5
20205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206   (exit $ac_status); } >/dev/null && {
20207          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20208          test ! -s conftest.err
20209        }; then
20210   ac_header_preproc=yes
20211 else
20212   echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20214
20215   ac_header_preproc=no
20216 fi
20217
20218 rm -f conftest.err conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6; }
20221
20222 # So?  What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20224   yes:no: )
20225     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20226 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20228 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20229     ac_header_preproc=yes
20230     ;;
20231   no:yes:* )
20232     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20233 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20234     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20235 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20236     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20237 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20238     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20239 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20240     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20241 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20242     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20243 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20244
20245     ;;
20246 esac
20247 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20248 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20249 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20253 fi
20254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20255 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20256
20257 fi
20258 if test $ac_cv_header_sys_sysmacros_h = yes; then
20259
20260 cat >>confdefs.h <<\_ACEOF
20261 #define MAJOR_IN_SYSMACROS 1
20262 _ACEOF
20263
20264 fi
20265
20266
20267   fi
20268 fi
20269
20270
20271
20272
20273
20274
20275 ac_header_dirent=no
20276 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20277   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20278 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20279 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20281   echo $ECHO_N "(cached) $ECHO_C" >&6
20282 else
20283   cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h.  */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h.  */
20289 #include <sys/types.h>
20290 #include <$ac_hdr>
20291
20292 int
20293 main ()
20294 {
20295 if ((DIR *) 0)
20296 return 0;
20297   ;
20298   return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext
20302 if { (ac_try="$ac_compile"
20303 case "(($ac_try" in
20304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305   *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308   (eval "$ac_compile") 2>conftest.er1
20309   ac_status=$?
20310   grep -v '^ *+' conftest.er1 >conftest.err
20311   rm -f conftest.er1
20312   cat conftest.err >&5
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); } && {
20315          test -z "$ac_c_werror_flag" ||
20316          test ! -s conftest.err
20317        } && test -s conftest.$ac_objext; then
20318   eval "$as_ac_Header=yes"
20319 else
20320   echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323         eval "$as_ac_Header=no"
20324 fi
20325
20326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20327 fi
20328 ac_res=`eval echo '${'$as_ac_Header'}'`
20329                { echo "$as_me:$LINENO: result: $ac_res" >&5
20330 echo "${ECHO_T}$ac_res" >&6; }
20331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20332   cat >>confdefs.h <<_ACEOF
20333 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20334 _ACEOF
20335
20336 ac_header_dirent=$ac_hdr; break
20337 fi
20338
20339 done
20340 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20341 if test $ac_header_dirent = dirent.h; then
20342   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20344 if test "${ac_cv_search_opendir+set}" = set; then
20345   echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347   ac_func_search_save_LIBS=$LIBS
20348 cat >conftest.$ac_ext <<_ACEOF
20349 /* confdefs.h.  */
20350 _ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h.  */
20354
20355 /* Override any GCC internal prototype to avoid an error.
20356    Use char because int might match the return type of a GCC
20357    builtin and then its argument prototype would still apply.  */
20358 #ifdef __cplusplus
20359 extern "C"
20360 #endif
20361 char opendir ();
20362 int
20363 main ()
20364 {
20365 return opendir ();
20366   ;
20367   return 0;
20368 }
20369 _ACEOF
20370 for ac_lib in '' dir; do
20371   if test -z "$ac_lib"; then
20372     ac_res="none required"
20373   else
20374     ac_res=-l$ac_lib
20375     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20376   fi
20377   rm -f conftest.$ac_objext conftest$ac_exeext
20378 if { (ac_try="$ac_link"
20379 case "(($ac_try" in
20380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381   *) ac_try_echo=$ac_try;;
20382 esac
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384   (eval "$ac_link") 2>conftest.er1
20385   ac_status=$?
20386   grep -v '^ *+' conftest.er1 >conftest.err
20387   rm -f conftest.er1
20388   cat conftest.err >&5
20389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390   (exit $ac_status); } && {
20391          test -z "$ac_c_werror_flag" ||
20392          test ! -s conftest.err
20393        } && test -s conftest$ac_exeext &&
20394        $as_test_x conftest$ac_exeext; then
20395   ac_cv_search_opendir=$ac_res
20396 else
20397   echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400
20401 fi
20402
20403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20404       conftest$ac_exeext
20405   if test "${ac_cv_search_opendir+set}" = set; then
20406   break
20407 fi
20408 done
20409 if test "${ac_cv_search_opendir+set}" = set; then
20410   :
20411 else
20412   ac_cv_search_opendir=no
20413 fi
20414 rm conftest.$ac_ext
20415 LIBS=$ac_func_search_save_LIBS
20416 fi
20417 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20418 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20419 ac_res=$ac_cv_search_opendir
20420 if test "$ac_res" != no; then
20421   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20422
20423 fi
20424
20425 else
20426   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20427 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20428 if test "${ac_cv_search_opendir+set}" = set; then
20429   echo $ECHO_N "(cached) $ECHO_C" >&6
20430 else
20431   ac_func_search_save_LIBS=$LIBS
20432 cat >conftest.$ac_ext <<_ACEOF
20433 /* confdefs.h.  */
20434 _ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h.  */
20438
20439 /* Override any GCC internal prototype to avoid an error.
20440    Use char because int might match the return type of a GCC
20441    builtin and then its argument prototype would still apply.  */
20442 #ifdef __cplusplus
20443 extern "C"
20444 #endif
20445 char opendir ();
20446 int
20447 main ()
20448 {
20449 return opendir ();
20450   ;
20451   return 0;
20452 }
20453 _ACEOF
20454 for ac_lib in '' x; do
20455   if test -z "$ac_lib"; then
20456     ac_res="none required"
20457   else
20458     ac_res=-l$ac_lib
20459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20460   fi
20461   rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465   *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468   (eval "$ac_link") 2>conftest.er1
20469   ac_status=$?
20470   grep -v '^ *+' conftest.er1 >conftest.err
20471   rm -f conftest.er1
20472   cat conftest.err >&5
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } && {
20475          test -z "$ac_c_werror_flag" ||
20476          test ! -s conftest.err
20477        } && test -s conftest$ac_exeext &&
20478        $as_test_x conftest$ac_exeext; then
20479   ac_cv_search_opendir=$ac_res
20480 else
20481   echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484
20485 fi
20486
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488       conftest$ac_exeext
20489   if test "${ac_cv_search_opendir+set}" = set; then
20490   break
20491 fi
20492 done
20493 if test "${ac_cv_search_opendir+set}" = set; then
20494   :
20495 else
20496   ac_cv_search_opendir=no
20497 fi
20498 rm conftest.$ac_ext
20499 LIBS=$ac_func_search_save_LIBS
20500 fi
20501 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20502 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20503 ac_res=$ac_cv_search_opendir
20504 if test "$ac_res" != no; then
20505   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20506
20507 fi
20508
20509 fi
20510
20511 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20512 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20513 if test "${ac_cv_header_stat_broken+set}" = set; then
20514   echo $ECHO_N "(cached) $ECHO_C" >&6
20515 else
20516   cat >conftest.$ac_ext <<_ACEOF
20517 /* confdefs.h.  */
20518 _ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h.  */
20522 #include <sys/types.h>
20523 #include <sys/stat.h>
20524
20525 #if defined S_ISBLK && defined S_IFDIR
20526 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20527 #endif
20528
20529 #if defined S_ISBLK && defined S_IFCHR
20530 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20531 #endif
20532
20533 #if defined S_ISLNK && defined S_IFREG
20534 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20535 #endif
20536
20537 #if defined S_ISSOCK && defined S_IFREG
20538 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20539 #endif
20540
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (ac_try="$ac_compile"
20544 case "(($ac_try" in
20545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546   *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549   (eval "$ac_compile") 2>conftest.er1
20550   ac_status=$?
20551   grep -v '^ *+' conftest.er1 >conftest.err
20552   rm -f conftest.er1
20553   cat conftest.err >&5
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); } && {
20556          test -z "$ac_c_werror_flag" ||
20557          test ! -s conftest.err
20558        } && test -s conftest.$ac_objext; then
20559   ac_cv_header_stat_broken=no
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564         ac_cv_header_stat_broken=yes
20565 fi
20566
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568 fi
20569 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20570 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20571 if test $ac_cv_header_stat_broken = yes; then
20572
20573 cat >>confdefs.h <<\_ACEOF
20574 #define STAT_MACROS_BROKEN 1
20575 _ACEOF
20576
20577 fi
20578
20579 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20580 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20581 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20582   echo $ECHO_N "(cached) $ECHO_C" >&6
20583 else
20584   cat >conftest.$ac_ext <<_ACEOF
20585 /* confdefs.h.  */
20586 _ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h.  */
20590 #include <sys/types.h>
20591 #include <sys/wait.h>
20592 #ifndef WEXITSTATUS
20593 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20594 #endif
20595 #ifndef WIFEXITED
20596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20597 #endif
20598
20599 int
20600 main ()
20601 {
20602   int s;
20603   wait (&s);
20604   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20605   ;
20606   return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613   *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616   (eval "$ac_compile") 2>conftest.er1
20617   ac_status=$?
20618   grep -v '^ *+' conftest.er1 >conftest.err
20619   rm -f conftest.er1
20620   cat conftest.err >&5
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); } && {
20623          test -z "$ac_c_werror_flag" ||
20624          test ! -s conftest.err
20625        } && test -s conftest.$ac_objext; then
20626   ac_cv_header_sys_wait_h=yes
20627 else
20628   echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20630
20631         ac_cv_header_sys_wait_h=no
20632 fi
20633
20634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20635 fi
20636 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20637 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20638 if test $ac_cv_header_sys_wait_h = yes; then
20639
20640 cat >>confdefs.h <<\_ACEOF
20641 #define HAVE_SYS_WAIT_H 1
20642 _ACEOF
20643
20644 fi
20645
20646 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20647 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20648 if test "${ac_cv_header_time+set}" = set; then
20649   echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651   cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 #include <sys/types.h>
20658 #include <sys/time.h>
20659 #include <time.h>
20660
20661 int
20662 main ()
20663 {
20664 if ((struct tm *) 0)
20665 return 0;
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 rm -f conftest.$ac_objext
20671 if { (ac_try="$ac_compile"
20672 case "(($ac_try" in
20673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674   *) ac_try_echo=$ac_try;;
20675 esac
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677   (eval "$ac_compile") 2>conftest.er1
20678   ac_status=$?
20679   grep -v '^ *+' conftest.er1 >conftest.err
20680   rm -f conftest.er1
20681   cat conftest.err >&5
20682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683   (exit $ac_status); } && {
20684          test -z "$ac_c_werror_flag" ||
20685          test ! -s conftest.err
20686        } && test -s conftest.$ac_objext; then
20687   ac_cv_header_time=yes
20688 else
20689   echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20691
20692         ac_cv_header_time=no
20693 fi
20694
20695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20696 fi
20697 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20698 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20699 if test $ac_cv_header_time = yes; then
20700
20701 cat >>confdefs.h <<\_ACEOF
20702 #define TIME_WITH_SYS_TIME 1
20703 _ACEOF
20704
20705 fi
20706
20707 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20708 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20709 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20710   echo $ECHO_N "(cached) $ECHO_C" >&6
20711 else
20712   cat >conftest.$ac_ext <<_ACEOF
20713 /* confdefs.h.  */
20714 _ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h.  */
20718 $ac_includes_default
20719 int
20720 main ()
20721 {
20722 static struct stat ac_aggr;
20723 if (ac_aggr.st_blksize)
20724 return 0;
20725   ;
20726   return 0;
20727 }
20728 _ACEOF
20729 rm -f conftest.$ac_objext
20730 if { (ac_try="$ac_compile"
20731 case "(($ac_try" in
20732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733   *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736   (eval "$ac_compile") 2>conftest.er1
20737   ac_status=$?
20738   grep -v '^ *+' conftest.er1 >conftest.err
20739   rm -f conftest.er1
20740   cat conftest.err >&5
20741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742   (exit $ac_status); } && {
20743          test -z "$ac_c_werror_flag" ||
20744          test ! -s conftest.err
20745        } && test -s conftest.$ac_objext; then
20746   ac_cv_member_struct_stat_st_blksize=yes
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751         cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757 $ac_includes_default
20758 int
20759 main ()
20760 {
20761 static struct stat ac_aggr;
20762 if (sizeof ac_aggr.st_blksize)
20763 return 0;
20764   ;
20765   return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest.$ac_objext
20769 if { (ac_try="$ac_compile"
20770 case "(($ac_try" in
20771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772   *) ac_try_echo=$ac_try;;
20773 esac
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775   (eval "$ac_compile") 2>conftest.er1
20776   ac_status=$?
20777   grep -v '^ *+' conftest.er1 >conftest.err
20778   rm -f conftest.er1
20779   cat conftest.err >&5
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); } && {
20782          test -z "$ac_c_werror_flag" ||
20783          test ! -s conftest.err
20784        } && test -s conftest.$ac_objext; then
20785   ac_cv_member_struct_stat_st_blksize=yes
20786 else
20787   echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20789
20790         ac_cv_member_struct_stat_st_blksize=no
20791 fi
20792
20793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20794 fi
20795
20796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20797 fi
20798 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20799 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20800 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20801
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20804 _ACEOF
20805
20806
20807 cat >>confdefs.h <<\_ACEOF
20808 #define HAVE_ST_BLKSIZE 1
20809 _ACEOF
20810
20811 fi
20812
20813
20814 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20815 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20816 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20817   echo $ECHO_N "(cached) $ECHO_C" >&6
20818 else
20819   cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825 $ac_includes_default
20826 int
20827 main ()
20828 {
20829 static struct stat ac_aggr;
20830 if (ac_aggr.st_blocks)
20831 return 0;
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840   *) ac_try_echo=$ac_try;;
20841 esac
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843   (eval "$ac_compile") 2>conftest.er1
20844   ac_status=$?
20845   grep -v '^ *+' conftest.er1 >conftest.err
20846   rm -f conftest.er1
20847   cat conftest.err >&5
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); } && {
20850          test -z "$ac_c_werror_flag" ||
20851          test ! -s conftest.err
20852        } && test -s conftest.$ac_objext; then
20853   ac_cv_member_struct_stat_st_blocks=yes
20854 else
20855   echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20857
20858         cat >conftest.$ac_ext <<_ACEOF
20859 /* confdefs.h.  */
20860 _ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h.  */
20864 $ac_includes_default
20865 int
20866 main ()
20867 {
20868 static struct stat ac_aggr;
20869 if (sizeof ac_aggr.st_blocks)
20870 return 0;
20871   ;
20872   return 0;
20873 }
20874 _ACEOF
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879   *) ac_try_echo=$ac_try;;
20880 esac
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882   (eval "$ac_compile") 2>conftest.er1
20883   ac_status=$?
20884   grep -v '^ *+' conftest.er1 >conftest.err
20885   rm -f conftest.er1
20886   cat conftest.err >&5
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); } && {
20889          test -z "$ac_c_werror_flag" ||
20890          test ! -s conftest.err
20891        } && test -s conftest.$ac_objext; then
20892   ac_cv_member_struct_stat_st_blocks=yes
20893 else
20894   echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20896
20897         ac_cv_member_struct_stat_st_blocks=no
20898 fi
20899
20900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20901 fi
20902
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20904 fi
20905 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20906 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20907 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20908
20909 cat >>confdefs.h <<_ACEOF
20910 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20911 _ACEOF
20912
20913
20914 cat >>confdefs.h <<\_ACEOF
20915 #define HAVE_ST_BLOCKS 1
20916 _ACEOF
20917
20918 else
20919   case " $LIBOBJS " in
20920   *" fileblocks.$ac_objext "* ) ;;
20921   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20922  ;;
20923 esac
20924
20925 fi
20926
20927
20928 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20929 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20930 if test "${ac_cv_struct_tm+set}" = set; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933   cat >conftest.$ac_ext <<_ACEOF
20934 /* confdefs.h.  */
20935 _ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h.  */
20939 #include <sys/types.h>
20940 #include <time.h>
20941
20942 int
20943 main ()
20944 {
20945 struct tm tm;
20946                                      int *p = &tm.tm_sec;
20947                                      return !p;
20948   ;
20949   return 0;
20950 }
20951 _ACEOF
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956   *) ac_try_echo=$ac_try;;
20957 esac
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959   (eval "$ac_compile") 2>conftest.er1
20960   ac_status=$?
20961   grep -v '^ *+' conftest.er1 >conftest.err
20962   rm -f conftest.er1
20963   cat conftest.err >&5
20964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965   (exit $ac_status); } && {
20966          test -z "$ac_c_werror_flag" ||
20967          test ! -s conftest.err
20968        } && test -s conftest.$ac_objext; then
20969   ac_cv_struct_tm=time.h
20970 else
20971   echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20973
20974         ac_cv_struct_tm=sys/time.h
20975 fi
20976
20977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20978 fi
20979 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20980 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20981 if test $ac_cv_struct_tm = sys/time.h; then
20982
20983 cat >>confdefs.h <<\_ACEOF
20984 #define TM_IN_SYS_TIME 1
20985 _ACEOF
20986
20987 fi
20988
20989 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20990 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20991 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20992   echo $ECHO_N "(cached) $ECHO_C" >&6
20993 else
20994   cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h.  */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h.  */
21000 #include <sys/types.h>
21001 #include <$ac_cv_struct_tm>
21002
21003
21004 int
21005 main ()
21006 {
21007 static struct tm ac_aggr;
21008 if (ac_aggr.tm_zone)
21009 return 0;
21010   ;
21011   return 0;
21012 }
21013 _ACEOF
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018   *) ac_try_echo=$ac_try;;
21019 esac
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021   (eval "$ac_compile") 2>conftest.er1
21022   ac_status=$?
21023   grep -v '^ *+' conftest.er1 >conftest.err
21024   rm -f conftest.er1
21025   cat conftest.err >&5
21026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027   (exit $ac_status); } && {
21028          test -z "$ac_c_werror_flag" ||
21029          test ! -s conftest.err
21030        } && test -s conftest.$ac_objext; then
21031   ac_cv_member_struct_tm_tm_zone=yes
21032 else
21033   echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21035
21036         cat >conftest.$ac_ext <<_ACEOF
21037 /* confdefs.h.  */
21038 _ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h.  */
21042 #include <sys/types.h>
21043 #include <$ac_cv_struct_tm>
21044
21045
21046 int
21047 main ()
21048 {
21049 static struct tm ac_aggr;
21050 if (sizeof ac_aggr.tm_zone)
21051 return 0;
21052   ;
21053   return 0;
21054 }
21055 _ACEOF
21056 rm -f conftest.$ac_objext
21057 if { (ac_try="$ac_compile"
21058 case "(($ac_try" in
21059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060   *) ac_try_echo=$ac_try;;
21061 esac
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063   (eval "$ac_compile") 2>conftest.er1
21064   ac_status=$?
21065   grep -v '^ *+' conftest.er1 >conftest.err
21066   rm -f conftest.er1
21067   cat conftest.err >&5
21068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069   (exit $ac_status); } && {
21070          test -z "$ac_c_werror_flag" ||
21071          test ! -s conftest.err
21072        } && test -s conftest.$ac_objext; then
21073   ac_cv_member_struct_tm_tm_zone=yes
21074 else
21075   echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21077
21078         ac_cv_member_struct_tm_tm_zone=no
21079 fi
21080
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 fi
21083
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21085 fi
21086 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21087 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21088 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21089
21090 cat >>confdefs.h <<_ACEOF
21091 #define HAVE_STRUCT_TM_TM_ZONE 1
21092 _ACEOF
21093
21094
21095 fi
21096
21097 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21098
21099 cat >>confdefs.h <<\_ACEOF
21100 #define HAVE_TM_ZONE 1
21101 _ACEOF
21102
21103 else
21104   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21105 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21106 if test "${ac_cv_have_decl_tzname+set}" = set; then
21107   echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109   cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h.  */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h.  */
21115 #include <time.h>
21116
21117 int
21118 main ()
21119 {
21120 #ifndef tzname
21121   (void) tzname;
21122 #endif
21123
21124   ;
21125   return 0;
21126 }
21127 _ACEOF
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132   *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135   (eval "$ac_compile") 2>conftest.er1
21136   ac_status=$?
21137   grep -v '^ *+' conftest.er1 >conftest.err
21138   rm -f conftest.er1
21139   cat conftest.err >&5
21140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141   (exit $ac_status); } && {
21142          test -z "$ac_c_werror_flag" ||
21143          test ! -s conftest.err
21144        } && test -s conftest.$ac_objext; then
21145   ac_cv_have_decl_tzname=yes
21146 else
21147   echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21149
21150         ac_cv_have_decl_tzname=no
21151 fi
21152
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21154 fi
21155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21156 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21157 if test $ac_cv_have_decl_tzname = yes; then
21158
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_DECL_TZNAME 1
21161 _ACEOF
21162
21163
21164 else
21165   cat >>confdefs.h <<_ACEOF
21166 #define HAVE_DECL_TZNAME 0
21167 _ACEOF
21168
21169
21170 fi
21171
21172
21173   { echo "$as_me:$LINENO: checking for tzname" >&5
21174 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21175 if test "${ac_cv_var_tzname+set}" = set; then
21176   echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178   cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h.  */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h.  */
21184 #include <time.h>
21185 #if !HAVE_DECL_TZNAME
21186 extern char *tzname[];
21187 #endif
21188
21189 int
21190 main ()
21191 {
21192 return tzname[0][0];
21193   ;
21194   return 0;
21195 }
21196 _ACEOF
21197 rm -f conftest.$ac_objext conftest$ac_exeext
21198 if { (ac_try="$ac_link"
21199 case "(($ac_try" in
21200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201   *) ac_try_echo=$ac_try;;
21202 esac
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204   (eval "$ac_link") 2>conftest.er1
21205   ac_status=$?
21206   grep -v '^ *+' conftest.er1 >conftest.err
21207   rm -f conftest.er1
21208   cat conftest.err >&5
21209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210   (exit $ac_status); } && {
21211          test -z "$ac_c_werror_flag" ||
21212          test ! -s conftest.err
21213        } && test -s conftest$ac_exeext &&
21214        $as_test_x conftest$ac_exeext; then
21215   ac_cv_var_tzname=yes
21216 else
21217   echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220         ac_cv_var_tzname=no
21221 fi
21222
21223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21224       conftest$ac_exeext conftest.$ac_ext
21225 fi
21226 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21227 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21228   if test $ac_cv_var_tzname = yes; then
21229
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_TZNAME 1
21232 _ACEOF
21233
21234   fi
21235 fi
21236
21237
21238 { echo "$as_me:$LINENO: checking for utime.h" >&5
21239 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21240 if test "${ba_cv_header_utime_h+set}" = set; then
21241   echo $ECHO_N "(cached) $ECHO_C" >&6
21242 else
21243   cat >conftest.$ac_ext <<_ACEOF
21244 /* confdefs.h.  */
21245 _ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h.  */
21249
21250 #include <sys/types.h>
21251 #include <utime.h>
21252 int
21253 main ()
21254 {
21255 struct utimbuf foo
21256   ;
21257   return 0;
21258 }
21259 _ACEOF
21260 rm -f conftest.$ac_objext
21261 if { (ac_try="$ac_compile"
21262 case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_compile") 2>conftest.er1
21268   ac_status=$?
21269   grep -v '^ *+' conftest.er1 >conftest.err
21270   rm -f conftest.er1
21271   cat conftest.err >&5
21272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273   (exit $ac_status); } && {
21274          test -z "$ac_c_werror_flag" ||
21275          test ! -s conftest.err
21276        } && test -s conftest.$ac_objext; then
21277   ba_cv_header_utime_h=yes
21278 else
21279   echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21281
21282         ba_cv_header_utime_h=no
21283 fi
21284
21285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21286 fi
21287 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21288 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21289 test $ba_cv_header_utime_h = yes &&
21290 cat >>confdefs.h <<\_ACEOF
21291 #define HAVE_UTIME_H 1
21292 _ACEOF
21293
21294
21295 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21296 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21297 if test "${ba_cv_header_socklen_t+set}" = set; then
21298   echo $ECHO_N "(cached) $ECHO_C" >&6
21299 else
21300   cat >conftest.$ac_ext <<_ACEOF
21301 /* confdefs.h.  */
21302 _ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h.  */
21306
21307 #include <sys/types.h>
21308 #include <sys/socket.h>
21309 int
21310 main ()
21311 {
21312 socklen_t x
21313   ;
21314   return 0;
21315 }
21316 _ACEOF
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321   *) ac_try_echo=$ac_try;;
21322 esac
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324   (eval "$ac_compile") 2>conftest.er1
21325   ac_status=$?
21326   grep -v '^ *+' conftest.er1 >conftest.err
21327   rm -f conftest.er1
21328   cat conftest.err >&5
21329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330   (exit $ac_status); } && {
21331          test -z "$ac_c_werror_flag" ||
21332          test ! -s conftest.err
21333        } && test -s conftest.$ac_objext; then
21334   ba_cv_header_socklen_t=yes
21335 else
21336   echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21338
21339         ba_cv_header_socklen_t=no
21340 fi
21341
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 fi
21344 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21345 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21346 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21347 #define HAVE_SOCKLEN_T 1
21348 _ACEOF
21349
21350
21351 { echo "$as_me:$LINENO: checking for bigendian" >&5
21352 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21353 if test "${ba_cv_bigendian+set}" = set; then
21354   echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356   if test "$cross_compiling" = yes; then
21357   ba_cv_bigendian=no
21358 else
21359   cat >conftest.$ac_ext <<_ACEOF
21360 /* confdefs.h.  */
21361 _ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h.  */
21365 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21366 _ACEOF
21367 rm -f conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_link") 2>&5
21375   ac_status=$?
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21378   { (case "(($ac_try" in
21379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380   *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383   (eval "$ac_try") 2>&5
21384   ac_status=$?
21385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386   (exit $ac_status); }; }; then
21387   ba_cv_bigendian=yes
21388 else
21389   echo "$as_me: program exited with status $ac_status" >&5
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21392
21393 ( exit $ac_status )
21394 ba_cv_bigendian=no
21395 fi
21396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21397 fi
21398
21399
21400 fi
21401 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21402 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21403 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21404 #define HAVE_BIGENDIAN 1
21405 _ACEOF
21406
21407
21408 ac_ext=cpp
21409 ac_cpp='$CXXCPP $CPPFLAGS'
21410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21413
21414
21415 { echo "$as_me:$LINENO: checking for typeof" >&5
21416 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21417 if test "${ba_cv_have_typeof+set}" = set; then
21418   echo $ECHO_N "(cached) $ECHO_C" >&6
21419 else
21420   if test "$cross_compiling" = yes; then
21421   ba_cv_have_typeof=no
21422 else
21423   cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429 main(){char *a = 0; a = (typeof a)a;}
21430 _ACEOF
21431 rm -f conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435   *) ac_try_echo=$ac_try;;
21436 esac
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438   (eval "$ac_link") 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21442   { (case "(($ac_try" in
21443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444   *) ac_try_echo=$ac_try;;
21445 esac
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447   (eval "$ac_try") 2>&5
21448   ac_status=$?
21449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450   (exit $ac_status); }; }; then
21451   ba_cv_have_typeof=yes
21452 else
21453   echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457 ( exit $ac_status )
21458 ba_cv_have_typeof=no
21459 fi
21460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21461 fi
21462
21463
21464 fi
21465 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21466 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21467 test $ba_cv_have_typeof = yes &&
21468 cat >>confdefs.h <<\_ACEOF
21469 #define HAVE_TYPEOF 1
21470 _ACEOF
21471
21472 ac_ext=c
21473 ac_cpp='$CPP $CPPFLAGS'
21474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21477
21478
21479 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21480 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21481 if test "${ac_cv_c_const+set}" = set; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484   cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h.  */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h.  */
21490
21491 int
21492 main ()
21493 {
21494 /* FIXME: Include the comments suggested by Paul. */
21495 #ifndef __cplusplus
21496   /* Ultrix mips cc rejects this.  */
21497   typedef int charset[2];
21498   const charset cs;
21499   /* SunOS 4.1.1 cc rejects this.  */
21500   char const *const *pcpcc;
21501   char **ppc;
21502   /* NEC SVR4.0.2 mips cc rejects this.  */
21503   struct point {int x, y;};
21504   static struct point const zero = {0,0};
21505   /* AIX XL C 1.02.0.0 rejects this.
21506      It does not let you subtract one const X* pointer from another in
21507      an arm of an if-expression whose if-part is not a constant
21508      expression */
21509   const char *g = "string";
21510   pcpcc = &g + (g ? g-g : 0);
21511   /* HPUX 7.0 cc rejects these. */
21512   ++pcpcc;
21513   ppc = (char**) pcpcc;
21514   pcpcc = (char const *const *) ppc;
21515   { /* SCO 3.2v4 cc rejects this.  */
21516     char *t;
21517     char const *s = 0 ? (char *) 0 : (char const *) 0;
21518
21519     *t++ = 0;
21520     if (s) return 0;
21521   }
21522   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21523     int x[] = {25, 17};
21524     const int *foo = &x[0];
21525     ++foo;
21526   }
21527   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21528     typedef const int *iptr;
21529     iptr p = 0;
21530     ++p;
21531   }
21532   { /* AIX XL C 1.02.0.0 rejects this saying
21533        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21534     struct s { int j; const int *ap[3]; };
21535     struct s *b; b->j = 5;
21536   }
21537   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21538     const int foo = 10;
21539     if (!foo) return 0;
21540   }
21541   return !cs[0] && !zero.x;
21542 #endif
21543
21544   ;
21545   return 0;
21546 }
21547 _ACEOF
21548 rm -f conftest.$ac_objext
21549 if { (ac_try="$ac_compile"
21550 case "(($ac_try" in
21551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552   *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555   (eval "$ac_compile") 2>conftest.er1
21556   ac_status=$?
21557   grep -v '^ *+' conftest.er1 >conftest.err
21558   rm -f conftest.er1
21559   cat conftest.err >&5
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); } && {
21562          test -z "$ac_c_werror_flag" ||
21563          test ! -s conftest.err
21564        } && test -s conftest.$ac_objext; then
21565   ac_cv_c_const=yes
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570         ac_cv_c_const=no
21571 fi
21572
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21574 fi
21575 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21576 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21577 if test $ac_cv_c_const = no; then
21578
21579 cat >>confdefs.h <<\_ACEOF
21580 #define const
21581 _ACEOF
21582
21583 fi
21584
21585
21586
21587 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21588 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21589 fstype=no
21590 # The order of these tests is important.
21591 cat >conftest.$ac_ext <<_ACEOF
21592 /* confdefs.h.  */
21593 _ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h.  */
21597 #include <sys/statvfs.h>
21598 #include <sys/fstyp.h>
21599 _ACEOF
21600 if { (ac_try="$ac_cpp conftest.$ac_ext"
21601 case "(($ac_try" in
21602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603   *) ac_try_echo=$ac_try;;
21604 esac
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21607   ac_status=$?
21608   grep -v '^ *+' conftest.er1 >conftest.err
21609   rm -f conftest.er1
21610   cat conftest.err >&5
21611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612   (exit $ac_status); } >/dev/null && {
21613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21614          test ! -s conftest.err
21615        }; then
21616   cat >>confdefs.h <<\_ACEOF
21617 #define FSTYPE_STATVFS 1
21618 _ACEOF
21619  fstype=SVR4
21620 else
21621   echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624
21625 fi
21626
21627 rm -f conftest.err conftest.$ac_ext
21628 if test $fstype = no; then
21629 cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635 #include <sys/statfs.h>
21636 #include <sys/fstyp.h>
21637 _ACEOF
21638 if { (ac_try="$ac_cpp conftest.$ac_ext"
21639 case "(($ac_try" in
21640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641   *) ac_try_echo=$ac_try;;
21642 esac
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21645   ac_status=$?
21646   grep -v '^ *+' conftest.er1 >conftest.err
21647   rm -f conftest.er1
21648   cat conftest.err >&5
21649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650   (exit $ac_status); } >/dev/null && {
21651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21652          test ! -s conftest.err
21653        }; then
21654   cat >>confdefs.h <<\_ACEOF
21655 #define FSTYPE_USG_STATFS 1
21656 _ACEOF
21657  fstype=SVR3
21658 else
21659   echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21661
21662
21663 fi
21664
21665 rm -f conftest.err conftest.$ac_ext
21666 fi
21667 if test $fstype = no; then
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 #include <sys/statfs.h>
21675 #include <sys/vmount.h>
21676 _ACEOF
21677 if { (ac_try="$ac_cpp conftest.$ac_ext"
21678 case "(($ac_try" in
21679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680   *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21684   ac_status=$?
21685   grep -v '^ *+' conftest.er1 >conftest.err
21686   rm -f conftest.er1
21687   cat conftest.err >&5
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } >/dev/null && {
21690          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21691          test ! -s conftest.err
21692        }; then
21693   cat >>confdefs.h <<\_ACEOF
21694 #define FSTYPE_AIX_STATFS 1
21695 _ACEOF
21696  fstype=AIX
21697 else
21698   echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701
21702 fi
21703
21704 rm -f conftest.err conftest.$ac_ext
21705 fi
21706 if test $fstype = no; then
21707 cat >conftest.$ac_ext <<_ACEOF
21708 /* confdefs.h.  */
21709 _ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h.  */
21713 #include <mntent.h>
21714 _ACEOF
21715 if { (ac_try="$ac_cpp conftest.$ac_ext"
21716 case "(($ac_try" in
21717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718   *) ac_try_echo=$ac_try;;
21719 esac
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21722   ac_status=$?
21723   grep -v '^ *+' conftest.er1 >conftest.err
21724   rm -f conftest.er1
21725   cat conftest.err >&5
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); } >/dev/null && {
21728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21729          test ! -s conftest.err
21730        }; then
21731   cat >>confdefs.h <<\_ACEOF
21732 #define FSTYPE_MNTENT 1
21733 _ACEOF
21734  fstype=4.3BSD
21735 else
21736   echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739
21740 fi
21741
21742 rm -f conftest.err conftest.$ac_ext
21743 fi
21744 if test $fstype = no; then
21745 cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h.  */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h.  */
21751 #include <sys/mount.h>
21752
21753 _ACEOF
21754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21755   $EGREP "f_type;" >/dev/null 2>&1; then
21756   cat >>confdefs.h <<\_ACEOF
21757 #define FSTYPE_STATFS 1
21758 _ACEOF
21759  fstype=4.4BSD/OSF1
21760 fi
21761 rm -f conftest*
21762
21763 fi
21764 if test $fstype = no; then
21765 cat >conftest.$ac_ext <<_ACEOF
21766 /* confdefs.h.  */
21767 _ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h.  */
21771 #include <sys/mount.h>
21772 #include <sys/fs_types.h>
21773 _ACEOF
21774 if { (ac_try="$ac_cpp conftest.$ac_ext"
21775 case "(($ac_try" in
21776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777   *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21781   ac_status=$?
21782   grep -v '^ *+' conftest.er1 >conftest.err
21783   rm -f conftest.er1
21784   cat conftest.err >&5
21785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786   (exit $ac_status); } >/dev/null && {
21787          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21788          test ! -s conftest.err
21789        }; then
21790   cat >>confdefs.h <<\_ACEOF
21791 #define FSTYPE_GETMNT 1
21792 _ACEOF
21793  fstype=Ultrix
21794 else
21795   echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21797
21798
21799 fi
21800
21801 rm -f conftest.err conftest.$ac_ext
21802 fi
21803 { echo "$as_me:$LINENO: result: $fstype" >&5
21804 echo "${ECHO_T}$fstype" >&6; }
21805
21806 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21807   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21808 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21809 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21810   echo $ECHO_N "(cached) $ECHO_C" >&6
21811 fi
21812 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21813 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21814 else
21815   # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21817 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 $ac_includes_default
21825 #include <sys/statvfs.h>
21826 _ACEOF
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831   *) ac_try_echo=$ac_try;;
21832 esac
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834   (eval "$ac_compile") 2>conftest.er1
21835   ac_status=$?
21836   grep -v '^ *+' conftest.er1 >conftest.err
21837   rm -f conftest.er1
21838   cat conftest.err >&5
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } && {
21841          test -z "$ac_c_werror_flag" ||
21842          test ! -s conftest.err
21843        } && test -s conftest.$ac_objext; then
21844   ac_header_compiler=yes
21845 else
21846   echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849         ac_header_compiler=no
21850 fi
21851
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21855
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21858 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865 #include <sys/statvfs.h>
21866 _ACEOF
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21874   ac_status=$?
21875   grep -v '^ *+' conftest.er1 >conftest.err
21876   rm -f conftest.er1
21877   cat conftest.err >&5
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); } >/dev/null && {
21880          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881          test ! -s conftest.err
21882        }; then
21883   ac_header_preproc=yes
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888   ac_header_preproc=no
21889 fi
21890
21891 rm -f conftest.err conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21894
21895 # So?  What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21897   yes:no: )
21898     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21901 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21902     ac_header_preproc=yes
21903     ;;
21904   no:yes:* )
21905     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21909     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21911     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21913     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21914 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21915     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21917
21918     ;;
21919 esac
21920 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21921 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21922 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21923   echo $ECHO_N "(cached) $ECHO_C" >&6
21924 else
21925   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21926 fi
21927 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21928 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21929
21930 fi
21931 if test $ac_cv_header_sys_statvfs_h = yes; then
21932
21933 cat >>confdefs.h <<\_ACEOF
21934 #define HAVE_SYS_STATVFS_H 1
21935 _ACEOF
21936
21937 fi
21938
21939
21940
21941 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21942 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21943 if test "${ac_cv_type_signal+set}" = set; then
21944   echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946   cat >conftest.$ac_ext <<_ACEOF
21947 /* confdefs.h.  */
21948 _ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h.  */
21952 #include <sys/types.h>
21953 #include <signal.h>
21954
21955 int
21956 main ()
21957 {
21958 return *(signal (0, 0)) (0) == 1;
21959   ;
21960   return 0;
21961 }
21962 _ACEOF
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967   *) ac_try_echo=$ac_try;;
21968 esac
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970   (eval "$ac_compile") 2>conftest.er1
21971   ac_status=$?
21972   grep -v '^ *+' conftest.er1 >conftest.err
21973   rm -f conftest.er1
21974   cat conftest.err >&5
21975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976   (exit $ac_status); } && {
21977          test -z "$ac_c_werror_flag" ||
21978          test ! -s conftest.err
21979        } && test -s conftest.$ac_objext; then
21980   ac_cv_type_signal=int
21981 else
21982   echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21984
21985         ac_cv_type_signal=void
21986 fi
21987
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21989 fi
21990 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21991 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21992
21993 cat >>confdefs.h <<_ACEOF
21994 #define RETSIGTYPE $ac_cv_type_signal
21995 _ACEOF
21996
21997
21998
21999   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22000 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22001   if test "${bash_cv_signal_vintage+set}" = set; then
22002   echo $ECHO_N "(cached) $ECHO_C" >&6
22003 else
22004
22005     cat >conftest.$ac_ext <<_ACEOF
22006 /* confdefs.h.  */
22007 _ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h.  */
22011 #include <signal.h>
22012 int
22013 main ()
22014 {
22015
22016       sigset_t ss;
22017       struct sigaction sa;
22018       sigemptyset(&ss); sigsuspend(&ss);
22019       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22020       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22021
22022   ;
22023   return 0;
22024 }
22025 _ACEOF
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (ac_try="$ac_link"
22028 case "(($ac_try" in
22029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030   *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033   (eval "$ac_link") 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } && {
22040          test -z "$ac_c_werror_flag" ||
22041          test ! -s conftest.err
22042        } && test -s conftest$ac_exeext &&
22043        $as_test_x conftest$ac_exeext; then
22044   bash_cv_signal_vintage="posix"
22045 else
22046   echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22048
22049
22050       cat >conftest.$ac_ext <<_ACEOF
22051 /* confdefs.h.  */
22052 _ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h.  */
22056 #include <signal.h>
22057 int
22058 main ()
22059 {
22060
22061           int mask = sigmask(SIGINT);
22062           sigsetmask(mask); sigblock(mask); sigpause(mask);
22063
22064   ;
22065   return 0;
22066 }
22067 _ACEOF
22068 rm -f conftest.$ac_objext conftest$ac_exeext
22069 if { (ac_try="$ac_link"
22070 case "(($ac_try" in
22071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072   *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075   (eval "$ac_link") 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } && {
22082          test -z "$ac_c_werror_flag" ||
22083          test ! -s conftest.err
22084        } && test -s conftest$ac_exeext &&
22085        $as_test_x conftest$ac_exeext; then
22086   bash_cv_signal_vintage="4.2bsd"
22087 else
22088   echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091
22092         cat >conftest.$ac_ext <<_ACEOF
22093 /* confdefs.h.  */
22094 _ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h.  */
22098
22099           #include <signal.h>
22100           RETSIGTYPE foo() { }
22101 int
22102 main ()
22103 {
22104
22105                   int mask = sigmask(SIGINT);
22106                   sigset(SIGINT, foo); sigrelse(SIGINT);
22107                   sighold(SIGINT); sigpause(SIGINT);
22108
22109   ;
22110   return 0;
22111 }
22112 _ACEOF
22113 rm -f conftest.$ac_objext conftest$ac_exeext
22114 if { (ac_try="$ac_link"
22115 case "(($ac_try" in
22116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117   *) ac_try_echo=$ac_try;;
22118 esac
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120   (eval "$ac_link") 2>conftest.er1
22121   ac_status=$?
22122   grep -v '^ *+' conftest.er1 >conftest.err
22123   rm -f conftest.er1
22124   cat conftest.err >&5
22125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); } && {
22127          test -z "$ac_c_werror_flag" ||
22128          test ! -s conftest.err
22129        } && test -s conftest$ac_exeext &&
22130        $as_test_x conftest$ac_exeext; then
22131   bash_cv_signal_vintage="svr3"
22132 else
22133   echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22135
22136         bash_cv_signal_vintage="v7"
22137
22138 fi
22139
22140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22141       conftest$ac_exeext conftest.$ac_ext
22142
22143 fi
22144
22145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22146       conftest$ac_exeext conftest.$ac_ext
22147
22148 fi
22149
22150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22151       conftest$ac_exeext conftest.$ac_ext
22152
22153 fi
22154
22155   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22156 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22157   if test "$bash_cv_signal_vintage" = "posix"; then
22158     cat >>confdefs.h <<\_ACEOF
22159 #define HAVE_POSIX_SIGNALS 1
22160 _ACEOF
22161
22162   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22163     cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_BSD_SIGNALS 1
22165 _ACEOF
22166
22167   elif test "$bash_cv_signal_vintage" = "svr3"; then
22168     cat >>confdefs.h <<\_ACEOF
22169 #define HAVE_USG_SIGHOLD 1
22170 _ACEOF
22171
22172   fi
22173
22174 { echo "$as_me:$LINENO: checking for mode_t" >&5
22175 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22176 if test "${ac_cv_type_mode_t+set}" = set; then
22177   echo $ECHO_N "(cached) $ECHO_C" >&6
22178 else
22179   cat >conftest.$ac_ext <<_ACEOF
22180 /* confdefs.h.  */
22181 _ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h.  */
22185 $ac_includes_default
22186 typedef mode_t ac__type_new_;
22187 int
22188 main ()
22189 {
22190 if ((ac__type_new_ *) 0)
22191   return 0;
22192 if (sizeof (ac__type_new_))
22193   return 0;
22194   ;
22195   return 0;
22196 }
22197 _ACEOF
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202   *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205   (eval "$ac_compile") 2>conftest.er1
22206   ac_status=$?
22207   grep -v '^ *+' conftest.er1 >conftest.err
22208   rm -f conftest.er1
22209   cat conftest.err >&5
22210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211   (exit $ac_status); } && {
22212          test -z "$ac_c_werror_flag" ||
22213          test ! -s conftest.err
22214        } && test -s conftest.$ac_objext; then
22215   ac_cv_type_mode_t=yes
22216 else
22217   echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220         ac_cv_type_mode_t=no
22221 fi
22222
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 fi
22225 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22226 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22227 if test $ac_cv_type_mode_t = yes; then
22228   :
22229 else
22230
22231 cat >>confdefs.h <<_ACEOF
22232 #define mode_t int
22233 _ACEOF
22234
22235 fi
22236
22237 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22238 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22239 if test "${ac_cv_type_uid_t+set}" = set; then
22240   echo $ECHO_N "(cached) $ECHO_C" >&6
22241 else
22242   cat >conftest.$ac_ext <<_ACEOF
22243 /* confdefs.h.  */
22244 _ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h.  */
22248 #include <sys/types.h>
22249
22250 _ACEOF
22251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22252   $EGREP "uid_t" >/dev/null 2>&1; then
22253   ac_cv_type_uid_t=yes
22254 else
22255   ac_cv_type_uid_t=no
22256 fi
22257 rm -f conftest*
22258
22259 fi
22260 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22261 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22262 if test $ac_cv_type_uid_t = no; then
22263
22264 cat >>confdefs.h <<\_ACEOF
22265 #define uid_t int
22266 _ACEOF
22267
22268
22269 cat >>confdefs.h <<\_ACEOF
22270 #define gid_t int
22271 _ACEOF
22272
22273 fi
22274
22275 { echo "$as_me:$LINENO: checking for size_t" >&5
22276 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22277 if test "${ac_cv_type_size_t+set}" = set; then
22278   echo $ECHO_N "(cached) $ECHO_C" >&6
22279 else
22280   cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h.  */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h.  */
22286 $ac_includes_default
22287 typedef size_t ac__type_new_;
22288 int
22289 main ()
22290 {
22291 if ((ac__type_new_ *) 0)
22292   return 0;
22293 if (sizeof (ac__type_new_))
22294   return 0;
22295   ;
22296   return 0;
22297 }
22298 _ACEOF
22299 rm -f conftest.$ac_objext
22300 if { (ac_try="$ac_compile"
22301 case "(($ac_try" in
22302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303   *) ac_try_echo=$ac_try;;
22304 esac
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306   (eval "$ac_compile") 2>conftest.er1
22307   ac_status=$?
22308   grep -v '^ *+' conftest.er1 >conftest.err
22309   rm -f conftest.er1
22310   cat conftest.err >&5
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); } && {
22313          test -z "$ac_c_werror_flag" ||
22314          test ! -s conftest.err
22315        } && test -s conftest.$ac_objext; then
22316   ac_cv_type_size_t=yes
22317 else
22318   echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22320
22321         ac_cv_type_size_t=no
22322 fi
22323
22324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325 fi
22326 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22327 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22328 if test $ac_cv_type_size_t = yes; then
22329   :
22330 else
22331
22332 cat >>confdefs.h <<_ACEOF
22333 #define size_t unsigned int
22334 _ACEOF
22335
22336 fi
22337
22338 { echo "$as_me:$LINENO: checking for pid_t" >&5
22339 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22340 if test "${ac_cv_type_pid_t+set}" = set; then
22341   echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22343   cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h.  */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h.  */
22349 $ac_includes_default
22350 typedef pid_t ac__type_new_;
22351 int
22352 main ()
22353 {
22354 if ((ac__type_new_ *) 0)
22355   return 0;
22356 if (sizeof (ac__type_new_))
22357   return 0;
22358   ;
22359   return 0;
22360 }
22361 _ACEOF
22362 rm -f conftest.$ac_objext
22363 if { (ac_try="$ac_compile"
22364 case "(($ac_try" in
22365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366   *) ac_try_echo=$ac_try;;
22367 esac
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369   (eval "$ac_compile") 2>conftest.er1
22370   ac_status=$?
22371   grep -v '^ *+' conftest.er1 >conftest.err
22372   rm -f conftest.er1
22373   cat conftest.err >&5
22374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375   (exit $ac_status); } && {
22376          test -z "$ac_c_werror_flag" ||
22377          test ! -s conftest.err
22378        } && test -s conftest.$ac_objext; then
22379   ac_cv_type_pid_t=yes
22380 else
22381   echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22383
22384         ac_cv_type_pid_t=no
22385 fi
22386
22387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 fi
22389 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22390 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22391 if test $ac_cv_type_pid_t = yes; then
22392   :
22393 else
22394
22395 cat >>confdefs.h <<_ACEOF
22396 #define pid_t int
22397 _ACEOF
22398
22399 fi
22400
22401 { echo "$as_me:$LINENO: checking for off_t" >&5
22402 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22403 if test "${ac_cv_type_off_t+set}" = set; then
22404   echo $ECHO_N "(cached) $ECHO_C" >&6
22405 else
22406   cat >conftest.$ac_ext <<_ACEOF
22407 /* confdefs.h.  */
22408 _ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h.  */
22412 $ac_includes_default
22413 typedef off_t ac__type_new_;
22414 int
22415 main ()
22416 {
22417 if ((ac__type_new_ *) 0)
22418   return 0;
22419 if (sizeof (ac__type_new_))
22420   return 0;
22421   ;
22422   return 0;
22423 }
22424 _ACEOF
22425 rm -f conftest.$ac_objext
22426 if { (ac_try="$ac_compile"
22427 case "(($ac_try" in
22428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429   *) ac_try_echo=$ac_try;;
22430 esac
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432   (eval "$ac_compile") 2>conftest.er1
22433   ac_status=$?
22434   grep -v '^ *+' conftest.er1 >conftest.err
22435   rm -f conftest.er1
22436   cat conftest.err >&5
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); } && {
22439          test -z "$ac_c_werror_flag" ||
22440          test ! -s conftest.err
22441        } && test -s conftest.$ac_objext; then
22442   ac_cv_type_off_t=yes
22443 else
22444   echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22446
22447         ac_cv_type_off_t=no
22448 fi
22449
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22451 fi
22452 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22453 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22454 if test $ac_cv_type_off_t = yes; then
22455   :
22456 else
22457
22458 cat >>confdefs.h <<_ACEOF
22459 #define off_t long int
22460 _ACEOF
22461
22462 fi
22463
22464 { echo "$as_me:$LINENO: checking for ino_t" >&5
22465 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22466 if test "${ac_cv_type_ino_t+set}" = set; then
22467   echo $ECHO_N "(cached) $ECHO_C" >&6
22468 else
22469   cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 $ac_includes_default
22476 typedef ino_t ac__type_new_;
22477 int
22478 main ()
22479 {
22480 if ((ac__type_new_ *) 0)
22481   return 0;
22482 if (sizeof (ac__type_new_))
22483   return 0;
22484   ;
22485   return 0;
22486 }
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_compile") 2>conftest.er1
22496   ac_status=$?
22497   grep -v '^ *+' conftest.er1 >conftest.err
22498   rm -f conftest.er1
22499   cat conftest.err >&5
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } && {
22502          test -z "$ac_c_werror_flag" ||
22503          test ! -s conftest.err
22504        } && test -s conftest.$ac_objext; then
22505   ac_cv_type_ino_t=yes
22506 else
22507   echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22509
22510         ac_cv_type_ino_t=no
22511 fi
22512
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 fi
22515 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22516 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22517 if test $ac_cv_type_ino_t = yes; then
22518   :
22519 else
22520
22521 cat >>confdefs.h <<_ACEOF
22522 #define ino_t unsigned long
22523 _ACEOF
22524
22525 fi
22526
22527 { echo "$as_me:$LINENO: checking for dev_t" >&5
22528 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22529 if test "${ac_cv_type_dev_t+set}" = set; then
22530   echo $ECHO_N "(cached) $ECHO_C" >&6
22531 else
22532   cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538 $ac_includes_default
22539 typedef dev_t ac__type_new_;
22540 int
22541 main ()
22542 {
22543 if ((ac__type_new_ *) 0)
22544   return 0;
22545 if (sizeof (ac__type_new_))
22546   return 0;
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555   *) ac_try_echo=$ac_try;;
22556 esac
22557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22558   (eval "$ac_compile") 2>conftest.er1
22559   ac_status=$?
22560   grep -v '^ *+' conftest.er1 >conftest.err
22561   rm -f conftest.er1
22562   cat conftest.err >&5
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); } && {
22565          test -z "$ac_c_werror_flag" ||
22566          test ! -s conftest.err
22567        } && test -s conftest.$ac_objext; then
22568   ac_cv_type_dev_t=yes
22569 else
22570   echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22572
22573         ac_cv_type_dev_t=no
22574 fi
22575
22576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22577 fi
22578 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22579 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22580 if test $ac_cv_type_dev_t = yes; then
22581   :
22582 else
22583
22584 cat >>confdefs.h <<_ACEOF
22585 #define dev_t unsigned long
22586 _ACEOF
22587
22588 fi
22589
22590 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22591 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22592 if test "${ac_cv_type_daddr_t+set}" = set; then
22593   echo $ECHO_N "(cached) $ECHO_C" >&6
22594 else
22595   cat >conftest.$ac_ext <<_ACEOF
22596 /* confdefs.h.  */
22597 _ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h.  */
22601 $ac_includes_default
22602 typedef daddr_t ac__type_new_;
22603 int
22604 main ()
22605 {
22606 if ((ac__type_new_ *) 0)
22607   return 0;
22608 if (sizeof (ac__type_new_))
22609   return 0;
22610   ;
22611   return 0;
22612 }
22613 _ACEOF
22614 rm -f conftest.$ac_objext
22615 if { (ac_try="$ac_compile"
22616 case "(($ac_try" in
22617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618   *) ac_try_echo=$ac_try;;
22619 esac
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621   (eval "$ac_compile") 2>conftest.er1
22622   ac_status=$?
22623   grep -v '^ *+' conftest.er1 >conftest.err
22624   rm -f conftest.er1
22625   cat conftest.err >&5
22626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627   (exit $ac_status); } && {
22628          test -z "$ac_c_werror_flag" ||
22629          test ! -s conftest.err
22630        } && test -s conftest.$ac_objext; then
22631   ac_cv_type_daddr_t=yes
22632 else
22633   echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636         ac_cv_type_daddr_t=no
22637 fi
22638
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 fi
22641 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22642 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22643 if test $ac_cv_type_daddr_t = yes; then
22644   :
22645 else
22646
22647 cat >>confdefs.h <<_ACEOF
22648 #define daddr_t long
22649 _ACEOF
22650
22651 fi
22652
22653 { echo "$as_me:$LINENO: checking for major_t" >&5
22654 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22655 if test "${ac_cv_type_major_t+set}" = set; then
22656   echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658   cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h.  */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h.  */
22664 $ac_includes_default
22665 typedef major_t ac__type_new_;
22666 int
22667 main ()
22668 {
22669 if ((ac__type_new_ *) 0)
22670   return 0;
22671 if (sizeof (ac__type_new_))
22672   return 0;
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681   *) ac_try_echo=$ac_try;;
22682 esac
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684   (eval "$ac_compile") 2>conftest.er1
22685   ac_status=$?
22686   grep -v '^ *+' conftest.er1 >conftest.err
22687   rm -f conftest.er1
22688   cat conftest.err >&5
22689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690   (exit $ac_status); } && {
22691          test -z "$ac_c_werror_flag" ||
22692          test ! -s conftest.err
22693        } && test -s conftest.$ac_objext; then
22694   ac_cv_type_major_t=yes
22695 else
22696   echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22698
22699         ac_cv_type_major_t=no
22700 fi
22701
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22703 fi
22704 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22705 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22706 if test $ac_cv_type_major_t = yes; then
22707   :
22708 else
22709
22710 cat >>confdefs.h <<_ACEOF
22711 #define major_t int
22712 _ACEOF
22713
22714 fi
22715
22716 { echo "$as_me:$LINENO: checking for minor_t" >&5
22717 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22718 if test "${ac_cv_type_minor_t+set}" = set; then
22719   echo $ECHO_N "(cached) $ECHO_C" >&6
22720 else
22721   cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h.  */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h.  */
22727 $ac_includes_default
22728 typedef minor_t ac__type_new_;
22729 int
22730 main ()
22731 {
22732 if ((ac__type_new_ *) 0)
22733   return 0;
22734 if (sizeof (ac__type_new_))
22735   return 0;
22736   ;
22737   return 0;
22738 }
22739 _ACEOF
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744   *) ac_try_echo=$ac_try;;
22745 esac
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747   (eval "$ac_compile") 2>conftest.er1
22748   ac_status=$?
22749   grep -v '^ *+' conftest.er1 >conftest.err
22750   rm -f conftest.er1
22751   cat conftest.err >&5
22752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753   (exit $ac_status); } && {
22754          test -z "$ac_c_werror_flag" ||
22755          test ! -s conftest.err
22756        } && test -s conftest.$ac_objext; then
22757   ac_cv_type_minor_t=yes
22758 else
22759   echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22761
22762         ac_cv_type_minor_t=no
22763 fi
22764
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766 fi
22767 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22768 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22769 if test $ac_cv_type_minor_t = yes; then
22770   :
22771 else
22772
22773 cat >>confdefs.h <<_ACEOF
22774 #define minor_t int
22775 _ACEOF
22776
22777 fi
22778
22779 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22780 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22781 if test "${ac_cv_type_ssize_t+set}" = set; then
22782   echo $ECHO_N "(cached) $ECHO_C" >&6
22783 else
22784   cat >conftest.$ac_ext <<_ACEOF
22785 /* confdefs.h.  */
22786 _ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h.  */
22790 $ac_includes_default
22791 typedef ssize_t ac__type_new_;
22792 int
22793 main ()
22794 {
22795 if ((ac__type_new_ *) 0)
22796   return 0;
22797 if (sizeof (ac__type_new_))
22798   return 0;
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 rm -f conftest.$ac_objext
22804 if { (ac_try="$ac_compile"
22805 case "(($ac_try" in
22806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807   *) ac_try_echo=$ac_try;;
22808 esac
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810   (eval "$ac_compile") 2>conftest.er1
22811   ac_status=$?
22812   grep -v '^ *+' conftest.er1 >conftest.err
22813   rm -f conftest.er1
22814   cat conftest.err >&5
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); } && {
22817          test -z "$ac_c_werror_flag" ||
22818          test ! -s conftest.err
22819        } && test -s conftest.$ac_objext; then
22820   ac_cv_type_ssize_t=yes
22821 else
22822   echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22824
22825         ac_cv_type_ssize_t=no
22826 fi
22827
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22829 fi
22830 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22831 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22832 if test $ac_cv_type_ssize_t = yes; then
22833   :
22834 else
22835
22836 cat >>confdefs.h <<_ACEOF
22837 #define ssize_t int
22838 _ACEOF
22839
22840 fi
22841
22842 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22843 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22844 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22845   echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847   cat >conftest.$ac_ext <<_ACEOF
22848 /* confdefs.h.  */
22849 _ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h.  */
22853 $ac_includes_default
22854 int
22855 main ()
22856 {
22857 static struct stat ac_aggr;
22858 if (ac_aggr.st_blocks)
22859 return 0;
22860   ;
22861   return 0;
22862 }
22863 _ACEOF
22864 rm -f conftest.$ac_objext
22865 if { (ac_try="$ac_compile"
22866 case "(($ac_try" in
22867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868   *) ac_try_echo=$ac_try;;
22869 esac
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871   (eval "$ac_compile") 2>conftest.er1
22872   ac_status=$?
22873   grep -v '^ *+' conftest.er1 >conftest.err
22874   rm -f conftest.er1
22875   cat conftest.err >&5
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); } && {
22878          test -z "$ac_c_werror_flag" ||
22879          test ! -s conftest.err
22880        } && test -s conftest.$ac_objext; then
22881   ac_cv_member_struct_stat_st_blocks=yes
22882 else
22883   echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22885
22886         cat >conftest.$ac_ext <<_ACEOF
22887 /* confdefs.h.  */
22888 _ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h.  */
22892 $ac_includes_default
22893 int
22894 main ()
22895 {
22896 static struct stat ac_aggr;
22897 if (sizeof ac_aggr.st_blocks)
22898 return 0;
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907   *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910   (eval "$ac_compile") 2>conftest.er1
22911   ac_status=$?
22912   grep -v '^ *+' conftest.er1 >conftest.err
22913   rm -f conftest.er1
22914   cat conftest.err >&5
22915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916   (exit $ac_status); } && {
22917          test -z "$ac_c_werror_flag" ||
22918          test ! -s conftest.err
22919        } && test -s conftest.$ac_objext; then
22920   ac_cv_member_struct_stat_st_blocks=yes
22921 else
22922   echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22924
22925         ac_cv_member_struct_stat_st_blocks=no
22926 fi
22927
22928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929 fi
22930
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22932 fi
22933 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22934 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22935 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22936
22937 cat >>confdefs.h <<_ACEOF
22938 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22939 _ACEOF
22940
22941
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_ST_BLOCKS 1
22944 _ACEOF
22945
22946 else
22947   case " $LIBOBJS " in
22948   *" fileblocks.$ac_objext "* ) ;;
22949   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22950  ;;
22951 esac
22952
22953 fi
22954
22955
22956 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22957 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22958 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22959   echo $ECHO_N "(cached) $ECHO_C" >&6
22960 else
22961   cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h.  */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h.  */
22967 $ac_includes_default
22968 int
22969 main ()
22970 {
22971 static struct stat ac_aggr;
22972 if (ac_aggr.st_rdev)
22973 return 0;
22974   ;
22975   return 0;
22976 }
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982   *) ac_try_echo=$ac_try;;
22983 esac
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985   (eval "$ac_compile") 2>conftest.er1
22986   ac_status=$?
22987   grep -v '^ *+' conftest.er1 >conftest.err
22988   rm -f conftest.er1
22989   cat conftest.err >&5
22990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991   (exit $ac_status); } && {
22992          test -z "$ac_c_werror_flag" ||
22993          test ! -s conftest.err
22994        } && test -s conftest.$ac_objext; then
22995   ac_cv_member_struct_stat_st_rdev=yes
22996 else
22997   echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
22999
23000         cat >conftest.$ac_ext <<_ACEOF
23001 /* confdefs.h.  */
23002 _ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h.  */
23006 $ac_includes_default
23007 int
23008 main ()
23009 {
23010 static struct stat ac_aggr;
23011 if (sizeof ac_aggr.st_rdev)
23012 return 0;
23013   ;
23014   return 0;
23015 }
23016 _ACEOF
23017 rm -f conftest.$ac_objext
23018 if { (ac_try="$ac_compile"
23019 case "(($ac_try" in
23020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021   *) ac_try_echo=$ac_try;;
23022 esac
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024   (eval "$ac_compile") 2>conftest.er1
23025   ac_status=$?
23026   grep -v '^ *+' conftest.er1 >conftest.err
23027   rm -f conftest.er1
23028   cat conftest.err >&5
23029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030   (exit $ac_status); } && {
23031          test -z "$ac_c_werror_flag" ||
23032          test ! -s conftest.err
23033        } && test -s conftest.$ac_objext; then
23034   ac_cv_member_struct_stat_st_rdev=yes
23035 else
23036   echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23038
23039         ac_cv_member_struct_stat_st_rdev=no
23040 fi
23041
23042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23043 fi
23044
23045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23046 fi
23047 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23049 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23050
23051 cat >>confdefs.h <<_ACEOF
23052 #define HAVE_STRUCT_STAT_ST_RDEV 1
23053 _ACEOF
23054
23055
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_ST_RDEV 1
23058 _ACEOF
23059
23060 fi
23061
23062
23063 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23064 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23065 if test "${ac_cv_struct_tm+set}" = set; then
23066   echo $ECHO_N "(cached) $ECHO_C" >&6
23067 else
23068   cat >conftest.$ac_ext <<_ACEOF
23069 /* confdefs.h.  */
23070 _ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h.  */
23074 #include <sys/types.h>
23075 #include <time.h>
23076
23077 int
23078 main ()
23079 {
23080 struct tm tm;
23081                                      int *p = &tm.tm_sec;
23082                                      return !p;
23083   ;
23084   return 0;
23085 }
23086 _ACEOF
23087 rm -f conftest.$ac_objext
23088 if { (ac_try="$ac_compile"
23089 case "(($ac_try" in
23090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091   *) ac_try_echo=$ac_try;;
23092 esac
23093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23094   (eval "$ac_compile") 2>conftest.er1
23095   ac_status=$?
23096   grep -v '^ *+' conftest.er1 >conftest.err
23097   rm -f conftest.er1
23098   cat conftest.err >&5
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); } && {
23101          test -z "$ac_c_werror_flag" ||
23102          test ! -s conftest.err
23103        } && test -s conftest.$ac_objext; then
23104   ac_cv_struct_tm=time.h
23105 else
23106   echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23108
23109         ac_cv_struct_tm=sys/time.h
23110 fi
23111
23112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23113 fi
23114 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23115 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23116 if test $ac_cv_struct_tm = sys/time.h; then
23117
23118 cat >>confdefs.h <<\_ACEOF
23119 #define TM_IN_SYS_TIME 1
23120 _ACEOF
23121
23122 fi
23123
23124 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23125 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23126 if test "${ac_cv_c_const+set}" = set; then
23127   echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129   cat >conftest.$ac_ext <<_ACEOF
23130 /* confdefs.h.  */
23131 _ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h.  */
23135
23136 int
23137 main ()
23138 {
23139 /* FIXME: Include the comments suggested by Paul. */
23140 #ifndef __cplusplus
23141   /* Ultrix mips cc rejects this.  */
23142   typedef int charset[2];
23143   const charset cs;
23144   /* SunOS 4.1.1 cc rejects this.  */
23145   char const *const *pcpcc;
23146   char **ppc;
23147   /* NEC SVR4.0.2 mips cc rejects this.  */
23148   struct point {int x, y;};
23149   static struct point const zero = {0,0};
23150   /* AIX XL C 1.02.0.0 rejects this.
23151      It does not let you subtract one const X* pointer from another in
23152      an arm of an if-expression whose if-part is not a constant
23153      expression */
23154   const char *g = "string";
23155   pcpcc = &g + (g ? g-g : 0);
23156   /* HPUX 7.0 cc rejects these. */
23157   ++pcpcc;
23158   ppc = (char**) pcpcc;
23159   pcpcc = (char const *const *) ppc;
23160   { /* SCO 3.2v4 cc rejects this.  */
23161     char *t;
23162     char const *s = 0 ? (char *) 0 : (char const *) 0;
23163
23164     *t++ = 0;
23165     if (s) return 0;
23166   }
23167   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23168     int x[] = {25, 17};
23169     const int *foo = &x[0];
23170     ++foo;
23171   }
23172   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23173     typedef const int *iptr;
23174     iptr p = 0;
23175     ++p;
23176   }
23177   { /* AIX XL C 1.02.0.0 rejects this saying
23178        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23179     struct s { int j; const int *ap[3]; };
23180     struct s *b; b->j = 5;
23181   }
23182   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23183     const int foo = 10;
23184     if (!foo) return 0;
23185   }
23186   return !cs[0] && !zero.x;
23187 #endif
23188
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197   *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200   (eval "$ac_compile") 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } && {
23207          test -z "$ac_c_werror_flag" ||
23208          test ! -s conftest.err
23209        } && test -s conftest.$ac_objext; then
23210   ac_cv_c_const=yes
23211 else
23212   echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23214
23215         ac_cv_c_const=no
23216 fi
23217
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23219 fi
23220 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23221 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23222 if test $ac_cv_c_const = no; then
23223
23224 cat >>confdefs.h <<\_ACEOF
23225 #define const
23226 _ACEOF
23227
23228 fi
23229
23230
23231
23232 { echo "$as_me:$LINENO: checking for char" >&5
23233 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23234 if test "${ac_cv_type_char+set}" = set; then
23235   echo $ECHO_N "(cached) $ECHO_C" >&6
23236 else
23237   cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h.  */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h.  */
23243 $ac_includes_default
23244 typedef char ac__type_new_;
23245 int
23246 main ()
23247 {
23248 if ((ac__type_new_ *) 0)
23249   return 0;
23250 if (sizeof (ac__type_new_))
23251   return 0;
23252   ;
23253   return 0;
23254 }
23255 _ACEOF
23256 rm -f conftest.$ac_objext
23257 if { (ac_try="$ac_compile"
23258 case "(($ac_try" in
23259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23260   *) ac_try_echo=$ac_try;;
23261 esac
23262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23263   (eval "$ac_compile") 2>conftest.er1
23264   ac_status=$?
23265   grep -v '^ *+' conftest.er1 >conftest.err
23266   rm -f conftest.er1
23267   cat conftest.err >&5
23268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269   (exit $ac_status); } && {
23270          test -z "$ac_c_werror_flag" ||
23271          test ! -s conftest.err
23272        } && test -s conftest.$ac_objext; then
23273   ac_cv_type_char=yes
23274 else
23275   echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23277
23278         ac_cv_type_char=no
23279 fi
23280
23281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23282 fi
23283 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23284 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23285
23286 # The cast to long int works around a bug in the HP C Compiler
23287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23289 # This bug is HP SR number 8606223364.
23290 { echo "$as_me:$LINENO: checking size of char" >&5
23291 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23292 if test "${ac_cv_sizeof_char+set}" = set; then
23293   echo $ECHO_N "(cached) $ECHO_C" >&6
23294 else
23295   if test "$cross_compiling" = yes; then
23296   # Depending upon the size, compute the lo and hi bounds.
23297 cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303 $ac_includes_default
23304    typedef char ac__type_sizeof_;
23305 int
23306 main ()
23307 {
23308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23309 test_array [0] = 0
23310
23311   ;
23312   return 0;
23313 }
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319   *) ac_try_echo=$ac_try;;
23320 esac
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322   (eval "$ac_compile") 2>conftest.er1
23323   ac_status=$?
23324   grep -v '^ *+' conftest.er1 >conftest.err
23325   rm -f conftest.er1
23326   cat conftest.err >&5
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); } && {
23329          test -z "$ac_c_werror_flag" ||
23330          test ! -s conftest.err
23331        } && test -s conftest.$ac_objext; then
23332   ac_lo=0 ac_mid=0
23333   while :; do
23334     cat >conftest.$ac_ext <<_ACEOF
23335 /* confdefs.h.  */
23336 _ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h.  */
23340 $ac_includes_default
23341    typedef char ac__type_sizeof_;
23342 int
23343 main ()
23344 {
23345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23346 test_array [0] = 0
23347
23348   ;
23349   return 0;
23350 }
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356   *) ac_try_echo=$ac_try;;
23357 esac
23358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359   (eval "$ac_compile") 2>conftest.er1
23360   ac_status=$?
23361   grep -v '^ *+' conftest.er1 >conftest.err
23362   rm -f conftest.er1
23363   cat conftest.err >&5
23364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365   (exit $ac_status); } && {
23366          test -z "$ac_c_werror_flag" ||
23367          test ! -s conftest.err
23368        } && test -s conftest.$ac_objext; then
23369   ac_hi=$ac_mid; break
23370 else
23371   echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23373
23374         ac_lo=`expr $ac_mid + 1`
23375                         if test $ac_lo -le $ac_mid; then
23376                           ac_lo= ac_hi=
23377                           break
23378                         fi
23379                         ac_mid=`expr 2 '*' $ac_mid + 1`
23380 fi
23381
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383   done
23384 else
23385   echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23387
23388         cat >conftest.$ac_ext <<_ACEOF
23389 /* confdefs.h.  */
23390 _ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h.  */
23394 $ac_includes_default
23395    typedef char ac__type_sizeof_;
23396 int
23397 main ()
23398 {
23399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23400 test_array [0] = 0
23401
23402   ;
23403   return 0;
23404 }
23405 _ACEOF
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410   *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413   (eval "$ac_compile") 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } && {
23420          test -z "$ac_c_werror_flag" ||
23421          test ! -s conftest.err
23422        } && test -s conftest.$ac_objext; then
23423   ac_hi=-1 ac_mid=-1
23424   while :; do
23425     cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h.  */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h.  */
23431 $ac_includes_default
23432    typedef char ac__type_sizeof_;
23433 int
23434 main ()
23435 {
23436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23437 test_array [0] = 0
23438
23439   ;
23440   return 0;
23441 }
23442 _ACEOF
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447   *) ac_try_echo=$ac_try;;
23448 esac
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450   (eval "$ac_compile") 2>conftest.er1
23451   ac_status=$?
23452   grep -v '^ *+' conftest.er1 >conftest.err
23453   rm -f conftest.er1
23454   cat conftest.err >&5
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); } && {
23457          test -z "$ac_c_werror_flag" ||
23458          test ! -s conftest.err
23459        } && test -s conftest.$ac_objext; then
23460   ac_lo=$ac_mid; break
23461 else
23462   echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23464
23465         ac_hi=`expr '(' $ac_mid ')' - 1`
23466                         if test $ac_mid -le $ac_hi; then
23467                           ac_lo= ac_hi=
23468                           break
23469                         fi
23470                         ac_mid=`expr 2 '*' $ac_mid`
23471 fi
23472
23473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23474   done
23475 else
23476   echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23478
23479         ac_lo= ac_hi=
23480 fi
23481
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23483 fi
23484
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 # Binary search between lo and hi bounds.
23487 while test "x$ac_lo" != "x$ac_hi"; do
23488   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23489   cat >conftest.$ac_ext <<_ACEOF
23490 /* confdefs.h.  */
23491 _ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h.  */
23495 $ac_includes_default
23496    typedef char ac__type_sizeof_;
23497 int
23498 main ()
23499 {
23500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23501 test_array [0] = 0
23502
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 rm -f conftest.$ac_objext
23508 if { (ac_try="$ac_compile"
23509 case "(($ac_try" in
23510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23511   *) ac_try_echo=$ac_try;;
23512 esac
23513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23514   (eval "$ac_compile") 2>conftest.er1
23515   ac_status=$?
23516   grep -v '^ *+' conftest.er1 >conftest.err
23517   rm -f conftest.er1
23518   cat conftest.err >&5
23519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520   (exit $ac_status); } && {
23521          test -z "$ac_c_werror_flag" ||
23522          test ! -s conftest.err
23523        } && test -s conftest.$ac_objext; then
23524   ac_hi=$ac_mid
23525 else
23526   echo "$as_me: failed program was:" >&5
23527 sed 's/^/| /' conftest.$ac_ext >&5
23528
23529         ac_lo=`expr '(' $ac_mid ')' + 1`
23530 fi
23531
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 done
23534 case $ac_lo in
23535 ?*) ac_cv_sizeof_char=$ac_lo;;
23536 '') if test "$ac_cv_type_char" = yes; then
23537      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23538 See \`config.log' for more details." >&5
23539 echo "$as_me: error: cannot compute sizeof (char)
23540 See \`config.log' for more details." >&2;}
23541    { (exit 77); exit 77; }; }
23542    else
23543      ac_cv_sizeof_char=0
23544    fi ;;
23545 esac
23546 else
23547   cat >conftest.$ac_ext <<_ACEOF
23548 /* confdefs.h.  */
23549 _ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h.  */
23553 $ac_includes_default
23554    typedef char ac__type_sizeof_;
23555 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23556 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23557 #include <stdio.h>
23558 #include <stdlib.h>
23559 int
23560 main ()
23561 {
23562
23563   FILE *f = fopen ("conftest.val", "w");
23564   if (! f)
23565     return 1;
23566   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23567     {
23568       long int i = longval ();
23569       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23570         return 1;
23571       fprintf (f, "%ld\n", i);
23572     }
23573   else
23574     {
23575       unsigned long int i = ulongval ();
23576       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23577         return 1;
23578       fprintf (f, "%lu\n", i);
23579     }
23580   return ferror (f) || fclose (f) != 0;
23581
23582   ;
23583   return 0;
23584 }
23585 _ACEOF
23586 rm -f conftest$ac_exeext
23587 if { (ac_try="$ac_link"
23588 case "(($ac_try" in
23589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590   *) ac_try_echo=$ac_try;;
23591 esac
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593   (eval "$ac_link") 2>&5
23594   ac_status=$?
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23597   { (case "(($ac_try" in
23598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599   *) ac_try_echo=$ac_try;;
23600 esac
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602   (eval "$ac_try") 2>&5
23603   ac_status=$?
23604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605   (exit $ac_status); }; }; then
23606   ac_cv_sizeof_char=`cat conftest.val`
23607 else
23608   echo "$as_me: program exited with status $ac_status" >&5
23609 echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23611
23612 ( exit $ac_status )
23613 if test "$ac_cv_type_char" = yes; then
23614      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23615 See \`config.log' for more details." >&5
23616 echo "$as_me: error: cannot compute sizeof (char)
23617 See \`config.log' for more details." >&2;}
23618    { (exit 77); exit 77; }; }
23619    else
23620      ac_cv_sizeof_char=0
23621    fi
23622 fi
23623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23624 fi
23625 rm -f conftest.val
23626 fi
23627 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23628 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23629
23630
23631
23632 cat >>confdefs.h <<_ACEOF
23633 #define SIZEOF_CHAR $ac_cv_sizeof_char
23634 _ACEOF
23635
23636
23637 { echo "$as_me:$LINENO: checking for short int" >&5
23638 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23639 if test "${ac_cv_type_short_int+set}" = set; then
23640   echo $ECHO_N "(cached) $ECHO_C" >&6
23641 else
23642   cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h.  */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h.  */
23648 $ac_includes_default
23649 typedef short int ac__type_new_;
23650 int
23651 main ()
23652 {
23653 if ((ac__type_new_ *) 0)
23654   return 0;
23655 if (sizeof (ac__type_new_))
23656   return 0;
23657   ;
23658   return 0;
23659 }
23660 _ACEOF
23661 rm -f conftest.$ac_objext
23662 if { (ac_try="$ac_compile"
23663 case "(($ac_try" in
23664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665   *) ac_try_echo=$ac_try;;
23666 esac
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668   (eval "$ac_compile") 2>conftest.er1
23669   ac_status=$?
23670   grep -v '^ *+' conftest.er1 >conftest.err
23671   rm -f conftest.er1
23672   cat conftest.err >&5
23673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674   (exit $ac_status); } && {
23675          test -z "$ac_c_werror_flag" ||
23676          test ! -s conftest.err
23677        } && test -s conftest.$ac_objext; then
23678   ac_cv_type_short_int=yes
23679 else
23680   echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23682
23683         ac_cv_type_short_int=no
23684 fi
23685
23686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687 fi
23688 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23689 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23690
23691 # The cast to long int works around a bug in the HP C Compiler
23692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23694 # This bug is HP SR number 8606223364.
23695 { echo "$as_me:$LINENO: checking size of short int" >&5
23696 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23697 if test "${ac_cv_sizeof_short_int+set}" = set; then
23698   echo $ECHO_N "(cached) $ECHO_C" >&6
23699 else
23700   if test "$cross_compiling" = yes; then
23701   # Depending upon the size, compute the lo and hi bounds.
23702 cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h.  */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h.  */
23708 $ac_includes_default
23709    typedef short int ac__type_sizeof_;
23710 int
23711 main ()
23712 {
23713 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23714 test_array [0] = 0
23715
23716   ;
23717   return 0;
23718 }
23719 _ACEOF
23720 rm -f conftest.$ac_objext
23721 if { (ac_try="$ac_compile"
23722 case "(($ac_try" in
23723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724   *) ac_try_echo=$ac_try;;
23725 esac
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727   (eval "$ac_compile") 2>conftest.er1
23728   ac_status=$?
23729   grep -v '^ *+' conftest.er1 >conftest.err
23730   rm -f conftest.er1
23731   cat conftest.err >&5
23732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733   (exit $ac_status); } && {
23734          test -z "$ac_c_werror_flag" ||
23735          test ! -s conftest.err
23736        } && test -s conftest.$ac_objext; then
23737   ac_lo=0 ac_mid=0
23738   while :; do
23739     cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745 $ac_includes_default
23746    typedef short int ac__type_sizeof_;
23747 int
23748 main ()
23749 {
23750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23751 test_array [0] = 0
23752
23753   ;
23754   return 0;
23755 }
23756 _ACEOF
23757 rm -f conftest.$ac_objext
23758 if { (ac_try="$ac_compile"
23759 case "(($ac_try" in
23760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23761   *) ac_try_echo=$ac_try;;
23762 esac
23763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23764   (eval "$ac_compile") 2>conftest.er1
23765   ac_status=$?
23766   grep -v '^ *+' conftest.er1 >conftest.err
23767   rm -f conftest.er1
23768   cat conftest.err >&5
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); } && {
23771          test -z "$ac_c_werror_flag" ||
23772          test ! -s conftest.err
23773        } && test -s conftest.$ac_objext; then
23774   ac_hi=$ac_mid; break
23775 else
23776   echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779         ac_lo=`expr $ac_mid + 1`
23780                         if test $ac_lo -le $ac_mid; then
23781                           ac_lo= ac_hi=
23782                           break
23783                         fi
23784                         ac_mid=`expr 2 '*' $ac_mid + 1`
23785 fi
23786
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788   done
23789 else
23790   echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23792
23793         cat >conftest.$ac_ext <<_ACEOF
23794 /* confdefs.h.  */
23795 _ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h.  */
23799 $ac_includes_default
23800    typedef short int ac__type_sizeof_;
23801 int
23802 main ()
23803 {
23804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23805 test_array [0] = 0
23806
23807   ;
23808   return 0;
23809 }
23810 _ACEOF
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815   *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818   (eval "$ac_compile") 2>conftest.er1
23819   ac_status=$?
23820   grep -v '^ *+' conftest.er1 >conftest.err
23821   rm -f conftest.er1
23822   cat conftest.err >&5
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); } && {
23825          test -z "$ac_c_werror_flag" ||
23826          test ! -s conftest.err
23827        } && test -s conftest.$ac_objext; then
23828   ac_hi=-1 ac_mid=-1
23829   while :; do
23830     cat >conftest.$ac_ext <<_ACEOF
23831 /* confdefs.h.  */
23832 _ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h.  */
23836 $ac_includes_default
23837    typedef short int ac__type_sizeof_;
23838 int
23839 main ()
23840 {
23841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23842 test_array [0] = 0
23843
23844   ;
23845   return 0;
23846 }
23847 _ACEOF
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852   *) ac_try_echo=$ac_try;;
23853 esac
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855   (eval "$ac_compile") 2>conftest.er1
23856   ac_status=$?
23857   grep -v '^ *+' conftest.er1 >conftest.err
23858   rm -f conftest.er1
23859   cat conftest.err >&5
23860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861   (exit $ac_status); } && {
23862          test -z "$ac_c_werror_flag" ||
23863          test ! -s conftest.err
23864        } && test -s conftest.$ac_objext; then
23865   ac_lo=$ac_mid; break
23866 else
23867   echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23869
23870         ac_hi=`expr '(' $ac_mid ')' - 1`
23871                         if test $ac_mid -le $ac_hi; then
23872                           ac_lo= ac_hi=
23873                           break
23874                         fi
23875                         ac_mid=`expr 2 '*' $ac_mid`
23876 fi
23877
23878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23879   done
23880 else
23881   echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23883
23884         ac_lo= ac_hi=
23885 fi
23886
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888 fi
23889
23890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891 # Binary search between lo and hi bounds.
23892 while test "x$ac_lo" != "x$ac_hi"; do
23893   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23894   cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h.  */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h.  */
23900 $ac_includes_default
23901    typedef short int ac__type_sizeof_;
23902 int
23903 main ()
23904 {
23905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23906 test_array [0] = 0
23907
23908   ;
23909   return 0;
23910 }
23911 _ACEOF
23912 rm -f conftest.$ac_objext
23913 if { (ac_try="$ac_compile"
23914 case "(($ac_try" in
23915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916   *) ac_try_echo=$ac_try;;
23917 esac
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919   (eval "$ac_compile") 2>conftest.er1
23920   ac_status=$?
23921   grep -v '^ *+' conftest.er1 >conftest.err
23922   rm -f conftest.er1
23923   cat conftest.err >&5
23924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925   (exit $ac_status); } && {
23926          test -z "$ac_c_werror_flag" ||
23927          test ! -s conftest.err
23928        } && test -s conftest.$ac_objext; then
23929   ac_hi=$ac_mid
23930 else
23931   echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23933
23934         ac_lo=`expr '(' $ac_mid ')' + 1`
23935 fi
23936
23937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23938 done
23939 case $ac_lo in
23940 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23941 '') if test "$ac_cv_type_short_int" = yes; then
23942      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23943 See \`config.log' for more details." >&5
23944 echo "$as_me: error: cannot compute sizeof (short int)
23945 See \`config.log' for more details." >&2;}
23946    { (exit 77); exit 77; }; }
23947    else
23948      ac_cv_sizeof_short_int=0
23949    fi ;;
23950 esac
23951 else
23952   cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958 $ac_includes_default
23959    typedef short int ac__type_sizeof_;
23960 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23961 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23962 #include <stdio.h>
23963 #include <stdlib.h>
23964 int
23965 main ()
23966 {
23967
23968   FILE *f = fopen ("conftest.val", "w");
23969   if (! f)
23970     return 1;
23971   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23972     {
23973       long int i = longval ();
23974       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23975         return 1;
23976       fprintf (f, "%ld\n", i);
23977     }
23978   else
23979     {
23980       unsigned long int i = ulongval ();
23981       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23982         return 1;
23983       fprintf (f, "%lu\n", i);
23984     }
23985   return ferror (f) || fclose (f) != 0;
23986
23987   ;
23988   return 0;
23989 }
23990 _ACEOF
23991 rm -f conftest$ac_exeext
23992 if { (ac_try="$ac_link"
23993 case "(($ac_try" in
23994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995   *) ac_try_echo=$ac_try;;
23996 esac
23997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23998   (eval "$ac_link") 2>&5
23999   ac_status=$?
24000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24002   { (case "(($ac_try" in
24003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004   *) ac_try_echo=$ac_try;;
24005 esac
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007   (eval "$ac_try") 2>&5
24008   ac_status=$?
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); }; }; then
24011   ac_cv_sizeof_short_int=`cat conftest.val`
24012 else
24013   echo "$as_me: program exited with status $ac_status" >&5
24014 echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24016
24017 ( exit $ac_status )
24018 if test "$ac_cv_type_short_int" = yes; then
24019      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24020 See \`config.log' for more details." >&5
24021 echo "$as_me: error: cannot compute sizeof (short int)
24022 See \`config.log' for more details." >&2;}
24023    { (exit 77); exit 77; }; }
24024    else
24025      ac_cv_sizeof_short_int=0
24026    fi
24027 fi
24028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24029 fi
24030 rm -f conftest.val
24031 fi
24032 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24033 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24034
24035
24036
24037 cat >>confdefs.h <<_ACEOF
24038 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24039 _ACEOF
24040
24041
24042 { echo "$as_me:$LINENO: checking for int" >&5
24043 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24044 if test "${ac_cv_type_int+set}" = set; then
24045   echo $ECHO_N "(cached) $ECHO_C" >&6
24046 else
24047   cat >conftest.$ac_ext <<_ACEOF
24048 /* confdefs.h.  */
24049 _ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h.  */
24053 $ac_includes_default
24054 typedef int ac__type_new_;
24055 int
24056 main ()
24057 {
24058 if ((ac__type_new_ *) 0)
24059   return 0;
24060 if (sizeof (ac__type_new_))
24061   return 0;
24062   ;
24063   return 0;
24064 }
24065 _ACEOF
24066 rm -f conftest.$ac_objext
24067 if { (ac_try="$ac_compile"
24068 case "(($ac_try" in
24069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070   *) ac_try_echo=$ac_try;;
24071 esac
24072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24073   (eval "$ac_compile") 2>conftest.er1
24074   ac_status=$?
24075   grep -v '^ *+' conftest.er1 >conftest.err
24076   rm -f conftest.er1
24077   cat conftest.err >&5
24078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079   (exit $ac_status); } && {
24080          test -z "$ac_c_werror_flag" ||
24081          test ! -s conftest.err
24082        } && test -s conftest.$ac_objext; then
24083   ac_cv_type_int=yes
24084 else
24085   echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24087
24088         ac_cv_type_int=no
24089 fi
24090
24091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24092 fi
24093 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24094 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24095
24096 # The cast to long int works around a bug in the HP C Compiler
24097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24099 # This bug is HP SR number 8606223364.
24100 { echo "$as_me:$LINENO: checking size of int" >&5
24101 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24102 if test "${ac_cv_sizeof_int+set}" = set; then
24103   echo $ECHO_N "(cached) $ECHO_C" >&6
24104 else
24105   if test "$cross_compiling" = yes; then
24106   # Depending upon the size, compute the lo and hi bounds.
24107 cat >conftest.$ac_ext <<_ACEOF
24108 /* confdefs.h.  */
24109 _ACEOF
24110 cat confdefs.h >>conftest.$ac_ext
24111 cat >>conftest.$ac_ext <<_ACEOF
24112 /* end confdefs.h.  */
24113 $ac_includes_default
24114    typedef int ac__type_sizeof_;
24115 int
24116 main ()
24117 {
24118 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24119 test_array [0] = 0
24120
24121   ;
24122   return 0;
24123 }
24124 _ACEOF
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129   *) ac_try_echo=$ac_try;;
24130 esac
24131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24132   (eval "$ac_compile") 2>conftest.er1
24133   ac_status=$?
24134   grep -v '^ *+' conftest.er1 >conftest.err
24135   rm -f conftest.er1
24136   cat conftest.err >&5
24137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24138   (exit $ac_status); } && {
24139          test -z "$ac_c_werror_flag" ||
24140          test ! -s conftest.err
24141        } && test -s conftest.$ac_objext; then
24142   ac_lo=0 ac_mid=0
24143   while :; do
24144     cat >conftest.$ac_ext <<_ACEOF
24145 /* confdefs.h.  */
24146 _ACEOF
24147 cat confdefs.h >>conftest.$ac_ext
24148 cat >>conftest.$ac_ext <<_ACEOF
24149 /* end confdefs.h.  */
24150 $ac_includes_default
24151    typedef int ac__type_sizeof_;
24152 int
24153 main ()
24154 {
24155 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24156 test_array [0] = 0
24157
24158   ;
24159   return 0;
24160 }
24161 _ACEOF
24162 rm -f conftest.$ac_objext
24163 if { (ac_try="$ac_compile"
24164 case "(($ac_try" in
24165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24166   *) ac_try_echo=$ac_try;;
24167 esac
24168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24169   (eval "$ac_compile") 2>conftest.er1
24170   ac_status=$?
24171   grep -v '^ *+' conftest.er1 >conftest.err
24172   rm -f conftest.er1
24173   cat conftest.err >&5
24174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24175   (exit $ac_status); } && {
24176          test -z "$ac_c_werror_flag" ||
24177          test ! -s conftest.err
24178        } && test -s conftest.$ac_objext; then
24179   ac_hi=$ac_mid; break
24180 else
24181   echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24183
24184         ac_lo=`expr $ac_mid + 1`
24185                         if test $ac_lo -le $ac_mid; then
24186                           ac_lo= ac_hi=
24187                           break
24188                         fi
24189                         ac_mid=`expr 2 '*' $ac_mid + 1`
24190 fi
24191
24192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24193   done
24194 else
24195   echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24197
24198         cat >conftest.$ac_ext <<_ACEOF
24199 /* confdefs.h.  */
24200 _ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h.  */
24204 $ac_includes_default
24205    typedef int ac__type_sizeof_;
24206 int
24207 main ()
24208 {
24209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24210 test_array [0] = 0
24211
24212   ;
24213   return 0;
24214 }
24215 _ACEOF
24216 rm -f conftest.$ac_objext
24217 if { (ac_try="$ac_compile"
24218 case "(($ac_try" in
24219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220   *) ac_try_echo=$ac_try;;
24221 esac
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223   (eval "$ac_compile") 2>conftest.er1
24224   ac_status=$?
24225   grep -v '^ *+' conftest.er1 >conftest.err
24226   rm -f conftest.er1
24227   cat conftest.err >&5
24228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); } && {
24230          test -z "$ac_c_werror_flag" ||
24231          test ! -s conftest.err
24232        } && test -s conftest.$ac_objext; then
24233   ac_hi=-1 ac_mid=-1
24234   while :; do
24235     cat >conftest.$ac_ext <<_ACEOF
24236 /* confdefs.h.  */
24237 _ACEOF
24238 cat confdefs.h >>conftest.$ac_ext
24239 cat >>conftest.$ac_ext <<_ACEOF
24240 /* end confdefs.h.  */
24241 $ac_includes_default
24242    typedef int ac__type_sizeof_;
24243 int
24244 main ()
24245 {
24246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24247 test_array [0] = 0
24248
24249   ;
24250   return 0;
24251 }
24252 _ACEOF
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257   *) ac_try_echo=$ac_try;;
24258 esac
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260   (eval "$ac_compile") 2>conftest.er1
24261   ac_status=$?
24262   grep -v '^ *+' conftest.er1 >conftest.err
24263   rm -f conftest.er1
24264   cat conftest.err >&5
24265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266   (exit $ac_status); } && {
24267          test -z "$ac_c_werror_flag" ||
24268          test ! -s conftest.err
24269        } && test -s conftest.$ac_objext; then
24270   ac_lo=$ac_mid; break
24271 else
24272   echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24274
24275         ac_hi=`expr '(' $ac_mid ')' - 1`
24276                         if test $ac_mid -le $ac_hi; then
24277                           ac_lo= ac_hi=
24278                           break
24279                         fi
24280                         ac_mid=`expr 2 '*' $ac_mid`
24281 fi
24282
24283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24284   done
24285 else
24286   echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24288
24289         ac_lo= ac_hi=
24290 fi
24291
24292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24293 fi
24294
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296 # Binary search between lo and hi bounds.
24297 while test "x$ac_lo" != "x$ac_hi"; do
24298   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24299   cat >conftest.$ac_ext <<_ACEOF
24300 /* confdefs.h.  */
24301 _ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h.  */
24305 $ac_includes_default
24306    typedef int ac__type_sizeof_;
24307 int
24308 main ()
24309 {
24310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24311 test_array [0] = 0
24312
24313   ;
24314   return 0;
24315 }
24316 _ACEOF
24317 rm -f conftest.$ac_objext
24318 if { (ac_try="$ac_compile"
24319 case "(($ac_try" in
24320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321   *) ac_try_echo=$ac_try;;
24322 esac
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324   (eval "$ac_compile") 2>conftest.er1
24325   ac_status=$?
24326   grep -v '^ *+' conftest.er1 >conftest.err
24327   rm -f conftest.er1
24328   cat conftest.err >&5
24329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330   (exit $ac_status); } && {
24331          test -z "$ac_c_werror_flag" ||
24332          test ! -s conftest.err
24333        } && test -s conftest.$ac_objext; then
24334   ac_hi=$ac_mid
24335 else
24336   echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24338
24339         ac_lo=`expr '(' $ac_mid ')' + 1`
24340 fi
24341
24342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24343 done
24344 case $ac_lo in
24345 ?*) ac_cv_sizeof_int=$ac_lo;;
24346 '') if test "$ac_cv_type_int" = yes; then
24347      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24348 See \`config.log' for more details." >&5
24349 echo "$as_me: error: cannot compute sizeof (int)
24350 See \`config.log' for more details." >&2;}
24351    { (exit 77); exit 77; }; }
24352    else
24353      ac_cv_sizeof_int=0
24354    fi ;;
24355 esac
24356 else
24357   cat >conftest.$ac_ext <<_ACEOF
24358 /* confdefs.h.  */
24359 _ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h.  */
24363 $ac_includes_default
24364    typedef int ac__type_sizeof_;
24365 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24366 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24367 #include <stdio.h>
24368 #include <stdlib.h>
24369 int
24370 main ()
24371 {
24372
24373   FILE *f = fopen ("conftest.val", "w");
24374   if (! f)
24375     return 1;
24376   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24377     {
24378       long int i = longval ();
24379       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24380         return 1;
24381       fprintf (f, "%ld\n", i);
24382     }
24383   else
24384     {
24385       unsigned long int i = ulongval ();
24386       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24387         return 1;
24388       fprintf (f, "%lu\n", i);
24389     }
24390   return ferror (f) || fclose (f) != 0;
24391
24392   ;
24393   return 0;
24394 }
24395 _ACEOF
24396 rm -f conftest$ac_exeext
24397 if { (ac_try="$ac_link"
24398 case "(($ac_try" in
24399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400   *) ac_try_echo=$ac_try;;
24401 esac
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403   (eval "$ac_link") 2>&5
24404   ac_status=$?
24405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24407   { (case "(($ac_try" in
24408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409   *) ac_try_echo=$ac_try;;
24410 esac
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412   (eval "$ac_try") 2>&5
24413   ac_status=$?
24414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415   (exit $ac_status); }; }; then
24416   ac_cv_sizeof_int=`cat conftest.val`
24417 else
24418   echo "$as_me: program exited with status $ac_status" >&5
24419 echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24421
24422 ( exit $ac_status )
24423 if test "$ac_cv_type_int" = yes; then
24424      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24425 See \`config.log' for more details." >&5
24426 echo "$as_me: error: cannot compute sizeof (int)
24427 See \`config.log' for more details." >&2;}
24428    { (exit 77); exit 77; }; }
24429    else
24430      ac_cv_sizeof_int=0
24431    fi
24432 fi
24433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24434 fi
24435 rm -f conftest.val
24436 fi
24437 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24438 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24439
24440
24441
24442 cat >>confdefs.h <<_ACEOF
24443 #define SIZEOF_INT $ac_cv_sizeof_int
24444 _ACEOF
24445
24446
24447 { echo "$as_me:$LINENO: checking for long int" >&5
24448 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24449 if test "${ac_cv_type_long_int+set}" = set; then
24450   echo $ECHO_N "(cached) $ECHO_C" >&6
24451 else
24452   cat >conftest.$ac_ext <<_ACEOF
24453 /* confdefs.h.  */
24454 _ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h.  */
24458 $ac_includes_default
24459 typedef long int ac__type_new_;
24460 int
24461 main ()
24462 {
24463 if ((ac__type_new_ *) 0)
24464   return 0;
24465 if (sizeof (ac__type_new_))
24466   return 0;
24467   ;
24468   return 0;
24469 }
24470 _ACEOF
24471 rm -f conftest.$ac_objext
24472 if { (ac_try="$ac_compile"
24473 case "(($ac_try" in
24474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475   *) ac_try_echo=$ac_try;;
24476 esac
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478   (eval "$ac_compile") 2>conftest.er1
24479   ac_status=$?
24480   grep -v '^ *+' conftest.er1 >conftest.err
24481   rm -f conftest.er1
24482   cat conftest.err >&5
24483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484   (exit $ac_status); } && {
24485          test -z "$ac_c_werror_flag" ||
24486          test ! -s conftest.err
24487        } && test -s conftest.$ac_objext; then
24488   ac_cv_type_long_int=yes
24489 else
24490   echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493         ac_cv_type_long_int=no
24494 fi
24495
24496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24497 fi
24498 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24499 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24500
24501 # The cast to long int works around a bug in the HP C Compiler
24502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24504 # This bug is HP SR number 8606223364.
24505 { echo "$as_me:$LINENO: checking size of long int" >&5
24506 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24507 if test "${ac_cv_sizeof_long_int+set}" = set; then
24508   echo $ECHO_N "(cached) $ECHO_C" >&6
24509 else
24510   if test "$cross_compiling" = yes; then
24511   # Depending upon the size, compute the lo and hi bounds.
24512 cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 $ac_includes_default
24519    typedef long int ac__type_sizeof_;
24520 int
24521 main ()
24522 {
24523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24524 test_array [0] = 0
24525
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534   *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537   (eval "$ac_compile") 2>conftest.er1
24538   ac_status=$?
24539   grep -v '^ *+' conftest.er1 >conftest.err
24540   rm -f conftest.er1
24541   cat conftest.err >&5
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } && {
24544          test -z "$ac_c_werror_flag" ||
24545          test ! -s conftest.err
24546        } && test -s conftest.$ac_objext; then
24547   ac_lo=0 ac_mid=0
24548   while :; do
24549     cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h.  */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h.  */
24555 $ac_includes_default
24556    typedef long int ac__type_sizeof_;
24557 int
24558 main ()
24559 {
24560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24561 test_array [0] = 0
24562
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext
24568 if { (ac_try="$ac_compile"
24569 case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_compile") 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } && {
24581          test -z "$ac_c_werror_flag" ||
24582          test ! -s conftest.err
24583        } && test -s conftest.$ac_objext; then
24584   ac_hi=$ac_mid; break
24585 else
24586   echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24588
24589         ac_lo=`expr $ac_mid + 1`
24590                         if test $ac_lo -le $ac_mid; then
24591                           ac_lo= ac_hi=
24592                           break
24593                         fi
24594                         ac_mid=`expr 2 '*' $ac_mid + 1`
24595 fi
24596
24597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24598   done
24599 else
24600   echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24602
24603         cat >conftest.$ac_ext <<_ACEOF
24604 /* confdefs.h.  */
24605 _ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h.  */
24609 $ac_includes_default
24610    typedef long int ac__type_sizeof_;
24611 int
24612 main ()
24613 {
24614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24615 test_array [0] = 0
24616
24617   ;
24618   return 0;
24619 }
24620 _ACEOF
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625   *) ac_try_echo=$ac_try;;
24626 esac
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628   (eval "$ac_compile") 2>conftest.er1
24629   ac_status=$?
24630   grep -v '^ *+' conftest.er1 >conftest.err
24631   rm -f conftest.er1
24632   cat conftest.err >&5
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); } && {
24635          test -z "$ac_c_werror_flag" ||
24636          test ! -s conftest.err
24637        } && test -s conftest.$ac_objext; then
24638   ac_hi=-1 ac_mid=-1
24639   while :; do
24640     cat >conftest.$ac_ext <<_ACEOF
24641 /* confdefs.h.  */
24642 _ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h.  */
24646 $ac_includes_default
24647    typedef long int ac__type_sizeof_;
24648 int
24649 main ()
24650 {
24651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24652 test_array [0] = 0
24653
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662   *) ac_try_echo=$ac_try;;
24663 esac
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665   (eval "$ac_compile") 2>conftest.er1
24666   ac_status=$?
24667   grep -v '^ *+' conftest.er1 >conftest.err
24668   rm -f conftest.er1
24669   cat conftest.err >&5
24670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671   (exit $ac_status); } && {
24672          test -z "$ac_c_werror_flag" ||
24673          test ! -s conftest.err
24674        } && test -s conftest.$ac_objext; then
24675   ac_lo=$ac_mid; break
24676 else
24677   echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24679
24680         ac_hi=`expr '(' $ac_mid ')' - 1`
24681                         if test $ac_mid -le $ac_hi; then
24682                           ac_lo= ac_hi=
24683                           break
24684                         fi
24685                         ac_mid=`expr 2 '*' $ac_mid`
24686 fi
24687
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24689   done
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694         ac_lo= ac_hi=
24695 fi
24696
24697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698 fi
24699
24700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24701 # Binary search between lo and hi bounds.
24702 while test "x$ac_lo" != "x$ac_hi"; do
24703   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24704   cat >conftest.$ac_ext <<_ACEOF
24705 /* confdefs.h.  */
24706 _ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h.  */
24710 $ac_includes_default
24711    typedef long int ac__type_sizeof_;
24712 int
24713 main ()
24714 {
24715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24716 test_array [0] = 0
24717
24718   ;
24719   return 0;
24720 }
24721 _ACEOF
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726   *) ac_try_echo=$ac_try;;
24727 esac
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729   (eval "$ac_compile") 2>conftest.er1
24730   ac_status=$?
24731   grep -v '^ *+' conftest.er1 >conftest.err
24732   rm -f conftest.er1
24733   cat conftest.err >&5
24734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735   (exit $ac_status); } && {
24736          test -z "$ac_c_werror_flag" ||
24737          test ! -s conftest.err
24738        } && test -s conftest.$ac_objext; then
24739   ac_hi=$ac_mid
24740 else
24741   echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24743
24744         ac_lo=`expr '(' $ac_mid ')' + 1`
24745 fi
24746
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748 done
24749 case $ac_lo in
24750 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24751 '') if test "$ac_cv_type_long_int" = yes; then
24752      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24753 See \`config.log' for more details." >&5
24754 echo "$as_me: error: cannot compute sizeof (long int)
24755 See \`config.log' for more details." >&2;}
24756    { (exit 77); exit 77; }; }
24757    else
24758      ac_cv_sizeof_long_int=0
24759    fi ;;
24760 esac
24761 else
24762   cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h.  */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h.  */
24768 $ac_includes_default
24769    typedef long int ac__type_sizeof_;
24770 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24771 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24772 #include <stdio.h>
24773 #include <stdlib.h>
24774 int
24775 main ()
24776 {
24777
24778   FILE *f = fopen ("conftest.val", "w");
24779   if (! f)
24780     return 1;
24781   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24782     {
24783       long int i = longval ();
24784       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24785         return 1;
24786       fprintf (f, "%ld\n", i);
24787     }
24788   else
24789     {
24790       unsigned long int i = ulongval ();
24791       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24792         return 1;
24793       fprintf (f, "%lu\n", i);
24794     }
24795   return ferror (f) || fclose (f) != 0;
24796
24797   ;
24798   return 0;
24799 }
24800 _ACEOF
24801 rm -f conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805   *) ac_try_echo=$ac_try;;
24806 esac
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808   (eval "$ac_link") 2>&5
24809   ac_status=$?
24810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812   { (case "(($ac_try" in
24813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814   *) ac_try_echo=$ac_try;;
24815 esac
24816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817   (eval "$ac_try") 2>&5
24818   ac_status=$?
24819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820   (exit $ac_status); }; }; then
24821   ac_cv_sizeof_long_int=`cat conftest.val`
24822 else
24823   echo "$as_me: program exited with status $ac_status" >&5
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24826
24827 ( exit $ac_status )
24828 if test "$ac_cv_type_long_int" = yes; then
24829      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24830 See \`config.log' for more details." >&5
24831 echo "$as_me: error: cannot compute sizeof (long int)
24832 See \`config.log' for more details." >&2;}
24833    { (exit 77); exit 77; }; }
24834    else
24835      ac_cv_sizeof_long_int=0
24836    fi
24837 fi
24838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24839 fi
24840 rm -f conftest.val
24841 fi
24842 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24843 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24844
24845
24846
24847 cat >>confdefs.h <<_ACEOF
24848 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24849 _ACEOF
24850
24851
24852 { echo "$as_me:$LINENO: checking for long long int" >&5
24853 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24854 if test "${ac_cv_type_long_long_int+set}" = set; then
24855   echo $ECHO_N "(cached) $ECHO_C" >&6
24856 else
24857   cat >conftest.$ac_ext <<_ACEOF
24858 /* confdefs.h.  */
24859 _ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h.  */
24863 $ac_includes_default
24864 typedef long long int ac__type_new_;
24865 int
24866 main ()
24867 {
24868 if ((ac__type_new_ *) 0)
24869   return 0;
24870 if (sizeof (ac__type_new_))
24871   return 0;
24872   ;
24873   return 0;
24874 }
24875 _ACEOF
24876 rm -f conftest.$ac_objext
24877 if { (ac_try="$ac_compile"
24878 case "(($ac_try" in
24879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880   *) ac_try_echo=$ac_try;;
24881 esac
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883   (eval "$ac_compile") 2>conftest.er1
24884   ac_status=$?
24885   grep -v '^ *+' conftest.er1 >conftest.err
24886   rm -f conftest.er1
24887   cat conftest.err >&5
24888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889   (exit $ac_status); } && {
24890          test -z "$ac_c_werror_flag" ||
24891          test ! -s conftest.err
24892        } && test -s conftest.$ac_objext; then
24893   ac_cv_type_long_long_int=yes
24894 else
24895   echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24897
24898         ac_cv_type_long_long_int=no
24899 fi
24900
24901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902 fi
24903 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24904 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24905
24906 # The cast to long int works around a bug in the HP C Compiler
24907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24909 # This bug is HP SR number 8606223364.
24910 { echo "$as_me:$LINENO: checking size of long long int" >&5
24911 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24912 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24913   echo $ECHO_N "(cached) $ECHO_C" >&6
24914 else
24915   if test "$cross_compiling" = yes; then
24916   # Depending upon the size, compute the lo and hi bounds.
24917 cat >conftest.$ac_ext <<_ACEOF
24918 /* confdefs.h.  */
24919 _ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h.  */
24923 $ac_includes_default
24924    typedef long long int ac__type_sizeof_;
24925 int
24926 main ()
24927 {
24928 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24929 test_array [0] = 0
24930
24931   ;
24932   return 0;
24933 }
24934 _ACEOF
24935 rm -f conftest.$ac_objext
24936 if { (ac_try="$ac_compile"
24937 case "(($ac_try" in
24938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24939   *) ac_try_echo=$ac_try;;
24940 esac
24941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24942   (eval "$ac_compile") 2>conftest.er1
24943   ac_status=$?
24944   grep -v '^ *+' conftest.er1 >conftest.err
24945   rm -f conftest.er1
24946   cat conftest.err >&5
24947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948   (exit $ac_status); } && {
24949          test -z "$ac_c_werror_flag" ||
24950          test ! -s conftest.err
24951        } && test -s conftest.$ac_objext; then
24952   ac_lo=0 ac_mid=0
24953   while :; do
24954     cat >conftest.$ac_ext <<_ACEOF
24955 /* confdefs.h.  */
24956 _ACEOF
24957 cat confdefs.h >>conftest.$ac_ext
24958 cat >>conftest.$ac_ext <<_ACEOF
24959 /* end confdefs.h.  */
24960 $ac_includes_default
24961    typedef long long int ac__type_sizeof_;
24962 int
24963 main ()
24964 {
24965 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24966 test_array [0] = 0
24967
24968   ;
24969   return 0;
24970 }
24971 _ACEOF
24972 rm -f conftest.$ac_objext
24973 if { (ac_try="$ac_compile"
24974 case "(($ac_try" in
24975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24976   *) ac_try_echo=$ac_try;;
24977 esac
24978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24979   (eval "$ac_compile") 2>conftest.er1
24980   ac_status=$?
24981   grep -v '^ *+' conftest.er1 >conftest.err
24982   rm -f conftest.er1
24983   cat conftest.err >&5
24984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985   (exit $ac_status); } && {
24986          test -z "$ac_c_werror_flag" ||
24987          test ! -s conftest.err
24988        } && test -s conftest.$ac_objext; then
24989   ac_hi=$ac_mid; break
24990 else
24991   echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24993
24994         ac_lo=`expr $ac_mid + 1`
24995                         if test $ac_lo -le $ac_mid; then
24996                           ac_lo= ac_hi=
24997                           break
24998                         fi
24999                         ac_mid=`expr 2 '*' $ac_mid + 1`
25000 fi
25001
25002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003   done
25004 else
25005   echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25007
25008         cat >conftest.$ac_ext <<_ACEOF
25009 /* confdefs.h.  */
25010 _ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h.  */
25014 $ac_includes_default
25015    typedef long long int ac__type_sizeof_;
25016 int
25017 main ()
25018 {
25019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25020 test_array [0] = 0
25021
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033   (eval "$ac_compile") 2>conftest.er1
25034   ac_status=$?
25035   grep -v '^ *+' conftest.er1 >conftest.err
25036   rm -f conftest.er1
25037   cat conftest.err >&5
25038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039   (exit $ac_status); } && {
25040          test -z "$ac_c_werror_flag" ||
25041          test ! -s conftest.err
25042        } && test -s conftest.$ac_objext; then
25043   ac_hi=-1 ac_mid=-1
25044   while :; do
25045     cat >conftest.$ac_ext <<_ACEOF
25046 /* confdefs.h.  */
25047 _ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h.  */
25051 $ac_includes_default
25052    typedef long long int ac__type_sizeof_;
25053 int
25054 main ()
25055 {
25056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25057 test_array [0] = 0
25058
25059   ;
25060   return 0;
25061 }
25062 _ACEOF
25063 rm -f conftest.$ac_objext
25064 if { (ac_try="$ac_compile"
25065 case "(($ac_try" in
25066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067   *) ac_try_echo=$ac_try;;
25068 esac
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070   (eval "$ac_compile") 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } && {
25077          test -z "$ac_c_werror_flag" ||
25078          test ! -s conftest.err
25079        } && test -s conftest.$ac_objext; then
25080   ac_lo=$ac_mid; break
25081 else
25082   echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25084
25085         ac_hi=`expr '(' $ac_mid ')' - 1`
25086                         if test $ac_mid -le $ac_hi; then
25087                           ac_lo= ac_hi=
25088                           break
25089                         fi
25090                         ac_mid=`expr 2 '*' $ac_mid`
25091 fi
25092
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25094   done
25095 else
25096   echo "$as_me: failed program was:" >&5
25097 sed 's/^/| /' conftest.$ac_ext >&5
25098
25099         ac_lo= ac_hi=
25100 fi
25101
25102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25103 fi
25104
25105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106 # Binary search between lo and hi bounds.
25107 while test "x$ac_lo" != "x$ac_hi"; do
25108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25109   cat >conftest.$ac_ext <<_ACEOF
25110 /* confdefs.h.  */
25111 _ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h.  */
25115 $ac_includes_default
25116    typedef long long int ac__type_sizeof_;
25117 int
25118 main ()
25119 {
25120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25121 test_array [0] = 0
25122
25123   ;
25124   return 0;
25125 }
25126 _ACEOF
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131   *) ac_try_echo=$ac_try;;
25132 esac
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134   (eval "$ac_compile") 2>conftest.er1
25135   ac_status=$?
25136   grep -v '^ *+' conftest.er1 >conftest.err
25137   rm -f conftest.er1
25138   cat conftest.err >&5
25139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140   (exit $ac_status); } && {
25141          test -z "$ac_c_werror_flag" ||
25142          test ! -s conftest.err
25143        } && test -s conftest.$ac_objext; then
25144   ac_hi=$ac_mid
25145 else
25146   echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25148
25149         ac_lo=`expr '(' $ac_mid ')' + 1`
25150 fi
25151
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153 done
25154 case $ac_lo in
25155 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25156 '') if test "$ac_cv_type_long_long_int" = yes; then
25157      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25158 See \`config.log' for more details." >&5
25159 echo "$as_me: error: cannot compute sizeof (long long int)
25160 See \`config.log' for more details." >&2;}
25161    { (exit 77); exit 77; }; }
25162    else
25163      ac_cv_sizeof_long_long_int=0
25164    fi ;;
25165 esac
25166 else
25167   cat >conftest.$ac_ext <<_ACEOF
25168 /* confdefs.h.  */
25169 _ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h.  */
25173 $ac_includes_default
25174    typedef long long int ac__type_sizeof_;
25175 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25176 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25177 #include <stdio.h>
25178 #include <stdlib.h>
25179 int
25180 main ()
25181 {
25182
25183   FILE *f = fopen ("conftest.val", "w");
25184   if (! f)
25185     return 1;
25186   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25187     {
25188       long int i = longval ();
25189       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25190         return 1;
25191       fprintf (f, "%ld\n", i);
25192     }
25193   else
25194     {
25195       unsigned long int i = ulongval ();
25196       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25197         return 1;
25198       fprintf (f, "%lu\n", i);
25199     }
25200   return ferror (f) || fclose (f) != 0;
25201
25202   ;
25203   return 0;
25204 }
25205 _ACEOF
25206 rm -f conftest$ac_exeext
25207 if { (ac_try="$ac_link"
25208 case "(($ac_try" in
25209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210   *) ac_try_echo=$ac_try;;
25211 esac
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213   (eval "$ac_link") 2>&5
25214   ac_status=$?
25215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217   { (case "(($ac_try" in
25218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219   *) ac_try_echo=$ac_try;;
25220 esac
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222   (eval "$ac_try") 2>&5
25223   ac_status=$?
25224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225   (exit $ac_status); }; }; then
25226   ac_cv_sizeof_long_long_int=`cat conftest.val`
25227 else
25228   echo "$as_me: program exited with status $ac_status" >&5
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25231
25232 ( exit $ac_status )
25233 if test "$ac_cv_type_long_long_int" = yes; then
25234      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25235 See \`config.log' for more details." >&5
25236 echo "$as_me: error: cannot compute sizeof (long long int)
25237 See \`config.log' for more details." >&2;}
25238    { (exit 77); exit 77; }; }
25239    else
25240      ac_cv_sizeof_long_long_int=0
25241    fi
25242 fi
25243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25244 fi
25245 rm -f conftest.val
25246 fi
25247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25248 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25249
25250
25251
25252 cat >>confdefs.h <<_ACEOF
25253 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25254 _ACEOF
25255
25256
25257 { echo "$as_me:$LINENO: checking for int *" >&5
25258 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25259 if test "${ac_cv_type_int_p+set}" = set; then
25260   echo $ECHO_N "(cached) $ECHO_C" >&6
25261 else
25262   cat >conftest.$ac_ext <<_ACEOF
25263 /* confdefs.h.  */
25264 _ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h.  */
25268 $ac_includes_default
25269 typedef int * ac__type_new_;
25270 int
25271 main ()
25272 {
25273 if ((ac__type_new_ *) 0)
25274   return 0;
25275 if (sizeof (ac__type_new_))
25276   return 0;
25277   ;
25278   return 0;
25279 }
25280 _ACEOF
25281 rm -f conftest.$ac_objext
25282 if { (ac_try="$ac_compile"
25283 case "(($ac_try" in
25284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285   *) ac_try_echo=$ac_try;;
25286 esac
25287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25288   (eval "$ac_compile") 2>conftest.er1
25289   ac_status=$?
25290   grep -v '^ *+' conftest.er1 >conftest.err
25291   rm -f conftest.er1
25292   cat conftest.err >&5
25293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294   (exit $ac_status); } && {
25295          test -z "$ac_c_werror_flag" ||
25296          test ! -s conftest.err
25297        } && test -s conftest.$ac_objext; then
25298   ac_cv_type_int_p=yes
25299 else
25300   echo "$as_me: failed program was:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25302
25303         ac_cv_type_int_p=no
25304 fi
25305
25306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25307 fi
25308 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25309 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25310
25311 # The cast to long int works around a bug in the HP C Compiler
25312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25314 # This bug is HP SR number 8606223364.
25315 { echo "$as_me:$LINENO: checking size of int *" >&5
25316 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25317 if test "${ac_cv_sizeof_int_p+set}" = set; then
25318   echo $ECHO_N "(cached) $ECHO_C" >&6
25319 else
25320   if test "$cross_compiling" = yes; then
25321   # Depending upon the size, compute the lo and hi bounds.
25322 cat >conftest.$ac_ext <<_ACEOF
25323 /* confdefs.h.  */
25324 _ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h.  */
25328 $ac_includes_default
25329    typedef int * ac__type_sizeof_;
25330 int
25331 main ()
25332 {
25333 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25334 test_array [0] = 0
25335
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 rm -f conftest.$ac_objext
25341 if { (ac_try="$ac_compile"
25342 case "(($ac_try" in
25343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25344   *) ac_try_echo=$ac_try;;
25345 esac
25346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25347   (eval "$ac_compile") 2>conftest.er1
25348   ac_status=$?
25349   grep -v '^ *+' conftest.er1 >conftest.err
25350   rm -f conftest.er1
25351   cat conftest.err >&5
25352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25353   (exit $ac_status); } && {
25354          test -z "$ac_c_werror_flag" ||
25355          test ! -s conftest.err
25356        } && test -s conftest.$ac_objext; then
25357   ac_lo=0 ac_mid=0
25358   while :; do
25359     cat >conftest.$ac_ext <<_ACEOF
25360 /* confdefs.h.  */
25361 _ACEOF
25362 cat confdefs.h >>conftest.$ac_ext
25363 cat >>conftest.$ac_ext <<_ACEOF
25364 /* end confdefs.h.  */
25365 $ac_includes_default
25366    typedef int * ac__type_sizeof_;
25367 int
25368 main ()
25369 {
25370 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25371 test_array [0] = 0
25372
25373   ;
25374   return 0;
25375 }
25376 _ACEOF
25377 rm -f conftest.$ac_objext
25378 if { (ac_try="$ac_compile"
25379 case "(($ac_try" in
25380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25381   *) ac_try_echo=$ac_try;;
25382 esac
25383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25384   (eval "$ac_compile") 2>conftest.er1
25385   ac_status=$?
25386   grep -v '^ *+' conftest.er1 >conftest.err
25387   rm -f conftest.er1
25388   cat conftest.err >&5
25389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25390   (exit $ac_status); } && {
25391          test -z "$ac_c_werror_flag" ||
25392          test ! -s conftest.err
25393        } && test -s conftest.$ac_objext; then
25394   ac_hi=$ac_mid; break
25395 else
25396   echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25398
25399         ac_lo=`expr $ac_mid + 1`
25400                         if test $ac_lo -le $ac_mid; then
25401                           ac_lo= ac_hi=
25402                           break
25403                         fi
25404                         ac_mid=`expr 2 '*' $ac_mid + 1`
25405 fi
25406
25407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25408   done
25409 else
25410   echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.$ac_ext >&5
25412
25413         cat >conftest.$ac_ext <<_ACEOF
25414 /* confdefs.h.  */
25415 _ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h.  */
25419 $ac_includes_default
25420    typedef int * ac__type_sizeof_;
25421 int
25422 main ()
25423 {
25424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25425 test_array [0] = 0
25426
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 rm -f conftest.$ac_objext
25432 if { (ac_try="$ac_compile"
25433 case "(($ac_try" in
25434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435   *) ac_try_echo=$ac_try;;
25436 esac
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438   (eval "$ac_compile") 2>conftest.er1
25439   ac_status=$?
25440   grep -v '^ *+' conftest.er1 >conftest.err
25441   rm -f conftest.er1
25442   cat conftest.err >&5
25443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444   (exit $ac_status); } && {
25445          test -z "$ac_c_werror_flag" ||
25446          test ! -s conftest.err
25447        } && test -s conftest.$ac_objext; then
25448   ac_hi=-1 ac_mid=-1
25449   while :; do
25450     cat >conftest.$ac_ext <<_ACEOF
25451 /* confdefs.h.  */
25452 _ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h.  */
25456 $ac_includes_default
25457    typedef int * ac__type_sizeof_;
25458 int
25459 main ()
25460 {
25461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25462 test_array [0] = 0
25463
25464   ;
25465   return 0;
25466 }
25467 _ACEOF
25468 rm -f conftest.$ac_objext
25469 if { (ac_try="$ac_compile"
25470 case "(($ac_try" in
25471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472   *) ac_try_echo=$ac_try;;
25473 esac
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475   (eval "$ac_compile") 2>conftest.er1
25476   ac_status=$?
25477   grep -v '^ *+' conftest.er1 >conftest.err
25478   rm -f conftest.er1
25479   cat conftest.err >&5
25480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481   (exit $ac_status); } && {
25482          test -z "$ac_c_werror_flag" ||
25483          test ! -s conftest.err
25484        } && test -s conftest.$ac_objext; then
25485   ac_lo=$ac_mid; break
25486 else
25487   echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490         ac_hi=`expr '(' $ac_mid ')' - 1`
25491                         if test $ac_mid -le $ac_hi; then
25492                           ac_lo= ac_hi=
25493                           break
25494                         fi
25495                         ac_mid=`expr 2 '*' $ac_mid`
25496 fi
25497
25498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25499   done
25500 else
25501   echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25503
25504         ac_lo= ac_hi=
25505 fi
25506
25507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25508 fi
25509
25510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511 # Binary search between lo and hi bounds.
25512 while test "x$ac_lo" != "x$ac_hi"; do
25513   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25514   cat >conftest.$ac_ext <<_ACEOF
25515 /* confdefs.h.  */
25516 _ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h.  */
25520 $ac_includes_default
25521    typedef int * ac__type_sizeof_;
25522 int
25523 main ()
25524 {
25525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25526 test_array [0] = 0
25527
25528   ;
25529   return 0;
25530 }
25531 _ACEOF
25532 rm -f conftest.$ac_objext
25533 if { (ac_try="$ac_compile"
25534 case "(($ac_try" in
25535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536   *) ac_try_echo=$ac_try;;
25537 esac
25538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539   (eval "$ac_compile") 2>conftest.er1
25540   ac_status=$?
25541   grep -v '^ *+' conftest.er1 >conftest.err
25542   rm -f conftest.er1
25543   cat conftest.err >&5
25544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545   (exit $ac_status); } && {
25546          test -z "$ac_c_werror_flag" ||
25547          test ! -s conftest.err
25548        } && test -s conftest.$ac_objext; then
25549   ac_hi=$ac_mid
25550 else
25551   echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25553
25554         ac_lo=`expr '(' $ac_mid ')' + 1`
25555 fi
25556
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25558 done
25559 case $ac_lo in
25560 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25561 '') if test "$ac_cv_type_int_p" = yes; then
25562      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25563 See \`config.log' for more details." >&5
25564 echo "$as_me: error: cannot compute sizeof (int *)
25565 See \`config.log' for more details." >&2;}
25566    { (exit 77); exit 77; }; }
25567    else
25568      ac_cv_sizeof_int_p=0
25569    fi ;;
25570 esac
25571 else
25572   cat >conftest.$ac_ext <<_ACEOF
25573 /* confdefs.h.  */
25574 _ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h.  */
25578 $ac_includes_default
25579    typedef int * ac__type_sizeof_;
25580 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25581 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25582 #include <stdio.h>
25583 #include <stdlib.h>
25584 int
25585 main ()
25586 {
25587
25588   FILE *f = fopen ("conftest.val", "w");
25589   if (! f)
25590     return 1;
25591   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25592     {
25593       long int i = longval ();
25594       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25595         return 1;
25596       fprintf (f, "%ld\n", i);
25597     }
25598   else
25599     {
25600       unsigned long int i = ulongval ();
25601       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25602         return 1;
25603       fprintf (f, "%lu\n", i);
25604     }
25605   return ferror (f) || fclose (f) != 0;
25606
25607   ;
25608   return 0;
25609 }
25610 _ACEOF
25611 rm -f conftest$ac_exeext
25612 if { (ac_try="$ac_link"
25613 case "(($ac_try" in
25614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615   *) ac_try_echo=$ac_try;;
25616 esac
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618   (eval "$ac_link") 2>&5
25619   ac_status=$?
25620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25622   { (case "(($ac_try" in
25623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624   *) ac_try_echo=$ac_try;;
25625 esac
25626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25627   (eval "$ac_try") 2>&5
25628   ac_status=$?
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); }; }; then
25631   ac_cv_sizeof_int_p=`cat conftest.val`
25632 else
25633   echo "$as_me: program exited with status $ac_status" >&5
25634 echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25636
25637 ( exit $ac_status )
25638 if test "$ac_cv_type_int_p" = yes; then
25639      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25640 See \`config.log' for more details." >&5
25641 echo "$as_me: error: cannot compute sizeof (int *)
25642 See \`config.log' for more details." >&2;}
25643    { (exit 77); exit 77; }; }
25644    else
25645      ac_cv_sizeof_int_p=0
25646    fi
25647 fi
25648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25649 fi
25650 rm -f conftest.val
25651 fi
25652 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25653 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25654
25655
25656
25657 cat >>confdefs.h <<_ACEOF
25658 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25659 _ACEOF
25660
25661
25662
25663 # Check for sys/types.h types
25664 { echo "$as_me:$LINENO: checking for u_int type" >&5
25665 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25666 if test "${ac_cv_have_u_int+set}" = set; then
25667   echo $ECHO_N "(cached) $ECHO_C" >&6
25668 else
25669
25670     cat >conftest.$ac_ext <<_ACEOF
25671 /* confdefs.h.  */
25672 _ACEOF
25673 cat confdefs.h >>conftest.$ac_ext
25674 cat >>conftest.$ac_ext <<_ACEOF
25675 /* end confdefs.h.  */
25676  #include <sys/types.h>
25677 int
25678 main ()
25679 {
25680  u_int a; a = 1;
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 rm -f conftest.$ac_objext
25686 if { (ac_try="$ac_compile"
25687 case "(($ac_try" in
25688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689   *) ac_try_echo=$ac_try;;
25690 esac
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692   (eval "$ac_compile") 2>conftest.er1
25693   ac_status=$?
25694   grep -v '^ *+' conftest.er1 >conftest.err
25695   rm -f conftest.er1
25696   cat conftest.err >&5
25697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698   (exit $ac_status); } && {
25699          test -z "$ac_c_werror_flag" ||
25700          test ! -s conftest.err
25701        } && test -s conftest.$ac_objext; then
25702    ac_cv_have_u_int="yes"
25703 else
25704   echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25706
25707          ac_cv_have_u_int="no"
25708
25709 fi
25710
25711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25712
25713 fi
25714 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25715 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25716 if test "x$ac_cv_have_u_int" = "xyes" ; then
25717    cat >>confdefs.h <<\_ACEOF
25718 #define HAVE_U_INT 1
25719 _ACEOF
25720
25721    have_u_int=1
25722 fi
25723
25724 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25725 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25726 if test "${ac_cv_have_intmax_t+set}" = set; then
25727   echo $ECHO_N "(cached) $ECHO_C" >&6
25728 else
25729
25730    cat >conftest.$ac_ext <<_ACEOF
25731 /* confdefs.h.  */
25732 _ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h.  */
25736  #include <sys/types.h>
25737 int
25738 main ()
25739 {
25740  intmax_t a; a = 1;
25741   ;
25742   return 0;
25743 }
25744 _ACEOF
25745 rm -f conftest.$ac_objext
25746 if { (ac_try="$ac_compile"
25747 case "(($ac_try" in
25748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25749   *) ac_try_echo=$ac_try;;
25750 esac
25751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25752   (eval "$ac_compile") 2>conftest.er1
25753   ac_status=$?
25754   grep -v '^ *+' conftest.er1 >conftest.err
25755   rm -f conftest.er1
25756   cat conftest.err >&5
25757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25758   (exit $ac_status); } && {
25759          test -z "$ac_c_werror_flag" ||
25760          test ! -s conftest.err
25761        } && test -s conftest.$ac_objext; then
25762    ac_cv_have_intmax_t="yes"
25763 else
25764   echo "$as_me: failed program was:" >&5
25765 sed 's/^/| /' conftest.$ac_ext >&5
25766
25767
25768          cat >conftest.$ac_ext <<_ACEOF
25769 /* confdefs.h.  */
25770 _ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h.  */
25774  #include <stdint.h>
25775 int
25776 main ()
25777 {
25778  intmax_t a; a = 1;
25779   ;
25780   return 0;
25781 }
25782 _ACEOF
25783 rm -f conftest.$ac_objext
25784 if { (ac_try="$ac_compile"
25785 case "(($ac_try" in
25786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25787   *) ac_try_echo=$ac_try;;
25788 esac
25789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25790   (eval "$ac_compile") 2>conftest.er1
25791   ac_status=$?
25792   grep -v '^ *+' conftest.er1 >conftest.err
25793   rm -f conftest.er1
25794   cat conftest.err >&5
25795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796   (exit $ac_status); } && {
25797          test -z "$ac_c_werror_flag" ||
25798          test ! -s conftest.err
25799        } && test -s conftest.$ac_objext; then
25800    ac_cv_have_intmax_t="yes"
25801 else
25802   echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25804
25805          ac_cv_have_intmax_t="no"
25806
25807 fi
25808
25809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25810
25811
25812 fi
25813
25814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25815
25816
25817 fi
25818 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25819 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25820 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25821    cat >>confdefs.h <<\_ACEOF
25822 #define HAVE_INTMAX_T 1
25823 _ACEOF
25824
25825    have_intmax_t=1
25826 fi
25827
25828
25829 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25830 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25831 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834
25835    cat >conftest.$ac_ext <<_ACEOF
25836 /* confdefs.h.  */
25837 _ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h.  */
25841  #include <sys/types.h>
25842 int
25843 main ()
25844 {
25845  u_intmax_t a; a = 1;
25846   ;
25847   return 0;
25848 }
25849 _ACEOF
25850 rm -f conftest.$ac_objext
25851 if { (ac_try="$ac_compile"
25852 case "(($ac_try" in
25853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854   *) ac_try_echo=$ac_try;;
25855 esac
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857   (eval "$ac_compile") 2>conftest.er1
25858   ac_status=$?
25859   grep -v '^ *+' conftest.er1 >conftest.err
25860   rm -f conftest.er1
25861   cat conftest.err >&5
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); } && {
25864          test -z "$ac_c_werror_flag" ||
25865          test ! -s conftest.err
25866        } && test -s conftest.$ac_objext; then
25867    ac_cv_have_u_intmax_t="yes"
25868 else
25869   echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25871
25872
25873          cat >conftest.$ac_ext <<_ACEOF
25874 /* confdefs.h.  */
25875 _ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h.  */
25879  #include <stdint.h>
25880 int
25881 main ()
25882 {
25883  u_intmax_t a; a = 1;
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext
25889 if { (ac_try="$ac_compile"
25890 case "(($ac_try" in
25891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892   *) ac_try_echo=$ac_try;;
25893 esac
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895   (eval "$ac_compile") 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } && {
25902          test -z "$ac_c_werror_flag" ||
25903          test ! -s conftest.err
25904        } && test -s conftest.$ac_objext; then
25905    ac_cv_have_u_intmax_t="yes"
25906 else
25907   echo "$as_me: failed program was:" >&5
25908 sed 's/^/| /' conftest.$ac_ext >&5
25909
25910          ac_cv_have_u_intmax_t="no"
25911
25912 fi
25913
25914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25915
25916
25917 fi
25918
25919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25920
25921 fi
25922 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25923 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25924 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25925    cat >>confdefs.h <<\_ACEOF
25926 #define HAVE_U_INTMAX_T 1
25927 _ACEOF
25928
25929    have_u_intmax_t=1
25930 fi
25931
25932
25933 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25934 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25935 if test "${ac_cv_have_intxx_t+set}" = set; then
25936   echo $ECHO_N "(cached) $ECHO_C" >&6
25937 else
25938
25939    cat >conftest.$ac_ext <<_ACEOF
25940 /* confdefs.h.  */
25941 _ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h.  */
25945  #include <sys/types.h>
25946 int
25947 main ()
25948 {
25949  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25950   ;
25951   return 0;
25952 }
25953 _ACEOF
25954 rm -f conftest.$ac_objext
25955 if { (ac_try="$ac_compile"
25956 case "(($ac_try" in
25957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958   *) ac_try_echo=$ac_try;;
25959 esac
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961   (eval "$ac_compile") 2>conftest.er1
25962   ac_status=$?
25963   grep -v '^ *+' conftest.er1 >conftest.err
25964   rm -f conftest.er1
25965   cat conftest.err >&5
25966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967   (exit $ac_status); } && {
25968          test -z "$ac_c_werror_flag" ||
25969          test ! -s conftest.err
25970        } && test -s conftest.$ac_objext; then
25971    ac_cv_have_intxx_t="yes"
25972 else
25973   echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25975
25976          ac_cv_have_intxx_t="no"
25977
25978 fi
25979
25980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25981
25982 fi
25983 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25984 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25985 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25986    cat >>confdefs.h <<\_ACEOF
25987 #define HAVE_INTXX_T 1
25988 _ACEOF
25989
25990    have_intxx_t=1
25991 fi
25992
25993 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25994 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25995 if test "${ac_cv_have_int64_t+set}" = set; then
25996   echo $ECHO_N "(cached) $ECHO_C" >&6
25997 else
25998
25999    cat >conftest.$ac_ext <<_ACEOF
26000 /* confdefs.h.  */
26001 _ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h.  */
26005  #include <sys/types.h>
26006 int
26007 main ()
26008 {
26009  int64_t a; a = 1;
26010   ;
26011   return 0;
26012 }
26013 _ACEOF
26014 rm -f conftest.$ac_objext
26015 if { (ac_try="$ac_compile"
26016 case "(($ac_try" in
26017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018   *) ac_try_echo=$ac_try;;
26019 esac
26020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26021   (eval "$ac_compile") 2>conftest.er1
26022   ac_status=$?
26023   grep -v '^ *+' conftest.er1 >conftest.err
26024   rm -f conftest.er1
26025   cat conftest.err >&5
26026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027   (exit $ac_status); } && {
26028          test -z "$ac_c_werror_flag" ||
26029          test ! -s conftest.err
26030        } && test -s conftest.$ac_objext; then
26031    ac_cv_have_int64_t="yes"
26032 else
26033   echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26035
26036          ac_cv_have_int64_t="no"
26037
26038 fi
26039
26040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26041
26042 fi
26043 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26044 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26045 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26046    cat >>confdefs.h <<\_ACEOF
26047 #define HAVE_INT64_T 1
26048 _ACEOF
26049
26050    have_int64_t=1
26051 fi
26052
26053 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26054 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26055 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058
26059    cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h.  */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h.  */
26065  #include <sys/types.h>
26066 int
26067 main ()
26068 {
26069  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26070   ;
26071   return 0;
26072 }
26073 _ACEOF
26074 rm -f conftest.$ac_objext
26075 if { (ac_try="$ac_compile"
26076 case "(($ac_try" in
26077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26078   *) ac_try_echo=$ac_try;;
26079 esac
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081   (eval "$ac_compile") 2>conftest.er1
26082   ac_status=$?
26083   grep -v '^ *+' conftest.er1 >conftest.err
26084   rm -f conftest.er1
26085   cat conftest.err >&5
26086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087   (exit $ac_status); } && {
26088          test -z "$ac_c_werror_flag" ||
26089          test ! -s conftest.err
26090        } && test -s conftest.$ac_objext; then
26091    ac_cv_have_u_intxx_t="yes"
26092 else
26093   echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26095
26096          ac_cv_have_u_intxx_t="no"
26097
26098 fi
26099
26100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101
26102 fi
26103 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26104 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26105 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26106    cat >>confdefs.h <<\_ACEOF
26107 #define HAVE_U_INTXX_T 1
26108 _ACEOF
26109
26110    have_u_intxx_t=1
26111 fi
26112
26113 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26114 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26115 if test "${ac_cv_have_u_int64_t+set}" = set; then
26116   echo $ECHO_N "(cached) $ECHO_C" >&6
26117 else
26118
26119    cat >conftest.$ac_ext <<_ACEOF
26120 /* confdefs.h.  */
26121 _ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h.  */
26125  #include <sys/types.h>
26126 int
26127 main ()
26128 {
26129  u_int64_t a; a = 1;
26130   ;
26131   return 0;
26132 }
26133 _ACEOF
26134 rm -f conftest.$ac_objext
26135 if { (ac_try="$ac_compile"
26136 case "(($ac_try" in
26137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138   *) ac_try_echo=$ac_try;;
26139 esac
26140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141   (eval "$ac_compile") 2>conftest.er1
26142   ac_status=$?
26143   grep -v '^ *+' conftest.er1 >conftest.err
26144   rm -f conftest.er1
26145   cat conftest.err >&5
26146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147   (exit $ac_status); } && {
26148          test -z "$ac_c_werror_flag" ||
26149          test ! -s conftest.err
26150        } && test -s conftest.$ac_objext; then
26151    ac_cv_have_u_int64_t="yes"
26152 else
26153   echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26155
26156          ac_cv_have_u_int64_t="no"
26157
26158 fi
26159
26160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26161
26162 fi
26163 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26164 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26165 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26166    cat >>confdefs.h <<\_ACEOF
26167 #define HAVE_U_INT64_T 1
26168 _ACEOF
26169
26170    have_u_int64_t=1
26171 fi
26172
26173 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26174            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26175 then
26176    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26177 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26178    cat >conftest.$ac_ext <<_ACEOF
26179 /* confdefs.h.  */
26180 _ACEOF
26181 cat confdefs.h >>conftest.$ac_ext
26182 cat >>conftest.$ac_ext <<_ACEOF
26183 /* end confdefs.h.  */
26184  #include <sys/bitypes.h>
26185 int
26186 main ()
26187 {
26188  int8_t a; int16_t b; int32_t c;
26189         u_int8_t e; u_int16_t f; u_int32_t g;
26190         a = b = c = e = f = g = 1;
26191   ;
26192   return 0;
26193 }
26194 _ACEOF
26195 rm -f conftest.$ac_objext
26196 if { (ac_try="$ac_compile"
26197 case "(($ac_try" in
26198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26199   *) ac_try_echo=$ac_try;;
26200 esac
26201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26202   (eval "$ac_compile") 2>conftest.er1
26203   ac_status=$?
26204   grep -v '^ *+' conftest.er1 >conftest.err
26205   rm -f conftest.er1
26206   cat conftest.err >&5
26207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208   (exit $ac_status); } && {
26209          test -z "$ac_c_werror_flag" ||
26210          test ! -s conftest.err
26211        } && test -s conftest.$ac_objext; then
26212    cat >>confdefs.h <<\_ACEOF
26213 #define HAVE_U_INTXX_T 1
26214 _ACEOF
26215
26216         cat >>confdefs.h <<\_ACEOF
26217 #define HAVE_INTXX_T 1
26218 _ACEOF
26219
26220         cat >>confdefs.h <<\_ACEOF
26221 #define HAVE_SYS_BITYPES_H 1
26222 _ACEOF
26223
26224         { echo "$as_me:$LINENO: result: yes" >&5
26225 echo "${ECHO_T}yes" >&6; }
26226 else
26227   echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26229
26230          { echo "$as_me:$LINENO: result: no" >&5
26231 echo "${ECHO_T}no" >&6; }
26232
26233 fi
26234
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 fi
26237
26238 if test -z "$have_u_intxx_t" ; then
26239    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26240 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26241 if test "${ac_cv_have_uintxx_t+set}" = set; then
26242   echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244
26245       cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251  #include <sys/types.h>
26252 int
26253 main ()
26254 {
26255  uint8_t a; uint16_t b;
26256            uint32_t c; a = b = c = 1;
26257   ;
26258   return 0;
26259 }
26260 _ACEOF
26261 rm -f conftest.$ac_objext
26262 if { (ac_try="$ac_compile"
26263 case "(($ac_try" in
26264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26265   *) ac_try_echo=$ac_try;;
26266 esac
26267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268   (eval "$ac_compile") 2>conftest.er1
26269   ac_status=$?
26270   grep -v '^ *+' conftest.er1 >conftest.err
26271   rm -f conftest.er1
26272   cat conftest.err >&5
26273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274   (exit $ac_status); } && {
26275          test -z "$ac_c_werror_flag" ||
26276          test ! -s conftest.err
26277        } && test -s conftest.$ac_objext; then
26278    ac_cv_have_uintxx_t="yes"
26279 else
26280   echo "$as_me: failed program was:" >&5
26281 sed 's/^/| /' conftest.$ac_ext >&5
26282
26283          ac_cv_have_uintxx_t="no"
26284
26285 fi
26286
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288
26289 fi
26290 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26291 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26292    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26293       cat >>confdefs.h <<\_ACEOF
26294 #define HAVE_UINTXX_T 1
26295 _ACEOF
26296
26297    fi
26298 fi
26299
26300 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26301           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26302 then
26303    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26304 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26305    cat >conftest.$ac_ext <<_ACEOF
26306 /* confdefs.h.  */
26307 _ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h.  */
26311  #include <sys/bitypes.h>
26312 int
26313 main ()
26314 {
26315  int64_t a; u_int64_t b;
26316        a = b = 1;
26317   ;
26318   return 0;
26319 }
26320 _ACEOF
26321 rm -f conftest.$ac_objext
26322 if { (ac_try="$ac_compile"
26323 case "(($ac_try" in
26324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325   *) ac_try_echo=$ac_try;;
26326 esac
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328   (eval "$ac_compile") 2>conftest.er1
26329   ac_status=$?
26330   grep -v '^ *+' conftest.er1 >conftest.err
26331   rm -f conftest.er1
26332   cat conftest.err >&5
26333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334   (exit $ac_status); } && {
26335          test -z "$ac_c_werror_flag" ||
26336          test ! -s conftest.err
26337        } && test -s conftest.$ac_objext; then
26338    cat >>confdefs.h <<\_ACEOF
26339 #define HAVE_U_INT64_T 1
26340 _ACEOF
26341
26342        cat >>confdefs.h <<\_ACEOF
26343 #define HAVE_INT64_T 1
26344 _ACEOF
26345
26346        { echo "$as_me:$LINENO: result: yes" >&5
26347 echo "${ECHO_T}yes" >&6; }
26348 else
26349   echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26351
26352          { echo "$as_me:$LINENO: result: no" >&5
26353 echo "${ECHO_T}no" >&6; }
26354
26355 fi
26356
26357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358 fi
26359
26360 if (test -z "$have_uintxx_t" && \
26361           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26362 then
26363    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26364 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26365    cat >conftest.$ac_ext <<_ACEOF
26366 /* confdefs.h.  */
26367 _ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h.  */
26371  #include <sys/bitypes.h>
26372 int
26373 main ()
26374 {
26375  uint8_t a; uint16_t b;
26376           uint32_t c; a = b = c = 1;
26377   ;
26378   return 0;
26379 }
26380 _ACEOF
26381 rm -f conftest.$ac_objext
26382 if { (ac_try="$ac_compile"
26383 case "(($ac_try" in
26384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385   *) ac_try_echo=$ac_try;;
26386 esac
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388   (eval "$ac_compile") 2>conftest.er1
26389   ac_status=$?
26390   grep -v '^ *+' conftest.er1 >conftest.err
26391   rm -f conftest.er1
26392   cat conftest.err >&5
26393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394   (exit $ac_status); } && {
26395          test -z "$ac_c_werror_flag" ||
26396          test ! -s conftest.err
26397        } && test -s conftest.$ac_objext; then
26398    cat >>confdefs.h <<\_ACEOF
26399 #define HAVE_UINTXX_T 1
26400 _ACEOF
26401
26402        { echo "$as_me:$LINENO: result: yes" >&5
26403 echo "${ECHO_T}yes" >&6; }
26404 else
26405   echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26407
26408          { echo "$as_me:$LINENO: result: no" >&5
26409 echo "${ECHO_T}no" >&6; }
26410
26411 fi
26412
26413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26414
26415 fi
26416
26417
26418
26419
26420
26421
26422
26423
26424
26425
26426
26427
26428
26429
26430
26431
26432
26433 for ac_func in \
26434         fork \
26435         getcwd \
26436         gethostname \
26437         getpid \
26438         gettimeofday \
26439         setpgid \
26440         setpgrp \
26441         setsid \
26442         signal \
26443         strerror \
26444         strncmp \
26445         strncpy \
26446         vfprintf \
26447
26448 do
26449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26453   echo $ECHO_N "(cached) $ECHO_C" >&6
26454 else
26455   cat >conftest.$ac_ext <<_ACEOF
26456 /* confdefs.h.  */
26457 _ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h.  */
26461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26462    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26463 #define $ac_func innocuous_$ac_func
26464
26465 /* System header to define __stub macros and hopefully few prototypes,
26466     which can conflict with char $ac_func (); below.
26467     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26468     <limits.h> exists even on freestanding compilers.  */
26469
26470 #ifdef __STDC__
26471 # include <limits.h>
26472 #else
26473 # include <assert.h>
26474 #endif
26475
26476 #undef $ac_func
26477
26478 /* Override any GCC internal prototype to avoid an error.
26479    Use char because int might match the return type of a GCC
26480    builtin and then its argument prototype would still apply.  */
26481 #ifdef __cplusplus
26482 extern "C"
26483 #endif
26484 char $ac_func ();
26485 /* The GNU C library defines this for functions which it implements
26486     to always fail with ENOSYS.  Some functions are actually named
26487     something starting with __ and the normal name is an alias.  */
26488 #if defined __stub_$ac_func || defined __stub___$ac_func
26489 choke me
26490 #endif
26491
26492 int
26493 main ()
26494 {
26495 return $ac_func ();
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 rm -f conftest.$ac_objext conftest$ac_exeext
26501 if { (ac_try="$ac_link"
26502 case "(($ac_try" in
26503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504   *) ac_try_echo=$ac_try;;
26505 esac
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507   (eval "$ac_link") 2>conftest.er1
26508   ac_status=$?
26509   grep -v '^ *+' conftest.er1 >conftest.err
26510   rm -f conftest.er1
26511   cat conftest.err >&5
26512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513   (exit $ac_status); } && {
26514          test -z "$ac_c_werror_flag" ||
26515          test ! -s conftest.err
26516        } && test -s conftest$ac_exeext &&
26517        $as_test_x conftest$ac_exeext; then
26518   eval "$as_ac_var=yes"
26519 else
26520   echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26522
26523         eval "$as_ac_var=no"
26524 fi
26525
26526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26527       conftest$ac_exeext conftest.$ac_ext
26528 fi
26529 ac_res=`eval echo '${'$as_ac_var'}'`
26530                { echo "$as_me:$LINENO: result: $ac_res" >&5
26531 echo "${ECHO_T}$ac_res" >&6; }
26532 if test `eval echo '${'$as_ac_var'}'` = yes; then
26533   cat >>confdefs.h <<_ACEOF
26534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26535 _ACEOF
26536
26537 else
26538   echo 'configure: cannot find needed function.'; exit 1
26539
26540 fi
26541 done
26542
26543
26544
26545 for ac_func in fchdir
26546 do
26547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26551   echo $ECHO_N "(cached) $ECHO_C" >&6
26552 else
26553   cat >conftest.$ac_ext <<_ACEOF
26554 /* confdefs.h.  */
26555 _ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h.  */
26559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26561 #define $ac_func innocuous_$ac_func
26562
26563 /* System header to define __stub macros and hopefully few prototypes,
26564     which can conflict with char $ac_func (); below.
26565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26566     <limits.h> exists even on freestanding compilers.  */
26567
26568 #ifdef __STDC__
26569 # include <limits.h>
26570 #else
26571 # include <assert.h>
26572 #endif
26573
26574 #undef $ac_func
26575
26576 /* Override any GCC internal prototype to avoid an error.
26577    Use char because int might match the return type of a GCC
26578    builtin and then its argument prototype would still apply.  */
26579 #ifdef __cplusplus
26580 extern "C"
26581 #endif
26582 char $ac_func ();
26583 /* The GNU C library defines this for functions which it implements
26584     to always fail with ENOSYS.  Some functions are actually named
26585     something starting with __ and the normal name is an alias.  */
26586 #if defined __stub_$ac_func || defined __stub___$ac_func
26587 choke me
26588 #endif
26589
26590 int
26591 main ()
26592 {
26593 return $ac_func ();
26594   ;
26595   return 0;
26596 }
26597 _ACEOF
26598 rm -f conftest.$ac_objext conftest$ac_exeext
26599 if { (ac_try="$ac_link"
26600 case "(($ac_try" in
26601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26602   *) ac_try_echo=$ac_try;;
26603 esac
26604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26605   (eval "$ac_link") 2>conftest.er1
26606   ac_status=$?
26607   grep -v '^ *+' conftest.er1 >conftest.err
26608   rm -f conftest.er1
26609   cat conftest.err >&5
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); } && {
26612          test -z "$ac_c_werror_flag" ||
26613          test ! -s conftest.err
26614        } && test -s conftest$ac_exeext &&
26615        $as_test_x conftest$ac_exeext; then
26616   eval "$as_ac_var=yes"
26617 else
26618   echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26620
26621         eval "$as_ac_var=no"
26622 fi
26623
26624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26625       conftest$ac_exeext conftest.$ac_ext
26626 fi
26627 ac_res=`eval echo '${'$as_ac_var'}'`
26628                { echo "$as_me:$LINENO: result: $ac_res" >&5
26629 echo "${ECHO_T}$ac_res" >&6; }
26630 if test `eval echo '${'$as_ac_var'}'` = yes; then
26631   cat >>confdefs.h <<_ACEOF
26632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26633 _ACEOF
26634  cat >>confdefs.h <<\_ACEOF
26635 #define HAVE_FCHDIR 1
26636 _ACEOF
26637
26638 fi
26639 done
26640
26641
26642 for ac_func in strtoll
26643 do
26644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26648   echo $ECHO_N "(cached) $ECHO_C" >&6
26649 else
26650   cat >conftest.$ac_ext <<_ACEOF
26651 /* confdefs.h.  */
26652 _ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h.  */
26656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26657    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26658 #define $ac_func innocuous_$ac_func
26659
26660 /* System header to define __stub macros and hopefully few prototypes,
26661     which can conflict with char $ac_func (); below.
26662     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26663     <limits.h> exists even on freestanding compilers.  */
26664
26665 #ifdef __STDC__
26666 # include <limits.h>
26667 #else
26668 # include <assert.h>
26669 #endif
26670
26671 #undef $ac_func
26672
26673 /* Override any GCC internal prototype to avoid an error.
26674    Use char because int might match the return type of a GCC
26675    builtin and then its argument prototype would still apply.  */
26676 #ifdef __cplusplus
26677 extern "C"
26678 #endif
26679 char $ac_func ();
26680 /* The GNU C library defines this for functions which it implements
26681     to always fail with ENOSYS.  Some functions are actually named
26682     something starting with __ and the normal name is an alias.  */
26683 #if defined __stub_$ac_func || defined __stub___$ac_func
26684 choke me
26685 #endif
26686
26687 int
26688 main ()
26689 {
26690 return $ac_func ();
26691   ;
26692   return 0;
26693 }
26694 _ACEOF
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (ac_try="$ac_link"
26697 case "(($ac_try" in
26698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699   *) ac_try_echo=$ac_try;;
26700 esac
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702   (eval "$ac_link") 2>conftest.er1
26703   ac_status=$?
26704   grep -v '^ *+' conftest.er1 >conftest.err
26705   rm -f conftest.er1
26706   cat conftest.err >&5
26707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708   (exit $ac_status); } && {
26709          test -z "$ac_c_werror_flag" ||
26710          test ! -s conftest.err
26711        } && test -s conftest$ac_exeext &&
26712        $as_test_x conftest$ac_exeext; then
26713   eval "$as_ac_var=yes"
26714 else
26715   echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26717
26718         eval "$as_ac_var=no"
26719 fi
26720
26721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722       conftest$ac_exeext conftest.$ac_ext
26723 fi
26724 ac_res=`eval echo '${'$as_ac_var'}'`
26725                { echo "$as_me:$LINENO: result: $ac_res" >&5
26726 echo "${ECHO_T}$ac_res" >&6; }
26727 if test `eval echo '${'$as_ac_var'}'` = yes; then
26728   cat >>confdefs.h <<_ACEOF
26729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26730 _ACEOF
26731  cat >>confdefs.h <<\_ACEOF
26732 #define HAVE_STRTOLL 1
26733 _ACEOF
26734
26735 fi
26736 done
26737
26738
26739 for ac_func in posix_fadvise
26740 do
26741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26745   echo $ECHO_N "(cached) $ECHO_C" >&6
26746 else
26747   cat >conftest.$ac_ext <<_ACEOF
26748 /* confdefs.h.  */
26749 _ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h.  */
26753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26755 #define $ac_func innocuous_$ac_func
26756
26757 /* System header to define __stub macros and hopefully few prototypes,
26758     which can conflict with char $ac_func (); below.
26759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26760     <limits.h> exists even on freestanding compilers.  */
26761
26762 #ifdef __STDC__
26763 # include <limits.h>
26764 #else
26765 # include <assert.h>
26766 #endif
26767
26768 #undef $ac_func
26769
26770 /* Override any GCC internal prototype to avoid an error.
26771    Use char because int might match the return type of a GCC
26772    builtin and then its argument prototype would still apply.  */
26773 #ifdef __cplusplus
26774 extern "C"
26775 #endif
26776 char $ac_func ();
26777 /* The GNU C library defines this for functions which it implements
26778     to always fail with ENOSYS.  Some functions are actually named
26779     something starting with __ and the normal name is an alias.  */
26780 #if defined __stub_$ac_func || defined __stub___$ac_func
26781 choke me
26782 #endif
26783
26784 int
26785 main ()
26786 {
26787 return $ac_func ();
26788   ;
26789   return 0;
26790 }
26791 _ACEOF
26792 rm -f conftest.$ac_objext conftest$ac_exeext
26793 if { (ac_try="$ac_link"
26794 case "(($ac_try" in
26795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796   *) ac_try_echo=$ac_try;;
26797 esac
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799   (eval "$ac_link") 2>conftest.er1
26800   ac_status=$?
26801   grep -v '^ *+' conftest.er1 >conftest.err
26802   rm -f conftest.er1
26803   cat conftest.err >&5
26804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805   (exit $ac_status); } && {
26806          test -z "$ac_c_werror_flag" ||
26807          test ! -s conftest.err
26808        } && test -s conftest$ac_exeext &&
26809        $as_test_x conftest$ac_exeext; then
26810   eval "$as_ac_var=yes"
26811 else
26812   echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26814
26815         eval "$as_ac_var=no"
26816 fi
26817
26818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26819       conftest$ac_exeext conftest.$ac_ext
26820 fi
26821 ac_res=`eval echo '${'$as_ac_var'}'`
26822                { echo "$as_me:$LINENO: result: $ac_res" >&5
26823 echo "${ECHO_T}$ac_res" >&6; }
26824 if test `eval echo '${'$as_ac_var'}'` = yes; then
26825   cat >>confdefs.h <<_ACEOF
26826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26827 _ACEOF
26828
26829 fi
26830 done
26831
26832
26833 for ac_func in fdatasync
26834 do
26835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26839   echo $ECHO_N "(cached) $ECHO_C" >&6
26840 else
26841   cat >conftest.$ac_ext <<_ACEOF
26842 /* confdefs.h.  */
26843 _ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h.  */
26847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26849 #define $ac_func innocuous_$ac_func
26850
26851 /* System header to define __stub macros and hopefully few prototypes,
26852     which can conflict with char $ac_func (); below.
26853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26854     <limits.h> exists even on freestanding compilers.  */
26855
26856 #ifdef __STDC__
26857 # include <limits.h>
26858 #else
26859 # include <assert.h>
26860 #endif
26861
26862 #undef $ac_func
26863
26864 /* Override any GCC internal prototype to avoid an error.
26865    Use char because int might match the return type of a GCC
26866    builtin and then its argument prototype would still apply.  */
26867 #ifdef __cplusplus
26868 extern "C"
26869 #endif
26870 char $ac_func ();
26871 /* The GNU C library defines this for functions which it implements
26872     to always fail with ENOSYS.  Some functions are actually named
26873     something starting with __ and the normal name is an alias.  */
26874 #if defined __stub_$ac_func || defined __stub___$ac_func
26875 choke me
26876 #endif
26877
26878 int
26879 main ()
26880 {
26881 return $ac_func ();
26882   ;
26883   return 0;
26884 }
26885 _ACEOF
26886 rm -f conftest.$ac_objext conftest$ac_exeext
26887 if { (ac_try="$ac_link"
26888 case "(($ac_try" in
26889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890   *) ac_try_echo=$ac_try;;
26891 esac
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893   (eval "$ac_link") 2>conftest.er1
26894   ac_status=$?
26895   grep -v '^ *+' conftest.er1 >conftest.err
26896   rm -f conftest.er1
26897   cat conftest.err >&5
26898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899   (exit $ac_status); } && {
26900          test -z "$ac_c_werror_flag" ||
26901          test ! -s conftest.err
26902        } && test -s conftest$ac_exeext &&
26903        $as_test_x conftest$ac_exeext; then
26904   eval "$as_ac_var=yes"
26905 else
26906   echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26908
26909         eval "$as_ac_var=no"
26910 fi
26911
26912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26913       conftest$ac_exeext conftest.$ac_ext
26914 fi
26915 ac_res=`eval echo '${'$as_ac_var'}'`
26916                { echo "$as_me:$LINENO: result: $ac_res" >&5
26917 echo "${ECHO_T}$ac_res" >&6; }
26918 if test `eval echo '${'$as_ac_var'}'` = yes; then
26919   cat >>confdefs.h <<_ACEOF
26920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26921 _ACEOF
26922
26923 fi
26924 done
26925
26926
26927
26928 for ac_func in chflags
26929 do
26930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26934   echo $ECHO_N "(cached) $ECHO_C" >&6
26935 else
26936   cat >conftest.$ac_ext <<_ACEOF
26937 /* confdefs.h.  */
26938 _ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h.  */
26942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26944 #define $ac_func innocuous_$ac_func
26945
26946 /* System header to define __stub macros and hopefully few prototypes,
26947     which can conflict with char $ac_func (); below.
26948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26949     <limits.h> exists even on freestanding compilers.  */
26950
26951 #ifdef __STDC__
26952 # include <limits.h>
26953 #else
26954 # include <assert.h>
26955 #endif
26956
26957 #undef $ac_func
26958
26959 /* Override any GCC internal prototype to avoid an error.
26960    Use char because int might match the return type of a GCC
26961    builtin and then its argument prototype would still apply.  */
26962 #ifdef __cplusplus
26963 extern "C"
26964 #endif
26965 char $ac_func ();
26966 /* The GNU C library defines this for functions which it implements
26967     to always fail with ENOSYS.  Some functions are actually named
26968     something starting with __ and the normal name is an alias.  */
26969 #if defined __stub_$ac_func || defined __stub___$ac_func
26970 choke me
26971 #endif
26972
26973 int
26974 main ()
26975 {
26976 return $ac_func ();
26977   ;
26978   return 0;
26979 }
26980 _ACEOF
26981 rm -f conftest.$ac_objext conftest$ac_exeext
26982 if { (ac_try="$ac_link"
26983 case "(($ac_try" in
26984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985   *) ac_try_echo=$ac_try;;
26986 esac
26987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988   (eval "$ac_link") 2>conftest.er1
26989   ac_status=$?
26990   grep -v '^ *+' conftest.er1 >conftest.err
26991   rm -f conftest.er1
26992   cat conftest.err >&5
26993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994   (exit $ac_status); } && {
26995          test -z "$ac_c_werror_flag" ||
26996          test ! -s conftest.err
26997        } && test -s conftest$ac_exeext &&
26998        $as_test_x conftest$ac_exeext; then
26999   eval "$as_ac_var=yes"
27000 else
27001   echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27003
27004         eval "$as_ac_var=no"
27005 fi
27006
27007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27008       conftest$ac_exeext conftest.$ac_ext
27009 fi
27010 ac_res=`eval echo '${'$as_ac_var'}'`
27011                { echo "$as_me:$LINENO: result: $ac_res" >&5
27012 echo "${ECHO_T}$ac_res" >&6; }
27013 if test `eval echo '${'$as_ac_var'}'` = yes; then
27014   cat >>confdefs.h <<_ACEOF
27015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27016 _ACEOF
27017
27018 fi
27019 done
27020
27021
27022
27023
27024
27025
27026 for ac_func in snprintf vsnprintf gethostid fseeko
27027 do
27028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27032   echo $ECHO_N "(cached) $ECHO_C" >&6
27033 else
27034   cat >conftest.$ac_ext <<_ACEOF
27035 /* confdefs.h.  */
27036 _ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h.  */
27040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27041    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27042 #define $ac_func innocuous_$ac_func
27043
27044 /* System header to define __stub macros and hopefully few prototypes,
27045     which can conflict with char $ac_func (); below.
27046     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27047     <limits.h> exists even on freestanding compilers.  */
27048
27049 #ifdef __STDC__
27050 # include <limits.h>
27051 #else
27052 # include <assert.h>
27053 #endif
27054
27055 #undef $ac_func
27056
27057 /* Override any GCC internal prototype to avoid an error.
27058    Use char because int might match the return type of a GCC
27059    builtin and then its argument prototype would still apply.  */
27060 #ifdef __cplusplus
27061 extern "C"
27062 #endif
27063 char $ac_func ();
27064 /* The GNU C library defines this for functions which it implements
27065     to always fail with ENOSYS.  Some functions are actually named
27066     something starting with __ and the normal name is an alias.  */
27067 #if defined __stub_$ac_func || defined __stub___$ac_func
27068 choke me
27069 #endif
27070
27071 int
27072 main ()
27073 {
27074 return $ac_func ();
27075   ;
27076   return 0;
27077 }
27078 _ACEOF
27079 rm -f conftest.$ac_objext conftest$ac_exeext
27080 if { (ac_try="$ac_link"
27081 case "(($ac_try" in
27082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083   *) ac_try_echo=$ac_try;;
27084 esac
27085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086   (eval "$ac_link") 2>conftest.er1
27087   ac_status=$?
27088   grep -v '^ *+' conftest.er1 >conftest.err
27089   rm -f conftest.er1
27090   cat conftest.err >&5
27091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); } && {
27093          test -z "$ac_c_werror_flag" ||
27094          test ! -s conftest.err
27095        } && test -s conftest$ac_exeext &&
27096        $as_test_x conftest$ac_exeext; then
27097   eval "$as_ac_var=yes"
27098 else
27099   echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27101
27102         eval "$as_ac_var=no"
27103 fi
27104
27105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27106       conftest$ac_exeext conftest.$ac_ext
27107 fi
27108 ac_res=`eval echo '${'$as_ac_var'}'`
27109                { echo "$as_me:$LINENO: result: $ac_res" >&5
27110 echo "${ECHO_T}$ac_res" >&6; }
27111 if test `eval echo '${'$as_ac_var'}'` = yes; then
27112   cat >>confdefs.h <<_ACEOF
27113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27114 _ACEOF
27115
27116 fi
27117 done
27118
27119
27120 { echo "$as_me:$LINENO: checking for va_copy" >&5
27121 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27122 if test "${ba_cv_va_copy+set}" = set; then
27123   echo $ECHO_N "(cached) $ECHO_C" >&6
27124 else
27125   cat >conftest.$ac_ext <<_ACEOF
27126 /* confdefs.h.  */
27127 _ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h.  */
27131
27132 #include <stdarg.h>
27133 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27134 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27135
27136 int
27137 main ()
27138 {
27139 call_use_va_copy(1,2,3)
27140   ;
27141   return 0;
27142 }
27143 _ACEOF
27144 rm -f conftest.$ac_objext conftest$ac_exeext
27145 if { (ac_try="$ac_link"
27146 case "(($ac_try" in
27147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148   *) ac_try_echo=$ac_try;;
27149 esac
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151   (eval "$ac_link") 2>conftest.er1
27152   ac_status=$?
27153   grep -v '^ *+' conftest.er1 >conftest.err
27154   rm -f conftest.er1
27155   cat conftest.err >&5
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); } && {
27158          test -z "$ac_c_werror_flag" ||
27159          test ! -s conftest.err
27160        } && test -s conftest$ac_exeext &&
27161        $as_test_x conftest$ac_exeext; then
27162   ba_cv_va_copy=yes
27163 else
27164   echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27166
27167         ba_cv_va_copy=no
27168 fi
27169
27170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27171       conftest$ac_exeext conftest.$ac_ext
27172 fi
27173 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27174 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27175 test $ba_cv_va_copy = yes &&
27176 cat >>confdefs.h <<\_ACEOF
27177 #define HAVE_VA_COPY 1
27178 _ACEOF
27179
27180
27181
27182
27183
27184
27185
27186 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27187 do
27188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27192   echo $ECHO_N "(cached) $ECHO_C" >&6
27193 else
27194   cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h.  */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h.  */
27200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27202 #define $ac_func innocuous_$ac_func
27203
27204 /* System header to define __stub macros and hopefully few prototypes,
27205     which can conflict with char $ac_func (); below.
27206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27207     <limits.h> exists even on freestanding compilers.  */
27208
27209 #ifdef __STDC__
27210 # include <limits.h>
27211 #else
27212 # include <assert.h>
27213 #endif
27214
27215 #undef $ac_func
27216
27217 /* Override any GCC internal prototype to avoid an error.
27218    Use char because int might match the return type of a GCC
27219    builtin and then its argument prototype would still apply.  */
27220 #ifdef __cplusplus
27221 extern "C"
27222 #endif
27223 char $ac_func ();
27224 /* The GNU C library defines this for functions which it implements
27225     to always fail with ENOSYS.  Some functions are actually named
27226     something starting with __ and the normal name is an alias.  */
27227 #if defined __stub_$ac_func || defined __stub___$ac_func
27228 choke me
27229 #endif
27230
27231 int
27232 main ()
27233 {
27234 return $ac_func ();
27235   ;
27236   return 0;
27237 }
27238 _ACEOF
27239 rm -f conftest.$ac_objext conftest$ac_exeext
27240 if { (ac_try="$ac_link"
27241 case "(($ac_try" in
27242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27243   *) ac_try_echo=$ac_try;;
27244 esac
27245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27246   (eval "$ac_link") 2>conftest.er1
27247   ac_status=$?
27248   grep -v '^ *+' conftest.er1 >conftest.err
27249   rm -f conftest.er1
27250   cat conftest.err >&5
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); } && {
27253          test -z "$ac_c_werror_flag" ||
27254          test ! -s conftest.err
27255        } && test -s conftest$ac_exeext &&
27256        $as_test_x conftest$ac_exeext; then
27257   eval "$as_ac_var=yes"
27258 else
27259   echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27261
27262         eval "$as_ac_var=no"
27263 fi
27264
27265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27266       conftest$ac_exeext conftest.$ac_ext
27267 fi
27268 ac_res=`eval echo '${'$as_ac_var'}'`
27269                { echo "$as_me:$LINENO: result: $ac_res" >&5
27270 echo "${ECHO_T}$ac_res" >&6; }
27271 if test `eval echo '${'$as_ac_var'}'` = yes; then
27272   cat >>confdefs.h <<_ACEOF
27273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27274 _ACEOF
27275
27276 fi
27277 done
27278
27279
27280 # If resolver functions are not in libc check for -lnsl or -lresolv.
27281 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27282 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27283 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27284   echo $ECHO_N "(cached) $ECHO_C" >&6
27285 else
27286   cat >conftest.$ac_ext <<_ACEOF
27287 /* confdefs.h.  */
27288 _ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h.  */
27292 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27294 #define gethostbyname_r innocuous_gethostbyname_r
27295
27296 /* System header to define __stub macros and hopefully few prototypes,
27297     which can conflict with char gethostbyname_r (); below.
27298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27299     <limits.h> exists even on freestanding compilers.  */
27300
27301 #ifdef __STDC__
27302 # include <limits.h>
27303 #else
27304 # include <assert.h>
27305 #endif
27306
27307 #undef gethostbyname_r
27308
27309 /* Override any GCC internal prototype to avoid an error.
27310    Use char because int might match the return type of a GCC
27311    builtin and then its argument prototype would still apply.  */
27312 #ifdef __cplusplus
27313 extern "C"
27314 #endif
27315 char gethostbyname_r ();
27316 /* The GNU C library defines this for functions which it implements
27317     to always fail with ENOSYS.  Some functions are actually named
27318     something starting with __ and the normal name is an alias.  */
27319 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27320 choke me
27321 #endif
27322
27323 int
27324 main ()
27325 {
27326 return gethostbyname_r ();
27327   ;
27328   return 0;
27329 }
27330 _ACEOF
27331 rm -f conftest.$ac_objext conftest$ac_exeext
27332 if { (ac_try="$ac_link"
27333 case "(($ac_try" in
27334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335   *) ac_try_echo=$ac_try;;
27336 esac
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338   (eval "$ac_link") 2>conftest.er1
27339   ac_status=$?
27340   grep -v '^ *+' conftest.er1 >conftest.err
27341   rm -f conftest.er1
27342   cat conftest.err >&5
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); } && {
27345          test -z "$ac_c_werror_flag" ||
27346          test ! -s conftest.err
27347        } && test -s conftest$ac_exeext &&
27348        $as_test_x conftest$ac_exeext; then
27349   ac_cv_func_gethostbyname_r=yes
27350 else
27351   echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27353
27354         ac_cv_func_gethostbyname_r=no
27355 fi
27356
27357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27358       conftest$ac_exeext conftest.$ac_ext
27359 fi
27360 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27361 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27362 if test $ac_cv_func_gethostbyname_r = yes; then
27363   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27364 echo "${ECHO_T}using libc's resolver" >&6; }
27365 else
27366
27367 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27368 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27369 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27370   echo $ECHO_N "(cached) $ECHO_C" >&6
27371 else
27372   ac_check_lib_save_LIBS=$LIBS
27373 LIBS="-lnsl  $LIBS"
27374 cat >conftest.$ac_ext <<_ACEOF
27375 /* confdefs.h.  */
27376 _ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h.  */
27380
27381 /* Override any GCC internal prototype to avoid an error.
27382    Use char because int might match the return type of a GCC
27383    builtin and then its argument prototype would still apply.  */
27384 #ifdef __cplusplus
27385 extern "C"
27386 #endif
27387 char gethostbyname_r ();
27388 int
27389 main ()
27390 {
27391 return gethostbyname_r ();
27392   ;
27393   return 0;
27394 }
27395 _ACEOF
27396 rm -f conftest.$ac_objext conftest$ac_exeext
27397 if { (ac_try="$ac_link"
27398 case "(($ac_try" in
27399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400   *) ac_try_echo=$ac_try;;
27401 esac
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403   (eval "$ac_link") 2>conftest.er1
27404   ac_status=$?
27405   grep -v '^ *+' conftest.er1 >conftest.err
27406   rm -f conftest.er1
27407   cat conftest.err >&5
27408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409   (exit $ac_status); } && {
27410          test -z "$ac_c_werror_flag" ||
27411          test ! -s conftest.err
27412        } && test -s conftest$ac_exeext &&
27413        $as_test_x conftest$ac_exeext; then
27414   ac_cv_lib_nsl_gethostbyname_r=yes
27415 else
27416   echo "$as_me: failed program was:" >&5
27417 sed 's/^/| /' conftest.$ac_ext >&5
27418
27419         ac_cv_lib_nsl_gethostbyname_r=no
27420 fi
27421
27422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27423       conftest$ac_exeext conftest.$ac_ext
27424 LIBS=$ac_check_lib_save_LIBS
27425 fi
27426 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27427 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27428 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27429   cat >>confdefs.h <<_ACEOF
27430 #define HAVE_LIBNSL 1
27431 _ACEOF
27432
27433   LIBS="-lnsl $LIBS"
27434
27435 fi
27436
27437
27438 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27439 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27440 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27441   echo $ECHO_N "(cached) $ECHO_C" >&6
27442 else
27443   ac_check_lib_save_LIBS=$LIBS
27444 LIBS="-lresolv  $LIBS"
27445 cat >conftest.$ac_ext <<_ACEOF
27446 /* confdefs.h.  */
27447 _ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h.  */
27451
27452 /* Override any GCC internal prototype to avoid an error.
27453    Use char because int might match the return type of a GCC
27454    builtin and then its argument prototype would still apply.  */
27455 #ifdef __cplusplus
27456 extern "C"
27457 #endif
27458 char gethostbyname_r ();
27459 int
27460 main ()
27461 {
27462 return gethostbyname_r ();
27463   ;
27464   return 0;
27465 }
27466 _ACEOF
27467 rm -f conftest.$ac_objext conftest$ac_exeext
27468 if { (ac_try="$ac_link"
27469 case "(($ac_try" in
27470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471   *) ac_try_echo=$ac_try;;
27472 esac
27473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474   (eval "$ac_link") 2>conftest.er1
27475   ac_status=$?
27476   grep -v '^ *+' conftest.er1 >conftest.err
27477   rm -f conftest.er1
27478   cat conftest.err >&5
27479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480   (exit $ac_status); } && {
27481          test -z "$ac_c_werror_flag" ||
27482          test ! -s conftest.err
27483        } && test -s conftest$ac_exeext &&
27484        $as_test_x conftest$ac_exeext; then
27485   ac_cv_lib_resolv_gethostbyname_r=yes
27486 else
27487   echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27489
27490         ac_cv_lib_resolv_gethostbyname_r=no
27491 fi
27492
27493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27494       conftest$ac_exeext conftest.$ac_ext
27495 LIBS=$ac_check_lib_save_LIBS
27496 fi
27497 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27498 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27499 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27500   cat >>confdefs.h <<_ACEOF
27501 #define HAVE_LIBRESOLV 1
27502 _ACEOF
27503
27504   LIBS="-lresolv $LIBS"
27505
27506 fi
27507
27508 fi
27509
27510
27511
27512
27513
27514 for ac_func in inet_pton
27515 do
27516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27520   echo $ECHO_N "(cached) $ECHO_C" >&6
27521 else
27522   cat >conftest.$ac_ext <<_ACEOF
27523 /* confdefs.h.  */
27524 _ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h.  */
27528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27530 #define $ac_func innocuous_$ac_func
27531
27532 /* System header to define __stub macros and hopefully few prototypes,
27533     which can conflict with char $ac_func (); below.
27534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27535     <limits.h> exists even on freestanding compilers.  */
27536
27537 #ifdef __STDC__
27538 # include <limits.h>
27539 #else
27540 # include <assert.h>
27541 #endif
27542
27543 #undef $ac_func
27544
27545 /* Override any GCC internal prototype to avoid an error.
27546    Use char because int might match the return type of a GCC
27547    builtin and then its argument prototype would still apply.  */
27548 #ifdef __cplusplus
27549 extern "C"
27550 #endif
27551 char $ac_func ();
27552 /* The GNU C library defines this for functions which it implements
27553     to always fail with ENOSYS.  Some functions are actually named
27554     something starting with __ and the normal name is an alias.  */
27555 #if defined __stub_$ac_func || defined __stub___$ac_func
27556 choke me
27557 #endif
27558
27559 int
27560 main ()
27561 {
27562 return $ac_func ();
27563   ;
27564   return 0;
27565 }
27566 _ACEOF
27567 rm -f conftest.$ac_objext conftest$ac_exeext
27568 if { (ac_try="$ac_link"
27569 case "(($ac_try" in
27570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571   *) ac_try_echo=$ac_try;;
27572 esac
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574   (eval "$ac_link") 2>conftest.er1
27575   ac_status=$?
27576   grep -v '^ *+' conftest.er1 >conftest.err
27577   rm -f conftest.er1
27578   cat conftest.err >&5
27579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580   (exit $ac_status); } && {
27581          test -z "$ac_c_werror_flag" ||
27582          test ! -s conftest.err
27583        } && test -s conftest$ac_exeext &&
27584        $as_test_x conftest$ac_exeext; then
27585   eval "$as_ac_var=yes"
27586 else
27587   echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590         eval "$as_ac_var=no"
27591 fi
27592
27593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27594       conftest$ac_exeext conftest.$ac_ext
27595 fi
27596 ac_res=`eval echo '${'$as_ac_var'}'`
27597                { echo "$as_me:$LINENO: result: $ac_res" >&5
27598 echo "${ECHO_T}$ac_res" >&6; }
27599 if test `eval echo '${'$as_ac_var'}'` = yes; then
27600   cat >>confdefs.h <<_ACEOF
27601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27602 _ACEOF
27603  cat >>confdefs.h <<\_ACEOF
27604 #define HAVE_INET_PTON 1
27605 _ACEOF
27606
27607 fi
27608 done
27609
27610
27611 for ac_func in inet_ntop
27612 do
27613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27617   echo $ECHO_N "(cached) $ECHO_C" >&6
27618 else
27619   cat >conftest.$ac_ext <<_ACEOF
27620 /* confdefs.h.  */
27621 _ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h.  */
27625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27626    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27627 #define $ac_func innocuous_$ac_func
27628
27629 /* System header to define __stub macros and hopefully few prototypes,
27630     which can conflict with char $ac_func (); below.
27631     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27632     <limits.h> exists even on freestanding compilers.  */
27633
27634 #ifdef __STDC__
27635 # include <limits.h>
27636 #else
27637 # include <assert.h>
27638 #endif
27639
27640 #undef $ac_func
27641
27642 /* Override any GCC internal prototype to avoid an error.
27643    Use char because int might match the return type of a GCC
27644    builtin and then its argument prototype would still apply.  */
27645 #ifdef __cplusplus
27646 extern "C"
27647 #endif
27648 char $ac_func ();
27649 /* The GNU C library defines this for functions which it implements
27650     to always fail with ENOSYS.  Some functions are actually named
27651     something starting with __ and the normal name is an alias.  */
27652 #if defined __stub_$ac_func || defined __stub___$ac_func
27653 choke me
27654 #endif
27655
27656 int
27657 main ()
27658 {
27659 return $ac_func ();
27660   ;
27661   return 0;
27662 }
27663 _ACEOF
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (ac_try="$ac_link"
27666 case "(($ac_try" in
27667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668   *) ac_try_echo=$ac_try;;
27669 esac
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671   (eval "$ac_link") 2>conftest.er1
27672   ac_status=$?
27673   grep -v '^ *+' conftest.er1 >conftest.err
27674   rm -f conftest.er1
27675   cat conftest.err >&5
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); } && {
27678          test -z "$ac_c_werror_flag" ||
27679          test ! -s conftest.err
27680        } && test -s conftest$ac_exeext &&
27681        $as_test_x conftest$ac_exeext; then
27682   eval "$as_ac_var=yes"
27683 else
27684   echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27686
27687         eval "$as_ac_var=no"
27688 fi
27689
27690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27691       conftest$ac_exeext conftest.$ac_ext
27692 fi
27693 ac_res=`eval echo '${'$as_ac_var'}'`
27694                { echo "$as_me:$LINENO: result: $ac_res" >&5
27695 echo "${ECHO_T}$ac_res" >&6; }
27696 if test `eval echo '${'$as_ac_var'}'` = yes; then
27697   cat >>confdefs.h <<_ACEOF
27698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27699 _ACEOF
27700  cat >>confdefs.h <<\_ACEOF
27701 #define HAVE_INET_NTOP 1
27702 _ACEOF
27703
27704 fi
27705 done
27706
27707
27708 for ac_func in gethostbyname2
27709 do
27710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27714   echo $ECHO_N "(cached) $ECHO_C" >&6
27715 else
27716   cat >conftest.$ac_ext <<_ACEOF
27717 /* confdefs.h.  */
27718 _ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h.  */
27722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27723    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27724 #define $ac_func innocuous_$ac_func
27725
27726 /* System header to define __stub macros and hopefully few prototypes,
27727     which can conflict with char $ac_func (); below.
27728     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27729     <limits.h> exists even on freestanding compilers.  */
27730
27731 #ifdef __STDC__
27732 # include <limits.h>
27733 #else
27734 # include <assert.h>
27735 #endif
27736
27737 #undef $ac_func
27738
27739 /* Override any GCC internal prototype to avoid an error.
27740    Use char because int might match the return type of a GCC
27741    builtin and then its argument prototype would still apply.  */
27742 #ifdef __cplusplus
27743 extern "C"
27744 #endif
27745 char $ac_func ();
27746 /* The GNU C library defines this for functions which it implements
27747     to always fail with ENOSYS.  Some functions are actually named
27748     something starting with __ and the normal name is an alias.  */
27749 #if defined __stub_$ac_func || defined __stub___$ac_func
27750 choke me
27751 #endif
27752
27753 int
27754 main ()
27755 {
27756 return $ac_func ();
27757   ;
27758   return 0;
27759 }
27760 _ACEOF
27761 rm -f conftest.$ac_objext conftest$ac_exeext
27762 if { (ac_try="$ac_link"
27763 case "(($ac_try" in
27764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765   *) ac_try_echo=$ac_try;;
27766 esac
27767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768   (eval "$ac_link") 2>conftest.er1
27769   ac_status=$?
27770   grep -v '^ *+' conftest.er1 >conftest.err
27771   rm -f conftest.er1
27772   cat conftest.err >&5
27773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774   (exit $ac_status); } && {
27775          test -z "$ac_c_werror_flag" ||
27776          test ! -s conftest.err
27777        } && test -s conftest$ac_exeext &&
27778        $as_test_x conftest$ac_exeext; then
27779   eval "$as_ac_var=yes"
27780 else
27781   echo "$as_me: failed program was:" >&5
27782 sed 's/^/| /' conftest.$ac_ext >&5
27783
27784         eval "$as_ac_var=no"
27785 fi
27786
27787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27788       conftest$ac_exeext conftest.$ac_ext
27789 fi
27790 ac_res=`eval echo '${'$as_ac_var'}'`
27791                { echo "$as_me:$LINENO: result: $ac_res" >&5
27792 echo "${ECHO_T}$ac_res" >&6; }
27793 if test `eval echo '${'$as_ac_var'}'` = yes; then
27794   cat >>confdefs.h <<_ACEOF
27795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27796 _ACEOF
27797  cat >>confdefs.h <<\_ACEOF
27798 #define HAVE_GETHOSTBYNAME2 1
27799 _ACEOF
27800
27801 fi
27802 done
27803
27804
27805 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27806 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27807 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27808   echo $ECHO_N "(cached) $ECHO_C" >&6
27809 else
27810   cat >conftest.$ac_ext <<_ACEOF
27811 /* confdefs.h.  */
27812 _ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h.  */
27816 #include <sys/socket.h>
27817 int
27818 main ()
27819 {
27820 struct sockaddr s; s.sa_len;
27821   ;
27822   return 0;
27823 }
27824 _ACEOF
27825 rm -f conftest.$ac_objext
27826 if { (ac_try="$ac_compile"
27827 case "(($ac_try" in
27828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829   *) ac_try_echo=$ac_try;;
27830 esac
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832   (eval "$ac_compile") 2>conftest.er1
27833   ac_status=$?
27834   grep -v '^ *+' conftest.er1 >conftest.err
27835   rm -f conftest.er1
27836   cat conftest.err >&5
27837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838   (exit $ac_status); } && {
27839          test -z "$ac_c_werror_flag" ||
27840          test ! -s conftest.err
27841        } && test -s conftest.$ac_objext; then
27842   ac_cv_struct_sockaddr_sa_len=yes
27843 else
27844   echo "$as_me: failed program was:" >&5
27845 sed 's/^/| /' conftest.$ac_ext >&5
27846
27847         ac_cv_struct_sockaddr_sa_len=no
27848 fi
27849
27850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27851 fi
27852 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27853 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27854
27855  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27856
27857 cat >>confdefs.h <<\_ACEOF
27858 #define HAVE_SA_LEN 1
27859 _ACEOF
27860
27861  fi
27862
27863
27864
27865
27866
27867 for ac_func in strftime
27868 do
27869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27873   echo $ECHO_N "(cached) $ECHO_C" >&6
27874 else
27875   cat >conftest.$ac_ext <<_ACEOF
27876 /* confdefs.h.  */
27877 _ACEOF
27878 cat confdefs.h >>conftest.$ac_ext
27879 cat >>conftest.$ac_ext <<_ACEOF
27880 /* end confdefs.h.  */
27881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27883 #define $ac_func innocuous_$ac_func
27884
27885 /* System header to define __stub macros and hopefully few prototypes,
27886     which can conflict with char $ac_func (); below.
27887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27888     <limits.h> exists even on freestanding compilers.  */
27889
27890 #ifdef __STDC__
27891 # include <limits.h>
27892 #else
27893 # include <assert.h>
27894 #endif
27895
27896 #undef $ac_func
27897
27898 /* Override any GCC internal prototype to avoid an error.
27899    Use char because int might match the return type of a GCC
27900    builtin and then its argument prototype would still apply.  */
27901 #ifdef __cplusplus
27902 extern "C"
27903 #endif
27904 char $ac_func ();
27905 /* The GNU C library defines this for functions which it implements
27906     to always fail with ENOSYS.  Some functions are actually named
27907     something starting with __ and the normal name is an alias.  */
27908 #if defined __stub_$ac_func || defined __stub___$ac_func
27909 choke me
27910 #endif
27911
27912 int
27913 main ()
27914 {
27915 return $ac_func ();
27916   ;
27917   return 0;
27918 }
27919 _ACEOF
27920 rm -f conftest.$ac_objext conftest$ac_exeext
27921 if { (ac_try="$ac_link"
27922 case "(($ac_try" in
27923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924   *) ac_try_echo=$ac_try;;
27925 esac
27926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927   (eval "$ac_link") 2>conftest.er1
27928   ac_status=$?
27929   grep -v '^ *+' conftest.er1 >conftest.err
27930   rm -f conftest.er1
27931   cat conftest.err >&5
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); } && {
27934          test -z "$ac_c_werror_flag" ||
27935          test ! -s conftest.err
27936        } && test -s conftest$ac_exeext &&
27937        $as_test_x conftest$ac_exeext; then
27938   eval "$as_ac_var=yes"
27939 else
27940   echo "$as_me: failed program was:" >&5
27941 sed 's/^/| /' conftest.$ac_ext >&5
27942
27943         eval "$as_ac_var=no"
27944 fi
27945
27946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27947       conftest$ac_exeext conftest.$ac_ext
27948 fi
27949 ac_res=`eval echo '${'$as_ac_var'}'`
27950                { echo "$as_me:$LINENO: result: $ac_res" >&5
27951 echo "${ECHO_T}$ac_res" >&6; }
27952 if test `eval echo '${'$as_ac_var'}'` = yes; then
27953   cat >>confdefs.h <<_ACEOF
27954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27955 _ACEOF
27956
27957 else
27958   # strftime is in -lintl on SCO UNIX.
27959 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27960 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27961 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27962   echo $ECHO_N "(cached) $ECHO_C" >&6
27963 else
27964   ac_check_lib_save_LIBS=$LIBS
27965 LIBS="-lintl  $LIBS"
27966 cat >conftest.$ac_ext <<_ACEOF
27967 /* confdefs.h.  */
27968 _ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h.  */
27972
27973 /* Override any GCC internal prototype to avoid an error.
27974    Use char because int might match the return type of a GCC
27975    builtin and then its argument prototype would still apply.  */
27976 #ifdef __cplusplus
27977 extern "C"
27978 #endif
27979 char strftime ();
27980 int
27981 main ()
27982 {
27983 return strftime ();
27984   ;
27985   return 0;
27986 }
27987 _ACEOF
27988 rm -f conftest.$ac_objext conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992   *) ac_try_echo=$ac_try;;
27993 esac
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995   (eval "$ac_link") 2>conftest.er1
27996   ac_status=$?
27997   grep -v '^ *+' conftest.er1 >conftest.err
27998   rm -f conftest.er1
27999   cat conftest.err >&5
28000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001   (exit $ac_status); } && {
28002          test -z "$ac_c_werror_flag" ||
28003          test ! -s conftest.err
28004        } && test -s conftest$ac_exeext &&
28005        $as_test_x conftest$ac_exeext; then
28006   ac_cv_lib_intl_strftime=yes
28007 else
28008   echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28010
28011         ac_cv_lib_intl_strftime=no
28012 fi
28013
28014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28015       conftest$ac_exeext conftest.$ac_ext
28016 LIBS=$ac_check_lib_save_LIBS
28017 fi
28018 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28019 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28020 if test $ac_cv_lib_intl_strftime = yes; then
28021   cat >>confdefs.h <<\_ACEOF
28022 #define HAVE_STRFTIME 1
28023 _ACEOF
28024
28025 LIBS="-lintl $LIBS"
28026 fi
28027
28028 fi
28029 done
28030
28031
28032 for ac_func in vprintf
28033 do
28034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28038   echo $ECHO_N "(cached) $ECHO_C" >&6
28039 else
28040   cat >conftest.$ac_ext <<_ACEOF
28041 /* confdefs.h.  */
28042 _ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h.  */
28046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28048 #define $ac_func innocuous_$ac_func
28049
28050 /* System header to define __stub macros and hopefully few prototypes,
28051     which can conflict with char $ac_func (); below.
28052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28053     <limits.h> exists even on freestanding compilers.  */
28054
28055 #ifdef __STDC__
28056 # include <limits.h>
28057 #else
28058 # include <assert.h>
28059 #endif
28060
28061 #undef $ac_func
28062
28063 /* Override any GCC internal prototype to avoid an error.
28064    Use char because int might match the return type of a GCC
28065    builtin and then its argument prototype would still apply.  */
28066 #ifdef __cplusplus
28067 extern "C"
28068 #endif
28069 char $ac_func ();
28070 /* The GNU C library defines this for functions which it implements
28071     to always fail with ENOSYS.  Some functions are actually named
28072     something starting with __ and the normal name is an alias.  */
28073 #if defined __stub_$ac_func || defined __stub___$ac_func
28074 choke me
28075 #endif
28076
28077 int
28078 main ()
28079 {
28080 return $ac_func ();
28081   ;
28082   return 0;
28083 }
28084 _ACEOF
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086 if { (ac_try="$ac_link"
28087 case "(($ac_try" in
28088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089   *) ac_try_echo=$ac_try;;
28090 esac
28091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092   (eval "$ac_link") 2>conftest.er1
28093   ac_status=$?
28094   grep -v '^ *+' conftest.er1 >conftest.err
28095   rm -f conftest.er1
28096   cat conftest.err >&5
28097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098   (exit $ac_status); } && {
28099          test -z "$ac_c_werror_flag" ||
28100          test ! -s conftest.err
28101        } && test -s conftest$ac_exeext &&
28102        $as_test_x conftest$ac_exeext; then
28103   eval "$as_ac_var=yes"
28104 else
28105   echo "$as_me: failed program was:" >&5
28106 sed 's/^/| /' conftest.$ac_ext >&5
28107
28108         eval "$as_ac_var=no"
28109 fi
28110
28111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28112       conftest$ac_exeext conftest.$ac_ext
28113 fi
28114 ac_res=`eval echo '${'$as_ac_var'}'`
28115                { echo "$as_me:$LINENO: result: $ac_res" >&5
28116 echo "${ECHO_T}$ac_res" >&6; }
28117 if test `eval echo '${'$as_ac_var'}'` = yes; then
28118   cat >>confdefs.h <<_ACEOF
28119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28120 _ACEOF
28121
28122 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28123 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28124 if test "${ac_cv_func__doprnt+set}" = set; then
28125   echo $ECHO_N "(cached) $ECHO_C" >&6
28126 else
28127   cat >conftest.$ac_ext <<_ACEOF
28128 /* confdefs.h.  */
28129 _ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h.  */
28133 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28135 #define _doprnt innocuous__doprnt
28136
28137 /* System header to define __stub macros and hopefully few prototypes,
28138     which can conflict with char _doprnt (); below.
28139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28140     <limits.h> exists even on freestanding compilers.  */
28141
28142 #ifdef __STDC__
28143 # include <limits.h>
28144 #else
28145 # include <assert.h>
28146 #endif
28147
28148 #undef _doprnt
28149
28150 /* Override any GCC internal prototype to avoid an error.
28151    Use char because int might match the return type of a GCC
28152    builtin and then its argument prototype would still apply.  */
28153 #ifdef __cplusplus
28154 extern "C"
28155 #endif
28156 char _doprnt ();
28157 /* The GNU C library defines this for functions which it implements
28158     to always fail with ENOSYS.  Some functions are actually named
28159     something starting with __ and the normal name is an alias.  */
28160 #if defined __stub__doprnt || defined __stub____doprnt
28161 choke me
28162 #endif
28163
28164 int
28165 main ()
28166 {
28167 return _doprnt ();
28168   ;
28169   return 0;
28170 }
28171 _ACEOF
28172 rm -f conftest.$ac_objext conftest$ac_exeext
28173 if { (ac_try="$ac_link"
28174 case "(($ac_try" in
28175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176   *) ac_try_echo=$ac_try;;
28177 esac
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179   (eval "$ac_link") 2>conftest.er1
28180   ac_status=$?
28181   grep -v '^ *+' conftest.er1 >conftest.err
28182   rm -f conftest.er1
28183   cat conftest.err >&5
28184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185   (exit $ac_status); } && {
28186          test -z "$ac_c_werror_flag" ||
28187          test ! -s conftest.err
28188        } && test -s conftest$ac_exeext &&
28189        $as_test_x conftest$ac_exeext; then
28190   ac_cv_func__doprnt=yes
28191 else
28192   echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28194
28195         ac_cv_func__doprnt=no
28196 fi
28197
28198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28199       conftest$ac_exeext conftest.$ac_ext
28200 fi
28201 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28202 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28203 if test $ac_cv_func__doprnt = yes; then
28204
28205 cat >>confdefs.h <<\_ACEOF
28206 #define HAVE_DOPRNT 1
28207 _ACEOF
28208
28209 fi
28210
28211 fi
28212 done
28213
28214
28215 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28216 # for constant arguments.  Useless!
28217 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28218 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28219 if test "${ac_cv_working_alloca_h+set}" = set; then
28220   echo $ECHO_N "(cached) $ECHO_C" >&6
28221 else
28222   cat >conftest.$ac_ext <<_ACEOF
28223 /* confdefs.h.  */
28224 _ACEOF
28225 cat confdefs.h >>conftest.$ac_ext
28226 cat >>conftest.$ac_ext <<_ACEOF
28227 /* end confdefs.h.  */
28228 #include <alloca.h>
28229 int
28230 main ()
28231 {
28232 char *p = (char *) alloca (2 * sizeof (int));
28233                           if (p) return 0;
28234   ;
28235   return 0;
28236 }
28237 _ACEOF
28238 rm -f conftest.$ac_objext conftest$ac_exeext
28239 if { (ac_try="$ac_link"
28240 case "(($ac_try" in
28241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242   *) ac_try_echo=$ac_try;;
28243 esac
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245   (eval "$ac_link") 2>conftest.er1
28246   ac_status=$?
28247   grep -v '^ *+' conftest.er1 >conftest.err
28248   rm -f conftest.er1
28249   cat conftest.err >&5
28250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251   (exit $ac_status); } && {
28252          test -z "$ac_c_werror_flag" ||
28253          test ! -s conftest.err
28254        } && test -s conftest$ac_exeext &&
28255        $as_test_x conftest$ac_exeext; then
28256   ac_cv_working_alloca_h=yes
28257 else
28258   echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28260
28261         ac_cv_working_alloca_h=no
28262 fi
28263
28264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28265       conftest$ac_exeext conftest.$ac_ext
28266 fi
28267 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28268 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28269 if test $ac_cv_working_alloca_h = yes; then
28270
28271 cat >>confdefs.h <<\_ACEOF
28272 #define HAVE_ALLOCA_H 1
28273 _ACEOF
28274
28275 fi
28276
28277 { echo "$as_me:$LINENO: checking for alloca" >&5
28278 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28279 if test "${ac_cv_func_alloca_works+set}" = set; then
28280   echo $ECHO_N "(cached) $ECHO_C" >&6
28281 else
28282   cat >conftest.$ac_ext <<_ACEOF
28283 /* confdefs.h.  */
28284 _ACEOF
28285 cat confdefs.h >>conftest.$ac_ext
28286 cat >>conftest.$ac_ext <<_ACEOF
28287 /* end confdefs.h.  */
28288 #ifdef __GNUC__
28289 # define alloca __builtin_alloca
28290 #else
28291 # ifdef _MSC_VER
28292 #  include <malloc.h>
28293 #  define alloca _alloca
28294 # else
28295 #  ifdef HAVE_ALLOCA_H
28296 #   include <alloca.h>
28297 #  else
28298 #   ifdef _AIX
28299  #pragma alloca
28300 #   else
28301 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28302 char *alloca ();
28303 #    endif
28304 #   endif
28305 #  endif
28306 # endif
28307 #endif
28308
28309 int
28310 main ()
28311 {
28312 char *p = (char *) alloca (1);
28313                                     if (p) return 0;
28314   ;
28315   return 0;
28316 }
28317 _ACEOF
28318 rm -f conftest.$ac_objext conftest$ac_exeext
28319 if { (ac_try="$ac_link"
28320 case "(($ac_try" in
28321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322   *) ac_try_echo=$ac_try;;
28323 esac
28324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325   (eval "$ac_link") 2>conftest.er1
28326   ac_status=$?
28327   grep -v '^ *+' conftest.er1 >conftest.err
28328   rm -f conftest.er1
28329   cat conftest.err >&5
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); } && {
28332          test -z "$ac_c_werror_flag" ||
28333          test ! -s conftest.err
28334        } && test -s conftest$ac_exeext &&
28335        $as_test_x conftest$ac_exeext; then
28336   ac_cv_func_alloca_works=yes
28337 else
28338   echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28340
28341         ac_cv_func_alloca_works=no
28342 fi
28343
28344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28345       conftest$ac_exeext conftest.$ac_ext
28346 fi
28347 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28348 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28349
28350 if test $ac_cv_func_alloca_works = yes; then
28351
28352 cat >>confdefs.h <<\_ACEOF
28353 #define HAVE_ALLOCA 1
28354 _ACEOF
28355
28356 else
28357   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28358 # that cause trouble.  Some versions do not even contain alloca or
28359 # contain a buggy version.  If you still want to use their alloca,
28360 # use ar to extract alloca.o from them instead of compiling alloca.c.
28361
28362 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28363
28364 cat >>confdefs.h <<\_ACEOF
28365 #define C_ALLOCA 1
28366 _ACEOF
28367
28368
28369 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28370 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28371 if test "${ac_cv_os_cray+set}" = set; then
28372   echo $ECHO_N "(cached) $ECHO_C" >&6
28373 else
28374   cat >conftest.$ac_ext <<_ACEOF
28375 /* confdefs.h.  */
28376 _ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h.  */
28380 #if defined CRAY && ! defined CRAY2
28381 webecray
28382 #else
28383 wenotbecray
28384 #endif
28385
28386 _ACEOF
28387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28388   $EGREP "webecray" >/dev/null 2>&1; then
28389   ac_cv_os_cray=yes
28390 else
28391   ac_cv_os_cray=no
28392 fi
28393 rm -f conftest*
28394
28395 fi
28396 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28397 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28398 if test $ac_cv_os_cray = yes; then
28399   for ac_func in _getb67 GETB67 getb67; do
28400     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28404   echo $ECHO_N "(cached) $ECHO_C" >&6
28405 else
28406   cat >conftest.$ac_ext <<_ACEOF
28407 /* confdefs.h.  */
28408 _ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h.  */
28412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28413    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28414 #define $ac_func innocuous_$ac_func
28415
28416 /* System header to define __stub macros and hopefully few prototypes,
28417     which can conflict with char $ac_func (); below.
28418     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28419     <limits.h> exists even on freestanding compilers.  */
28420
28421 #ifdef __STDC__
28422 # include <limits.h>
28423 #else
28424 # include <assert.h>
28425 #endif
28426
28427 #undef $ac_func
28428
28429 /* Override any GCC internal prototype to avoid an error.
28430    Use char because int might match the return type of a GCC
28431    builtin and then its argument prototype would still apply.  */
28432 #ifdef __cplusplus
28433 extern "C"
28434 #endif
28435 char $ac_func ();
28436 /* The GNU C library defines this for functions which it implements
28437     to always fail with ENOSYS.  Some functions are actually named
28438     something starting with __ and the normal name is an alias.  */
28439 #if defined __stub_$ac_func || defined __stub___$ac_func
28440 choke me
28441 #endif
28442
28443 int
28444 main ()
28445 {
28446 return $ac_func ();
28447   ;
28448   return 0;
28449 }
28450 _ACEOF
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (ac_try="$ac_link"
28453 case "(($ac_try" in
28454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455   *) ac_try_echo=$ac_try;;
28456 esac
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458   (eval "$ac_link") 2>conftest.er1
28459   ac_status=$?
28460   grep -v '^ *+' conftest.er1 >conftest.err
28461   rm -f conftest.er1
28462   cat conftest.err >&5
28463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464   (exit $ac_status); } && {
28465          test -z "$ac_c_werror_flag" ||
28466          test ! -s conftest.err
28467        } && test -s conftest$ac_exeext &&
28468        $as_test_x conftest$ac_exeext; then
28469   eval "$as_ac_var=yes"
28470 else
28471   echo "$as_me: failed program was:" >&5
28472 sed 's/^/| /' conftest.$ac_ext >&5
28473
28474         eval "$as_ac_var=no"
28475 fi
28476
28477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28478       conftest$ac_exeext conftest.$ac_ext
28479 fi
28480 ac_res=`eval echo '${'$as_ac_var'}'`
28481                { echo "$as_me:$LINENO: result: $ac_res" >&5
28482 echo "${ECHO_T}$ac_res" >&6; }
28483 if test `eval echo '${'$as_ac_var'}'` = yes; then
28484
28485 cat >>confdefs.h <<_ACEOF
28486 #define CRAY_STACKSEG_END $ac_func
28487 _ACEOF
28488
28489     break
28490 fi
28491
28492   done
28493 fi
28494
28495 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28496 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28497 if test "${ac_cv_c_stack_direction+set}" = set; then
28498   echo $ECHO_N "(cached) $ECHO_C" >&6
28499 else
28500   if test "$cross_compiling" = yes; then
28501   ac_cv_c_stack_direction=0
28502 else
28503   cat >conftest.$ac_ext <<_ACEOF
28504 /* confdefs.h.  */
28505 _ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h.  */
28509 $ac_includes_default
28510 int
28511 find_stack_direction ()
28512 {
28513   static char *addr = 0;
28514   auto char dummy;
28515   if (addr == 0)
28516     {
28517       addr = &dummy;
28518       return find_stack_direction ();
28519     }
28520   else
28521     return (&dummy > addr) ? 1 : -1;
28522 }
28523
28524 int
28525 main ()
28526 {
28527   return find_stack_direction () < 0;
28528 }
28529 _ACEOF
28530 rm -f conftest$ac_exeext
28531 if { (ac_try="$ac_link"
28532 case "(($ac_try" in
28533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534   *) ac_try_echo=$ac_try;;
28535 esac
28536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537   (eval "$ac_link") 2>&5
28538   ac_status=$?
28539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28541   { (case "(($ac_try" in
28542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543   *) ac_try_echo=$ac_try;;
28544 esac
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546   (eval "$ac_try") 2>&5
28547   ac_status=$?
28548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549   (exit $ac_status); }; }; then
28550   ac_cv_c_stack_direction=1
28551 else
28552   echo "$as_me: program exited with status $ac_status" >&5
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28555
28556 ( exit $ac_status )
28557 ac_cv_c_stack_direction=-1
28558 fi
28559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28560 fi
28561
28562
28563 fi
28564 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28565 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28566
28567 cat >>confdefs.h <<_ACEOF
28568 #define STACK_DIRECTION $ac_cv_c_stack_direction
28569 _ACEOF
28570
28571
28572 fi
28573
28574 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28575 # -lseq on Dynix/PTX, -lgen on Unixware.
28576 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28577 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28578 if test "${ac_cv_search_getmntent+set}" = set; then
28579   echo $ECHO_N "(cached) $ECHO_C" >&6
28580 else
28581   ac_func_search_save_LIBS=$LIBS
28582 cat >conftest.$ac_ext <<_ACEOF
28583 /* confdefs.h.  */
28584 _ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h.  */
28588
28589 /* Override any GCC internal prototype to avoid an error.
28590    Use char because int might match the return type of a GCC
28591    builtin and then its argument prototype would still apply.  */
28592 #ifdef __cplusplus
28593 extern "C"
28594 #endif
28595 char getmntent ();
28596 int
28597 main ()
28598 {
28599 return getmntent ();
28600   ;
28601   return 0;
28602 }
28603 _ACEOF
28604 for ac_lib in '' sun seq gen; do
28605   if test -z "$ac_lib"; then
28606     ac_res="none required"
28607   else
28608     ac_res=-l$ac_lib
28609     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28610   fi
28611   rm -f conftest.$ac_objext conftest$ac_exeext
28612 if { (ac_try="$ac_link"
28613 case "(($ac_try" in
28614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615   *) ac_try_echo=$ac_try;;
28616 esac
28617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618   (eval "$ac_link") 2>conftest.er1
28619   ac_status=$?
28620   grep -v '^ *+' conftest.er1 >conftest.err
28621   rm -f conftest.er1
28622   cat conftest.err >&5
28623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624   (exit $ac_status); } && {
28625          test -z "$ac_c_werror_flag" ||
28626          test ! -s conftest.err
28627        } && test -s conftest$ac_exeext &&
28628        $as_test_x conftest$ac_exeext; then
28629   ac_cv_search_getmntent=$ac_res
28630 else
28631   echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28633
28634
28635 fi
28636
28637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28638       conftest$ac_exeext
28639   if test "${ac_cv_search_getmntent+set}" = set; then
28640   break
28641 fi
28642 done
28643 if test "${ac_cv_search_getmntent+set}" = set; then
28644   :
28645 else
28646   ac_cv_search_getmntent=no
28647 fi
28648 rm conftest.$ac_ext
28649 LIBS=$ac_func_search_save_LIBS
28650 fi
28651 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28652 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28653 ac_res=$ac_cv_search_getmntent
28654 if test "$ac_res" != no; then
28655   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28656   ac_cv_func_getmntent=yes
28657
28658 cat >>confdefs.h <<\_ACEOF
28659 #define HAVE_GETMNTENT 1
28660 _ACEOF
28661
28662 else
28663   ac_cv_func_getmntent=no
28664 fi
28665
28666
28667 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28668 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28669 if test "${ac_cv_func_closedir_void+set}" = set; then
28670   echo $ECHO_N "(cached) $ECHO_C" >&6
28671 else
28672   if test "$cross_compiling" = yes; then
28673   ac_cv_func_closedir_void=yes
28674 else
28675   cat >conftest.$ac_ext <<_ACEOF
28676 /* confdefs.h.  */
28677 _ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h.  */
28681 $ac_includes_default
28682 #include <$ac_header_dirent>
28683 #ifndef __cplusplus
28684 int closedir ();
28685 #endif
28686
28687 int
28688 main ()
28689 {
28690 return closedir (opendir (".")) != 0;
28691   ;
28692   return 0;
28693 }
28694 _ACEOF
28695 rm -f conftest$ac_exeext
28696 if { (ac_try="$ac_link"
28697 case "(($ac_try" in
28698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28699   *) ac_try_echo=$ac_try;;
28700 esac
28701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28702   (eval "$ac_link") 2>&5
28703   ac_status=$?
28704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28706   { (case "(($ac_try" in
28707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708   *) ac_try_echo=$ac_try;;
28709 esac
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711   (eval "$ac_try") 2>&5
28712   ac_status=$?
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); }; }; then
28715   ac_cv_func_closedir_void=no
28716 else
28717   echo "$as_me: program exited with status $ac_status" >&5
28718 echo "$as_me: failed program was:" >&5
28719 sed 's/^/| /' conftest.$ac_ext >&5
28720
28721 ( exit $ac_status )
28722 ac_cv_func_closedir_void=yes
28723 fi
28724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28725 fi
28726
28727
28728 fi
28729 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28730 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28731 if test $ac_cv_func_closedir_void = yes; then
28732
28733 cat >>confdefs.h <<\_ACEOF
28734 #define CLOSEDIR_VOID 1
28735 _ACEOF
28736
28737 fi
28738
28739 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28740 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28741 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28742   echo $ECHO_N "(cached) $ECHO_C" >&6
28743 else
28744   if test "$cross_compiling" = yes; then
28745   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28746 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28747    { (exit 1); exit 1; }; }
28748 else
28749   cat >conftest.$ac_ext <<_ACEOF
28750 /* confdefs.h.  */
28751 _ACEOF
28752 cat confdefs.h >>conftest.$ac_ext
28753 cat >>conftest.$ac_ext <<_ACEOF
28754 /* end confdefs.h.  */
28755 $ac_includes_default
28756 int
28757 main ()
28758 {
28759 /* If this system has a BSD-style setpgrp which takes arguments,
28760   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28761   exit successfully. */
28762   return setpgrp (1,1) != -1;
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771   *) ac_try_echo=$ac_try;;
28772 esac
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774   (eval "$ac_link") 2>&5
28775   ac_status=$?
28776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28778   { (case "(($ac_try" in
28779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780   *) ac_try_echo=$ac_try;;
28781 esac
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783   (eval "$ac_try") 2>&5
28784   ac_status=$?
28785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); }; }; then
28787   ac_cv_func_setpgrp_void=no
28788 else
28789   echo "$as_me: program exited with status $ac_status" >&5
28790 echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28792
28793 ( exit $ac_status )
28794 ac_cv_func_setpgrp_void=yes
28795 fi
28796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28797 fi
28798
28799
28800 fi
28801 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28802 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28803 if test $ac_cv_func_setpgrp_void = yes; then
28804
28805 cat >>confdefs.h <<\_ACEOF
28806 #define SETPGRP_VOID 1
28807 _ACEOF
28808
28809 fi
28810                       # AC_FUNC_FNMATCH    dnl use local version
28811
28812
28813 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28814 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28815 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28816   echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818   ac_check_lib_save_LIBS=$LIBS
28819 LIBS="-lintl  $LIBS"
28820 cat >conftest.$ac_ext <<_ACEOF
28821 /* confdefs.h.  */
28822 _ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h.  */
28826
28827 /* Override any GCC internal prototype to avoid an error.
28828    Use char because int might match the return type of a GCC
28829    builtin and then its argument prototype would still apply.  */
28830 #ifdef __cplusplus
28831 extern "C"
28832 #endif
28833 char gettext ();
28834 int
28835 main ()
28836 {
28837 return gettext ();
28838   ;
28839   return 0;
28840 }
28841 _ACEOF
28842 rm -f conftest.$ac_objext conftest$ac_exeext
28843 if { (ac_try="$ac_link"
28844 case "(($ac_try" in
28845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846   *) ac_try_echo=$ac_try;;
28847 esac
28848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849   (eval "$ac_link") 2>conftest.er1
28850   ac_status=$?
28851   grep -v '^ *+' conftest.er1 >conftest.err
28852   rm -f conftest.er1
28853   cat conftest.err >&5
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); } && {
28856          test -z "$ac_c_werror_flag" ||
28857          test ! -s conftest.err
28858        } && test -s conftest$ac_exeext &&
28859        $as_test_x conftest$ac_exeext; then
28860   ac_cv_lib_intl_gettext=yes
28861 else
28862   echo "$as_me: failed program was:" >&5
28863 sed 's/^/| /' conftest.$ac_ext >&5
28864
28865         ac_cv_lib_intl_gettext=no
28866 fi
28867
28868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28869       conftest$ac_exeext conftest.$ac_ext
28870 LIBS=$ac_check_lib_save_LIBS
28871 fi
28872 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28873 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28874 if test $ac_cv_lib_intl_gettext = yes; then
28875   LIBS="$LIBS -lintl"
28876 fi
28877
28878
28879
28880
28881 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28882 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28883 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28884   echo $ECHO_N "(cached) $ECHO_C" >&6
28885 else
28886   ac_check_lib_save_LIBS=$LIBS
28887 LIBS="-lsun  $LIBS"
28888 cat >conftest.$ac_ext <<_ACEOF
28889 /* confdefs.h.  */
28890 _ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h.  */
28894
28895 /* Override any GCC internal prototype to avoid an error.
28896    Use char because int might match the return type of a GCC
28897    builtin and then its argument prototype would still apply.  */
28898 #ifdef __cplusplus
28899 extern "C"
28900 #endif
28901 char getpwnam ();
28902 int
28903 main ()
28904 {
28905 return getpwnam ();
28906   ;
28907   return 0;
28908 }
28909 _ACEOF
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_lib_sun_getpwnam=yes
28929 else
28930   echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28932
28933         ac_cv_lib_sun_getpwnam=no
28934 fi
28935
28936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28937       conftest$ac_exeext conftest.$ac_ext
28938 LIBS=$ac_check_lib_save_LIBS
28939 fi
28940 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28941 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28942 if test $ac_cv_lib_sun_getpwnam = yes; then
28943   cat >>confdefs.h <<_ACEOF
28944 #define HAVE_LIBSUN 1
28945 _ACEOF
28946
28947   LIBS="-lsun $LIBS"
28948
28949 fi
28950
28951
28952
28953 for ac_header in zlib.h
28954 do
28955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28960   echo $ECHO_N "(cached) $ECHO_C" >&6
28961 fi
28962 ac_res=`eval echo '${'$as_ac_Header'}'`
28963                { echo "$as_me:$LINENO: result: $ac_res" >&5
28964 echo "${ECHO_T}$ac_res" >&6; }
28965 else
28966   # Is the header compilable?
28967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28969 cat >conftest.$ac_ext <<_ACEOF
28970 /* confdefs.h.  */
28971 _ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h.  */
28975 $ac_includes_default
28976 #include <$ac_header>
28977 _ACEOF
28978 rm -f conftest.$ac_objext
28979 if { (ac_try="$ac_compile"
28980 case "(($ac_try" in
28981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982   *) ac_try_echo=$ac_try;;
28983 esac
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985   (eval "$ac_compile") 2>conftest.er1
28986   ac_status=$?
28987   grep -v '^ *+' conftest.er1 >conftest.err
28988   rm -f conftest.er1
28989   cat conftest.err >&5
28990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991   (exit $ac_status); } && {
28992          test -z "$ac_c_werror_flag" ||
28993          test ! -s conftest.err
28994        } && test -s conftest.$ac_objext; then
28995   ac_header_compiler=yes
28996 else
28997   echo "$as_me: failed program was:" >&5
28998 sed 's/^/| /' conftest.$ac_ext >&5
28999
29000         ac_header_compiler=no
29001 fi
29002
29003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29005 echo "${ECHO_T}$ac_header_compiler" >&6; }
29006
29007 # Is the header present?
29008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29010 cat >conftest.$ac_ext <<_ACEOF
29011 /* confdefs.h.  */
29012 _ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h.  */
29016 #include <$ac_header>
29017 _ACEOF
29018 if { (ac_try="$ac_cpp conftest.$ac_ext"
29019 case "(($ac_try" in
29020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021   *) ac_try_echo=$ac_try;;
29022 esac
29023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29025   ac_status=$?
29026   grep -v '^ *+' conftest.er1 >conftest.err
29027   rm -f conftest.er1
29028   cat conftest.err >&5
29029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030   (exit $ac_status); } >/dev/null && {
29031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29032          test ! -s conftest.err
29033        }; then
29034   ac_header_preproc=yes
29035 else
29036   echo "$as_me: failed program was:" >&5
29037 sed 's/^/| /' conftest.$ac_ext >&5
29038
29039   ac_header_preproc=no
29040 fi
29041
29042 rm -f conftest.err conftest.$ac_ext
29043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29044 echo "${ECHO_T}$ac_header_preproc" >&6; }
29045
29046 # So?  What about this header?
29047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29048   yes:no: )
29049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29053     ac_header_preproc=yes
29054     ;;
29055   no:yes:* )
29056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29068
29069     ;;
29070 esac
29071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29074   echo $ECHO_N "(cached) $ECHO_C" >&6
29075 else
29076   eval "$as_ac_Header=\$ac_header_preproc"
29077 fi
29078 ac_res=`eval echo '${'$as_ac_Header'}'`
29079                { echo "$as_me:$LINENO: result: $ac_res" >&5
29080 echo "${ECHO_T}$ac_res" >&6; }
29081
29082 fi
29083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29084   cat >>confdefs.h <<_ACEOF
29085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29086 _ACEOF
29087
29088 fi
29089
29090 done
29091
29092 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29093 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29094 if test "${ac_cv_lib_z_deflate+set}" = set; then
29095   echo $ECHO_N "(cached) $ECHO_C" >&6
29096 else
29097   ac_check_lib_save_LIBS=$LIBS
29098 LIBS="-lz  $LIBS"
29099 cat >conftest.$ac_ext <<_ACEOF
29100 /* confdefs.h.  */
29101 _ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h.  */
29105
29106 /* Override any GCC internal prototype to avoid an error.
29107    Use char because int might match the return type of a GCC
29108    builtin and then its argument prototype would still apply.  */
29109 #ifdef __cplusplus
29110 extern "C"
29111 #endif
29112 char deflate ();
29113 int
29114 main ()
29115 {
29116 return deflate ();
29117   ;
29118   return 0;
29119 }
29120 _ACEOF
29121 rm -f conftest.$ac_objext conftest$ac_exeext
29122 if { (ac_try="$ac_link"
29123 case "(($ac_try" in
29124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125   *) ac_try_echo=$ac_try;;
29126 esac
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128   (eval "$ac_link") 2>conftest.er1
29129   ac_status=$?
29130   grep -v '^ *+' conftest.er1 >conftest.err
29131   rm -f conftest.er1
29132   cat conftest.err >&5
29133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134   (exit $ac_status); } && {
29135          test -z "$ac_c_werror_flag" ||
29136          test ! -s conftest.err
29137        } && test -s conftest$ac_exeext &&
29138        $as_test_x conftest$ac_exeext; then
29139   ac_cv_lib_z_deflate=yes
29140 else
29141   echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29143
29144         ac_cv_lib_z_deflate=no
29145 fi
29146
29147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29148       conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29150 fi
29151 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29152 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29153 if test $ac_cv_lib_z_deflate = yes; then
29154   FDLIBS="-lz"
29155 fi
29156
29157 have_zlib=no
29158 if test x$FDLIBS = x-lz; then
29159   cat >>confdefs.h <<\_ACEOF
29160 #define HAVE_LIBZ 1
29161 _ACEOF
29162
29163   have_zlib=yes
29164 fi
29165
29166 #
29167 # Check for ACL libraries
29168 #
29169 have_acl=no
29170 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29171   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29172 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29173 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29174   echo $ECHO_N "(cached) $ECHO_C" >&6
29175 fi
29176 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29177 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29178 else
29179   # Is the header compilable?
29180 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29181 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29182 cat >conftest.$ac_ext <<_ACEOF
29183 /* confdefs.h.  */
29184 _ACEOF
29185 cat confdefs.h >>conftest.$ac_ext
29186 cat >>conftest.$ac_ext <<_ACEOF
29187 /* end confdefs.h.  */
29188 $ac_includes_default
29189 #include <sys/acl.h>
29190 _ACEOF
29191 rm -f conftest.$ac_objext
29192 if { (ac_try="$ac_compile"
29193 case "(($ac_try" in
29194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195   *) ac_try_echo=$ac_try;;
29196 esac
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198   (eval "$ac_compile") 2>conftest.er1
29199   ac_status=$?
29200   grep -v '^ *+' conftest.er1 >conftest.err
29201   rm -f conftest.er1
29202   cat conftest.err >&5
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); } && {
29205          test -z "$ac_c_werror_flag" ||
29206          test ! -s conftest.err
29207        } && test -s conftest.$ac_objext; then
29208   ac_header_compiler=yes
29209 else
29210   echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.$ac_ext >&5
29212
29213         ac_header_compiler=no
29214 fi
29215
29216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29218 echo "${ECHO_T}$ac_header_compiler" >&6; }
29219
29220 # Is the header present?
29221 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29222 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29223 cat >conftest.$ac_ext <<_ACEOF
29224 /* confdefs.h.  */
29225 _ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h.  */
29229 #include <sys/acl.h>
29230 _ACEOF
29231 if { (ac_try="$ac_cpp conftest.$ac_ext"
29232 case "(($ac_try" in
29233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234   *) ac_try_echo=$ac_try;;
29235 esac
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29238   ac_status=$?
29239   grep -v '^ *+' conftest.er1 >conftest.err
29240   rm -f conftest.er1
29241   cat conftest.err >&5
29242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243   (exit $ac_status); } >/dev/null && {
29244          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29245          test ! -s conftest.err
29246        }; then
29247   ac_header_preproc=yes
29248 else
29249   echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29251
29252   ac_header_preproc=no
29253 fi
29254
29255 rm -f conftest.err conftest.$ac_ext
29256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29257 echo "${ECHO_T}$ac_header_preproc" >&6; }
29258
29259 # So?  What about this header?
29260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29261   yes:no: )
29262     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29263 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29264     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29265 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29266     ac_header_preproc=yes
29267     ;;
29268   no:yes:* )
29269     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29270 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29271     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29272 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29273     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29274 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29275     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29276 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29277     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29278 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29279     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29280 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29281
29282     ;;
29283 esac
29284 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29285 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29286 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29287   echo $ECHO_N "(cached) $ECHO_C" >&6
29288 else
29289   ac_cv_header_sys_acl_h=$ac_header_preproc
29290 fi
29291 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29292 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29293
29294 fi
29295
29296
29297 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29298 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29299 if test "${ac_cv_func_acl_get_file+set}" = set; then
29300   echo $ECHO_N "(cached) $ECHO_C" >&6
29301 else
29302   cat >conftest.$ac_ext <<_ACEOF
29303 /* confdefs.h.  */
29304 _ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h.  */
29308 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29309    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29310 #define acl_get_file innocuous_acl_get_file
29311
29312 /* System header to define __stub macros and hopefully few prototypes,
29313     which can conflict with char acl_get_file (); below.
29314     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315     <limits.h> exists even on freestanding compilers.  */
29316
29317 #ifdef __STDC__
29318 # include <limits.h>
29319 #else
29320 # include <assert.h>
29321 #endif
29322
29323 #undef acl_get_file
29324
29325 /* Override any GCC internal prototype to avoid an error.
29326    Use char because int might match the return type of a GCC
29327    builtin and then its argument prototype would still apply.  */
29328 #ifdef __cplusplus
29329 extern "C"
29330 #endif
29331 char acl_get_file ();
29332 /* The GNU C library defines this for functions which it implements
29333     to always fail with ENOSYS.  Some functions are actually named
29334     something starting with __ and the normal name is an alias.  */
29335 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29336 choke me
29337 #endif
29338
29339 int
29340 main ()
29341 {
29342 return acl_get_file ();
29343   ;
29344   return 0;
29345 }
29346 _ACEOF
29347 rm -f conftest.$ac_objext conftest$ac_exeext
29348 if { (ac_try="$ac_link"
29349 case "(($ac_try" in
29350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351   *) ac_try_echo=$ac_try;;
29352 esac
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354   (eval "$ac_link") 2>conftest.er1
29355   ac_status=$?
29356   grep -v '^ *+' conftest.er1 >conftest.err
29357   rm -f conftest.er1
29358   cat conftest.err >&5
29359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360   (exit $ac_status); } && {
29361          test -z "$ac_c_werror_flag" ||
29362          test ! -s conftest.err
29363        } && test -s conftest$ac_exeext &&
29364        $as_test_x conftest$ac_exeext; then
29365   ac_cv_func_acl_get_file=yes
29366 else
29367   echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29369
29370         ac_cv_func_acl_get_file=no
29371 fi
29372
29373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29374       conftest$ac_exeext conftest.$ac_ext
29375 fi
29376 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29377 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29378 if test $ac_cv_func_acl_get_file = yes; then
29379   have_acl=yes
29380 else
29381   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29382 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29383 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29384   echo $ECHO_N "(cached) $ECHO_C" >&6
29385 else
29386   ac_check_lib_save_LIBS=$LIBS
29387 LIBS="-lacl  $LIBS"
29388 cat >conftest.$ac_ext <<_ACEOF
29389 /* confdefs.h.  */
29390 _ACEOF
29391 cat confdefs.h >>conftest.$ac_ext
29392 cat >>conftest.$ac_ext <<_ACEOF
29393 /* end confdefs.h.  */
29394
29395 /* Override any GCC internal prototype to avoid an error.
29396    Use char because int might match the return type of a GCC
29397    builtin and then its argument prototype would still apply.  */
29398 #ifdef __cplusplus
29399 extern "C"
29400 #endif
29401 char acl_get_file ();
29402 int
29403 main ()
29404 {
29405 return acl_get_file ();
29406   ;
29407   return 0;
29408 }
29409 _ACEOF
29410 rm -f conftest.$ac_objext conftest$ac_exeext
29411 if { (ac_try="$ac_link"
29412 case "(($ac_try" in
29413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414   *) ac_try_echo=$ac_try;;
29415 esac
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417   (eval "$ac_link") 2>conftest.er1
29418   ac_status=$?
29419   grep -v '^ *+' conftest.er1 >conftest.err
29420   rm -f conftest.er1
29421   cat conftest.err >&5
29422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423   (exit $ac_status); } && {
29424          test -z "$ac_c_werror_flag" ||
29425          test ! -s conftest.err
29426        } && test -s conftest$ac_exeext &&
29427        $as_test_x conftest$ac_exeext; then
29428   ac_cv_lib_acl_acl_get_file=yes
29429 else
29430   echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29432
29433         ac_cv_lib_acl_acl_get_file=no
29434 fi
29435
29436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29437       conftest$ac_exeext conftest.$ac_ext
29438 LIBS=$ac_check_lib_save_LIBS
29439 fi
29440 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29441 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29442 if test $ac_cv_lib_acl_acl_get_file = yes; then
29443   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29444 else
29445   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29446 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29447 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29448   echo $ECHO_N "(cached) $ECHO_C" >&6
29449 else
29450   ac_check_lib_save_LIBS=$LIBS
29451 LIBS="-lsec  $LIBS"
29452 cat >conftest.$ac_ext <<_ACEOF
29453 /* confdefs.h.  */
29454 _ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h.  */
29458
29459 /* Override any GCC internal prototype to avoid an error.
29460    Use char because int might match the return type of a GCC
29461    builtin and then its argument prototype would still apply.  */
29462 #ifdef __cplusplus
29463 extern "C"
29464 #endif
29465 char acltotext ();
29466 int
29467 main ()
29468 {
29469 return acltotext ();
29470   ;
29471   return 0;
29472 }
29473 _ACEOF
29474 rm -f conftest.$ac_objext conftest$ac_exeext
29475 if { (ac_try="$ac_link"
29476 case "(($ac_try" in
29477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478   *) ac_try_echo=$ac_try;;
29479 esac
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481   (eval "$ac_link") 2>conftest.er1
29482   ac_status=$?
29483   grep -v '^ *+' conftest.er1 >conftest.err
29484   rm -f conftest.er1
29485   cat conftest.err >&5
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); } && {
29488          test -z "$ac_c_werror_flag" ||
29489          test ! -s conftest.err
29490        } && test -s conftest$ac_exeext &&
29491        $as_test_x conftest$ac_exeext; then
29492   ac_cv_lib_sec_acltotext=yes
29493 else
29494   echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29496
29497         ac_cv_lib_sec_acltotext=no
29498 fi
29499
29500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29501       conftest$ac_exeext conftest.$ac_ext
29502 LIBS=$ac_check_lib_save_LIBS
29503 fi
29504 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29505 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29506 if test $ac_cv_lib_sec_acltotext = yes; then
29507   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29508 fi
29509
29510
29511 fi
29512
29513
29514 fi
29515
29516 if test $have_acl = yes; then
29517    cat >>confdefs.h <<\_ACEOF
29518 #define HAVE_ACL 1
29519 _ACEOF
29520
29521 fi
29522
29523 PTHREAD_LIB=""
29524 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29525 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29526 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29527   echo $ECHO_N "(cached) $ECHO_C" >&6
29528 else
29529   ac_check_lib_save_LIBS=$LIBS
29530 LIBS="-lpthread  $LIBS"
29531 cat >conftest.$ac_ext <<_ACEOF
29532 /* confdefs.h.  */
29533 _ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h.  */
29537
29538 /* Override any GCC internal prototype to avoid an error.
29539    Use char because int might match the return type of a GCC
29540    builtin and then its argument prototype would still apply.  */
29541 #ifdef __cplusplus
29542 extern "C"
29543 #endif
29544 char pthread_create ();
29545 int
29546 main ()
29547 {
29548 return pthread_create ();
29549   ;
29550   return 0;
29551 }
29552 _ACEOF
29553 rm -f conftest.$ac_objext conftest$ac_exeext
29554 if { (ac_try="$ac_link"
29555 case "(($ac_try" in
29556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557   *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560   (eval "$ac_link") 2>conftest.er1
29561   ac_status=$?
29562   grep -v '^ *+' conftest.er1 >conftest.err
29563   rm -f conftest.er1
29564   cat conftest.err >&5
29565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566   (exit $ac_status); } && {
29567          test -z "$ac_c_werror_flag" ||
29568          test ! -s conftest.err
29569        } && test -s conftest$ac_exeext &&
29570        $as_test_x conftest$ac_exeext; then
29571   ac_cv_lib_pthread_pthread_create=yes
29572 else
29573   echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29575
29576         ac_cv_lib_pthread_pthread_create=no
29577 fi
29578
29579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29580       conftest$ac_exeext conftest.$ac_ext
29581 LIBS=$ac_check_lib_save_LIBS
29582 fi
29583 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29584 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29585 if test $ac_cv_lib_pthread_pthread_create = yes; then
29586   PTHREAD_LIB="-lpthread"
29587 else
29588   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29589 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29590 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29591   echo $ECHO_N "(cached) $ECHO_C" >&6
29592 else
29593   ac_check_lib_save_LIBS=$LIBS
29594 LIBS="-lpthreads  $LIBS"
29595 cat >conftest.$ac_ext <<_ACEOF
29596 /* confdefs.h.  */
29597 _ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h.  */
29601
29602 /* Override any GCC internal prototype to avoid an error.
29603    Use char because int might match the return type of a GCC
29604    builtin and then its argument prototype would still apply.  */
29605 #ifdef __cplusplus
29606 extern "C"
29607 #endif
29608 char pthread_create ();
29609 int
29610 main ()
29611 {
29612 return pthread_create ();
29613   ;
29614   return 0;
29615 }
29616 _ACEOF
29617 rm -f conftest.$ac_objext conftest$ac_exeext
29618 if { (ac_try="$ac_link"
29619 case "(($ac_try" in
29620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621   *) ac_try_echo=$ac_try;;
29622 esac
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624   (eval "$ac_link") 2>conftest.er1
29625   ac_status=$?
29626   grep -v '^ *+' conftest.er1 >conftest.err
29627   rm -f conftest.er1
29628   cat conftest.err >&5
29629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630   (exit $ac_status); } && {
29631          test -z "$ac_c_werror_flag" ||
29632          test ! -s conftest.err
29633        } && test -s conftest$ac_exeext &&
29634        $as_test_x conftest$ac_exeext; then
29635   ac_cv_lib_pthreads_pthread_create=yes
29636 else
29637   echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.$ac_ext >&5
29639
29640         ac_cv_lib_pthreads_pthread_create=no
29641 fi
29642
29643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29644       conftest$ac_exeext conftest.$ac_ext
29645 LIBS=$ac_check_lib_save_LIBS
29646 fi
29647 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29648 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29649 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29650   PTHREAD_LIB="-lpthreads"
29651 else
29652   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29653 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29654 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29655   echo $ECHO_N "(cached) $ECHO_C" >&6
29656 else
29657   ac_check_lib_save_LIBS=$LIBS
29658 LIBS="-lc_r  $LIBS"
29659 cat >conftest.$ac_ext <<_ACEOF
29660 /* confdefs.h.  */
29661 _ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h.  */
29665
29666 /* Override any GCC internal prototype to avoid an error.
29667    Use char because int might match the return type of a GCC
29668    builtin and then its argument prototype would still apply.  */
29669 #ifdef __cplusplus
29670 extern "C"
29671 #endif
29672 char pthread_create ();
29673 int
29674 main ()
29675 {
29676 return pthread_create ();
29677   ;
29678   return 0;
29679 }
29680 _ACEOF
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685   *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688   (eval "$ac_link") 2>conftest.er1
29689   ac_status=$?
29690   grep -v '^ *+' conftest.er1 >conftest.err
29691   rm -f conftest.er1
29692   cat conftest.err >&5
29693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694   (exit $ac_status); } && {
29695          test -z "$ac_c_werror_flag" ||
29696          test ! -s conftest.err
29697        } && test -s conftest$ac_exeext &&
29698        $as_test_x conftest$ac_exeext; then
29699   ac_cv_lib_c_r_pthread_create=yes
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704         ac_cv_lib_c_r_pthread_create=no
29705 fi
29706
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708       conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29710 fi
29711 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29712 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29713 if test $ac_cv_lib_c_r_pthread_create = yes; then
29714   PTHREAD_LIB="-lc_r"
29715 else
29716   { echo "$as_me:$LINENO: checking for pthread_create" >&5
29717 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29718 if test "${ac_cv_func_pthread_create+set}" = set; then
29719   echo $ECHO_N "(cached) $ECHO_C" >&6
29720 else
29721   cat >conftest.$ac_ext <<_ACEOF
29722 /* confdefs.h.  */
29723 _ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h.  */
29727 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29729 #define pthread_create innocuous_pthread_create
29730
29731 /* System header to define __stub macros and hopefully few prototypes,
29732     which can conflict with char pthread_create (); below.
29733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29734     <limits.h> exists even on freestanding compilers.  */
29735
29736 #ifdef __STDC__
29737 # include <limits.h>
29738 #else
29739 # include <assert.h>
29740 #endif
29741
29742 #undef pthread_create
29743
29744 /* Override any GCC internal prototype to avoid an error.
29745    Use char because int might match the return type of a GCC
29746    builtin and then its argument prototype would still apply.  */
29747 #ifdef __cplusplus
29748 extern "C"
29749 #endif
29750 char pthread_create ();
29751 /* The GNU C library defines this for functions which it implements
29752     to always fail with ENOSYS.  Some functions are actually named
29753     something starting with __ and the normal name is an alias.  */
29754 #if defined __stub_pthread_create || defined __stub___pthread_create
29755 choke me
29756 #endif
29757
29758 int
29759 main ()
29760 {
29761 return pthread_create ();
29762   ;
29763   return 0;
29764 }
29765 _ACEOF
29766 rm -f conftest.$ac_objext conftest$ac_exeext
29767 if { (ac_try="$ac_link"
29768 case "(($ac_try" in
29769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770   *) ac_try_echo=$ac_try;;
29771 esac
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773   (eval "$ac_link") 2>conftest.er1
29774   ac_status=$?
29775   grep -v '^ *+' conftest.er1 >conftest.err
29776   rm -f conftest.er1
29777   cat conftest.err >&5
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); } && {
29780          test -z "$ac_c_werror_flag" ||
29781          test ! -s conftest.err
29782        } && test -s conftest$ac_exeext &&
29783        $as_test_x conftest$ac_exeext; then
29784   ac_cv_func_pthread_create=yes
29785 else
29786   echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29788
29789         ac_cv_func_pthread_create=no
29790 fi
29791
29792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29793       conftest$ac_exeext conftest.$ac_ext
29794 fi
29795 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29796 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29797
29798
29799 fi
29800
29801
29802 fi
29803
29804
29805 fi
29806
29807
29808
29809 cat >>confdefs.h <<\_ACEOF
29810 #define FDLIBS 1
29811 _ACEOF
29812
29813
29814
29815 CFLAGS=${CFLAGS--O}
29816
29817 if test x$have_gcc = xyes ; then
29818    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29819    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29820 fi
29821 LDFLAGS=${LDFLAGS--O}
29822 DB_LIBS="${SQL_LFLAGS}"
29823 CPPFLAGS="$CPPFLAGS"
29824 CFLAGS="$CFLAGS"
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841 OBJLIST=
29842
29843
29844 lld="lld"
29845 llu="llu"
29846
29847 WCFLAGS=
29848 WLDFLAGS=
29849
29850 #
29851 # Finally we set appropriate distribution specific
29852 #  variables and defaults
29853 #
29854 # PFILES are platform specific files
29855 PFILES="platforms/Makefile"
29856 PSCMD="ps -e"
29857 WIN32=
29858 MACOSX=
29859 hostname=`uname -n | cut -d '.' -f 1`
29860 if test x${hostname} = x ; then
29861   hostname="localhost"
29862 fi
29863 case "$DISTNAME" in
29864 aix)
29865         DISTVER=`uname -r`
29866         PSCMD="ps -e -o pid,comm"
29867         PFILES="${PFILES} \
29868            platforms/aix/Makefile"
29869         TAPEDRIVE="/dev/rmt0.1"
29870   ;;
29871 alpha)
29872         DISTVER=`uname -r`
29873         PTHREAD_LIB="-lpthread -lexc"
29874         if test "${CC}" = "gcc" ; then
29875            lld="lld"
29876            llu="llu"
29877         else
29878            lld="ld"
29879            llu="lu"
29880         fi
29881         TAPEDRIVE="/dev/nrmt0"
29882   ;;
29883 bsdi)
29884         DISTVER=`uname -a |awk '{print $3}'`
29885         TAPEDRIVE="/dev/nrmt0"
29886         PTHREAD_LIB="-pthread"
29887         CFLAGS="${CFLAGS} -pthread"
29888         PSCMD="ps -ax -o pid,command"
29889         lld="qd"
29890         llu="qu"
29891         PFILES="${PFILES} \
29892             platforms/bsdi/Makefile \
29893             platforms/bsdi/bacula-fd \
29894             platforms/bsdi/bacula-sd \
29895             platforms/bsdi/bacula-dir"
29896         largefile_support="yes"
29897   ;;
29898 cygwin)
29899         DISTVER=`uname -a |awk '{print $3}'`
29900         TAPEDRIVE="/dev/nrst0"
29901         WIN32=win32
29902         WCFLAGS="-mwindows"
29903         WLDFLAGS="-mwindows"
29904   ;;
29905 darwin)
29906         DISTVER=`uname -r`
29907         TAPEDRIVE="/dev/nst0"
29908         PSCMD="ps -e -o pid,command"
29909         MACOSX=macosx
29910         PFILES="${PFILES} \
29911            platforms/darwin/Makefile"
29912   ;;
29913 debian)
29914         DISTVER=`cat /etc/debian_version`
29915         TAPEDRIVE="/dev/nrst0"
29916         PSCMD="ps -e -o pid,command"
29917         PFILES="${PFILES} \
29918             platforms/debian/Makefile \
29919             platforms/debian/bacula-fd \
29920             platforms/debian/bacula-sd \
29921             platforms/debian/bacula-dir"
29922   ;;
29923 freebsd)
29924         DISTVER=`uname -a |awk '{print $3}'`
29925         VER=`echo $DISTVER | cut -c 1`
29926         if test x$VER = x4 ; then
29927            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29928            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29929         fi
29930         lld="qd"
29931         llu="qu"
29932         TAPEDRIVE="/dev/nrsa0"
29933         PSCMD="ps -ax -o pid,command"
29934         PFILES="${PFILES} \
29935             platforms/freebsd/Makefile \
29936             platforms/freebsd/bacula-fd \
29937             platforms/freebsd/bacula-sd \
29938             platforms/freebsd/bacula-dir"
29939         largefile_support="yes"
29940   ;;
29941 hpux)
29942         PSCMD="UNIX95=1; ps -e -o pid,comm"
29943         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29944         DISTVER=`uname -r`
29945         TAPEDRIVE="/dev/rmt/0hnb"
29946         PTHREAD_LIB="-lpthread"
29947         cat >>confdefs.h <<\_ACEOF
29948 #define _INCLUDE_LONGLONG 1
29949 _ACEOF
29950
29951   ;;
29952 irix)
29953         DISTVER=`uname -r`
29954         TAPEDRIVE="/dev/rmt/0cbn"
29955         PSCMD="ps -e -o pid,comm"
29956         PFILES="${PFILES} \
29957             platforms/irix/Makefile \
29958             platforms/irix/bacula-fd \
29959             platforms/irix/bacula-sd \
29960             platforms/irix/bacula-dir"
29961   ;;
29962 netbsd)
29963         DISTVER=`uname -a |awk '{print $3}'`
29964         lld="qd"
29965         llu="qu"
29966         TAPEDRIVE="/dev/nrst0"
29967         PSCMD="ps -ax -o pid,command"
29968         PTHREAD_LIB="-pthread"
29969         CFLAGS="${CFLAGS} -pthread"
29970   ;;
29971 openbsd)
29972         DISTVER=`uname -a |awk '{print $3}'`
29973         lld="qd"
29974         llu="qu"
29975         TAPEDRIVE="/dev/nrst0"
29976         PSCMD="ps -ax -o pid,command"
29977         PTHREAD_LIB="-pthread"
29978         CFLAGS="${CFLAGS} -pthread"
29979         PFILES="${PFILES} \
29980             platforms/openbsd/Makefile \
29981             platforms/openbsd/bacula-fd \
29982             platforms/openbsd/bacula-sd \
29983             platforms/openbsd/bacula-dir"
29984   ;;
29985 redhat)
29986         if test -f /etc/whitebox-release ; then
29987            f=/etc/whitebox-release
29988         else
29989            f=/etc/redhat-release
29990         fi
29991         if test `cat $f | grep release |\
29992                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29993            DISTVER="Enterprise "`cat $f | grep release |\
29994                     cut -f 6 -d ' '`
29995         else
29996             DISTVER=`cat /etc/redhat-release | grep release |\
29997                      cut -f 5 -d ' '`
29998         fi
29999         TAPEDRIVE="/dev/nst0"
30000         PSCMD="ps -e -o pid,command"
30001         PFILES="${PFILES} \
30002             platforms/redhat/Makefile \
30003             platforms/redhat/bacula-fd \
30004             platforms/redhat/bacula-sd \
30005             platforms/redhat/bacula-dir \
30006             platforms/redhat/bacula.spec \
30007             "
30008   ;;
30009 mandrake)
30010         DISTVER=`cat /etc/mandrake-release | grep release |\
30011            cut -f 5 -d ' '`
30012         TAPEDRIVE="/dev/nst0"
30013         PSCMD="ps -e -o pid,command"
30014         PFILES="${PFILES} \
30015             platforms/mandrake/Makefile \
30016             platforms/mandrake/bacula-fd \
30017             platforms/mandrake/bacula-sd \
30018             platforms/mandrake/bacula-dir \
30019             platforms/mandrake/bacula.spec \
30020             "
30021   ;;
30022 gentoo)
30023         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30024         TAPEDRIVE="/dev/nst0"
30025         PSCMD="ps -e -o pid,command"
30026         PFILES="${PFILES} \
30027             platforms/gentoo/Makefile \
30028          platforms/gentoo/bacula-init \
30029             platforms/gentoo/bacula-fd \
30030             platforms/gentoo/bacula-sd \
30031             platforms/gentoo/bacula-dir"
30032   ;;
30033 slackware)
30034         DISTVER=`cat /etc/slackware-version`
30035         TAPEDRIVE="/dev/nst0"
30036         PSCMD="ps -e -o pid,command"
30037         PFILES="${PFILES} \
30038             platforms/slackware/Makefile \
30039             platforms/slackware/rc.bacula-fd \
30040             platforms/slackware/rc.bacula-sd \
30041             platforms/slackware/rc.bacula-dir\
30042             platforms/slackware/functions.bacula"
30043   ;;
30044 solaris)
30045         DISTVER=`uname -r`
30046         TAPEDRIVE="/dev/rmt/0cbn"
30047         PSCMD="ps -e -o pid,comm"
30048         PFILES="${PFILES} \
30049             platforms/solaris/Makefile \
30050             platforms/solaris/bacula-fd \
30051             platforms/solaris/bacula-sd \
30052             platforms/solaris/bacula-dir"
30053         if test x$DISTVER = x5.6 ; then
30054             cat >>confdefs.h <<\_ACEOF
30055 #define HAVE_OLD_SOCKOPT 1
30056 _ACEOF
30057
30058         fi
30059         LIBS="$LIBS -lresolv"
30060   ;;
30061 suse)
30062         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30063             cut -f 3 -d ' '`
30064         TAPEDRIVE="/dev/nst0"
30065         PSCMD="ps -e -o pid,command"
30066         PFILES="${PFILES} \
30067             platforms/suse/Makefile \
30068             platforms/suse/bacula-fd \
30069             platforms/suse/bacula-sd \
30070             platforms/suse/bacula-dir \
30071             platforms/suse/bacula \
30072             platforms/suse/bacula.spec"
30073   ;;
30074 suse5)
30075         DISTNAME=suse
30076         DISTVER=5.x
30077         TAPEDRIVE="/dev/nst0"
30078         PSCMD="ps -e -o pid,command"
30079         PFILES="${PFILES} \
30080             platforms/suse/Makefile \
30081             platforms/suse/bacula-fd \
30082             platforms/suse/bacula-sd \
30083             platforms/suse/bacula-dir"
30084   ;;
30085 unknown)
30086         DISTVER=unknown
30087         TAPEDRIVE="/dev/nst0"
30088   ;;
30089 *)
30090   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30091   ;;
30092 esac
30093
30094
30095
30096 LIBS="$PTHREAD_LIB $LIBS"
30097
30098 cat >>confdefs.h <<_ACEOF
30099 #define lld "$lld"
30100 _ACEOF
30101
30102 cat >>confdefs.h <<_ACEOF
30103 #define llu "$llu"
30104 _ACEOF
30105
30106
30107
30108
30109
30110
30111
30112
30113 MCOMMON=./autoconf/Make.common
30114
30115
30116 if test "x${subsysdir}" = "x${sbindir}" ; then
30117    echo " "
30118    echo " "
30119    echo "You have set both --sbindir and --with-subsys-dir"
30120    echo "  equal to: ${subsysdir} "
30121    echo "This is not permitted. Please reconfigure."
30122    echo " "
30123    echo "Aborting configuration ..."
30124    echo " "
30125    echo " "
30126    exit 1
30127 fi
30128
30129 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30130
30131 ac_config_commands="$ac_config_commands default"
30132
30133 cat >confcache <<\_ACEOF
30134 # This file is a shell script that caches the results of configure
30135 # tests run on this system so they can be shared between configure
30136 # scripts and configure runs, see configure's option --config-cache.
30137 # It is not useful on other systems.  If it contains results you don't
30138 # want to keep, you may remove or edit it.
30139 #
30140 # config.status only pays attention to the cache file if you give it
30141 # the --recheck option to rerun configure.
30142 #
30143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30145 # following values.
30146
30147 _ACEOF
30148
30149 # The following way of writing the cache mishandles newlines in values,
30150 # but we know of no workaround that is simple, portable, and efficient.
30151 # So, we kill variables containing newlines.
30152 # Ultrix sh set writes to stderr and can't be redirected directly,
30153 # and sets the high bit in the cache file unless we assign to the vars.
30154 (
30155   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30156     eval ac_val=\$$ac_var
30157     case $ac_val in #(
30158     *${as_nl}*)
30159       case $ac_var in #(
30160       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30161 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30162       esac
30163       case $ac_var in #(
30164       _ | IFS | as_nl) ;; #(
30165       *) $as_unset $ac_var ;;
30166       esac ;;
30167     esac
30168   done
30169
30170   (set) 2>&1 |
30171     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30172     *${as_nl}ac_space=\ *)
30173       # `set' does not quote correctly, so add quotes (double-quote
30174       # substitution turns \\\\ into \\, and sed turns \\ into \).
30175       sed -n \
30176         "s/'/'\\\\''/g;
30177           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30178       ;; #(
30179     *)
30180       # `set' quotes correctly as required by POSIX, so do not add quotes.
30181       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30182       ;;
30183     esac |
30184     sort
30185 ) |
30186   sed '
30187      /^ac_cv_env_/b end
30188      t clear
30189      :clear
30190      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30191      t end
30192      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30193      :end' >>confcache
30194 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30195   if test -w "$cache_file"; then
30196     test "x$cache_file" != "x/dev/null" &&
30197       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30198 echo "$as_me: updating cache $cache_file" >&6;}
30199     cat confcache >$cache_file
30200   else
30201     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30202 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30203   fi
30204 fi
30205 rm -f confcache
30206
30207 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30208 # Let make expand exec_prefix.
30209 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30210
30211 DEFS=-DHAVE_CONFIG_H
30212
30213 ac_libobjs=
30214 ac_ltlibobjs=
30215 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30216   # 1. Remove the extension, and $U if already installed.
30217   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30218   ac_i=`echo "$ac_i" | sed "$ac_script"`
30219   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30220   #    will be set to the directory where LIBOBJS objects are built.
30221   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30222   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30223 done
30224 LIBOBJS=$ac_libobjs
30225
30226 LTLIBOBJS=$ac_ltlibobjs
30227
30228
30229
30230 : ${CONFIG_STATUS=./config.status}
30231 ac_clean_files_save=$ac_clean_files
30232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30235 cat >$CONFIG_STATUS <<_ACEOF
30236 #! $SHELL
30237 # Generated by $as_me.
30238 # Run this file to recreate the current configuration.
30239 # Compiler output produced by configure, useful for debugging
30240 # configure, is in config.log if it exists.
30241
30242 debug=false
30243 ac_cs_recheck=false
30244 ac_cs_silent=false
30245 SHELL=\${CONFIG_SHELL-$SHELL}
30246 _ACEOF
30247
30248 cat >>$CONFIG_STATUS <<\_ACEOF
30249 ## --------------------- ##
30250 ## M4sh Initialization.  ##
30251 ## --------------------- ##
30252
30253 # Be more Bourne compatible
30254 DUALCASE=1; export DUALCASE # for MKS sh
30255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30256   emulate sh
30257   NULLCMD=:
30258   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30259   # is contrary to our usage.  Disable this feature.
30260   alias -g '${1+"$@"}'='"$@"'
30261   setopt NO_GLOB_SUBST
30262 else
30263   case `(set -o) 2>/dev/null` in
30264   *posix*) set -o posix ;;
30265 esac
30266
30267 fi
30268
30269
30270
30271
30272 # PATH needs CR
30273 # Avoid depending upon Character Ranges.
30274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30277 as_cr_digits='0123456789'
30278 as_cr_alnum=$as_cr_Letters$as_cr_digits
30279
30280 # The user is always right.
30281 if test "${PATH_SEPARATOR+set}" != set; then
30282   echo "#! /bin/sh" >conf$$.sh
30283   echo  "exit 0"   >>conf$$.sh
30284   chmod +x conf$$.sh
30285   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30286     PATH_SEPARATOR=';'
30287   else
30288     PATH_SEPARATOR=:
30289   fi
30290   rm -f conf$$.sh
30291 fi
30292
30293 # Support unset when possible.
30294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30295   as_unset=unset
30296 else
30297   as_unset=false
30298 fi
30299
30300
30301 # IFS
30302 # We need space, tab and new line, in precisely that order.  Quoting is
30303 # there to prevent editors from complaining about space-tab.
30304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30305 # splitting by setting IFS to empty value.)
30306 as_nl='
30307 '
30308 IFS=" ""        $as_nl"
30309
30310 # Find who we are.  Look in the path if we contain no directory separator.
30311 case $0 in
30312   *[\\/]* ) as_myself=$0 ;;
30313   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30314 for as_dir in $PATH
30315 do
30316   IFS=$as_save_IFS
30317   test -z "$as_dir" && as_dir=.
30318   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30319 done
30320 IFS=$as_save_IFS
30321
30322      ;;
30323 esac
30324 # We did not find ourselves, most probably we were run as `sh COMMAND'
30325 # in which case we are not to be found in the path.
30326 if test "x$as_myself" = x; then
30327   as_myself=$0
30328 fi
30329 if test ! -f "$as_myself"; then
30330   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30331   { (exit 1); exit 1; }
30332 fi
30333
30334 # Work around bugs in pre-3.0 UWIN ksh.
30335 for as_var in ENV MAIL MAILPATH
30336 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30337 done
30338 PS1='$ '
30339 PS2='> '
30340 PS4='+ '
30341
30342 # NLS nuisances.
30343 for as_var in \
30344   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30345   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30346   LC_TELEPHONE LC_TIME
30347 do
30348   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30349     eval $as_var=C; export $as_var
30350   else
30351     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30352   fi
30353 done
30354
30355 # Required to use basename.
30356 if expr a : '\(a\)' >/dev/null 2>&1 &&
30357    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30358   as_expr=expr
30359 else
30360   as_expr=false
30361 fi
30362
30363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30364   as_basename=basename
30365 else
30366   as_basename=false
30367 fi
30368
30369
30370 # Name of the executable.
30371 as_me=`$as_basename -- "$0" ||
30372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30373          X"$0" : 'X\(//\)$' \| \
30374          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30375 echo X/"$0" |
30376     sed '/^.*\/\([^/][^/]*\)\/*$/{
30377             s//\1/
30378             q
30379           }
30380           /^X\/\(\/\/\)$/{
30381             s//\1/
30382             q
30383           }
30384           /^X\/\(\/\).*/{
30385             s//\1/
30386             q
30387           }
30388           s/.*/./; q'`
30389
30390 # CDPATH.
30391 $as_unset CDPATH
30392
30393
30394
30395   as_lineno_1=$LINENO
30396   as_lineno_2=$LINENO
30397   test "x$as_lineno_1" != "x$as_lineno_2" &&
30398   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30399
30400   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30401   # uniformly replaced by the line number.  The first 'sed' inserts a
30402   # line-number line after each line using $LINENO; the second 'sed'
30403   # does the real work.  The second script uses 'N' to pair each
30404   # line-number line with the line containing $LINENO, and appends
30405   # trailing '-' during substitution so that $LINENO is not a special
30406   # case at line end.
30407   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30408   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30409   # E. McMahon (1931-1989) for sed's syntax.  :-)
30410   sed -n '
30411     p
30412     /[$]LINENO/=
30413   ' <$as_myself |
30414     sed '
30415       s/[$]LINENO.*/&-/
30416       t lineno
30417       b
30418       :lineno
30419       N
30420       :loop
30421       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30422       t loop
30423       s/-\n.*//
30424     ' >$as_me.lineno &&
30425   chmod +x "$as_me.lineno" ||
30426     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30427    { (exit 1); exit 1; }; }
30428
30429   # Don't try to exec as it changes $[0], causing all sort of problems
30430   # (the dirname of $[0] is not the place where we might find the
30431   # original and so on.  Autoconf is especially sensitive to this).
30432   . "./$as_me.lineno"
30433   # Exit status is that of the last command.
30434   exit
30435 }
30436
30437
30438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30439   as_dirname=dirname
30440 else
30441   as_dirname=false
30442 fi
30443
30444 ECHO_C= ECHO_N= ECHO_T=
30445 case `echo -n x` in
30446 -n*)
30447   case `echo 'x\c'` in
30448   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30449   *)   ECHO_C='\c';;
30450   esac;;
30451 *)
30452   ECHO_N='-n';;
30453 esac
30454
30455 if expr a : '\(a\)' >/dev/null 2>&1 &&
30456    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30457   as_expr=expr
30458 else
30459   as_expr=false
30460 fi
30461
30462 rm -f conf$$ conf$$.exe conf$$.file
30463 if test -d conf$$.dir; then
30464   rm -f conf$$.dir/conf$$.file
30465 else
30466   rm -f conf$$.dir
30467   mkdir conf$$.dir
30468 fi
30469 echo >conf$$.file
30470 if ln -s conf$$.file conf$$ 2>/dev/null; then
30471   as_ln_s='ln -s'
30472   # ... but there are two gotchas:
30473   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30474   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30475   # In both cases, we have to default to `cp -p'.
30476   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30477     as_ln_s='cp -p'
30478 elif ln conf$$.file conf$$ 2>/dev/null; then
30479   as_ln_s=ln
30480 else
30481   as_ln_s='cp -p'
30482 fi
30483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30484 rmdir conf$$.dir 2>/dev/null
30485
30486 if mkdir -p . 2>/dev/null; then
30487   as_mkdir_p=:
30488 else
30489   test -d ./-p && rmdir ./-p
30490   as_mkdir_p=false
30491 fi
30492
30493 if test -x / >/dev/null 2>&1; then
30494   as_test_x='test -x'
30495 else
30496   if ls -dL / >/dev/null 2>&1; then
30497     as_ls_L_option=L
30498   else
30499     as_ls_L_option=
30500   fi
30501   as_test_x='
30502     eval sh -c '\''
30503       if test -d "$1"; then
30504         test -d "$1/.";
30505       else
30506         case $1 in
30507         -*)set "./$1";;
30508         esac;
30509         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30510         ???[sx]*):;;*)false;;esac;fi
30511     '\'' sh
30512   '
30513 fi
30514 as_executable_p=$as_test_x
30515
30516 # Sed expression to map a string onto a valid CPP name.
30517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30518
30519 # Sed expression to map a string onto a valid variable name.
30520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30521
30522
30523 exec 6>&1
30524
30525 # Save the log message, to keep $[0] and so on meaningful, and to
30526 # report actual input values of CONFIG_FILES etc. instead of their
30527 # values after options handling.
30528 ac_log="
30529 This file was extended by $as_me, which was
30530 generated by GNU Autoconf 2.61.  Invocation command line was
30531
30532   CONFIG_FILES    = $CONFIG_FILES
30533   CONFIG_HEADERS  = $CONFIG_HEADERS
30534   CONFIG_LINKS    = $CONFIG_LINKS
30535   CONFIG_COMMANDS = $CONFIG_COMMANDS
30536   $ $0 $@
30537
30538 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30539 "
30540
30541 _ACEOF
30542
30543 cat >>$CONFIG_STATUS <<_ACEOF
30544 # Files that config.status was made for.
30545 config_files="$ac_config_files"
30546 config_headers="$ac_config_headers"
30547 config_commands="$ac_config_commands"
30548
30549 _ACEOF
30550
30551 cat >>$CONFIG_STATUS <<\_ACEOF
30552 ac_cs_usage="\
30553 \`$as_me' instantiates files from templates according to the
30554 current configuration.
30555
30556 Usage: $0 [OPTIONS] [FILE]...
30557
30558   -h, --help       print this help, then exit
30559   -V, --version    print version number and configuration settings, then exit
30560   -q, --quiet      do not print progress messages
30561   -d, --debug      don't remove temporary files
30562       --recheck    update $as_me by reconfiguring in the same conditions
30563   --file=FILE[:TEMPLATE]
30564                    instantiate the configuration file FILE
30565   --header=FILE[:TEMPLATE]
30566                    instantiate the configuration header FILE
30567
30568 Configuration files:
30569 $config_files
30570
30571 Configuration headers:
30572 $config_headers
30573
30574 Configuration commands:
30575 $config_commands
30576
30577 Report bugs to <bug-autoconf@gnu.org>."
30578
30579 _ACEOF
30580 cat >>$CONFIG_STATUS <<_ACEOF
30581 ac_cs_version="\\
30582 config.status
30583 configured by $0, generated by GNU Autoconf 2.61,
30584   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30585
30586 Copyright (C) 2006 Free Software Foundation, Inc.
30587 This config.status script is free software; the Free Software Foundation
30588 gives unlimited permission to copy, distribute and modify it."
30589
30590 ac_pwd='$ac_pwd'
30591 srcdir='$srcdir'
30592 INSTALL='$INSTALL'
30593 _ACEOF
30594
30595 cat >>$CONFIG_STATUS <<\_ACEOF
30596 # If no file are specified by the user, then we need to provide default
30597 # value.  By we need to know if files were specified by the user.
30598 ac_need_defaults=:
30599 while test $# != 0
30600 do
30601   case $1 in
30602   --*=*)
30603     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30604     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30605     ac_shift=:
30606     ;;
30607   *)
30608     ac_option=$1
30609     ac_optarg=$2
30610     ac_shift=shift
30611     ;;
30612   esac
30613
30614   case $ac_option in
30615   # Handling of the options.
30616   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30617     ac_cs_recheck=: ;;
30618   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30619     echo "$ac_cs_version"; exit ;;
30620   --debug | --debu | --deb | --de | --d | -d )
30621     debug=: ;;
30622   --file | --fil | --fi | --f )
30623     $ac_shift
30624     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30625     ac_need_defaults=false;;
30626   --header | --heade | --head | --hea )
30627     $ac_shift
30628     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30629     ac_need_defaults=false;;
30630   --he | --h)
30631     # Conflict between --help and --header
30632     { echo "$as_me: error: ambiguous option: $1
30633 Try \`$0 --help' for more information." >&2
30634    { (exit 1); exit 1; }; };;
30635   --help | --hel | -h )
30636     echo "$ac_cs_usage"; exit ;;
30637   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30638   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30639     ac_cs_silent=: ;;
30640
30641   # This is an error.
30642   -*) { echo "$as_me: error: unrecognized option: $1
30643 Try \`$0 --help' for more information." >&2
30644    { (exit 1); exit 1; }; } ;;
30645
30646   *) ac_config_targets="$ac_config_targets $1"
30647      ac_need_defaults=false ;;
30648
30649   esac
30650   shift
30651 done
30652
30653 ac_configure_extra_args=
30654
30655 if $ac_cs_silent; then
30656   exec 6>/dev/null
30657   ac_configure_extra_args="$ac_configure_extra_args --silent"
30658 fi
30659
30660 _ACEOF
30661 cat >>$CONFIG_STATUS <<_ACEOF
30662 if \$ac_cs_recheck; then
30663   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30664   CONFIG_SHELL=$SHELL
30665   export CONFIG_SHELL
30666   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30667 fi
30668
30669 _ACEOF
30670 cat >>$CONFIG_STATUS <<\_ACEOF
30671 exec 5>>config.log
30672 {
30673   echo
30674   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30675 ## Running $as_me. ##
30676 _ASBOX
30677   echo "$ac_log"
30678 } >&5
30679
30680 _ACEOF
30681 cat >>$CONFIG_STATUS <<_ACEOF
30682 #
30683 # INIT-COMMANDS
30684 #
30685 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30686     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30687     # from automake.
30688     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30689     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30690     LINGUAS="${LINGUAS-%UNSET%}"
30691
30692
30693 _ACEOF
30694
30695 cat >>$CONFIG_STATUS <<\_ACEOF
30696
30697 # Handling of arguments.
30698 for ac_config_target in $ac_config_targets
30699 do
30700   case $ac_config_target in
30701     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30702     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30703     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30704     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30705     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30706     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30707     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30708     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30709     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30710     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30711     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30712     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30713     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30714     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30715     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30716     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30717     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30718     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30719     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30720     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30721     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30722     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30723     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30724     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30725     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30726     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30727     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30728     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30729     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30730     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30731     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30732     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30733     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30734     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30735     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30736     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30737     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30738     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30739     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30740     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30741     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30742     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30743     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30744     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30745     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30746     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30747     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30748     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30749     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30750     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30751     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30752     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30753     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30754     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30755     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30756     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30757     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30758     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30759     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30760     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30761     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30762     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30763     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30764     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30765     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30766     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30767     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30768     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30769     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30770     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30771     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30772     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30773     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30774     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30775     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30776     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30777     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30778     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30779     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30780     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30781     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30782     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30783     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30784     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30785     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30786     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30787     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30788     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30789     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30790     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30791     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30792     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30793     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30794     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30795     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30796     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30797     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30798     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30799     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30800     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30801     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30802     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30803     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30804     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30805     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30806     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30807
30808   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30809 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30810    { (exit 1); exit 1; }; };;
30811   esac
30812 done
30813
30814
30815 # If the user did not use the arguments to specify the items to instantiate,
30816 # then the envvar interface is used.  Set only those that are not.
30817 # We use the long form for the default assignment because of an extremely
30818 # bizarre bug on SunOS 4.1.3.
30819 if $ac_need_defaults; then
30820   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30821   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30822   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30823 fi
30824
30825 # Have a temporary directory for convenience.  Make it in the build tree
30826 # simply because there is no reason against having it here, and in addition,
30827 # creating and moving files from /tmp can sometimes cause problems.
30828 # Hook for its removal unless debugging.
30829 # Note that there is a small window in which the directory will not be cleaned:
30830 # after its creation but before its name has been assigned to `$tmp'.
30831 $debug ||
30832 {
30833   tmp=
30834   trap 'exit_status=$?
30835   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30836 ' 0
30837   trap '{ (exit 1); exit 1; }' 1 2 13 15
30838 }
30839 # Create a (secure) tmp directory for tmp files.
30840
30841 {
30842   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30843   test -n "$tmp" && test -d "$tmp"
30844 }  ||
30845 {
30846   tmp=./conf$$-$RANDOM
30847   (umask 077 && mkdir "$tmp")
30848 } ||
30849 {
30850    echo "$me: cannot create a temporary directory in ." >&2
30851    { (exit 1); exit 1; }
30852 }
30853
30854 #
30855 # Set up the sed scripts for CONFIG_FILES section.
30856 #
30857
30858 # No need to generate the scripts if there are no CONFIG_FILES.
30859 # This happens for instance when ./config.status config.h
30860 if test -n "$CONFIG_FILES"; then
30861
30862 _ACEOF
30863
30864 # Create sed commands to just substitute file output variables.
30865
30866 # Remaining file output variables are in a fragment that also has non-file
30867 # output varibles.
30868
30869
30870
30871 ac_delim='%!_!# '
30872 for ac_last_try in false false false false false :; do
30873   cat >conf$$subs.sed <<_ACEOF
30874 SHELL!$SHELL$ac_delim
30875 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30876 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30877 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30878 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30879 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30880 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30881 exec_prefix!$exec_prefix$ac_delim
30882 prefix!$prefix$ac_delim
30883 program_transform_name!$program_transform_name$ac_delim
30884 bindir!$bindir$ac_delim
30885 sbindir!$sbindir$ac_delim
30886 libexecdir!$libexecdir$ac_delim
30887 datarootdir!$datarootdir$ac_delim
30888 datadir!$datadir$ac_delim
30889 sysconfdir!$sysconfdir$ac_delim
30890 sharedstatedir!$sharedstatedir$ac_delim
30891 localstatedir!$localstatedir$ac_delim
30892 includedir!$includedir$ac_delim
30893 oldincludedir!$oldincludedir$ac_delim
30894 docdir!$docdir$ac_delim
30895 infodir!$infodir$ac_delim
30896 htmldir!$htmldir$ac_delim
30897 dvidir!$dvidir$ac_delim
30898 pdfdir!$pdfdir$ac_delim
30899 psdir!$psdir$ac_delim
30900 libdir!$libdir$ac_delim
30901 localedir!$localedir$ac_delim
30902 mandir!$mandir$ac_delim
30903 DEFS!$DEFS$ac_delim
30904 ECHO_C!$ECHO_C$ac_delim
30905 ECHO_N!$ECHO_N$ac_delim
30906 ECHO_T!$ECHO_T$ac_delim
30907 LIBS!$LIBS$ac_delim
30908 build_alias!$build_alias$ac_delim
30909 host_alias!$host_alias$ac_delim
30910 target_alias!$target_alias$ac_delim
30911 BUILD_DIR!$BUILD_DIR$ac_delim
30912 TOP_DIR!$TOP_DIR$ac_delim
30913 TRUEPRG!$TRUEPRG$ac_delim
30914 FALSEPRG!$FALSEPRG$ac_delim
30915 VERSION!$VERSION$ac_delim
30916 DATE!$DATE$ac_delim
30917 LSMDATE!$LSMDATE$ac_delim
30918 CC!$CC$ac_delim
30919 CFLAGS!$CFLAGS$ac_delim
30920 LDFLAGS!$LDFLAGS$ac_delim
30921 CPPFLAGS!$CPPFLAGS$ac_delim
30922 ac_ct_CC!$ac_ct_CC$ac_delim
30923 EXEEXT!$EXEEXT$ac_delim
30924 OBJEXT!$OBJEXT$ac_delim
30925 CXX!$CXX$ac_delim
30926 CXXFLAGS!$CXXFLAGS$ac_delim
30927 ac_ct_CXX!$ac_ct_CXX$ac_delim
30928 CPP!$CPP$ac_delim
30929 GREP!$GREP$ac_delim
30930 EGREP!$EGREP$ac_delim
30931 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30932 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30933 INSTALL_DATA!$INSTALL_DATA$ac_delim
30934 RANLIB!$RANLIB$ac_delim
30935 MV!$MV$ac_delim
30936 RM!$RM$ac_delim
30937 CP!$CP$ac_delim
30938 SED!$SED$ac_delim
30939 ECHO!$ECHO$ac_delim
30940 CMP!$CMP$ac_delim
30941 TBL!$TBL$ac_delim
30942 AR!$AR$ac_delim
30943 OPENSSL!$OPENSSL$ac_delim
30944 MTX!$MTX$ac_delim
30945 DD!$DD$ac_delim
30946 MKISOFS!$MKISOFS$ac_delim
30947 PYTHON!$PYTHON$ac_delim
30948 GROWISOFS!$GROWISOFS$ac_delim
30949 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30950 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30951 PKGCONFIG!$PKGCONFIG$ac_delim
30952 QMAKE!$QMAKE$ac_delim
30953 QMAKEQT4!$QMAKEQT4$ac_delim
30954 WXCONFIG!$WXCONFIG$ac_delim
30955 WXFLAGS!$WXFLAGS$ac_delim
30956 CDRECORD!$CDRECORD$ac_delim
30957 PIDOF!$PIDOF$ac_delim
30958 AWK!$AWK$ac_delim
30959 ARFLAGS!$ARFLAGS$ac_delim
30960 MAKE_SHELL!$MAKE_SHELL$ac_delim
30961 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30962 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30963 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30964 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30965 build!$build$ac_delim
30966 build_cpu!$build_cpu$ac_delim
30967 build_vendor!$build_vendor$ac_delim
30968 _ACEOF
30969
30970   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30971     break
30972   elif $ac_last_try; then
30973     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30974 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30975    { (exit 1); exit 1; }; }
30976   else
30977     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30978   fi
30979 done
30980
30981 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30982 if test -n "$ac_eof"; then
30983   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30984   ac_eof=`expr $ac_eof + 1`
30985 fi
30986
30987 cat >>$CONFIG_STATUS <<_ACEOF
30988 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30990 /^[      ]*@MCOMMON@[    ]*$/{
30991 r $MCOMMON
30992 d
30993 }
30994 _ACEOF
30995 sed '
30996 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30997 s/^/s,@/; s/!/@,|#_!!_#|/
30998 :n
30999 t n
31000 s/'"$ac_delim"'$/,g/; t
31001 s/$/\\/; p
31002 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31003 ' >>$CONFIG_STATUS <conf$$subs.sed
31004 rm -f conf$$subs.sed
31005 cat >>$CONFIG_STATUS <<_ACEOF
31006 CEOF$ac_eof
31007 _ACEOF
31008
31009
31010 ac_delim='%!_!# '
31011 for ac_last_try in false false false false false :; do
31012   cat >conf$$subs.sed <<_ACEOF
31013 build_os!$build_os$ac_delim
31014 host!$host$ac_delim
31015 host_cpu!$host_cpu$ac_delim
31016 host_vendor!$host_vendor$ac_delim
31017 host_os!$host_os$ac_delim
31018 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31019 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31020 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31021 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31022 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31023 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31024 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31025 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31026 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31027 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31028 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31029 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31030 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31031 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31032 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31033 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31034 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31035 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31036 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31037 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31038 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31039 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31040 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31041 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31042 SET_MAKE!$SET_MAKE$ac_delim
31043 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31044 USE_NLS!$USE_NLS$ac_delim
31045 MSGFMT!$MSGFMT$ac_delim
31046 GMSGFMT!$GMSGFMT$ac_delim
31047 XGETTEXT!$XGETTEXT$ac_delim
31048 MSGMERGE!$MSGMERGE$ac_delim
31049 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31050 LIBICONV!$LIBICONV$ac_delim
31051 LTLIBICONV!$LTLIBICONV$ac_delim
31052 INTLLIBS!$INTLLIBS$ac_delim
31053 LIBINTL!$LIBINTL$ac_delim
31054 LTLIBINTL!$LTLIBINTL$ac_delim
31055 POSUB!$POSUB$ac_delim
31056 GLIBC2!$GLIBC2$ac_delim
31057 ALLOCA!$ALLOCA$ac_delim
31058 GLIBC21!$GLIBC21$ac_delim
31059 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31060 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31061 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31062 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31063 INTLBISON!$INTLBISON$ac_delim
31064 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31065 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31066 CATOBJEXT!$CATOBJEXT$ac_delim
31067 DATADIRNAME!$DATADIRNAME$ac_delim
31068 INSTOBJEXT!$INSTOBJEXT$ac_delim
31069 GENCAT!$GENCAT$ac_delim
31070 INTLOBJS!$INTLOBJS$ac_delim
31071 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31072 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31073 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31074 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31075 GNOME_LIBS!$GNOME_LIBS$ac_delim
31076 GNOME_DIR!$GNOME_DIR$ac_delim
31077 BAT_DIR!$BAT_DIR$ac_delim
31078 QWT_INC!$QWT_INC$ac_delim
31079 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31080 QWT_LIB!$QWT_LIB$ac_delim
31081 QWT!$QWT$ac_delim
31082 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31083 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31084 WX_DIR!$WX_DIR$ac_delim
31085 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31086 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31087 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31088 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31089 STATIC_FD!$STATIC_FD$ac_delim
31090 STATIC_SD!$STATIC_SD$ac_delim
31091 STATIC_DIR!$STATIC_DIR$ac_delim
31092 STATIC_CONS!$STATIC_CONS$ac_delim
31093 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31094 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31095 ALL_DIRS!$ALL_DIRS$ac_delim
31096 DIRD_DIR!$DIRD_DIR$ac_delim
31097 DIR_TOOLS!$DIR_TOOLS$ac_delim
31098 STORED_DIR!$STORED_DIR$ac_delim
31099 CONS_INC!$CONS_INC$ac_delim
31100 CONS_OBJ!$CONS_OBJ$ac_delim
31101 CONS_SRC!$CONS_SRC$ac_delim
31102 CONS_LIBS!$CONS_LIBS$ac_delim
31103 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31104 READLINE_SRC!$READLINE_SRC$ac_delim
31105 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31106 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31107 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31108 OPENSSL_INC!$OPENSSL_INC$ac_delim
31109 working_dir!$working_dir$ac_delim
31110 _ACEOF
31111
31112   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31113     break
31114   elif $ac_last_try; then
31115     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31116 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31117    { (exit 1); exit 1; }; }
31118   else
31119     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31120   fi
31121 done
31122
31123 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31124 if test -n "$ac_eof"; then
31125   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31126   ac_eof=`expr $ac_eof + 1`
31127 fi
31128
31129 cat >>$CONFIG_STATUS <<_ACEOF
31130 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31132 _ACEOF
31133 sed '
31134 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31135 s/^/s,@/; s/!/@,|#_!!_#|/
31136 :n
31137 t n
31138 s/'"$ac_delim"'$/,g/; t
31139 s/$/\\/; p
31140 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31141 ' >>$CONFIG_STATUS <conf$$subs.sed
31142 rm -f conf$$subs.sed
31143 cat >>$CONFIG_STATUS <<_ACEOF
31144 CEOF$ac_eof
31145 _ACEOF
31146
31147
31148 ac_delim='%!_!# '
31149 for ac_last_try in false false false false false :; do
31150   cat >conf$$subs.sed <<_ACEOF
31151 archivedir!$archivedir$ac_delim
31152 scriptdir!$scriptdir$ac_delim
31153 dump_email!$dump_email$ac_delim
31154 job_email!$job_email$ac_delim
31155 smtp_host!$smtp_host$ac_delim
31156 piddir!$piddir$ac_delim
31157 subsysdir!$subsysdir$ac_delim
31158 baseport!$baseport$ac_delim
31159 dir_port!$dir_port$ac_delim
31160 fd_port!$fd_port$ac_delim
31161 sd_port!$sd_port$ac_delim
31162 dir_password!$dir_password$ac_delim
31163 fd_password!$fd_password$ac_delim
31164 sd_password!$sd_password$ac_delim
31165 mon_dir_password!$mon_dir_password$ac_delim
31166 mon_fd_password!$mon_fd_password$ac_delim
31167 mon_sd_password!$mon_sd_password$ac_delim
31168 db_name!$db_name$ac_delim
31169 db_user!$db_user$ac_delim
31170 db_password!$db_password$ac_delim
31171 dir_user!$dir_user$ac_delim
31172 dir_group!$dir_group$ac_delim
31173 sd_user!$sd_user$ac_delim
31174 sd_group!$sd_group$ac_delim
31175 fd_user!$fd_user$ac_delim
31176 fd_group!$fd_group$ac_delim
31177 SBINPERM!$SBINPERM$ac_delim
31178 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31179 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31180 SQL_BINDIR!$SQL_BINDIR$ac_delim
31181 cats!$cats$ac_delim
31182 DB_TYPE!$DB_TYPE$ac_delim
31183 GETCONF!$GETCONF$ac_delim
31184 XMKMF!$XMKMF$ac_delim
31185 X_CFLAGS!$X_CFLAGS$ac_delim
31186 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31187 X_LIBS!$X_LIBS$ac_delim
31188 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31189 LIBOBJS!$LIBOBJS$ac_delim
31190 FDLIBS!$FDLIBS$ac_delim
31191 DEBUG!$DEBUG$ac_delim
31192 DINCLUDE!$DINCLUDE$ac_delim
31193 DLIB!$DLIB$ac_delim
31194 DB_LIBS!$DB_LIBS$ac_delim
31195 WCFLAGS!$WCFLAGS$ac_delim
31196 WLDFLAGS!$WLDFLAGS$ac_delim
31197 WRAPLIBS!$WRAPLIBS$ac_delim
31198 OBJLIST!$OBJLIST$ac_delim
31199 hostname!$hostname$ac_delim
31200 TAPEDRIVE!$TAPEDRIVE$ac_delim
31201 PSCMD!$PSCMD$ac_delim
31202 WIN32!$WIN32$ac_delim
31203 MACOSX!$MACOSX$ac_delim
31204 DISTNAME!$DISTNAME$ac_delim
31205 DISTVER!$DISTVER$ac_delim
31206 LTLIBOBJS!$LTLIBOBJS$ac_delim
31207 _ACEOF
31208
31209   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
31210     break
31211   elif $ac_last_try; then
31212     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31213 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31214    { (exit 1); exit 1; }; }
31215   else
31216     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31217   fi
31218 done
31219
31220 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31221 if test -n "$ac_eof"; then
31222   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31223   ac_eof=`expr $ac_eof + 1`
31224 fi
31225
31226 cat >>$CONFIG_STATUS <<_ACEOF
31227 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31229 _ACEOF
31230 sed '
31231 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31232 s/^/s,@/; s/!/@,|#_!!_#|/
31233 :n
31234 t n
31235 s/'"$ac_delim"'$/,g/; t
31236 s/$/\\/; p
31237 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31238 ' >>$CONFIG_STATUS <conf$$subs.sed
31239 rm -f conf$$subs.sed
31240 cat >>$CONFIG_STATUS <<_ACEOF
31241 :end
31242 s/|#_!!_#|//g
31243 CEOF$ac_eof
31244 _ACEOF
31245
31246
31247 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31248 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31249 # trailing colons and then remove the whole line if VPATH becomes empty
31250 # (actually we leave an empty line to preserve line numbers).
31251 if test "x$srcdir" = x.; then
31252   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31253 s/:*\$(srcdir):*/:/
31254 s/:*\${srcdir}:*/:/
31255 s/:*@srcdir@:*/:/
31256 s/^\([^=]*=[     ]*\):*/\1/
31257 s/:*$//
31258 s/^[^=]*=[       ]*$//
31259 }'
31260 fi
31261
31262 cat >>$CONFIG_STATUS <<\_ACEOF
31263 fi # test -n "$CONFIG_FILES"
31264
31265
31266 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31267 do
31268   case $ac_tag in
31269   :[FHLC]) ac_mode=$ac_tag; continue;;
31270   esac
31271   case $ac_mode$ac_tag in
31272   :[FHL]*:*);;
31273   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31274 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31275    { (exit 1); exit 1; }; };;
31276   :[FH]-) ac_tag=-:-;;
31277   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31278   esac
31279   ac_save_IFS=$IFS
31280   IFS=:
31281   set x $ac_tag
31282   IFS=$ac_save_IFS
31283   shift
31284   ac_file=$1
31285   shift
31286
31287   case $ac_mode in
31288   :L) ac_source=$1;;
31289   :[FH])
31290     ac_file_inputs=
31291     for ac_f
31292     do
31293       case $ac_f in
31294       -) ac_f="$tmp/stdin";;
31295       *) # Look for the file first in the build tree, then in the source tree
31296          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31297          # because $ac_f cannot contain `:'.
31298          test -f "$ac_f" ||
31299            case $ac_f in
31300            [\\/$]*) false;;
31301            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31302            esac ||
31303            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31304 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31305    { (exit 1); exit 1; }; };;
31306       esac
31307       ac_file_inputs="$ac_file_inputs $ac_f"
31308     done
31309
31310     # Let's still pretend it is `configure' which instantiates (i.e., don't
31311     # use $as_me), people would be surprised to read:
31312     #    /* config.h.  Generated by config.status.  */
31313     configure_input="Generated from "`IFS=:
31314           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31315     if test x"$ac_file" != x-; then
31316       configure_input="$ac_file.  $configure_input"
31317       { echo "$as_me:$LINENO: creating $ac_file" >&5
31318 echo "$as_me: creating $ac_file" >&6;}
31319     fi
31320
31321     case $ac_tag in
31322     *:-:* | *:-) cat >"$tmp/stdin";;
31323     esac
31324     ;;
31325   esac
31326
31327   ac_dir=`$as_dirname -- "$ac_file" ||
31328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31329          X"$ac_file" : 'X\(//\)[^/]' \| \
31330          X"$ac_file" : 'X\(//\)$' \| \
31331          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31332 echo X"$ac_file" |
31333     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31334             s//\1/
31335             q
31336           }
31337           /^X\(\/\/\)[^/].*/{
31338             s//\1/
31339             q
31340           }
31341           /^X\(\/\/\)$/{
31342             s//\1/
31343             q
31344           }
31345           /^X\(\/\).*/{
31346             s//\1/
31347             q
31348           }
31349           s/.*/./; q'`
31350   { as_dir="$ac_dir"
31351   case $as_dir in #(
31352   -*) as_dir=./$as_dir;;
31353   esac
31354   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31355     as_dirs=
31356     while :; do
31357       case $as_dir in #(
31358       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31359       *) as_qdir=$as_dir;;
31360       esac
31361       as_dirs="'$as_qdir' $as_dirs"
31362       as_dir=`$as_dirname -- "$as_dir" ||
31363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31364          X"$as_dir" : 'X\(//\)[^/]' \| \
31365          X"$as_dir" : 'X\(//\)$' \| \
31366          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31367 echo X"$as_dir" |
31368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31369             s//\1/
31370             q
31371           }
31372           /^X\(\/\/\)[^/].*/{
31373             s//\1/
31374             q
31375           }
31376           /^X\(\/\/\)$/{
31377             s//\1/
31378             q
31379           }
31380           /^X\(\/\).*/{
31381             s//\1/
31382             q
31383           }
31384           s/.*/./; q'`
31385       test -d "$as_dir" && break
31386     done
31387     test -z "$as_dirs" || eval "mkdir $as_dirs"
31388   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31389 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31390    { (exit 1); exit 1; }; }; }
31391   ac_builddir=.
31392
31393 case "$ac_dir" in
31394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31395 *)
31396   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31397   # A ".." for each directory in $ac_dir_suffix.
31398   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31399   case $ac_top_builddir_sub in
31400   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31401   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31402   esac ;;
31403 esac
31404 ac_abs_top_builddir=$ac_pwd
31405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31406 # for backward compatibility:
31407 ac_top_builddir=$ac_top_build_prefix
31408
31409 case $srcdir in
31410   .)  # We are building in place.
31411     ac_srcdir=.
31412     ac_top_srcdir=$ac_top_builddir_sub
31413     ac_abs_top_srcdir=$ac_pwd ;;
31414   [\\/]* | ?:[\\/]* )  # Absolute name.
31415     ac_srcdir=$srcdir$ac_dir_suffix;
31416     ac_top_srcdir=$srcdir
31417     ac_abs_top_srcdir=$srcdir ;;
31418   *) # Relative name.
31419     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31420     ac_top_srcdir=$ac_top_build_prefix$srcdir
31421     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31422 esac
31423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31424
31425
31426   case $ac_mode in
31427   :F)
31428   #
31429   # CONFIG_FILE
31430   #
31431
31432   case $INSTALL in
31433   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31434   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31435   esac
31436 _ACEOF
31437
31438 cat >>$CONFIG_STATUS <<\_ACEOF
31439 # If the template does not know about datarootdir, expand it.
31440 # FIXME: This hack should be removed a few years after 2.60.
31441 ac_datarootdir_hack=; ac_datarootdir_seen=
31442
31443 case `sed -n '/datarootdir/ {
31444   p
31445   q
31446 }
31447 /@datadir@/p
31448 /@docdir@/p
31449 /@infodir@/p
31450 /@localedir@/p
31451 /@mandir@/p
31452 ' $ac_file_inputs` in
31453 *datarootdir*) ac_datarootdir_seen=yes;;
31454 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31455   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31456 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31457 _ACEOF
31458 cat >>$CONFIG_STATUS <<_ACEOF
31459   ac_datarootdir_hack='
31460   s&@datadir@&$datadir&g
31461   s&@docdir@&$docdir&g
31462   s&@infodir@&$infodir&g
31463   s&@localedir@&$localedir&g
31464   s&@mandir@&$mandir&g
31465     s&\\\${datarootdir}&$datarootdir&g' ;;
31466 esac
31467 _ACEOF
31468
31469 # Neutralize VPATH when `$srcdir' = `.'.
31470 # Shell code in configure.ac might set extrasub.
31471 # FIXME: do we really want to maintain this feature?
31472 cat >>$CONFIG_STATUS <<_ACEOF
31473   sed "$ac_vpsub
31474 $extrasub
31475 _ACEOF
31476 cat >>$CONFIG_STATUS <<\_ACEOF
31477 :t
31478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31479 s&@configure_input@&$configure_input&;t t
31480 s&@top_builddir@&$ac_top_builddir_sub&;t t
31481 s&@srcdir@&$ac_srcdir&;t t
31482 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31483 s&@top_srcdir@&$ac_top_srcdir&;t t
31484 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31485 s&@builddir@&$ac_builddir&;t t
31486 s&@abs_builddir@&$ac_abs_builddir&;t t
31487 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31488 s&@INSTALL@&$ac_INSTALL&;t t
31489 $ac_datarootdir_hack
31490 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31491
31492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31493   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31494   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31495   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31496 which seems to be undefined.  Please make sure it is defined." >&5
31497 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31498 which seems to be undefined.  Please make sure it is defined." >&2;}
31499
31500   rm -f "$tmp/stdin"
31501   case $ac_file in
31502   -) cat "$tmp/out"; rm -f "$tmp/out";;
31503   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31504   esac
31505  ;;
31506   :H)
31507   #
31508   # CONFIG_HEADER
31509   #
31510 _ACEOF
31511
31512 # Transform confdefs.h into a sed script `conftest.defines', that
31513 # substitutes the proper values into config.h.in to produce config.h.
31514 rm -f conftest.defines conftest.tail
31515 # First, append a space to every undef/define line, to ease matching.
31516 echo 's/$/ /' >conftest.defines
31517 # Then, protect against being on the right side of a sed subst, or in
31518 # an unquoted here document, in config.status.  If some macros were
31519 # called several times there might be several #defines for the same
31520 # symbol, which is useless.  But do not sort them, since the last
31521 # AC_DEFINE must be honored.
31522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31523 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31524 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31525 # PARAMS is the parameter list in the macro definition--in most cases, it's
31526 # just an empty string.
31527 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31528 ac_dB='\\)[      (].*,\\1define\\2'
31529 ac_dC=' '
31530 ac_dD=' ,'
31531
31532 uniq confdefs.h |
31533   sed -n '
31534         t rset
31535         :rset
31536         s/^[     ]*#[    ]*define[       ][      ]*//
31537         t ok
31538         d
31539         :ok
31540         s/[\\&,]/\\&/g
31541         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31542         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31543   ' >>conftest.defines
31544
31545 # Remove the space that was appended to ease matching.
31546 # Then replace #undef with comments.  This is necessary, for
31547 # example, in the case of _POSIX_SOURCE, which is predefined and required
31548 # on some systems where configure will not decide to define it.
31549 # (The regexp can be short, since the line contains either #define or #undef.)
31550 echo 's/ $//
31551 s,^[     #]*u.*,/* & */,' >>conftest.defines
31552
31553 # Break up conftest.defines:
31554 ac_max_sed_lines=50
31555
31556 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31557 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31558 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31559 # et cetera.
31560 ac_in='$ac_file_inputs'
31561 ac_out='"$tmp/out1"'
31562 ac_nxt='"$tmp/out2"'
31563
31564 while :
31565 do
31566   # Write a here document:
31567     cat >>$CONFIG_STATUS <<_ACEOF
31568     # First, check the format of the line:
31569     cat >"\$tmp/defines.sed" <<\\CEOF
31570 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31571 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31572 b
31573 :def
31574 _ACEOF
31575   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31576   echo 'CEOF
31577     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31578   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31579   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31580   grep . conftest.tail >/dev/null || break
31581   rm -f conftest.defines
31582   mv conftest.tail conftest.defines
31583 done
31584 rm -f conftest.defines conftest.tail
31585
31586 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31587 cat >>$CONFIG_STATUS <<\_ACEOF
31588   if test x"$ac_file" != x-; then
31589     echo "/* $configure_input  */" >"$tmp/config.h"
31590     cat "$ac_result" >>"$tmp/config.h"
31591     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31592       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31593 echo "$as_me: $ac_file is unchanged" >&6;}
31594     else
31595       rm -f $ac_file
31596       mv "$tmp/config.h" $ac_file
31597     fi
31598   else
31599     echo "/* $configure_input  */"
31600     cat "$ac_result"
31601   fi
31602   rm -f "$tmp/out12"
31603  ;;
31604
31605   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31606 echo "$as_me: executing $ac_file commands" >&6;}
31607  ;;
31608   esac
31609
31610
31611   case $ac_file$ac_mode in
31612     "default-1":C)
31613     for ac_file in $CONFIG_FILES; do
31614       # Support "outfile[:infile[:infile...]]"
31615       case "$ac_file" in
31616         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31617       esac
31618       # PO directories have a Makefile.in generated from Makefile.in.in.
31619       case "$ac_file" in */Makefile.in)
31620         # Adjust a relative srcdir.
31621         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31622         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31623         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31624         # In autoconf-2.13 it is called $ac_given_srcdir.
31625         # In autoconf-2.50 it is called $srcdir.
31626         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31627         case "$ac_given_srcdir" in
31628           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31629           /*) top_srcdir="$ac_given_srcdir" ;;
31630           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31631         esac
31632         # Treat a directory as a PO directory if and only if it has a
31633         # POTFILES.in file. This allows packages to have multiple PO
31634         # directories under different names or in different locations.
31635         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31636           rm -f "$ac_dir/POTFILES"
31637           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31638           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31639           POMAKEFILEDEPS="POTFILES.in"
31640           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31641           # on $ac_dir but don't depend on user-specified configuration
31642           # parameters.
31643           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31644             # The LINGUAS file contains the set of available languages.
31645             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31646               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31647             fi
31648             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31649             # Hide the ALL_LINGUAS assigment from automake.
31650             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31651             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31652           else
31653             # The set of available languages was given in configure.in.
31654             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31655           fi
31656           # Compute POFILES
31657           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31658           # Compute UPDATEPOFILES
31659           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31660           # Compute DUMMYPOFILES
31661           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31662           # Compute GMOFILES
31663           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31664           case "$ac_given_srcdir" in
31665             .) srcdirpre= ;;
31666             *) srcdirpre='$(srcdir)/' ;;
31667           esac
31668           POFILES=
31669           UPDATEPOFILES=
31670           DUMMYPOFILES=
31671           GMOFILES=
31672           for lang in $ALL_LINGUAS; do
31673             POFILES="$POFILES $srcdirpre$lang.po"
31674             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31675             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31676             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31677           done
31678           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31679           # environment variable.
31680           INST_LINGUAS=
31681           if test -n "$ALL_LINGUAS"; then
31682             for presentlang in $ALL_LINGUAS; do
31683               useit=no
31684               if test "%UNSET%" != "$LINGUAS"; then
31685                 desiredlanguages="$LINGUAS"
31686               else
31687                 desiredlanguages="$ALL_LINGUAS"
31688               fi
31689               for desiredlang in $desiredlanguages; do
31690                 # Use the presentlang catalog if desiredlang is
31691                 #   a. equal to presentlang, or
31692                 #   b. a variant of presentlang (because in this case,
31693                 #      presentlang can be used as a fallback for messages
31694                 #      which are not translated in the desiredlang catalog).
31695                 case "$desiredlang" in
31696                   "$presentlang"*) useit=yes;;
31697                 esac
31698               done
31699               if test $useit = yes; then
31700                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31701               fi
31702             done
31703           fi
31704           CATALOGS=
31705           if test -n "$INST_LINGUAS"; then
31706             for lang in $INST_LINGUAS; do
31707               CATALOGS="$CATALOGS $lang.gmo"
31708             done
31709           fi
31710           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31711           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"
31712           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31713             if test -f "$f"; then
31714               case "$f" in
31715                 *.orig | *.bak | *~) ;;
31716                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31717               esac
31718             fi
31719           done
31720         fi
31721         ;;
31722       esac
31723     done ;;
31724     "default":C)
31725  ;;
31726
31727   esac
31728 done # for ac_tag
31729
31730
31731 { (exit 0); exit 0; }
31732 _ACEOF
31733 chmod +x $CONFIG_STATUS
31734 ac_clean_files=$ac_clean_files_save
31735
31736
31737 # configure is writing to config.log, and then calls config.status.
31738 # config.status does its own redirection, appending to config.log.
31739 # Unfortunately, on DOS this fails, as config.log is still kept open
31740 # by configure, so config.status won't be able to write to it; its
31741 # output is simply discarded.  So we exec the FD to /dev/null,
31742 # effectively closing config.log, so it can be properly (re)opened and
31743 # appended to by config.status.  When coming back to configure, we
31744 # need to make the FD available again.
31745 if test "$no_create" != yes; then
31746   ac_cs_success=:
31747   ac_config_status_args=
31748   test "$silent" = yes &&
31749     ac_config_status_args="$ac_config_status_args --quiet"
31750   exec 5>/dev/null
31751   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31752   exec 5>>config.log
31753   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31754   # would make configure fail if this is the last instruction.
31755   $ac_cs_success || { (exit 1); exit 1; }
31756 fi
31757
31758
31759 if test "${support_bat}" = "yes" ; then
31760   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31761   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31762   exit 1
31763   fi
31764
31765   QMAKEBIN="qmake"
31766
31767   if test "x$QMAKEQT4" != "xnone"; then
31768     QMAKEBIN=qmake-qt4
31769   fi
31770
31771
31772
31773   cd src/qt-console
31774   chmod 755 install_conf_file build-depkgs-qt-console
31775   echo "Creating bat Makefile"
31776   $QMAKEBIN
31777   cd ${BUILD_DIR}
31778 fi
31779
31780 echo "Doing make of dependencies"
31781 ${MAKE:-make} depend
31782
31783 cd scripts
31784 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31785 chmod 755 dvd-handler dvd-simulator
31786 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31787 cd ..
31788
31789 c=src/cats
31790
31791 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31792 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31793
31794 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31795 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31796
31797 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31798 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31799
31800 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31801 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31802
31803 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31804 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31805
31806 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31807 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31808
31809 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31810 chmod 755 $c/sqlite
31811 chmod 755 $c/mysql
31812
31813 chmod 755 src/win32/build-depkgs-mingw32
31814
31815
31816
31817 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31818    largefile_support="yes"
31819 fi
31820
31821 #
31822 # A whole lot of hand springs to get the compiler version.
31823 #  This is because gcc changed the output in version 3.0
31824 #
31825 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31826 if test "x${CCVERSION}" = "x" ; then
31827   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31828 fi
31829 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31830 if test x"${CXXVERSION}" = x ; then
31831   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31832 fi
31833
31834 if test "x${subsysdir}" = "x${sbindir}" ; then
31835    echo " "
31836    echo " "
31837    echo "You have set --sbindir and --with-subsys-dir"
31838    echo "  both equal to: ${subsysdir} "
31839    echo "  This is not permitted. Please reconfigure."
31840    echo " "
31841    echo "Aborting configuration ..."
31842    echo " "
31843    echo " "
31844    exit 1
31845 fi
31846
31847 if test "x${db_type}" = "xInternal" ; then
31848    echo " "
31849    echo " "
31850    echo "You have not specified either --enable-client-only or one of the"
31851    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31852    echo "  This is not permitted. Please reconfigure."
31853    echo " "
31854    echo "Aborting the configuration ..."
31855    echo " "
31856    echo " "
31857    exit 1
31858 fi
31859
31860 echo "
31861 Configuration on `date`:
31862
31863   Host:                       $host -- ${DISTNAME} ${DISTVER}
31864   Bacula version:             ${VERSION} (${DATE})
31865   Source code location:       ${srcdir}
31866   Install binaries:           ${sbindir}
31867   Install config files:       ${sysconfdir}
31868   Scripts directory:          ${scriptdir}
31869   Archive directory:          ${archivedir}
31870   Working directory:          ${working_dir}
31871   PID directory:              ${piddir}
31872   Subsys directory:           ${subsysdir}
31873   Man directory:              ${mandir}
31874   Data directory:             ${datadir}
31875   C Compiler:                 ${CC} ${CCVERSION}
31876   C++ Compiler:               ${CXX} ${CXXVERSION}
31877   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31878   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31879   Libraries:                  ${LIBS}
31880   Statically Linked Tools:    ${support_static_tools}
31881   Statically Linked FD:       ${support_static_fd}
31882   Statically Linked SD:       ${support_static_sd}
31883   Statically Linked DIR:      ${support_static_dir}
31884   Statically Linked CONS:     ${support_static_cons}
31885   Database type:              ${db_type}
31886   Database lib:               ${DB_LIBS}
31887   Database name:              ${db_name}
31888   Database user:              ${db_user}
31889
31890   Job Output Email:           ${job_email}
31891   Traceback Email:            ${dump_email}
31892   SMTP Host Address:          ${smtp_host}
31893
31894   Director Port:              ${dir_port}
31895   File daemon Port:           ${fd_port}
31896   Storage daemon Port:        ${sd_port}
31897
31898   Director User:              ${dir_user}
31899   Director Group:             ${dir_group}
31900   Storage Daemon User:        ${sd_user}
31901   Storage DaemonGroup:        ${sd_group}
31902   File Daemon User:           ${fd_user}
31903   File Daemon Group:          ${fd_group}
31904
31905   SQL binaries Directory      ${SQL_BINDIR}
31906
31907   Large file support:         $largefile_support
31908   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31909   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31910   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31911   TLS support:                ${support_tls}
31912   Encryption support:         ${support_crypto}
31913   ZLIB support:               ${have_zlib}
31914   enable-smartalloc:          ${support_smartalloc}
31915   bat support:                ${support_bat} ${QWT_LDFLAGS}
31916   enable-gnome:               ${support_gnome} ${gnome_version}
31917   enable-bwx-console:         ${support_wx_console} ${wx_version}
31918   enable-tray-monitor:        ${support_tray_monitor}
31919   client-only:                ${build_client_only}
31920   build-dird:                 ${build_dird}
31921   build-stored:               ${build_stored}
31922   ACL support:                ${have_acl}
31923   Python support:             ${support_python} ${PYTHON_LIBS}
31924   Batch insert enabled:       ${support_batch_insert}
31925
31926   " > config.out
31927
31928 cat config.out