]> granicus.if.org Git - postgresql/blob - configure
Update SELECT version() to show whether it is a 32 or 64-bit backend binary.
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for PostgreSQL 8.4devel.
4 #
5 # Report bugs to <pgsql-bugs@postgresql.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 #
12 # Copyright (c) 1996-2009, PostgreSQL Global Development Group
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556 exec 7<&0 </dev/null 6>&1
557
558 # Name of the host.
559 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
560 # so uname gets run too.
561 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562
563 #
564 # Initializations.
565 #
566 ac_default_prefix=/usr/local
567 ac_clean_files=
568 ac_config_libobj_dir=.
569 LIBOBJS=
570 cross_compiling=no
571 subdirs=
572 MFLAGS=
573 MAKEFLAGS=
574 SHELL=${CONFIG_SHELL-/bin/sh}
575
576 # Identity of this package.
577 PACKAGE_NAME='PostgreSQL'
578 PACKAGE_TARNAME='postgresql'
579 PACKAGE_VERSION='8.4devel'
580 PACKAGE_STRING='PostgreSQL 8.4devel'
581 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
582
583 ac_unique_file="src/backend/access/common/heaptuple.c"
584 ac_default_prefix=/usr/local/pgsql
585 # Factoring default headers for most tests.
586 ac_includes_default="\
587 #include <stdio.h>
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
590 #endif
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
593 #endif
594 #ifdef STDC_HEADERS
595 # include <stdlib.h>
596 # include <stddef.h>
597 #else
598 # ifdef HAVE_STDLIB_H
599 #  include <stdlib.h>
600 # endif
601 #endif
602 #ifdef HAVE_STRING_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #  include <memory.h>
605 # endif
606 # include <string.h>
607 #endif
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
610 #endif
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
613 #endif
614 #ifdef HAVE_STDINT_H
615 # include <stdint.h>
616 #endif
617 #ifdef HAVE_UNISTD_H
618 # include <unistd.h>
619 #endif"
620
621 ac_subst_vars='SHELL
622 PATH_SEPARATOR
623 PACKAGE_NAME
624 PACKAGE_TARNAME
625 PACKAGE_VERSION
626 PACKAGE_STRING
627 PACKAGE_BUGREPORT
628 exec_prefix
629 prefix
630 program_transform_name
631 bindir
632 sbindir
633 libexecdir
634 datarootdir
635 datadir
636 sysconfdir
637 sharedstatedir
638 localstatedir
639 includedir
640 oldincludedir
641 docdir
642 infodir
643 htmldir
644 dvidir
645 pdfdir
646 psdir
647 libdir
648 localedir
649 mandir
650 DEFS
651 ECHO_C
652 ECHO_N
653 ECHO_T
654 LIBS
655 build_alias
656 host_alias
657 target_alias
658 configure_args
659 PG_MAJORVERSION
660 build
661 build_cpu
662 build_vendor
663 build_os
664 host
665 host_cpu
666 host_vendor
667 host_os
668 PORTNAME
669 enable_nls
670 WANTED_LANGUAGES
671 default_port
672 enable_shared
673 enable_rpath
674 enable_debug
675 enable_profiling
676 GCOV
677 LCOV
678 GENHTML
679 enable_coverage
680 DTRACE
681 DTRACEFLAGS
682 enable_dtrace
683 CC
684 CFLAGS
685 LDFLAGS
686 CPPFLAGS
687 ac_ct_CC
688 EXEEXT
689 OBJEXT
690 SUN_STUDIO_CC
691 CPP
692 GCC
693 GREP
694 EGREP
695 TAS
696 autodepend
697 INCLUDES
698 enable_thread_safety
699 with_tcl
700 with_perl
701 with_python
702 with_gssapi
703 with_krb5
704 krb_srvtab
705 with_pam
706 with_ldap
707 with_bonjour
708 with_openssl
709 with_ossp_uuid
710 XML2_CONFIG
711 with_libxml
712 with_libxslt
713 with_system_tzdata
714 with_zlib
715 ELF_SYS
716 LDFLAGS_SL
717 LD
718 with_gnu_ld
719 ld_R_works
720 RANLIB
721 STRIP
722 STRIP_STATIC_LIB
723 STRIP_SHARED_LIB
724 AR
725 DLLTOOL
726 DLLWRAP
727 WINDRES
728 TAR
729 LN_S
730 AWK
731 BISON
732 BISONFLAGS
733 FLEX
734 FLEXFLAGS
735 PERL
736 perl_archlibexp
737 perl_privlibexp
738 perl_useshrplib
739 perl_embed_ldflags
740 PYTHON
741 python_version
742 python_configdir
743 python_includespec
744 python_libdir
745 python_libspec
746 python_additional_libs
747 ZIC
748 OSSP_UUID_LIBS
749 HAVE_IPV6
750 LIBOBJS
751 acx_pthread_config
752 PTHREAD_CC
753 PTHREAD_LIBS
754 PTHREAD_CFLAGS
755 LDAP_LIBS_FE
756 LDAP_LIBS_BE
757 HAVE_POSIX_SIGNALS
758 MSGFMT
759 MSGMERGE
760 XGETTEXT
761 TCLSH
762 TCL_CONFIG_SH
763 TCL_INCLUDE_SPEC
764 TCL_LIB_FILE
765 TCL_LIBS
766 TCL_LIB_SPEC
767 TCL_SHARED_BUILD
768 TCL_SHLIB_LD_LIBS
769 NSGMLS
770 JADE
771 have_docbook
772 DOCBOOKSTYLE
773 COLLATEINDEX
774 SGMLSPL
775 DOCBOOK2MAN
776 vpath_build
777 LTLIBOBJS'
778 ac_subst_files=''
779       ac_precious_vars='build_alias
780 host_alias
781 target_alias
782 CC
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
787 CPP
788 LDFLAGS_SL
789 DOCBOOKSTYLE'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 # The variables have the same names as the options, with
796 # dashes changed to underlines.
797 cache_file=/dev/null
798 exec_prefix=NONE
799 no_create=
800 no_recursion=
801 prefix=NONE
802 program_prefix=NONE
803 program_suffix=NONE
804 program_transform_name=s,x,x,
805 silent=
806 site=
807 srcdir=
808 verbose=
809 x_includes=NONE
810 x_libraries=NONE
811
812 # Installation directory options.
813 # These are left unexpanded so users can "make install exec_prefix=/foo"
814 # and all the variables that are supposed to be based on exec_prefix
815 # by default will actually change.
816 # Use braces instead of parens because sh, perl, etc. also accept them.
817 # (The list follows the same order as the GNU Coding Standards.)
818 bindir='${exec_prefix}/bin'
819 sbindir='${exec_prefix}/sbin'
820 libexecdir='${exec_prefix}/libexec'
821 datarootdir='${prefix}/share'
822 datadir='${datarootdir}'
823 sysconfdir='${prefix}/etc'
824 sharedstatedir='${prefix}/com'
825 localstatedir='${prefix}/var'
826 includedir='${prefix}/include'
827 oldincludedir='/usr/include'
828 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829 infodir='${datarootdir}/info'
830 htmldir='${docdir}'
831 dvidir='${docdir}'
832 pdfdir='${docdir}'
833 psdir='${docdir}'
834 libdir='${exec_prefix}/lib'
835 localedir='${datarootdir}/locale'
836 mandir='${datarootdir}/man'
837
838 ac_prev=
839 ac_dashdash=
840 for ac_option
841 do
842   # If the previous option needs an argument, assign it.
843   if test -n "$ac_prev"; then
844     eval $ac_prev=\$ac_option
845     ac_prev=
846     continue
847   fi
848
849   case $ac_option in
850   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
851   *)    ac_optarg=yes ;;
852   esac
853
854   # Accept the important Cygnus configure options, so we can diagnose typos.
855
856   case $ac_dashdash$ac_option in
857   --)
858     ac_dashdash=yes ;;
859
860   -bindir | --bindir | --bindi | --bind | --bin | --bi)
861     ac_prev=bindir ;;
862   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863     bindir=$ac_optarg ;;
864
865   -build | --build | --buil | --bui | --bu)
866     ac_prev=build_alias ;;
867   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
868     build_alias=$ac_optarg ;;
869
870   -cache-file | --cache-file | --cache-fil | --cache-fi \
871   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872     ac_prev=cache_file ;;
873   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875     cache_file=$ac_optarg ;;
876
877   --config-cache | -C)
878     cache_file=config.cache ;;
879
880   -datadir | --datadir | --datadi | --datad)
881     ac_prev=datadir ;;
882   -datadir=* | --datadir=* | --datadi=* | --datad=*)
883     datadir=$ac_optarg ;;
884
885   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886   | --dataroo | --dataro | --datar)
887     ac_prev=datarootdir ;;
888   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890     datarootdir=$ac_optarg ;;
891
892   -disable-* | --disable-*)
893     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
897    { (exit 1); exit 1; }; }
898     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899     eval enable_$ac_feature=no ;;
900
901   -docdir | --docdir | --docdi | --doc | --do)
902     ac_prev=docdir ;;
903   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904     docdir=$ac_optarg ;;
905
906   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907     ac_prev=dvidir ;;
908   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909     dvidir=$ac_optarg ;;
910
911   -enable-* | --enable-*)
912     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913     # Reject names that are not valid shell variable names.
914     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916    { (exit 1); exit 1; }; }
917     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918     eval enable_$ac_feature=\$ac_optarg ;;
919
920   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922   | --exec | --exe | --ex)
923     ac_prev=exec_prefix ;;
924   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926   | --exec=* | --exe=* | --ex=*)
927     exec_prefix=$ac_optarg ;;
928
929   -gas | --gas | --ga | --g)
930     # Obsolete; use --with-gas.
931     with_gas=yes ;;
932
933   -help | --help | --hel | --he | -h)
934     ac_init_help=long ;;
935   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936     ac_init_help=recursive ;;
937   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938     ac_init_help=short ;;
939
940   -host | --host | --hos | --ho)
941     ac_prev=host_alias ;;
942   -host=* | --host=* | --hos=* | --ho=*)
943     host_alias=$ac_optarg ;;
944
945   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946     ac_prev=htmldir ;;
947   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948   | --ht=*)
949     htmldir=$ac_optarg ;;
950
951   -includedir | --includedir | --includedi | --included | --include \
952   | --includ | --inclu | --incl | --inc)
953     ac_prev=includedir ;;
954   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955   | --includ=* | --inclu=* | --incl=* | --inc=*)
956     includedir=$ac_optarg ;;
957
958   -infodir | --infodir | --infodi | --infod | --info | --inf)
959     ac_prev=infodir ;;
960   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961     infodir=$ac_optarg ;;
962
963   -libdir | --libdir | --libdi | --libd)
964     ac_prev=libdir ;;
965   -libdir=* | --libdir=* | --libdi=* | --libd=*)
966     libdir=$ac_optarg ;;
967
968   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969   | --libexe | --libex | --libe)
970     ac_prev=libexecdir ;;
971   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972   | --libexe=* | --libex=* | --libe=*)
973     libexecdir=$ac_optarg ;;
974
975   -localedir | --localedir | --localedi | --localed | --locale)
976     ac_prev=localedir ;;
977   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978     localedir=$ac_optarg ;;
979
980   -localstatedir | --localstatedir | --localstatedi | --localstated \
981   | --localstate | --localstat | --localsta | --localst | --locals)
982     ac_prev=localstatedir ;;
983   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985     localstatedir=$ac_optarg ;;
986
987   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988     ac_prev=mandir ;;
989   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
990     mandir=$ac_optarg ;;
991
992   -nfp | --nfp | --nf)
993     # Obsolete; use --without-fp.
994     with_fp=no ;;
995
996   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997   | --no-cr | --no-c | -n)
998     no_create=yes ;;
999
1000   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002     no_recursion=yes ;;
1003
1004   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006   | --oldin | --oldi | --old | --ol | --o)
1007     ac_prev=oldincludedir ;;
1008   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011     oldincludedir=$ac_optarg ;;
1012
1013   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014     ac_prev=prefix ;;
1015   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016     prefix=$ac_optarg ;;
1017
1018   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019   | --program-pre | --program-pr | --program-p)
1020     ac_prev=program_prefix ;;
1021   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023     program_prefix=$ac_optarg ;;
1024
1025   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026   | --program-suf | --program-su | --program-s)
1027     ac_prev=program_suffix ;;
1028   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030     program_suffix=$ac_optarg ;;
1031
1032   -program-transform-name | --program-transform-name \
1033   | --program-transform-nam | --program-transform-na \
1034   | --program-transform-n | --program-transform- \
1035   | --program-transform | --program-transfor \
1036   | --program-transfo | --program-transf \
1037   | --program-trans | --program-tran \
1038   | --progr-tra | --program-tr | --program-t)
1039     ac_prev=program_transform_name ;;
1040   -program-transform-name=* | --program-transform-name=* \
1041   | --program-transform-nam=* | --program-transform-na=* \
1042   | --program-transform-n=* | --program-transform-=* \
1043   | --program-transform=* | --program-transfor=* \
1044   | --program-transfo=* | --program-transf=* \
1045   | --program-trans=* | --program-tran=* \
1046   | --progr-tra=* | --program-tr=* | --program-t=*)
1047     program_transform_name=$ac_optarg ;;
1048
1049   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050     ac_prev=pdfdir ;;
1051   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052     pdfdir=$ac_optarg ;;
1053
1054   -psdir | --psdir | --psdi | --psd | --ps)
1055     ac_prev=psdir ;;
1056   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057     psdir=$ac_optarg ;;
1058
1059   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060   | -silent | --silent | --silen | --sile | --sil)
1061     silent=yes ;;
1062
1063   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064     ac_prev=sbindir ;;
1065   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066   | --sbi=* | --sb=*)
1067     sbindir=$ac_optarg ;;
1068
1069   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071   | --sharedst | --shareds | --shared | --share | --shar \
1072   | --sha | --sh)
1073     ac_prev=sharedstatedir ;;
1074   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077   | --sha=* | --sh=*)
1078     sharedstatedir=$ac_optarg ;;
1079
1080   -site | --site | --sit)
1081     ac_prev=site ;;
1082   -site=* | --site=* | --sit=*)
1083     site=$ac_optarg ;;
1084
1085   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086     ac_prev=srcdir ;;
1087   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088     srcdir=$ac_optarg ;;
1089
1090   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091   | --syscon | --sysco | --sysc | --sys | --sy)
1092     ac_prev=sysconfdir ;;
1093   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095     sysconfdir=$ac_optarg ;;
1096
1097   -target | --target | --targe | --targ | --tar | --ta | --t)
1098     ac_prev=target_alias ;;
1099   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100     target_alias=$ac_optarg ;;
1101
1102   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103     verbose=yes ;;
1104
1105   -version | --version | --versio | --versi | --vers | -V)
1106     ac_init_version=: ;;
1107
1108   -with-* | --with-*)
1109     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110     # Reject names that are not valid shell variable names.
1111     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112       { echo "$as_me: error: invalid package name: $ac_package" >&2
1113    { (exit 1); exit 1; }; }
1114     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115     eval with_$ac_package=\$ac_optarg ;;
1116
1117   -without-* | --without-*)
1118     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119     # Reject names that are not valid shell variable names.
1120     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121       { echo "$as_me: error: invalid package name: $ac_package" >&2
1122    { (exit 1); exit 1; }; }
1123     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124     eval with_$ac_package=no ;;
1125
1126   --x)
1127     # Obsolete; use --with-x.
1128     with_x=yes ;;
1129
1130   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131   | --x-incl | --x-inc | --x-in | --x-i)
1132     ac_prev=x_includes ;;
1133   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135     x_includes=$ac_optarg ;;
1136
1137   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139     ac_prev=x_libraries ;;
1140   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142     x_libraries=$ac_optarg ;;
1143
1144   -*) { echo "$as_me: error: unrecognized option: $ac_option
1145 Try \`$0 --help' for more information." >&2
1146    { (exit 1); exit 1; }; }
1147     ;;
1148
1149   *=*)
1150     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154    { (exit 1); exit 1; }; }
1155     eval $ac_envvar=\$ac_optarg
1156     export $ac_envvar ;;
1157
1158   *)
1159     # FIXME: should be removed in autoconf 3.0.
1160     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1164     ;;
1165
1166   esac
1167 done
1168
1169 if test -n "$ac_prev"; then
1170   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171   { echo "$as_me: error: missing argument to $ac_option" >&2
1172    { (exit 1); exit 1; }; }
1173 fi
1174
1175 # Be sure to have absolute directory names.
1176 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177                 datadir sysconfdir sharedstatedir localstatedir includedir \
1178                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179                 libdir localedir mandir
1180 do
1181   eval ac_val=\$$ac_var
1182   case $ac_val in
1183     [\\/$]* | ?:[\\/]* )  continue;;
1184     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185   esac
1186   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187    { (exit 1); exit 1; }; }
1188 done
1189
1190 # There might be people who depend on the old broken behavior: `$host'
1191 # used to hold the argument of --host etc.
1192 # FIXME: To remove some day.
1193 build=$build_alias
1194 host=$host_alias
1195 target=$target_alias
1196
1197 # FIXME: To remove some day.
1198 if test "x$host_alias" != x; then
1199   if test "x$build_alias" = x; then
1200     cross_compiling=maybe
1201     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202     If a cross compiler is detected then cross compile mode will be used." >&2
1203   elif test "x$build_alias" != "x$host_alias"; then
1204     cross_compiling=yes
1205   fi
1206 fi
1207
1208 ac_tool_prefix=
1209 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210
1211 test "$silent" = yes && exec 6>/dev/null
1212
1213
1214 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215 ac_ls_di=`ls -di .` &&
1216 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217   { echo "$as_me: error: Working directory cannot be determined" >&2
1218    { (exit 1); exit 1; }; }
1219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220   { echo "$as_me: error: pwd does not report name of working directory" >&2
1221    { (exit 1); exit 1; }; }
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226   ac_srcdir_defaulted=yes
1227   # Try the directory containing this script, then the parent directory.
1228   ac_confdir=`$as_dirname -- "$0" ||
1229 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230          X"$0" : 'X\(//\)[^/]' \| \
1231          X"$0" : 'X\(//\)$' \| \
1232          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 echo X"$0" |
1234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235             s//\1/
1236             q
1237           }
1238           /^X\(\/\/\)[^/].*/{
1239             s//\1/
1240             q
1241           }
1242           /^X\(\/\/\)$/{
1243             s//\1/
1244             q
1245           }
1246           /^X\(\/\).*/{
1247             s//\1/
1248             q
1249           }
1250           s/.*/./; q'`
1251   srcdir=$ac_confdir
1252   if test ! -r "$srcdir/$ac_unique_file"; then
1253     srcdir=..
1254   fi
1255 else
1256   ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261    { (exit 1); exit 1; }; }
1262 fi
1263 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 ac_abs_confdir=`(
1265         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266    { (exit 1); exit 1; }; }
1267         pwd)`
1268 # When building in place, set srcdir=.
1269 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270   srcdir=.
1271 fi
1272 # Remove unnecessary trailing slashes from srcdir.
1273 # Double slashes in file names in object file debugging info
1274 # mess up M-x gdb in Emacs.
1275 case $srcdir in
1276 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 esac
1278 for ac_var in $ac_precious_vars; do
1279   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280   eval ac_env_${ac_var}_value=\$${ac_var}
1281   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1283 done
1284
1285 #
1286 # Report the --help message.
1287 #
1288 if test "$ac_init_help" = "long"; then
1289   # Omit some internal or obsolete options to make the list less imposing.
1290   # This message is too long to be a string in the A/UX 3.1 sh.
1291   cat <<_ACEOF
1292 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1293
1294 Usage: $0 [OPTION]... [VAR=VALUE]...
1295
1296 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297 VAR=VALUE.  See below for descriptions of some of the useful variables.
1298
1299 Defaults for the options are specified in brackets.
1300
1301 Configuration:
1302   -h, --help              display this help and exit
1303       --help=short        display options specific to this package
1304       --help=recursive    display the short help of all the included packages
1305   -V, --version           display version information and exit
1306   -q, --quiet, --silent   do not print \`checking...' messages
1307       --cache-file=FILE   cache test results in FILE [disabled]
1308   -C, --config-cache      alias for \`--cache-file=config.cache'
1309   -n, --no-create         do not create output files
1310       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1311
1312 Installation directories:
1313   --prefix=PREFIX         install architecture-independent files in PREFIX
1314                           [$ac_default_prefix]
1315   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1316                           [PREFIX]
1317
1318 By default, \`make install' will install all the files in
1319 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1320 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321 for instance \`--prefix=\$HOME'.
1322
1323 For better control, use the options below.
1324
1325 Fine tuning of the installation directories:
1326   --bindir=DIR           user executables [EPREFIX/bin]
1327   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1328   --libexecdir=DIR       program executables [EPREFIX/libexec]
1329   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1330   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1331   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1332   --libdir=DIR           object code libraries [EPREFIX/lib]
1333   --includedir=DIR       C header files [PREFIX/include]
1334   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1335   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1336   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1337   --infodir=DIR          info documentation [DATAROOTDIR/info]
1338   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1339   --mandir=DIR           man documentation [DATAROOTDIR/man]
1340   --docdir=DIR           documentation root [DATAROOTDIR/doc/postgresql]
1341   --htmldir=DIR          html documentation [DOCDIR]
1342   --dvidir=DIR           dvi documentation [DOCDIR]
1343   --pdfdir=DIR           pdf documentation [DOCDIR]
1344   --psdir=DIR            ps documentation [DOCDIR]
1345 _ACEOF
1346
1347   cat <<\_ACEOF
1348
1349 System types:
1350   --build=BUILD     configure for building on BUILD [guessed]
1351   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1352 _ACEOF
1353 fi
1354
1355 if test -n "$ac_init_help"; then
1356   case $ac_init_help in
1357      short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1358    esac
1359   cat <<\_ACEOF
1360
1361 Optional Features:
1362   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1363   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1364   --disable-integer-datetimes
1365                           disable 64-bit integer date/time support
1366   --enable-nls[=LANGUAGES]
1367                           enable Native Language Support
1368   --disable-shared        do not build shared libraries
1369   --disable-rpath         do not embed shared library search path in
1370                           executables
1371   --disable-spinlocks     do not use spinlocks
1372   --enable-debug          build with debugging symbols (-g)
1373   --enable-profiling      build with profiling enabled
1374   --enable-coverage       build with coverage testing instrumentation
1375   --enable-dtrace         build with DTrace support
1376   --enable-depend         turn on automatic dependency tracking
1377   --enable-cassert        enable assertion checks (for debugging)
1378   --enable-thread-safety  make client libraries thread-safe
1379   --enable-thread-safety-force
1380                           force thread-safety despite thread test failure
1381   --disable-float4-byval  disable float4 passed by value
1382   --disable-float8-byval  disable float8 passed by value
1383   --disable-largefile     omit support for large files
1384
1385 Optional Packages:
1386   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1387   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1388   --with-template=NAME    override operating system template
1389   --with-includes=DIRS    look for additional header files in DIRS
1390   --with-libraries=DIRS   look for additional libraries in DIRS
1391   --with-libs=DIRS        alternative spelling of --with-libraries
1392   --with-pgport=PORTNUM   set default port number [5432]
1393   --with-blocksize=BLOCKSIZE
1394                           set table block size in kB [8]
1395   --with-segsize=SEGSIZE  set table segment size in GB [1]
1396   --with-wal-blocksize=BLOCKSIZE
1397                           set WAL block size in kB [8]
1398   --with-wal-segsize=SEGSIZE
1399                           set WAL segment size in MB [16]
1400   --with-CC=CMD           set compiler (deprecated)
1401   --with-tcl              build Tcl modules (PL/Tcl)
1402   --with-tclconfig=DIR    tclConfig.sh is in DIR
1403   --with-perl             build Perl modules (PL/Perl)
1404   --with-python           build Python modules (PL/Python)
1405   --with-gssapi           build with GSSAPI support
1406   --with-krb5             build with Kerberos 5 support
1407   --with-krb-srvnam=NAME  default service principal name in Kerberos
1408                           [postgres]
1409   --with-pam              build with PAM support
1410   --with-ldap             build with LDAP support
1411   --with-bonjour          build with Bonjour support
1412   --with-openssl          build with OpenSSL support
1413   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1414   --with-libedit-preferred
1415                           prefer BSD Libedit over GNU Readline
1416   --with-ossp-uuid        use OSSP UUID library when building
1417                           contrib/uuid-ossp
1418   --with-libxml           build with XML support
1419   --with-libxslt          use XSLT support when building contrib/xml2
1420   --with-system-tzdata=DIR
1421                           use system time zone data in DIR
1422   --without-zlib          do not use Zlib
1423   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1424
1425 Some influential environment variables:
1426   CC          C compiler command
1427   CFLAGS      C compiler flags
1428   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1429               nonstandard directory <lib dir>
1430   LIBS        libraries to pass to the linker, e.g. -l<library>
1431   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1432               you have headers in a nonstandard directory <include dir>
1433   CPP         C preprocessor
1434   LDFLAGS_SL
1435   DOCBOOKSTYLE
1436               location of DocBook stylesheets
1437
1438 Use these variables to override the choices made by `configure' or to help
1439 it to find libraries and programs with nonstandard names/locations.
1440
1441 Report bugs to <pgsql-bugs@postgresql.org>.
1442 _ACEOF
1443 ac_status=$?
1444 fi
1445
1446 if test "$ac_init_help" = "recursive"; then
1447   # If there are subdirs, report their specific --help.
1448   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1449     test -d "$ac_dir" || continue
1450     ac_builddir=.
1451
1452 case "$ac_dir" in
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *)
1455   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1456   # A ".." for each directory in $ac_dir_suffix.
1457   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1458   case $ac_top_builddir_sub in
1459   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1461   esac ;;
1462 esac
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1467
1468 case $srcdir in
1469   .)  # We are building in place.
1470     ac_srcdir=.
1471     ac_top_srcdir=$ac_top_builddir_sub
1472     ac_abs_top_srcdir=$ac_pwd ;;
1473   [\\/]* | ?:[\\/]* )  # Absolute name.
1474     ac_srcdir=$srcdir$ac_dir_suffix;
1475     ac_top_srcdir=$srcdir
1476     ac_abs_top_srcdir=$srcdir ;;
1477   *) # Relative name.
1478     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479     ac_top_srcdir=$ac_top_build_prefix$srcdir
1480     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1481 esac
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1483
1484     cd "$ac_dir" || { ac_status=$?; continue; }
1485     # Check for guested configure.
1486     if test -f "$ac_srcdir/configure.gnu"; then
1487       echo &&
1488       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489     elif test -f "$ac_srcdir/configure"; then
1490       echo &&
1491       $SHELL "$ac_srcdir/configure" --help=recursive
1492     else
1493       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1494     fi || ac_status=$?
1495     cd "$ac_pwd" || { ac_status=$?; break; }
1496   done
1497 fi
1498
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1501   cat <<\_ACEOF
1502 PostgreSQL configure 8.4devel
1503 generated by GNU Autoconf 2.61
1504
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1509
1510 Copyright (c) 1996-2009, PostgreSQL Global Development Group
1511 _ACEOF
1512   exit
1513 fi
1514 cat >config.log <<_ACEOF
1515 This file contains any messages produced by compilers while
1516 running configure, to aid debugging if configure makes a mistake.
1517
1518 It was created by PostgreSQL $as_me 8.4devel, which was
1519 generated by GNU Autoconf 2.61.  Invocation command line was
1520
1521   $ $0 $@
1522
1523 _ACEOF
1524 exec 5>>config.log
1525 {
1526 cat <<_ASUNAME
1527 ## --------- ##
1528 ## Platform. ##
1529 ## --------- ##
1530
1531 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1532 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1533 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1534 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1535 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1536
1537 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1538 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1539
1540 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1541 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1542 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1543 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1544 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1545 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1546 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1547
1548 _ASUNAME
1549
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553   IFS=$as_save_IFS
1554   test -z "$as_dir" && as_dir=.
1555   echo "PATH: $as_dir"
1556 done
1557 IFS=$as_save_IFS
1558
1559 } >&5
1560
1561 cat >&5 <<_ACEOF
1562
1563
1564 ## ----------- ##
1565 ## Core tests. ##
1566 ## ----------- ##
1567
1568 _ACEOF
1569
1570
1571 # Keep a trace of the command line.
1572 # Strip out --no-create and --no-recursion so they do not pile up.
1573 # Strip out --silent because we don't want to record it for future runs.
1574 # Also quote any args containing shell meta-characters.
1575 # Make two passes to allow for proper duplicate-argument suppression.
1576 ac_configure_args=
1577 ac_configure_args0=
1578 ac_configure_args1=
1579 ac_must_keep_next=false
1580 for ac_pass in 1 2
1581 do
1582   for ac_arg
1583   do
1584     case $ac_arg in
1585     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1586     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1587     | -silent | --silent | --silen | --sile | --sil)
1588       continue ;;
1589     *\'*)
1590       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591     esac
1592     case $ac_pass in
1593     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1594     2)
1595       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1596       if test $ac_must_keep_next = true; then
1597         ac_must_keep_next=false # Got value, back to normal.
1598       else
1599         case $ac_arg in
1600           *=* | --config-cache | -C | -disable-* | --disable-* \
1601           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1602           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1603           | -with-* | --with-* | -without-* | --without-* | --x)
1604             case "$ac_configure_args0 " in
1605               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1606             esac
1607             ;;
1608           -* ) ac_must_keep_next=true ;;
1609         esac
1610       fi
1611       ac_configure_args="$ac_configure_args '$ac_arg'"
1612       ;;
1613     esac
1614   done
1615 done
1616 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1617 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1618
1619 # When interrupted or exit'd, cleanup temporary files, and complete
1620 # config.log.  We remove comments because anyway the quotes in there
1621 # would cause problems or look ugly.
1622 # WARNING: Use '\'' to represent an apostrophe within the trap.
1623 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1624 trap 'exit_status=$?
1625   # Save into config.log some information that might help in debugging.
1626   {
1627     echo
1628
1629     cat <<\_ASBOX
1630 ## ---------------- ##
1631 ## Cache variables. ##
1632 ## ---------------- ##
1633 _ASBOX
1634     echo
1635     # The following way of writing the cache mishandles newlines in values,
1636 (
1637   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1638     eval ac_val=\$$ac_var
1639     case $ac_val in #(
1640     *${as_nl}*)
1641       case $ac_var in #(
1642       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1643 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1644       esac
1645       case $ac_var in #(
1646       _ | IFS | as_nl) ;; #(
1647       *) $as_unset $ac_var ;;
1648       esac ;;
1649     esac
1650   done
1651   (set) 2>&1 |
1652     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1653     *${as_nl}ac_space=\ *)
1654       sed -n \
1655         "s/'\''/'\''\\\\'\'''\''/g;
1656           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1657       ;; #(
1658     *)
1659       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1660       ;;
1661     esac |
1662     sort
1663 )
1664     echo
1665
1666     cat <<\_ASBOX
1667 ## ----------------- ##
1668 ## Output variables. ##
1669 ## ----------------- ##
1670 _ASBOX
1671     echo
1672     for ac_var in $ac_subst_vars
1673     do
1674       eval ac_val=\$$ac_var
1675       case $ac_val in
1676       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677       esac
1678       echo "$ac_var='\''$ac_val'\''"
1679     done | sort
1680     echo
1681
1682     if test -n "$ac_subst_files"; then
1683       cat <<\_ASBOX
1684 ## ------------------- ##
1685 ## File substitutions. ##
1686 ## ------------------- ##
1687 _ASBOX
1688       echo
1689       for ac_var in $ac_subst_files
1690       do
1691         eval ac_val=\$$ac_var
1692         case $ac_val in
1693         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694         esac
1695         echo "$ac_var='\''$ac_val'\''"
1696       done | sort
1697       echo
1698     fi
1699
1700     if test -s confdefs.h; then
1701       cat <<\_ASBOX
1702 ## ----------- ##
1703 ## confdefs.h. ##
1704 ## ----------- ##
1705 _ASBOX
1706       echo
1707       cat confdefs.h
1708       echo
1709     fi
1710     test "$ac_signal" != 0 &&
1711       echo "$as_me: caught signal $ac_signal"
1712     echo "$as_me: exit $exit_status"
1713   } >&5
1714   rm -f core *.core core.conftest.* &&
1715     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1716     exit $exit_status
1717 ' 0
1718 for ac_signal in 1 2 13 15; do
1719   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1720 done
1721 ac_signal=0
1722
1723 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1724 rm -f -r conftest* confdefs.h
1725
1726 # Predefined preprocessor variables.
1727
1728 cat >>confdefs.h <<_ACEOF
1729 #define PACKAGE_NAME "$PACKAGE_NAME"
1730 _ACEOF
1731
1732
1733 cat >>confdefs.h <<_ACEOF
1734 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1735 _ACEOF
1736
1737
1738 cat >>confdefs.h <<_ACEOF
1739 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1740 _ACEOF
1741
1742
1743 cat >>confdefs.h <<_ACEOF
1744 #define PACKAGE_STRING "$PACKAGE_STRING"
1745 _ACEOF
1746
1747
1748 cat >>confdefs.h <<_ACEOF
1749 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1750 _ACEOF
1751
1752
1753 # Let the site file select an alternate cache file if it wants to.
1754 # Prefer explicitly selected file to automatically selected ones.
1755 if test -n "$CONFIG_SITE"; then
1756   set x "$CONFIG_SITE"
1757 elif test "x$prefix" != xNONE; then
1758   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1759 else
1760   set x "$ac_default_prefix/share/config.site" \
1761         "$ac_default_prefix/etc/config.site"
1762 fi
1763 shift
1764 for ac_site_file
1765 do
1766   if test -r "$ac_site_file"; then
1767     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1768 echo "$as_me: loading site script $ac_site_file" >&6;}
1769     sed 's/^/| /' "$ac_site_file" >&5
1770     . "$ac_site_file"
1771   fi
1772 done
1773
1774 if test -r "$cache_file"; then
1775   # Some versions of bash will fail to source /dev/null (special
1776   # files actually), so we avoid doing that.
1777   if test -f "$cache_file"; then
1778     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1779 echo "$as_me: loading cache $cache_file" >&6;}
1780     case $cache_file in
1781       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1782       *)                      . "./$cache_file";;
1783     esac
1784   fi
1785 else
1786   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1787 echo "$as_me: creating cache $cache_file" >&6;}
1788   >$cache_file
1789 fi
1790
1791 # Check that the precious variables saved in the cache have kept the same
1792 # value.
1793 ac_cache_corrupted=false
1794 for ac_var in $ac_precious_vars; do
1795   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1796   eval ac_new_set=\$ac_env_${ac_var}_set
1797   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1798   eval ac_new_val=\$ac_env_${ac_var}_value
1799   case $ac_old_set,$ac_new_set in
1800     set,)
1801       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1802 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1803       ac_cache_corrupted=: ;;
1804     ,set)
1805       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1806 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1807       ac_cache_corrupted=: ;;
1808     ,);;
1809     *)
1810       if test "x$ac_old_val" != "x$ac_new_val"; then
1811         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1812 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1813         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1814 echo "$as_me:   former value:  $ac_old_val" >&2;}
1815         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1816 echo "$as_me:   current value: $ac_new_val" >&2;}
1817         ac_cache_corrupted=:
1818       fi;;
1819   esac
1820   # Pass precious variables to config.status.
1821   if test "$ac_new_set" = set; then
1822     case $ac_new_val in
1823     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1824     *) ac_arg=$ac_var=$ac_new_val ;;
1825     esac
1826     case " $ac_configure_args " in
1827       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1828       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1829     esac
1830   fi
1831 done
1832 if $ac_cache_corrupted; then
1833   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1834 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1835   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1836 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1837    { (exit 1); exit 1; }; }
1838 fi
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864 ac_ext=c
1865 ac_cpp='$CPP $CPPFLAGS'
1866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1869
1870
1871
1872
1873
1874
1875 ac_aux_dir=
1876 for ac_dir in config "$srcdir"/config; do
1877   if test -f "$ac_dir/install-sh"; then
1878     ac_aux_dir=$ac_dir
1879     ac_install_sh="$ac_aux_dir/install-sh -c"
1880     break
1881   elif test -f "$ac_dir/install.sh"; then
1882     ac_aux_dir=$ac_dir
1883     ac_install_sh="$ac_aux_dir/install.sh -c"
1884     break
1885   elif test -f "$ac_dir/shtool"; then
1886     ac_aux_dir=$ac_dir
1887     ac_install_sh="$ac_aux_dir/shtool install -c"
1888     break
1889   fi
1890 done
1891 if test -z "$ac_aux_dir"; then
1892   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1904
1905
1906
1907 configure_args=$ac_configure_args
1908
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PG_VERSION "$PACKAGE_VERSION"
1913 _ACEOF
1914
1915 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
1916
1917
1918 cat >>confdefs.h <<_ACEOF
1919 #define PG_MAJORVERSION "$PG_MAJORVERSION"
1920 _ACEOF
1921
1922
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927    { (exit 1); exit 1; }; }
1928
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932   echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934   ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940    { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944    { (exit 1); exit 1; }; }
1945
1946 fi
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953    { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1967
1968
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test "x$host_alias" = x; then
1975   ac_cv_host=$ac_cv_build
1976 else
1977   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980    { (exit 1); exit 1; }; }
1981 fi
1982
1983 fi
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990    { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2004
2005
2006
2007 template=
2008 { echo "$as_me:$LINENO: checking which template to use" >&5
2009 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
2010
2011
2012 pgac_args="$pgac_args with_template"
2013
2014
2015 # Check whether --with-template was given.
2016 if test "${with_template+set}" = set; then
2017   withval=$with_template;
2018   case $withval in
2019     yes)
2020       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2021 echo "$as_me: error: argument required for --with-template option" >&2;}
2022    { (exit 1); exit 1; }; }
2023       ;;
2024     no)
2025       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2026 echo "$as_me: error: argument required for --with-template option" >&2;}
2027    { (exit 1); exit 1; }; }
2028       ;;
2029     *)
2030
2031   case $withval in
2032     list)   echo; ls "$srcdir/src/template"; exit;;
2033     *)      if test -f "$srcdir/src/template/$with_template" ; then
2034               template=$withval
2035             else
2036               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2037 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2038    { (exit 1); exit 1; }; }
2039             fi;;
2040   esac
2041
2042       ;;
2043   esac
2044
2045 else
2046
2047 # --with-template not given
2048
2049 case $host_os in
2050      aix*) template=aix ;;
2051     bsdi*) template=bsdi ;;
2052   cygwin*) template=cygwin ;;
2053   darwin*) template=darwin ;;
2054     dgux*) template=dgux ;;
2055  freebsd*) template=freebsd ;;
2056     hpux*) template=hpux ;;
2057     irix*) template=irix ;;
2058  linux*|gnu*|k*bsd*-gnu)
2059            template=linux ;;
2060    mingw*) template=win32 ;;
2061   netbsd*) template=netbsd ;;
2062 nextstep*) template=nextstep ;;
2063  openbsd*) template=openbsd ;;
2064      osf*) template=osf ;;
2065      sco*) template=sco ;;
2066  solaris*) template=solaris ;;
2067    sunos*) template=sunos4 ;;
2068  sysv4.2*)
2069         case $host_vendor in
2070           univel) template=univel ;;
2071         esac ;;
2072    sysv4*) template=svr4 ;;
2073    sysv5*) template=unixware ;;
2074   ultrix*) template=ultrix4 ;;
2075 esac
2076
2077   if test x"$template" = x"" ; then
2078     { { echo "$as_me:$LINENO: error:
2079 *******************************************************************
2080 PostgreSQL has apparently not been ported to your platform yet.
2081 To try a manual configuration, look into the src/template directory
2082 for a similar platform and use the '--with-template=' option.
2083
2084 Please also contact <pgsql-ports@postgresql.org> to see about
2085 rectifying this.  Include the above 'checking host system type...'
2086 line.
2087 *******************************************************************
2088 " >&5
2089 echo "$as_me: error:
2090 *******************************************************************
2091 PostgreSQL has apparently not been ported to your platform yet.
2092 To try a manual configuration, look into the src/template directory
2093 for a similar platform and use the '--with-template=' option.
2094
2095 Please also contact <pgsql-ports@postgresql.org> to see about
2096 rectifying this.  Include the above 'checking host system type...'
2097 line.
2098 *******************************************************************
2099 " >&2;}
2100    { (exit 1); exit 1; }; }
2101   fi
2102
2103
2104 fi
2105
2106
2107
2108 { echo "$as_me:$LINENO: result: $template" >&5
2109 echo "${ECHO_T}$template" >&6; }
2110
2111 PORTNAME=$template
2112
2113
2114 # Initialize default assumption that we do not need separate assembly code
2115 # for TAS (test-and-set).  This can be overridden by the template file
2116 # when it's executed.
2117 need_tas=no
2118 tas_file=dummy.s
2119
2120
2121
2122 ##
2123 ## Command line options
2124 ##
2125
2126 #
2127 # Add non-standard directories to the include path
2128 #
2129
2130 pgac_args="$pgac_args with_includes"
2131
2132
2133 # Check whether --with-includes was given.
2134 if test "${with_includes+set}" = set; then
2135   withval=$with_includes;
2136   case $withval in
2137     yes)
2138       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2139 echo "$as_me: error: argument required for --with-includes option" >&2;}
2140    { (exit 1); exit 1; }; }
2141       ;;
2142     no)
2143       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2144 echo "$as_me: error: argument required for --with-includes option" >&2;}
2145    { (exit 1); exit 1; }; }
2146       ;;
2147     *)
2148
2149       ;;
2150   esac
2151
2152 fi
2153
2154
2155
2156
2157 #
2158 # Add non-standard directories to the library search path
2159 #
2160
2161 pgac_args="$pgac_args with_libraries"
2162
2163
2164 # Check whether --with-libraries was given.
2165 if test "${with_libraries+set}" = set; then
2166   withval=$with_libraries;
2167   case $withval in
2168     yes)
2169       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2170 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2171    { (exit 1); exit 1; }; }
2172       ;;
2173     no)
2174       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2175 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2176    { (exit 1); exit 1; }; }
2177       ;;
2178     *)
2179       LIBRARY_DIRS=$withval
2180       ;;
2181   esac
2182
2183 fi
2184
2185
2186
2187
2188 pgac_args="$pgac_args with_libs"
2189
2190
2191 # Check whether --with-libs was given.
2192 if test "${with_libs+set}" = set; then
2193   withval=$with_libs;
2194   case $withval in
2195     yes)
2196       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2197 echo "$as_me: error: argument required for --with-libs option" >&2;}
2198    { (exit 1); exit 1; }; }
2199       ;;
2200     no)
2201       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2202 echo "$as_me: error: argument required for --with-libs option" >&2;}
2203    { (exit 1); exit 1; }; }
2204       ;;
2205     *)
2206       LIBRARY_DIRS=$withval
2207       ;;
2208   esac
2209
2210 fi
2211
2212
2213
2214
2215 #
2216 # 64-bit integer date/time storage: enabled by default.
2217 #
2218 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2219 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2220
2221 pgac_args="$pgac_args enable_integer_datetimes"
2222
2223 # Check whether --enable-integer-datetimes was given.
2224 if test "${enable_integer_datetimes+set}" = set; then
2225   enableval=$enable_integer_datetimes;
2226   case $enableval in
2227     yes)
2228
2229 cat >>confdefs.h <<\_ACEOF
2230 #define USE_INTEGER_DATETIMES 1
2231 _ACEOF
2232
2233       ;;
2234     no)
2235       :
2236       ;;
2237     *)
2238       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2239 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2240    { (exit 1); exit 1; }; }
2241       ;;
2242   esac
2243
2244 else
2245   enable_integer_datetimes=yes
2246
2247 cat >>confdefs.h <<\_ACEOF
2248 #define USE_INTEGER_DATETIMES 1
2249 _ACEOF
2250
2251 fi
2252
2253
2254 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2255 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2256
2257
2258 #
2259 # NLS
2260 #
2261 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2262 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2263
2264 pgac_args="$pgac_args enable_nls"
2265
2266 # Check whether --enable-nls was given.
2267 if test "${enable_nls+set}" = set; then
2268   enableval=$enable_nls;
2269   case $enableval in
2270     yes)
2271       :
2272       ;;
2273     no)
2274       :
2275       ;;
2276     *)
2277       enable_nls=yes
2278 WANTED_LANGUAGES=$enableval
2279       ;;
2280   esac
2281
2282 else
2283   enable_nls=no
2284 fi
2285
2286
2287
2288 if test "$enable_nls" = yes; then
2289
2290 cat >>confdefs.h <<\_ACEOF
2291 #define ENABLE_NLS 1
2292 _ACEOF
2293
2294 fi
2295
2296 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2297 echo "${ECHO_T}$enable_nls" >&6; }
2298
2299
2300
2301 #
2302 # Default port number (--with-pgport), default 5432
2303 #
2304 { echo "$as_me:$LINENO: checking for default port number" >&5
2305 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2306
2307 pgac_args="$pgac_args with_pgport"
2308
2309
2310 # Check whether --with-pgport was given.
2311 if test "${with_pgport+set}" = set; then
2312   withval=$with_pgport;
2313   case $withval in
2314     yes)
2315       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2316 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2317    { (exit 1); exit 1; }; }
2318       ;;
2319     no)
2320       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2321 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2322    { (exit 1); exit 1; }; }
2323       ;;
2324     *)
2325       default_port=$withval
2326       ;;
2327   esac
2328
2329 else
2330   default_port=5432
2331 fi
2332
2333
2334 { echo "$as_me:$LINENO: result: $default_port" >&5
2335 echo "${ECHO_T}$default_port" >&6; }
2336 # Need both of these because some places want an integer and some a string
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define DEF_PGPORT ${default_port}
2340 _ACEOF
2341
2342
2343 cat >>confdefs.h <<_ACEOF
2344 #define DEF_PGPORT_STR "${default_port}"
2345 _ACEOF
2346
2347
2348
2349 #
2350 # Option to disable shared libraries
2351 #
2352
2353 pgac_args="$pgac_args enable_shared"
2354
2355 # Check whether --enable-shared was given.
2356 if test "${enable_shared+set}" = set; then
2357   enableval=$enable_shared;
2358   case $enableval in
2359     yes)
2360       :
2361       ;;
2362     no)
2363       :
2364       ;;
2365     *)
2366       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2367 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2368    { (exit 1); exit 1; }; }
2369       ;;
2370   esac
2371
2372 else
2373   enable_shared=yes
2374
2375 fi
2376
2377
2378
2379
2380 #
2381 # '-rpath'-like feature can be disabled
2382 #
2383
2384 pgac_args="$pgac_args enable_rpath"
2385
2386 # Check whether --enable-rpath was given.
2387 if test "${enable_rpath+set}" = set; then
2388   enableval=$enable_rpath;
2389   case $enableval in
2390     yes)
2391       :
2392       ;;
2393     no)
2394       :
2395       ;;
2396     *)
2397       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2398 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2399    { (exit 1); exit 1; }; }
2400       ;;
2401   esac
2402
2403 else
2404   enable_rpath=yes
2405
2406 fi
2407
2408
2409
2410
2411 #
2412 # Spinlocks
2413 #
2414
2415 pgac_args="$pgac_args enable_spinlocks"
2416
2417 # Check whether --enable-spinlocks was given.
2418 if test "${enable_spinlocks+set}" = set; then
2419   enableval=$enable_spinlocks;
2420   case $enableval in
2421     yes)
2422       :
2423       ;;
2424     no)
2425       :
2426       ;;
2427     *)
2428       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2429 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2430    { (exit 1); exit 1; }; }
2431       ;;
2432   esac
2433
2434 else
2435   enable_spinlocks=yes
2436
2437 fi
2438
2439
2440
2441 #
2442 # --enable-debug adds -g to compiler flags
2443 #
2444
2445 pgac_args="$pgac_args enable_debug"
2446
2447 # Check whether --enable-debug was given.
2448 if test "${enable_debug+set}" = set; then
2449   enableval=$enable_debug;
2450   case $enableval in
2451     yes)
2452       :
2453       ;;
2454     no)
2455       :
2456       ;;
2457     *)
2458       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2459 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2460    { (exit 1); exit 1; }; }
2461       ;;
2462   esac
2463
2464 else
2465   enable_debug=no
2466
2467 fi
2468
2469
2470
2471
2472 #
2473 # --enable-profiling enables gcc profiling
2474 #
2475
2476 pgac_args="$pgac_args enable_profiling"
2477
2478 # Check whether --enable-profiling was given.
2479 if test "${enable_profiling+set}" = set; then
2480   enableval=$enable_profiling;
2481   case $enableval in
2482     yes)
2483       :
2484       ;;
2485     no)
2486       :
2487       ;;
2488     *)
2489       { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2490 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2491    { (exit 1); exit 1; }; }
2492       ;;
2493   esac
2494
2495 else
2496   enable_profiling=no
2497
2498 fi
2499
2500
2501
2502
2503 #
2504 # --enable-coverage enables generation of code coverage metrics with gcov
2505 #
2506
2507 pgac_args="$pgac_args enable_coverage"
2508
2509 # Check whether --enable-coverage was given.
2510 if test "${enable_coverage+set}" = set; then
2511   enableval=$enable_coverage;
2512   case $enableval in
2513     yes)
2514       for ac_prog in gcov
2515 do
2516   # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy $ac_prog; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_GCOV+set}" = set; then
2521   echo $ECHO_N "(cached) $ECHO_C" >&6
2522 else
2523   if test -n "$GCOV"; then
2524   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2525 else
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 for as_dir in $PATH
2528 do
2529   IFS=$as_save_IFS
2530   test -z "$as_dir" && as_dir=.
2531   for ac_exec_ext in '' $ac_executable_extensions; do
2532   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533     ac_cv_prog_GCOV="$ac_prog"
2534     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535     break 2
2536   fi
2537 done
2538 done
2539 IFS=$as_save_IFS
2540
2541 fi
2542 fi
2543 GCOV=$ac_cv_prog_GCOV
2544 if test -n "$GCOV"; then
2545   { echo "$as_me:$LINENO: result: $GCOV" >&5
2546 echo "${ECHO_T}$GCOV" >&6; }
2547 else
2548   { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2550 fi
2551
2552
2553   test -n "$GCOV" && break
2554 done
2555
2556 if test -z "$GCOV"; then
2557   { { echo "$as_me:$LINENO: error: gcov not found" >&5
2558 echo "$as_me: error: gcov not found" >&2;}
2559    { (exit 1); exit 1; }; }
2560 fi
2561 for ac_prog in lcov
2562 do
2563   # Extract the first word of "$ac_prog", so it can be a program name with args.
2564 set dummy $ac_prog; ac_word=$2
2565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2567 if test "${ac_cv_prog_LCOV+set}" = set; then
2568   echo $ECHO_N "(cached) $ECHO_C" >&6
2569 else
2570   if test -n "$LCOV"; then
2571   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   test -z "$as_dir" && as_dir=.
2578   for ac_exec_ext in '' $ac_executable_extensions; do
2579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580     ac_cv_prog_LCOV="$ac_prog"
2581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582     break 2
2583   fi
2584 done
2585 done
2586 IFS=$as_save_IFS
2587
2588 fi
2589 fi
2590 LCOV=$ac_cv_prog_LCOV
2591 if test -n "$LCOV"; then
2592   { echo "$as_me:$LINENO: result: $LCOV" >&5
2593 echo "${ECHO_T}$LCOV" >&6; }
2594 else
2595   { echo "$as_me:$LINENO: result: no" >&5
2596 echo "${ECHO_T}no" >&6; }
2597 fi
2598
2599
2600   test -n "$LCOV" && break
2601 done
2602
2603 if test -z "$LCOV"; then
2604   { { echo "$as_me:$LINENO: error: lcov not found" >&5
2605 echo "$as_me: error: lcov not found" >&2;}
2606    { (exit 1); exit 1; }; }
2607 fi
2608 for ac_prog in genhtml
2609 do
2610   # Extract the first word of "$ac_prog", so it can be a program name with args.
2611 set dummy $ac_prog; ac_word=$2
2612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614 if test "${ac_cv_prog_GENHTML+set}" = set; then
2615   echo $ECHO_N "(cached) $ECHO_C" >&6
2616 else
2617   if test -n "$GENHTML"; then
2618   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2619 else
2620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 for as_dir in $PATH
2622 do
2623   IFS=$as_save_IFS
2624   test -z "$as_dir" && as_dir=.
2625   for ac_exec_ext in '' $ac_executable_extensions; do
2626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627     ac_cv_prog_GENHTML="$ac_prog"
2628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629     break 2
2630   fi
2631 done
2632 done
2633 IFS=$as_save_IFS
2634
2635 fi
2636 fi
2637 GENHTML=$ac_cv_prog_GENHTML
2638 if test -n "$GENHTML"; then
2639   { echo "$as_me:$LINENO: result: $GENHTML" >&5
2640 echo "${ECHO_T}$GENHTML" >&6; }
2641 else
2642   { echo "$as_me:$LINENO: result: no" >&5
2643 echo "${ECHO_T}no" >&6; }
2644 fi
2645
2646
2647   test -n "$GENHTML" && break
2648 done
2649
2650 if test -z "$GENHTML"; then
2651   { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2652 echo "$as_me: error: genhtml not found" >&2;}
2653    { (exit 1); exit 1; }; }
2654 fi
2655       ;;
2656     no)
2657       :
2658       ;;
2659     *)
2660       { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2661 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2662    { (exit 1); exit 1; }; }
2663       ;;
2664   esac
2665
2666 else
2667   enable_coverage=no
2668
2669 fi
2670
2671
2672
2673
2674 #
2675 # DTrace
2676 #
2677
2678 pgac_args="$pgac_args enable_dtrace"
2679
2680 # Check whether --enable-dtrace was given.
2681 if test "${enable_dtrace+set}" = set; then
2682   enableval=$enable_dtrace;
2683   case $enableval in
2684     yes)
2685
2686 cat >>confdefs.h <<\_ACEOF
2687 #define ENABLE_DTRACE 1
2688 _ACEOF
2689
2690 for ac_prog in dtrace
2691 do
2692   # Extract the first word of "$ac_prog", so it can be a program name with args.
2693 set dummy $ac_prog; ac_word=$2
2694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2696 if test "${ac_cv_prog_DTRACE+set}" = set; then
2697   echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699   if test -n "$DTRACE"; then
2700   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705   IFS=$as_save_IFS
2706   test -z "$as_dir" && as_dir=.
2707   for ac_exec_ext in '' $ac_executable_extensions; do
2708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2709     ac_cv_prog_DTRACE="$ac_prog"
2710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2711     break 2
2712   fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 DTRACE=$ac_cv_prog_DTRACE
2720 if test -n "$DTRACE"; then
2721   { echo "$as_me:$LINENO: result: $DTRACE" >&5
2722 echo "${ECHO_T}$DTRACE" >&6; }
2723 else
2724   { echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6; }
2726 fi
2727
2728
2729   test -n "$DTRACE" && break
2730 done
2731
2732 if test -z "$DTRACE"; then
2733   { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2734 echo "$as_me: error: dtrace not found" >&2;}
2735    { (exit 1); exit 1; }; }
2736 fi
2737
2738       ;;
2739     no)
2740       :
2741       ;;
2742     *)
2743       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2744 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2745    { (exit 1); exit 1; }; }
2746       ;;
2747   esac
2748
2749 else
2750   enable_dtrace=no
2751
2752 fi
2753
2754
2755
2756
2757 #
2758 # Block size
2759 #
2760 { echo "$as_me:$LINENO: checking for block size" >&5
2761 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2762
2763 pgac_args="$pgac_args with_blocksize"
2764
2765
2766 # Check whether --with-blocksize was given.
2767 if test "${with_blocksize+set}" = set; then
2768   withval=$with_blocksize;
2769   case $withval in
2770     yes)
2771       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2772 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2773    { (exit 1); exit 1; }; }
2774       ;;
2775     no)
2776       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2777 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2778    { (exit 1); exit 1; }; }
2779       ;;
2780     *)
2781       blocksize=$withval
2782       ;;
2783   esac
2784
2785 else
2786   blocksize=8
2787 fi
2788
2789
2790 case ${blocksize} in
2791   1) BLCKSZ=1024;;
2792   2) BLCKSZ=2048;;
2793   4) BLCKSZ=4096;;
2794   8) BLCKSZ=8192;;
2795  16) BLCKSZ=16384;;
2796  32) BLCKSZ=32768;;
2797   *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2798 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2799    { (exit 1); exit 1; }; }
2800 esac
2801 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2802 echo "${ECHO_T}${blocksize}kB" >&6; }
2803
2804
2805 cat >>confdefs.h <<_ACEOF
2806 #define BLCKSZ ${BLCKSZ}
2807 _ACEOF
2808
2809
2810 #
2811 # Relation segment size
2812 #
2813 { echo "$as_me:$LINENO: checking for segment size" >&5
2814 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2815
2816 pgac_args="$pgac_args with_segsize"
2817
2818
2819 # Check whether --with-segsize was given.
2820 if test "${with_segsize+set}" = set; then
2821   withval=$with_segsize;
2822   case $withval in
2823     yes)
2824       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2825 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2826    { (exit 1); exit 1; }; }
2827       ;;
2828     no)
2829       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2830 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2831    { (exit 1); exit 1; }; }
2832       ;;
2833     *)
2834       segsize=$withval
2835       ;;
2836   esac
2837
2838 else
2839   segsize=1
2840 fi
2841
2842
2843 # this expression is set up to avoid unnecessary integer overflow
2844 # blocksize is already guaranteed to be a factor of 1024
2845 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2846 test $? -eq 0 || exit 1
2847 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2848 echo "${ECHO_T}${segsize}GB" >&6; }
2849
2850
2851 cat >>confdefs.h <<_ACEOF
2852 #define RELSEG_SIZE ${RELSEG_SIZE}
2853 _ACEOF
2854
2855
2856 #
2857 # WAL block size
2858 #
2859 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2860 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2861
2862 pgac_args="$pgac_args with_wal_blocksize"
2863
2864
2865 # Check whether --with-wal-blocksize was given.
2866 if test "${with_wal_blocksize+set}" = set; then
2867   withval=$with_wal_blocksize;
2868   case $withval in
2869     yes)
2870       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2871 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2872    { (exit 1); exit 1; }; }
2873       ;;
2874     no)
2875       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2876 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2877    { (exit 1); exit 1; }; }
2878       ;;
2879     *)
2880       wal_blocksize=$withval
2881       ;;
2882   esac
2883
2884 else
2885   wal_blocksize=8
2886 fi
2887
2888
2889 case ${wal_blocksize} in
2890   1) XLOG_BLCKSZ=1024;;
2891   2) XLOG_BLCKSZ=2048;;
2892   4) XLOG_BLCKSZ=4096;;
2893   8) XLOG_BLCKSZ=8192;;
2894  16) XLOG_BLCKSZ=16384;;
2895  32) XLOG_BLCKSZ=32768;;
2896  64) XLOG_BLCKSZ=65536;;
2897   *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2898 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2899    { (exit 1); exit 1; }; }
2900 esac
2901 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2902 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2903
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2907 _ACEOF
2908
2909
2910 #
2911 # WAL segment size
2912 #
2913 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2914 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2915
2916 pgac_args="$pgac_args with_wal_segsize"
2917
2918
2919 # Check whether --with-wal-segsize was given.
2920 if test "${with_wal_segsize+set}" = set; then
2921   withval=$with_wal_segsize;
2922   case $withval in
2923     yes)
2924       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2925 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2926    { (exit 1); exit 1; }; }
2927       ;;
2928     no)
2929       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2930 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2931    { (exit 1); exit 1; }; }
2932       ;;
2933     *)
2934       wal_segsize=$withval
2935       ;;
2936   esac
2937
2938 else
2939   wal_segsize=16
2940 fi
2941
2942
2943 case ${wal_segsize} in
2944   1) ;;
2945   2) ;;
2946   4) ;;
2947   8) ;;
2948  16) ;;
2949  32) ;;
2950  64) ;;
2951   *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2952 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2953    { (exit 1); exit 1; }; }
2954 esac
2955 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2956 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2957
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2961 _ACEOF
2962
2963
2964 #
2965 # C compiler
2966 #
2967
2968 # For historical reasons you can also use --with-CC to specify the C compiler
2969 # to use, although the standard way to do this is to set the CC environment
2970 # variable.
2971
2972 pgac_args="$pgac_args with_CC"
2973
2974
2975 # Check whether --with-CC was given.
2976 if test "${with_CC+set}" = set; then
2977   withval=$with_CC;
2978   case $withval in
2979     yes)
2980       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2981 echo "$as_me: error: argument required for --with-CC option" >&2;}
2982    { (exit 1); exit 1; }; }
2983       ;;
2984     no)
2985       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2986 echo "$as_me: error: argument required for --with-CC option" >&2;}
2987    { (exit 1); exit 1; }; }
2988       ;;
2989     *)
2990       CC=$with_CC
2991       ;;
2992   esac
2993
2994 fi
2995
2996
2997
2998 case $template in
2999   aix) pgac_cc_list="gcc xlc";;
3000  irix) pgac_cc_list="cc";; # no gcc
3001     *) pgac_cc_list="gcc cc";;
3002 esac
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010   for ac_prog in $pgac_cc_list
3011   do
3012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3016 if test "${ac_cv_prog_CC+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019   if test -n "$CC"; then
3020   ac_cv_prog_CC="$CC" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027   for ac_exec_ext in '' $ac_executable_extensions; do
3028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034 done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 CC=$ac_cv_prog_CC
3040 if test -n "$CC"; then
3041   { echo "$as_me:$LINENO: result: $CC" >&5
3042 echo "${ECHO_T}$CC" >&6; }
3043 else
3044   { echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6; }
3046 fi
3047
3048
3049     test -n "$CC" && break
3050   done
3051 fi
3052 if test -z "$CC"; then
3053   ac_ct_CC=$CC
3054   for ac_prog in $pgac_cc_list
3055 do
3056   # Extract the first word of "$ac_prog", so it can be a program name with args.
3057 set dummy $ac_prog; ac_word=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3061   echo $ECHO_N "(cached) $ECHO_C" >&6
3062 else
3063   if test -n "$ac_ct_CC"; then
3064   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065 else
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3068 do
3069   IFS=$as_save_IFS
3070   test -z "$as_dir" && as_dir=.
3071   for ac_exec_ext in '' $ac_executable_extensions; do
3072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073     ac_cv_prog_ac_ct_CC="$ac_prog"
3074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3075     break 2
3076   fi
3077 done
3078 done
3079 IFS=$as_save_IFS
3080
3081 fi
3082 fi
3083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084 if test -n "$ac_ct_CC"; then
3085   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3086 echo "${ECHO_T}$ac_ct_CC" >&6; }
3087 else
3088   { echo "$as_me:$LINENO: result: no" >&5
3089 echo "${ECHO_T}no" >&6; }
3090 fi
3091
3092
3093   test -n "$ac_ct_CC" && break
3094 done
3095
3096   if test "x$ac_ct_CC" = x; then
3097     CC=""
3098   else
3099     case $cross_compiling:$ac_tool_warned in
3100 yes:)
3101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3102 whose name does not start with the host triplet.  If you think this
3103 configuration is useful to you, please write to autoconf@gnu.org." >&5
3104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3105 whose name does not start with the host triplet.  If you think this
3106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3107 ac_tool_warned=yes ;;
3108 esac
3109     CC=$ac_ct_CC
3110   fi
3111 fi
3112
3113
3114 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: no acceptable C compiler found in \$PATH
3117 See \`config.log' for more details." >&2;}
3118    { (exit 1); exit 1; }; }
3119
3120 # Provide some information about the compiler.
3121 echo "$as_me:$LINENO: checking for C compiler version" >&5
3122 ac_compiler=`set X $ac_compile; echo $2`
3123 { (ac_try="$ac_compiler --version >&5"
3124 case "(($ac_try" in
3125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126   *) ac_try_echo=$ac_try;;
3127 esac
3128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3129   (eval "$ac_compiler --version >&5") 2>&5
3130   ac_status=$?
3131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132   (exit $ac_status); }
3133 { (ac_try="$ac_compiler -v >&5"
3134 case "(($ac_try" in
3135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136   *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139   (eval "$ac_compiler -v >&5") 2>&5
3140   ac_status=$?
3141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142   (exit $ac_status); }
3143 { (ac_try="$ac_compiler -V >&5"
3144 case "(($ac_try" in
3145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146   *) ac_try_echo=$ac_try;;
3147 esac
3148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3149   (eval "$ac_compiler -V >&5") 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }
3153
3154 cat >conftest.$ac_ext <<_ACEOF
3155 /* confdefs.h.  */
3156 _ACEOF
3157 cat confdefs.h >>conftest.$ac_ext
3158 cat >>conftest.$ac_ext <<_ACEOF
3159 /* end confdefs.h.  */
3160
3161 int
3162 main ()
3163 {
3164
3165   ;
3166   return 0;
3167 }
3168 _ACEOF
3169 ac_clean_files_save=$ac_clean_files
3170 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3171 # Try to create an executable without -o first, disregard a.out.
3172 # It will help us diagnose broken compilers, and finding out an intuition
3173 # of exeext.
3174 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3175 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3176 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3177 #
3178 # List of possible output files, starting from the most likely.
3179 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3180 # only as a last resort.  b.out is created by i960 compilers.
3181 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3182 #
3183 # The IRIX 6 linker writes into existing files which may not be
3184 # executable, retaining their permissions.  Remove them first so a
3185 # subsequent execution test works.
3186 ac_rmfiles=
3187 for ac_file in $ac_files
3188 do
3189   case $ac_file in
3190     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3191     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3192   esac
3193 done
3194 rm -f $ac_rmfiles
3195
3196 if { (ac_try="$ac_link_default"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_link_default") 2>&5
3203   ac_status=$?
3204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205   (exit $ac_status); }; then
3206   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3207 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3208 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3209 # so that the user can short-circuit this test for compilers unknown to
3210 # Autoconf.
3211 for ac_file in $ac_files ''
3212 do
3213   test -f "$ac_file" || continue
3214   case $ac_file in
3215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3216         ;;
3217     [ab].out )
3218         # We found the default executable, but exeext='' is most
3219         # certainly right.
3220         break;;
3221     *.* )
3222         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3223         then :; else
3224            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3225         fi
3226         # We set ac_cv_exeext here because the later test for it is not
3227         # safe: cross compilers may not add the suffix if given an `-o'
3228         # argument, so we may need to know it at that point already.
3229         # Even if this section looks crufty: it has the advantage of
3230         # actually working.
3231         break;;
3232     * )
3233         break;;
3234   esac
3235 done
3236 test "$ac_cv_exeext" = no && ac_cv_exeext=
3237
3238 else
3239   ac_file=''
3240 fi
3241
3242 { echo "$as_me:$LINENO: result: $ac_file" >&5
3243 echo "${ECHO_T}$ac_file" >&6; }
3244 if test -z "$ac_file"; then
3245   echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3247
3248 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3249 See \`config.log' for more details." >&5
3250 echo "$as_me: error: C compiler cannot create executables
3251 See \`config.log' for more details." >&2;}
3252    { (exit 77); exit 77; }; }
3253 fi
3254
3255 ac_exeext=$ac_cv_exeext
3256
3257 # Check that the compiler produces executables we can run.  If not, either
3258 # the compiler is broken, or we cross compile.
3259 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3260 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3261 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3262 # If not cross compiling, check that we can run a simple program.
3263 if test "$cross_compiling" != yes; then
3264   if { ac_try='./$ac_file'
3265   { (case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270   (eval "$ac_try") 2>&5
3271   ac_status=$?
3272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273   (exit $ac_status); }; }; then
3274     cross_compiling=no
3275   else
3276     if test "$cross_compiling" = maybe; then
3277         cross_compiling=yes
3278     else
3279         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3280 If you meant to cross compile, use \`--host'.
3281 See \`config.log' for more details." >&5
3282 echo "$as_me: error: cannot run C compiled programs.
3283 If you meant to cross compile, use \`--host'.
3284 See \`config.log' for more details." >&2;}
3285    { (exit 1); exit 1; }; }
3286     fi
3287   fi
3288 fi
3289 { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3291
3292 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3293 ac_clean_files=$ac_clean_files_save
3294 # Check that the compiler produces executables we can run.  If not, either
3295 # the compiler is broken, or we cross compile.
3296 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3297 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3298 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3299 echo "${ECHO_T}$cross_compiling" >&6; }
3300
3301 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3302 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3303 if { (ac_try="$ac_link"
3304 case "(($ac_try" in
3305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306   *) ac_try_echo=$ac_try;;
3307 esac
3308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309   (eval "$ac_link") 2>&5
3310   ac_status=$?
3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312   (exit $ac_status); }; then
3313   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3315 # work properly (i.e., refer to `conftest.exe'), while it won't with
3316 # `rm'.
3317 for ac_file in conftest.exe conftest conftest.*; do
3318   test -f "$ac_file" || continue
3319   case $ac_file in
3320     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3321     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322           break;;
3323     * ) break;;
3324   esac
3325 done
3326 else
3327   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3328 See \`config.log' for more details." >&5
3329 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3330 See \`config.log' for more details." >&2;}
3331    { (exit 1); exit 1; }; }
3332 fi
3333
3334 rm -f conftest$ac_cv_exeext
3335 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3336 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3337
3338 rm -f conftest.$ac_ext
3339 EXEEXT=$ac_cv_exeext
3340 ac_exeext=$EXEEXT
3341 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3342 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3343 if test "${ac_cv_objext+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   cat >conftest.$ac_ext <<_ACEOF
3347 /* confdefs.h.  */
3348 _ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h.  */
3352
3353 int
3354 main ()
3355 {
3356
3357   ;
3358   return 0;
3359 }
3360 _ACEOF
3361 rm -f conftest.o conftest.obj
3362 if { (ac_try="$ac_compile"
3363 case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_compile") 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; then
3372   for ac_file in conftest.o conftest.obj conftest.*; do
3373   test -f "$ac_file" || continue;
3374   case $ac_file in
3375     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3376     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3377        break;;
3378   esac
3379 done
3380 else
3381   echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3385 See \`config.log' for more details." >&5
3386 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3387 See \`config.log' for more details." >&2;}
3388    { (exit 1); exit 1; }; }
3389 fi
3390
3391 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3392 fi
3393 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3394 echo "${ECHO_T}$ac_cv_objext" >&6; }
3395 OBJEXT=$ac_cv_objext
3396 ac_objext=$OBJEXT
3397 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3398 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3399 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402   cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h.  */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h.  */
3408
3409 int
3410 main ()
3411 {
3412 #ifndef __GNUC__
3413        choke me
3414 #endif
3415
3416   ;
3417   return 0;
3418 }
3419 _ACEOF
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427   (eval "$ac_compile") 2>conftest.er1
3428   ac_status=$?
3429   grep -v '^ *+' conftest.er1 >conftest.err
3430   rm -f conftest.er1
3431   cat conftest.err >&5
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); } && {
3434          test -z "$ac_c_werror_flag" ||
3435          test ! -s conftest.err
3436        } && test -s conftest.$ac_objext; then
3437   ac_compiler_gnu=yes
3438 else
3439   echo "$as_me: failed program was:" >&5
3440 sed 's/^/| /' conftest.$ac_ext >&5
3441
3442         ac_compiler_gnu=no
3443 fi
3444
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3447
3448 fi
3449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3451 GCC=`test $ac_compiler_gnu = yes && echo yes`
3452 ac_test_CFLAGS=${CFLAGS+set}
3453 ac_save_CFLAGS=$CFLAGS
3454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3456 if test "${ac_cv_prog_cc_g+set}" = set; then
3457   echo $ECHO_N "(cached) $ECHO_C" >&6
3458 else
3459   ac_save_c_werror_flag=$ac_c_werror_flag
3460    ac_c_werror_flag=yes
3461    ac_cv_prog_cc_g=no
3462    CFLAGS="-g"
3463    cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469
3470 int
3471 main ()
3472 {
3473
3474   ;
3475   return 0;
3476 }
3477 _ACEOF
3478 rm -f conftest.$ac_objext
3479 if { (ac_try="$ac_compile"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485   (eval "$ac_compile") 2>conftest.er1
3486   ac_status=$?
3487   grep -v '^ *+' conftest.er1 >conftest.err
3488   rm -f conftest.er1
3489   cat conftest.err >&5
3490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491   (exit $ac_status); } && {
3492          test -z "$ac_c_werror_flag" ||
3493          test ! -s conftest.err
3494        } && test -s conftest.$ac_objext; then
3495   ac_cv_prog_cc_g=yes
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500         CFLAGS=""
3501       cat >conftest.$ac_ext <<_ACEOF
3502 /* confdefs.h.  */
3503 _ACEOF
3504 cat confdefs.h >>conftest.$ac_ext
3505 cat >>conftest.$ac_ext <<_ACEOF
3506 /* end confdefs.h.  */
3507
3508 int
3509 main ()
3510 {
3511
3512   ;
3513   return 0;
3514 }
3515 _ACEOF
3516 rm -f conftest.$ac_objext
3517 if { (ac_try="$ac_compile"
3518 case "(($ac_try" in
3519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520   *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523   (eval "$ac_compile") 2>conftest.er1
3524   ac_status=$?
3525   grep -v '^ *+' conftest.er1 >conftest.err
3526   rm -f conftest.er1
3527   cat conftest.err >&5
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); } && {
3530          test -z "$ac_c_werror_flag" ||
3531          test ! -s conftest.err
3532        } && test -s conftest.$ac_objext; then
3533   :
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538         ac_c_werror_flag=$ac_save_c_werror_flag
3539          CFLAGS="-g"
3540          cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546
3547 int
3548 main ()
3549 {
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 rm -f conftest.$ac_objext
3556 if { (ac_try="$ac_compile"
3557 case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_compile") 2>conftest.er1
3563   ac_status=$?
3564   grep -v '^ *+' conftest.er1 >conftest.err
3565   rm -f conftest.er1
3566   cat conftest.err >&5
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } && {
3569          test -z "$ac_c_werror_flag" ||
3570          test ! -s conftest.err
3571        } && test -s conftest.$ac_objext; then
3572   ac_cv_prog_cc_g=yes
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577
3578 fi
3579
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3581 fi
3582
3583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 fi
3585
3586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587    ac_c_werror_flag=$ac_save_c_werror_flag
3588 fi
3589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3590 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3591 if test "$ac_test_CFLAGS" = set; then
3592   CFLAGS=$ac_save_CFLAGS
3593 elif test $ac_cv_prog_cc_g = yes; then
3594   if test "$GCC" = yes; then
3595     CFLAGS="-g -O2"
3596   else
3597     CFLAGS="-g"
3598   fi
3599 else
3600   if test "$GCC" = yes; then
3601     CFLAGS="-O2"
3602   else
3603     CFLAGS=
3604   fi
3605 fi
3606 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3607 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3608 if test "${ac_cv_prog_cc_c89+set}" = set; then
3609   echo $ECHO_N "(cached) $ECHO_C" >&6
3610 else
3611   ac_cv_prog_cc_c89=no
3612 ac_save_CC=$CC
3613 cat >conftest.$ac_ext <<_ACEOF
3614 /* confdefs.h.  */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h.  */
3619 #include <stdarg.h>
3620 #include <stdio.h>
3621 #include <sys/types.h>
3622 #include <sys/stat.h>
3623 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3624 struct buf { int x; };
3625 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3626 static char *e (p, i)
3627      char **p;
3628      int i;
3629 {
3630   return p[i];
3631 }
3632 static char *f (char * (*g) (char **, int), char **p, ...)
3633 {
3634   char *s;
3635   va_list v;
3636   va_start (v,p);
3637   s = g (p, va_arg (v,int));
3638   va_end (v);
3639   return s;
3640 }
3641
3642 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3643    function prototypes and stuff, but not '\xHH' hex character constants.
3644    These don't provoke an error unfortunately, instead are silently treated
3645    as 'x'.  The following induces an error, until -std is added to get
3646    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3647    array size at least.  It's necessary to write '\x00'==0 to get something
3648    that's true only with -std.  */
3649 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3650
3651 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3652    inside strings and character constants.  */
3653 #define FOO(x) 'x'
3654 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3655
3656 int test (int i, double x);
3657 struct s1 {int (*f) (int a);};
3658 struct s2 {int (*f) (double a);};
3659 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3660 int argc;
3661 char **argv;
3662 int
3663 main ()
3664 {
3665 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3666   ;
3667   return 0;
3668 }
3669 _ACEOF
3670 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3671         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3672 do
3673   CC="$ac_save_CC $ac_arg"
3674   rm -f conftest.$ac_objext
3675 if { (ac_try="$ac_compile"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_compile") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } && {
3688          test -z "$ac_c_werror_flag" ||
3689          test ! -s conftest.err
3690        } && test -s conftest.$ac_objext; then
3691   ac_cv_prog_cc_c89=$ac_arg
3692 else
3693   echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext
3700   test "x$ac_cv_prog_cc_c89" != "xno" && break
3701 done
3702 rm -f conftest.$ac_ext
3703 CC=$ac_save_CC
3704
3705 fi
3706 # AC_CACHE_VAL
3707 case "x$ac_cv_prog_cc_c89" in
3708   x)
3709     { echo "$as_me:$LINENO: result: none needed" >&5
3710 echo "${ECHO_T}none needed" >&6; } ;;
3711   xno)
3712     { echo "$as_me:$LINENO: result: unsupported" >&5
3713 echo "${ECHO_T}unsupported" >&6; } ;;
3714   *)
3715     CC="$CC $ac_cv_prog_cc_c89"
3716     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3717 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3718 esac
3719
3720
3721 ac_ext=c
3722 ac_cpp='$CPP $CPPFLAGS'
3723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3726
3727
3728 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3729 # but has idiosyncrasies of its own.  We assume icc will define
3730 # __INTEL_COMPILER regardless of CFLAGS.
3731
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h.  */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h.  */
3738
3739 int
3740 main ()
3741 {
3742 #ifndef __INTEL_COMPILER
3743 choke me
3744 #endif
3745   ;
3746   return 0;
3747 }
3748 _ACEOF
3749 rm -f conftest.$ac_objext
3750 if { (ac_try="$ac_compile"
3751 case "(($ac_try" in
3752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753   *) ac_try_echo=$ac_try;;
3754 esac
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756   (eval "$ac_compile") 2>conftest.er1
3757   ac_status=$?
3758   grep -v '^ *+' conftest.er1 >conftest.err
3759   rm -f conftest.er1
3760   cat conftest.err >&5
3761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762   (exit $ac_status); } && {
3763          test -z "$ac_c_werror_flag" ||
3764          test ! -s conftest.err
3765        } && test -s conftest.$ac_objext; then
3766   ICC=yes
3767 else
3768   echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3770
3771         ICC=no
3772 fi
3773
3774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3775
3776 # Check if it's Sun Studio compiler. We assume that
3777 # __SUNPRO_C will be defined for Sun Studio compilers
3778 cat >conftest.$ac_ext <<_ACEOF
3779 /* confdefs.h.  */
3780 _ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h.  */
3784
3785 int
3786 main ()
3787 {
3788 #ifndef __SUNPRO_C
3789 choke me
3790 #endif
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 rm -f conftest.$ac_objext
3796 if { (ac_try="$ac_compile"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3802   (eval "$ac_compile") 2>conftest.er1
3803   ac_status=$?
3804   grep -v '^ *+' conftest.er1 >conftest.err
3805   rm -f conftest.er1
3806   cat conftest.err >&5
3807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3808   (exit $ac_status); } && {
3809          test -z "$ac_c_werror_flag" ||
3810          test ! -s conftest.err
3811        } && test -s conftest.$ac_objext; then
3812   SUN_STUDIO_CC=yes
3813 else
3814   echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3816
3817         SUN_STUDIO_CC=no
3818 fi
3819
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821
3822
3823
3824 unset CFLAGS
3825
3826 #
3827 # Read the template
3828 #
3829 . "$srcdir/src/template/$template" || exit
3830
3831 # CFLAGS are selected so:
3832 # If the user specifies something in the environment, that is used.
3833 # else:  If the template file set something, that is used.
3834 # else:  If coverage was enabled, don't set anything.
3835 # else:  If the compiler is GCC, then we use -O2.
3836 # else:  If the compiler is something else, then we use -O.
3837
3838 if test "$ac_env_CFLAGS_set" = set; then
3839   CFLAGS=$ac_env_CFLAGS_value
3840 elif test "${CFLAGS+set}" = set; then
3841   : # (keep what template set)
3842 elif test "$enable_coverage" = yes; then
3843   : # no optimization by default
3844 elif test "$GCC" = yes; then
3845   CFLAGS="-O2"
3846 else
3847   # if the user selected debug mode, don't use -O
3848   if test "$enable_debug" != yes; then
3849     CFLAGS="-O"
3850   fi
3851 fi
3852
3853 # Some versions of GCC support some additional useful warning flags.
3854 # Check whether they are supported, and add them to CFLAGS if so.
3855 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3856
3857 if test "$GCC" = yes -a "$ICC" = no; then
3858   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3859   # These work in some but not all gcc versions
3860   { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3861 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3862 pgac_save_CFLAGS=$CFLAGS
3863 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h.  */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h.  */
3870
3871 int
3872 main ()
3873 {
3874
3875   ;
3876   return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883   *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886   (eval "$ac_compile") 2>conftest.er1
3887   ac_status=$?
3888   grep -v '^ *+' conftest.er1 >conftest.err
3889   rm -f conftest.er1
3890   cat conftest.err >&5
3891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892   (exit $ac_status); } && {
3893          test -z "$ac_c_werror_flag" ||
3894          test ! -s conftest.err
3895        } && test -s conftest.$ac_objext; then
3896   { echo "$as_me:$LINENO: result: yes" >&5
3897 echo "${ECHO_T}yes" >&6; }
3898 else
3899   echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3901
3902         CFLAGS="$pgac_save_CFLAGS"
3903                     { echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6; }
3905 fi
3906
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908
3909   { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3910 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3911 pgac_save_CFLAGS=$CFLAGS
3912 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3913 cat >conftest.$ac_ext <<_ACEOF
3914 /* confdefs.h.  */
3915 _ACEOF
3916 cat confdefs.h >>conftest.$ac_ext
3917 cat >>conftest.$ac_ext <<_ACEOF
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (ac_try="$ac_compile"
3930 case "(($ac_try" in
3931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932   *) ac_try_echo=$ac_try;;
3933 esac
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935   (eval "$ac_compile") 2>conftest.er1
3936   ac_status=$?
3937   grep -v '^ *+' conftest.er1 >conftest.err
3938   rm -f conftest.er1
3939   cat conftest.err >&5
3940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941   (exit $ac_status); } && {
3942          test -z "$ac_c_werror_flag" ||
3943          test ! -s conftest.err
3944        } && test -s conftest.$ac_objext; then
3945   { echo "$as_me:$LINENO: result: yes" >&5
3946 echo "${ECHO_T}yes" >&6; }
3947 else
3948   echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951         CFLAGS="$pgac_save_CFLAGS"
3952                     { echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6; }
3954 fi
3955
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957
3958   # Disable strict-aliasing rules; needed for gcc 3.3+
3959   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3960 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3961 pgac_save_CFLAGS=$CFLAGS
3962 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3963 cat >conftest.$ac_ext <<_ACEOF
3964 /* confdefs.h.  */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h.  */
3969
3970 int
3971 main ()
3972 {
3973
3974   ;
3975   return 0;
3976 }
3977 _ACEOF
3978 rm -f conftest.$ac_objext
3979 if { (ac_try="$ac_compile"
3980 case "(($ac_try" in
3981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982   *) ac_try_echo=$ac_try;;
3983 esac
3984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985   (eval "$ac_compile") 2>conftest.er1
3986   ac_status=$?
3987   grep -v '^ *+' conftest.er1 >conftest.err
3988   rm -f conftest.er1
3989   cat conftest.err >&5
3990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991   (exit $ac_status); } && {
3992          test -z "$ac_c_werror_flag" ||
3993          test ! -s conftest.err
3994        } && test -s conftest.$ac_objext; then
3995   { echo "$as_me:$LINENO: result: yes" >&5
3996 echo "${ECHO_T}yes" >&6; }
3997 else
3998   echo "$as_me: failed program was:" >&5
3999 sed 's/^/| /' conftest.$ac_ext >&5
4000
4001         CFLAGS="$pgac_save_CFLAGS"
4002                     { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4004 fi
4005
4006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4007
4008   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4009   { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
4010 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
4011 pgac_save_CFLAGS=$CFLAGS
4012 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4013 cat >conftest.$ac_ext <<_ACEOF
4014 /* confdefs.h.  */
4015 _ACEOF
4016 cat confdefs.h >>conftest.$ac_ext
4017 cat >>conftest.$ac_ext <<_ACEOF
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035   (eval "$ac_compile") 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } && {
4042          test -z "$ac_c_werror_flag" ||
4043          test ! -s conftest.err
4044        } && test -s conftest.$ac_objext; then
4045   { echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6; }
4047 else
4048   echo "$as_me: failed program was:" >&5
4049 sed 's/^/| /' conftest.$ac_ext >&5
4050
4051         CFLAGS="$pgac_save_CFLAGS"
4052                     { echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6; }
4054 fi
4055
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057
4058 elif test "$ICC" = yes; then
4059   # Intel's compiler has a bug/misoptimization in checking for
4060   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4061   { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4062 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4063 pgac_save_CFLAGS=$CFLAGS
4064 CFLAGS="$pgac_save_CFLAGS -mp1"
4065 cat >conftest.$ac_ext <<_ACEOF
4066 /* confdefs.h.  */
4067 _ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h.  */
4071
4072 int
4073 main ()
4074 {
4075
4076   ;
4077   return 0;
4078 }
4079 _ACEOF
4080 rm -f conftest.$ac_objext
4081 if { (ac_try="$ac_compile"
4082 case "(($ac_try" in
4083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084   *) ac_try_echo=$ac_try;;
4085 esac
4086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4087   (eval "$ac_compile") 2>conftest.er1
4088   ac_status=$?
4089   grep -v '^ *+' conftest.er1 >conftest.err
4090   rm -f conftest.er1
4091   cat conftest.err >&5
4092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093   (exit $ac_status); } && {
4094          test -z "$ac_c_werror_flag" ||
4095          test ! -s conftest.err
4096        } && test -s conftest.$ac_objext; then
4097   { echo "$as_me:$LINENO: result: yes" >&5
4098 echo "${ECHO_T}yes" >&6; }
4099 else
4100   echo "$as_me: failed program was:" >&5
4101 sed 's/^/| /' conftest.$ac_ext >&5
4102
4103         CFLAGS="$pgac_save_CFLAGS"
4104                     { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109
4110   # Make sure strict aliasing is off (though this is said to be the default)
4111   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4112 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4113 pgac_save_CFLAGS=$CFLAGS
4114 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4115 cat >conftest.$ac_ext <<_ACEOF
4116 /* confdefs.h.  */
4117 _ACEOF
4118 cat confdefs.h >>conftest.$ac_ext
4119 cat >>conftest.$ac_ext <<_ACEOF
4120 /* end confdefs.h.  */
4121
4122 int
4123 main ()
4124 {
4125
4126   ;
4127   return 0;
4128 }
4129 _ACEOF
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4132 case "(($ac_try" in
4133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134   *) ac_try_echo=$ac_try;;
4135 esac
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137   (eval "$ac_compile") 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } && {
4144          test -z "$ac_c_werror_flag" ||
4145          test ! -s conftest.err
4146        } && test -s conftest.$ac_objext; then
4147   { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4149 else
4150   echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153         CFLAGS="$pgac_save_CFLAGS"
4154                     { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4156 fi
4157
4158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159
4160 elif test x"${CC}" = x"xlc"; then
4161   # AIX xlc has to have strict aliasing turned off too
4162   { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4163 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4164 pgac_save_CFLAGS=$CFLAGS
4165 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4166 cat >conftest.$ac_ext <<_ACEOF
4167 /* confdefs.h.  */
4168 _ACEOF
4169 cat confdefs.h >>conftest.$ac_ext
4170 cat >>conftest.$ac_ext <<_ACEOF
4171 /* end confdefs.h.  */
4172
4173 int
4174 main ()
4175 {
4176
4177   ;
4178   return 0;
4179 }
4180 _ACEOF
4181 rm -f conftest.$ac_objext
4182 if { (ac_try="$ac_compile"
4183 case "(($ac_try" in
4184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185   *) ac_try_echo=$ac_try;;
4186 esac
4187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4188   (eval "$ac_compile") 2>conftest.er1
4189   ac_status=$?
4190   grep -v '^ *+' conftest.er1 >conftest.err
4191   rm -f conftest.er1
4192   cat conftest.err >&5
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); } && {
4195          test -z "$ac_c_werror_flag" ||
4196          test ! -s conftest.err
4197        } && test -s conftest.$ac_objext; then
4198   { echo "$as_me:$LINENO: result: yes" >&5
4199 echo "${ECHO_T}yes" >&6; }
4200 else
4201   echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4203
4204         CFLAGS="$pgac_save_CFLAGS"
4205                     { echo "$as_me:$LINENO: result: no" >&5
4206 echo "${ECHO_T}no" >&6; }
4207 fi
4208
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210
4211 fi
4212
4213 # supply -g if --enable-debug
4214 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4215   CFLAGS="$CFLAGS -g"
4216 fi
4217
4218 # enable code coverage if --enable-coverage
4219 if test "$enable_coverage" = yes; then
4220   if test "$GCC" = yes; then
4221     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4222   else
4223     { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4224 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4225    { (exit 1); exit 1; }; }
4226   fi
4227 fi
4228
4229 # enable profiling if --enable-profiling
4230 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4231   if test "$GCC" = yes; then
4232
4233 cat >>confdefs.h <<\_ACEOF
4234 #define PROFILE_PID_DIR 1
4235 _ACEOF
4236
4237     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4238   else
4239     { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4240 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4241    { (exit 1); exit 1; }; }
4242   fi
4243 fi
4244
4245 # We already have this in Makefile.win32, but configure needs it too
4246 if test "$PORTNAME" = "win32"; then
4247   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4248 fi
4249
4250 # Check if the compiler still works with the template settings
4251 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4252 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h.  */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h.  */
4259
4260 int
4261 main ()
4262 {
4263 return 0;
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 rm -f conftest.$ac_objext conftest$ac_exeext
4269 if { (ac_try="$ac_link"
4270 case "(($ac_try" in
4271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272   *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275   (eval "$ac_link") 2>conftest.er1
4276   ac_status=$?
4277   grep -v '^ *+' conftest.er1 >conftest.err
4278   rm -f conftest.er1
4279   cat conftest.err >&5
4280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281   (exit $ac_status); } && {
4282          test -z "$ac_c_werror_flag" ||
4283          test ! -s conftest.err
4284        } && test -s conftest$ac_exeext &&
4285        $as_test_x conftest$ac_exeext; then
4286   { echo "$as_me:$LINENO: result: yes" >&5
4287 echo "${ECHO_T}yes" >&6; }
4288 else
4289   echo "$as_me: failed program was:" >&5
4290 sed 's/^/| /' conftest.$ac_ext >&5
4291
4292         { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4295 echo "$as_me: error: cannot proceed" >&2;}
4296    { (exit 1); exit 1; }; }
4297 fi
4298
4299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4300       conftest$ac_exeext conftest.$ac_ext
4301
4302 # Defend against gcc -ffast-math
4303 if test "$GCC" = yes; then
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310
4311 int
4312 main ()
4313 {
4314 #ifdef __FAST_MATH__
4315 choke me
4316 #endif
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4323 case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328   (eval "$ac_compile") 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } && {
4335          test -z "$ac_c_werror_flag" ||
4336          test ! -s conftest.err
4337        } && test -s conftest.$ac_objext; then
4338   :
4339 else
4340   echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4342
4343         { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4344 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4345    { (exit 1); exit 1; }; }
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349 fi
4350
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4356 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4357 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4358 # On Suns, sometimes $CPP names a directory.
4359 if test -n "$CPP" && test -d "$CPP"; then
4360   CPP=
4361 fi
4362 if test -z "$CPP"; then
4363   if test "${ac_cv_prog_CPP+set}" = set; then
4364   echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366       # Double quotes because CPP needs to be expanded
4367     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4368     do
4369       ac_preproc_ok=false
4370 for ac_c_preproc_warn_flag in '' yes
4371 do
4372   # Use a header file that comes with gcc, so configuring glibc
4373   # with a fresh cross-compiler works.
4374   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4375   # <limits.h> exists even on freestanding compilers.
4376   # On the NeXT, cc -E runs the code through the compiler's parser,
4377   # not just through cpp. "Syntax error" is here to catch this case.
4378   cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h.  */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h.  */
4384 #ifdef __STDC__
4385 # include <limits.h>
4386 #else
4387 # include <assert.h>
4388 #endif
4389                      Syntax error
4390 _ACEOF
4391 if { (ac_try="$ac_cpp conftest.$ac_ext"
4392 case "(($ac_try" in
4393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394   *) ac_try_echo=$ac_try;;
4395 esac
4396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4398   ac_status=$?
4399   grep -v '^ *+' conftest.er1 >conftest.err
4400   rm -f conftest.er1
4401   cat conftest.err >&5
4402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403   (exit $ac_status); } >/dev/null && {
4404          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4405          test ! -s conftest.err
4406        }; then
4407   :
4408 else
4409   echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4411
4412   # Broken: fails on valid input.
4413 continue
4414 fi
4415
4416 rm -f conftest.err conftest.$ac_ext
4417
4418   # OK, works on sane cases.  Now check whether nonexistent headers
4419   # can be detected and how.
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426 #include <ac_nonexistent.h>
4427 _ACEOF
4428 if { (ac_try="$ac_cpp conftest.$ac_ext"
4429 case "(($ac_try" in
4430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431   *) ac_try_echo=$ac_try;;
4432 esac
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4435   ac_status=$?
4436   grep -v '^ *+' conftest.er1 >conftest.err
4437   rm -f conftest.er1
4438   cat conftest.err >&5
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); } >/dev/null && {
4441          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4442          test ! -s conftest.err
4443        }; then
4444   # Broken: success on invalid input.
4445 continue
4446 else
4447   echo "$as_me: failed program was:" >&5
4448 sed 's/^/| /' conftest.$ac_ext >&5
4449
4450   # Passes both tests.
4451 ac_preproc_ok=:
4452 break
4453 fi
4454
4455 rm -f conftest.err conftest.$ac_ext
4456
4457 done
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then
4461   break
4462 fi
4463
4464     done
4465     ac_cv_prog_CPP=$CPP
4466
4467 fi
4468   CPP=$ac_cv_prog_CPP
4469 else
4470   ac_cv_prog_CPP=$CPP
4471 fi
4472 { echo "$as_me:$LINENO: result: $CPP" >&5
4473 echo "${ECHO_T}$CPP" >&6; }
4474 ac_preproc_ok=false
4475 for ac_c_preproc_warn_flag in '' yes
4476 do
4477   # Use a header file that comes with gcc, so configuring glibc
4478   # with a fresh cross-compiler works.
4479   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480   # <limits.h> exists even on freestanding compilers.
4481   # On the NeXT, cc -E runs the code through the compiler's parser,
4482   # not just through cpp. "Syntax error" is here to catch this case.
4483   cat >conftest.$ac_ext <<_ACEOF
4484 /* confdefs.h.  */
4485 _ACEOF
4486 cat confdefs.h >>conftest.$ac_ext
4487 cat >>conftest.$ac_ext <<_ACEOF
4488 /* end confdefs.h.  */
4489 #ifdef __STDC__
4490 # include <limits.h>
4491 #else
4492 # include <assert.h>
4493 #endif
4494                      Syntax error
4495 _ACEOF
4496 if { (ac_try="$ac_cpp conftest.$ac_ext"
4497 case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4503   ac_status=$?
4504   grep -v '^ *+' conftest.er1 >conftest.err
4505   rm -f conftest.er1
4506   cat conftest.err >&5
4507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); } >/dev/null && {
4509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510          test ! -s conftest.err
4511        }; then
4512   :
4513 else
4514   echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517   # Broken: fails on valid input.
4518 continue
4519 fi
4520
4521 rm -f conftest.err conftest.$ac_ext
4522
4523   # OK, works on sane cases.  Now check whether nonexistent headers
4524   # can be detected and how.
4525   cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 #include <ac_nonexistent.h>
4532 _ACEOF
4533 if { (ac_try="$ac_cpp conftest.$ac_ext"
4534 case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4540   ac_status=$?
4541   grep -v '^ *+' conftest.er1 >conftest.err
4542   rm -f conftest.er1
4543   cat conftest.err >&5
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } >/dev/null && {
4546          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4547          test ! -s conftest.err
4548        }; then
4549   # Broken: success on invalid input.
4550 continue
4551 else
4552   echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555   # Passes both tests.
4556 ac_preproc_ok=:
4557 break
4558 fi
4559
4560 rm -f conftest.err conftest.$ac_ext
4561
4562 done
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then
4566   :
4567 else
4568   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details." >&2;}
4572    { (exit 1); exit 1; }; }
4573 fi
4574
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581
4582
4583 # Create compiler version string
4584 if test x"$GCC" = x"yes" ; then
4585   cc_string="GCC `${CC} --version | sed q`"
4586 else
4587   cc_string=$CC
4588 fi
4589
4590 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4591 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_GREP+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   # Extract the first word of "grep ggrep" to use in msg output
4596 if test -z "$GREP"; then
4597 set dummy grep ggrep; ac_prog_name=$2
4598 if test "${ac_cv_path_GREP+set}" = set; then
4599   echo $ECHO_N "(cached) $ECHO_C" >&6
4600 else
4601   ac_path_GREP_found=false
4602 # Loop through the user's path and test for each of PROGNAME-LIST
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4605 do
4606   IFS=$as_save_IFS
4607   test -z "$as_dir" && as_dir=.
4608   for ac_prog in grep ggrep; do
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4611     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4612     # Check for GNU ac_path_GREP and select it if it is found.
4613   # Check for GNU $ac_path_GREP
4614 case `"$ac_path_GREP" --version 2>&1` in
4615 *GNU*)
4616   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4617 *)
4618   ac_count=0
4619   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4620   while :
4621   do
4622     cat "conftest.in" "conftest.in" >"conftest.tmp"
4623     mv "conftest.tmp" "conftest.in"
4624     cp "conftest.in" "conftest.nl"
4625     echo 'GREP' >> "conftest.nl"
4626     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4627     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4628     ac_count=`expr $ac_count + 1`
4629     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4630       # Best one so far, save it but keep looking for a better one
4631       ac_cv_path_GREP="$ac_path_GREP"
4632       ac_path_GREP_max=$ac_count
4633     fi
4634     # 10*(2^10) chars as input seems more than enough
4635     test $ac_count -gt 10 && break
4636   done
4637   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4638 esac
4639
4640
4641     $ac_path_GREP_found && break 3
4642   done
4643 done
4644
4645 done
4646 IFS=$as_save_IFS
4647
4648
4649 fi
4650
4651 GREP="$ac_cv_path_GREP"
4652 if test -z "$GREP"; then
4653   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4654 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4655    { (exit 1); exit 1; }; }
4656 fi
4657
4658 else
4659   ac_cv_path_GREP=$GREP
4660 fi
4661
4662
4663 fi
4664 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4665 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4666  GREP="$ac_cv_path_GREP"
4667
4668
4669 { echo "$as_me:$LINENO: checking for egrep" >&5
4670 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4671 if test "${ac_cv_path_EGREP+set}" = set; then
4672   echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4675    then ac_cv_path_EGREP="$GREP -E"
4676    else
4677      # Extract the first word of "egrep" to use in msg output
4678 if test -z "$EGREP"; then
4679 set dummy egrep; ac_prog_name=$2
4680 if test "${ac_cv_path_EGREP+set}" = set; then
4681   echo $ECHO_N "(cached) $ECHO_C" >&6
4682 else
4683   ac_path_EGREP_found=false
4684 # Loop through the user's path and test for each of PROGNAME-LIST
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4687 do
4688   IFS=$as_save_IFS
4689   test -z "$as_dir" && as_dir=.
4690   for ac_prog in egrep; do
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4693     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4694     # Check for GNU ac_path_EGREP and select it if it is found.
4695   # Check for GNU $ac_path_EGREP
4696 case `"$ac_path_EGREP" --version 2>&1` in
4697 *GNU*)
4698   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4699 *)
4700   ac_count=0
4701   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4702   while :
4703   do
4704     cat "conftest.in" "conftest.in" >"conftest.tmp"
4705     mv "conftest.tmp" "conftest.in"
4706     cp "conftest.in" "conftest.nl"
4707     echo 'EGREP' >> "conftest.nl"
4708     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4709     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4710     ac_count=`expr $ac_count + 1`
4711     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4712       # Best one so far, save it but keep looking for a better one
4713       ac_cv_path_EGREP="$ac_path_EGREP"
4714       ac_path_EGREP_max=$ac_count
4715     fi
4716     # 10*(2^10) chars as input seems more than enough
4717     test $ac_count -gt 10 && break
4718   done
4719   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4720 esac
4721
4722
4723     $ac_path_EGREP_found && break 3
4724   done
4725 done
4726
4727 done
4728 IFS=$as_save_IFS
4729
4730
4731 fi
4732
4733 EGREP="$ac_cv_path_EGREP"
4734 if test -z "$EGREP"; then
4735   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4736 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4737    { (exit 1); exit 1; }; }
4738 fi
4739
4740 else
4741   ac_cv_path_EGREP=$EGREP
4742 fi
4743
4744
4745    fi
4746 fi
4747 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4748 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4749  EGREP="$ac_cv_path_EGREP"
4750
4751
4752 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4753 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4754 if test "${ac_cv_header_stdc+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   cat >conftest.$ac_ext <<_ACEOF
4758 /* confdefs.h.  */
4759 _ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h.  */
4763 #include <stdlib.h>
4764 #include <stdarg.h>
4765 #include <string.h>
4766 #include <float.h>
4767
4768 int
4769 main ()
4770 {
4771
4772   ;
4773   return 0;
4774 }
4775 _ACEOF
4776 rm -f conftest.$ac_objext
4777 if { (ac_try="$ac_compile"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783   (eval "$ac_compile") 2>conftest.er1
4784   ac_status=$?
4785   grep -v '^ *+' conftest.er1 >conftest.err
4786   rm -f conftest.er1
4787   cat conftest.err >&5
4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789   (exit $ac_status); } && {
4790          test -z "$ac_c_werror_flag" ||
4791          test ! -s conftest.err
4792        } && test -s conftest.$ac_objext; then
4793   ac_cv_header_stdc=yes
4794 else
4795   echo "$as_me: failed program was:" >&5
4796 sed 's/^/| /' conftest.$ac_ext >&5
4797
4798         ac_cv_header_stdc=no
4799 fi
4800
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802
4803 if test $ac_cv_header_stdc = yes; then
4804   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4805   cat >conftest.$ac_ext <<_ACEOF
4806 /* confdefs.h.  */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h.  */
4811 #include <string.h>
4812
4813 _ACEOF
4814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4815   $EGREP "memchr" >/dev/null 2>&1; then
4816   :
4817 else
4818   ac_cv_header_stdc=no
4819 fi
4820 rm -f conftest*
4821
4822 fi
4823
4824 if test $ac_cv_header_stdc = yes; then
4825   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4826   cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832 #include <stdlib.h>
4833
4834 _ACEOF
4835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4836   $EGREP "free" >/dev/null 2>&1; then
4837   :
4838 else
4839   ac_cv_header_stdc=no
4840 fi
4841 rm -f conftest*
4842
4843 fi
4844
4845 if test $ac_cv_header_stdc = yes; then
4846   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4847   if test "$cross_compiling" = yes; then
4848   :
4849 else
4850   cat >conftest.$ac_ext <<_ACEOF
4851 /* confdefs.h.  */
4852 _ACEOF
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h.  */
4856 #include <ctype.h>
4857 #include <stdlib.h>
4858 #if ((' ' & 0x0FF) == 0x020)
4859 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4860 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4861 #else
4862 # define ISLOWER(c) \
4863                    (('a' <= (c) && (c) <= 'i') \
4864                      || ('j' <= (c) && (c) <= 'r') \
4865                      || ('s' <= (c) && (c) <= 'z'))
4866 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4867 #endif
4868
4869 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4870 int
4871 main ()
4872 {
4873   int i;
4874   for (i = 0; i < 256; i++)
4875     if (XOR (islower (i), ISLOWER (i))
4876         || toupper (i) != TOUPPER (i))
4877       return 2;
4878   return 0;
4879 }
4880 _ACEOF
4881 rm -f conftest$ac_exeext
4882 if { (ac_try="$ac_link"
4883 case "(($ac_try" in
4884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885   *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888   (eval "$ac_link") 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4892   { (case "(($ac_try" in
4893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4894   *) ac_try_echo=$ac_try;;
4895 esac
4896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4897   (eval "$ac_try") 2>&5
4898   ac_status=$?
4899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4900   (exit $ac_status); }; }; then
4901   :
4902 else
4903   echo "$as_me: program exited with status $ac_status" >&5
4904 echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907 ( exit $ac_status )
4908 ac_cv_header_stdc=no
4909 fi
4910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4911 fi
4912
4913
4914 fi
4915 fi
4916 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4917 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4918 if test $ac_cv_header_stdc = yes; then
4919
4920 cat >>confdefs.h <<\_ACEOF
4921 #define STDC_HEADERS 1
4922 _ACEOF
4923
4924 fi
4925
4926 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4937                   inttypes.h stdint.h unistd.h
4938 do
4939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4943   echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945   cat >conftest.$ac_ext <<_ACEOF
4946 /* confdefs.h.  */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h.  */
4951 $ac_includes_default
4952
4953 #include <$ac_header>
4954 _ACEOF
4955 rm -f conftest.$ac_objext
4956 if { (ac_try="$ac_compile"
4957 case "(($ac_try" in
4958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4959   *) ac_try_echo=$ac_try;;
4960 esac
4961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4962   (eval "$ac_compile") 2>conftest.er1
4963   ac_status=$?
4964   grep -v '^ *+' conftest.er1 >conftest.err
4965   rm -f conftest.er1
4966   cat conftest.err >&5
4967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968   (exit $ac_status); } && {
4969          test -z "$ac_c_werror_flag" ||
4970          test ! -s conftest.err
4971        } && test -s conftest.$ac_objext; then
4972   eval "$as_ac_Header=yes"
4973 else
4974   echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977         eval "$as_ac_Header=no"
4978 fi
4979
4980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4981 fi
4982 ac_res=`eval echo '${'$as_ac_Header'}'`
4983                { echo "$as_me:$LINENO: result: $ac_res" >&5
4984 echo "${ECHO_T}$ac_res" >&6; }
4985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4986   cat >>confdefs.h <<_ACEOF
4987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 _ACEOF
4989
4990 fi
4991
4992 done
4993
4994
4995 { echo "$as_me:$LINENO: checking for void *" >&5
4996 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
4997 if test "${ac_cv_type_void_p+set}" = set; then
4998   echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000   cat >conftest.$ac_ext <<_ACEOF
5001 /* confdefs.h.  */
5002 _ACEOF
5003 cat confdefs.h >>conftest.$ac_ext
5004 cat >>conftest.$ac_ext <<_ACEOF
5005 /* end confdefs.h.  */
5006 $ac_includes_default
5007 typedef void * ac__type_new_;
5008 int
5009 main ()
5010 {
5011 if ((ac__type_new_ *) 0)
5012   return 0;
5013 if (sizeof (ac__type_new_))
5014   return 0;
5015   ;
5016   return 0;
5017 }
5018 _ACEOF
5019 rm -f conftest.$ac_objext
5020 if { (ac_try="$ac_compile"
5021 case "(($ac_try" in
5022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023   *) ac_try_echo=$ac_try;;
5024 esac
5025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026   (eval "$ac_compile") 2>conftest.er1
5027   ac_status=$?
5028   grep -v '^ *+' conftest.er1 >conftest.err
5029   rm -f conftest.er1
5030   cat conftest.err >&5
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } && {
5033          test -z "$ac_c_werror_flag" ||
5034          test ! -s conftest.err
5035        } && test -s conftest.$ac_objext; then
5036   ac_cv_type_void_p=yes
5037 else
5038   echo "$as_me: failed program was:" >&5
5039 sed 's/^/| /' conftest.$ac_ext >&5
5040
5041         ac_cv_type_void_p=no
5042 fi
5043
5044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5045 fi
5046 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
5047 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
5048
5049 # The cast to long int works around a bug in the HP C Compiler
5050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5052 # This bug is HP SR number 8606223364.
5053 { echo "$as_me:$LINENO: checking size of void *" >&5
5054 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
5055 if test "${ac_cv_sizeof_void_p+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   if test "$cross_compiling" = yes; then
5059   # Depending upon the size, compute the lo and hi bounds.
5060 cat >conftest.$ac_ext <<_ACEOF
5061 /* confdefs.h.  */
5062 _ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h.  */
5066 $ac_includes_default
5067    typedef void * ac__type_sizeof_;
5068 int
5069 main ()
5070 {
5071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5072 test_array [0] = 0
5073
5074   ;
5075   return 0;
5076 }
5077 _ACEOF
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5080 case "(($ac_try" in
5081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082   *) ac_try_echo=$ac_try;;
5083 esac
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085   (eval "$ac_compile") 2>conftest.er1
5086   ac_status=$?
5087   grep -v '^ *+' conftest.er1 >conftest.err
5088   rm -f conftest.er1
5089   cat conftest.err >&5
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } && {
5092          test -z "$ac_c_werror_flag" ||
5093          test ! -s conftest.err
5094        } && test -s conftest.$ac_objext; then
5095   ac_lo=0 ac_mid=0
5096   while :; do
5097     cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h.  */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h.  */
5103 $ac_includes_default
5104    typedef void * ac__type_sizeof_;
5105 int
5106 main ()
5107 {
5108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5109 test_array [0] = 0
5110
5111   ;
5112   return 0;
5113 }
5114 _ACEOF
5115 rm -f conftest.$ac_objext
5116 if { (ac_try="$ac_compile"
5117 case "(($ac_try" in
5118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119   *) ac_try_echo=$ac_try;;
5120 esac
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122   (eval "$ac_compile") 2>conftest.er1
5123   ac_status=$?
5124   grep -v '^ *+' conftest.er1 >conftest.err
5125   rm -f conftest.er1
5126   cat conftest.err >&5
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } && {
5129          test -z "$ac_c_werror_flag" ||
5130          test ! -s conftest.err
5131        } && test -s conftest.$ac_objext; then
5132   ac_hi=$ac_mid; break
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137         ac_lo=`expr $ac_mid + 1`
5138                         if test $ac_lo -le $ac_mid; then
5139                           ac_lo= ac_hi=
5140                           break
5141                         fi
5142                         ac_mid=`expr 2 '*' $ac_mid + 1`
5143 fi
5144
5145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5146   done
5147 else
5148   echo "$as_me: failed program was:" >&5
5149 sed 's/^/| /' conftest.$ac_ext >&5
5150
5151         cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h.  */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h.  */
5157 $ac_includes_default
5158    typedef void * ac__type_sizeof_;
5159 int
5160 main ()
5161 {
5162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
5163 test_array [0] = 0
5164
5165   ;
5166   return 0;
5167 }
5168 _ACEOF
5169 rm -f conftest.$ac_objext
5170 if { (ac_try="$ac_compile"
5171 case "(($ac_try" in
5172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5173   *) ac_try_echo=$ac_try;;
5174 esac
5175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5176   (eval "$ac_compile") 2>conftest.er1
5177   ac_status=$?
5178   grep -v '^ *+' conftest.er1 >conftest.err
5179   rm -f conftest.er1
5180   cat conftest.err >&5
5181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5182   (exit $ac_status); } && {
5183          test -z "$ac_c_werror_flag" ||
5184          test ! -s conftest.err
5185        } && test -s conftest.$ac_objext; then
5186   ac_hi=-1 ac_mid=-1
5187   while :; do
5188     cat >conftest.$ac_ext <<_ACEOF
5189 /* confdefs.h.  */
5190 _ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h.  */
5194 $ac_includes_default
5195    typedef void * ac__type_sizeof_;
5196 int
5197 main ()
5198 {
5199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
5200 test_array [0] = 0
5201
5202   ;
5203   return 0;
5204 }
5205 _ACEOF
5206 rm -f conftest.$ac_objext
5207 if { (ac_try="$ac_compile"
5208 case "(($ac_try" in
5209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210   *) ac_try_echo=$ac_try;;
5211 esac
5212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213   (eval "$ac_compile") 2>conftest.er1
5214   ac_status=$?
5215   grep -v '^ *+' conftest.er1 >conftest.err
5216   rm -f conftest.er1
5217   cat conftest.err >&5
5218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219   (exit $ac_status); } && {
5220          test -z "$ac_c_werror_flag" ||
5221          test ! -s conftest.err
5222        } && test -s conftest.$ac_objext; then
5223   ac_lo=$ac_mid; break
5224 else
5225   echo "$as_me: failed program was:" >&5
5226 sed 's/^/| /' conftest.$ac_ext >&5
5227
5228         ac_hi=`expr '(' $ac_mid ')' - 1`
5229                         if test $ac_mid -le $ac_hi; then
5230                           ac_lo= ac_hi=
5231                           break
5232                         fi
5233                         ac_mid=`expr 2 '*' $ac_mid`
5234 fi
5235
5236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5237   done
5238 else
5239   echo "$as_me: failed program was:" >&5
5240 sed 's/^/| /' conftest.$ac_ext >&5
5241
5242         ac_lo= ac_hi=
5243 fi
5244
5245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 fi
5247
5248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 # Binary search between lo and hi bounds.
5250 while test "x$ac_lo" != "x$ac_hi"; do
5251   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5252   cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258 $ac_includes_default
5259    typedef void * ac__type_sizeof_;
5260 int
5261 main ()
5262 {
5263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
5264 test_array [0] = 0
5265
5266   ;
5267   return 0;
5268 }
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5272 case "(($ac_try" in
5273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274   *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277   (eval "$ac_compile") 2>conftest.er1
5278   ac_status=$?
5279   grep -v '^ *+' conftest.er1 >conftest.err
5280   rm -f conftest.er1
5281   cat conftest.err >&5
5282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283   (exit $ac_status); } && {
5284          test -z "$ac_c_werror_flag" ||
5285          test ! -s conftest.err
5286        } && test -s conftest.$ac_objext; then
5287   ac_hi=$ac_mid
5288 else
5289   echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5291
5292         ac_lo=`expr '(' $ac_mid ')' + 1`
5293 fi
5294
5295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5296 done
5297 case $ac_lo in
5298 ?*) ac_cv_sizeof_void_p=$ac_lo;;
5299 '') if test "$ac_cv_type_void_p" = yes; then
5300      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
5301 See \`config.log' for more details." >&5
5302 echo "$as_me: error: cannot compute sizeof (void *)
5303 See \`config.log' for more details." >&2;}
5304    { (exit 77); exit 77; }; }
5305    else
5306      ac_cv_sizeof_void_p=0
5307    fi ;;
5308 esac
5309 else
5310   cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h.  */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h.  */
5316 $ac_includes_default
5317    typedef void * ac__type_sizeof_;
5318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
5319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
5320 #include <stdio.h>
5321 #include <stdlib.h>
5322 int
5323 main ()
5324 {
5325
5326   FILE *f = fopen ("conftest.val", "w");
5327   if (! f)
5328     return 1;
5329   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
5330     {
5331       long int i = longval ();
5332       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5333         return 1;
5334       fprintf (f, "%ld\n", i);
5335     }
5336   else
5337     {
5338       unsigned long int i = ulongval ();
5339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
5340         return 1;
5341       fprintf (f, "%lu\n", i);
5342     }
5343   return ferror (f) || fclose (f) != 0;
5344
5345   ;
5346   return 0;
5347 }
5348 _ACEOF
5349 rm -f conftest$ac_exeext
5350 if { (ac_try="$ac_link"
5351 case "(($ac_try" in
5352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5353   *) ac_try_echo=$ac_try;;
5354 esac
5355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5356   (eval "$ac_link") 2>&5
5357   ac_status=$?
5358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5360   { (case "(($ac_try" in
5361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362   *) ac_try_echo=$ac_try;;
5363 esac
5364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5365   (eval "$ac_try") 2>&5
5366   ac_status=$?
5367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); }; }; then
5369   ac_cv_sizeof_void_p=`cat conftest.val`
5370 else
5371   echo "$as_me: program exited with status $ac_status" >&5
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5374
5375 ( exit $ac_status )
5376 if test "$ac_cv_type_void_p" = yes; then
5377      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
5378 See \`config.log' for more details." >&5
5379 echo "$as_me: error: cannot compute sizeof (void *)
5380 See \`config.log' for more details." >&2;}
5381    { (exit 77); exit 77; }; }
5382    else
5383      ac_cv_sizeof_void_p=0
5384    fi
5385 fi
5386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5387 fi
5388 rm -f conftest.val
5389 fi
5390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
5391 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
5392
5393
5394
5395 cat >>confdefs.h <<_ACEOF
5396 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
5397 _ACEOF
5398
5399
5400
5401
5402 cat >>confdefs.h <<_ACEOF
5403 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
5404 _ACEOF
5405
5406
5407
5408 #
5409 # Set up TAS assembly code if needed; the template file has now had its
5410 # chance to request this.
5411 #
5412 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5413
5414
5415 if test "$need_tas" = yes ; then
5416   TAS=tas.o
5417 else
5418   TAS=""
5419 fi
5420
5421
5422
5423 #
5424 # Automatic dependency tracking
5425 #
5426
5427 pgac_args="$pgac_args enable_depend"
5428
5429 # Check whether --enable-depend was given.
5430 if test "${enable_depend+set}" = set; then
5431   enableval=$enable_depend;
5432   case $enableval in
5433     yes)
5434       autodepend=yes
5435       ;;
5436     no)
5437       :
5438       ;;
5439     *)
5440       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5441 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5442    { (exit 1); exit 1; }; }
5443       ;;
5444   esac
5445
5446 else
5447   enable_depend=no
5448
5449 fi
5450
5451
5452
5453
5454
5455 #
5456 # Enable assert checks
5457 #
5458
5459 pgac_args="$pgac_args enable_cassert"
5460
5461 # Check whether --enable-cassert was given.
5462 if test "${enable_cassert+set}" = set; then
5463   enableval=$enable_cassert;
5464   case $enableval in
5465     yes)
5466
5467 cat >>confdefs.h <<\_ACEOF
5468 #define USE_ASSERT_CHECKING 1
5469 _ACEOF
5470
5471       ;;
5472     no)
5473       :
5474       ;;
5475     *)
5476       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5477 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5478    { (exit 1); exit 1; }; }
5479       ;;
5480   esac
5481
5482 else
5483   enable_cassert=no
5484
5485 fi
5486
5487
5488
5489
5490 #
5491 # Include directories
5492 #
5493 ac_save_IFS=$IFS
5494 IFS="${IFS}${PATH_SEPARATOR}"
5495 # SRCH_INC comes from the template file
5496 for dir in $with_includes $SRCH_INC; do
5497   if test -d "$dir"; then
5498     INCLUDES="$INCLUDES -I$dir"
5499   else
5500     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5501 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5502   fi
5503 done
5504 IFS=$ac_save_IFS
5505
5506
5507
5508 #
5509 # Library directories
5510 #
5511 ac_save_IFS=$IFS
5512 IFS="${IFS}${PATH_SEPARATOR}"
5513 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5514 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5515   if test -d "$dir"; then
5516     LIBDIRS="$LIBDIRS -L$dir"
5517   else
5518     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5519 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5520   fi
5521 done
5522 IFS=$ac_save_IFS
5523
5524 #
5525 # Enable thread-safe client libraries
5526 #
5527 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5528 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
5529 if test "$PORTNAME" != "win32"; then
5530
5531 pgac_args="$pgac_args enable_thread_safety"
5532
5533 # Check whether --enable-thread-safety was given.
5534 if test "${enable_thread_safety+set}" = set; then
5535   enableval=$enable_thread_safety;
5536   case $enableval in
5537     yes)
5538       :
5539       ;;
5540     no)
5541       :
5542       ;;
5543     *)
5544       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5545 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5546    { (exit 1); exit 1; }; }
5547       ;;
5548   esac
5549
5550 else
5551   enable_thread_safety=no
5552
5553 fi
5554
5555
5556 else
5557 # Win32 should always use threads
5558
5559 pgac_args="$pgac_args enable_thread_safety"
5560
5561 # Check whether --enable-thread-safety was given.
5562 if test "${enable_thread_safety+set}" = set; then
5563   enableval=$enable_thread_safety;
5564   case $enableval in
5565     yes)
5566       :
5567       ;;
5568     no)
5569       :
5570       ;;
5571     *)
5572       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5573 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5574    { (exit 1); exit 1; }; }
5575       ;;
5576   esac
5577
5578 else
5579   enable_thread_safety=yes
5580
5581 fi
5582
5583
5584 fi
5585
5586
5587 pgac_args="$pgac_args enable_thread_safety_force"
5588
5589 # Check whether --enable-thread-safety-force was given.
5590 if test "${enable_thread_safety_force+set}" = set; then
5591   enableval=$enable_thread_safety_force;
5592   case $enableval in
5593     yes)
5594       :
5595       ;;
5596     no)
5597       :
5598       ;;
5599     *)
5600       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
5601 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
5602    { (exit 1); exit 1; }; }
5603       ;;
5604   esac
5605
5606 else
5607   enable_thread_safety_force=no
5608
5609 fi
5610
5611
5612 if test "$enable_thread_safety" = yes -o \
5613         "$enable_thread_safety_force" = yes; then
5614   enable_thread_safety="yes"    # for 'force'
5615
5616 cat >>confdefs.h <<\_ACEOF
5617 #define ENABLE_THREAD_SAFETY 1
5618 _ACEOF
5619
5620 fi
5621 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5622 echo "${ECHO_T}$enable_thread_safety" >&6; }
5623
5624
5625 #
5626 # Optionally build Tcl modules (PL/Tcl)
5627 #
5628 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5629 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
5630
5631 pgac_args="$pgac_args with_tcl"
5632
5633
5634 # Check whether --with-tcl was given.
5635 if test "${with_tcl+set}" = set; then
5636   withval=$with_tcl;
5637   case $withval in
5638     yes)
5639       :
5640       ;;
5641     no)
5642       :
5643       ;;
5644     *)
5645       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5646 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5647    { (exit 1); exit 1; }; }
5648       ;;
5649   esac
5650
5651 else
5652   with_tcl=no
5653
5654 fi
5655
5656
5657 { echo "$as_me:$LINENO: result: $with_tcl" >&5
5658 echo "${ECHO_T}$with_tcl" >&6; }
5659
5660
5661 # We see if the path to the Tcl/Tk configuration scripts is specified.
5662 # This will override the use of tclsh to find the paths to search.
5663
5664
5665 pgac_args="$pgac_args with_tclconfig"
5666
5667
5668 # Check whether --with-tclconfig was given.
5669 if test "${with_tclconfig+set}" = set; then
5670   withval=$with_tclconfig;
5671   case $withval in
5672     yes)
5673       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5674 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5675    { (exit 1); exit 1; }; }
5676       ;;
5677     no)
5678       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5679 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5680    { (exit 1); exit 1; }; }
5681       ;;
5682     *)
5683
5684       ;;
5685   esac
5686
5687 fi
5688
5689
5690
5691 #
5692 # Optionally build Perl modules (PL/Perl)
5693 #
5694 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5695 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
5696
5697 pgac_args="$pgac_args with_perl"
5698
5699
5700 # Check whether --with-perl was given.
5701 if test "${with_perl+set}" = set; then
5702   withval=$with_perl;
5703   case $withval in
5704     yes)
5705       :
5706       ;;
5707     no)
5708       :
5709       ;;
5710     *)
5711       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5712 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5713    { (exit 1); exit 1; }; }
5714       ;;
5715   esac
5716
5717 else
5718   with_perl=no
5719
5720 fi
5721
5722
5723 { echo "$as_me:$LINENO: result: $with_perl" >&5
5724 echo "${ECHO_T}$with_perl" >&6; }
5725
5726
5727 #
5728 # Optionally build Python modules (PL/Python)
5729 #
5730 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5731 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
5732
5733 pgac_args="$pgac_args with_python"
5734
5735
5736 # Check whether --with-python was given.
5737 if test "${with_python+set}" = set; then
5738   withval=$with_python;
5739   case $withval in
5740     yes)
5741       :
5742       ;;
5743     no)
5744       :
5745       ;;
5746     *)
5747       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5748 echo "$as_me: error: no argument expected for --with-python option" >&2;}
5749    { (exit 1); exit 1; }; }
5750       ;;
5751   esac
5752
5753 else
5754   with_python=no
5755
5756 fi
5757
5758
5759 { echo "$as_me:$LINENO: result: $with_python" >&5
5760 echo "${ECHO_T}$with_python" >&6; }
5761
5762
5763 #
5764 # GSSAPI
5765 #
5766 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5767 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
5768
5769 pgac_args="$pgac_args with_gssapi"
5770
5771
5772 # Check whether --with-gssapi was given.
5773 if test "${with_gssapi+set}" = set; then
5774   withval=$with_gssapi;
5775   case $withval in
5776     yes)
5777
5778
5779 cat >>confdefs.h <<\_ACEOF
5780 #define ENABLE_GSS 1
5781 _ACEOF
5782
5783   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5784
5785       ;;
5786     no)
5787       :
5788       ;;
5789     *)
5790       { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5791 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5792    { (exit 1); exit 1; }; }
5793       ;;
5794   esac
5795
5796 else
5797   with_gssapi=no
5798
5799 fi
5800
5801
5802 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
5803 echo "${ECHO_T}$with_gssapi" >&6; }
5804
5805
5806 #
5807 # Kerberos 5
5808 #
5809 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5810 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
5811
5812 pgac_args="$pgac_args with_krb5"
5813
5814
5815 # Check whether --with-krb5 was given.
5816 if test "${with_krb5+set}" = set; then
5817   withval=$with_krb5;
5818   case $withval in
5819     yes)
5820
5821
5822 cat >>confdefs.h <<\_ACEOF
5823 #define KRB5 1
5824 _ACEOF
5825
5826   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5827
5828       ;;
5829     no)
5830       :
5831       ;;
5832     *)
5833       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5834 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5835    { (exit 1); exit 1; }; }
5836       ;;
5837   esac
5838
5839 else
5840   with_krb5=no
5841
5842 fi
5843
5844
5845 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5846 echo "${ECHO_T}$with_krb5" >&6; }
5847
5848
5849
5850
5851
5852
5853 #
5854 # Kerberos configuration parameters
5855 #
5856
5857 pgac_args="$pgac_args with_krb_srvnam"
5858
5859
5860 # Check whether --with-krb-srvnam was given.
5861 if test "${with_krb_srvnam+set}" = set; then
5862   withval=$with_krb_srvnam;
5863   case $withval in
5864     yes)
5865       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5866 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5867    { (exit 1); exit 1; }; }
5868       ;;
5869     no)
5870       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5871 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5872    { (exit 1); exit 1; }; }
5873       ;;
5874     *)
5875
5876       ;;
5877   esac
5878
5879 else
5880   with_krb_srvnam="postgres"
5881 fi
5882
5883
5884
5885 cat >>confdefs.h <<_ACEOF
5886 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5887 _ACEOF
5888
5889
5890
5891 #
5892 # PAM
5893 #
5894 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5895 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5896
5897 pgac_args="$pgac_args with_pam"
5898
5899
5900 # Check whether --with-pam was given.
5901 if test "${with_pam+set}" = set; then
5902   withval=$with_pam;
5903   case $withval in
5904     yes)
5905
5906 cat >>confdefs.h <<\_ACEOF
5907 #define USE_PAM 1
5908 _ACEOF
5909
5910       ;;
5911     no)
5912       :
5913       ;;
5914     *)
5915       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5916 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5917    { (exit 1); exit 1; }; }
5918       ;;
5919   esac
5920
5921 else
5922   with_pam=no
5923
5924 fi
5925
5926
5927 { echo "$as_me:$LINENO: result: $with_pam" >&5
5928 echo "${ECHO_T}$with_pam" >&6; }
5929
5930
5931
5932 #
5933 # LDAP
5934 #
5935 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5936 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5937
5938 pgac_args="$pgac_args with_ldap"
5939
5940
5941 # Check whether --with-ldap was given.
5942 if test "${with_ldap+set}" = set; then
5943   withval=$with_ldap;
5944   case $withval in
5945     yes)
5946
5947 cat >>confdefs.h <<\_ACEOF
5948 #define USE_LDAP 1
5949 _ACEOF
5950
5951       ;;
5952     no)
5953       :
5954       ;;
5955     *)
5956       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5957 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5958    { (exit 1); exit 1; }; }
5959       ;;
5960   esac
5961
5962 else
5963   with_ldap=no
5964
5965 fi
5966
5967
5968 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5969 echo "${ECHO_T}$with_ldap" >&6; }
5970
5971
5972
5973 #
5974 # Bonjour
5975 #
5976 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5977 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5978
5979 pgac_args="$pgac_args with_bonjour"
5980
5981
5982 # Check whether --with-bonjour was given.
5983 if test "${with_bonjour+set}" = set; then
5984   withval=$with_bonjour;
5985   case $withval in
5986     yes)
5987
5988 cat >>confdefs.h <<\_ACEOF
5989 #define USE_BONJOUR 1
5990 _ACEOF
5991
5992       ;;
5993     no)
5994       :
5995       ;;
5996     *)
5997       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5998 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5999    { (exit 1); exit 1; }; }
6000       ;;
6001   esac
6002
6003 else
6004   with_bonjour=no
6005
6006 fi
6007
6008
6009 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
6010 echo "${ECHO_T}$with_bonjour" >&6; }
6011
6012
6013
6014 #
6015 # OpenSSL
6016 #
6017 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
6018 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
6019
6020 pgac_args="$pgac_args with_openssl"
6021
6022
6023 # Check whether --with-openssl was given.
6024 if test "${with_openssl+set}" = set; then
6025   withval=$with_openssl;
6026   case $withval in
6027     yes)
6028
6029 cat >>confdefs.h <<\_ACEOF
6030 #define USE_SSL 1
6031 _ACEOF
6032
6033       ;;
6034     no)
6035       :
6036       ;;
6037     *)
6038       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
6039 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
6040    { (exit 1); exit 1; }; }
6041       ;;
6042   esac
6043
6044 else
6045   with_openssl=no
6046
6047 fi
6048
6049
6050 { echo "$as_me:$LINENO: result: $with_openssl" >&5
6051 echo "${ECHO_T}$with_openssl" >&6; }
6052
6053
6054
6055 #
6056 # Readline
6057 #
6058
6059 pgac_args="$pgac_args with_readline"
6060
6061
6062 # Check whether --with-readline was given.
6063 if test "${with_readline+set}" = set; then
6064   withval=$with_readline;
6065   case $withval in
6066     yes)
6067       :
6068       ;;
6069     no)
6070       :
6071       ;;
6072     *)
6073       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
6074 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
6075    { (exit 1); exit 1; }; }
6076       ;;
6077   esac
6078
6079 else
6080   with_readline=yes
6081
6082 fi
6083
6084
6085 # readline on MinGW has problems with backslashes in psql and other bugs.
6086 # This is particularly a problem with non-US code pages.
6087 # Therefore disable its use until we understand the cause. 2004-07-20
6088 if test "$PORTNAME" = "win32"; then
6089   if test "$with_readline" = yes; then
6090     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
6091 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
6092     with_readline=no
6093   fi
6094 fi
6095
6096
6097 #
6098 # Prefer libedit
6099 #
6100
6101 pgac_args="$pgac_args with_libedit_preferred"
6102
6103
6104 # Check whether --with-libedit-preferred was given.
6105 if test "${with_libedit_preferred+set}" = set; then
6106   withval=$with_libedit_preferred;
6107   case $withval in
6108     yes)
6109       :
6110       ;;
6111     no)
6112       :
6113       ;;
6114     *)
6115       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
6116 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
6117    { (exit 1); exit 1; }; }
6118       ;;
6119   esac
6120
6121 else
6122   with_libedit_preferred=no
6123
6124 fi
6125
6126
6127
6128
6129 #
6130 # OSSP UUID library
6131 #
6132
6133 pgac_args="$pgac_args with_ossp_uuid"
6134
6135
6136 # Check whether --with-ossp-uuid was given.
6137 if test "${with_ossp_uuid+set}" = set; then
6138   withval=$with_ossp_uuid;
6139   case $withval in
6140     yes)
6141       :
6142       ;;
6143     no)
6144       :
6145       ;;
6146     *)
6147       { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
6148 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
6149    { (exit 1); exit 1; }; }
6150       ;;
6151   esac
6152
6153 else
6154   with_ossp_uuid=no
6155
6156 fi
6157
6158
6159
6160
6161
6162 #
6163 # XML
6164 #
6165
6166 pgac_args="$pgac_args with_libxml"
6167
6168
6169 # Check whether --with-libxml was given.
6170 if test "${with_libxml+set}" = set; then
6171   withval=$with_libxml;
6172   case $withval in
6173     yes)
6174
6175 cat >>confdefs.h <<\_ACEOF
6176 #define USE_LIBXML 1
6177 _ACEOF
6178
6179       ;;
6180     no)
6181       :
6182       ;;
6183     *)
6184       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
6185 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
6186    { (exit 1); exit 1; }; }
6187       ;;
6188   esac
6189
6190 else
6191   with_libxml=no
6192
6193 fi
6194
6195
6196
6197 if test "$with_libxml" = yes ; then
6198   for ac_prog in xml2-config
6199 do
6200   # Extract the first word of "$ac_prog", so it can be a program name with args.
6201 set dummy $ac_prog; ac_word=$2
6202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
6205   echo $ECHO_N "(cached) $ECHO_C" >&6
6206 else
6207   if test -n "$XML2_CONFIG"; then
6208   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
6209 else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211 for as_dir in $PATH
6212 do
6213   IFS=$as_save_IFS
6214   test -z "$as_dir" && as_dir=.
6215   for ac_exec_ext in '' $ac_executable_extensions; do
6216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6217     ac_cv_prog_XML2_CONFIG="$ac_prog"
6218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6219     break 2
6220   fi
6221 done
6222 done
6223 IFS=$as_save_IFS
6224
6225 fi
6226 fi
6227 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
6228 if test -n "$XML2_CONFIG"; then
6229   { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
6230 echo "${ECHO_T}$XML2_CONFIG" >&6; }
6231 else
6232   { echo "$as_me:$LINENO: result: no" >&5
6233 echo "${ECHO_T}no" >&6; }
6234 fi
6235
6236
6237   test -n "$XML2_CONFIG" && break
6238 done
6239
6240   if test -n "$XML2_CONFIG"; then
6241     for pgac_option in `$XML2_CONFIG --cflags`; do
6242       case $pgac_option in
6243         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
6244       esac
6245     done
6246     for pgac_option in `$XML2_CONFIG --libs`; do
6247       case $pgac_option in
6248         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
6249       esac
6250     done
6251   fi
6252 fi
6253
6254
6255
6256 #
6257 # XSLT
6258 #
6259
6260 pgac_args="$pgac_args with_libxslt"
6261
6262
6263 # Check whether --with-libxslt was given.
6264 if test "${with_libxslt+set}" = set; then
6265   withval=$with_libxslt;
6266   case $withval in
6267     yes)
6268
6269 cat >>confdefs.h <<\_ACEOF
6270 #define USE_LIBXSLT 1
6271 _ACEOF
6272
6273       ;;
6274     no)
6275       :
6276       ;;
6277     *)
6278       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
6279 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
6280    { (exit 1); exit 1; }; }
6281       ;;
6282   esac
6283
6284 else
6285   with_libxslt=no
6286
6287 fi
6288
6289
6290
6291
6292
6293
6294 #
6295 # tzdata
6296 #
6297
6298 pgac_args="$pgac_args with_system_tzdata"
6299
6300
6301 # Check whether --with-system-tzdata was given.
6302 if test "${with_system_tzdata+set}" = set; then
6303   withval=$with_system_tzdata;
6304   case $withval in
6305     yes)
6306       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
6307 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
6308    { (exit 1); exit 1; }; }
6309       ;;
6310     no)
6311       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
6312 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
6313    { (exit 1); exit 1; }; }
6314       ;;
6315     *)
6316
6317       ;;
6318   esac
6319
6320 fi
6321
6322
6323
6324
6325 #
6326 # Zlib
6327 #
6328
6329 pgac_args="$pgac_args with_zlib"
6330
6331
6332 # Check whether --with-zlib was given.
6333 if test "${with_zlib+set}" = set; then
6334   withval=$with_zlib;
6335   case $withval in
6336     yes)
6337       :
6338       ;;
6339     no)
6340       :
6341       ;;
6342     *)
6343       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
6344 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
6345    { (exit 1); exit 1; }; }
6346       ;;
6347   esac
6348
6349 else
6350   with_zlib=yes
6351
6352 fi
6353
6354
6355
6356
6357 #
6358 # Elf
6359 #
6360
6361 # Assume system is ELF if it predefines __ELF__ as 1,
6362 # otherwise believe host_os based default.
6363 case $host_os in
6364     freebsd1*|freebsd2*) elf=no;;
6365     freebsd3*|freebsd4*) elf=yes;;
6366 esac
6367
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 #if __ELF__
6375   yes
6376 #endif
6377
6378 _ACEOF
6379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6380   $EGREP "yes" >/dev/null 2>&1; then
6381   ELF_SYS=true
6382 else
6383   if test "X$elf" = "Xyes" ; then
6384   ELF_SYS=true
6385 else
6386   ELF_SYS=
6387 fi
6388 fi
6389 rm -f conftest*
6390
6391
6392
6393 #
6394 # Assignments
6395 #
6396
6397 CPPFLAGS="$CPPFLAGS $INCLUDES"
6398 LDFLAGS="$LDFLAGS $LIBDIRS"
6399
6400
6401
6402
6403 # Check whether --with-gnu-ld was given.
6404 if test "${with_gnu_ld+set}" = set; then
6405   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6406 else
6407   with_gnu_ld=no
6408 fi
6409
6410 ac_prog=ld
6411 if test "$GCC" = yes; then
6412   # Check if gcc -print-prog-name=ld gives a path.
6413   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6414 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6415   case $host in
6416   *-*-mingw*)
6417     # gcc leaves a trailing carriage return which upsets mingw
6418     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6419   *)
6420     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6421   esac
6422   case "$ac_prog" in
6423     # Accept absolute paths.
6424     [\\/]* | [A-Za-z]:[\\/]*)
6425       re_direlt='/[^/][^/]*/\.\./'
6426       # Canonicalize the path of ld
6427       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6428       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6429         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6430       done
6431       test -z "$LD" && LD="$ac_prog"
6432       ;;
6433   "")
6434     # If it fails, then pretend we aren't using GCC.
6435     ac_prog=ld
6436     ;;
6437   *)
6438     # If it is relative, then search for the first ld in PATH.
6439     with_gnu_ld=unknown
6440     ;;
6441   esac
6442 elif test "$with_gnu_ld" = yes; then
6443   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6444 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6445 else
6446   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6447 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6448 fi
6449 if test "${ac_cv_path_LD+set}" = set; then
6450   echo $ECHO_N "(cached) $ECHO_C" >&6
6451 else
6452   if test -z "$LD"; then
6453   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6454   for ac_dir in $PATH; do
6455     test -z "$ac_dir" && ac_dir=.
6456     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6457       ac_cv_path_LD="$ac_dir/$ac_prog"
6458       # Check to see if the program is GNU ld.  I'd rather use --version,
6459       # but apparently some GNU ld's only accept -v.
6460       # Break only if it was the GNU/non-GNU ld that we prefer.
6461       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6462         test "$with_gnu_ld" != no && break
6463       else
6464         test "$with_gnu_ld" != yes && break
6465       fi
6466     fi
6467   done
6468   IFS="$ac_save_ifs"
6469 else
6470   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6471 fi
6472 fi
6473
6474 LD="$ac_cv_path_LD"
6475 if test -n "$LD"; then
6476   { echo "$as_me:$LINENO: result: $LD" >&5
6477 echo "${ECHO_T}$LD" >&6; }
6478 else
6479   { echo "$as_me:$LINENO: result: no" >&5
6480 echo "${ECHO_T}no" >&6; }
6481 fi
6482 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6483 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6484    { (exit 1); exit 1; }; }
6485 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6486 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6487 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6488   echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6491 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6492   ac_cv_prog_gnu_ld=yes
6493 else
6494   ac_cv_prog_gnu_ld=no
6495 fi
6496 fi
6497 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6498 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
6499 with_gnu_ld=$ac_cv_prog_gnu_ld
6500
6501
6502
6503
6504 case $host_os in sysv5*)
6505   { echo "$as_me:$LINENO: checking whether ld -R works" >&5
6506 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
6507 if test "${pgac_cv_prog_ld_R+set}" = set; then
6508   echo $ECHO_N "(cached) $ECHO_C" >&6
6509 else
6510
6511     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6512     cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h.  */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h.  */
6518
6519 int
6520 main ()
6521 {
6522
6523   ;
6524   return 0;
6525 }
6526 _ACEOF
6527 rm -f conftest.$ac_objext conftest$ac_exeext
6528 if { (ac_try="$ac_link"
6529 case "(($ac_try" in
6530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531   *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534   (eval "$ac_link") 2>conftest.er1
6535   ac_status=$?
6536   grep -v '^ *+' conftest.er1 >conftest.err
6537   rm -f conftest.er1
6538   cat conftest.err >&5
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); } && {
6541          test -z "$ac_c_werror_flag" ||
6542          test ! -s conftest.err
6543        } && test -s conftest$ac_exeext &&
6544        $as_test_x conftest$ac_exeext; then
6545   pgac_cv_prog_ld_R=yes
6546 else
6547   echo "$as_me: failed program was:" >&5
6548 sed 's/^/| /' conftest.$ac_ext >&5
6549
6550         pgac_cv_prog_ld_R=no
6551 fi
6552
6553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6554       conftest$ac_exeext conftest.$ac_ext
6555     LDFLAGS=$pgac_save_LDFLAGS
6556
6557 fi
6558 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6559 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
6560   ld_R_works=$pgac_cv_prog_ld_R
6561
6562 esac
6563 if test -n "$ac_tool_prefix"; then
6564   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6565 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568 if test "${ac_cv_prog_RANLIB+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   if test -n "$RANLIB"; then
6572   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577   IFS=$as_save_IFS
6578   test -z "$as_dir" && as_dir=.
6579   for ac_exec_ext in '' $ac_executable_extensions; do
6580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6583     break 2
6584   fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 RANLIB=$ac_cv_prog_RANLIB
6592 if test -n "$RANLIB"; then
6593   { echo "$as_me:$LINENO: result: $RANLIB" >&5
6594 echo "${ECHO_T}$RANLIB" >&6; }
6595 else
6596   { echo "$as_me:$LINENO: result: no" >&5
6597 echo "${ECHO_T}no" >&6; }
6598 fi
6599
6600
6601 fi
6602 if test -z "$ac_cv_prog_RANLIB"; then
6603   ac_ct_RANLIB=$RANLIB
6604   # Extract the first word of "ranlib", so it can be a program name with args.
6605 set dummy ranlib; ac_word=$2
6606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6609   echo $ECHO_N "(cached) $ECHO_C" >&6
6610 else
6611   if test -n "$ac_ct_RANLIB"; then
6612   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6613 else
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 for as_dir in $PATH
6616 do
6617   IFS=$as_save_IFS
6618   test -z "$as_dir" && as_dir=.
6619   for ac_exec_ext in '' $ac_executable_extensions; do
6620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621     ac_cv_prog_ac_ct_RANLIB="ranlib"
6622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623     break 2
6624   fi
6625 done
6626 done
6627 IFS=$as_save_IFS
6628
6629 fi
6630 fi
6631 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6632 if test -n "$ac_ct_RANLIB"; then
6633   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6634 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6635 else
6636   { echo "$as_me:$LINENO: result: no" >&5
6637 echo "${ECHO_T}no" >&6; }
6638 fi
6639
6640   if test "x$ac_ct_RANLIB" = x; then
6641     RANLIB=":"
6642   else
6643     case $cross_compiling:$ac_tool_warned in
6644 yes:)
6645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6646 whose name does not start with the host triplet.  If you think this
6647 configuration is useful to you, please write to autoconf@gnu.org." >&5
6648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet.  If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6651 ac_tool_warned=yes ;;
6652 esac
6653     RANLIB=$ac_ct_RANLIB
6654   fi
6655 else
6656   RANLIB="$ac_cv_prog_RANLIB"
6657 fi
6658
6659
6660   if test -n "$ac_tool_prefix"; then
6661   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6662 set dummy ${ac_tool_prefix}strip; ac_word=$2
6663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6665 if test "${ac_cv_prog_STRIP+set}" = set; then
6666   echo $ECHO_N "(cached) $ECHO_C" >&6
6667 else
6668   if test -n "$STRIP"; then
6669   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6670 else
6671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6672 for as_dir in $PATH
6673 do
6674   IFS=$as_save_IFS
6675   test -z "$as_dir" && as_dir=.
6676   for ac_exec_ext in '' $ac_executable_extensions; do
6677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6678     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6680     break 2
6681   fi
6682 done
6683 done
6684 IFS=$as_save_IFS
6685
6686 fi
6687 fi
6688 STRIP=$ac_cv_prog_STRIP
6689 if test -n "$STRIP"; then
6690   { echo "$as_me:$LINENO: result: $STRIP" >&5
6691 echo "${ECHO_T}$STRIP" >&6; }
6692 else
6693   { echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6; }
6695 fi
6696
6697
6698 fi
6699 if test -z "$ac_cv_prog_STRIP"; then
6700   ac_ct_STRIP=$STRIP
6701   # Extract the first word of "strip", so it can be a program name with args.
6702 set dummy strip; ac_word=$2
6703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6705 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   if test -n "$ac_ct_STRIP"; then
6709   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6710 else
6711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 for as_dir in $PATH
6713 do
6714   IFS=$as_save_IFS
6715   test -z "$as_dir" && as_dir=.
6716   for ac_exec_ext in '' $ac_executable_extensions; do
6717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6718     ac_cv_prog_ac_ct_STRIP="strip"
6719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6720     break 2
6721   fi
6722 done
6723 done
6724 IFS=$as_save_IFS
6725
6726 fi
6727 fi
6728 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6729 if test -n "$ac_ct_STRIP"; then
6730   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6731 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6732 else
6733   { echo "$as_me:$LINENO: result: no" >&5
6734 echo "${ECHO_T}no" >&6; }
6735 fi
6736
6737   if test "x$ac_ct_STRIP" = x; then
6738     STRIP=":"
6739   else
6740     case $cross_compiling:$ac_tool_warned in
6741 yes:)
6742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6743 whose name does not start with the host triplet.  If you think this
6744 configuration is useful to you, please write to autoconf@gnu.org." >&5
6745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6746 whose name does not start with the host triplet.  If you think this
6747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6748 ac_tool_warned=yes ;;
6749 esac
6750     STRIP=$ac_ct_STRIP
6751   fi
6752 else
6753   STRIP="$ac_cv_prog_STRIP"
6754 fi
6755
6756
6757   { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6758 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6759   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6760     STRIP_STATIC_LIB="$STRIP -x"
6761     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6762     { echo "$as_me:$LINENO: result: yes" >&5
6763 echo "${ECHO_T}yes" >&6; }
6764   else
6765     STRIP_STATIC_LIB=:
6766     STRIP_SHARED_LIB=:
6767     { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6769   fi
6770
6771
6772
6773 if test -n "$ac_tool_prefix"; then
6774   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}ar; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_AR+set}" = set; then
6779   echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781   if test -n "$AR"; then
6782   ac_cv_prog_AR="$AR" # Let the user override the test.
6783 else
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785 for as_dir in $PATH
6786 do
6787   IFS=$as_save_IFS
6788   test -z "$as_dir" && as_dir=.
6789   for ac_exec_ext in '' $ac_executable_extensions; do
6790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_AR="${ac_tool_prefix}ar"
6792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6793     break 2
6794   fi
6795 done
6796 done
6797 IFS=$as_save_IFS
6798
6799 fi
6800 fi
6801 AR=$ac_cv_prog_AR
6802 if test -n "$AR"; then
6803   { echo "$as_me:$LINENO: result: $AR" >&5
6804 echo "${ECHO_T}$AR" >&6; }
6805 else
6806   { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6808 fi
6809
6810
6811 fi
6812 if test -z "$ac_cv_prog_AR"; then
6813   ac_ct_AR=$AR
6814   # Extract the first word of "ar", so it can be a program name with args.
6815 set dummy ar; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$ac_ct_AR"; then
6822   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_ac_ct_AR="ar"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6842 if test -n "$ac_ct_AR"; then
6843   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6844 echo "${ECHO_T}$ac_ct_AR" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850   if test "x$ac_ct_AR" = x; then
6851     AR="ar"
6852   else
6853     case $cross_compiling:$ac_tool_warned in
6854 yes:)
6855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet.  If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&5
6858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet.  If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6861 ac_tool_warned=yes ;;
6862 esac
6863     AR=$ac_ct_AR
6864   fi
6865 else
6866   AR="$ac_cv_prog_AR"
6867 fi
6868
6869 if test "$PORTNAME" = "win32"; then
6870   if test -n "$ac_tool_prefix"; then
6871   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6872 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6875 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6876   echo $ECHO_N "(cached) $ECHO_C" >&6
6877 else
6878   if test -n "$DLLTOOL"; then
6879   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6880 else
6881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6882 for as_dir in $PATH
6883 do
6884   IFS=$as_save_IFS
6885   test -z "$as_dir" && as_dir=.
6886   for ac_exec_ext in '' $ac_executable_extensions; do
6887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890     break 2
6891   fi
6892 done
6893 done
6894 IFS=$as_save_IFS
6895
6896 fi
6897 fi
6898 DLLTOOL=$ac_cv_prog_DLLTOOL
6899 if test -n "$DLLTOOL"; then
6900   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6901 echo "${ECHO_T}$DLLTOOL" >&6; }
6902 else
6903   { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6905 fi
6906
6907
6908 fi
6909 if test -z "$ac_cv_prog_DLLTOOL"; then
6910   ac_ct_DLLTOOL=$DLLTOOL
6911   # Extract the first word of "dlltool", so it can be a program name with args.
6912 set dummy dlltool; ac_word=$2
6913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6915 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   if test -n "$ac_ct_DLLTOOL"; then
6919   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6920 else
6921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 for as_dir in $PATH
6923 do
6924   IFS=$as_save_IFS
6925   test -z "$as_dir" && as_dir=.
6926   for ac_exec_ext in '' $ac_executable_extensions; do
6927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6930     break 2
6931   fi
6932 done
6933 done
6934 IFS=$as_save_IFS
6935
6936 fi
6937 fi
6938 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6939 if test -n "$ac_ct_DLLTOOL"; then
6940   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6941 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6942 else
6943   { echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6; }
6945 fi
6946
6947   if test "x$ac_ct_DLLTOOL" = x; then
6948     DLLTOOL="dlltool"
6949   else
6950     case $cross_compiling:$ac_tool_warned in
6951 yes:)
6952 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6953 whose name does not start with the host triplet.  If you think this
6954 configuration is useful to you, please write to autoconf@gnu.org." >&5
6955 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6956 whose name does not start with the host triplet.  If you think this
6957 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6958 ac_tool_warned=yes ;;
6959 esac
6960     DLLTOOL=$ac_ct_DLLTOOL
6961   fi
6962 else
6963   DLLTOOL="$ac_cv_prog_DLLTOOL"
6964 fi
6965
6966   if test -n "$ac_tool_prefix"; then
6967   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6968 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6971 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6972   echo $ECHO_N "(cached) $ECHO_C" >&6
6973 else
6974   if test -n "$DLLWRAP"; then
6975   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6976 else
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6979 do
6980   IFS=$as_save_IFS
6981   test -z "$as_dir" && as_dir=.
6982   for ac_exec_ext in '' $ac_executable_extensions; do
6983   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6984     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6986     break 2
6987   fi
6988 done
6989 done
6990 IFS=$as_save_IFS
6991
6992 fi
6993 fi
6994 DLLWRAP=$ac_cv_prog_DLLWRAP
6995 if test -n "$DLLWRAP"; then
6996   { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6997 echo "${ECHO_T}$DLLWRAP" >&6; }
6998 else
6999   { echo "$as_me:$LINENO: result: no" >&5
7000 echo "${ECHO_T}no" >&6; }
7001 fi
7002
7003
7004 fi
7005 if test -z "$ac_cv_prog_DLLWRAP"; then
7006   ac_ct_DLLWRAP=$DLLWRAP
7007   # Extract the first word of "dllwrap", so it can be a program name with args.
7008 set dummy dllwrap; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
7012   echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014   if test -n "$ac_ct_DLLWRAP"; then
7015   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
7016 else
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7018 for as_dir in $PATH
7019 do
7020   IFS=$as_save_IFS
7021   test -z "$as_dir" && as_dir=.
7022   for ac_exec_ext in '' $ac_executable_extensions; do
7023   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7024     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
7025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7026     break 2
7027   fi
7028 done
7029 done
7030 IFS=$as_save_IFS
7031
7032 fi
7033 fi
7034 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
7035 if test -n "$ac_ct_DLLWRAP"; then
7036   { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
7037 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
7038 else
7039   { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7041 fi
7042
7043   if test "x$ac_ct_DLLWRAP" = x; then
7044     DLLWRAP="dllwrap"
7045   else
7046     case $cross_compiling:$ac_tool_warned in
7047 yes:)
7048 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7049 whose name does not start with the host triplet.  If you think this
7050 configuration is useful to you, please write to autoconf@gnu.org." >&5
7051 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7052 whose name does not start with the host triplet.  If you think this
7053 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7054 ac_tool_warned=yes ;;
7055 esac
7056     DLLWRAP=$ac_ct_DLLWRAP
7057   fi
7058 else
7059   DLLWRAP="$ac_cv_prog_DLLWRAP"
7060 fi
7061
7062   if test -n "$ac_tool_prefix"; then
7063   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
7064 set dummy ${ac_tool_prefix}windres; ac_word=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_WINDRES+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   if test -n "$WINDRES"; then
7071   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
7081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 WINDRES=$ac_cv_prog_WINDRES
7091 if test -n "$WINDRES"; then
7092   { echo "$as_me:$LINENO: result: $WINDRES" >&5
7093 echo "${ECHO_T}$WINDRES" >&6; }
7094 else
7095   { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7097 fi
7098
7099
7100 fi
7101 if test -z "$ac_cv_prog_WINDRES"; then
7102   ac_ct_WINDRES=$WINDRES
7103   # Extract the first word of "windres", so it can be a program name with args.
7104 set dummy windres; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test -n "$ac_ct_WINDRES"; then
7111   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_ac_ct_WINDRES="windres"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
7131 if test -n "$ac_ct_WINDRES"; then
7132   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
7133 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139   if test "x$ac_ct_WINDRES" = x; then
7140     WINDRES="windres"
7141   else
7142     case $cross_compiling:$ac_tool_warned in
7143 yes:)
7144 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7145 whose name does not start with the host triplet.  If you think this
7146 configuration is useful to you, please write to autoconf@gnu.org." >&5
7147 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7148 whose name does not start with the host triplet.  If you think this
7149 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7150 ac_tool_warned=yes ;;
7151 esac
7152     WINDRES=$ac_ct_WINDRES
7153   fi
7154 else
7155   WINDRES="$ac_cv_prog_WINDRES"
7156 fi
7157
7158 fi
7159
7160 # Extract the first word of "tar", so it can be a program name with args.
7161 set dummy tar; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_TAR+set}" = set; then
7165   echo $ECHO_N "(cached) $ECHO_C" >&6
7166 else
7167   case $TAR in
7168   [\\/]* | ?:[\\/]*)
7169   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7170   ;;
7171   *)
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_exec_ext in '' $ac_executable_extensions; do
7178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7179     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184 done
7185 IFS=$as_save_IFS
7186
7187   ;;
7188 esac
7189 fi
7190 TAR=$ac_cv_path_TAR
7191 if test -n "$TAR"; then
7192   { echo "$as_me:$LINENO: result: $TAR" >&5
7193 echo "${ECHO_T}$TAR" >&6; }
7194 else
7195   { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7197 fi
7198
7199
7200 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
7201 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
7202 LN_S=$as_ln_s
7203 if test "$LN_S" = "ln -s"; then
7204   { echo "$as_me:$LINENO: result: yes" >&5
7205 echo "${ECHO_T}yes" >&6; }
7206 else
7207   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7208 echo "${ECHO_T}no, using $LN_S" >&6; }
7209 fi
7210
7211 for ac_prog in gawk mawk nawk awk
7212 do
7213   # Extract the first word of "$ac_prog", so it can be a program name with args.
7214 set dummy $ac_prog; ac_word=$2
7215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7217 if test "${ac_cv_prog_AWK+set}" = set; then
7218   echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220   if test -n "$AWK"; then
7221   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228   for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_prog_AWK="$ac_prog"
7231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235 done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 AWK=$ac_cv_prog_AWK
7241 if test -n "$AWK"; then
7242   { echo "$as_me:$LINENO: result: $AWK" >&5
7243 echo "${ECHO_T}$AWK" >&6; }
7244 else
7245   { echo "$as_me:$LINENO: result: no" >&5
7246 echo "${ECHO_T}no" >&6; }
7247 fi
7248
7249
7250   test -n "$AWK" && break
7251 done
7252
7253
7254 # Let the user override the search
7255 if test -z "$BISON"; then
7256   for ac_prog in bison
7257 do
7258   # Extract the first word of "$ac_prog", so it can be a program name with args.
7259 set dummy $ac_prog; ac_word=$2
7260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7262 if test "${ac_cv_prog_BISON+set}" = set; then
7263   echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265   if test -n "$BISON"; then
7266   ac_cv_prog_BISON="$BISON" # Let the user override the test.
7267 else
7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7269 for as_dir in $PATH
7270 do
7271   IFS=$as_save_IFS
7272   test -z "$as_dir" && as_dir=.
7273   for ac_exec_ext in '' $ac_executable_extensions; do
7274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7275     ac_cv_prog_BISON="$ac_prog"
7276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7277     break 2
7278   fi
7279 done
7280 done
7281 IFS=$as_save_IFS
7282
7283 fi
7284 fi
7285 BISON=$ac_cv_prog_BISON
7286 if test -n "$BISON"; then
7287   { echo "$as_me:$LINENO: result: $BISON" >&5
7288 echo "${ECHO_T}$BISON" >&6; }
7289 else
7290   { echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6; }
7292 fi
7293
7294
7295   test -n "$BISON" && break
7296 done
7297
7298 fi
7299
7300 if test "$BISON"; then
7301   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7302   { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7303 echo "$as_me: using $pgac_bison_version" >&6;}
7304   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7305   then
7306     { echo "$as_me:$LINENO: WARNING:
7307 *** The installed version of Bison is too old to use with PostgreSQL.
7308 *** Bison version 1.875 or later is required." >&5
7309 echo "$as_me: WARNING:
7310 *** The installed version of Bison is too old to use with PostgreSQL.
7311 *** Bison version 1.875 or later is required." >&2;}
7312     BISON=""
7313   fi
7314 fi
7315
7316 if test -z "$BISON"; then
7317   { echo "$as_me:$LINENO: WARNING:
7318 *** Without Bison you will not be able to build PostgreSQL from CVS nor
7319 *** change any of the parser definition files.  You can obtain Bison from
7320 *** a GNU mirror site.  (If you are using the official distribution of
7321 *** PostgreSQL then you do not need to worry about this, because the Bison
7322 *** output is pre-generated.)" >&5
7323 echo "$as_me: WARNING:
7324 *** Without Bison you will not be able to build PostgreSQL from CVS nor
7325 *** change any of the parser definition files.  You can obtain Bison from
7326 *** a GNU mirror site.  (If you are using the official distribution of
7327 *** PostgreSQL then you do not need to worry about this, because the Bison
7328 *** output is pre-generated.)" >&2;}
7329 fi
7330 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7331
7332
7333 { echo "$as_me:$LINENO: checking for flex" >&5
7334 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
7335 if test "${pgac_cv_path_flex+set}" = set; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   # Let the user override the test
7339 if test -n "$FLEX"; then
7340   pgac_cv_path_flex=$FLEX
7341 else
7342   pgac_save_IFS=$IFS
7343   IFS=$PATH_SEPARATOR
7344   for pgac_dir in $PATH; do
7345     IFS=$pgac_save_IFS
7346     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7347       pgac_dir=`pwd`
7348     fi
7349     for pgac_prog in flex lex; do
7350       pgac_candidate="$pgac_dir/$pgac_prog"
7351       if test -f "$pgac_candidate" \
7352         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7353       then
7354         echo '%%'  > conftest.l
7355         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7356           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
7357             pgac_broken_flex=$pgac_candidate
7358             continue
7359           fi
7360
7361           pgac_cv_path_flex=$pgac_candidate
7362           break 2
7363         fi
7364       fi
7365     done
7366   done
7367   rm -f conftest.l lex.yy.c
7368   : ${pgac_cv_path_flex=no}
7369 fi
7370
7371 fi
7372 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7373 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
7374 if test x"$pgac_cv_path_flex" = x"no"; then
7375   if test -n "$pgac_broken_flex"; then
7376     { echo "$as_me:$LINENO: WARNING:
7377 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
7378 *** should get version 2.5.4 or later." >&5
7379 echo "$as_me: WARNING:
7380 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
7381 *** should get version 2.5.4 or later." >&2;}
7382   fi
7383
7384   { echo "$as_me:$LINENO: WARNING:
7385 *** Without Flex you will not be able to build PostgreSQL from CVS or
7386 *** change any of the scanner definition files.  You can obtain Flex from
7387 *** a GNU mirror site.  (If you are using the official distribution of
7388 *** PostgreSQL then you do not need to worry about this because the Flex
7389 *** output is pre-generated.)" >&5
7390 echo "$as_me: WARNING:
7391 *** Without Flex you will not be able to build PostgreSQL from CVS or
7392 *** change any of the scanner definition files.  You can obtain Flex from
7393 *** a GNU mirror site.  (If you are using the official distribution of
7394 *** PostgreSQL then you do not need to worry about this because the Flex
7395 *** output is pre-generated.)" >&2;}
7396
7397   FLEX=
7398 else
7399   FLEX=$pgac_cv_path_flex
7400   pgac_flex_version=`$FLEX -V 2>/dev/null`
7401   { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7402 echo "$as_me: using $pgac_flex_version" >&6;}
7403 fi
7404
7405
7406
7407
7408
7409 # Extract the first word of "perl", so it can be a program name with args.
7410 set dummy perl; ac_word=$2
7411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7413 if test "${ac_cv_path_PERL+set}" = set; then
7414   echo $ECHO_N "(cached) $ECHO_C" >&6
7415 else
7416   case $PERL in
7417   [\\/]* | ?:[\\/]*)
7418   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7419   ;;
7420   *)
7421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 for as_dir in $PATH
7423 do
7424   IFS=$as_save_IFS
7425   test -z "$as_dir" && as_dir=.
7426   for ac_exec_ext in '' $ac_executable_extensions; do
7427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7429     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430     break 2
7431   fi
7432 done
7433 done
7434 IFS=$as_save_IFS
7435
7436   ;;
7437 esac
7438 fi
7439 PERL=$ac_cv_path_PERL
7440 if test -n "$PERL"; then
7441   { echo "$as_me:$LINENO: result: $PERL" >&5
7442 echo "${ECHO_T}$PERL" >&6; }
7443 else
7444   { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7446 fi
7447
7448
7449 if test "$with_perl" = yes; then
7450
7451 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7452 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
7453 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7454 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7455 echo "${ECHO_T}$perl_archlibexp" >&6; }
7456 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7457 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
7458 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7459 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7460 echo "${ECHO_T}$perl_privlibexp" >&6; }
7461 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7462 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
7463 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7464 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7465 echo "${ECHO_T}$perl_useshrplib" >&6; }
7466
7467 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7468 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
7469 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7470 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7471 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
7472 if test -z "$perl_embed_ldflags" ; then
7473         { echo "$as_me:$LINENO: result: no" >&5
7474 echo "${ECHO_T}no" >&6; }
7475         { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7476 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7477 installed." >&5
7478 echo "$as_me: error: could not determine flags for linking embedded Perl.
7479 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7480 installed." >&2;}
7481    { (exit 1); exit 1; }; }
7482 else
7483         { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7484 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
7485 fi
7486
7487 fi
7488
7489 if test "$with_python" = yes; then
7490   # Extract the first word of "python", so it can be a program name with args.
7491 set dummy python; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_PYTHON+set}" = set; then
7495   echo $ECHO_N "(cached) $ECHO_C" >&6
7496 else
7497   case $PYTHON in
7498   [\\/]* | ?:[\\/]*)
7499   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7500   ;;
7501   *)
7502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 for as_dir in $PATH
7504 do
7505   IFS=$as_save_IFS
7506   test -z "$as_dir" && as_dir=.
7507   for ac_exec_ext in '' $ac_executable_extensions; do
7508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7509     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7511     break 2
7512   fi
7513 done
7514 done
7515 IFS=$as_save_IFS
7516
7517   ;;
7518 esac
7519 fi
7520 PYTHON=$ac_cv_path_PYTHON
7521 if test -n "$PYTHON"; then
7522   { echo "$as_me:$LINENO: result: $PYTHON" >&5
7523 echo "${ECHO_T}$PYTHON" >&6; }
7524 else
7525   { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7527 fi
7528
7529
7530 if test x"$PYTHON" = x""; then
7531   { { echo "$as_me:$LINENO: error: Python not found" >&5
7532 echo "$as_me: error: Python not found" >&2;}
7533    { (exit 1); exit 1; }; }
7534 fi
7535
7536
7537 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
7538 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
7539 if "${PYTHON}" 2>&- -c 'import distutils'
7540 then
7541     { echo "$as_me:$LINENO: result: yes" >&5
7542 echo "${ECHO_T}yes" >&6; }
7543 else
7544     { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7546     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
7547 echo "$as_me: error: distutils module not found" >&2;}
7548    { (exit 1); exit 1; }; }
7549 fi
7550 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
7551 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
7552 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7553 python_configdir=`${PYTHON} -c "from distutils.sysconfig import get_python_lib as f; import os; print(os.path.join(f(plat_specific=1,standard_lib=1),'config'))"`
7554 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print('-I'+distutils.sysconfig.get_python_inc())"`
7555
7556 # This should be enough of a message.
7557 { echo "$as_me:$LINENO: result: $python_configdir" >&5
7558 echo "${ECHO_T}$python_configdir" >&6; }
7559
7560
7561 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7562 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
7563
7564 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7565 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7566 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7567 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7568
7569 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7570 then
7571         # New way: use the official shared library
7572         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7573         python_libspec="-L${python_libdir} -l${ldlibrary}"
7574 else
7575         # Old way: use libpython from python_configdir
7576         python_libdir="${python_configdir}"
7577         python_libspec="-L${python_libdir} -lpython${python_version}"
7578 fi
7579
7580 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS'))))"`
7581
7582 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7583 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
7584
7585
7586 # threaded python is not supported on bsd's
7587 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7588 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
7589 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7590 if test "$pythreads" = "1"; then
7591   { echo "$as_me:$LINENO: result: yes" >&5
7592 echo "${ECHO_T}yes" >&6; }
7593   case $host_os in
7594   openbsd*|freebsd*)
7595     { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7596 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7597    { (exit 1); exit 1; }; }
7598     ;;
7599   esac
7600 else
7601   { echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6; }
7603 fi
7604
7605
7606 fi
7607
7608 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7609   # Extract the first word of "zic", so it can be a program name with args.
7610 set dummy zic; ac_word=$2
7611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7613 if test "${ac_cv_path_ZIC+set}" = set; then
7614   echo $ECHO_N "(cached) $ECHO_C" >&6
7615 else
7616   case $ZIC in
7617   [\\/]* | ?:[\\/]*)
7618   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7619   ;;
7620   *)
7621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 for as_dir in $PATH
7623 do
7624   IFS=$as_save_IFS
7625   test -z "$as_dir" && as_dir=.
7626   for ac_exec_ext in '' $ac_executable_extensions; do
7627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630     break 2
7631   fi
7632 done
7633 done
7634 IFS=$as_save_IFS
7635
7636   ;;
7637 esac
7638 fi
7639 ZIC=$ac_cv_path_ZIC
7640 if test -n "$ZIC"; then
7641   { echo "$as_me:$LINENO: result: $ZIC" >&5
7642 echo "${ECHO_T}$ZIC" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649   if test -z "$ZIC"; then
7650     { { echo "$as_me:$LINENO: error:
7651 When cross-compiling, either use the option --with-system-tzdata to use
7652 existing time-zone data, or set the environment variable ZIC to a zic
7653 program to use during the build." >&5
7654 echo "$as_me: error:
7655 When cross-compiling, either use the option --with-system-tzdata to use
7656 existing time-zone data, or set the environment variable ZIC to a zic
7657 program to use during the build." >&2;}
7658    { (exit 1); exit 1; }; }
7659   fi
7660 fi
7661
7662 # Supply a numeric version string for use by 3rd party add-ons
7663 # awk -F is a regex on some platforms, and not on others, so make "." a tab
7664 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
7665 tr '.' '        ' |
7666 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
7667
7668 cat >>confdefs.h <<_ACEOF
7669 #define PG_VERSION_NUM $PG_VERSION_NUM
7670 _ACEOF
7671
7672
7673 ##
7674 ## Libraries
7675 ##
7676 ## Most libraries are included only if they demonstrably provide a function
7677 ## we need, but libm is an exception: always include it, because there are
7678 ## too many compilers that play cute optimization games that will break
7679 ## probes for standard functions such as pow().
7680 ##
7681
7682
7683 { echo "$as_me:$LINENO: checking for main in -lm" >&5
7684 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
7685 if test "${ac_cv_lib_m_main+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   ac_check_lib_save_LIBS=$LIBS
7689 LIBS="-lm  $LIBS"
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h.  */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h.  */
7696
7697
7698 int
7699 main ()
7700 {
7701 return main ();
7702   ;
7703   return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext conftest$ac_exeext
7707 if { (ac_try="$ac_link"
7708 case "(($ac_try" in
7709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710   *) ac_try_echo=$ac_try;;
7711 esac
7712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7713   (eval "$ac_link") 2>conftest.er1
7714   ac_status=$?
7715   grep -v '^ *+' conftest.er1 >conftest.err
7716   rm -f conftest.er1
7717   cat conftest.err >&5
7718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } && {
7720          test -z "$ac_c_werror_flag" ||
7721          test ! -s conftest.err
7722        } && test -s conftest$ac_exeext &&
7723        $as_test_x conftest$ac_exeext; then
7724   ac_cv_lib_m_main=yes
7725 else
7726   echo "$as_me: failed program was:" >&5
7727 sed 's/^/| /' conftest.$ac_ext >&5
7728
7729         ac_cv_lib_m_main=no
7730 fi
7731
7732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7733       conftest$ac_exeext conftest.$ac_ext
7734 LIBS=$ac_check_lib_save_LIBS
7735 fi
7736 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7737 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
7738 if test $ac_cv_lib_m_main = yes; then
7739   cat >>confdefs.h <<_ACEOF
7740 #define HAVE_LIBM 1
7741 _ACEOF
7742
7743   LIBS="-lm $LIBS"
7744
7745 fi
7746
7747 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7748 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
7749 if test "${ac_cv_search_setproctitle+set}" = set; then
7750   echo $ECHO_N "(cached) $ECHO_C" >&6
7751 else
7752   ac_func_search_save_LIBS=$LIBS
7753 cat >conftest.$ac_ext <<_ACEOF
7754 /* confdefs.h.  */
7755 _ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h.  */
7759
7760 /* Override any GCC internal prototype to avoid an error.
7761    Use char because int might match the return type of a GCC
7762    builtin and then its argument prototype would still apply.  */
7763 #ifdef __cplusplus
7764 extern "C"
7765 #endif
7766 char setproctitle ();
7767 int
7768 main ()
7769 {
7770 return setproctitle ();
7771   ;
7772   return 0;
7773 }
7774 _ACEOF
7775 for ac_lib in '' util; do
7776   if test -z "$ac_lib"; then
7777     ac_res="none required"
7778   else
7779     ac_res=-l$ac_lib
7780     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7781   fi
7782   rm -f conftest.$ac_objext conftest$ac_exeext
7783 if { (ac_try="$ac_link"
7784 case "(($ac_try" in
7785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7786   *) ac_try_echo=$ac_try;;
7787 esac
7788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7789   (eval "$ac_link") 2>conftest.er1
7790   ac_status=$?
7791   grep -v '^ *+' conftest.er1 >conftest.err
7792   rm -f conftest.er1
7793   cat conftest.err >&5
7794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795   (exit $ac_status); } && {
7796          test -z "$ac_c_werror_flag" ||
7797          test ! -s conftest.err
7798        } && test -s conftest$ac_exeext &&
7799        $as_test_x conftest$ac_exeext; then
7800   ac_cv_search_setproctitle=$ac_res
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805
7806 fi
7807
7808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7809       conftest$ac_exeext
7810   if test "${ac_cv_search_setproctitle+set}" = set; then
7811   break
7812 fi
7813 done
7814 if test "${ac_cv_search_setproctitle+set}" = set; then
7815   :
7816 else
7817   ac_cv_search_setproctitle=no
7818 fi
7819 rm conftest.$ac_ext
7820 LIBS=$ac_func_search_save_LIBS
7821 fi
7822 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7823 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
7824 ac_res=$ac_cv_search_setproctitle
7825 if test "$ac_res" != no; then
7826   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7827
7828 fi
7829
7830 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7831 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
7832 if test "${ac_cv_search_dlopen+set}" = set; then
7833   echo $ECHO_N "(cached) $ECHO_C" >&6
7834 else
7835   ac_func_search_save_LIBS=$LIBS
7836 cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842
7843 /* Override any GCC internal prototype to avoid an error.
7844    Use char because int might match the return type of a GCC
7845    builtin and then its argument prototype would still apply.  */
7846 #ifdef __cplusplus
7847 extern "C"
7848 #endif
7849 char dlopen ();
7850 int
7851 main ()
7852 {
7853 return dlopen ();
7854   ;
7855   return 0;
7856 }
7857 _ACEOF
7858 for ac_lib in '' dl; do
7859   if test -z "$ac_lib"; then
7860     ac_res="none required"
7861   else
7862     ac_res=-l$ac_lib
7863     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7864   fi
7865   rm -f conftest.$ac_objext conftest$ac_exeext
7866 if { (ac_try="$ac_link"
7867 case "(($ac_try" in
7868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869   *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872   (eval "$ac_link") 2>conftest.er1
7873   ac_status=$?
7874   grep -v '^ *+' conftest.er1 >conftest.err
7875   rm -f conftest.er1
7876   cat conftest.err >&5
7877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878   (exit $ac_status); } && {
7879          test -z "$ac_c_werror_flag" ||
7880          test ! -s conftest.err
7881        } && test -s conftest$ac_exeext &&
7882        $as_test_x conftest$ac_exeext; then
7883   ac_cv_search_dlopen=$ac_res
7884 else
7885   echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888
7889 fi
7890
7891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7892       conftest$ac_exeext
7893   if test "${ac_cv_search_dlopen+set}" = set; then
7894   break
7895 fi
7896 done
7897 if test "${ac_cv_search_dlopen+set}" = set; then
7898   :
7899 else
7900   ac_cv_search_dlopen=no
7901 fi
7902 rm conftest.$ac_ext
7903 LIBS=$ac_func_search_save_LIBS
7904 fi
7905 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7906 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
7907 ac_res=$ac_cv_search_dlopen
7908 if test "$ac_res" != no; then
7909   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7910
7911 fi
7912
7913 { echo "$as_me:$LINENO: checking for library containing socket" >&5
7914 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
7915 if test "${ac_cv_search_socket+set}" = set; then
7916   echo $ECHO_N "(cached) $ECHO_C" >&6
7917 else
7918   ac_func_search_save_LIBS=$LIBS
7919 cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925
7926 /* Override any GCC internal prototype to avoid an error.
7927    Use char because int might match the return type of a GCC
7928    builtin and then its argument prototype would still apply.  */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 char socket ();
7933 int
7934 main ()
7935 {
7936 return socket ();
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 for ac_lib in '' socket wsock32; do
7942   if test -z "$ac_lib"; then
7943     ac_res="none required"
7944   else
7945     ac_res=-l$ac_lib
7946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7947   fi
7948   rm -f conftest.$ac_objext conftest$ac_exeext
7949 if { (ac_try="$ac_link"
7950 case "(($ac_try" in
7951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952   *) ac_try_echo=$ac_try;;
7953 esac
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955   (eval "$ac_link") 2>conftest.er1
7956   ac_status=$?
7957   grep -v '^ *+' conftest.er1 >conftest.err
7958   rm -f conftest.er1
7959   cat conftest.err >&5
7960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961   (exit $ac_status); } && {
7962          test -z "$ac_c_werror_flag" ||
7963          test ! -s conftest.err
7964        } && test -s conftest$ac_exeext &&
7965        $as_test_x conftest$ac_exeext; then
7966   ac_cv_search_socket=$ac_res
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971
7972 fi
7973
7974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7975       conftest$ac_exeext
7976   if test "${ac_cv_search_socket+set}" = set; then
7977   break
7978 fi
7979 done
7980 if test "${ac_cv_search_socket+set}" = set; then
7981   :
7982 else
7983   ac_cv_search_socket=no
7984 fi
7985 rm conftest.$ac_ext
7986 LIBS=$ac_func_search_save_LIBS
7987 fi
7988 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
7989 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
7990 ac_res=$ac_cv_search_socket
7991 if test "$ac_res" != no; then
7992   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7993
7994 fi
7995
7996 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
7997 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
7998 if test "${ac_cv_search_shl_load+set}" = set; then
7999   echo $ECHO_N "(cached) $ECHO_C" >&6
8000 else
8001   ac_func_search_save_LIBS=$LIBS
8002 cat >conftest.$ac_ext <<_ACEOF
8003 /* confdefs.h.  */
8004 _ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h.  */
8008
8009 /* Override any GCC internal prototype to avoid an error.
8010    Use char because int might match the return type of a GCC
8011    builtin and then its argument prototype would still apply.  */
8012 #ifdef __cplusplus
8013 extern "C"
8014 #endif
8015 char shl_load ();
8016 int
8017 main ()
8018 {
8019 return shl_load ();
8020   ;
8021   return 0;
8022 }
8023 _ACEOF
8024 for ac_lib in '' dld; do
8025   if test -z "$ac_lib"; then
8026     ac_res="none required"
8027   else
8028     ac_res=-l$ac_lib
8029     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8030   fi
8031   rm -f conftest.$ac_objext conftest$ac_exeext
8032 if { (ac_try="$ac_link"
8033 case "(($ac_try" in
8034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035   *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038   (eval "$ac_link") 2>conftest.er1
8039   ac_status=$?
8040   grep -v '^ *+' conftest.er1 >conftest.err
8041   rm -f conftest.er1
8042   cat conftest.err >&5
8043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044   (exit $ac_status); } && {
8045          test -z "$ac_c_werror_flag" ||
8046          test ! -s conftest.err
8047        } && test -s conftest$ac_exeext &&
8048        $as_test_x conftest$ac_exeext; then
8049   ac_cv_search_shl_load=$ac_res
8050 else
8051   echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8053
8054
8055 fi
8056
8057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8058       conftest$ac_exeext
8059   if test "${ac_cv_search_shl_load+set}" = set; then
8060   break
8061 fi
8062 done
8063 if test "${ac_cv_search_shl_load+set}" = set; then
8064   :
8065 else
8066   ac_cv_search_shl_load=no
8067 fi
8068 rm conftest.$ac_ext
8069 LIBS=$ac_func_search_save_LIBS
8070 fi
8071 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8072 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
8073 ac_res=$ac_cv_search_shl_load
8074 if test "$ac_res" != no; then
8075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8076
8077 fi
8078
8079 # We only use libld in port/dynloader/aix.c
8080 case $host_os in
8081      aix*)
8082         { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8083 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
8084 if test "${ac_cv_search_ldopen+set}" = set; then
8085   echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087   ac_func_search_save_LIBS=$LIBS
8088 cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094
8095 /* Override any GCC internal prototype to avoid an error.
8096    Use char because int might match the return type of a GCC
8097    builtin and then its argument prototype would still apply.  */
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 char ldopen ();
8102 int
8103 main ()
8104 {
8105 return ldopen ();
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 for ac_lib in '' ld; do
8111   if test -z "$ac_lib"; then
8112     ac_res="none required"
8113   else
8114     ac_res=-l$ac_lib
8115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8116   fi
8117   rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (ac_try="$ac_link"
8119 case "(($ac_try" in
8120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121   *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124   (eval "$ac_link") 2>conftest.er1
8125   ac_status=$?
8126   grep -v '^ *+' conftest.er1 >conftest.err
8127   rm -f conftest.er1
8128   cat conftest.err >&5
8129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130   (exit $ac_status); } && {
8131          test -z "$ac_c_werror_flag" ||
8132          test ! -s conftest.err
8133        } && test -s conftest$ac_exeext &&
8134        $as_test_x conftest$ac_exeext; then
8135   ac_cv_search_ldopen=$ac_res
8136 else
8137   echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140
8141 fi
8142
8143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8144       conftest$ac_exeext
8145   if test "${ac_cv_search_ldopen+set}" = set; then
8146   break
8147 fi
8148 done
8149 if test "${ac_cv_search_ldopen+set}" = set; then
8150   :
8151 else
8152   ac_cv_search_ldopen=no
8153 fi
8154 rm conftest.$ac_ext
8155 LIBS=$ac_func_search_save_LIBS
8156 fi
8157 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8158 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
8159 ac_res=$ac_cv_search_ldopen
8160 if test "$ac_res" != no; then
8161   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8162
8163 fi
8164
8165         ;;
8166 esac
8167 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8168 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
8169 if test "${ac_cv_search_getopt_long+set}" = set; then
8170   echo $ECHO_N "(cached) $ECHO_C" >&6
8171 else
8172   ac_func_search_save_LIBS=$LIBS
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h.  */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h.  */
8179
8180 /* Override any GCC internal prototype to avoid an error.
8181    Use char because int might match the return type of a GCC
8182    builtin and then its argument prototype would still apply.  */
8183 #ifdef __cplusplus
8184 extern "C"
8185 #endif
8186 char getopt_long ();
8187 int
8188 main ()
8189 {
8190 return getopt_long ();
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 for ac_lib in '' getopt gnugetopt; do
8196   if test -z "$ac_lib"; then
8197     ac_res="none required"
8198   else
8199     ac_res=-l$ac_lib
8200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8201   fi
8202   rm -f conftest.$ac_objext conftest$ac_exeext
8203 if { (ac_try="$ac_link"
8204 case "(($ac_try" in
8205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8206   *) ac_try_echo=$ac_try;;
8207 esac
8208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8209   (eval "$ac_link") 2>conftest.er1
8210   ac_status=$?
8211   grep -v '^ *+' conftest.er1 >conftest.err
8212   rm -f conftest.er1
8213   cat conftest.err >&5
8214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215   (exit $ac_status); } && {
8216          test -z "$ac_c_werror_flag" ||
8217          test ! -s conftest.err
8218        } && test -s conftest$ac_exeext &&
8219        $as_test_x conftest$ac_exeext; then
8220   ac_cv_search_getopt_long=$ac_res
8221 else
8222   echo "$as_me: failed program was:" >&5
8223 sed 's/^/| /' conftest.$ac_ext >&5
8224
8225
8226 fi
8227
8228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8229       conftest$ac_exeext
8230   if test "${ac_cv_search_getopt_long+set}" = set; then
8231   break
8232 fi
8233 done
8234 if test "${ac_cv_search_getopt_long+set}" = set; then
8235   :
8236 else
8237   ac_cv_search_getopt_long=no
8238 fi
8239 rm conftest.$ac_ext
8240 LIBS=$ac_func_search_save_LIBS
8241 fi
8242 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8243 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
8244 ac_res=$ac_cv_search_getopt_long
8245 if test "$ac_res" != no; then
8246   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8247
8248 fi
8249
8250 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
8251 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
8252 if test "${ac_cv_search_crypt+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   ac_func_search_save_LIBS=$LIBS
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262
8263 /* Override any GCC internal prototype to avoid an error.
8264    Use char because int might match the return type of a GCC
8265    builtin and then its argument prototype would still apply.  */
8266 #ifdef __cplusplus
8267 extern "C"
8268 #endif
8269 char crypt ();
8270 int
8271 main ()
8272 {
8273 return crypt ();
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 for ac_lib in '' crypt; do
8279   if test -z "$ac_lib"; then
8280     ac_res="none required"
8281   else
8282     ac_res=-l$ac_lib
8283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8284   fi
8285   rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (ac_try="$ac_link"
8287 case "(($ac_try" in
8288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289   *) ac_try_echo=$ac_try;;
8290 esac
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292   (eval "$ac_link") 2>conftest.er1
8293   ac_status=$?
8294   grep -v '^ *+' conftest.er1 >conftest.err
8295   rm -f conftest.er1
8296   cat conftest.err >&5
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); } && {
8299          test -z "$ac_c_werror_flag" ||
8300          test ! -s conftest.err
8301        } && test -s conftest$ac_exeext &&
8302        $as_test_x conftest$ac_exeext; then
8303   ac_cv_search_crypt=$ac_res
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308
8309 fi
8310
8311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8312       conftest$ac_exeext
8313   if test "${ac_cv_search_crypt+set}" = set; then
8314   break
8315 fi
8316 done
8317 if test "${ac_cv_search_crypt+set}" = set; then
8318   :
8319 else
8320   ac_cv_search_crypt=no
8321 fi
8322 rm conftest.$ac_ext
8323 LIBS=$ac_func_search_save_LIBS
8324 fi
8325 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8326 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
8327 ac_res=$ac_cv_search_crypt
8328 if test "$ac_res" != no; then
8329   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8330
8331 fi
8332
8333 # Solaris:
8334 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8335 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
8336 if test "${ac_cv_search_fdatasync+set}" = set; then
8337   echo $ECHO_N "(cached) $ECHO_C" >&6
8338 else
8339   ac_func_search_save_LIBS=$LIBS
8340 cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346
8347 /* Override any GCC internal prototype to avoid an error.
8348    Use char because int might match the return type of a GCC
8349    builtin and then its argument prototype would still apply.  */
8350 #ifdef __cplusplus
8351 extern "C"
8352 #endif
8353 char fdatasync ();
8354 int
8355 main ()
8356 {
8357 return fdatasync ();
8358   ;
8359   return 0;
8360 }
8361 _ACEOF
8362 for ac_lib in '' rt posix4; do
8363   if test -z "$ac_lib"; then
8364     ac_res="none required"
8365   else
8366     ac_res=-l$ac_lib
8367     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8368   fi
8369   rm -f conftest.$ac_objext conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8371 case "(($ac_try" in
8372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373   *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376   (eval "$ac_link") 2>conftest.er1
8377   ac_status=$?
8378   grep -v '^ *+' conftest.er1 >conftest.err
8379   rm -f conftest.er1
8380   cat conftest.err >&5
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); } && {
8383          test -z "$ac_c_werror_flag" ||
8384          test ! -s conftest.err
8385        } && test -s conftest$ac_exeext &&
8386        $as_test_x conftest$ac_exeext; then
8387   ac_cv_search_fdatasync=$ac_res
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8396       conftest$ac_exeext
8397   if test "${ac_cv_search_fdatasync+set}" = set; then
8398   break
8399 fi
8400 done
8401 if test "${ac_cv_search_fdatasync+set}" = set; then
8402   :
8403 else
8404   ac_cv_search_fdatasync=no
8405 fi
8406 rm conftest.$ac_ext
8407 LIBS=$ac_func_search_save_LIBS
8408 fi
8409 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8410 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
8411 ac_res=$ac_cv_search_fdatasync
8412 if test "$ac_res" != no; then
8413   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8414
8415 fi
8416
8417 # Cygwin:
8418 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
8419 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
8420 if test "${ac_cv_search_shmget+set}" = set; then
8421   echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423   ac_func_search_save_LIBS=$LIBS
8424 cat >conftest.$ac_ext <<_ACEOF
8425 /* confdefs.h.  */
8426 _ACEOF
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h.  */
8430
8431 /* Override any GCC internal prototype to avoid an error.
8432    Use char because int might match the return type of a GCC
8433    builtin and then its argument prototype would still apply.  */
8434 #ifdef __cplusplus
8435 extern "C"
8436 #endif
8437 char shmget ();
8438 int
8439 main ()
8440 {
8441 return shmget ();
8442   ;
8443   return 0;
8444 }
8445 _ACEOF
8446 for ac_lib in '' cygipc; do
8447   if test -z "$ac_lib"; then
8448     ac_res="none required"
8449   else
8450     ac_res=-l$ac_lib
8451     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8452   fi
8453   rm -f conftest.$ac_objext conftest$ac_exeext
8454 if { (ac_try="$ac_link"
8455 case "(($ac_try" in
8456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457   *) ac_try_echo=$ac_try;;
8458 esac
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460   (eval "$ac_link") 2>conftest.er1
8461   ac_status=$?
8462   grep -v '^ *+' conftest.er1 >conftest.err
8463   rm -f conftest.er1
8464   cat conftest.err >&5
8465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466   (exit $ac_status); } && {
8467          test -z "$ac_c_werror_flag" ||
8468          test ! -s conftest.err
8469        } && test -s conftest$ac_exeext &&
8470        $as_test_x conftest$ac_exeext; then
8471   ac_cv_search_shmget=$ac_res
8472 else
8473   echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8475
8476
8477 fi
8478
8479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8480       conftest$ac_exeext
8481   if test "${ac_cv_search_shmget+set}" = set; then
8482   break
8483 fi
8484 done
8485 if test "${ac_cv_search_shmget+set}" = set; then
8486   :
8487 else
8488   ac_cv_search_shmget=no
8489 fi
8490 rm conftest.$ac_ext
8491 LIBS=$ac_func_search_save_LIBS
8492 fi
8493 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8494 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
8495 ac_res=$ac_cv_search_shmget
8496 if test "$ac_res" != no; then
8497   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8498
8499 fi
8500
8501
8502 if test "$with_readline" = yes; then
8503
8504
8505 if test "${pgac_cv_check_readline+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   pgac_cv_check_readline=no
8509 pgac_save_LIBS=$LIBS
8510 if test x"$with_libedit_preferred" != x"yes"
8511 then    READLINE_ORDER="-lreadline -ledit"
8512 else    READLINE_ORDER="-ledit -lreadline"
8513 fi
8514 for pgac_rllib in $READLINE_ORDER ; do
8515   { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
8516 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
8517   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8518     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8519     cat >conftest.$ac_ext <<_ACEOF
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525
8526 /* Override any GCC internal prototype to avoid an error.
8527    Use char because int might match the return type of a GCC
8528    builtin and then its argument prototype would still apply.  */
8529 #ifdef __cplusplus
8530 extern "C"
8531 #endif
8532 char readline ();
8533 int
8534 main ()
8535 {
8536 return readline ();
8537   ;
8538   return 0;
8539 }
8540 _ACEOF
8541 rm -f conftest.$ac_objext conftest$ac_exeext
8542 if { (ac_try="$ac_link"
8543 case "(($ac_try" in
8544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545   *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548   (eval "$ac_link") 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } && {
8555          test -z "$ac_c_werror_flag" ||
8556          test ! -s conftest.err
8557        } && test -s conftest$ac_exeext &&
8558        $as_test_x conftest$ac_exeext; then
8559
8560       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8561       # recognize dependent libraries; assume curses is needed if we didn't
8562       # find any dependency.
8563       case $host_os in
8564         netbsd* | openbsd* | irix*)
8565           if test x"$pgac_lib" = x"" ; then
8566             pgac_lib=" -lcurses"
8567           fi ;;
8568       esac
8569
8570       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8571       break
8572
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577
8578 fi
8579
8580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8581       conftest$ac_exeext conftest.$ac_ext
8582   done
8583   if test "$pgac_cv_check_readline" != no ; then
8584     { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
8585 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
8586     break
8587   else
8588     { echo "$as_me:$LINENO: result: no" >&5
8589 echo "${ECHO_T}no" >&6; }
8590   fi
8591 done
8592 LIBS=$pgac_save_LIBS
8593
8594 fi
8595
8596 if test "$pgac_cv_check_readline" != no ; then
8597   LIBS="$pgac_cv_check_readline $LIBS"
8598
8599 cat >>confdefs.h <<\_ACEOF
8600 #define HAVE_LIBREADLINE 1
8601 _ACEOF
8602
8603 fi
8604
8605
8606   if test x"$pgac_cv_check_readline" = x"no"; then
8607     { { echo "$as_me:$LINENO: error: readline library not found
8608 If you have readline already installed, see config.log for details on the
8609 failure.  It is possible the compiler isn't looking in the proper directory.
8610 Use --without-readline to disable readline support." >&5
8611 echo "$as_me: error: readline library not found
8612 If you have readline already installed, see config.log for details on the
8613 failure.  It is possible the compiler isn't looking in the proper directory.
8614 Use --without-readline to disable readline support." >&2;}
8615    { (exit 1); exit 1; }; }
8616   fi
8617 fi
8618
8619 if test "$with_zlib" = yes; then
8620
8621 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8622 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
8623 if test "${ac_cv_lib_z_inflate+set}" = set; then
8624   echo $ECHO_N "(cached) $ECHO_C" >&6
8625 else
8626   ac_check_lib_save_LIBS=$LIBS
8627 LIBS="-lz  $LIBS"
8628 cat >conftest.$ac_ext <<_ACEOF
8629 /* confdefs.h.  */
8630 _ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h.  */
8634
8635 /* Override any GCC internal prototype to avoid an error.
8636    Use char because int might match the return type of a GCC
8637    builtin and then its argument prototype would still apply.  */
8638 #ifdef __cplusplus
8639 extern "C"
8640 #endif
8641 char inflate ();
8642 int
8643 main ()
8644 {
8645 return inflate ();
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (ac_try="$ac_link"
8652 case "(($ac_try" in
8653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654   *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657   (eval "$ac_link") 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } && {
8664          test -z "$ac_c_werror_flag" ||
8665          test ! -s conftest.err
8666        } && test -s conftest$ac_exeext &&
8667        $as_test_x conftest$ac_exeext; then
8668   ac_cv_lib_z_inflate=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673         ac_cv_lib_z_inflate=no
8674 fi
8675
8676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8677       conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8679 fi
8680 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
8681 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
8682 if test $ac_cv_lib_z_inflate = yes; then
8683   cat >>confdefs.h <<_ACEOF
8684 #define HAVE_LIBZ 1
8685 _ACEOF
8686
8687   LIBS="-lz $LIBS"
8688
8689 else
8690   { { echo "$as_me:$LINENO: error: zlib library not found
8691 If you have zlib already installed, see config.log for details on the
8692 failure.  It is possible the compiler isn't looking in the proper directory.
8693 Use --without-zlib to disable zlib support." >&5
8694 echo "$as_me: error: zlib library not found
8695 If you have zlib already installed, see config.log for details on the
8696 failure.  It is possible the compiler isn't looking in the proper directory.
8697 Use --without-zlib to disable zlib support." >&2;}
8698    { (exit 1); exit 1; }; }
8699 fi
8700
8701 fi
8702
8703 if test "$enable_spinlocks" = yes; then
8704
8705 cat >>confdefs.h <<\_ACEOF
8706 #define HAVE_SPINLOCKS 1
8707 _ACEOF
8708
8709 else
8710   { echo "$as_me:$LINENO: WARNING:
8711 *** Not using spinlocks will cause poor performance." >&5
8712 echo "$as_me: WARNING:
8713 *** Not using spinlocks will cause poor performance." >&2;}
8714 fi
8715
8716 if test "$with_gssapi" = yes ; then
8717   if test "$PORTNAME" != "win32"; then
8718     { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
8719 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
8720 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8721   echo $ECHO_N "(cached) $ECHO_C" >&6
8722 else
8723   ac_func_search_save_LIBS=$LIBS
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h.  */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h.  */
8730
8731 /* Override any GCC internal prototype to avoid an error.
8732    Use char because int might match the return type of a GCC
8733    builtin and then its argument prototype would still apply.  */
8734 #ifdef __cplusplus
8735 extern "C"
8736 #endif
8737 char gss_init_sec_context ();
8738 int
8739 main ()
8740 {
8741 return gss_init_sec_context ();
8742   ;
8743   return 0;
8744 }
8745 _ACEOF
8746 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
8747   if test -z "$ac_lib"; then
8748     ac_res="none required"
8749   else
8750     ac_res=-l$ac_lib
8751     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8752   fi
8753   rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (ac_try="$ac_link"
8755 case "(($ac_try" in
8756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757   *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760   (eval "$ac_link") 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } && {
8767          test -z "$ac_c_werror_flag" ||
8768          test ! -s conftest.err
8769        } && test -s conftest$ac_exeext &&
8770        $as_test_x conftest$ac_exeext; then
8771   ac_cv_search_gss_init_sec_context=$ac_res
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776
8777 fi
8778
8779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8780       conftest$ac_exeext
8781   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8782   break
8783 fi
8784 done
8785 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
8786   :
8787 else
8788   ac_cv_search_gss_init_sec_context=no
8789 fi
8790 rm conftest.$ac_ext
8791 LIBS=$ac_func_search_save_LIBS
8792 fi
8793 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
8794 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
8795 ac_res=$ac_cv_search_gss_init_sec_context
8796 if test "$ac_res" != no; then
8797   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8798
8799 else
8800   { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
8801 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
8802    { (exit 1); exit 1; }; }
8803 fi
8804
8805   else
8806     LIBS="$LIBS -lgssapi32"
8807   fi
8808 fi
8809
8810 if test "$with_krb5" = yes ; then
8811   if test "$PORTNAME" != "win32"; then
8812      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8813 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8814 if test "${ac_cv_search_com_err+set}" = set; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   ac_func_search_save_LIBS=$LIBS
8818 cat >conftest.$ac_ext <<_ACEOF
8819 /* confdefs.h.  */
8820 _ACEOF
8821 cat confdefs.h >>conftest.$ac_ext
8822 cat >>conftest.$ac_ext <<_ACEOF
8823 /* end confdefs.h.  */
8824
8825 /* Override any GCC internal prototype to avoid an error.
8826    Use char because int might match the return type of a GCC
8827    builtin and then its argument prototype would still apply.  */
8828 #ifdef __cplusplus
8829 extern "C"
8830 #endif
8831 char com_err ();
8832 int
8833 main ()
8834 {
8835 return com_err ();
8836   ;
8837   return 0;
8838 }
8839 _ACEOF
8840 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
8841   if test -z "$ac_lib"; then
8842     ac_res="none required"
8843   else
8844     ac_res=-l$ac_lib
8845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8846   fi
8847   rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (ac_try="$ac_link"
8849 case "(($ac_try" in
8850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851   *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854   (eval "$ac_link") 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } && {
8861          test -z "$ac_c_werror_flag" ||
8862          test ! -s conftest.err
8863        } && test -s conftest$ac_exeext &&
8864        $as_test_x conftest$ac_exeext; then
8865   ac_cv_search_com_err=$ac_res
8866 else
8867   echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8869
8870
8871 fi
8872
8873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8874       conftest$ac_exeext
8875   if test "${ac_cv_search_com_err+set}" = set; then
8876   break
8877 fi
8878 done
8879 if test "${ac_cv_search_com_err+set}" = set; then
8880   :
8881 else
8882   ac_cv_search_com_err=no
8883 fi
8884 rm conftest.$ac_ext
8885 LIBS=$ac_func_search_save_LIBS
8886 fi
8887 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
8888 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
8889 ac_res=$ac_cv_search_com_err
8890 if test "$ac_res" != no; then
8891   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8892
8893 else
8894   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
8895 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
8896    { (exit 1); exit 1; }; }
8897 fi
8898
8899      { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
8900 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
8901 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   ac_func_search_save_LIBS=$LIBS
8905 cat >conftest.$ac_ext <<_ACEOF
8906 /* confdefs.h.  */
8907 _ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h.  */
8911
8912 /* Override any GCC internal prototype to avoid an error.
8913    Use char because int might match the return type of a GCC
8914    builtin and then its argument prototype would still apply.  */
8915 #ifdef __cplusplus
8916 extern "C"
8917 #endif
8918 char krb5_sendauth ();
8919 int
8920 main ()
8921 {
8922 return krb5_sendauth ();
8923   ;
8924   return 0;
8925 }
8926 _ACEOF
8927 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
8928   if test -z "$ac_lib"; then
8929     ac_res="none required"
8930   else
8931     ac_res=-l$ac_lib
8932     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8933   fi
8934   rm -f conftest.$ac_objext conftest$ac_exeext
8935 if { (ac_try="$ac_link"
8936 case "(($ac_try" in
8937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938   *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941   (eval "$ac_link") 2>conftest.er1
8942   ac_status=$?
8943   grep -v '^ *+' conftest.er1 >conftest.err
8944   rm -f conftest.er1
8945   cat conftest.err >&5
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); } && {
8948          test -z "$ac_c_werror_flag" ||
8949          test ! -s conftest.err
8950        } && test -s conftest$ac_exeext &&
8951        $as_test_x conftest$ac_exeext; then
8952   ac_cv_search_krb5_sendauth=$ac_res
8953 else
8954   echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957
8958 fi
8959
8960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961       conftest$ac_exeext
8962   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8963   break
8964 fi
8965 done
8966 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
8967   :
8968 else
8969   ac_cv_search_krb5_sendauth=no
8970 fi
8971 rm conftest.$ac_ext
8972 LIBS=$ac_func_search_save_LIBS
8973 fi
8974 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
8975 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
8976 ac_res=$ac_cv_search_krb5_sendauth
8977 if test "$ac_res" != no; then
8978   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8979
8980 else
8981   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
8982 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
8983    { (exit 1); exit 1; }; }
8984 fi
8985
8986   else
8987      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
8988 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
8989 if test "${ac_cv_search_com_err+set}" = set; then
8990   echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992   ac_func_search_save_LIBS=$LIBS
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999
9000 /* Override any GCC internal prototype to avoid an error.
9001    Use char because int might match the return type of a GCC
9002    builtin and then its argument prototype would still apply.  */
9003 #ifdef __cplusplus
9004 extern "C"
9005 #endif
9006 char com_err ();
9007 int
9008 main ()
9009 {
9010 return com_err ();
9011   ;
9012   return 0;
9013 }
9014 _ACEOF
9015 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9016   if test -z "$ac_lib"; then
9017     ac_res="none required"
9018   else
9019     ac_res=-l$ac_lib
9020     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9021   fi
9022   rm -f conftest.$ac_objext conftest$ac_exeext
9023 if { (ac_try="$ac_link"
9024 case "(($ac_try" in
9025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9026   *) ac_try_echo=$ac_try;;
9027 esac
9028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9029   (eval "$ac_link") 2>conftest.er1
9030   ac_status=$?
9031   grep -v '^ *+' conftest.er1 >conftest.err
9032   rm -f conftest.er1
9033   cat conftest.err >&5
9034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035   (exit $ac_status); } && {
9036          test -z "$ac_c_werror_flag" ||
9037          test ! -s conftest.err
9038        } && test -s conftest$ac_exeext &&
9039        $as_test_x conftest$ac_exeext; then
9040   ac_cv_search_com_err=$ac_res
9041 else
9042   echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045
9046 fi
9047
9048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9049       conftest$ac_exeext
9050   if test "${ac_cv_search_com_err+set}" = set; then
9051   break
9052 fi
9053 done
9054 if test "${ac_cv_search_com_err+set}" = set; then
9055   :
9056 else
9057   ac_cv_search_com_err=no
9058 fi
9059 rm conftest.$ac_ext
9060 LIBS=$ac_func_search_save_LIBS
9061 fi
9062 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9063 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
9064 ac_res=$ac_cv_search_com_err
9065 if test "$ac_res" != no; then
9066   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9067
9068 else
9069   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9070 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9071    { (exit 1); exit 1; }; }
9072 fi
9073
9074   fi
9075 fi
9076
9077 if test "$with_openssl" = yes ; then
9078     if test "$PORTNAME" != "win32"; then
9079
9080 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9081 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
9082 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9083   echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085   ac_check_lib_save_LIBS=$LIBS
9086 LIBS="-lcrypto  $LIBS"
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h.  */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h.  */
9093
9094 /* Override any GCC internal prototype to avoid an error.
9095    Use char because int might match the return type of a GCC
9096    builtin and then its argument prototype would still apply.  */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 char CRYPTO_new_ex_data ();
9101 int
9102 main ()
9103 {
9104 return CRYPTO_new_ex_data ();
9105   ;
9106   return 0;
9107 }
9108 _ACEOF
9109 rm -f conftest.$ac_objext conftest$ac_exeext
9110 if { (ac_try="$ac_link"
9111 case "(($ac_try" in
9112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9113   *) ac_try_echo=$ac_try;;
9114 esac
9115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9116   (eval "$ac_link") 2>conftest.er1
9117   ac_status=$?
9118   grep -v '^ *+' conftest.er1 >conftest.err
9119   rm -f conftest.er1
9120   cat conftest.err >&5
9121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9122   (exit $ac_status); } && {
9123          test -z "$ac_c_werror_flag" ||
9124          test ! -s conftest.err
9125        } && test -s conftest$ac_exeext &&
9126        $as_test_x conftest$ac_exeext; then
9127   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9133 fi
9134
9135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9136       conftest$ac_exeext conftest.$ac_ext
9137 LIBS=$ac_check_lib_save_LIBS
9138 fi
9139 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9140 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9141 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
9142   cat >>confdefs.h <<_ACEOF
9143 #define HAVE_LIBCRYPTO 1
9144 _ACEOF
9145
9146   LIBS="-lcrypto $LIBS"
9147
9148 else
9149   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9150 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9151    { (exit 1); exit 1; }; }
9152 fi
9153
9154
9155 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9156 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
9157 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160   ac_check_lib_save_LIBS=$LIBS
9161 LIBS="-lssl  $LIBS"
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h.  */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h.  */
9168
9169 /* Override any GCC internal prototype to avoid an error.
9170    Use char because int might match the return type of a GCC
9171    builtin and then its argument prototype would still apply.  */
9172 #ifdef __cplusplus
9173 extern "C"
9174 #endif
9175 char SSL_library_init ();
9176 int
9177 main ()
9178 {
9179 return SSL_library_init ();
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   ac_cv_lib_ssl_SSL_library_init=yes
9203 else
9204   echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207         ac_cv_lib_ssl_SSL_library_init=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 LIBS=$ac_check_lib_save_LIBS
9213 fi
9214 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9215 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
9216 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
9217   cat >>confdefs.h <<_ACEOF
9218 #define HAVE_LIBSSL 1
9219 _ACEOF
9220
9221   LIBS="-lssl $LIBS"
9222
9223 else
9224   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9225 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9226    { (exit 1); exit 1; }; }
9227 fi
9228
9229   else
9230
9231 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
9232 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
9233 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
9234   echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236   ac_check_lib_save_LIBS=$LIBS
9237 LIBS="-leay32  $LIBS"
9238 cat >conftest.$ac_ext <<_ACEOF
9239 /* confdefs.h.  */
9240 _ACEOF
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h.  */
9244
9245 /* Override any GCC internal prototype to avoid an error.
9246    Use char because int might match the return type of a GCC
9247    builtin and then its argument prototype would still apply.  */
9248 #ifdef __cplusplus
9249 extern "C"
9250 #endif
9251 char CRYPTO_new_ex_data ();
9252 int
9253 main ()
9254 {
9255 return CRYPTO_new_ex_data ();
9256   ;
9257   return 0;
9258 }
9259 _ACEOF
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (ac_try="$ac_link"
9262 case "(($ac_try" in
9263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9264   *) ac_try_echo=$ac_try;;
9265 esac
9266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9267   (eval "$ac_link") 2>conftest.er1
9268   ac_status=$?
9269   grep -v '^ *+' conftest.er1 >conftest.err
9270   rm -f conftest.er1
9271   cat conftest.err >&5
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); } && {
9274          test -z "$ac_c_werror_flag" ||
9275          test ! -s conftest.err
9276        } && test -s conftest$ac_exeext &&
9277        $as_test_x conftest$ac_exeext; then
9278   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
9279 else
9280   echo "$as_me: failed program was:" >&5
9281 sed 's/^/| /' conftest.$ac_ext >&5
9282
9283         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
9284 fi
9285
9286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9287       conftest$ac_exeext conftest.$ac_ext
9288 LIBS=$ac_check_lib_save_LIBS
9289 fi
9290 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
9291 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
9292 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
9293   cat >>confdefs.h <<_ACEOF
9294 #define HAVE_LIBEAY32 1
9295 _ACEOF
9296
9297   LIBS="-leay32 $LIBS"
9298
9299 else
9300   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
9301 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
9302    { (exit 1); exit 1; }; }
9303 fi
9304
9305
9306 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
9307 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
9308 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
9309   echo $ECHO_N "(cached) $ECHO_C" >&6
9310 else
9311   ac_check_lib_save_LIBS=$LIBS
9312 LIBS="-lssleay32  $LIBS"
9313 cat >conftest.$ac_ext <<_ACEOF
9314 /* confdefs.h.  */
9315 _ACEOF
9316 cat confdefs.h >>conftest.$ac_ext
9317 cat >>conftest.$ac_ext <<_ACEOF
9318 /* end confdefs.h.  */
9319
9320 /* Override any GCC internal prototype to avoid an error.
9321    Use char because int might match the return type of a GCC
9322    builtin and then its argument prototype would still apply.  */
9323 #ifdef __cplusplus
9324 extern "C"
9325 #endif
9326 char SSL_library_init ();
9327 int
9328 main ()
9329 {
9330 return SSL_library_init ();
9331   ;
9332   return 0;
9333 }
9334 _ACEOF
9335 rm -f conftest.$ac_objext conftest$ac_exeext
9336 if { (ac_try="$ac_link"
9337 case "(($ac_try" in
9338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9339   *) ac_try_echo=$ac_try;;
9340 esac
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342   (eval "$ac_link") 2>conftest.er1
9343   ac_status=$?
9344   grep -v '^ *+' conftest.er1 >conftest.err
9345   rm -f conftest.er1
9346   cat conftest.err >&5
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } && {
9349          test -z "$ac_c_werror_flag" ||
9350          test ! -s conftest.err
9351        } && test -s conftest$ac_exeext &&
9352        $as_test_x conftest$ac_exeext; then
9353   ac_cv_lib_ssleay32_SSL_library_init=yes
9354 else
9355   echo "$as_me: failed program was:" >&5
9356 sed 's/^/| /' conftest.$ac_ext >&5
9357
9358         ac_cv_lib_ssleay32_SSL_library_init=no
9359 fi
9360
9361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9362       conftest$ac_exeext conftest.$ac_ext
9363 LIBS=$ac_check_lib_save_LIBS
9364 fi
9365 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
9366 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
9367 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
9368   cat >>confdefs.h <<_ACEOF
9369 #define HAVE_LIBSSLEAY32 1
9370 _ACEOF
9371
9372   LIBS="-lssleay32 $LIBS"
9373
9374 else
9375   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
9376 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
9377    { (exit 1); exit 1; }; }
9378 fi
9379
9380   fi
9381 fi
9382
9383 if test "$with_pam" = yes ; then
9384
9385 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9386 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
9387 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9388   echo $ECHO_N "(cached) $ECHO_C" >&6
9389 else
9390   ac_check_lib_save_LIBS=$LIBS
9391 LIBS="-lpam  $LIBS"
9392 cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398
9399 /* Override any GCC internal prototype to avoid an error.
9400    Use char because int might match the return type of a GCC
9401    builtin and then its argument prototype would still apply.  */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 char pam_start ();
9406 int
9407 main ()
9408 {
9409 return pam_start ();
9410   ;
9411   return 0;
9412 }
9413 _ACEOF
9414 rm -f conftest.$ac_objext conftest$ac_exeext
9415 if { (ac_try="$ac_link"
9416 case "(($ac_try" in
9417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418   *) ac_try_echo=$ac_try;;
9419 esac
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421   (eval "$ac_link") 2>conftest.er1
9422   ac_status=$?
9423   grep -v '^ *+' conftest.er1 >conftest.err
9424   rm -f conftest.er1
9425   cat conftest.err >&5
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } && {
9428          test -z "$ac_c_werror_flag" ||
9429          test ! -s conftest.err
9430        } && test -s conftest$ac_exeext &&
9431        $as_test_x conftest$ac_exeext; then
9432   ac_cv_lib_pam_pam_start=yes
9433 else
9434   echo "$as_me: failed program was:" >&5
9435 sed 's/^/| /' conftest.$ac_ext >&5
9436
9437         ac_cv_lib_pam_pam_start=no
9438 fi
9439
9440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9441       conftest$ac_exeext conftest.$ac_ext
9442 LIBS=$ac_check_lib_save_LIBS
9443 fi
9444 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9445 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
9446 if test $ac_cv_lib_pam_pam_start = yes; then
9447   cat >>confdefs.h <<_ACEOF
9448 #define HAVE_LIBPAM 1
9449 _ACEOF
9450
9451   LIBS="-lpam $LIBS"
9452
9453 else
9454   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9455 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9456    { (exit 1); exit 1; }; }
9457 fi
9458
9459 fi
9460
9461 if test "$with_libxml" = yes ; then
9462
9463 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9464 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
9465 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   ac_check_lib_save_LIBS=$LIBS
9469 LIBS="-lxml2  $LIBS"
9470 cat >conftest.$ac_ext <<_ACEOF
9471 /* confdefs.h.  */
9472 _ACEOF
9473 cat confdefs.h >>conftest.$ac_ext
9474 cat >>conftest.$ac_ext <<_ACEOF
9475 /* end confdefs.h.  */
9476
9477 /* Override any GCC internal prototype to avoid an error.
9478    Use char because int might match the return type of a GCC
9479    builtin and then its argument prototype would still apply.  */
9480 #ifdef __cplusplus
9481 extern "C"
9482 #endif
9483 char xmlSaveToBuffer ();
9484 int
9485 main ()
9486 {
9487 return xmlSaveToBuffer ();
9488   ;
9489   return 0;
9490 }
9491 _ACEOF
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9494 case "(($ac_try" in
9495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496   *) ac_try_echo=$ac_try;;
9497 esac
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499   (eval "$ac_link") 2>conftest.er1
9500   ac_status=$?
9501   grep -v '^ *+' conftest.er1 >conftest.err
9502   rm -f conftest.er1
9503   cat conftest.err >&5
9504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505   (exit $ac_status); } && {
9506          test -z "$ac_c_werror_flag" ||
9507          test ! -s conftest.err
9508        } && test -s conftest$ac_exeext &&
9509        $as_test_x conftest$ac_exeext; then
9510   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9511 else
9512   echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.$ac_ext >&5
9514
9515         ac_cv_lib_xml2_xmlSaveToBuffer=no
9516 fi
9517
9518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9519       conftest$ac_exeext conftest.$ac_ext
9520 LIBS=$ac_check_lib_save_LIBS
9521 fi
9522 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9523 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9524 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
9525   cat >>confdefs.h <<_ACEOF
9526 #define HAVE_LIBXML2 1
9527 _ACEOF
9528
9529   LIBS="-lxml2 $LIBS"
9530
9531 else
9532   { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9533 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9534    { (exit 1); exit 1; }; }
9535 fi
9536
9537 fi
9538
9539 if test "$with_libxslt" = yes ; then
9540
9541 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9542 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
9543 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9544   echo $ECHO_N "(cached) $ECHO_C" >&6
9545 else
9546   ac_check_lib_save_LIBS=$LIBS
9547 LIBS="-lxslt  $LIBS"
9548 cat >conftest.$ac_ext <<_ACEOF
9549 /* confdefs.h.  */
9550 _ACEOF
9551 cat confdefs.h >>conftest.$ac_ext
9552 cat >>conftest.$ac_ext <<_ACEOF
9553 /* end confdefs.h.  */
9554
9555 /* Override any GCC internal prototype to avoid an error.
9556    Use char because int might match the return type of a GCC
9557    builtin and then its argument prototype would still apply.  */
9558 #ifdef __cplusplus
9559 extern "C"
9560 #endif
9561 char xsltCleanupGlobals ();
9562 int
9563 main ()
9564 {
9565 return xsltCleanupGlobals ();
9566   ;
9567   return 0;
9568 }
9569 _ACEOF
9570 rm -f conftest.$ac_objext conftest$ac_exeext
9571 if { (ac_try="$ac_link"
9572 case "(($ac_try" in
9573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9574   *) ac_try_echo=$ac_try;;
9575 esac
9576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9577   (eval "$ac_link") 2>conftest.er1
9578   ac_status=$?
9579   grep -v '^ *+' conftest.er1 >conftest.err
9580   rm -f conftest.er1
9581   cat conftest.err >&5
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); } && {
9584          test -z "$ac_c_werror_flag" ||
9585          test ! -s conftest.err
9586        } && test -s conftest$ac_exeext &&
9587        $as_test_x conftest$ac_exeext; then
9588   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593         ac_cv_lib_xslt_xsltCleanupGlobals=no
9594 fi
9595
9596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9597       conftest$ac_exeext conftest.$ac_ext
9598 LIBS=$ac_check_lib_save_LIBS
9599 fi
9600 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9601 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
9602 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
9603   cat >>confdefs.h <<_ACEOF
9604 #define HAVE_LIBXSLT 1
9605 _ACEOF
9606
9607   LIBS="-lxslt $LIBS"
9608
9609 else
9610   { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
9611 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
9612    { (exit 1); exit 1; }; }
9613 fi
9614
9615 fi
9616
9617 # for contrib/uuid-ossp
9618 if test "$with_ossp_uuid" = yes ; then
9619   { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
9620 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
9621 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   ac_check_lib_save_LIBS=$LIBS
9625 LIBS="-lossp-uuid  $LIBS"
9626 cat >conftest.$ac_ext <<_ACEOF
9627 /* confdefs.h.  */
9628 _ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h.  */
9632
9633 /* Override any GCC internal prototype to avoid an error.
9634    Use char because int might match the return type of a GCC
9635    builtin and then its argument prototype would still apply.  */
9636 #ifdef __cplusplus
9637 extern "C"
9638 #endif
9639 char uuid_export ();
9640 int
9641 main ()
9642 {
9643 return uuid_export ();
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9650 case "(($ac_try" in
9651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652   *) ac_try_echo=$ac_try;;
9653 esac
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655   (eval "$ac_link") 2>conftest.er1
9656   ac_status=$?
9657   grep -v '^ *+' conftest.er1 >conftest.err
9658   rm -f conftest.er1
9659   cat conftest.err >&5
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } && {
9662          test -z "$ac_c_werror_flag" ||
9663          test ! -s conftest.err
9664        } && test -s conftest$ac_exeext &&
9665        $as_test_x conftest$ac_exeext; then
9666   ac_cv_lib_ossp_uuid_uuid_export=yes
9667 else
9668   echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671         ac_cv_lib_ossp_uuid_uuid_export=no
9672 fi
9673
9674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9675       conftest$ac_exeext conftest.$ac_ext
9676 LIBS=$ac_check_lib_save_LIBS
9677 fi
9678 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
9679 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
9680 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
9681   OSSP_UUID_LIBS="-lossp-uuid"
9682 else
9683   { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
9684 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
9685 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
9686   echo $ECHO_N "(cached) $ECHO_C" >&6
9687 else
9688   ac_check_lib_save_LIBS=$LIBS
9689 LIBS="-luuid  $LIBS"
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h.  */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h.  */
9696
9697 /* Override any GCC internal prototype to avoid an error.
9698    Use char because int might match the return type of a GCC
9699    builtin and then its argument prototype would still apply.  */
9700 #ifdef __cplusplus
9701 extern "C"
9702 #endif
9703 char uuid_export ();
9704 int
9705 main ()
9706 {
9707 return uuid_export ();
9708   ;
9709   return 0;
9710 }
9711 _ACEOF
9712 rm -f conftest.$ac_objext conftest$ac_exeext
9713 if { (ac_try="$ac_link"
9714 case "(($ac_try" in
9715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9716   *) ac_try_echo=$ac_try;;
9717 esac
9718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9719   (eval "$ac_link") 2>conftest.er1
9720   ac_status=$?
9721   grep -v '^ *+' conftest.er1 >conftest.err
9722   rm -f conftest.er1
9723   cat conftest.err >&5
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); } && {
9726          test -z "$ac_c_werror_flag" ||
9727          test ! -s conftest.err
9728        } && test -s conftest$ac_exeext &&
9729        $as_test_x conftest$ac_exeext; then
9730   ac_cv_lib_uuid_uuid_export=yes
9731 else
9732   echo "$as_me: failed program was:" >&5
9733 sed 's/^/| /' conftest.$ac_ext >&5
9734
9735         ac_cv_lib_uuid_uuid_export=no
9736 fi
9737
9738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9739       conftest$ac_exeext conftest.$ac_ext
9740 LIBS=$ac_check_lib_save_LIBS
9741 fi
9742 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
9743 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
9744 if test $ac_cv_lib_uuid_uuid_export = yes; then
9745   OSSP_UUID_LIBS="-luuid"
9746 else
9747   { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
9748 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
9749    { (exit 1); exit 1; }; }
9750 fi
9751
9752 fi
9753
9754 fi
9755
9756
9757
9758 ##
9759 ## Header files
9760 ##
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h langinfo.h poll.h pwd.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/socket.h sys/shm.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h kernel/OS.h kernel/image.h SupportDefs.h
9790 do
9791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 fi
9798 ac_res=`eval echo '${'$as_ac_Header'}'`
9799                { echo "$as_me:$LINENO: result: $ac_res" >&5
9800 echo "${ECHO_T}$ac_res" >&6; }
9801 else
9802   # Is the header compilable?
9803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h.  */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h.  */
9811 $ac_includes_default
9812 #include <$ac_header>
9813 _ACEOF
9814 rm -f conftest.$ac_objext
9815 if { (ac_try="$ac_compile"
9816 case "(($ac_try" in
9817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818   *) ac_try_echo=$ac_try;;
9819 esac
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821   (eval "$ac_compile") 2>conftest.er1
9822   ac_status=$?
9823   grep -v '^ *+' conftest.er1 >conftest.err
9824   rm -f conftest.er1
9825   cat conftest.err >&5
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } && {
9828          test -z "$ac_c_werror_flag" ||
9829          test ! -s conftest.err
9830        } && test -s conftest.$ac_objext; then
9831   ac_header_compiler=yes
9832 else
9833   echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9835
9836         ac_header_compiler=no
9837 fi
9838
9839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9840 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9841 echo "${ECHO_T}$ac_header_compiler" >&6; }
9842
9843 # Is the header present?
9844 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h.  */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h.  */
9852 #include <$ac_header>
9853 _ACEOF
9854 if { (ac_try="$ac_cpp conftest.$ac_ext"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9861   ac_status=$?
9862   grep -v '^ *+' conftest.er1 >conftest.err
9863   rm -f conftest.er1
9864   cat conftest.err >&5
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); } >/dev/null && {
9867          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9868          test ! -s conftest.err
9869        }; then
9870   ac_header_preproc=yes
9871 else
9872   echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9874
9875   ac_header_preproc=no
9876 fi
9877
9878 rm -f conftest.err conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9880 echo "${ECHO_T}$ac_header_preproc" >&6; }
9881
9882 # So?  What about this header?
9883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9884   yes:no: )
9885     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9886 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9887     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9888 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9889     ac_header_preproc=yes
9890     ;;
9891   no:yes:* )
9892     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9893 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9894     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9895 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9896     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9897 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9898     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9899 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9900     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9901 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9902     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9903 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9904     ( cat <<\_ASBOX
9905 ## ---------------------------------------- ##
9906 ## Report this to pgsql-bugs@postgresql.org ##
9907 ## ---------------------------------------- ##
9908 _ASBOX
9909      ) | sed "s/^/$as_me: WARNING:     /" >&2
9910     ;;
9911 esac
9912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9915   echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917   eval "$as_ac_Header=\$ac_header_preproc"
9918 fi
9919 ac_res=`eval echo '${'$as_ac_Header'}'`
9920                { echo "$as_me:$LINENO: result: $ac_res" >&5
9921 echo "${ECHO_T}$ac_res" >&6; }
9922
9923 fi
9924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9925   cat >>confdefs.h <<_ACEOF
9926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9927 _ACEOF
9928
9929 fi
9930
9931 done
9932
9933
9934 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9935 # netinet/in.h is included first.
9936
9937 for ac_header in netinet/in.h
9938 do
9939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9944   echo $ECHO_N "(cached) $ECHO_C" >&6
9945 fi
9946 ac_res=`eval echo '${'$as_ac_Header'}'`
9947                { echo "$as_me:$LINENO: result: $ac_res" >&5
9948 echo "${ECHO_T}$ac_res" >&6; }
9949 else
9950   # Is the header compilable?
9951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 $ac_includes_default
9960 #include <$ac_header>
9961 _ACEOF
9962 rm -f conftest.$ac_objext
9963 if { (ac_try="$ac_compile"
9964 case "(($ac_try" in
9965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966   *) ac_try_echo=$ac_try;;
9967 esac
9968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9969   (eval "$ac_compile") 2>conftest.er1
9970   ac_status=$?
9971   grep -v '^ *+' conftest.er1 >conftest.err
9972   rm -f conftest.er1
9973   cat conftest.err >&5
9974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975   (exit $ac_status); } && {
9976          test -z "$ac_c_werror_flag" ||
9977          test ! -s conftest.err
9978        } && test -s conftest.$ac_objext; then
9979   ac_header_compiler=yes
9980 else
9981   echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9983
9984         ac_header_compiler=no
9985 fi
9986
9987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9989 echo "${ECHO_T}$ac_header_compiler" >&6; }
9990
9991 # Is the header present?
9992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h.  */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h.  */
10000 #include <$ac_header>
10001 _ACEOF
10002 if { (ac_try="$ac_cpp conftest.$ac_ext"
10003 case "(($ac_try" in
10004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005   *) ac_try_echo=$ac_try;;
10006 esac
10007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10009   ac_status=$?
10010   grep -v '^ *+' conftest.er1 >conftest.err
10011   rm -f conftest.er1
10012   cat conftest.err >&5
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); } >/dev/null && {
10015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10016          test ! -s conftest.err
10017        }; then
10018   ac_header_preproc=yes
10019 else
10020   echo "$as_me: failed program was:" >&5
10021 sed 's/^/| /' conftest.$ac_ext >&5
10022
10023   ac_header_preproc=no
10024 fi
10025
10026 rm -f conftest.err conftest.$ac_ext
10027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10028 echo "${ECHO_T}$ac_header_preproc" >&6; }
10029
10030 # So?  What about this header?
10031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10032   yes:no: )
10033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10037     ac_header_preproc=yes
10038     ;;
10039   no:yes:* )
10040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10052     ( cat <<\_ASBOX
10053 ## ---------------------------------------- ##
10054 ## Report this to pgsql-bugs@postgresql.org ##
10055 ## ---------------------------------------- ##
10056 _ASBOX
10057      ) | sed "s/^/$as_me: WARNING:     /" >&2
10058     ;;
10059 esac
10060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   eval "$as_ac_Header=\$ac_header_preproc"
10066 fi
10067 ac_res=`eval echo '${'$as_ac_Header'}'`
10068                { echo "$as_me:$LINENO: result: $ac_res" >&5
10069 echo "${ECHO_T}$ac_res" >&6; }
10070
10071 fi
10072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10073   cat >>confdefs.h <<_ACEOF
10074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10075 _ACEOF
10076
10077 fi
10078
10079 done
10080
10081
10082 for ac_header in netinet/tcp.h
10083 do
10084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10088   echo $ECHO_N "(cached) $ECHO_C" >&6
10089 else
10090   cat >conftest.$ac_ext <<_ACEOF
10091 /* confdefs.h.  */
10092 _ACEOF
10093 cat confdefs.h >>conftest.$ac_ext
10094 cat >>conftest.$ac_ext <<_ACEOF
10095 /* end confdefs.h.  */
10096 $ac_includes_default
10097 #ifdef HAVE_NETINET_IN_H
10098 #include <netinet/in.h>
10099 #endif
10100
10101
10102 #include <$ac_header>
10103 _ACEOF
10104 rm -f conftest.$ac_objext
10105 if { (ac_try="$ac_compile"
10106 case "(($ac_try" in
10107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10108   *) ac_try_echo=$ac_try;;
10109 esac
10110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10111   (eval "$ac_compile") 2>conftest.er1
10112   ac_status=$?
10113   grep -v '^ *+' conftest.er1 >conftest.err
10114   rm -f conftest.er1
10115   cat conftest.err >&5
10116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117   (exit $ac_status); } && {
10118          test -z "$ac_c_werror_flag" ||
10119          test ! -s conftest.err
10120        } && test -s conftest.$ac_objext; then
10121   eval "$as_ac_Header=yes"
10122 else
10123   echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10125
10126         eval "$as_ac_Header=no"
10127 fi
10128
10129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130 fi
10131 ac_res=`eval echo '${'$as_ac_Header'}'`
10132                { echo "$as_me:$LINENO: result: $ac_res" >&5
10133 echo "${ECHO_T}$ac_res" >&6; }
10134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10135   cat >>confdefs.h <<_ACEOF
10136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10137 _ACEOF
10138
10139 fi
10140
10141 done
10142
10143
10144 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
10145
10146 for ac_header in readline/readline.h
10147 do
10148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10153   echo $ECHO_N "(cached) $ECHO_C" >&6
10154 fi
10155 ac_res=`eval echo '${'$as_ac_Header'}'`
10156                { echo "$as_me:$LINENO: result: $ac_res" >&5
10157 echo "${ECHO_T}$ac_res" >&6; }
10158 else
10159   # Is the header compilable?
10160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168 $ac_includes_default
10169 #include <$ac_header>
10170 _ACEOF
10171 rm -f conftest.$ac_objext
10172 if { (ac_try="$ac_compile"
10173 case "(($ac_try" in
10174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10175   *) ac_try_echo=$ac_try;;
10176 esac
10177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10178   (eval "$ac_compile") 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } && {
10185          test -z "$ac_c_werror_flag" ||
10186          test ! -s conftest.err
10187        } && test -s conftest.$ac_objext; then
10188   ac_header_compiler=yes
10189 else
10190   echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193         ac_header_compiler=no
10194 fi
10195
10196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10198 echo "${ECHO_T}$ac_header_compiler" >&6; }
10199
10200 # Is the header present?
10201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10203 cat >conftest.$ac_ext <<_ACEOF
10204 /* confdefs.h.  */
10205 _ACEOF
10206 cat confdefs.h >>conftest.$ac_ext
10207 cat >>conftest.$ac_ext <<_ACEOF
10208 /* end confdefs.h.  */
10209 #include <$ac_header>
10210 _ACEOF
10211 if { (ac_try="$ac_cpp conftest.$ac_ext"
10212 case "(($ac_try" in
10213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214   *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10218   ac_status=$?
10219   grep -v '^ *+' conftest.er1 >conftest.err
10220   rm -f conftest.er1
10221   cat conftest.err >&5
10222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223   (exit $ac_status); } >/dev/null && {
10224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10225          test ! -s conftest.err
10226        }; then
10227   ac_header_preproc=yes
10228 else
10229   echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10231
10232   ac_header_preproc=no
10233 fi
10234
10235 rm -f conftest.err conftest.$ac_ext
10236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10237 echo "${ECHO_T}$ac_header_preproc" >&6; }
10238
10239 # So?  What about this header?
10240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10241   yes:no: )
10242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10246     ac_header_preproc=yes
10247     ;;
10248   no:yes:* )
10249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10261     ( cat <<\_ASBOX
10262 ## ---------------------------------------- ##
10263 ## Report this to pgsql-bugs@postgresql.org ##
10264 ## ---------------------------------------- ##
10265 _ASBOX
10266      ) | sed "s/^/$as_me: WARNING:     /" >&2
10267     ;;
10268 esac
10269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10272   echo $ECHO_N "(cached) $ECHO_C" >&6
10273 else
10274   eval "$as_ac_Header=\$ac_header_preproc"
10275 fi
10276 ac_res=`eval echo '${'$as_ac_Header'}'`
10277                { echo "$as_me:$LINENO: result: $ac_res" >&5
10278 echo "${ECHO_T}$ac_res" >&6; }
10279
10280 fi
10281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10282   cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10284 _ACEOF
10285
10286 else
10287
10288 for ac_header in readline.h
10289 do
10290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10292   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 fi
10297 ac_res=`eval echo '${'$as_ac_Header'}'`
10298                { echo "$as_me:$LINENO: result: $ac_res" >&5
10299 echo "${ECHO_T}$ac_res" >&6; }
10300 else
10301   # Is the header compilable?
10302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h.  */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h.  */
10310 $ac_includes_default
10311 #include <$ac_header>
10312 _ACEOF
10313 rm -f conftest.$ac_objext
10314 if { (ac_try="$ac_compile"
10315 case "(($ac_try" in
10316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317   *) ac_try_echo=$ac_try;;
10318 esac
10319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10320   (eval "$ac_compile") 2>conftest.er1
10321   ac_status=$?
10322   grep -v '^ *+' conftest.er1 >conftest.err
10323   rm -f conftest.er1
10324   cat conftest.err >&5
10325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10326   (exit $ac_status); } && {
10327          test -z "$ac_c_werror_flag" ||
10328          test ! -s conftest.err
10329        } && test -s conftest.$ac_objext; then
10330   ac_header_compiler=yes
10331 else
10332   echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10334
10335         ac_header_compiler=no
10336 fi
10337
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10340 echo "${ECHO_T}$ac_header_compiler" >&6; }
10341
10342 # Is the header present?
10343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10345 cat >conftest.$ac_ext <<_ACEOF
10346 /* confdefs.h.  */
10347 _ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h.  */
10351 #include <$ac_header>
10352 _ACEOF
10353 if { (ac_try="$ac_cpp conftest.$ac_ext"
10354 case "(($ac_try" in
10355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10356   *) ac_try_echo=$ac_try;;
10357 esac
10358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10359   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10360   ac_status=$?
10361   grep -v '^ *+' conftest.er1 >conftest.err
10362   rm -f conftest.er1
10363   cat conftest.err >&5
10364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365   (exit $ac_status); } >/dev/null && {
10366          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10367          test ! -s conftest.err
10368        }; then
10369   ac_header_preproc=yes
10370 else
10371   echo "$as_me: failed program was:" >&5
10372 sed 's/^/| /' conftest.$ac_ext >&5
10373
10374   ac_header_preproc=no
10375 fi
10376
10377 rm -f conftest.err conftest.$ac_ext
10378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10379 echo "${ECHO_T}$ac_header_preproc" >&6; }
10380
10381 # So?  What about this header?
10382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10383   yes:no: )
10384     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10386     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10388     ac_header_preproc=yes
10389     ;;
10390   no:yes:* )
10391     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10393     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10394 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10395     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10397     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10398 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10399     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10401     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10403     ( cat <<\_ASBOX
10404 ## ---------------------------------------- ##
10405 ## Report this to pgsql-bugs@postgresql.org ##
10406 ## ---------------------------------------- ##
10407 _ASBOX
10408      ) | sed "s/^/$as_me: WARNING:     /" >&2
10409     ;;
10410 esac
10411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10414   echo $ECHO_N "(cached) $ECHO_C" >&6
10415 else
10416   eval "$as_ac_Header=\$ac_header_preproc"
10417 fi
10418 ac_res=`eval echo '${'$as_ac_Header'}'`
10419                { echo "$as_me:$LINENO: result: $ac_res" >&5
10420 echo "${ECHO_T}$ac_res" >&6; }
10421
10422 fi
10423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10424   cat >>confdefs.h <<_ACEOF
10425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10426 _ACEOF
10427
10428 else
10429   { { echo "$as_me:$LINENO: error: readline header not found
10430 If you have readline already installed, see config.log for details on the
10431 failure.  It is possible the compiler isn't looking in the proper directory.
10432 Use --without-readline to disable readline support." >&5
10433 echo "$as_me: error: readline header not found
10434 If you have readline already installed, see config.log for details on the
10435 failure.  It is possible the compiler isn't looking in the proper directory.
10436 Use --without-readline to disable readline support." >&2;}
10437    { (exit 1); exit 1; }; }
10438 fi
10439
10440 done
10441
10442 fi
10443
10444 done
10445
10446
10447 for ac_header in readline/history.h
10448 do
10449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10451   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10454   echo $ECHO_N "(cached) $ECHO_C" >&6
10455 fi
10456 ac_res=`eval echo '${'$as_ac_Header'}'`
10457                { echo "$as_me:$LINENO: result: $ac_res" >&5
10458 echo "${ECHO_T}$ac_res" >&6; }
10459 else
10460   # Is the header compilable?
10461 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10463 cat >conftest.$ac_ext <<_ACEOF
10464 /* confdefs.h.  */
10465 _ACEOF
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h.  */
10469 $ac_includes_default
10470 #include <$ac_header>
10471 _ACEOF
10472 rm -f conftest.$ac_objext
10473 if { (ac_try="$ac_compile"
10474 case "(($ac_try" in
10475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10476   *) ac_try_echo=$ac_try;;
10477 esac
10478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10479   (eval "$ac_compile") 2>conftest.er1
10480   ac_status=$?
10481   grep -v '^ *+' conftest.er1 >conftest.err
10482   rm -f conftest.er1
10483   cat conftest.err >&5
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); } && {
10486          test -z "$ac_c_werror_flag" ||
10487          test ! -s conftest.err
10488        } && test -s conftest.$ac_objext; then
10489   ac_header_compiler=yes
10490 else
10491   echo "$as_me: failed program was:" >&5
10492 sed 's/^/| /' conftest.$ac_ext >&5
10493
10494         ac_header_compiler=no
10495 fi
10496
10497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10499 echo "${ECHO_T}$ac_header_compiler" >&6; }
10500
10501 # Is the header present?
10502 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10504 cat >conftest.$ac_ext <<_ACEOF
10505 /* confdefs.h.  */
10506 _ACEOF
10507 cat confdefs.h >>conftest.$ac_ext
10508 cat >>conftest.$ac_ext <<_ACEOF
10509 /* end confdefs.h.  */
10510 #include <$ac_header>
10511 _ACEOF
10512 if { (ac_try="$ac_cpp conftest.$ac_ext"
10513 case "(($ac_try" in
10514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515   *) ac_try_echo=$ac_try;;
10516 esac
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10519   ac_status=$?
10520   grep -v '^ *+' conftest.er1 >conftest.err
10521   rm -f conftest.er1
10522   cat conftest.err >&5
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } >/dev/null && {
10525          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10526          test ! -s conftest.err
10527        }; then
10528   ac_header_preproc=yes
10529 else
10530   echo "$as_me: failed program was:" >&5
10531 sed 's/^/| /' conftest.$ac_ext >&5
10532
10533   ac_header_preproc=no
10534 fi
10535
10536 rm -f conftest.err conftest.$ac_ext
10537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10538 echo "${ECHO_T}$ac_header_preproc" >&6; }
10539
10540 # So?  What about this header?
10541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10542   yes:no: )
10543     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10545     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10547     ac_header_preproc=yes
10548     ;;
10549   no:yes:* )
10550     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10552     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10553 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10554     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10556     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10557 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10558     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10560     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10562     ( cat <<\_ASBOX
10563 ## ---------------------------------------- ##
10564 ## Report this to pgsql-bugs@postgresql.org ##
10565 ## ---------------------------------------- ##
10566 _ASBOX
10567      ) | sed "s/^/$as_me: WARNING:     /" >&2
10568     ;;
10569 esac
10570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10573   echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575   eval "$as_ac_Header=\$ac_header_preproc"
10576 fi
10577 ac_res=`eval echo '${'$as_ac_Header'}'`
10578                { echo "$as_me:$LINENO: result: $ac_res" >&5
10579 echo "${ECHO_T}$ac_res" >&6; }
10580
10581 fi
10582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10583   cat >>confdefs.h <<_ACEOF
10584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10585 _ACEOF
10586
10587 else
10588
10589 for ac_header in history.h
10590 do
10591 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10593   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 fi
10598 ac_res=`eval echo '${'$as_ac_Header'}'`
10599                { echo "$as_me:$LINENO: result: $ac_res" >&5
10600 echo "${ECHO_T}$ac_res" >&6; }
10601 else
10602   # Is the header compilable?
10603 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10605 cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 $ac_includes_default
10612 #include <$ac_header>
10613 _ACEOF
10614 rm -f conftest.$ac_objext
10615 if { (ac_try="$ac_compile"
10616 case "(($ac_try" in
10617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10618   *) ac_try_echo=$ac_try;;
10619 esac
10620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10621   (eval "$ac_compile") 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } && {
10628          test -z "$ac_c_werror_flag" ||
10629          test ! -s conftest.err
10630        } && test -s conftest.$ac_objext; then
10631   ac_header_compiler=yes
10632 else
10633   echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636         ac_header_compiler=no
10637 fi
10638
10639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10641 echo "${ECHO_T}$ac_header_compiler" >&6; }
10642
10643 # Is the header present?
10644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10647 /* confdefs.h.  */
10648 _ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h.  */
10652 #include <$ac_header>
10653 _ACEOF
10654 if { (ac_try="$ac_cpp conftest.$ac_ext"
10655 case "(($ac_try" in
10656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657   *) ac_try_echo=$ac_try;;
10658 esac
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10661   ac_status=$?
10662   grep -v '^ *+' conftest.er1 >conftest.err
10663   rm -f conftest.er1
10664   cat conftest.err >&5
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); } >/dev/null && {
10667          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10668          test ! -s conftest.err
10669        }; then
10670   ac_header_preproc=yes
10671 else
10672   echo "$as_me: failed program was:" >&5
10673 sed 's/^/| /' conftest.$ac_ext >&5
10674
10675   ac_header_preproc=no
10676 fi
10677
10678 rm -f conftest.err conftest.$ac_ext
10679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10680 echo "${ECHO_T}$ac_header_preproc" >&6; }
10681
10682 # So?  What about this header?
10683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10684   yes:no: )
10685     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10687     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10688 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10689     ac_header_preproc=yes
10690     ;;
10691   no:yes:* )
10692     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10693 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10694     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10695 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10696     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10697 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10698     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10699 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10701 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10702     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10703 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10704     ( cat <<\_ASBOX
10705 ## ---------------------------------------- ##
10706 ## Report this to pgsql-bugs@postgresql.org ##
10707 ## ---------------------------------------- ##
10708 _ASBOX
10709      ) | sed "s/^/$as_me: WARNING:     /" >&2
10710     ;;
10711 esac
10712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10715   echo $ECHO_N "(cached) $ECHO_C" >&6
10716 else
10717   eval "$as_ac_Header=\$ac_header_preproc"
10718 fi
10719 ac_res=`eval echo '${'$as_ac_Header'}'`
10720                { echo "$as_me:$LINENO: result: $ac_res" >&5
10721 echo "${ECHO_T}$ac_res" >&6; }
10722
10723 fi
10724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10725   cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10727 _ACEOF
10728
10729 else
10730   { { echo "$as_me:$LINENO: error: history header not found
10731 If you have readline already installed, see config.log for details on the
10732 failure.  It is possible the compiler isn't looking in the proper directory.
10733 Use --without-readline to disable readline support." >&5
10734 echo "$as_me: error: history header not found
10735 If you have readline already installed, see config.log for details on the
10736 failure.  It is possible the compiler isn't looking in the proper directory.
10737 Use --without-readline to disable readline support." >&2;}
10738    { (exit 1); exit 1; }; }
10739 fi
10740
10741 done
10742
10743 fi
10744
10745 done
10746
10747 fi
10748
10749 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
10750 # Some installations of libedit usurp /usr/include/readline/, which seems
10751 # bad practice, since in combined installations readline will have its headers
10752 # there.  We might have to resort to AC_EGREP checks to make sure we found
10753 # the proper header...
10754
10755 for ac_header in editline/readline.h
10756 do
10757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10759   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 fi
10764 ac_res=`eval echo '${'$as_ac_Header'}'`
10765                { echo "$as_me:$LINENO: result: $ac_res" >&5
10766 echo "${ECHO_T}$ac_res" >&6; }
10767 else
10768   # Is the header compilable?
10769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10771 cat >conftest.$ac_ext <<_ACEOF
10772 /* confdefs.h.  */
10773 _ACEOF
10774 cat confdefs.h >>conftest.$ac_ext
10775 cat >>conftest.$ac_ext <<_ACEOF
10776 /* end confdefs.h.  */
10777 $ac_includes_default
10778 #include <$ac_header>
10779 _ACEOF
10780 rm -f conftest.$ac_objext
10781 if { (ac_try="$ac_compile"
10782 case "(($ac_try" in
10783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10784   *) ac_try_echo=$ac_try;;
10785 esac
10786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10787   (eval "$ac_compile") 2>conftest.er1
10788   ac_status=$?
10789   grep -v '^ *+' conftest.er1 >conftest.err
10790   rm -f conftest.er1
10791   cat conftest.err >&5
10792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793   (exit $ac_status); } && {
10794          test -z "$ac_c_werror_flag" ||
10795          test ! -s conftest.err
10796        } && test -s conftest.$ac_objext; then
10797   ac_header_compiler=yes
10798 else
10799   echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802         ac_header_compiler=no
10803 fi
10804
10805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10807 echo "${ECHO_T}$ac_header_compiler" >&6; }
10808
10809 # Is the header present?
10810 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10811 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10812 cat >conftest.$ac_ext <<_ACEOF
10813 /* confdefs.h.  */
10814 _ACEOF
10815 cat confdefs.h >>conftest.$ac_ext
10816 cat >>conftest.$ac_ext <<_ACEOF
10817 /* end confdefs.h.  */
10818 #include <$ac_header>
10819 _ACEOF
10820 if { (ac_try="$ac_cpp conftest.$ac_ext"
10821 case "(($ac_try" in
10822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10823   *) ac_try_echo=$ac_try;;
10824 esac
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10827   ac_status=$?
10828   grep -v '^ *+' conftest.er1 >conftest.err
10829   rm -f conftest.er1
10830   cat conftest.err >&5
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); } >/dev/null && {
10833          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10834          test ! -s conftest.err
10835        }; then
10836   ac_header_preproc=yes
10837 else
10838   echo "$as_me: failed program was:" >&5
10839 sed 's/^/| /' conftest.$ac_ext >&5
10840
10841   ac_header_preproc=no
10842 fi
10843
10844 rm -f conftest.err conftest.$ac_ext
10845 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10846 echo "${ECHO_T}$ac_header_preproc" >&6; }
10847
10848 # So?  What about this header?
10849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10850   yes:no: )
10851     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10852 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10853     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10855     ac_header_preproc=yes
10856     ;;
10857   no:yes:* )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10859 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10861 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10862     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10863 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10864     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10865 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10868     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10869 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10870     ( cat <<\_ASBOX
10871 ## ---------------------------------------- ##
10872 ## Report this to pgsql-bugs@postgresql.org ##
10873 ## ---------------------------------------- ##
10874 _ASBOX
10875      ) | sed "s/^/$as_me: WARNING:     /" >&2
10876     ;;
10877 esac
10878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10881   echo $ECHO_N "(cached) $ECHO_C" >&6
10882 else
10883   eval "$as_ac_Header=\$ac_header_preproc"
10884 fi
10885 ac_res=`eval echo '${'$as_ac_Header'}'`
10886                { echo "$as_me:$LINENO: result: $ac_res" >&5
10887 echo "${ECHO_T}$ac_res" >&6; }
10888
10889 fi
10890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10891   cat >>confdefs.h <<_ACEOF
10892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10893 _ACEOF
10894
10895 else
10896
10897 for ac_header in readline.h
10898 do
10899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10901   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10904   echo $ECHO_N "(cached) $ECHO_C" >&6
10905 fi
10906 ac_res=`eval echo '${'$as_ac_Header'}'`
10907                { echo "$as_me:$LINENO: result: $ac_res" >&5
10908 echo "${ECHO_T}$ac_res" >&6; }
10909 else
10910   # Is the header compilable?
10911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10913 cat >conftest.$ac_ext <<_ACEOF
10914 /* confdefs.h.  */
10915 _ACEOF
10916 cat confdefs.h >>conftest.$ac_ext
10917 cat >>conftest.$ac_ext <<_ACEOF
10918 /* end confdefs.h.  */
10919 $ac_includes_default
10920 #include <$ac_header>
10921 _ACEOF
10922 rm -f conftest.$ac_objext
10923 if { (ac_try="$ac_compile"
10924 case "(($ac_try" in
10925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10926   *) ac_try_echo=$ac_try;;
10927 esac
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929   (eval "$ac_compile") 2>conftest.er1
10930   ac_status=$?
10931   grep -v '^ *+' conftest.er1 >conftest.err
10932   rm -f conftest.er1
10933   cat conftest.err >&5
10934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935   (exit $ac_status); } && {
10936          test -z "$ac_c_werror_flag" ||
10937          test ! -s conftest.err
10938        } && test -s conftest.$ac_objext; then
10939   ac_header_compiler=yes
10940 else
10941   echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10943
10944         ac_header_compiler=no
10945 fi
10946
10947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10949 echo "${ECHO_T}$ac_header_compiler" >&6; }
10950
10951 # Is the header present?
10952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10954 cat >conftest.$ac_ext <<_ACEOF
10955 /* confdefs.h.  */
10956 _ACEOF
10957 cat confdefs.h >>conftest.$ac_ext
10958 cat >>conftest.$ac_ext <<_ACEOF
10959 /* end confdefs.h.  */
10960 #include <$ac_header>
10961 _ACEOF
10962 if { (ac_try="$ac_cpp conftest.$ac_ext"
10963 case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } >/dev/null && {
10975          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10976          test ! -s conftest.err
10977        }; then
10978   ac_header_preproc=yes
10979 else
10980   echo "$as_me: failed program was:" >&5
10981 sed 's/^/| /' conftest.$ac_ext >&5
10982
10983   ac_header_preproc=no
10984 fi
10985
10986 rm -f conftest.err conftest.$ac_ext
10987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10988 echo "${ECHO_T}$ac_header_preproc" >&6; }
10989
10990 # So?  What about this header?
10991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10992   yes:no: )
10993     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10997     ac_header_preproc=yes
10998     ;;
10999   no:yes:* )
11000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11002     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11003 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11004     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11006     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11007 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11010     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11012     ( cat <<\_ASBOX
11013 ## ---------------------------------------- ##
11014 ## Report this to pgsql-bugs@postgresql.org ##
11015 ## ---------------------------------------- ##
11016 _ASBOX
11017      ) | sed "s/^/$as_me: WARNING:     /" >&2
11018     ;;
11019 esac
11020 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11023   echo $ECHO_N "(cached) $ECHO_C" >&6
11024 else
11025   eval "$as_ac_Header=\$ac_header_preproc"
11026 fi
11027 ac_res=`eval echo '${'$as_ac_Header'}'`
11028                { echo "$as_me:$LINENO: result: $ac_res" >&5
11029 echo "${ECHO_T}$ac_res" >&6; }
11030
11031 fi
11032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11033   cat >>confdefs.h <<_ACEOF
11034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11035 _ACEOF
11036
11037 else
11038
11039 for ac_header in readline/readline.h
11040 do
11041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11043   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11046   echo $ECHO_N "(cached) $ECHO_C" >&6
11047 fi
11048 ac_res=`eval echo '${'$as_ac_Header'}'`
11049                { echo "$as_me:$LINENO: result: $ac_res" >&5
11050 echo "${ECHO_T}$ac_res" >&6; }
11051 else
11052   # Is the header compilable?
11053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11054 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 $ac_includes_default
11062 #include <$ac_header>
11063 _ACEOF
11064 rm -f conftest.$ac_objext
11065 if { (ac_try="$ac_compile"
11066 case "(($ac_try" in
11067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068   *) ac_try_echo=$ac_try;;
11069 esac
11070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11071   (eval "$ac_compile") 2>conftest.er1
11072   ac_status=$?
11073   grep -v '^ *+' conftest.er1 >conftest.err
11074   rm -f conftest.er1
11075   cat conftest.err >&5
11076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11077   (exit $ac_status); } && {
11078          test -z "$ac_c_werror_flag" ||
11079          test ! -s conftest.err
11080        } && test -s conftest.$ac_objext; then
11081   ac_header_compiler=yes
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086         ac_header_compiler=no
11087 fi
11088
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11091 echo "${ECHO_T}$ac_header_compiler" >&6; }
11092
11093 # Is the header present?
11094 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h.  */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h.  */
11102 #include <$ac_header>
11103 _ACEOF
11104 if { (ac_try="$ac_cpp conftest.$ac_ext"
11105 case "(($ac_try" in
11106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11107   *) ac_try_echo=$ac_try;;
11108 esac
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11111   ac_status=$?
11112   grep -v '^ *+' conftest.er1 >conftest.err
11113   rm -f conftest.er1
11114   cat conftest.err >&5
11115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116   (exit $ac_status); } >/dev/null && {
11117          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11118          test ! -s conftest.err
11119        }; then
11120   ac_header_preproc=yes
11121 else
11122   echo "$as_me: failed program was:" >&5
11123 sed 's/^/| /' conftest.$ac_ext >&5
11124
11125   ac_header_preproc=no
11126 fi
11127
11128 rm -f conftest.err conftest.$ac_ext
11129 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11130 echo "${ECHO_T}$ac_header_preproc" >&6; }
11131
11132 # So?  What about this header?
11133 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11134   yes:no: )
11135     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11138 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11139     ac_header_preproc=yes
11140     ;;
11141   no:yes:* )
11142     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11143 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11144     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11145 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11146     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11147 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11148     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11149 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11150     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11151 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11152     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11153 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11154     ( cat <<\_ASBOX
11155 ## ---------------------------------------- ##
11156 ## Report this to pgsql-bugs@postgresql.org ##
11157 ## ---------------------------------------- ##
11158 _ASBOX
11159      ) | sed "s/^/$as_me: WARNING:     /" >&2
11160     ;;
11161 esac
11162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11165   echo $ECHO_N "(cached) $ECHO_C" >&6
11166 else
11167   eval "$as_ac_Header=\$ac_header_preproc"
11168 fi
11169 ac_res=`eval echo '${'$as_ac_Header'}'`
11170                { echo "$as_me:$LINENO: result: $ac_res" >&5
11171 echo "${ECHO_T}$ac_res" >&6; }
11172
11173 fi
11174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11175   cat >>confdefs.h <<_ACEOF
11176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11177 _ACEOF
11178
11179 else
11180   { { echo "$as_me:$LINENO: error: readline header not found
11181 If you have libedit already installed, see config.log for details on the
11182 failure.  It is possible the compiler isn't looking in the proper directory.
11183 Use --without-readline to disable libedit support." >&5
11184 echo "$as_me: error: readline header not found
11185 If you have libedit already installed, see config.log for details on the
11186 failure.  It is possible the compiler isn't looking in the proper directory.
11187 Use --without-readline to disable libedit support." >&2;}
11188    { (exit 1); exit 1; }; }
11189 fi
11190
11191 done
11192
11193 fi
11194
11195 done
11196
11197 fi
11198
11199 done
11200
11201 # Note: in a libedit installation, history.h is sometimes a dummy, and may
11202 # not be there at all.  Hence, don't complain if not found.  We must check
11203 # though, since in yet other versions it is an independent header.
11204
11205 for ac_header in editline/history.h
11206 do
11207 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11212   echo $ECHO_N "(cached) $ECHO_C" >&6
11213 fi
11214 ac_res=`eval echo '${'$as_ac_Header'}'`
11215                { echo "$as_me:$LINENO: result: $ac_res" >&5
11216 echo "${ECHO_T}$ac_res" >&6; }
11217 else
11218   # Is the header compilable?
11219 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11220 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11221 cat >conftest.$ac_ext <<_ACEOF
11222 /* confdefs.h.  */
11223 _ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h.  */
11227 $ac_includes_default
11228 #include <$ac_header>
11229 _ACEOF
11230 rm -f conftest.$ac_objext
11231 if { (ac_try="$ac_compile"
11232 case "(($ac_try" in
11233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234   *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237   (eval "$ac_compile") 2>conftest.er1
11238   ac_status=$?
11239   grep -v '^ *+' conftest.er1 >conftest.err
11240   rm -f conftest.er1
11241   cat conftest.err >&5
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); } && {
11244          test -z "$ac_c_werror_flag" ||
11245          test ! -s conftest.err
11246        } && test -s conftest.$ac_objext; then
11247   ac_header_compiler=yes
11248 else
11249   echo "$as_me: failed program was:" >&5
11250 sed 's/^/| /' conftest.$ac_ext >&5
11251
11252         ac_header_compiler=no
11253 fi
11254
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11257 echo "${ECHO_T}$ac_header_compiler" >&6; }
11258
11259 # Is the header present?
11260 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11261 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11262 cat >conftest.$ac_ext <<_ACEOF
11263 /* confdefs.h.  */
11264 _ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h.  */
11268 #include <$ac_header>
11269 _ACEOF
11270 if { (ac_try="$ac_cpp conftest.$ac_ext"
11271 case "(($ac_try" in
11272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273   *) ac_try_echo=$ac_try;;
11274 esac
11275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11277   ac_status=$?
11278   grep -v '^ *+' conftest.er1 >conftest.err
11279   rm -f conftest.er1
11280   cat conftest.err >&5
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } >/dev/null && {
11283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11284          test ! -s conftest.err
11285        }; then
11286   ac_header_preproc=yes
11287 else
11288   echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291   ac_header_preproc=no
11292 fi
11293
11294 rm -f conftest.err conftest.$ac_ext
11295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 echo "${ECHO_T}$ac_header_preproc" >&6; }
11297
11298 # So?  What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11300   yes:no: )
11301     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305     ac_header_preproc=yes
11306     ;;
11307   no:yes:* )
11308     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11311 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11312     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11315 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11316     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11320     ( cat <<\_ASBOX
11321 ## ---------------------------------------- ##
11322 ## Report this to pgsql-bugs@postgresql.org ##
11323 ## ---------------------------------------- ##
11324 _ASBOX
11325      ) | sed "s/^/$as_me: WARNING:     /" >&2
11326     ;;
11327 esac
11328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331   echo $ECHO_N "(cached) $ECHO_C" >&6
11332 else
11333   eval "$as_ac_Header=\$ac_header_preproc"
11334 fi
11335 ac_res=`eval echo '${'$as_ac_Header'}'`
11336                { echo "$as_me:$LINENO: result: $ac_res" >&5
11337 echo "${ECHO_T}$ac_res" >&6; }
11338
11339 fi
11340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11341   cat >>confdefs.h <<_ACEOF
11342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11343 _ACEOF
11344
11345 else
11346
11347 for ac_header in history.h
11348 do
11349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11351   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11354   echo $ECHO_N "(cached) $ECHO_C" >&6
11355 fi
11356 ac_res=`eval echo '${'$as_ac_Header'}'`
11357                { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359 else
11360   # Is the header compilable?
11361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h.  */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h.  */
11369 $ac_includes_default
11370 #include <$ac_header>
11371 _ACEOF
11372 rm -f conftest.$ac_objext
11373 if { (ac_try="$ac_compile"
11374 case "(($ac_try" in
11375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11376   *) ac_try_echo=$ac_try;;
11377 esac
11378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11379   (eval "$ac_compile") 2>conftest.er1
11380   ac_status=$?
11381   grep -v '^ *+' conftest.er1 >conftest.err
11382   rm -f conftest.er1
11383   cat conftest.err >&5
11384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11385   (exit $ac_status); } && {
11386          test -z "$ac_c_werror_flag" ||
11387          test ! -s conftest.err
11388        } && test -s conftest.$ac_objext; then
11389   ac_header_compiler=yes
11390 else
11391   echo "$as_me: failed program was:" >&5
11392 sed 's/^/| /' conftest.$ac_ext >&5
11393
11394         ac_header_compiler=no
11395 fi
11396
11397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11399 echo "${ECHO_T}$ac_header_compiler" >&6; }
11400
11401 # Is the header present?
11402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
11411 _ACEOF
11412 if { (ac_try="$ac_cpp conftest.$ac_ext"
11413 case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11419   ac_status=$?
11420   grep -v '^ *+' conftest.er1 >conftest.err
11421   rm -f conftest.er1
11422   cat conftest.err >&5
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); } >/dev/null && {
11425          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11426          test ! -s conftest.err
11427        }; then
11428   ac_header_preproc=yes
11429 else
11430   echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11432
11433   ac_header_preproc=no
11434 fi
11435
11436 rm -f conftest.err conftest.$ac_ext
11437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11438 echo "${ECHO_T}$ac_header_preproc" >&6; }
11439
11440 # So?  What about this header?
11441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442   yes:no: )
11443     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11445     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11447     ac_header_preproc=yes
11448     ;;
11449   no:yes:* )
11450     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11452     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11453 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11454     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11456     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11457 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11458     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11460     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11462     ( cat <<\_ASBOX
11463 ## ---------------------------------------- ##
11464 ## Report this to pgsql-bugs@postgresql.org ##
11465 ## ---------------------------------------- ##
11466 _ASBOX
11467      ) | sed "s/^/$as_me: WARNING:     /" >&2
11468     ;;
11469 esac
11470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11472 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475   eval "$as_ac_Header=\$ac_header_preproc"
11476 fi
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478                { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11480
11481 fi
11482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11483   cat >>confdefs.h <<_ACEOF
11484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11485 _ACEOF
11486
11487 else
11488
11489 for ac_header in readline/history.h
11490 do
11491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11496   echo $ECHO_N "(cached) $ECHO_C" >&6
11497 fi
11498 ac_res=`eval echo '${'$as_ac_Header'}'`
11499                { echo "$as_me:$LINENO: result: $ac_res" >&5
11500 echo "${ECHO_T}$ac_res" >&6; }
11501 else
11502   # Is the header compilable?
11503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11505 cat >conftest.$ac_ext <<_ACEOF
11506 /* confdefs.h.  */
11507 _ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h.  */
11511 $ac_includes_default
11512 #include <$ac_header>
11513 _ACEOF
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_compile") 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } && {
11528          test -z "$ac_c_werror_flag" ||
11529          test ! -s conftest.err
11530        } && test -s conftest.$ac_objext; then
11531   ac_header_compiler=yes
11532 else
11533   echo "$as_me: failed program was:" >&5
11534 sed 's/^/| /' conftest.$ac_ext >&5
11535
11536         ac_header_compiler=no
11537 fi
11538
11539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11541 echo "${ECHO_T}$ac_header_compiler" >&6; }
11542
11543 # Is the header present?
11544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11546 cat >conftest.$ac_ext <<_ACEOF
11547 /* confdefs.h.  */
11548 _ACEOF
11549 cat confdefs.h >>conftest.$ac_ext
11550 cat >>conftest.$ac_ext <<_ACEOF
11551 /* end confdefs.h.  */
11552 #include <$ac_header>
11553 _ACEOF
11554 if { (ac_try="$ac_cpp conftest.$ac_ext"
11555 case "(($ac_try" in
11556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557   *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11561   ac_status=$?
11562   grep -v '^ *+' conftest.er1 >conftest.err
11563   rm -f conftest.er1
11564   cat conftest.err >&5
11565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566   (exit $ac_status); } >/dev/null && {
11567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11568          test ! -s conftest.err
11569        }; then
11570   ac_header_preproc=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575   ac_header_preproc=no
11576 fi
11577
11578 rm -f conftest.err conftest.$ac_ext
11579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11580 echo "${ECHO_T}$ac_header_preproc" >&6; }
11581
11582 # So?  What about this header?
11583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11584   yes:no: )
11585     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11589     ac_header_preproc=yes
11590     ;;
11591   no:yes:* )
11592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11594     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11595 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11599 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11604     ( cat <<\_ASBOX
11605 ## ---------------------------------------- ##
11606 ## Report this to pgsql-bugs@postgresql.org ##
11607 ## ---------------------------------------- ##
11608 _ASBOX
11609      ) | sed "s/^/$as_me: WARNING:     /" >&2
11610     ;;
11611 esac
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615   echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617   eval "$as_ac_Header=\$ac_header_preproc"
11618 fi
11619 ac_res=`eval echo '${'$as_ac_Header'}'`
11620                { echo "$as_me:$LINENO: result: $ac_res" >&5
11621 echo "${ECHO_T}$ac_res" >&6; }
11622
11623 fi
11624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11625   cat >>confdefs.h <<_ACEOF
11626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11627 _ACEOF
11628
11629 fi
11630
11631 done
11632
11633 fi
11634
11635 done
11636
11637 fi
11638
11639 done
11640
11641 fi
11642
11643 if test "$with_zlib" = yes; then
11644   if test "${ac_cv_header_zlib_h+set}" = set; then
11645   { echo "$as_me:$LINENO: checking for zlib.h" >&5
11646 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11647 if test "${ac_cv_header_zlib_h+set}" = set; then
11648   echo $ECHO_N "(cached) $ECHO_C" >&6
11649 fi
11650 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11651 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11652 else
11653   # Is the header compilable?
11654 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
11655 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h.  */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h.  */
11662 $ac_includes_default
11663 #include <zlib.h>
11664 _ACEOF
11665 rm -f conftest.$ac_objext
11666 if { (ac_try="$ac_compile"
11667 case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_compile") 2>conftest.er1
11673   ac_status=$?
11674   grep -v '^ *+' conftest.er1 >conftest.err
11675   rm -f conftest.er1
11676   cat conftest.err >&5
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); } && {
11679          test -z "$ac_c_werror_flag" ||
11680          test ! -s conftest.err
11681        } && test -s conftest.$ac_objext; then
11682   ac_header_compiler=yes
11683 else
11684   echo "$as_me: failed program was:" >&5
11685 sed 's/^/| /' conftest.$ac_ext >&5
11686
11687         ac_header_compiler=no
11688 fi
11689
11690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11692 echo "${ECHO_T}$ac_header_compiler" >&6; }
11693
11694 # Is the header present?
11695 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
11696 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
11697 cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h.  */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h.  */
11703 #include <zlib.h>
11704 _ACEOF
11705 if { (ac_try="$ac_cpp conftest.$ac_ext"
11706 case "(($ac_try" in
11707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708   *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11712   ac_status=$?
11713   grep -v '^ *+' conftest.er1 >conftest.err
11714   rm -f conftest.er1
11715   cat conftest.err >&5
11716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11717   (exit $ac_status); } >/dev/null && {
11718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11719          test ! -s conftest.err
11720        }; then
11721   ac_header_preproc=yes
11722 else
11723   echo "$as_me: failed program was:" >&5
11724 sed 's/^/| /' conftest.$ac_ext >&5
11725
11726   ac_header_preproc=no
11727 fi
11728
11729 rm -f conftest.err conftest.$ac_ext
11730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11731 echo "${ECHO_T}$ac_header_preproc" >&6; }
11732
11733 # So?  What about this header?
11734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11735   yes:no: )
11736     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
11737 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11738     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
11739 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
11740     ac_header_preproc=yes
11741     ;;
11742   no:yes:* )
11743     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
11744 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
11745     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
11746 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
11747     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
11748 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
11749     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
11750 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11751     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
11752 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
11753     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
11754 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
11755     ( cat <<\_ASBOX
11756 ## ---------------------------------------- ##
11757 ## Report this to pgsql-bugs@postgresql.org ##
11758 ## ---------------------------------------- ##
11759 _ASBOX
11760      ) | sed "s/^/$as_me: WARNING:     /" >&2
11761     ;;
11762 esac
11763 { echo "$as_me:$LINENO: checking for zlib.h" >&5
11764 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
11765 if test "${ac_cv_header_zlib_h+set}" = set; then
11766   echo $ECHO_N "(cached) $ECHO_C" >&6
11767 else
11768   ac_cv_header_zlib_h=$ac_header_preproc
11769 fi
11770 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
11771 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
11772
11773 fi
11774 if test $ac_cv_header_zlib_h = yes; then
11775   :
11776 else
11777   { { echo "$as_me:$LINENO: error: zlib header not found
11778 If you have zlib already installed, see config.log for details on the
11779 failure.  It is possible the compiler isn't looking in the proper directory.
11780 Use --without-zlib to disable zlib support." >&5
11781 echo "$as_me: error: zlib header not found
11782 If you have zlib already installed, see config.log for details on the
11783 failure.  It is possible the compiler isn't looking in the proper directory.
11784 Use --without-zlib to disable zlib support." >&2;}
11785    { (exit 1); exit 1; }; }
11786 fi
11787
11788
11789 fi
11790
11791 if test "$with_gssapi" = yes ; then
11792
11793 for ac_header in gssapi/gssapi.h
11794 do
11795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11797   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800   echo $ECHO_N "(cached) $ECHO_C" >&6
11801 fi
11802 ac_res=`eval echo '${'$as_ac_Header'}'`
11803                { echo "$as_me:$LINENO: result: $ac_res" >&5
11804 echo "${ECHO_T}$ac_res" >&6; }
11805 else
11806   # Is the header compilable?
11807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h.  */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h.  */
11815 $ac_includes_default
11816 #include <$ac_header>
11817 _ACEOF
11818 rm -f conftest.$ac_objext
11819 if { (ac_try="$ac_compile"
11820 case "(($ac_try" in
11821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11822   *) ac_try_echo=$ac_try;;
11823 esac
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825   (eval "$ac_compile") 2>conftest.er1
11826   ac_status=$?
11827   grep -v '^ *+' conftest.er1 >conftest.err
11828   rm -f conftest.er1
11829   cat conftest.err >&5
11830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831   (exit $ac_status); } && {
11832          test -z "$ac_c_werror_flag" ||
11833          test ! -s conftest.err
11834        } && test -s conftest.$ac_objext; then
11835   ac_header_compiler=yes
11836 else
11837   echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.$ac_ext >&5
11839
11840         ac_header_compiler=no
11841 fi
11842
11843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11845 echo "${ECHO_T}$ac_header_compiler" >&6; }
11846
11847 # Is the header present?
11848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h.  */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h.  */
11856 #include <$ac_header>
11857 _ACEOF
11858 if { (ac_try="$ac_cpp conftest.$ac_ext"
11859 case "(($ac_try" in
11860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861   *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } >/dev/null && {
11871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11872          test ! -s conftest.err
11873        }; then
11874   ac_header_preproc=yes
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879   ac_header_preproc=no
11880 fi
11881
11882 rm -f conftest.err conftest.$ac_ext
11883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11884 echo "${ECHO_T}$ac_header_preproc" >&6; }
11885
11886 # So?  What about this header?
11887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11888   yes:no: )
11889     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11891     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11893     ac_header_preproc=yes
11894     ;;
11895   no:yes:* )
11896     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11898     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11899 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11900     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11902     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11903 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11906     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11908     ( cat <<\_ASBOX
11909 ## ---------------------------------------- ##
11910 ## Report this to pgsql-bugs@postgresql.org ##
11911 ## ---------------------------------------- ##
11912 _ASBOX
11913      ) | sed "s/^/$as_me: WARNING:     /" >&2
11914     ;;
11915 esac
11916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11919   echo $ECHO_N "(cached) $ECHO_C" >&6
11920 else
11921   eval "$as_ac_Header=\$ac_header_preproc"
11922 fi
11923 ac_res=`eval echo '${'$as_ac_Header'}'`
11924                { echo "$as_me:$LINENO: result: $ac_res" >&5
11925 echo "${ECHO_T}$ac_res" >&6; }
11926
11927 fi
11928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11929   cat >>confdefs.h <<_ACEOF
11930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11931 _ACEOF
11932
11933 else
11934
11935 for ac_header in gssapi.h
11936 do
11937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11939   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 fi
11944 ac_res=`eval echo '${'$as_ac_Header'}'`
11945                { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 else
11948   # Is the header compilable?
11949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h.  */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h.  */
11957 $ac_includes_default
11958 #include <$ac_header>
11959 _ACEOF
11960 rm -f conftest.$ac_objext
11961 if { (ac_try="$ac_compile"
11962 case "(($ac_try" in
11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964   *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967   (eval "$ac_compile") 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } && {
11974          test -z "$ac_c_werror_flag" ||
11975          test ! -s conftest.err
11976        } && test -s conftest.$ac_objext; then
11977   ac_header_compiler=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982         ac_header_compiler=no
11983 fi
11984
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11987 echo "${ECHO_T}$ac_header_compiler" >&6; }
11988
11989 # Is the header present?
11990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h.  */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h.  */
11998 #include <$ac_header>
11999 _ACEOF
12000 if { (ac_try="$ac_cpp conftest.$ac_ext"
12001 case "(($ac_try" in
12002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003   *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12007   ac_status=$?
12008   grep -v '^ *+' conftest.er1 >conftest.err
12009   rm -f conftest.er1
12010   cat conftest.err >&5
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } >/dev/null && {
12013          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12014          test ! -s conftest.err
12015        }; then
12016   ac_header_preproc=yes
12017 else
12018   echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021   ac_header_preproc=no
12022 fi
12023
12024 rm -f conftest.err conftest.$ac_ext
12025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12026 echo "${ECHO_T}$ac_header_preproc" >&6; }
12027
12028 # So?  What about this header?
12029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12030   yes:no: )
12031     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12033     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12035     ac_header_preproc=yes
12036     ;;
12037   no:yes:* )
12038     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12040     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12041 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12042     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12044     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12045 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12046     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12048     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12050     ( cat <<\_ASBOX
12051 ## ---------------------------------------- ##
12052 ## Report this to pgsql-bugs@postgresql.org ##
12053 ## ---------------------------------------- ##
12054 _ASBOX
12055      ) | sed "s/^/$as_me: WARNING:     /" >&2
12056     ;;
12057 esac
12058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12061   echo $ECHO_N "(cached) $ECHO_C" >&6
12062 else
12063   eval "$as_ac_Header=\$ac_header_preproc"
12064 fi
12065 ac_res=`eval echo '${'$as_ac_Header'}'`
12066                { echo "$as_me:$LINENO: result: $ac_res" >&5
12067 echo "${ECHO_T}$ac_res" >&6; }
12068
12069 fi
12070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12071   cat >>confdefs.h <<_ACEOF
12072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12073 _ACEOF
12074
12075 else
12076   { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
12077 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
12078    { (exit 1); exit 1; }; }
12079 fi
12080
12081 done
12082
12083 fi
12084
12085 done
12086
12087 fi
12088
12089 if test "$with_krb5" = yes ; then
12090   if test "${ac_cv_header_krb5_h+set}" = set; then
12091   { echo "$as_me:$LINENO: checking for krb5.h" >&5
12092 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
12093 if test "${ac_cv_header_krb5_h+set}" = set; then
12094   echo $ECHO_N "(cached) $ECHO_C" >&6
12095 fi
12096 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12097 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
12098 else
12099   # Is the header compilable?
12100 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
12101 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
12102 cat >conftest.$ac_ext <<_ACEOF
12103 /* confdefs.h.  */
12104 _ACEOF
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h.  */
12108 $ac_includes_default
12109 #include <krb5.h>
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (ac_try="$ac_compile"
12113 case "(($ac_try" in
12114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115   *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118   (eval "$ac_compile") 2>conftest.er1
12119   ac_status=$?
12120   grep -v '^ *+' conftest.er1 >conftest.err
12121   rm -f conftest.er1
12122   cat conftest.err >&5
12123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124   (exit $ac_status); } && {
12125          test -z "$ac_c_werror_flag" ||
12126          test ! -s conftest.err
12127        } && test -s conftest.$ac_objext; then
12128   ac_header_compiler=yes
12129 else
12130   echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12132
12133         ac_header_compiler=no
12134 fi
12135
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12138 echo "${ECHO_T}$ac_header_compiler" >&6; }
12139
12140 # Is the header present?
12141 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
12142 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
12143 cat >conftest.$ac_ext <<_ACEOF
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149 #include <krb5.h>
12150 _ACEOF
12151 if { (ac_try="$ac_cpp conftest.$ac_ext"
12152 case "(($ac_try" in
12153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12154   *) ac_try_echo=$ac_try;;
12155 esac
12156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12158   ac_status=$?
12159   grep -v '^ *+' conftest.er1 >conftest.err
12160   rm -f conftest.er1
12161   cat conftest.err >&5
12162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12163   (exit $ac_status); } >/dev/null && {
12164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12165          test ! -s conftest.err
12166        }; then
12167   ac_header_preproc=yes
12168 else
12169   echo "$as_me: failed program was:" >&5
12170 sed 's/^/| /' conftest.$ac_ext >&5
12171
12172   ac_header_preproc=no
12173 fi
12174
12175 rm -f conftest.err conftest.$ac_ext
12176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12177 echo "${ECHO_T}$ac_header_preproc" >&6; }
12178
12179 # So?  What about this header?
12180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12181   yes:no: )
12182     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
12183 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12184     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
12185 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
12186     ac_header_preproc=yes
12187     ;;
12188   no:yes:* )
12189     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
12190 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
12191     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
12192 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
12193     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
12194 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
12195     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
12196 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12197     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
12198 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
12199     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
12200 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
12201     ( cat <<\_ASBOX
12202 ## ---------------------------------------- ##
12203 ## Report this to pgsql-bugs@postgresql.org ##
12204 ## ---------------------------------------- ##
12205 _ASBOX
12206      ) | sed "s/^/$as_me: WARNING:     /" >&2
12207     ;;
12208 esac
12209 { echo "$as_me:$LINENO: checking for krb5.h" >&5
12210 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
12211 if test "${ac_cv_header_krb5_h+set}" = set; then
12212   echo $ECHO_N "(cached) $ECHO_C" >&6
12213 else
12214   ac_cv_header_krb5_h=$ac_header_preproc
12215 fi
12216 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
12217 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
12218
12219 fi
12220 if test $ac_cv_header_krb5_h = yes; then
12221   :
12222 else
12223   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
12224 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
12225    { (exit 1); exit 1; }; }
12226 fi
12227
12228
12229 fi
12230
12231 if test "$with_openssl" = yes ; then
12232   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12233   { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12234 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12235 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12236   echo $ECHO_N "(cached) $ECHO_C" >&6
12237 fi
12238 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12239 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12240 else
12241   # Is the header compilable?
12242 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
12243 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
12244 cat >conftest.$ac_ext <<_ACEOF
12245 /* confdefs.h.  */
12246 _ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h.  */
12250 $ac_includes_default
12251 #include <openssl/ssl.h>
12252 _ACEOF
12253 rm -f conftest.$ac_objext
12254 if { (ac_try="$ac_compile"
12255 case "(($ac_try" in
12256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12257   *) ac_try_echo=$ac_try;;
12258 esac
12259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12260   (eval "$ac_compile") 2>conftest.er1
12261   ac_status=$?
12262   grep -v '^ *+' conftest.er1 >conftest.err
12263   rm -f conftest.er1
12264   cat conftest.err >&5
12265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12266   (exit $ac_status); } && {
12267          test -z "$ac_c_werror_flag" ||
12268          test ! -s conftest.err
12269        } && test -s conftest.$ac_objext; then
12270   ac_header_compiler=yes
12271 else
12272   echo "$as_me: failed program was:" >&5
12273 sed 's/^/| /' conftest.$ac_ext >&5
12274
12275         ac_header_compiler=no
12276 fi
12277
12278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12280 echo "${ECHO_T}$ac_header_compiler" >&6; }
12281
12282 # Is the header present?
12283 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
12284 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
12285 cat >conftest.$ac_ext <<_ACEOF
12286 /* confdefs.h.  */
12287 _ACEOF
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h.  */
12291 #include <openssl/ssl.h>
12292 _ACEOF
12293 if { (ac_try="$ac_cpp conftest.$ac_ext"
12294 case "(($ac_try" in
12295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296   *) ac_try_echo=$ac_try;;
12297 esac
12298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12300   ac_status=$?
12301   grep -v '^ *+' conftest.er1 >conftest.err
12302   rm -f conftest.er1
12303   cat conftest.err >&5
12304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305   (exit $ac_status); } >/dev/null && {
12306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12307          test ! -s conftest.err
12308        }; then
12309   ac_header_preproc=yes
12310 else
12311   echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12313
12314   ac_header_preproc=no
12315 fi
12316
12317 rm -f conftest.err conftest.$ac_ext
12318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12319 echo "${ECHO_T}$ac_header_preproc" >&6; }
12320
12321 # So?  What about this header?
12322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12323   yes:no: )
12324     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
12325 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12326     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
12327 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
12328     ac_header_preproc=yes
12329     ;;
12330   no:yes:* )
12331     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
12332 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
12333     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
12334 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
12335     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
12336 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
12337     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
12338 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12339     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
12340 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
12341     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
12342 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
12343     ( cat <<\_ASBOX
12344 ## ---------------------------------------- ##
12345 ## Report this to pgsql-bugs@postgresql.org ##
12346 ## ---------------------------------------- ##
12347 _ASBOX
12348      ) | sed "s/^/$as_me: WARNING:     /" >&2
12349     ;;
12350 esac
12351 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
12352 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
12353 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
12354   echo $ECHO_N "(cached) $ECHO_C" >&6
12355 else
12356   ac_cv_header_openssl_ssl_h=$ac_header_preproc
12357 fi
12358 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
12359 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
12360
12361 fi
12362 if test $ac_cv_header_openssl_ssl_h = yes; then
12363   :
12364 else
12365   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
12366 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
12367    { (exit 1); exit 1; }; }
12368 fi
12369
12370
12371   if test "${ac_cv_header_openssl_err_h+set}" = set; then
12372   { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12373 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12374 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12375   echo $ECHO_N "(cached) $ECHO_C" >&6
12376 fi
12377 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12378 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12379 else
12380   # Is the header compilable?
12381 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
12382 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12389 $ac_includes_default
12390 #include <openssl/err.h>
12391 _ACEOF
12392 rm -f conftest.$ac_objext
12393 if { (ac_try="$ac_compile"
12394 case "(($ac_try" in
12395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396   *) ac_try_echo=$ac_try;;
12397 esac
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399   (eval "$ac_compile") 2>conftest.er1
12400   ac_status=$?
12401   grep -v '^ *+' conftest.er1 >conftest.err
12402   rm -f conftest.er1
12403   cat conftest.err >&5
12404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405   (exit $ac_status); } && {
12406          test -z "$ac_c_werror_flag" ||
12407          test ! -s conftest.err
12408        } && test -s conftest.$ac_objext; then
12409   ac_header_compiler=yes
12410 else
12411   echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12413
12414         ac_header_compiler=no
12415 fi
12416
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12419 echo "${ECHO_T}$ac_header_compiler" >&6; }
12420
12421 # Is the header present?
12422 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
12423 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
12424 cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 #include <openssl/err.h>
12431 _ACEOF
12432 if { (ac_try="$ac_cpp conftest.$ac_ext"
12433 case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12439   ac_status=$?
12440   grep -v '^ *+' conftest.er1 >conftest.err
12441   rm -f conftest.er1
12442   cat conftest.err >&5
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); } >/dev/null && {
12445          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12446          test ! -s conftest.err
12447        }; then
12448   ac_header_preproc=yes
12449 else
12450   echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453   ac_header_preproc=no
12454 fi
12455
12456 rm -f conftest.err conftest.$ac_ext
12457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12458 echo "${ECHO_T}$ac_header_preproc" >&6; }
12459
12460 # So?  What about this header?
12461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12462   yes:no: )
12463     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
12464 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12465     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
12466 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
12467     ac_header_preproc=yes
12468     ;;
12469   no:yes:* )
12470     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
12471 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
12472     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
12473 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
12474     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
12475 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
12476     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
12477 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12478     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
12479 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
12480     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
12481 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
12482     ( cat <<\_ASBOX
12483 ## ---------------------------------------- ##
12484 ## Report this to pgsql-bugs@postgresql.org ##
12485 ## ---------------------------------------- ##
12486 _ASBOX
12487      ) | sed "s/^/$as_me: WARNING:     /" >&2
12488     ;;
12489 esac
12490 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
12491 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
12492 if test "${ac_cv_header_openssl_err_h+set}" = set; then
12493   echo $ECHO_N "(cached) $ECHO_C" >&6
12494 else
12495   ac_cv_header_openssl_err_h=$ac_header_preproc
12496 fi
12497 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
12498 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
12499
12500 fi
12501 if test $ac_cv_header_openssl_err_h = yes; then
12502   :
12503 else
12504   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
12505 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
12506    { (exit 1); exit 1; }; }
12507 fi
12508
12509
12510
12511 for ac_func in ERR_set_mark
12512 do
12513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12514 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12516 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519   cat >conftest.$ac_ext <<_ACEOF
12520 /* confdefs.h.  */
12521 _ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h.  */
12525 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12526    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12527 #define $ac_func innocuous_$ac_func
12528
12529 /* System header to define __stub macros and hopefully few prototypes,
12530     which can conflict with char $ac_func (); below.
12531     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12532     <limits.h> exists even on freestanding compilers.  */
12533
12534 #ifdef __STDC__
12535 # include <limits.h>
12536 #else
12537 # include <assert.h>
12538 #endif
12539
12540 #undef $ac_func
12541
12542 /* Override any GCC internal prototype to avoid an error.
12543    Use char because int might match the return type of a GCC
12544    builtin and then its argument prototype would still apply.  */
12545 #ifdef __cplusplus
12546 extern "C"
12547 #endif
12548 char $ac_func ();
12549 /* The GNU C library defines this for functions which it implements
12550     to always fail with ENOSYS.  Some functions are actually named
12551     something starting with __ and the normal name is an alias.  */
12552 #if defined __stub_$ac_func || defined __stub___$ac_func
12553 choke me
12554 #endif
12555
12556 int
12557 main ()
12558 {
12559 return $ac_func ();
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568   *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571   (eval "$ac_link") 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } && {
12578          test -z "$ac_c_werror_flag" ||
12579          test ! -s conftest.err
12580        } && test -s conftest$ac_exeext &&
12581        $as_test_x conftest$ac_exeext; then
12582   eval "$as_ac_var=yes"
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587         eval "$as_ac_var=no"
12588 fi
12589
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591       conftest$ac_exeext conftest.$ac_ext
12592 fi
12593 ac_res=`eval echo '${'$as_ac_var'}'`
12594                { echo "$as_me:$LINENO: result: $ac_res" >&5
12595 echo "${ECHO_T}$ac_res" >&6; }
12596 if test `eval echo '${'$as_ac_var'}'` = yes; then
12597   cat >>confdefs.h <<_ACEOF
12598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12599 _ACEOF
12600
12601 fi
12602 done
12603
12604 fi
12605
12606 if test "$with_pam" = yes ; then
12607
12608 for ac_header in security/pam_appl.h
12609 do
12610 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12612   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12615   echo $ECHO_N "(cached) $ECHO_C" >&6
12616 fi
12617 ac_res=`eval echo '${'$as_ac_Header'}'`
12618                { echo "$as_me:$LINENO: result: $ac_res" >&5
12619 echo "${ECHO_T}$ac_res" >&6; }
12620 else
12621   # Is the header compilable?
12622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12624 cat >conftest.$ac_ext <<_ACEOF
12625 /* confdefs.h.  */
12626 _ACEOF
12627 cat confdefs.h >>conftest.$ac_ext
12628 cat >>conftest.$ac_ext <<_ACEOF
12629 /* end confdefs.h.  */
12630 $ac_includes_default
12631 #include <$ac_header>
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640   (eval "$ac_compile") 2>conftest.er1
12641   ac_status=$?
12642   grep -v '^ *+' conftest.er1 >conftest.err
12643   rm -f conftest.er1
12644   cat conftest.err >&5
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } && {
12647          test -z "$ac_c_werror_flag" ||
12648          test ! -s conftest.err
12649        } && test -s conftest.$ac_objext; then
12650   ac_header_compiler=yes
12651 else
12652   echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655         ac_header_compiler=no
12656 fi
12657
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12660 echo "${ECHO_T}$ac_header_compiler" >&6; }
12661
12662 # Is the header present?
12663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h.  */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h.  */
12671 #include <$ac_header>
12672 _ACEOF
12673 if { (ac_try="$ac_cpp conftest.$ac_ext"
12674 case "(($ac_try" in
12675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676   *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12680   ac_status=$?
12681   grep -v '^ *+' conftest.er1 >conftest.err
12682   rm -f conftest.er1
12683   cat conftest.err >&5
12684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685   (exit $ac_status); } >/dev/null && {
12686          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12687          test ! -s conftest.err
12688        }; then
12689   ac_header_preproc=yes
12690 else
12691   echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694   ac_header_preproc=no
12695 fi
12696
12697 rm -f conftest.err conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12699 echo "${ECHO_T}$ac_header_preproc" >&6; }
12700
12701 # So?  What about this header?
12702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12703   yes:no: )
12704     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12706     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12708     ac_header_preproc=yes
12709     ;;
12710   no:yes:* )
12711     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12713     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12714 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12715     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12717     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12718 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12719     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12721     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12723     ( cat <<\_ASBOX
12724 ## ---------------------------------------- ##
12725 ## Report this to pgsql-bugs@postgresql.org ##
12726 ## ---------------------------------------- ##
12727 _ASBOX
12728      ) | sed "s/^/$as_me: WARNING:     /" >&2
12729     ;;
12730 esac
12731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12734   echo $ECHO_N "(cached) $ECHO_C" >&6
12735 else
12736   eval "$as_ac_Header=\$ac_header_preproc"
12737 fi
12738 ac_res=`eval echo '${'$as_ac_Header'}'`
12739                { echo "$as_me:$LINENO: result: $ac_res" >&5
12740 echo "${ECHO_T}$ac_res" >&6; }
12741
12742 fi
12743 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12744   cat >>confdefs.h <<_ACEOF
12745 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12746 _ACEOF
12747
12748 else
12749
12750 for ac_header in pam/pam_appl.h
12751 do
12752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12754   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 fi
12759 ac_res=`eval echo '${'$as_ac_Header'}'`
12760                { echo "$as_me:$LINENO: result: $ac_res" >&5
12761 echo "${ECHO_T}$ac_res" >&6; }
12762 else
12763   # Is the header compilable?
12764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12766 cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h.  */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h.  */
12772 $ac_includes_default
12773 #include <$ac_header>
12774 _ACEOF
12775 rm -f conftest.$ac_objext
12776 if { (ac_try="$ac_compile"
12777 case "(($ac_try" in
12778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12779   *) ac_try_echo=$ac_try;;
12780 esac
12781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12782   (eval "$ac_compile") 2>conftest.er1
12783   ac_status=$?
12784   grep -v '^ *+' conftest.er1 >conftest.err
12785   rm -f conftest.er1
12786   cat conftest.err >&5
12787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12788   (exit $ac_status); } && {
12789          test -z "$ac_c_werror_flag" ||
12790          test ! -s conftest.err
12791        } && test -s conftest.$ac_objext; then
12792   ac_header_compiler=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         ac_header_compiler=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12802 echo "${ECHO_T}$ac_header_compiler" >&6; }
12803
12804 # Is the header present?
12805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12807 cat >conftest.$ac_ext <<_ACEOF
12808 /* confdefs.h.  */
12809 _ACEOF
12810 cat confdefs.h >>conftest.$ac_ext
12811 cat >>conftest.$ac_ext <<_ACEOF
12812 /* end confdefs.h.  */
12813 #include <$ac_header>
12814 _ACEOF
12815 if { (ac_try="$ac_cpp conftest.$ac_ext"
12816 case "(($ac_try" in
12817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818   *) ac_try_echo=$ac_try;;
12819 esac
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12822   ac_status=$?
12823   grep -v '^ *+' conftest.er1 >conftest.err
12824   rm -f conftest.er1
12825   cat conftest.err >&5
12826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } >/dev/null && {
12828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12829          test ! -s conftest.err
12830        }; then
12831   ac_header_preproc=yes
12832 else
12833   echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836   ac_header_preproc=no
12837 fi
12838
12839 rm -f conftest.err conftest.$ac_ext
12840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12841 echo "${ECHO_T}$ac_header_preproc" >&6; }
12842
12843 # So?  What about this header?
12844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12845   yes:no: )
12846     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12848     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12850     ac_header_preproc=yes
12851     ;;
12852   no:yes:* )
12853     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12855     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12856 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12857     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12859     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12860 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12861     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12863     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12865     ( cat <<\_ASBOX
12866 ## ---------------------------------------- ##
12867 ## Report this to pgsql-bugs@postgresql.org ##
12868 ## ---------------------------------------- ##
12869 _ASBOX
12870      ) | sed "s/^/$as_me: WARNING:     /" >&2
12871     ;;
12872 esac
12873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12876   echo $ECHO_N "(cached) $ECHO_C" >&6
12877 else
12878   eval "$as_ac_Header=\$ac_header_preproc"
12879 fi
12880 ac_res=`eval echo '${'$as_ac_Header'}'`
12881                { echo "$as_me:$LINENO: result: $ac_res" >&5
12882 echo "${ECHO_T}$ac_res" >&6; }
12883
12884 fi
12885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12886   cat >>confdefs.h <<_ACEOF
12887 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12888 _ACEOF
12889
12890 else
12891   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12892 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12893    { (exit 1); exit 1; }; }
12894 fi
12895
12896 done
12897
12898 fi
12899
12900 done
12901
12902 fi
12903
12904 if test "$with_libxml" = yes ; then
12905   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12906   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12907 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12908 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12909   echo $ECHO_N "(cached) $ECHO_C" >&6
12910 fi
12911 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12912 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12913 else
12914   # Is the header compilable?
12915 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12916 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12917 cat >conftest.$ac_ext <<_ACEOF
12918 /* confdefs.h.  */
12919 _ACEOF
12920 cat confdefs.h >>conftest.$ac_ext
12921 cat >>conftest.$ac_ext <<_ACEOF
12922 /* end confdefs.h.  */
12923 $ac_includes_default
12924 #include <libxml/parser.h>
12925 _ACEOF
12926 rm -f conftest.$ac_objext
12927 if { (ac_try="$ac_compile"
12928 case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933   (eval "$ac_compile") 2>conftest.er1
12934   ac_status=$?
12935   grep -v '^ *+' conftest.er1 >conftest.err
12936   rm -f conftest.er1
12937   cat conftest.err >&5
12938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } && {
12940          test -z "$ac_c_werror_flag" ||
12941          test ! -s conftest.err
12942        } && test -s conftest.$ac_objext; then
12943   ac_header_compiler=yes
12944 else
12945   echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948         ac_header_compiler=no
12949 fi
12950
12951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12952 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12953 echo "${ECHO_T}$ac_header_compiler" >&6; }
12954
12955 # Is the header present?
12956 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12957 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12958 cat >conftest.$ac_ext <<_ACEOF
12959 /* confdefs.h.  */
12960 _ACEOF
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h.  */
12964 #include <libxml/parser.h>
12965 _ACEOF
12966 if { (ac_try="$ac_cpp conftest.$ac_ext"
12967 case "(($ac_try" in
12968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12969   *) ac_try_echo=$ac_try;;
12970 esac
12971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12972   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12973   ac_status=$?
12974   grep -v '^ *+' conftest.er1 >conftest.err
12975   rm -f conftest.er1
12976   cat conftest.err >&5
12977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978   (exit $ac_status); } >/dev/null && {
12979          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12980          test ! -s conftest.err
12981        }; then
12982   ac_header_preproc=yes
12983 else
12984   echo "$as_me: failed program was:" >&5
12985 sed 's/^/| /' conftest.$ac_ext >&5
12986
12987   ac_header_preproc=no
12988 fi
12989
12990 rm -f conftest.err conftest.$ac_ext
12991 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12992 echo "${ECHO_T}$ac_header_preproc" >&6; }
12993
12994 # So?  What about this header?
12995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12996   yes:no: )
12997     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12998 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12999     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13000 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13001     ac_header_preproc=yes
13002     ;;
13003   no:yes:* )
13004     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13005 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13006     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13007 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13008     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13009 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13010     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13011 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13012     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13013 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13014     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13015 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13016     ( cat <<\_ASBOX
13017 ## ---------------------------------------- ##
13018 ## Report this to pgsql-bugs@postgresql.org ##
13019 ## ---------------------------------------- ##
13020 _ASBOX
13021      ) | sed "s/^/$as_me: WARNING:     /" >&2
13022     ;;
13023 esac
13024 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13025 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
13026 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13027   echo $ECHO_N "(cached) $ECHO_C" >&6
13028 else
13029   ac_cv_header_libxml_parser_h=$ac_header_preproc
13030 fi
13031 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13032 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
13033
13034 fi
13035 if test $ac_cv_header_libxml_parser_h = yes; then
13036   :
13037 else
13038   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13039 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13040    { (exit 1); exit 1; }; }
13041 fi
13042
13043
13044 fi
13045
13046 if test "$with_libxslt" = yes ; then
13047   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13048   { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13049 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
13050 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13051   echo $ECHO_N "(cached) $ECHO_C" >&6
13052 fi
13053 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13054 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
13055 else
13056   # Is the header compilable?
13057 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13058 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
13059 cat >conftest.$ac_ext <<_ACEOF
13060 /* confdefs.h.  */
13061 _ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h.  */
13065 $ac_includes_default
13066 #include <libxslt/xslt.h>
13067 _ACEOF
13068 rm -f conftest.$ac_objext
13069 if { (ac_try="$ac_compile"
13070 case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_compile") 2>conftest.er1
13076   ac_status=$?
13077   grep -v '^ *+' conftest.er1 >conftest.err
13078   rm -f conftest.er1
13079   cat conftest.err >&5
13080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081   (exit $ac_status); } && {
13082          test -z "$ac_c_werror_flag" ||
13083          test ! -s conftest.err
13084        } && test -s conftest.$ac_objext; then
13085   ac_header_compiler=yes
13086 else
13087   echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.$ac_ext >&5
13089
13090         ac_header_compiler=no
13091 fi
13092
13093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13095 echo "${ECHO_T}$ac_header_compiler" >&6; }
13096
13097 # Is the header present?
13098 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13099 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
13100 cat >conftest.$ac_ext <<_ACEOF
13101 /* confdefs.h.  */
13102 _ACEOF
13103 cat confdefs.h >>conftest.$ac_ext
13104 cat >>conftest.$ac_ext <<_ACEOF
13105 /* end confdefs.h.  */
13106 #include <libxslt/xslt.h>
13107 _ACEOF
13108 if { (ac_try="$ac_cpp conftest.$ac_ext"
13109 case "(($ac_try" in
13110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13111   *) ac_try_echo=$ac_try;;
13112 esac
13113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13115   ac_status=$?
13116   grep -v '^ *+' conftest.er1 >conftest.err
13117   rm -f conftest.er1
13118   cat conftest.err >&5
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } >/dev/null && {
13121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13122          test ! -s conftest.err
13123        }; then
13124   ac_header_preproc=yes
13125 else
13126   echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129   ac_header_preproc=no
13130 fi
13131
13132 rm -f conftest.err conftest.$ac_ext
13133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13134 echo "${ECHO_T}$ac_header_preproc" >&6; }
13135
13136 # So?  What about this header?
13137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13138   yes:no: )
13139     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
13140 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13141     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
13142 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
13143     ac_header_preproc=yes
13144     ;;
13145   no:yes:* )
13146     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
13147 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
13148     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
13149 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
13150     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
13151 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
13152     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
13153 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13154     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
13155 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
13156     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
13157 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
13158     ( cat <<\_ASBOX
13159 ## ---------------------------------------- ##
13160 ## Report this to pgsql-bugs@postgresql.org ##
13161 ## ---------------------------------------- ##
13162 _ASBOX
13163      ) | sed "s/^/$as_me: WARNING:     /" >&2
13164     ;;
13165 esac
13166 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13167 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
13168 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13169   echo $ECHO_N "(cached) $ECHO_C" >&6
13170 else
13171   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
13172 fi
13173 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13174 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
13175
13176 fi
13177 if test $ac_cv_header_libxslt_xslt_h = yes; then
13178   :
13179 else
13180   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
13181 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
13182    { (exit 1); exit 1; }; }
13183 fi
13184
13185
13186 fi
13187
13188 if test "$with_ldap" = yes ; then
13189   if test "$PORTNAME" != "win32"; then
13190
13191 for ac_header in ldap.h
13192 do
13193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13195   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198   echo $ECHO_N "(cached) $ECHO_C" >&6
13199 fi
13200 ac_res=`eval echo '${'$as_ac_Header'}'`
13201                { echo "$as_me:$LINENO: result: $ac_res" >&5
13202 echo "${ECHO_T}$ac_res" >&6; }
13203 else
13204   # Is the header compilable?
13205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213 $ac_includes_default
13214 #include <$ac_header>
13215 _ACEOF
13216 rm -f conftest.$ac_objext
13217 if { (ac_try="$ac_compile"
13218 case "(($ac_try" in
13219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13220   *) ac_try_echo=$ac_try;;
13221 esac
13222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13223   (eval "$ac_compile") 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } && {
13230          test -z "$ac_c_werror_flag" ||
13231          test ! -s conftest.err
13232        } && test -s conftest.$ac_objext; then
13233   ac_header_compiler=yes
13234 else
13235   echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238         ac_header_compiler=no
13239 fi
13240
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13243 echo "${ECHO_T}$ac_header_compiler" >&6; }
13244
13245 # Is the header present?
13246 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13248 cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h.  */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h.  */
13254 #include <$ac_header>
13255 _ACEOF
13256 if { (ac_try="$ac_cpp conftest.$ac_ext"
13257 case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13263   ac_status=$?
13264   grep -v '^ *+' conftest.er1 >conftest.err
13265   rm -f conftest.er1
13266   cat conftest.err >&5
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } >/dev/null && {
13269          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13270          test ! -s conftest.err
13271        }; then
13272   ac_header_preproc=yes
13273 else
13274   echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13276
13277   ac_header_preproc=no
13278 fi
13279
13280 rm -f conftest.err conftest.$ac_ext
13281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13282 echo "${ECHO_T}$ac_header_preproc" >&6; }
13283
13284 # So?  What about this header?
13285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13286   yes:no: )
13287     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13288 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13291     ac_header_preproc=yes
13292     ;;
13293   no:yes:* )
13294     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13295 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13296     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13297 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13298     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13299 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13300     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13301 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13302     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13304     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13305 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13306     ( cat <<\_ASBOX
13307 ## ---------------------------------------- ##
13308 ## Report this to pgsql-bugs@postgresql.org ##
13309 ## ---------------------------------------- ##
13310 _ASBOX
13311      ) | sed "s/^/$as_me: WARNING:     /" >&2
13312     ;;
13313 esac
13314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13317   echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319   eval "$as_ac_Header=\$ac_header_preproc"
13320 fi
13321 ac_res=`eval echo '${'$as_ac_Header'}'`
13322                { echo "$as_me:$LINENO: result: $ac_res" >&5
13323 echo "${ECHO_T}$ac_res" >&6; }
13324
13325 fi
13326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13327   cat >>confdefs.h <<_ACEOF
13328 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13329 _ACEOF
13330
13331 else
13332   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
13333 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
13334    { (exit 1); exit 1; }; }
13335 fi
13336
13337 done
13338
13339   else
13340
13341 for ac_header in winldap.h
13342 do
13343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13347   echo $ECHO_N "(cached) $ECHO_C" >&6
13348 else
13349   cat >conftest.$ac_ext <<_ACEOF
13350 /* confdefs.h.  */
13351 _ACEOF
13352 cat confdefs.h >>conftest.$ac_ext
13353 cat >>conftest.$ac_ext <<_ACEOF
13354 /* end confdefs.h.  */
13355 $ac_includes_default
13356 #include <windows.h>
13357
13358
13359 #include <$ac_header>
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368   (eval "$ac_compile") 2>conftest.er1
13369   ac_status=$?
13370   grep -v '^ *+' conftest.er1 >conftest.err
13371   rm -f conftest.er1
13372   cat conftest.err >&5
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } && {
13375          test -z "$ac_c_werror_flag" ||
13376          test ! -s conftest.err
13377        } && test -s conftest.$ac_objext; then
13378   eval "$as_ac_Header=yes"
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383         eval "$as_ac_Header=no"
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 fi
13388 ac_res=`eval echo '${'$as_ac_Header'}'`
13389                { echo "$as_me:$LINENO: result: $ac_res" >&5
13390 echo "${ECHO_T}$ac_res" >&6; }
13391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13392   cat >>confdefs.h <<_ACEOF
13393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13394 _ACEOF
13395
13396 else
13397   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
13398 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
13399    { (exit 1); exit 1; }; }
13400 fi
13401
13402 done
13403
13404   fi
13405 fi
13406
13407 if test "$with_bonjour" = yes ; then
13408   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13409   { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13410 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13411 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13412   echo $ECHO_N "(cached) $ECHO_C" >&6
13413 fi
13414 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13415 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13416 else
13417   # Is the header compilable?
13418 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
13419 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h.  */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h.  */
13426 $ac_includes_default
13427 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436   (eval "$ac_compile") 2>conftest.er1
13437   ac_status=$?
13438   grep -v '^ *+' conftest.er1 >conftest.err
13439   rm -f conftest.er1
13440   cat conftest.err >&5
13441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442   (exit $ac_status); } && {
13443          test -z "$ac_c_werror_flag" ||
13444          test ! -s conftest.err
13445        } && test -s conftest.$ac_objext; then
13446   ac_header_compiler=yes
13447 else
13448   echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451         ac_header_compiler=no
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456 echo "${ECHO_T}$ac_header_compiler" >&6; }
13457
13458 # Is the header present?
13459 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
13460 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h.  */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h.  */
13467 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
13468 _ACEOF
13469 if { (ac_try="$ac_cpp conftest.$ac_ext"
13470 case "(($ac_try" in
13471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472   *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13476   ac_status=$?
13477   grep -v '^ *+' conftest.er1 >conftest.err
13478   rm -f conftest.er1
13479   cat conftest.err >&5
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); } >/dev/null && {
13482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13483          test ! -s conftest.err
13484        }; then
13485   ac_header_preproc=yes
13486 else
13487   echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490   ac_header_preproc=no
13491 fi
13492
13493 rm -f conftest.err conftest.$ac_ext
13494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13495 echo "${ECHO_T}$ac_header_preproc" >&6; }
13496
13497 # So?  What about this header?
13498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13499   yes:no: )
13500     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
13501 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13502     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
13503 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
13504     ac_header_preproc=yes
13505     ;;
13506   no:yes:* )
13507     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
13508 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
13509     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
13510 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
13511     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
13512 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
13513     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
13514 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13515     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
13516 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
13517     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
13518 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
13519     ( cat <<\_ASBOX
13520 ## ---------------------------------------- ##
13521 ## Report this to pgsql-bugs@postgresql.org ##
13522 ## ---------------------------------------- ##
13523 _ASBOX
13524      ) | sed "s/^/$as_me: WARNING:     /" >&2
13525     ;;
13526 esac
13527 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
13528 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
13533 fi
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
13536
13537 fi
13538 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
13539   :
13540 else
13541   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
13542 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
13543    { (exit 1); exit 1; }; }
13544 fi
13545
13546
13547 fi
13548
13549 # for contrib/uuid-ossp
13550 if test "$with_ossp_uuid" = yes ; then
13551
13552 for ac_header in ossp/uuid.h
13553 do
13554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13556   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13559   echo $ECHO_N "(cached) $ECHO_C" >&6
13560 fi
13561 ac_res=`eval echo '${'$as_ac_Header'}'`
13562                { echo "$as_me:$LINENO: result: $ac_res" >&5
13563 echo "${ECHO_T}$ac_res" >&6; }
13564 else
13565   # Is the header compilable?
13566 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13567 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13568 cat >conftest.$ac_ext <<_ACEOF
13569 /* confdefs.h.  */
13570 _ACEOF
13571 cat confdefs.h >>conftest.$ac_ext
13572 cat >>conftest.$ac_ext <<_ACEOF
13573 /* end confdefs.h.  */
13574 $ac_includes_default
13575 #include <$ac_header>
13576 _ACEOF
13577 rm -f conftest.$ac_objext
13578 if { (ac_try="$ac_compile"
13579 case "(($ac_try" in
13580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581   *) ac_try_echo=$ac_try;;
13582 esac
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584   (eval "$ac_compile") 2>conftest.er1
13585   ac_status=$?
13586   grep -v '^ *+' conftest.er1 >conftest.err
13587   rm -f conftest.er1
13588   cat conftest.err >&5
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); } && {
13591          test -z "$ac_c_werror_flag" ||
13592          test ! -s conftest.err
13593        } && test -s conftest.$ac_objext; then
13594   ac_header_compiler=yes
13595 else
13596   echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13598
13599         ac_header_compiler=no
13600 fi
13601
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13603 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13604 echo "${ECHO_T}$ac_header_compiler" >&6; }
13605
13606 # Is the header present?
13607 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13608 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13609 cat >conftest.$ac_ext <<_ACEOF
13610 /* confdefs.h.  */
13611 _ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h.  */
13615 #include <$ac_header>
13616 _ACEOF
13617 if { (ac_try="$ac_cpp conftest.$ac_ext"
13618 case "(($ac_try" in
13619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13620   *) ac_try_echo=$ac_try;;
13621 esac
13622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13623   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13624   ac_status=$?
13625   grep -v '^ *+' conftest.er1 >conftest.err
13626   rm -f conftest.er1
13627   cat conftest.err >&5
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); } >/dev/null && {
13630          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13631          test ! -s conftest.err
13632        }; then
13633   ac_header_preproc=yes
13634 else
13635   echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13637
13638   ac_header_preproc=no
13639 fi
13640
13641 rm -f conftest.err conftest.$ac_ext
13642 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13643 echo "${ECHO_T}$ac_header_preproc" >&6; }
13644
13645 # So?  What about this header?
13646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13647   yes:no: )
13648     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13649 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13650     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13651 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13652     ac_header_preproc=yes
13653     ;;
13654   no:yes:* )
13655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13657     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13658 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13659     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13660 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13661     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13662 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13663     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13664 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13665     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13666 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13667     ( cat <<\_ASBOX
13668 ## ---------------------------------------- ##
13669 ## Report this to pgsql-bugs@postgresql.org ##
13670 ## ---------------------------------------- ##
13671 _ASBOX
13672      ) | sed "s/^/$as_me: WARNING:     /" >&2
13673     ;;
13674 esac
13675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   eval "$as_ac_Header=\$ac_header_preproc"
13681 fi
13682 ac_res=`eval echo '${'$as_ac_Header'}'`
13683                { echo "$as_me:$LINENO: result: $ac_res" >&5
13684 echo "${ECHO_T}$ac_res" >&6; }
13685
13686 fi
13687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13688   cat >>confdefs.h <<_ACEOF
13689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13690 _ACEOF
13691
13692 else
13693
13694
13695 for ac_header in uuid.h
13696 do
13697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13699   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13702   echo $ECHO_N "(cached) $ECHO_C" >&6
13703 fi
13704 ac_res=`eval echo '${'$as_ac_Header'}'`
13705                { echo "$as_me:$LINENO: result: $ac_res" >&5
13706 echo "${ECHO_T}$ac_res" >&6; }
13707 else
13708   # Is the header compilable?
13709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13711 cat >conftest.$ac_ext <<_ACEOF
13712 /* confdefs.h.  */
13713 _ACEOF
13714 cat confdefs.h >>conftest.$ac_ext
13715 cat >>conftest.$ac_ext <<_ACEOF
13716 /* end confdefs.h.  */
13717 $ac_includes_default
13718 #include <$ac_header>
13719 _ACEOF
13720 rm -f conftest.$ac_objext
13721 if { (ac_try="$ac_compile"
13722 case "(($ac_try" in
13723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724   *) ac_try_echo=$ac_try;;
13725 esac
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727   (eval "$ac_compile") 2>conftest.er1
13728   ac_status=$?
13729   grep -v '^ *+' conftest.er1 >conftest.err
13730   rm -f conftest.er1
13731   cat conftest.err >&5
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } && {
13734          test -z "$ac_c_werror_flag" ||
13735          test ! -s conftest.err
13736        } && test -s conftest.$ac_objext; then
13737   ac_header_compiler=yes
13738 else
13739   echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742         ac_header_compiler=no
13743 fi
13744
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13747 echo "${ECHO_T}$ac_header_compiler" >&6; }
13748
13749 # Is the header present?
13750 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13751 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h.  */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h.  */
13758 #include <$ac_header>
13759 _ACEOF
13760 if { (ac_try="$ac_cpp conftest.$ac_ext"
13761 case "(($ac_try" in
13762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13763   *) ac_try_echo=$ac_try;;
13764 esac
13765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13766   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13767   ac_status=$?
13768   grep -v '^ *+' conftest.er1 >conftest.err
13769   rm -f conftest.er1
13770   cat conftest.err >&5
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); } >/dev/null && {
13773          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13774          test ! -s conftest.err
13775        }; then
13776   ac_header_preproc=yes
13777 else
13778   echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781   ac_header_preproc=no
13782 fi
13783
13784 rm -f conftest.err conftest.$ac_ext
13785 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13786 echo "${ECHO_T}$ac_header_preproc" >&6; }
13787
13788 # So?  What about this header?
13789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13790   yes:no: )
13791     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13792 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13794 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13795     ac_header_preproc=yes
13796     ;;
13797   no:yes:* )
13798     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13800     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13801 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13802     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13803 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13804     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13805 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13807 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13808     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13809 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13810     ( cat <<\_ASBOX
13811 ## ---------------------------------------- ##
13812 ## Report this to pgsql-bugs@postgresql.org ##
13813 ## ---------------------------------------- ##
13814 _ASBOX
13815      ) | sed "s/^/$as_me: WARNING:     /" >&2
13816     ;;
13817 esac
13818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821   echo $ECHO_N "(cached) $ECHO_C" >&6
13822 else
13823   eval "$as_ac_Header=\$ac_header_preproc"
13824 fi
13825 ac_res=`eval echo '${'$as_ac_Header'}'`
13826                { echo "$as_me:$LINENO: result: $ac_res" >&5
13827 echo "${ECHO_T}$ac_res" >&6; }
13828
13829 fi
13830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13831   cat >>confdefs.h <<_ACEOF
13832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13833 _ACEOF
13834
13835 else
13836   { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
13837 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
13838    { (exit 1); exit 1; }; }
13839 fi
13840
13841 done
13842
13843 fi
13844
13845 done
13846
13847 fi
13848
13849
13850 ##
13851 ## Types, structures, compiler characteristics
13852 ##
13853
13854  { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13855 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13856 if test "${ac_cv_c_bigendian+set}" = set; then
13857   echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859   # See if sys/param.h defines the BYTE_ORDER macro.
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866 #include <sys/types.h>
13867 #include <sys/param.h>
13868
13869 int
13870 main ()
13871 {
13872 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13873         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13874  bogus endian macros
13875 #endif
13876
13877   ;
13878   return 0;
13879 }
13880 _ACEOF
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_compile") 2>conftest.er1
13889   ac_status=$?
13890   grep -v '^ *+' conftest.er1 >conftest.err
13891   rm -f conftest.er1
13892   cat conftest.err >&5
13893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894   (exit $ac_status); } && {
13895          test -z "$ac_c_werror_flag" ||
13896          test ! -s conftest.err
13897        } && test -s conftest.$ac_objext; then
13898   # It does; now see whether it defined to BIG_ENDIAN or not.
13899 cat >conftest.$ac_ext <<_ACEOF
13900 /* confdefs.h.  */
13901 _ACEOF
13902 cat confdefs.h >>conftest.$ac_ext
13903 cat >>conftest.$ac_ext <<_ACEOF
13904 /* end confdefs.h.  */
13905 #include <sys/types.h>
13906 #include <sys/param.h>
13907
13908 int
13909 main ()
13910 {
13911 #if BYTE_ORDER != BIG_ENDIAN
13912  not big endian
13913 #endif
13914
13915   ;
13916   return 0;
13917 }
13918 _ACEOF
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923   *) ac_try_echo=$ac_try;;
13924 esac
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926   (eval "$ac_compile") 2>conftest.er1
13927   ac_status=$?
13928   grep -v '^ *+' conftest.er1 >conftest.err
13929   rm -f conftest.er1
13930   cat conftest.err >&5
13931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932   (exit $ac_status); } && {
13933          test -z "$ac_c_werror_flag" ||
13934          test ! -s conftest.err
13935        } && test -s conftest.$ac_objext; then
13936   ac_cv_c_bigendian=yes
13937 else
13938   echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13940
13941         ac_cv_c_bigendian=no
13942 fi
13943
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 else
13946   echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949         # It does not; compile a test program.
13950 if test "$cross_compiling" = yes; then
13951   # try to guess the endianness by grepping values into an object file
13952   ac_cv_c_bigendian=unknown
13953   cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13960 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13961 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13962 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13963 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13964 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13965 int
13966 main ()
13967 {
13968  _ascii (); _ebcdic ();
13969   ;
13970   return 0;
13971 }
13972 _ACEOF
13973 rm -f conftest.$ac_objext
13974 if { (ac_try="$ac_compile"
13975 case "(($ac_try" in
13976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977   *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980   (eval "$ac_compile") 2>conftest.er1
13981   ac_status=$?
13982   grep -v '^ *+' conftest.er1 >conftest.err
13983   rm -f conftest.er1
13984   cat conftest.err >&5
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } && {
13987          test -z "$ac_c_werror_flag" ||
13988          test ! -s conftest.err
13989        } && test -s conftest.$ac_objext; then
13990   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13991   ac_cv_c_bigendian=yes
13992 fi
13993 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13994   if test "$ac_cv_c_bigendian" = unknown; then
13995     ac_cv_c_bigendian=no
13996   else
13997     # finding both strings is unlikely to happen, but who knows?
13998     ac_cv_c_bigendian=unknown
13999   fi
14000 fi
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 else
14010   cat >conftest.$ac_ext <<_ACEOF
14011 /* confdefs.h.  */
14012 _ACEOF
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h.  */
14016 $ac_includes_default
14017 int
14018 main ()
14019 {
14020
14021   /* Are we little or big endian?  From Harbison&Steele.  */
14022   union
14023   {
14024     long int l;
14025     char c[sizeof (long int)];
14026   } u;
14027   u.l = 1;
14028   return u.c[sizeof (long int) - 1] == 1;
14029
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038   *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041   (eval "$ac_link") 2>&5
14042   ac_status=$?
14043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14045   { (case "(($ac_try" in
14046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047   *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050   (eval "$ac_try") 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); }; }; then
14054   ac_cv_c_bigendian=no
14055 else
14056   echo "$as_me: program exited with status $ac_status" >&5
14057 echo "$as_me: failed program was:" >&5
14058 sed 's/^/| /' conftest.$ac_ext >&5
14059
14060 ( exit $ac_status )
14061 ac_cv_c_bigendian=yes
14062 fi
14063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14064 fi
14065
14066
14067 fi
14068
14069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14070 fi
14071 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14072 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14073 case $ac_cv_c_bigendian in
14074   yes)
14075
14076 cat >>confdefs.h <<\_ACEOF
14077 #define WORDS_BIGENDIAN 1
14078 _ACEOF
14079  ;;
14080   no)
14081      ;;
14082   *)
14083     { { echo "$as_me:$LINENO: error: unknown endianness
14084 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14085 echo "$as_me: error: unknown endianness
14086 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14087    { (exit 1); exit 1; }; } ;;
14088 esac
14089
14090 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14091 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
14092 if test "${ac_cv_c_const+set}" = set; then
14093   echo $ECHO_N "(cached) $ECHO_C" >&6
14094 else
14095   cat >conftest.$ac_ext <<_ACEOF
14096 /* confdefs.h.  */
14097 _ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h.  */
14101
14102 int
14103 main ()
14104 {
14105 /* FIXME: Include the comments suggested by Paul. */
14106 #ifndef __cplusplus
14107   /* Ultrix mips cc rejects this.  */
14108   typedef int charset[2];
14109   const charset cs;
14110   /* SunOS 4.1.1 cc rejects this.  */
14111   char const *const *pcpcc;
14112   char **ppc;
14113   /* NEC SVR4.0.2 mips cc rejects this.  */
14114   struct point {int x, y;};
14115   static struct point const zero = {0,0};
14116   /* AIX XL C 1.02.0.0 rejects this.
14117      It does not let you subtract one const X* pointer from another in
14118      an arm of an if-expression whose if-part is not a constant
14119      expression */
14120   const char *g = "string";
14121   pcpcc = &g + (g ? g-g : 0);
14122   /* HPUX 7.0 cc rejects these. */
14123   ++pcpcc;
14124   ppc = (char**) pcpcc;
14125   pcpcc = (char const *const *) ppc;
14126   { /* SCO 3.2v4 cc rejects this.  */
14127     char *t;
14128     char const *s = 0 ? (char *) 0 : (char const *) 0;
14129
14130     *t++ = 0;
14131     if (s) return 0;
14132   }
14133   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14134     int x[] = {25, 17};
14135     const int *foo = &x[0];
14136     ++foo;
14137   }
14138   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14139     typedef const int *iptr;
14140     iptr p = 0;
14141     ++p;
14142   }
14143   { /* AIX XL C 1.02.0.0 rejects this saying
14144        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14145     struct s { int j; const int *ap[3]; };
14146     struct s *b; b->j = 5;
14147   }
14148   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14149     const int foo = 10;
14150     if (!foo) return 0;
14151   }
14152   return !cs[0] && !zero.x;
14153 #endif
14154
14155   ;
14156   return 0;
14157 }
14158 _ACEOF
14159 rm -f conftest.$ac_objext
14160 if { (ac_try="$ac_compile"
14161 case "(($ac_try" in
14162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163   *) ac_try_echo=$ac_try;;
14164 esac
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166   (eval "$ac_compile") 2>conftest.er1
14167   ac_status=$?
14168   grep -v '^ *+' conftest.er1 >conftest.err
14169   rm -f conftest.er1
14170   cat conftest.err >&5
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); } && {
14173          test -z "$ac_c_werror_flag" ||
14174          test ! -s conftest.err
14175        } && test -s conftest.$ac_objext; then
14176   ac_cv_c_const=yes
14177 else
14178   echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14180
14181         ac_cv_c_const=no
14182 fi
14183
14184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14185 fi
14186 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14187 echo "${ECHO_T}$ac_cv_c_const" >&6; }
14188 if test $ac_cv_c_const = no; then
14189
14190 cat >>confdefs.h <<\_ACEOF
14191 #define const
14192 _ACEOF
14193
14194 fi
14195
14196 { echo "$as_me:$LINENO: checking for inline" >&5
14197 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
14198 if test "${ac_cv_c_inline+set}" = set; then
14199   echo $ECHO_N "(cached) $ECHO_C" >&6
14200 else
14201   ac_cv_c_inline=no
14202 for ac_kw in inline __inline__ __inline; do
14203   cat >conftest.$ac_ext <<_ACEOF
14204 /* confdefs.h.  */
14205 _ACEOF
14206 cat confdefs.h >>conftest.$ac_ext
14207 cat >>conftest.$ac_ext <<_ACEOF
14208 /* end confdefs.h.  */
14209 #ifndef __cplusplus
14210 typedef int foo_t;
14211 static $ac_kw foo_t static_foo () {return 0; }
14212 $ac_kw foo_t foo () {return 0; }
14213 #endif
14214
14215 _ACEOF
14216 rm -f conftest.$ac_objext
14217 if { (ac_try="$ac_compile"
14218 case "(($ac_try" in
14219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220   *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223   (eval "$ac_compile") 2>conftest.er1
14224   ac_status=$?
14225   grep -v '^ *+' conftest.er1 >conftest.err
14226   rm -f conftest.er1
14227   cat conftest.err >&5
14228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229   (exit $ac_status); } && {
14230          test -z "$ac_c_werror_flag" ||
14231          test ! -s conftest.err
14232        } && test -s conftest.$ac_objext; then
14233   ac_cv_c_inline=$ac_kw
14234 else
14235   echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14237
14238
14239 fi
14240
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14242   test "$ac_cv_c_inline" != no && break
14243 done
14244
14245 fi
14246 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14247 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
14248
14249
14250 case $ac_cv_c_inline in
14251   inline | yes) ;;
14252   *)
14253     case $ac_cv_c_inline in
14254       no) ac_val=;;
14255       *) ac_val=$ac_cv_c_inline;;
14256     esac
14257     cat >>confdefs.h <<_ACEOF
14258 #ifndef __cplusplus
14259 #define inline $ac_val
14260 #endif
14261 _ACEOF
14262     ;;
14263 esac
14264
14265 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
14266 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
14267 if test "${ac_cv_c_stringize+set}" = set; then
14268   echo $ECHO_N "(cached) $ECHO_C" >&6
14269 else
14270   cat >conftest.$ac_ext <<_ACEOF
14271 /* confdefs.h.  */
14272 _ACEOF
14273 cat confdefs.h >>conftest.$ac_ext
14274 cat >>conftest.$ac_ext <<_ACEOF
14275 /* end confdefs.h.  */
14276 #define x(y) #y
14277
14278 char *s = x(teststring);
14279 _ACEOF
14280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14281   $EGREP "#teststring" >/dev/null 2>&1; then
14282   ac_cv_c_stringize=no
14283 else
14284   ac_cv_c_stringize=yes
14285 fi
14286 rm -f conftest*
14287
14288 fi
14289 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
14290 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
14291 if test $ac_cv_c_stringize = yes; then
14292
14293 cat >>confdefs.h <<\_ACEOF
14294 #define HAVE_STRINGIZE 1
14295 _ACEOF
14296
14297 fi
14298
14299 { echo "$as_me:$LINENO: checking for signed types" >&5
14300 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
14301 if test "${pgac_cv_c_signed+set}" = set; then
14302   echo $ECHO_N "(cached) $ECHO_C" >&6
14303 else
14304   cat >conftest.$ac_ext <<_ACEOF
14305 /* confdefs.h.  */
14306 _ACEOF
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h.  */
14310
14311 int
14312 main ()
14313 {
14314 signed char c; signed short s; signed int i;
14315   ;
14316   return 0;
14317 }
14318 _ACEOF
14319 rm -f conftest.$ac_objext
14320 if { (ac_try="$ac_compile"
14321 case "(($ac_try" in
14322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323   *) ac_try_echo=$ac_try;;
14324 esac
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326   (eval "$ac_compile") 2>conftest.er1
14327   ac_status=$?
14328   grep -v '^ *+' conftest.er1 >conftest.err
14329   rm -f conftest.er1
14330   cat conftest.err >&5
14331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332   (exit $ac_status); } && {
14333          test -z "$ac_c_werror_flag" ||
14334          test ! -s conftest.err
14335        } && test -s conftest.$ac_objext; then
14336   pgac_cv_c_signed=yes
14337 else
14338   echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14340
14341         pgac_cv_c_signed=no
14342 fi
14343
14344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 fi
14346 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
14347 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
14348 if test x"$pgac_cv_c_signed" = xno ; then
14349
14350 cat >>confdefs.h <<\_ACEOF
14351 #define signed
14352 _ACEOF
14353
14354 fi
14355 { echo "$as_me:$LINENO: checking for working volatile" >&5
14356 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
14357 if test "${ac_cv_c_volatile+set}" = set; then
14358   echo $ECHO_N "(cached) $ECHO_C" >&6
14359 else
14360   cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366
14367 int
14368 main ()
14369 {
14370
14371 volatile int x;
14372 int * volatile y = (int *) 0;
14373 return !x && !y;
14374   ;
14375   return 0;
14376 }
14377 _ACEOF
14378 rm -f conftest.$ac_objext
14379 if { (ac_try="$ac_compile"
14380 case "(($ac_try" in
14381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14382   *) ac_try_echo=$ac_try;;
14383 esac
14384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14385   (eval "$ac_compile") 2>conftest.er1
14386   ac_status=$?
14387   grep -v '^ *+' conftest.er1 >conftest.err
14388   rm -f conftest.er1
14389   cat conftest.err >&5
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); } && {
14392          test -z "$ac_c_werror_flag" ||
14393          test ! -s conftest.err
14394        } && test -s conftest.$ac_objext; then
14395   ac_cv_c_volatile=yes
14396 else
14397   echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14399
14400         ac_cv_c_volatile=no
14401 fi
14402
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
14406 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
14407 if test $ac_cv_c_volatile = no; then
14408
14409 cat >>confdefs.h <<\_ACEOF
14410 #define volatile
14411 _ACEOF
14412
14413 fi
14414
14415 { echo "$as_me:$LINENO: checking for __func__" >&5
14416 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
14417 if test "${pgac_cv_funcname_func_support+set}" = set; then
14418   echo $ECHO_N "(cached) $ECHO_C" >&6
14419 else
14420   cat >conftest.$ac_ext <<_ACEOF
14421 /* confdefs.h.  */
14422 _ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h.  */
14426 #include <stdio.h>
14427 int
14428 main ()
14429 {
14430 printf("%s\n", __func__);
14431   ;
14432   return 0;
14433 }
14434 _ACEOF
14435 rm -f conftest.$ac_objext
14436 if { (ac_try="$ac_compile"
14437 case "(($ac_try" in
14438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439   *) ac_try_echo=$ac_try;;
14440 esac
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442   (eval "$ac_compile") 2>conftest.er1
14443   ac_status=$?
14444   grep -v '^ *+' conftest.er1 >conftest.err
14445   rm -f conftest.er1
14446   cat conftest.err >&5
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } && {
14449          test -z "$ac_c_werror_flag" ||
14450          test ! -s conftest.err
14451        } && test -s conftest.$ac_objext; then
14452   pgac_cv_funcname_func_support=yes
14453 else
14454   echo "$as_me: failed program was:" >&5
14455 sed 's/^/| /' conftest.$ac_ext >&5
14456
14457         pgac_cv_funcname_func_support=no
14458 fi
14459
14460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14461 fi
14462 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
14463 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
14464 if test x"$pgac_cv_funcname_func_support" = xyes ; then
14465
14466 cat >>confdefs.h <<\_ACEOF
14467 #define HAVE_FUNCNAME__FUNC 1
14468 _ACEOF
14469
14470 else
14471 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
14472 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
14473 if test "${pgac_cv_funcname_function_support+set}" = set; then
14474   echo $ECHO_N "(cached) $ECHO_C" >&6
14475 else
14476   cat >conftest.$ac_ext <<_ACEOF
14477 /* confdefs.h.  */
14478 _ACEOF
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h.  */
14482 #include <stdio.h>
14483 int
14484 main ()
14485 {
14486 printf("%s\n", __FUNCTION__);
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (ac_try="$ac_compile"
14493 case "(($ac_try" in
14494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495   *) ac_try_echo=$ac_try;;
14496 esac
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498   (eval "$ac_compile") 2>conftest.er1
14499   ac_status=$?
14500   grep -v '^ *+' conftest.er1 >conftest.err
14501   rm -f conftest.er1
14502   cat conftest.err >&5
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } && {
14505          test -z "$ac_c_werror_flag" ||
14506          test ! -s conftest.err
14507        } && test -s conftest.$ac_objext; then
14508   pgac_cv_funcname_function_support=yes
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513         pgac_cv_funcname_function_support=no
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
14519 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
14520 if test x"$pgac_cv_funcname_function_support" = xyes ; then
14521
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_FUNCNAME__FUNCTION 1
14524 _ACEOF
14525
14526 fi
14527 fi
14528 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
14530 if test "${ac_cv_struct_tm+set}" = set; then
14531   echo $ECHO_N "(cached) $ECHO_C" >&6
14532 else
14533   cat >conftest.$ac_ext <<_ACEOF
14534 /* confdefs.h.  */
14535 _ACEOF
14536 cat confdefs.h >>conftest.$ac_ext
14537 cat >>conftest.$ac_ext <<_ACEOF
14538 /* end confdefs.h.  */
14539 #include <sys/types.h>
14540 #include <time.h>
14541
14542 int
14543 main ()
14544 {
14545 struct tm tm;
14546                                      int *p = &tm.tm_sec;
14547                                      return !p;
14548   ;
14549   return 0;
14550 }
14551 _ACEOF
14552 rm -f conftest.$ac_objext
14553 if { (ac_try="$ac_compile"
14554 case "(($ac_try" in
14555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14556   *) ac_try_echo=$ac_try;;
14557 esac
14558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14559   (eval "$ac_compile") 2>conftest.er1
14560   ac_status=$?
14561   grep -v '^ *+' conftest.er1 >conftest.err
14562   rm -f conftest.er1
14563   cat conftest.err >&5
14564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); } && {
14566          test -z "$ac_c_werror_flag" ||
14567          test ! -s conftest.err
14568        } && test -s conftest.$ac_objext; then
14569   ac_cv_struct_tm=time.h
14570 else
14571   echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14573
14574         ac_cv_struct_tm=sys/time.h
14575 fi
14576
14577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14578 fi
14579 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14580 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
14581 if test $ac_cv_struct_tm = sys/time.h; then
14582
14583 cat >>confdefs.h <<\_ACEOF
14584 #define TM_IN_SYS_TIME 1
14585 _ACEOF
14586
14587 fi
14588
14589 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14590 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
14591 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14592   echo $ECHO_N "(cached) $ECHO_C" >&6
14593 else
14594   cat >conftest.$ac_ext <<_ACEOF
14595 /* confdefs.h.  */
14596 _ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h.  */
14600 #include <sys/types.h>
14601 #include <$ac_cv_struct_tm>
14602
14603
14604 int
14605 main ()
14606 {
14607 static struct tm ac_aggr;
14608 if (ac_aggr.tm_zone)
14609 return 0;
14610   ;
14611   return 0;
14612 }
14613 _ACEOF
14614 rm -f conftest.$ac_objext
14615 if { (ac_try="$ac_compile"
14616 case "(($ac_try" in
14617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14618   *) ac_try_echo=$ac_try;;
14619 esac
14620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14621   (eval "$ac_compile") 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } && {
14628          test -z "$ac_c_werror_flag" ||
14629          test ! -s conftest.err
14630        } && test -s conftest.$ac_objext; then
14631   ac_cv_member_struct_tm_tm_zone=yes
14632 else
14633   echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14635
14636         cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h.  */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h.  */
14642 #include <sys/types.h>
14643 #include <$ac_cv_struct_tm>
14644
14645
14646 int
14647 main ()
14648 {
14649 static struct tm ac_aggr;
14650 if (sizeof ac_aggr.tm_zone)
14651 return 0;
14652   ;
14653   return 0;
14654 }
14655 _ACEOF
14656 rm -f conftest.$ac_objext
14657 if { (ac_try="$ac_compile"
14658 case "(($ac_try" in
14659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14660   *) ac_try_echo=$ac_try;;
14661 esac
14662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14663   (eval "$ac_compile") 2>conftest.er1
14664   ac_status=$?
14665   grep -v '^ *+' conftest.er1 >conftest.err
14666   rm -f conftest.er1
14667   cat conftest.err >&5
14668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669   (exit $ac_status); } && {
14670          test -z "$ac_c_werror_flag" ||
14671          test ! -s conftest.err
14672        } && test -s conftest.$ac_objext; then
14673   ac_cv_member_struct_tm_tm_zone=yes
14674 else
14675   echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678         ac_cv_member_struct_tm_tm_zone=no
14679 fi
14680
14681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 fi
14683
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 fi
14686 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14687 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
14688 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14689
14690 cat >>confdefs.h <<_ACEOF
14691 #define HAVE_STRUCT_TM_TM_ZONE 1
14692 _ACEOF
14693
14694
14695 fi
14696
14697 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14698
14699 cat >>confdefs.h <<\_ACEOF
14700 #define HAVE_TM_ZONE 1
14701 _ACEOF
14702
14703 fi
14704 { echo "$as_me:$LINENO: checking for tzname" >&5
14705 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
14706 if test "${ac_cv_var_tzname+set}" = set; then
14707   echo $ECHO_N "(cached) $ECHO_C" >&6
14708 else
14709   cat >conftest.$ac_ext <<_ACEOF
14710 /* confdefs.h.  */
14711 _ACEOF
14712 cat confdefs.h >>conftest.$ac_ext
14713 cat >>conftest.$ac_ext <<_ACEOF
14714 /* end confdefs.h.  */
14715 #include <time.h>
14716 #ifndef tzname /* For SGI.  */
14717 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14718 #endif
14719
14720 int
14721 main ()
14722 {
14723 atoi(*tzname);
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (ac_try="$ac_link"
14730 case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14735   (eval "$ac_link") 2>conftest.er1
14736   ac_status=$?
14737   grep -v '^ *+' conftest.er1 >conftest.err
14738   rm -f conftest.er1
14739   cat conftest.err >&5
14740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741   (exit $ac_status); } && {
14742          test -z "$ac_c_werror_flag" ||
14743          test ! -s conftest.err
14744        } && test -s conftest$ac_exeext &&
14745        $as_test_x conftest$ac_exeext; then
14746   ac_cv_var_tzname=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751         ac_cv_var_tzname=no
14752 fi
14753
14754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14755       conftest$ac_exeext conftest.$ac_ext
14756 fi
14757 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14758 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
14759 if test $ac_cv_var_tzname = yes; then
14760
14761 cat >>confdefs.h <<\_ACEOF
14762 #define HAVE_TZNAME 1
14763 _ACEOF
14764
14765 fi
14766
14767 { echo "$as_me:$LINENO: checking for union semun" >&5
14768 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
14769 if test "${ac_cv_type_union_semun+set}" = set; then
14770   echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772   cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 #include <sys/types.h>
14779 #include <sys/ipc.h>
14780 #include <sys/sem.h>
14781
14782 typedef union semun ac__type_new_;
14783 int
14784 main ()
14785 {
14786 if ((ac__type_new_ *) 0)
14787   return 0;
14788 if (sizeof (ac__type_new_))
14789   return 0;
14790   ;
14791   return 0;
14792 }
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (ac_try="$ac_compile"
14796 case "(($ac_try" in
14797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798   *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801   (eval "$ac_compile") 2>conftest.er1
14802   ac_status=$?
14803   grep -v '^ *+' conftest.er1 >conftest.err
14804   rm -f conftest.er1
14805   cat conftest.err >&5
14806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807   (exit $ac_status); } && {
14808          test -z "$ac_c_werror_flag" ||
14809          test ! -s conftest.err
14810        } && test -s conftest.$ac_objext; then
14811   ac_cv_type_union_semun=yes
14812 else
14813   echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816         ac_cv_type_union_semun=no
14817 fi
14818
14819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14820 fi
14821 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
14822 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
14823 if test $ac_cv_type_union_semun = yes; then
14824
14825 cat >>confdefs.h <<_ACEOF
14826 #define HAVE_UNION_SEMUN 1
14827 _ACEOF
14828
14829
14830 fi
14831
14832 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
14833 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
14834 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
14835   echo $ECHO_N "(cached) $ECHO_C" >&6
14836 else
14837   cat >conftest.$ac_ext <<_ACEOF
14838 /* confdefs.h.  */
14839 _ACEOF
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h.  */
14843 #include <sys/types.h>
14844 #ifdef HAVE_SYS_UN_H
14845 #include <sys/un.h>
14846 #endif
14847
14848
14849 typedef struct sockaddr_un ac__type_new_;
14850 int
14851 main ()
14852 {
14853 if ((ac__type_new_ *) 0)
14854   return 0;
14855 if (sizeof (ac__type_new_))
14856   return 0;
14857   ;
14858   return 0;
14859 }
14860 _ACEOF
14861 rm -f conftest.$ac_objext
14862 if { (ac_try="$ac_compile"
14863 case "(($ac_try" in
14864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14865   *) ac_try_echo=$ac_try;;
14866 esac
14867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14868   (eval "$ac_compile") 2>conftest.er1
14869   ac_status=$?
14870   grep -v '^ *+' conftest.er1 >conftest.err
14871   rm -f conftest.er1
14872   cat conftest.err >&5
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } && {
14875          test -z "$ac_c_werror_flag" ||
14876          test ! -s conftest.err
14877        } && test -s conftest.$ac_objext; then
14878   ac_cv_type_struct_sockaddr_un=yes
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883         ac_cv_type_struct_sockaddr_un=no
14884 fi
14885
14886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 fi
14888 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14889 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14890 if test $ac_cv_type_struct_sockaddr_un = yes; then
14891
14892 cat >>confdefs.h <<_ACEOF
14893 #define HAVE_STRUCT_SOCKADDR_UN 1
14894 _ACEOF
14895
14896
14897 cat >>confdefs.h <<\_ACEOF
14898 #define HAVE_UNIX_SOCKETS 1
14899 _ACEOF
14900
14901 fi
14902
14903 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14904 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14905 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 #include <sys/types.h>
14915 #ifdef HAVE_SYS_SOCKET_H
14916 #include <sys/socket.h>
14917 #endif
14918
14919
14920 typedef struct sockaddr_storage ac__type_new_;
14921 int
14922 main ()
14923 {
14924 if ((ac__type_new_ *) 0)
14925   return 0;
14926 if (sizeof (ac__type_new_))
14927   return 0;
14928   ;
14929   return 0;
14930 }
14931 _ACEOF
14932 rm -f conftest.$ac_objext
14933 if { (ac_try="$ac_compile"
14934 case "(($ac_try" in
14935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936   *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939   (eval "$ac_compile") 2>conftest.er1
14940   ac_status=$?
14941   grep -v '^ *+' conftest.er1 >conftest.err
14942   rm -f conftest.er1
14943   cat conftest.err >&5
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); } && {
14946          test -z "$ac_c_werror_flag" ||
14947          test ! -s conftest.err
14948        } && test -s conftest.$ac_objext; then
14949   ac_cv_type_struct_sockaddr_storage=yes
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954         ac_cv_type_struct_sockaddr_storage=no
14955 fi
14956
14957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14958 fi
14959 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14960 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14961 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14962
14963 cat >>confdefs.h <<_ACEOF
14964 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14965 _ACEOF
14966
14967
14968 fi
14969
14970 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14971 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14972 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 #include <sys/types.h>
14982 #ifdef HAVE_SYS_SOCKET_H
14983 #include <sys/socket.h>
14984 #endif
14985
14986
14987 int
14988 main ()
14989 {
14990 static struct sockaddr_storage ac_aggr;
14991 if (ac_aggr.ss_family)
14992 return 0;
14993   ;
14994   return 0;
14995 }
14996 _ACEOF
14997 rm -f conftest.$ac_objext
14998 if { (ac_try="$ac_compile"
14999 case "(($ac_try" in
15000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15001   *) ac_try_echo=$ac_try;;
15002 esac
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004   (eval "$ac_compile") 2>conftest.er1
15005   ac_status=$?
15006   grep -v '^ *+' conftest.er1 >conftest.err
15007   rm -f conftest.er1
15008   cat conftest.err >&5
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); } && {
15011          test -z "$ac_c_werror_flag" ||
15012          test ! -s conftest.err
15013        } && test -s conftest.$ac_objext; then
15014   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15015 else
15016   echo "$as_me: failed program was:" >&5
15017 sed 's/^/| /' conftest.$ac_ext >&5
15018
15019         cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025 #include <sys/types.h>
15026 #ifdef HAVE_SYS_SOCKET_H
15027 #include <sys/socket.h>
15028 #endif
15029
15030
15031 int
15032 main ()
15033 {
15034 static struct sockaddr_storage ac_aggr;
15035 if (sizeof ac_aggr.ss_family)
15036 return 0;
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045   *) ac_try_echo=$ac_try;;
15046 esac
15047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15048   (eval "$ac_compile") 2>conftest.er1
15049   ac_status=$?
15050   grep -v '^ *+' conftest.er1 >conftest.err
15051   rm -f conftest.er1
15052   cat conftest.err >&5
15053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054   (exit $ac_status); } && {
15055          test -z "$ac_c_werror_flag" ||
15056          test ! -s conftest.err
15057        } && test -s conftest.$ac_objext; then
15058   ac_cv_member_struct_sockaddr_storage_ss_family=yes
15059 else
15060   echo "$as_me: failed program was:" >&5
15061 sed 's/^/| /' conftest.$ac_ext >&5
15062
15063         ac_cv_member_struct_sockaddr_storage_ss_family=no
15064 fi
15065
15066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067 fi
15068
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070 fi
15071 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
15072 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
15073 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
15074
15075 cat >>confdefs.h <<_ACEOF
15076 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
15077 _ACEOF
15078
15079
15080 fi
15081 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
15082 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
15083 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
15084   echo $ECHO_N "(cached) $ECHO_C" >&6
15085 else
15086   cat >conftest.$ac_ext <<_ACEOF
15087 /* confdefs.h.  */
15088 _ACEOF
15089 cat confdefs.h >>conftest.$ac_ext
15090 cat >>conftest.$ac_ext <<_ACEOF
15091 /* end confdefs.h.  */
15092 #include <sys/types.h>
15093 #ifdef HAVE_SYS_SOCKET_H
15094 #include <sys/socket.h>
15095 #endif
15096
15097
15098 int
15099 main ()
15100 {
15101 static struct sockaddr_storage ac_aggr;
15102 if (ac_aggr.__ss_family)
15103 return 0;
15104   ;
15105   return 0;
15106 }
15107 _ACEOF
15108 rm -f conftest.$ac_objext
15109 if { (ac_try="$ac_compile"
15110 case "(($ac_try" in
15111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112   *) ac_try_echo=$ac_try;;
15113 esac
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115   (eval "$ac_compile") 2>conftest.er1
15116   ac_status=$?
15117   grep -v '^ *+' conftest.er1 >conftest.err
15118   rm -f conftest.er1
15119   cat conftest.err >&5
15120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121   (exit $ac_status); } && {
15122          test -z "$ac_c_werror_flag" ||
15123          test ! -s conftest.err
15124        } && test -s conftest.$ac_objext; then
15125   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15126 else
15127   echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130         cat >conftest.$ac_ext <<_ACEOF
15131 /* confdefs.h.  */
15132 _ACEOF
15133 cat confdefs.h >>conftest.$ac_ext
15134 cat >>conftest.$ac_ext <<_ACEOF
15135 /* end confdefs.h.  */
15136 #include <sys/types.h>
15137 #ifdef HAVE_SYS_SOCKET_H
15138 #include <sys/socket.h>
15139 #endif
15140
15141
15142 int
15143 main ()
15144 {
15145 static struct sockaddr_storage ac_aggr;
15146 if (sizeof ac_aggr.__ss_family)
15147 return 0;
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (ac_try="$ac_compile"
15154 case "(($ac_try" in
15155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156   *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159   (eval "$ac_compile") 2>conftest.er1
15160   ac_status=$?
15161   grep -v '^ *+' conftest.er1 >conftest.err
15162   rm -f conftest.er1
15163   cat conftest.err >&5
15164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165   (exit $ac_status); } && {
15166          test -z "$ac_c_werror_flag" ||
15167          test ! -s conftest.err
15168        } && test -s conftest.$ac_objext; then
15169   ac_cv_member_struct_sockaddr_storage___ss_family=yes
15170 else
15171   echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.$ac_ext >&5
15173
15174         ac_cv_member_struct_sockaddr_storage___ss_family=no
15175 fi
15176
15177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15178 fi
15179
15180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15181 fi
15182 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
15183 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
15184 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
15185
15186 cat >>confdefs.h <<_ACEOF
15187 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
15188 _ACEOF
15189
15190
15191 fi
15192 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
15193 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
15194 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197   cat >conftest.$ac_ext <<_ACEOF
15198 /* confdefs.h.  */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h.  */
15203 #include <sys/types.h>
15204 #ifdef HAVE_SYS_SOCKET_H
15205 #include <sys/socket.h>
15206 #endif
15207
15208
15209 int
15210 main ()
15211 {
15212 static struct sockaddr_storage ac_aggr;
15213 if (ac_aggr.ss_len)
15214 return 0;
15215   ;
15216   return 0;
15217 }
15218 _ACEOF
15219 rm -f conftest.$ac_objext
15220 if { (ac_try="$ac_compile"
15221 case "(($ac_try" in
15222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223   *) ac_try_echo=$ac_try;;
15224 esac
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226   (eval "$ac_compile") 2>conftest.er1
15227   ac_status=$?
15228   grep -v '^ *+' conftest.er1 >conftest.err
15229   rm -f conftest.er1
15230   cat conftest.err >&5
15231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232   (exit $ac_status); } && {
15233          test -z "$ac_c_werror_flag" ||
15234          test ! -s conftest.err
15235        } && test -s conftest.$ac_objext; then
15236   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15237 else
15238   echo "$as_me: failed program was:" >&5
15239 sed 's/^/| /' conftest.$ac_ext >&5
15240
15241         cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h.  */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h.  */
15247 #include <sys/types.h>
15248 #ifdef HAVE_SYS_SOCKET_H
15249 #include <sys/socket.h>
15250 #endif
15251
15252
15253 int
15254 main ()
15255 {
15256 static struct sockaddr_storage ac_aggr;
15257 if (sizeof ac_aggr.ss_len)
15258 return 0;
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext
15264 if { (ac_try="$ac_compile"
15265 case "(($ac_try" in
15266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267   *) ac_try_echo=$ac_try;;
15268 esac
15269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270   (eval "$ac_compile") 2>conftest.er1
15271   ac_status=$?
15272   grep -v '^ *+' conftest.er1 >conftest.err
15273   rm -f conftest.er1
15274   cat conftest.err >&5
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); } && {
15277          test -z "$ac_c_werror_flag" ||
15278          test ! -s conftest.err
15279        } && test -s conftest.$ac_objext; then
15280   ac_cv_member_struct_sockaddr_storage_ss_len=yes
15281 else
15282   echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.$ac_ext >&5
15284
15285         ac_cv_member_struct_sockaddr_storage_ss_len=no
15286 fi
15287
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 fi
15290
15291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15292 fi
15293 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
15294 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
15295 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
15296
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
15299 _ACEOF
15300
15301
15302 fi
15303 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
15304 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
15305 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
15306   echo $ECHO_N "(cached) $ECHO_C" >&6
15307 else
15308   cat >conftest.$ac_ext <<_ACEOF
15309 /* confdefs.h.  */
15310 _ACEOF
15311 cat confdefs.h >>conftest.$ac_ext
15312 cat >>conftest.$ac_ext <<_ACEOF
15313 /* end confdefs.h.  */
15314 #include <sys/types.h>
15315 #ifdef HAVE_SYS_SOCKET_H
15316 #include <sys/socket.h>
15317 #endif
15318
15319
15320 int
15321 main ()
15322 {
15323 static struct sockaddr_storage ac_aggr;
15324 if (ac_aggr.__ss_len)
15325 return 0;
15326   ;
15327   return 0;
15328 }
15329 _ACEOF
15330 rm -f conftest.$ac_objext
15331 if { (ac_try="$ac_compile"
15332 case "(($ac_try" in
15333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334   *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337   (eval "$ac_compile") 2>conftest.er1
15338   ac_status=$?
15339   grep -v '^ *+' conftest.er1 >conftest.err
15340   rm -f conftest.er1
15341   cat conftest.err >&5
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); } && {
15344          test -z "$ac_c_werror_flag" ||
15345          test ! -s conftest.err
15346        } && test -s conftest.$ac_objext; then
15347   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15348 else
15349   echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352         cat >conftest.$ac_ext <<_ACEOF
15353 /* confdefs.h.  */
15354 _ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h.  */
15358 #include <sys/types.h>
15359 #ifdef HAVE_SYS_SOCKET_H
15360 #include <sys/socket.h>
15361 #endif
15362
15363
15364 int
15365 main ()
15366 {
15367 static struct sockaddr_storage ac_aggr;
15368 if (sizeof ac_aggr.__ss_len)
15369 return 0;
15370   ;
15371   return 0;
15372 }
15373 _ACEOF
15374 rm -f conftest.$ac_objext
15375 if { (ac_try="$ac_compile"
15376 case "(($ac_try" in
15377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378   *) ac_try_echo=$ac_try;;
15379 esac
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381   (eval "$ac_compile") 2>conftest.er1
15382   ac_status=$?
15383   grep -v '^ *+' conftest.er1 >conftest.err
15384   rm -f conftest.er1
15385   cat conftest.err >&5
15386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387   (exit $ac_status); } && {
15388          test -z "$ac_c_werror_flag" ||
15389          test ! -s conftest.err
15390        } && test -s conftest.$ac_objext; then
15391   ac_cv_member_struct_sockaddr_storage___ss_len=yes
15392 else
15393   echo "$as_me: failed program was:" >&5
15394 sed 's/^/| /' conftest.$ac_ext >&5
15395
15396         ac_cv_member_struct_sockaddr_storage___ss_len=no
15397 fi
15398
15399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15400 fi
15401
15402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 fi
15404 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
15405 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
15406 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
15407
15408 cat >>confdefs.h <<_ACEOF
15409 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
15410 _ACEOF
15411
15412
15413 fi
15414 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15415 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
15416 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15417   echo $ECHO_N "(cached) $ECHO_C" >&6
15418 else
15419   cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h.  */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h.  */
15425 #include <sys/types.h>
15426 #ifdef HAVE_SYS_SOCKET_H
15427 #include <sys/socket.h>
15428 #endif
15429
15430
15431 int
15432 main ()
15433 {
15434 static struct sockaddr ac_aggr;
15435 if (ac_aggr.sa_len)
15436 return 0;
15437   ;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (ac_try="$ac_compile"
15443 case "(($ac_try" in
15444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445   *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448   (eval "$ac_compile") 2>conftest.er1
15449   ac_status=$?
15450   grep -v '^ *+' conftest.er1 >conftest.err
15451   rm -f conftest.er1
15452   cat conftest.err >&5
15453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454   (exit $ac_status); } && {
15455          test -z "$ac_c_werror_flag" ||
15456          test ! -s conftest.err
15457        } && test -s conftest.$ac_objext; then
15458   ac_cv_member_struct_sockaddr_sa_len=yes
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463         cat >conftest.$ac_ext <<_ACEOF
15464 /* confdefs.h.  */
15465 _ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h.  */
15469 #include <sys/types.h>
15470 #ifdef HAVE_SYS_SOCKET_H
15471 #include <sys/socket.h>
15472 #endif
15473
15474
15475 int
15476 main ()
15477 {
15478 static struct sockaddr ac_aggr;
15479 if (sizeof ac_aggr.sa_len)
15480 return 0;
15481   ;
15482   return 0;
15483 }
15484 _ACEOF
15485 rm -f conftest.$ac_objext
15486 if { (ac_try="$ac_compile"
15487 case "(($ac_try" in
15488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489   *) ac_try_echo=$ac_try;;
15490 esac
15491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15492   (eval "$ac_compile") 2>conftest.er1
15493   ac_status=$?
15494   grep -v '^ *+' conftest.er1 >conftest.err
15495   rm -f conftest.er1
15496   cat conftest.err >&5
15497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498   (exit $ac_status); } && {
15499          test -z "$ac_c_werror_flag" ||
15500          test ! -s conftest.err
15501        } && test -s conftest.$ac_objext; then
15502   ac_cv_member_struct_sockaddr_sa_len=yes
15503 else
15504   echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15506
15507         ac_cv_member_struct_sockaddr_sa_len=no
15508 fi
15509
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15511 fi
15512
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 fi
15515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15516 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15517 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15518
15519 cat >>confdefs.h <<_ACEOF
15520 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15521 _ACEOF
15522
15523
15524 fi
15525
15526 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
15527 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
15528 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h.  */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h.  */
15537 #include <sys/types.h>
15538 #include <sys/socket.h>
15539 #include <netdb.h>
15540
15541
15542 typedef struct addrinfo ac__type_new_;
15543 int
15544 main ()
15545 {
15546 if ((ac__type_new_ *) 0)
15547   return 0;
15548 if (sizeof (ac__type_new_))
15549   return 0;
15550   ;
15551   return 0;
15552 }
15553 _ACEOF
15554 rm -f conftest.$ac_objext
15555 if { (ac_try="$ac_compile"
15556 case "(($ac_try" in
15557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558   *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561   (eval "$ac_compile") 2>conftest.er1
15562   ac_status=$?
15563   grep -v '^ *+' conftest.er1 >conftest.err
15564   rm -f conftest.er1
15565   cat conftest.err >&5
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); } && {
15568          test -z "$ac_c_werror_flag" ||
15569          test ! -s conftest.err
15570        } && test -s conftest.$ac_objext; then
15571   ac_cv_type_struct_addrinfo=yes
15572 else
15573   echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15575
15576         ac_cv_type_struct_addrinfo=no
15577 fi
15578
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580 fi
15581 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
15582 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
15583 if test $ac_cv_type_struct_addrinfo = yes; then
15584
15585 cat >>confdefs.h <<_ACEOF
15586 #define HAVE_STRUCT_ADDRINFO 1
15587 _ACEOF
15588
15589
15590 fi
15591
15592
15593 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
15594 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
15595 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
15596   echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598   cat >conftest.$ac_ext <<_ACEOF
15599 /* confdefs.h.  */
15600 _ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h.  */
15604 #include <sys/param.h>
15605 #include <sys/types.h>
15606 #include <sys/socket.h>
15607 #include <sys/ucred.h>
15608
15609 typedef struct cmsgcred ac__type_new_;
15610 int
15611 main ()
15612 {
15613 if ((ac__type_new_ *) 0)
15614   return 0;
15615 if (sizeof (ac__type_new_))
15616   return 0;
15617   ;
15618   return 0;
15619 }
15620 _ACEOF
15621 rm -f conftest.$ac_objext
15622 if { (ac_try="$ac_compile"
15623 case "(($ac_try" in
15624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625   *) ac_try_echo=$ac_try;;
15626 esac
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628   (eval "$ac_compile") 2>conftest.er1
15629   ac_status=$?
15630   grep -v '^ *+' conftest.er1 >conftest.err
15631   rm -f conftest.er1
15632   cat conftest.err >&5
15633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634   (exit $ac_status); } && {
15635          test -z "$ac_c_werror_flag" ||
15636          test ! -s conftest.err
15637        } && test -s conftest.$ac_objext; then
15638   ac_cv_type_struct_cmsgcred=yes
15639 else
15640   echo "$as_me: failed program was:" >&5
15641 sed 's/^/| /' conftest.$ac_ext >&5
15642
15643         ac_cv_type_struct_cmsgcred=no
15644 fi
15645
15646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15647 fi
15648 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
15649 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
15650 if test $ac_cv_type_struct_cmsgcred = yes; then
15651
15652 cat >>confdefs.h <<_ACEOF
15653 #define HAVE_STRUCT_CMSGCRED 1
15654 _ACEOF
15655
15656
15657 fi
15658 { echo "$as_me:$LINENO: checking for struct fcred" >&5
15659 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
15660 if test "${ac_cv_type_struct_fcred+set}" = set; then
15661   echo $ECHO_N "(cached) $ECHO_C" >&6
15662 else
15663   cat >conftest.$ac_ext <<_ACEOF
15664 /* confdefs.h.  */
15665 _ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h.  */
15669 #include <sys/param.h>
15670 #include <sys/types.h>
15671 #include <sys/socket.h>
15672 #include <sys/ucred.h>
15673
15674 typedef struct fcred ac__type_new_;
15675 int
15676 main ()
15677 {
15678 if ((ac__type_new_ *) 0)
15679   return 0;
15680 if (sizeof (ac__type_new_))
15681   return 0;
15682   ;
15683   return 0;
15684 }
15685 _ACEOF
15686 rm -f conftest.$ac_objext
15687 if { (ac_try="$ac_compile"
15688 case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_compile") 2>conftest.er1
15694   ac_status=$?
15695   grep -v '^ *+' conftest.er1 >conftest.err
15696   rm -f conftest.er1
15697   cat conftest.err >&5
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); } && {
15700          test -z "$ac_c_werror_flag" ||
15701          test ! -s conftest.err
15702        } && test -s conftest.$ac_objext; then
15703   ac_cv_type_struct_fcred=yes
15704 else
15705   echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15707
15708         ac_cv_type_struct_fcred=no
15709 fi
15710
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 fi
15713 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
15714 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
15715 if test $ac_cv_type_struct_fcred = yes; then
15716
15717 cat >>confdefs.h <<_ACEOF
15718 #define HAVE_STRUCT_FCRED 1
15719 _ACEOF
15720
15721
15722 fi
15723 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
15724 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
15725 if test "${ac_cv_type_struct_sockcred+set}" = set; then
15726   echo $ECHO_N "(cached) $ECHO_C" >&6
15727 else
15728   cat >conftest.$ac_ext <<_ACEOF
15729 /* confdefs.h.  */
15730 _ACEOF
15731 cat confdefs.h >>conftest.$ac_ext
15732 cat >>conftest.$ac_ext <<_ACEOF
15733 /* end confdefs.h.  */
15734 #include <sys/param.h>
15735 #include <sys/types.h>
15736 #include <sys/socket.h>
15737 #include <sys/ucred.h>
15738
15739 typedef struct sockcred ac__type_new_;
15740 int
15741 main ()
15742 {
15743 if ((ac__type_new_ *) 0)
15744   return 0;
15745 if (sizeof (ac__type_new_))
15746   return 0;
15747   ;
15748   return 0;
15749 }
15750 _ACEOF
15751 rm -f conftest.$ac_objext
15752 if { (ac_try="$ac_compile"
15753 case "(($ac_try" in
15754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15755   *) ac_try_echo=$ac_try;;
15756 esac
15757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15758   (eval "$ac_compile") 2>conftest.er1
15759   ac_status=$?
15760   grep -v '^ *+' conftest.er1 >conftest.err
15761   rm -f conftest.er1
15762   cat conftest.err >&5
15763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); } && {
15765          test -z "$ac_c_werror_flag" ||
15766          test ! -s conftest.err
15767        } && test -s conftest.$ac_objext; then
15768   ac_cv_type_struct_sockcred=yes
15769 else
15770   echo "$as_me: failed program was:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15772
15773         ac_cv_type_struct_sockcred=no
15774 fi
15775
15776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15777 fi
15778 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
15779 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
15780 if test $ac_cv_type_struct_sockcred = yes; then
15781
15782 cat >>confdefs.h <<_ACEOF
15783 #define HAVE_STRUCT_SOCKCRED 1
15784 _ACEOF
15785
15786
15787 fi
15788
15789
15790 { echo "$as_me:$LINENO: checking for struct option" >&5
15791 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
15792 if test "${ac_cv_type_struct_option+set}" = set; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795   cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h.  */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h.  */
15801 #ifdef HAVE_GETOPT_H
15802 #include <getopt.h>
15803 #endif
15804
15805 typedef struct option ac__type_new_;
15806 int
15807 main ()
15808 {
15809 if ((ac__type_new_ *) 0)
15810   return 0;
15811 if (sizeof (ac__type_new_))
15812   return 0;
15813   ;
15814   return 0;
15815 }
15816 _ACEOF
15817 rm -f conftest.$ac_objext
15818 if { (ac_try="$ac_compile"
15819 case "(($ac_try" in
15820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821   *) ac_try_echo=$ac_try;;
15822 esac
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824   (eval "$ac_compile") 2>conftest.er1
15825   ac_status=$?
15826   grep -v '^ *+' conftest.er1 >conftest.err
15827   rm -f conftest.er1
15828   cat conftest.err >&5
15829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15830   (exit $ac_status); } && {
15831          test -z "$ac_c_werror_flag" ||
15832          test ! -s conftest.err
15833        } && test -s conftest.$ac_objext; then
15834   ac_cv_type_struct_option=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839         ac_cv_type_struct_option=no
15840 fi
15841
15842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15843 fi
15844 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
15845 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
15846 if test $ac_cv_type_struct_option = yes; then
15847
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_STRUCT_OPTION 1
15850 _ACEOF
15851
15852
15853 fi
15854
15855
15856 if test "$with_zlib" = yes; then
15857   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
15858   # did not).  While we could work around the lack of z_streamp, it
15859   # seems unwise to encourage people to use such old zlib versions...
15860   { echo "$as_me:$LINENO: checking for z_streamp" >&5
15861 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15862 if test "${ac_cv_type_z_streamp+set}" = set; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871 #include <zlib.h>
15872
15873 typedef z_streamp ac__type_new_;
15874 int
15875 main ()
15876 {
15877 if ((ac__type_new_ *) 0)
15878   return 0;
15879 if (sizeof (ac__type_new_))
15880   return 0;
15881   ;
15882   return 0;
15883 }
15884 _ACEOF
15885 rm -f conftest.$ac_objext
15886 if { (ac_try="$ac_compile"
15887 case "(($ac_try" in
15888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15889   *) ac_try_echo=$ac_try;;
15890 esac
15891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15892   (eval "$ac_compile") 2>conftest.er1
15893   ac_status=$?
15894   grep -v '^ *+' conftest.er1 >conftest.err
15895   rm -f conftest.er1
15896   cat conftest.err >&5
15897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898   (exit $ac_status); } && {
15899          test -z "$ac_c_werror_flag" ||
15900          test ! -s conftest.err
15901        } && test -s conftest.$ac_objext; then
15902   ac_cv_type_z_streamp=yes
15903 else
15904   echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15906
15907         ac_cv_type_z_streamp=no
15908 fi
15909
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911 fi
15912 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15913 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15914 if test $ac_cv_type_z_streamp = yes; then
15915   :
15916 else
15917   { { echo "$as_me:$LINENO: error: zlib version is too old
15918 Use --without-zlib to disable zlib support." >&5
15919 echo "$as_me: error: zlib version is too old
15920 Use --without-zlib to disable zlib support." >&2;}
15921    { (exit 1); exit 1; }; }
15922 fi
15923
15924 fi
15925
15926 if test "$with_krb5" = yes; then
15927 # Check for differences between MIT and Heimdal (KTH) releases
15928   { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15929 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15930 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939 #include <krb5.h>
15940
15941 int
15942 main ()
15943 {
15944 static krb5_ticket ac_aggr;
15945 if (ac_aggr.enc_part2)
15946 return 0;
15947   ;
15948   return 0;
15949 }
15950 _ACEOF
15951 rm -f conftest.$ac_objext
15952 if { (ac_try="$ac_compile"
15953 case "(($ac_try" in
15954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955   *) ac_try_echo=$ac_try;;
15956 esac
15957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15958   (eval "$ac_compile") 2>conftest.er1
15959   ac_status=$?
15960   grep -v '^ *+' conftest.er1 >conftest.err
15961   rm -f conftest.er1
15962   cat conftest.err >&5
15963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964   (exit $ac_status); } && {
15965          test -z "$ac_c_werror_flag" ||
15966          test ! -s conftest.err
15967        } && test -s conftest.$ac_objext; then
15968   ac_cv_member_krb5_ticket_enc_part2=yes
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973         cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979 #include <krb5.h>
15980
15981 int
15982 main ()
15983 {
15984 static krb5_ticket ac_aggr;
15985 if (sizeof ac_aggr.enc_part2)
15986 return 0;
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 rm -f conftest.$ac_objext
15992 if { (ac_try="$ac_compile"
15993 case "(($ac_try" in
15994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995   *) ac_try_echo=$ac_try;;
15996 esac
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998   (eval "$ac_compile") 2>conftest.er1
15999   ac_status=$?
16000   grep -v '^ *+' conftest.er1 >conftest.err
16001   rm -f conftest.er1
16002   cat conftest.err >&5
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); } && {
16005          test -z "$ac_c_werror_flag" ||
16006          test ! -s conftest.err
16007        } && test -s conftest.$ac_objext; then
16008   ac_cv_member_krb5_ticket_enc_part2=yes
16009 else
16010   echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013         ac_cv_member_krb5_ticket_enc_part2=no
16014 fi
16015
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 fi
16018
16019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16020 fi
16021 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
16022 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
16023 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
16024
16025 cat >>confdefs.h <<_ACEOF
16026 #define HAVE_KRB5_TICKET_ENC_PART2 1
16027 _ACEOF
16028
16029
16030 else
16031   { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
16032 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
16033 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   cat >conftest.$ac_ext <<_ACEOF
16037 /* confdefs.h.  */
16038 _ACEOF
16039 cat confdefs.h >>conftest.$ac_ext
16040 cat >>conftest.$ac_ext <<_ACEOF
16041 /* end confdefs.h.  */
16042 #include <krb5.h>
16043
16044 int
16045 main ()
16046 {
16047 static krb5_ticket ac_aggr;
16048 if (ac_aggr.client)
16049 return 0;
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058   *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061   (eval "$ac_compile") 2>conftest.er1
16062   ac_status=$?
16063   grep -v '^ *+' conftest.er1 >conftest.err
16064   rm -f conftest.er1
16065   cat conftest.err >&5
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); } && {
16068          test -z "$ac_c_werror_flag" ||
16069          test ! -s conftest.err
16070        } && test -s conftest.$ac_objext; then
16071   ac_cv_member_krb5_ticket_client=yes
16072 else
16073   echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16075
16076         cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082 #include <krb5.h>
16083
16084 int
16085 main ()
16086 {
16087 static krb5_ticket ac_aggr;
16088 if (sizeof ac_aggr.client)
16089 return 0;
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext
16095 if { (ac_try="$ac_compile"
16096 case "(($ac_try" in
16097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16098   *) ac_try_echo=$ac_try;;
16099 esac
16100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16101   (eval "$ac_compile") 2>conftest.er1
16102   ac_status=$?
16103   grep -v '^ *+' conftest.er1 >conftest.err
16104   rm -f conftest.er1
16105   cat conftest.err >&5
16106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107   (exit $ac_status); } && {
16108          test -z "$ac_c_werror_flag" ||
16109          test ! -s conftest.err
16110        } && test -s conftest.$ac_objext; then
16111   ac_cv_member_krb5_ticket_client=yes
16112 else
16113   echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.$ac_ext >&5
16115
16116         ac_cv_member_krb5_ticket_client=no
16117 fi
16118
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 fi
16121
16122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16123 fi
16124 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
16125 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
16126 if test $ac_cv_member_krb5_ticket_client = yes; then
16127
16128 cat >>confdefs.h <<_ACEOF
16129 #define HAVE_KRB5_TICKET_CLIENT 1
16130 _ACEOF
16131
16132
16133 else
16134   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
16135 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
16136    { (exit 1); exit 1; }; }
16137 fi
16138
16139 fi
16140
16141   { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
16142 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
16143 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
16144   echo $ECHO_N "(cached) $ECHO_C" >&6
16145 else
16146   cat >conftest.$ac_ext <<_ACEOF
16147 /* confdefs.h.  */
16148 _ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h.  */
16152 #include <krb5.h>
16153
16154 int
16155 main ()
16156 {
16157 static krb5_error ac_aggr;
16158 if (ac_aggr.text.data)
16159 return 0;
16160   ;
16161   return 0;
16162 }
16163 _ACEOF
16164 rm -f conftest.$ac_objext
16165 if { (ac_try="$ac_compile"
16166 case "(($ac_try" in
16167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16168   *) ac_try_echo=$ac_try;;
16169 esac
16170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16171   (eval "$ac_compile") 2>conftest.er1
16172   ac_status=$?
16173   grep -v '^ *+' conftest.er1 >conftest.err
16174   rm -f conftest.er1
16175   cat conftest.err >&5
16176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177   (exit $ac_status); } && {
16178          test -z "$ac_c_werror_flag" ||
16179          test ! -s conftest.err
16180        } && test -s conftest.$ac_objext; then
16181   ac_cv_member_krb5_error_text_data=yes
16182 else
16183   echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
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 #include <krb5.h>
16193
16194 int
16195 main ()
16196 {
16197 static krb5_error ac_aggr;
16198 if (sizeof ac_aggr.text.data)
16199 return 0;
16200   ;
16201   return 0;
16202 }
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208   *) ac_try_echo=$ac_try;;
16209 esac
16210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16211   (eval "$ac_compile") 2>conftest.er1
16212   ac_status=$?
16213   grep -v '^ *+' conftest.er1 >conftest.err
16214   rm -f conftest.er1
16215   cat conftest.err >&5
16216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16217   (exit $ac_status); } && {
16218          test -z "$ac_c_werror_flag" ||
16219          test ! -s conftest.err
16220        } && test -s conftest.$ac_objext; then
16221   ac_cv_member_krb5_error_text_data=yes
16222 else
16223   echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16225
16226         ac_cv_member_krb5_error_text_data=no
16227 fi
16228
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230 fi
16231
16232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16233 fi
16234 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
16235 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
16236 if test $ac_cv_member_krb5_error_text_data = yes; then
16237
16238 cat >>confdefs.h <<_ACEOF
16239 #define HAVE_KRB5_ERROR_TEXT_DATA 1
16240 _ACEOF
16241
16242
16243 else
16244   { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
16245 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
16246 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
16247   echo $ECHO_N "(cached) $ECHO_C" >&6
16248 else
16249   cat >conftest.$ac_ext <<_ACEOF
16250 /* confdefs.h.  */
16251 _ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h.  */
16255 #include <krb5.h>
16256
16257 int
16258 main ()
16259 {
16260 static krb5_error ac_aggr;
16261 if (ac_aggr.e_data)
16262 return 0;
16263   ;
16264   return 0;
16265 }
16266 _ACEOF
16267 rm -f conftest.$ac_objext
16268 if { (ac_try="$ac_compile"
16269 case "(($ac_try" in
16270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16271   *) ac_try_echo=$ac_try;;
16272 esac
16273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16274   (eval "$ac_compile") 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } && {
16281          test -z "$ac_c_werror_flag" ||
16282          test ! -s conftest.err
16283        } && test -s conftest.$ac_objext; then
16284   ac_cv_member_krb5_error_e_data=yes
16285 else
16286   echo "$as_me: failed program was:" >&5
16287 sed 's/^/| /' conftest.$ac_ext >&5
16288
16289         cat >conftest.$ac_ext <<_ACEOF
16290 /* confdefs.h.  */
16291 _ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h.  */
16295 #include <krb5.h>
16296
16297 int
16298 main ()
16299 {
16300 static krb5_error ac_aggr;
16301 if (sizeof ac_aggr.e_data)
16302 return 0;
16303   ;
16304   return 0;
16305 }
16306 _ACEOF
16307 rm -f conftest.$ac_objext
16308 if { (ac_try="$ac_compile"
16309 case "(($ac_try" in
16310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311   *) ac_try_echo=$ac_try;;
16312 esac
16313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16314   (eval "$ac_compile") 2>conftest.er1
16315   ac_status=$?
16316   grep -v '^ *+' conftest.er1 >conftest.err
16317   rm -f conftest.er1
16318   cat conftest.err >&5
16319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320   (exit $ac_status); } && {
16321          test -z "$ac_c_werror_flag" ||
16322          test ! -s conftest.err
16323        } && test -s conftest.$ac_objext; then
16324   ac_cv_member_krb5_error_e_data=yes
16325 else
16326   echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16328
16329         ac_cv_member_krb5_error_e_data=no
16330 fi
16331
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 fi
16334
16335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16336 fi
16337 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
16338 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
16339 if test $ac_cv_member_krb5_error_e_data = yes; then
16340
16341 cat >>confdefs.h <<_ACEOF
16342 #define HAVE_KRB5_ERROR_E_DATA 1
16343 _ACEOF
16344
16345
16346 else
16347   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
16348 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
16349    { (exit 1); exit 1; }; }
16350 fi
16351
16352 fi
16353
16354
16355 # Win32 requires headers to be loaded for __stdcall, so can't use
16356 # AC_CHECK_FUNCS here.
16357   { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
16358 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
16359   cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 #include <krb5.h>
16366 int
16367 main ()
16368 {
16369 krb5_free_unparsed_name(NULL,NULL);
16370   ;
16371   return 0;
16372 }
16373 _ACEOF
16374 rm -f conftest.$ac_objext conftest$ac_exeext
16375 if { (ac_try="$ac_link"
16376 case "(($ac_try" in
16377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378   *) ac_try_echo=$ac_try;;
16379 esac
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381   (eval "$ac_link") 2>conftest.er1
16382   ac_status=$?
16383   grep -v '^ *+' conftest.er1 >conftest.err
16384   rm -f conftest.er1
16385   cat conftest.err >&5
16386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387   (exit $ac_status); } && {
16388          test -z "$ac_c_werror_flag" ||
16389          test ! -s conftest.err
16390        } && test -s conftest$ac_exeext &&
16391        $as_test_x conftest$ac_exeext; then
16392
16393 cat >>confdefs.h <<\_ACEOF
16394 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
16395 _ACEOF
16396
16397 { echo "$as_me:$LINENO: result: yes" >&5
16398 echo "${ECHO_T}yes" >&6; }
16399 else
16400   echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16402
16403         { echo "$as_me:$LINENO: result: no" >&5
16404 echo "${ECHO_T}no" >&6; }
16405 fi
16406
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408       conftest$ac_exeext conftest.$ac_ext
16409 fi
16410
16411
16412 ##
16413 ## Functions, global variables
16414 ##
16415
16416 { echo "$as_me:$LINENO: checking for int timezone" >&5
16417 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
16418 if test "${pgac_cv_var_int_timezone+set}" = set; then
16419   echo $ECHO_N "(cached) $ECHO_C" >&6
16420 else
16421   cat >conftest.$ac_ext <<_ACEOF
16422 /* confdefs.h.  */
16423 _ACEOF
16424 cat confdefs.h >>conftest.$ac_ext
16425 cat >>conftest.$ac_ext <<_ACEOF
16426 /* end confdefs.h.  */
16427 #include <time.h>
16428 int res;
16429 int
16430 main ()
16431 {
16432 #ifndef __CYGWIN__
16433 res = timezone / 60;
16434 #else
16435 res = _timezone / 60;
16436 #endif
16437   ;
16438   return 0;
16439 }
16440 _ACEOF
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (ac_try="$ac_link"
16443 case "(($ac_try" in
16444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16445   *) ac_try_echo=$ac_try;;
16446 esac
16447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16448   (eval "$ac_link") 2>conftest.er1
16449   ac_status=$?
16450   grep -v '^ *+' conftest.er1 >conftest.err
16451   rm -f conftest.er1
16452   cat conftest.err >&5
16453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454   (exit $ac_status); } && {
16455          test -z "$ac_c_werror_flag" ||
16456          test ! -s conftest.err
16457        } && test -s conftest$ac_exeext &&
16458        $as_test_x conftest$ac_exeext; then
16459   pgac_cv_var_int_timezone=yes
16460 else
16461   echo "$as_me: failed program was:" >&5
16462 sed 's/^/| /' conftest.$ac_ext >&5
16463
16464         pgac_cv_var_int_timezone=no
16465 fi
16466
16467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16468       conftest$ac_exeext conftest.$ac_ext
16469 fi
16470 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
16471 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
16472 if test x"$pgac_cv_var_int_timezone" = xyes ; then
16473
16474 cat >>confdefs.h <<\_ACEOF
16475 #define HAVE_INT_TIMEZONE
16476 _ACEOF
16477
16478 fi
16479 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
16480 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
16481  if test "${ac_cv_func_accept_return+set}" = set; then
16482   echo $ECHO_N "(cached) $ECHO_C" >&6
16483 else
16484    if test "${ac_cv_func_accept_arg1+set}" = set; then
16485   echo $ECHO_N "(cached) $ECHO_C" >&6
16486 else
16487     if test "${ac_cv_func_accept_arg2+set}" = set; then
16488   echo $ECHO_N "(cached) $ECHO_C" >&6
16489 else
16490      if test "${ac_cv_func_accept_arg3+set}" = set; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
16494       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
16495        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
16496         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
16497          cat >conftest.$ac_ext <<_ACEOF
16498 /* confdefs.h.  */
16499 _ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h.  */
16503 #ifdef HAVE_SYS_TYPES_H
16504 #include <sys/types.h>
16505 #endif
16506 #ifdef HAVE_SYS_SOCKET_H
16507 #include <sys/socket.h>
16508 #endif
16509 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
16510 int
16511 main ()
16512 {
16513
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext
16519 if { (ac_try="$ac_compile"
16520 case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525   (eval "$ac_compile") 2>conftest.er1
16526   ac_status=$?
16527   grep -v '^ *+' conftest.er1 >conftest.err
16528   rm -f conftest.er1
16529   cat conftest.err >&5
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); } && {
16532          test -z "$ac_c_werror_flag" ||
16533          test ! -s conftest.err
16534        } && test -s conftest.$ac_objext; then
16535   ac_not_found=no; break 4
16536 else
16537   echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16539
16540         ac_not_found=yes
16541 fi
16542
16543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16544        done
16545       done
16546      done
16547     done
16548     if test "$ac_not_found" = yes; then
16549       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
16550 echo "$as_me: error: could not determine argument types" >&2;}
16551    { (exit 1); exit 1; }; }
16552     fi
16553     if test "$ac_cv_func_accept_arg3" = "void"; then
16554       ac_cv_func_accept_arg3=int
16555     fi
16556
16557 fi
16558
16559 fi
16560
16561 fi
16562
16563 fi
16564  { echo "$as_me:$LINENO: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
16565 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
16566
16567 cat >>confdefs.h <<_ACEOF
16568 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
16569 _ACEOF
16570
16571
16572 cat >>confdefs.h <<_ACEOF
16573 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
16574 _ACEOF
16575
16576
16577 cat >>confdefs.h <<_ACEOF
16578 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
16579 _ACEOF
16580
16581
16582 cat >>confdefs.h <<_ACEOF
16583 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
16584 _ACEOF
16585
16586
16587 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
16588 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
16589 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
16590   echo $ECHO_N "(cached) $ECHO_C" >&6
16591 else
16592   cat >conftest.$ac_ext <<_ACEOF
16593 /* confdefs.h.  */
16594 _ACEOF
16595 cat confdefs.h >>conftest.$ac_ext
16596 cat >>conftest.$ac_ext <<_ACEOF
16597 /* end confdefs.h.  */
16598 #include <sys/time.h>
16599 int
16600 main ()
16601 {
16602 struct timeval *tp;
16603 struct timezone *tzp;
16604 gettimeofday(tp,tzp);
16605   ;
16606   return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext
16610 if { (ac_try="$ac_compile"
16611 case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_compile") 2>conftest.er1
16617   ac_status=$?
16618   grep -v '^ *+' conftest.er1 >conftest.err
16619   rm -f conftest.er1
16620   cat conftest.err >&5
16621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622   (exit $ac_status); } && {
16623          test -z "$ac_c_werror_flag" ||
16624          test ! -s conftest.err
16625        } && test -s conftest.$ac_objext; then
16626   pgac_cv_func_gettimeofday_1arg=no
16627 else
16628   echo "$as_me: failed program was:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16630
16631         pgac_cv_func_gettimeofday_1arg=yes
16632 fi
16633
16634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16635 fi
16636 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
16637 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
16638 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
16639
16640 cat >>confdefs.h <<\_ACEOF
16641 #define GETTIMEOFDAY_1ARG
16642 _ACEOF
16643
16644 fi
16645
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669 for ac_func in cbrt dlopen fcvt fdatasync getpeereid getpeerucred getrlimit memmove poll pstat readlink setproctitle setsid sigprocmask symlink sysconf towlower utime utimes waitpid wcstombs
16670 do
16671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h.  */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h.  */
16683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16685 #define $ac_func innocuous_$ac_func
16686
16687 /* System header to define __stub macros and hopefully few prototypes,
16688     which can conflict with char $ac_func (); below.
16689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16690     <limits.h> exists even on freestanding compilers.  */
16691
16692 #ifdef __STDC__
16693 # include <limits.h>
16694 #else
16695 # include <assert.h>
16696 #endif
16697
16698 #undef $ac_func
16699
16700 /* Override any GCC internal prototype to avoid an error.
16701    Use char because int might match the return type of a GCC
16702    builtin and then its argument prototype would still apply.  */
16703 #ifdef __cplusplus
16704 extern "C"
16705 #endif
16706 char $ac_func ();
16707 /* The GNU C library defines this for functions which it implements
16708     to always fail with ENOSYS.  Some functions are actually named
16709     something starting with __ and the normal name is an alias.  */
16710 #if defined __stub_$ac_func || defined __stub___$ac_func
16711 choke me
16712 #endif
16713
16714 int
16715 main ()
16716 {
16717 return $ac_func ();
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729   (eval "$ac_link") 2>conftest.er1
16730   ac_status=$?
16731   grep -v '^ *+' conftest.er1 >conftest.err
16732   rm -f conftest.er1
16733   cat conftest.err >&5
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } && {
16736          test -z "$ac_c_werror_flag" ||
16737          test ! -s conftest.err
16738        } && test -s conftest$ac_exeext &&
16739        $as_test_x conftest$ac_exeext; then
16740   eval "$as_ac_var=yes"
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745         eval "$as_ac_var=no"
16746 fi
16747
16748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749       conftest$ac_exeext conftest.$ac_ext
16750 fi
16751 ac_res=`eval echo '${'$as_ac_var'}'`
16752                { echo "$as_me:$LINENO: result: $ac_res" >&5
16753 echo "${ECHO_T}$ac_res" >&6; }
16754 if test `eval echo '${'$as_ac_var'}'` = yes; then
16755   cat >>confdefs.h <<_ACEOF
16756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16757 _ACEOF
16758
16759 fi
16760 done
16761
16762
16763 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
16764 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
16765 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
16766   echo $ECHO_N "(cached) $ECHO_C" >&6
16767 else
16768   cat >conftest.$ac_ext <<_ACEOF
16769 /* confdefs.h.  */
16770 _ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h.  */
16774 #include <unistd.h>
16775
16776 int
16777 main ()
16778 {
16779 #ifndef fdatasync
16780   (void) fdatasync;
16781 #endif
16782
16783   ;
16784   return 0;
16785 }
16786 _ACEOF
16787 rm -f conftest.$ac_objext
16788 if { (ac_try="$ac_compile"
16789 case "(($ac_try" in
16790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791   *) ac_try_echo=$ac_try;;
16792 esac
16793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16794   (eval "$ac_compile") 2>conftest.er1
16795   ac_status=$?
16796   grep -v '^ *+' conftest.er1 >conftest.err
16797   rm -f conftest.er1
16798   cat conftest.err >&5
16799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800   (exit $ac_status); } && {
16801          test -z "$ac_c_werror_flag" ||
16802          test ! -s conftest.err
16803        } && test -s conftest.$ac_objext; then
16804   ac_cv_have_decl_fdatasync=yes
16805 else
16806   echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16808
16809         ac_cv_have_decl_fdatasync=no
16810 fi
16811
16812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16813 fi
16814 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
16815 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
16816 if test $ac_cv_have_decl_fdatasync = yes; then
16817
16818 cat >>confdefs.h <<_ACEOF
16819 #define HAVE_DECL_FDATASYNC 1
16820 _ACEOF
16821
16822
16823 else
16824   cat >>confdefs.h <<_ACEOF
16825 #define HAVE_DECL_FDATASYNC 0
16826 _ACEOF
16827
16828
16829 fi
16830
16831
16832 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
16833 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
16834 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
16835   echo $ECHO_N "(cached) $ECHO_C" >&6
16836 else
16837   cat >conftest.$ac_ext <<_ACEOF
16838 /* confdefs.h.  */
16839 _ACEOF
16840 cat confdefs.h >>conftest.$ac_ext
16841 cat >>conftest.$ac_ext <<_ACEOF
16842 /* end confdefs.h.  */
16843 #include <fcntl.h>
16844
16845 int
16846 main ()
16847 {
16848 #ifndef posix_fadvise
16849   (void) posix_fadvise;
16850 #endif
16851
16852   ;
16853   return 0;
16854 }
16855 _ACEOF
16856 rm -f conftest.$ac_objext
16857 if { (ac_try="$ac_compile"
16858 case "(($ac_try" in
16859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860   *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863   (eval "$ac_compile") 2>conftest.er1
16864   ac_status=$?
16865   grep -v '^ *+' conftest.er1 >conftest.err
16866   rm -f conftest.er1
16867   cat conftest.err >&5
16868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869   (exit $ac_status); } && {
16870          test -z "$ac_c_werror_flag" ||
16871          test ! -s conftest.err
16872        } && test -s conftest.$ac_objext; then
16873   ac_cv_have_decl_posix_fadvise=yes
16874 else
16875   echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16877
16878         ac_cv_have_decl_posix_fadvise=no
16879 fi
16880
16881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16882 fi
16883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16884 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16885 if test $ac_cv_have_decl_posix_fadvise = yes; then
16886
16887 cat >>confdefs.h <<_ACEOF
16888 #define HAVE_DECL_POSIX_FADVISE 1
16889 _ACEOF
16890
16891
16892 else
16893   cat >>confdefs.h <<_ACEOF
16894 #define HAVE_DECL_POSIX_FADVISE 0
16895 _ACEOF
16896
16897
16898 fi
16899
16900
16901 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16902 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16903 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16904   echo $ECHO_N "(cached) $ECHO_C" >&6
16905 else
16906   cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h.  */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h.  */
16912 $ac_includes_default
16913 int
16914 main ()
16915 {
16916 #ifndef strlcat
16917   (void) strlcat;
16918 #endif
16919
16920   ;
16921   return 0;
16922 }
16923 _ACEOF
16924 rm -f conftest.$ac_objext
16925 if { (ac_try="$ac_compile"
16926 case "(($ac_try" in
16927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16928   *) ac_try_echo=$ac_try;;
16929 esac
16930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16931   (eval "$ac_compile") 2>conftest.er1
16932   ac_status=$?
16933   grep -v '^ *+' conftest.er1 >conftest.err
16934   rm -f conftest.er1
16935   cat conftest.err >&5
16936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937   (exit $ac_status); } && {
16938          test -z "$ac_c_werror_flag" ||
16939          test ! -s conftest.err
16940        } && test -s conftest.$ac_objext; then
16941   ac_cv_have_decl_strlcat=yes
16942 else
16943   echo "$as_me: failed program was:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16945
16946         ac_cv_have_decl_strlcat=no
16947 fi
16948
16949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 fi
16951 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16952 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16953 if test $ac_cv_have_decl_strlcat = yes; then
16954
16955 cat >>confdefs.h <<_ACEOF
16956 #define HAVE_DECL_STRLCAT 1
16957 _ACEOF
16958
16959
16960 else
16961   cat >>confdefs.h <<_ACEOF
16962 #define HAVE_DECL_STRLCAT 0
16963 _ACEOF
16964
16965
16966 fi
16967 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16968 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16969 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16970   echo $ECHO_N "(cached) $ECHO_C" >&6
16971 else
16972   cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h.  */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h.  */
16978 $ac_includes_default
16979 int
16980 main ()
16981 {
16982 #ifndef strlcpy
16983   (void) strlcpy;
16984 #endif
16985
16986   ;
16987   return 0;
16988 }
16989 _ACEOF
16990 rm -f conftest.$ac_objext
16991 if { (ac_try="$ac_compile"
16992 case "(($ac_try" in
16993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16994   *) ac_try_echo=$ac_try;;
16995 esac
16996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16997   (eval "$ac_compile") 2>conftest.er1
16998   ac_status=$?
16999   grep -v '^ *+' conftest.er1 >conftest.err
17000   rm -f conftest.er1
17001   cat conftest.err >&5
17002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003   (exit $ac_status); } && {
17004          test -z "$ac_c_werror_flag" ||
17005          test ! -s conftest.err
17006        } && test -s conftest.$ac_objext; then
17007   ac_cv_have_decl_strlcpy=yes
17008 else
17009   echo "$as_me: failed program was:" >&5
17010 sed 's/^/| /' conftest.$ac_ext >&5
17011
17012         ac_cv_have_decl_strlcpy=no
17013 fi
17014
17015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17016 fi
17017 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
17018 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
17019 if test $ac_cv_have_decl_strlcpy = yes; then
17020
17021 cat >>confdefs.h <<_ACEOF
17022 #define HAVE_DECL_STRLCPY 1
17023 _ACEOF
17024
17025
17026 else
17027   cat >>confdefs.h <<_ACEOF
17028 #define HAVE_DECL_STRLCPY 0
17029 _ACEOF
17030
17031
17032 fi
17033
17034
17035 # This is probably only present on Darwin, but may as well check always
17036 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
17037 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
17038 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047 #include <fcntl.h>
17048
17049 int
17050 main ()
17051 {
17052 #ifndef F_FULLFSYNC
17053   (void) F_FULLFSYNC;
17054 #endif
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_compile") 2>conftest.er1
17068   ac_status=$?
17069   grep -v '^ *+' conftest.er1 >conftest.err
17070   rm -f conftest.er1
17071   cat conftest.err >&5
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } && {
17074          test -z "$ac_c_werror_flag" ||
17075          test ! -s conftest.err
17076        } && test -s conftest.$ac_objext; then
17077   ac_cv_have_decl_F_FULLFSYNC=yes
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         ac_cv_have_decl_F_FULLFSYNC=no
17083 fi
17084
17085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17086 fi
17087 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
17088 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
17089 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
17090
17091 cat >>confdefs.h <<_ACEOF
17092 #define HAVE_DECL_F_FULLFSYNC 1
17093 _ACEOF
17094
17095
17096 else
17097   cat >>confdefs.h <<_ACEOF
17098 #define HAVE_DECL_F_FULLFSYNC 0
17099 _ACEOF
17100
17101
17102 fi
17103
17104
17105
17106 HAVE_IPV6=no
17107 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
17108 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
17109 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
17110   echo $ECHO_N "(cached) $ECHO_C" >&6
17111 else
17112   cat >conftest.$ac_ext <<_ACEOF
17113 /* confdefs.h.  */
17114 _ACEOF
17115 cat confdefs.h >>conftest.$ac_ext
17116 cat >>conftest.$ac_ext <<_ACEOF
17117 /* end confdefs.h.  */
17118 $ac_includes_default
17119 #include <netinet/in.h>
17120
17121 typedef struct sockaddr_in6 ac__type_new_;
17122 int
17123 main ()
17124 {
17125 if ((ac__type_new_ *) 0)
17126   return 0;
17127 if (sizeof (ac__type_new_))
17128   return 0;
17129   ;
17130   return 0;
17131 }
17132 _ACEOF
17133 rm -f conftest.$ac_objext
17134 if { (ac_try="$ac_compile"
17135 case "(($ac_try" in
17136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17137   *) ac_try_echo=$ac_try;;
17138 esac
17139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17140   (eval "$ac_compile") 2>conftest.er1
17141   ac_status=$?
17142   grep -v '^ *+' conftest.er1 >conftest.err
17143   rm -f conftest.er1
17144   cat conftest.err >&5
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); } && {
17147          test -z "$ac_c_werror_flag" ||
17148          test ! -s conftest.err
17149        } && test -s conftest.$ac_objext; then
17150   ac_cv_type_struct_sockaddr_in6=yes
17151 else
17152   echo "$as_me: failed program was:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17154
17155         ac_cv_type_struct_sockaddr_in6=no
17156 fi
17157
17158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17159 fi
17160 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
17161 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
17162 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
17163
17164 cat >>confdefs.h <<\_ACEOF
17165 #define HAVE_IPV6 1
17166 _ACEOF
17167
17168          HAVE_IPV6=yes
17169 fi
17170
17171
17172
17173 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
17174 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
17175 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
17176   echo $ECHO_N "(cached) $ECHO_C" >&6
17177 else
17178   cat >conftest.$ac_ext <<_ACEOF
17179 /* confdefs.h.  */
17180 _ACEOF
17181 cat confdefs.h >>conftest.$ac_ext
17182 cat >>conftest.$ac_ext <<_ACEOF
17183 /* end confdefs.h.  */
17184 #include <machine/vmparam.h>
17185 #include <sys/exec.h>
17186
17187 int
17188 main ()
17189 {
17190 PS_STRINGS->ps_nargvstr = 1;
17191 PS_STRINGS->ps_argvstr = "foo";
17192   ;
17193   return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200   *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203   (eval "$ac_link") 2>conftest.er1
17204   ac_status=$?
17205   grep -v '^ *+' conftest.er1 >conftest.err
17206   rm -f conftest.er1
17207   cat conftest.err >&5
17208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209   (exit $ac_status); } && {
17210          test -z "$ac_c_werror_flag" ||
17211          test ! -s conftest.err
17212        } && test -s conftest$ac_exeext &&
17213        $as_test_x conftest$ac_exeext; then
17214   pgac_cv_var_PS_STRINGS=yes
17215 else
17216   echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219         pgac_cv_var_PS_STRINGS=no
17220 fi
17221
17222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17223       conftest$ac_exeext conftest.$ac_ext
17224 fi
17225 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
17226 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
17227 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
17228
17229 cat >>confdefs.h <<\_ACEOF
17230 #define HAVE_PS_STRINGS
17231 _ACEOF
17232
17233 fi
17234
17235
17236 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
17237 # is missing.  Yes, there are machines that have only one.  We may
17238 # also decide to use snprintf.c if snprintf() is present but does not
17239 # have all the features we need --- see below.
17240
17241 if test "$PORTNAME" = "win32"; then
17242   # Win32 gets snprintf.c built unconditionally.
17243   #
17244   # To properly translate all NLS languages strings, we must support the
17245   # *printf() %$ format, which allows *printf() arguments to be selected
17246   # by position in the translated string.
17247   #
17248   # libintl versions < 0.13 use the native *printf() functions, and Win32
17249   # *printf() doesn't understand %$, so we must use our /port versions,
17250   # which do understand %$. libintl versions >= 0.13 include their own
17251   # *printf versions on Win32.  The libintl 0.13 release note text is:
17252   #
17253   #   C format strings with positions, as they arise when a translator
17254   #   needs to reorder a sentence, are now supported on all platforms.
17255   #   On those few platforms (NetBSD and Woe32) for which the native
17256   #   printf()/fprintf()/... functions don't support such format
17257   #   strings, replacements are provided through <libintl.h>.
17258   #
17259   # We could use libintl >= 0.13's *printf() if we were sure that we had
17260   # a litint >= 0.13 at runtime, but seeing that there is no clean way
17261   # to guarantee that, it is best to just use our own, so we are sure to
17262   # get %$ support. In include/port.h we disable the *printf() macros
17263   # that might have been defined by libintl.
17264   #
17265   # We do this unconditionally whether NLS is used or not so we are sure
17266   # that all Win32 libraries and binaries behave the same.
17267   pgac_need_repl_snprintf=yes
17268 else
17269   pgac_need_repl_snprintf=no
17270
17271 for ac_func in snprintf
17272 do
17273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17277   echo $ECHO_N "(cached) $ECHO_C" >&6
17278 else
17279   cat >conftest.$ac_ext <<_ACEOF
17280 /* confdefs.h.  */
17281 _ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h.  */
17285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17287 #define $ac_func innocuous_$ac_func
17288
17289 /* System header to define __stub macros and hopefully few prototypes,
17290     which can conflict with char $ac_func (); below.
17291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17292     <limits.h> exists even on freestanding compilers.  */
17293
17294 #ifdef __STDC__
17295 # include <limits.h>
17296 #else
17297 # include <assert.h>
17298 #endif
17299
17300 #undef $ac_func
17301
17302 /* Override any GCC internal prototype to avoid an error.
17303    Use char because int might match the return type of a GCC
17304    builtin and then its argument prototype would still apply.  */
17305 #ifdef __cplusplus
17306 extern "C"
17307 #endif
17308 char $ac_func ();
17309 /* The GNU C library defines this for functions which it implements
17310     to always fail with ENOSYS.  Some functions are actually named
17311     something starting with __ and the normal name is an alias.  */
17312 #if defined __stub_$ac_func || defined __stub___$ac_func
17313 choke me
17314 #endif
17315
17316 int
17317 main ()
17318 {
17319 return $ac_func ();
17320   ;
17321   return 0;
17322 }
17323 _ACEOF
17324 rm -f conftest.$ac_objext conftest$ac_exeext
17325 if { (ac_try="$ac_link"
17326 case "(($ac_try" in
17327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17328   *) ac_try_echo=$ac_try;;
17329 esac
17330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17331   (eval "$ac_link") 2>conftest.er1
17332   ac_status=$?
17333   grep -v '^ *+' conftest.er1 >conftest.err
17334   rm -f conftest.er1
17335   cat conftest.err >&5
17336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337   (exit $ac_status); } && {
17338          test -z "$ac_c_werror_flag" ||
17339          test ! -s conftest.err
17340        } && test -s conftest$ac_exeext &&
17341        $as_test_x conftest$ac_exeext; then
17342   eval "$as_ac_var=yes"
17343 else
17344   echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17346
17347         eval "$as_ac_var=no"
17348 fi
17349
17350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17351       conftest$ac_exeext conftest.$ac_ext
17352 fi
17353 ac_res=`eval echo '${'$as_ac_var'}'`
17354                { echo "$as_me:$LINENO: result: $ac_res" >&5
17355 echo "${ECHO_T}$ac_res" >&6; }
17356 if test `eval echo '${'$as_ac_var'}'` = yes; then
17357   cat >>confdefs.h <<_ACEOF
17358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17359 _ACEOF
17360
17361 else
17362   pgac_need_repl_snprintf=yes
17363 fi
17364 done
17365
17366
17367 for ac_func in vsnprintf
17368 do
17369 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17372 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17373   echo $ECHO_N "(cached) $ECHO_C" >&6
17374 else
17375   cat >conftest.$ac_ext <<_ACEOF
17376 /* confdefs.h.  */
17377 _ACEOF
17378 cat confdefs.h >>conftest.$ac_ext
17379 cat >>conftest.$ac_ext <<_ACEOF
17380 /* end confdefs.h.  */
17381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17382    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17383 #define $ac_func innocuous_$ac_func
17384
17385 /* System header to define __stub macros and hopefully few prototypes,
17386     which can conflict with char $ac_func (); below.
17387     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17388     <limits.h> exists even on freestanding compilers.  */
17389
17390 #ifdef __STDC__
17391 # include <limits.h>
17392 #else
17393 # include <assert.h>
17394 #endif
17395
17396 #undef $ac_func
17397
17398 /* Override any GCC internal prototype to avoid an error.
17399    Use char because int might match the return type of a GCC
17400    builtin and then its argument prototype would still apply.  */
17401 #ifdef __cplusplus
17402 extern "C"
17403 #endif
17404 char $ac_func ();
17405 /* The GNU C library defines this for functions which it implements
17406     to always fail with ENOSYS.  Some functions are actually named
17407     something starting with __ and the normal name is an alias.  */
17408 #if defined __stub_$ac_func || defined __stub___$ac_func
17409 choke me
17410 #endif
17411
17412 int
17413 main ()
17414 {
17415 return $ac_func ();
17416   ;
17417   return 0;
17418 }
17419 _ACEOF
17420 rm -f conftest.$ac_objext conftest$ac_exeext
17421 if { (ac_try="$ac_link"
17422 case "(($ac_try" in
17423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17424   *) ac_try_echo=$ac_try;;
17425 esac
17426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17427   (eval "$ac_link") 2>conftest.er1
17428   ac_status=$?
17429   grep -v '^ *+' conftest.er1 >conftest.err
17430   rm -f conftest.er1
17431   cat conftest.err >&5
17432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433   (exit $ac_status); } && {
17434          test -z "$ac_c_werror_flag" ||
17435          test ! -s conftest.err
17436        } && test -s conftest$ac_exeext &&
17437        $as_test_x conftest$ac_exeext; then
17438   eval "$as_ac_var=yes"
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         eval "$as_ac_var=no"
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17447       conftest$ac_exeext conftest.$ac_ext
17448 fi
17449 ac_res=`eval echo '${'$as_ac_var'}'`
17450                { echo "$as_me:$LINENO: result: $ac_res" >&5
17451 echo "${ECHO_T}$ac_res" >&6; }
17452 if test `eval echo '${'$as_ac_var'}'` = yes; then
17453   cat >>confdefs.h <<_ACEOF
17454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17455 _ACEOF
17456
17457 else
17458   pgac_need_repl_snprintf=yes
17459 fi
17460 done
17461
17462 fi
17463
17464
17465 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
17466 # include/c.h will provide declarations.  Note this is a separate test
17467 # from whether the functions exist in the C library --- there are
17468 # systems that have the functions but don't bother to declare them :-(
17469
17470 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
17471 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
17472 if test "${ac_cv_have_decl_snprintf+set}" = set; then
17473   echo $ECHO_N "(cached) $ECHO_C" >&6
17474 else
17475   cat >conftest.$ac_ext <<_ACEOF
17476 /* confdefs.h.  */
17477 _ACEOF
17478 cat confdefs.h >>conftest.$ac_ext
17479 cat >>conftest.$ac_ext <<_ACEOF
17480 /* end confdefs.h.  */
17481 $ac_includes_default
17482 int
17483 main ()
17484 {
17485 #ifndef snprintf
17486   (void) snprintf;
17487 #endif
17488
17489   ;
17490   return 0;
17491 }
17492 _ACEOF
17493 rm -f conftest.$ac_objext
17494 if { (ac_try="$ac_compile"
17495 case "(($ac_try" in
17496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497   *) ac_try_echo=$ac_try;;
17498 esac
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500   (eval "$ac_compile") 2>conftest.er1
17501   ac_status=$?
17502   grep -v '^ *+' conftest.er1 >conftest.err
17503   rm -f conftest.er1
17504   cat conftest.err >&5
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } && {
17507          test -z "$ac_c_werror_flag" ||
17508          test ! -s conftest.err
17509        } && test -s conftest.$ac_objext; then
17510   ac_cv_have_decl_snprintf=yes
17511 else
17512   echo "$as_me: failed program was:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17514
17515         ac_cv_have_decl_snprintf=no
17516 fi
17517
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 fi
17520 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
17521 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
17522 if test $ac_cv_have_decl_snprintf = yes; then
17523
17524 cat >>confdefs.h <<_ACEOF
17525 #define HAVE_DECL_SNPRINTF 1
17526 _ACEOF
17527
17528
17529 else
17530   cat >>confdefs.h <<_ACEOF
17531 #define HAVE_DECL_SNPRINTF 0
17532 _ACEOF
17533
17534
17535 fi
17536 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
17537 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
17538 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
17539   echo $ECHO_N "(cached) $ECHO_C" >&6
17540 else
17541   cat >conftest.$ac_ext <<_ACEOF
17542 /* confdefs.h.  */
17543 _ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h.  */
17547 $ac_includes_default
17548 int
17549 main ()
17550 {
17551 #ifndef vsnprintf
17552   (void) vsnprintf;
17553 #endif
17554
17555   ;
17556   return 0;
17557 }
17558 _ACEOF
17559 rm -f conftest.$ac_objext
17560 if { (ac_try="$ac_compile"
17561 case "(($ac_try" in
17562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17563   *) ac_try_echo=$ac_try;;
17564 esac
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566   (eval "$ac_compile") 2>conftest.er1
17567   ac_status=$?
17568   grep -v '^ *+' conftest.er1 >conftest.err
17569   rm -f conftest.er1
17570   cat conftest.err >&5
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); } && {
17573          test -z "$ac_c_werror_flag" ||
17574          test ! -s conftest.err
17575        } && test -s conftest.$ac_objext; then
17576   ac_cv_have_decl_vsnprintf=yes
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581         ac_cv_have_decl_vsnprintf=no
17582 fi
17583
17584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17585 fi
17586 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
17587 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
17588 if test $ac_cv_have_decl_vsnprintf = yes; then
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_DECL_VSNPRINTF 1
17592 _ACEOF
17593
17594
17595 else
17596   cat >>confdefs.h <<_ACEOF
17597 #define HAVE_DECL_VSNPRINTF 0
17598 _ACEOF
17599
17600
17601 fi
17602
17603
17604
17605
17606 { echo "$as_me:$LINENO: checking for isinf" >&5
17607 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
17608 if test "${ac_cv_func_isinf+set}" = set; then
17609   echo $ECHO_N "(cached) $ECHO_C" >&6
17610 else
17611   cat >conftest.$ac_ext <<_ACEOF
17612 /* confdefs.h.  */
17613 _ACEOF
17614 cat confdefs.h >>conftest.$ac_ext
17615 cat >>conftest.$ac_ext <<_ACEOF
17616 /* end confdefs.h.  */
17617
17618 #include <math.h>
17619 double glob_double;
17620
17621 int
17622 main ()
17623 {
17624 return isinf(glob_double) ? 0 : 1;
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 rm -f conftest.$ac_objext conftest$ac_exeext
17630 if { (ac_try="$ac_link"
17631 case "(($ac_try" in
17632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17633   *) ac_try_echo=$ac_try;;
17634 esac
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636   (eval "$ac_link") 2>conftest.er1
17637   ac_status=$?
17638   grep -v '^ *+' conftest.er1 >conftest.err
17639   rm -f conftest.er1
17640   cat conftest.err >&5
17641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642   (exit $ac_status); } && {
17643          test -z "$ac_c_werror_flag" ||
17644          test ! -s conftest.err
17645        } && test -s conftest$ac_exeext &&
17646        $as_test_x conftest$ac_exeext; then
17647   ac_cv_func_isinf=yes
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         ac_cv_func_isinf=no
17653 fi
17654
17655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17656       conftest$ac_exeext conftest.$ac_ext
17657 fi
17658 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
17659 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
17660
17661 if test $ac_cv_func_isinf = yes ; then
17662
17663 cat >>confdefs.h <<\_ACEOF
17664 #define HAVE_ISINF 1
17665 _ACEOF
17666
17667 else
17668   case " $LIBOBJS " in
17669   *" isinf.$ac_objext "* ) ;;
17670   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
17671  ;;
17672 esac
17673
17674   # Look for a way to implement a substitute for isinf()
17675
17676
17677
17678
17679 for ac_func in fpclass fp_class fp_class_d class
17680 do
17681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17685   echo $ECHO_N "(cached) $ECHO_C" >&6
17686 else
17687   cat >conftest.$ac_ext <<_ACEOF
17688 /* confdefs.h.  */
17689 _ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h.  */
17693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17695 #define $ac_func innocuous_$ac_func
17696
17697 /* System header to define __stub macros and hopefully few prototypes,
17698     which can conflict with char $ac_func (); below.
17699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17700     <limits.h> exists even on freestanding compilers.  */
17701
17702 #ifdef __STDC__
17703 # include <limits.h>
17704 #else
17705 # include <assert.h>
17706 #endif
17707
17708 #undef $ac_func
17709
17710 /* Override any GCC internal prototype to avoid an error.
17711    Use char because int might match the return type of a GCC
17712    builtin and then its argument prototype would still apply.  */
17713 #ifdef __cplusplus
17714 extern "C"
17715 #endif
17716 char $ac_func ();
17717 /* The GNU C library defines this for functions which it implements
17718     to always fail with ENOSYS.  Some functions are actually named
17719     something starting with __ and the normal name is an alias.  */
17720 #if defined __stub_$ac_func || defined __stub___$ac_func
17721 choke me
17722 #endif
17723
17724 int
17725 main ()
17726 {
17727 return $ac_func ();
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (ac_try="$ac_link"
17734 case "(($ac_try" in
17735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17736   *) ac_try_echo=$ac_try;;
17737 esac
17738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17739   (eval "$ac_link") 2>conftest.er1
17740   ac_status=$?
17741   grep -v '^ *+' conftest.er1 >conftest.err
17742   rm -f conftest.er1
17743   cat conftest.err >&5
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); } && {
17746          test -z "$ac_c_werror_flag" ||
17747          test ! -s conftest.err
17748        } && test -s conftest$ac_exeext &&
17749        $as_test_x conftest$ac_exeext; then
17750   eval "$as_ac_var=yes"
17751 else
17752   echo "$as_me: failed program was:" >&5
17753 sed 's/^/| /' conftest.$ac_ext >&5
17754
17755         eval "$as_ac_var=no"
17756 fi
17757
17758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17759       conftest$ac_exeext conftest.$ac_ext
17760 fi
17761 ac_res=`eval echo '${'$as_ac_var'}'`
17762                { echo "$as_me:$LINENO: result: $ac_res" >&5
17763 echo "${ECHO_T}$ac_res" >&6; }
17764 if test `eval echo '${'$as_ac_var'}'` = yes; then
17765   cat >>confdefs.h <<_ACEOF
17766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17767 _ACEOF
17768  break
17769 fi
17770 done
17771
17772 fi
17773
17774 # Some versions of libedit contain strlcpy(); so disregard that library while
17775 # checking for these standard libc functions.
17776 pgac_save_LIBS="$LIBS"
17777 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
17794 do
17795 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17796 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17798 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17799   echo $ECHO_N "(cached) $ECHO_C" >&6
17800 else
17801   cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h.  */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h.  */
17807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17808    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17809 #define $ac_func innocuous_$ac_func
17810
17811 /* System header to define __stub macros and hopefully few prototypes,
17812     which can conflict with char $ac_func (); below.
17813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17814     <limits.h> exists even on freestanding compilers.  */
17815
17816 #ifdef __STDC__
17817 # include <limits.h>
17818 #else
17819 # include <assert.h>
17820 #endif
17821
17822 #undef $ac_func
17823
17824 /* Override any GCC internal prototype to avoid an error.
17825    Use char because int might match the return type of a GCC
17826    builtin and then its argument prototype would still apply.  */
17827 #ifdef __cplusplus
17828 extern "C"
17829 #endif
17830 char $ac_func ();
17831 /* The GNU C library defines this for functions which it implements
17832     to always fail with ENOSYS.  Some functions are actually named
17833     something starting with __ and the normal name is an alias.  */
17834 #if defined __stub_$ac_func || defined __stub___$ac_func
17835 choke me
17836 #endif
17837
17838 int
17839 main ()
17840 {
17841 return $ac_func ();
17842   ;
17843   return 0;
17844 }
17845 _ACEOF
17846 rm -f conftest.$ac_objext conftest$ac_exeext
17847 if { (ac_try="$ac_link"
17848 case "(($ac_try" in
17849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17850   *) ac_try_echo=$ac_try;;
17851 esac
17852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17853   (eval "$ac_link") 2>conftest.er1
17854   ac_status=$?
17855   grep -v '^ *+' conftest.er1 >conftest.err
17856   rm -f conftest.er1
17857   cat conftest.err >&5
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); } && {
17860          test -z "$ac_c_werror_flag" ||
17861          test ! -s conftest.err
17862        } && test -s conftest$ac_exeext &&
17863        $as_test_x conftest$ac_exeext; then
17864   eval "$as_ac_var=yes"
17865 else
17866   echo "$as_me: failed program was:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17868
17869         eval "$as_ac_var=no"
17870 fi
17871
17872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17873       conftest$ac_exeext conftest.$ac_ext
17874 fi
17875 ac_res=`eval echo '${'$as_ac_var'}'`
17876                { echo "$as_me:$LINENO: result: $ac_res" >&5
17877 echo "${ECHO_T}$ac_res" >&6; }
17878 if test `eval echo '${'$as_ac_var'}'` = yes; then
17879   cat >>confdefs.h <<_ACEOF
17880 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17881 _ACEOF
17882
17883 else
17884   case " $LIBOBJS " in
17885   *" $ac_func.$ac_objext "* ) ;;
17886   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17887  ;;
17888 esac
17889
17890 fi
17891 done
17892
17893
17894
17895 LIBS="$pgac_save_LIBS"
17896
17897 # System's version of getaddrinfo(), if any, may be used only if we found
17898 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17899 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17900 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
17901 # because we want to use our own getaddrinfo.c on Windows anyway.)
17902 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17903
17904 for ac_func in getaddrinfo
17905 do
17906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17907 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17909 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17910   echo $ECHO_N "(cached) $ECHO_C" >&6
17911 else
17912   cat >conftest.$ac_ext <<_ACEOF
17913 /* confdefs.h.  */
17914 _ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h.  */
17918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17919    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17920 #define $ac_func innocuous_$ac_func
17921
17922 /* System header to define __stub macros and hopefully few prototypes,
17923     which can conflict with char $ac_func (); below.
17924     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17925     <limits.h> exists even on freestanding compilers.  */
17926
17927 #ifdef __STDC__
17928 # include <limits.h>
17929 #else
17930 # include <assert.h>
17931 #endif
17932
17933 #undef $ac_func
17934
17935 /* Override any GCC internal prototype to avoid an error.
17936    Use char because int might match the return type of a GCC
17937    builtin and then its argument prototype would still apply.  */
17938 #ifdef __cplusplus
17939 extern "C"
17940 #endif
17941 char $ac_func ();
17942 /* The GNU C library defines this for functions which it implements
17943     to always fail with ENOSYS.  Some functions are actually named
17944     something starting with __ and the normal name is an alias.  */
17945 #if defined __stub_$ac_func || defined __stub___$ac_func
17946 choke me
17947 #endif
17948
17949 int
17950 main ()
17951 {
17952 return $ac_func ();
17953   ;
17954   return 0;
17955 }
17956 _ACEOF
17957 rm -f conftest.$ac_objext conftest$ac_exeext
17958 if { (ac_try="$ac_link"
17959 case "(($ac_try" in
17960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961   *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964   (eval "$ac_link") 2>conftest.er1
17965   ac_status=$?
17966   grep -v '^ *+' conftest.er1 >conftest.err
17967   rm -f conftest.er1
17968   cat conftest.err >&5
17969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970   (exit $ac_status); } && {
17971          test -z "$ac_c_werror_flag" ||
17972          test ! -s conftest.err
17973        } && test -s conftest$ac_exeext &&
17974        $as_test_x conftest$ac_exeext; then
17975   eval "$as_ac_var=yes"
17976 else
17977   echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980         eval "$as_ac_var=no"
17981 fi
17982
17983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17984       conftest$ac_exeext conftest.$ac_ext
17985 fi
17986 ac_res=`eval echo '${'$as_ac_var'}'`
17987                { echo "$as_me:$LINENO: result: $ac_res" >&5
17988 echo "${ECHO_T}$ac_res" >&6; }
17989 if test `eval echo '${'$as_ac_var'}'` = yes; then
17990   cat >>confdefs.h <<_ACEOF
17991 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992 _ACEOF
17993
17994 else
17995   case " $LIBOBJS " in
17996   *" $ac_func.$ac_objext "* ) ;;
17997   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17998  ;;
17999 esac
18000
18001 fi
18002 done
18003
18004
18005 else
18006   case " $LIBOBJS " in
18007   *" getaddrinfo.$ac_objext "* ) ;;
18008   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
18009  ;;
18010 esac
18011
18012 fi
18013
18014 # Similarly, use system's getopt_long() only if system provides struct option.
18015 # Solaris' getopt() doesn't do what we want for long options, so always use
18016 # our versions on that platform.
18017 if test "$PORTNAME" = "solaris"; then
18018   case " $LIBOBJS " in
18019   *" getopt.$ac_objext "* ) ;;
18020   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
18021  ;;
18022 esac
18023
18024   case " $LIBOBJS " in
18025   *" getopt_long.$ac_objext "* ) ;;
18026   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
18027  ;;
18028 esac
18029
18030 elif test x"$ac_cv_type_struct_option" = xyes ; then
18031
18032 for ac_func in getopt_long
18033 do
18034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18038   echo $ECHO_N "(cached) $ECHO_C" >&6
18039 else
18040   cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18048 #define $ac_func innocuous_$ac_func
18049
18050 /* System header to define __stub macros and hopefully few prototypes,
18051     which can conflict with char $ac_func (); below.
18052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18053     <limits.h> exists even on freestanding compilers.  */
18054
18055 #ifdef __STDC__
18056 # include <limits.h>
18057 #else
18058 # include <assert.h>
18059 #endif
18060
18061 #undef $ac_func
18062
18063 /* Override any GCC internal prototype to avoid an error.
18064    Use char because int might match the return type of a GCC
18065    builtin and then its argument prototype would still apply.  */
18066 #ifdef __cplusplus
18067 extern "C"
18068 #endif
18069 char $ac_func ();
18070 /* The GNU C library defines this for functions which it implements
18071     to always fail with ENOSYS.  Some functions are actually named
18072     something starting with __ and the normal name is an alias.  */
18073 #if defined __stub_$ac_func || defined __stub___$ac_func
18074 choke me
18075 #endif
18076
18077 int
18078 main ()
18079 {
18080 return $ac_func ();
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (ac_try="$ac_link"
18087 case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_link") 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } && {
18099          test -z "$ac_c_werror_flag" ||
18100          test ! -s conftest.err
18101        } && test -s conftest$ac_exeext &&
18102        $as_test_x conftest$ac_exeext; then
18103   eval "$as_ac_var=yes"
18104 else
18105   echo "$as_me: failed program was:" >&5
18106 sed 's/^/| /' conftest.$ac_ext >&5
18107
18108         eval "$as_ac_var=no"
18109 fi
18110
18111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18112       conftest$ac_exeext conftest.$ac_ext
18113 fi
18114 ac_res=`eval echo '${'$as_ac_var'}'`
18115                { echo "$as_me:$LINENO: result: $ac_res" >&5
18116 echo "${ECHO_T}$ac_res" >&6; }
18117 if test `eval echo '${'$as_ac_var'}'` = yes; then
18118   cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18120 _ACEOF
18121
18122 else
18123   case " $LIBOBJS " in
18124   *" $ac_func.$ac_objext "* ) ;;
18125   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18126  ;;
18127 esac
18128
18129 fi
18130 done
18131
18132
18133 else
18134   case " $LIBOBJS " in
18135   *" getopt_long.$ac_objext "* ) ;;
18136   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
18137  ;;
18138 esac
18139
18140 fi
18141
18142 # Win32 support
18143 if test "$PORTNAME" = "win32"; then
18144
18145 for ac_func in gettimeofday
18146 do
18147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151   echo $ECHO_N "(cached) $ECHO_C" >&6
18152 else
18153   cat >conftest.$ac_ext <<_ACEOF
18154 /* confdefs.h.  */
18155 _ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h.  */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18161 #define $ac_func innocuous_$ac_func
18162
18163 /* System header to define __stub macros and hopefully few prototypes,
18164     which can conflict with char $ac_func (); below.
18165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166     <limits.h> exists even on freestanding compilers.  */
18167
18168 #ifdef __STDC__
18169 # include <limits.h>
18170 #else
18171 # include <assert.h>
18172 #endif
18173
18174 #undef $ac_func
18175
18176 /* Override any GCC internal prototype to avoid an error.
18177    Use char because int might match the return type of a GCC
18178    builtin and then its argument prototype would still apply.  */
18179 #ifdef __cplusplus
18180 extern "C"
18181 #endif
18182 char $ac_func ();
18183 /* The GNU C library defines this for functions which it implements
18184     to always fail with ENOSYS.  Some functions are actually named
18185     something starting with __ and the normal name is an alias.  */
18186 #if defined __stub_$ac_func || defined __stub___$ac_func
18187 choke me
18188 #endif
18189
18190 int
18191 main ()
18192 {
18193 return $ac_func ();
18194   ;
18195   return 0;
18196 }
18197 _ACEOF
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202   *) ac_try_echo=$ac_try;;
18203 esac
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205   (eval "$ac_link") 2>conftest.er1
18206   ac_status=$?
18207   grep -v '^ *+' conftest.er1 >conftest.err
18208   rm -f conftest.er1
18209   cat conftest.err >&5
18210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211   (exit $ac_status); } && {
18212          test -z "$ac_c_werror_flag" ||
18213          test ! -s conftest.err
18214        } && test -s conftest$ac_exeext &&
18215        $as_test_x conftest$ac_exeext; then
18216   eval "$as_ac_var=yes"
18217 else
18218   echo "$as_me: failed program was:" >&5
18219 sed 's/^/| /' conftest.$ac_ext >&5
18220
18221         eval "$as_ac_var=no"
18222 fi
18223
18224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18225       conftest$ac_exeext conftest.$ac_ext
18226 fi
18227 ac_res=`eval echo '${'$as_ac_var'}'`
18228                { echo "$as_me:$LINENO: result: $ac_res" >&5
18229 echo "${ECHO_T}$ac_res" >&6; }
18230 if test `eval echo '${'$as_ac_var'}'` = yes; then
18231   cat >>confdefs.h <<_ACEOF
18232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18233 _ACEOF
18234
18235 else
18236   case " $LIBOBJS " in
18237   *" $ac_func.$ac_objext "* ) ;;
18238   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18239  ;;
18240 esac
18241
18242 fi
18243 done
18244
18245
18246 case " $LIBOBJS " in
18247   *" kill.$ac_objext "* ) ;;
18248   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
18249  ;;
18250 esac
18251
18252 case " $LIBOBJS " in
18253   *" open.$ac_objext "* ) ;;
18254   *) LIBOBJS="$LIBOBJS open.$ac_objext"
18255  ;;
18256 esac
18257
18258 case " $LIBOBJS " in
18259   *" rand.$ac_objext "* ) ;;
18260   *) LIBOBJS="$LIBOBJS rand.$ac_objext"
18261  ;;
18262 esac
18263
18264 case " $LIBOBJS " in
18265   *" win32error.$ac_objext "* ) ;;
18266   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
18267  ;;
18268 esac
18269
18270
18271 cat >>confdefs.h <<\_ACEOF
18272 #define HAVE_SYMLINK 1
18273 _ACEOF
18274
18275 fi
18276
18277 if test "$with_readline" = yes; then
18278   { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
18279 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286 #include <stdio.h>
18287 #ifdef HAVE_READLINE_READLINE_H
18288 # include <readline/readline.h>
18289 #elif defined(HAVE_READLINE_H)
18290 # include <readline.h>
18291 #endif
18292
18293 int
18294 main ()
18295 {
18296 rl_completion_append_character = 'x';
18297   ;
18298   return 0;
18299 }
18300 _ACEOF
18301 rm -f conftest.$ac_objext conftest$ac_exeext
18302 if { (ac_try="$ac_link"
18303 case "(($ac_try" in
18304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18305   *) ac_try_echo=$ac_try;;
18306 esac
18307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18308   (eval "$ac_link") 2>conftest.er1
18309   ac_status=$?
18310   grep -v '^ *+' conftest.er1 >conftest.err
18311   rm -f conftest.er1
18312   cat conftest.err >&5
18313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314   (exit $ac_status); } && {
18315          test -z "$ac_c_werror_flag" ||
18316          test ! -s conftest.err
18317        } && test -s conftest$ac_exeext &&
18318        $as_test_x conftest$ac_exeext; then
18319   { echo "$as_me:$LINENO: result: yes" >&5
18320 echo "${ECHO_T}yes" >&6; }
18321
18322 cat >>confdefs.h <<\_ACEOF
18323 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
18324 _ACEOF
18325
18326 else
18327   echo "$as_me: failed program was:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18329
18330         { echo "$as_me:$LINENO: result: no" >&5
18331 echo "${ECHO_T}no" >&6; }
18332 fi
18333
18334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18335       conftest$ac_exeext conftest.$ac_ext
18336
18337
18338 for ac_func in rl_completion_matches rl_filename_completion_function
18339 do
18340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18344   echo $ECHO_N "(cached) $ECHO_C" >&6
18345 else
18346   cat >conftest.$ac_ext <<_ACEOF
18347 /* confdefs.h.  */
18348 _ACEOF
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h.  */
18352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18353    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18354 #define $ac_func innocuous_$ac_func
18355
18356 /* System header to define __stub macros and hopefully few prototypes,
18357     which can conflict with char $ac_func (); below.
18358     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18359     <limits.h> exists even on freestanding compilers.  */
18360
18361 #ifdef __STDC__
18362 # include <limits.h>
18363 #else
18364 # include <assert.h>
18365 #endif
18366
18367 #undef $ac_func
18368
18369 /* Override any GCC internal prototype to avoid an error.
18370    Use char because int might match the return type of a GCC
18371    builtin and then its argument prototype would still apply.  */
18372 #ifdef __cplusplus
18373 extern "C"
18374 #endif
18375 char $ac_func ();
18376 /* The GNU C library defines this for functions which it implements
18377     to always fail with ENOSYS.  Some functions are actually named
18378     something starting with __ and the normal name is an alias.  */
18379 #if defined __stub_$ac_func || defined __stub___$ac_func
18380 choke me
18381 #endif
18382
18383 int
18384 main ()
18385 {
18386 return $ac_func ();
18387   ;
18388   return 0;
18389 }
18390 _ACEOF
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395   *) ac_try_echo=$ac_try;;
18396 esac
18397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398   (eval "$ac_link") 2>conftest.er1
18399   ac_status=$?
18400   grep -v '^ *+' conftest.er1 >conftest.err
18401   rm -f conftest.er1
18402   cat conftest.err >&5
18403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404   (exit $ac_status); } && {
18405          test -z "$ac_c_werror_flag" ||
18406          test ! -s conftest.err
18407        } && test -s conftest$ac_exeext &&
18408        $as_test_x conftest$ac_exeext; then
18409   eval "$as_ac_var=yes"
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414         eval "$as_ac_var=no"
18415 fi
18416
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418       conftest$ac_exeext conftest.$ac_ext
18419 fi
18420 ac_res=`eval echo '${'$as_ac_var'}'`
18421                { echo "$as_me:$LINENO: result: $ac_res" >&5
18422 echo "${ECHO_T}$ac_res" >&6; }
18423 if test `eval echo '${'$as_ac_var'}'` = yes; then
18424   cat >>confdefs.h <<_ACEOF
18425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18426 _ACEOF
18427
18428 fi
18429 done
18430
18431
18432 for ac_func in replace_history_entry
18433 do
18434 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18435 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18436 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18437 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18438   echo $ECHO_N "(cached) $ECHO_C" >&6
18439 else
18440   cat >conftest.$ac_ext <<_ACEOF
18441 /* confdefs.h.  */
18442 _ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h.  */
18446 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18447    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18448 #define $ac_func innocuous_$ac_func
18449
18450 /* System header to define __stub macros and hopefully few prototypes,
18451     which can conflict with char $ac_func (); below.
18452     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18453     <limits.h> exists even on freestanding compilers.  */
18454
18455 #ifdef __STDC__
18456 # include <limits.h>
18457 #else
18458 # include <assert.h>
18459 #endif
18460
18461 #undef $ac_func
18462
18463 /* Override any GCC internal prototype to avoid an error.
18464    Use char because int might match the return type of a GCC
18465    builtin and then its argument prototype would still apply.  */
18466 #ifdef __cplusplus
18467 extern "C"
18468 #endif
18469 char $ac_func ();
18470 /* The GNU C library defines this for functions which it implements
18471     to always fail with ENOSYS.  Some functions are actually named
18472     something starting with __ and the normal name is an alias.  */
18473 #if defined __stub_$ac_func || defined __stub___$ac_func
18474 choke me
18475 #endif
18476
18477 int
18478 main ()
18479 {
18480 return $ac_func ();
18481   ;
18482   return 0;
18483 }
18484 _ACEOF
18485 rm -f conftest.$ac_objext conftest$ac_exeext
18486 if { (ac_try="$ac_link"
18487 case "(($ac_try" in
18488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18489   *) ac_try_echo=$ac_try;;
18490 esac
18491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18492   (eval "$ac_link") 2>conftest.er1
18493   ac_status=$?
18494   grep -v '^ *+' conftest.er1 >conftest.err
18495   rm -f conftest.er1
18496   cat conftest.err >&5
18497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498   (exit $ac_status); } && {
18499          test -z "$ac_c_werror_flag" ||
18500          test ! -s conftest.err
18501        } && test -s conftest$ac_exeext &&
18502        $as_test_x conftest$ac_exeext; then
18503   eval "$as_ac_var=yes"
18504 else
18505   echo "$as_me: failed program was:" >&5
18506 sed 's/^/| /' conftest.$ac_ext >&5
18507
18508         eval "$as_ac_var=no"
18509 fi
18510
18511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18512       conftest$ac_exeext conftest.$ac_ext
18513 fi
18514 ac_res=`eval echo '${'$as_ac_var'}'`
18515                { echo "$as_me:$LINENO: result: $ac_res" >&5
18516 echo "${ECHO_T}$ac_res" >&6; }
18517 if test `eval echo '${'$as_ac_var'}'` = yes; then
18518   cat >>confdefs.h <<_ACEOF
18519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18520 _ACEOF
18521
18522 fi
18523 done
18524
18525 fi
18526
18527
18528 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18529 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
18530 cat >conftest.$ac_ext <<_ACEOF
18531 /* confdefs.h.  */
18532 _ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h.  */
18536 #include <setjmp.h>
18537 int
18538 main ()
18539 {
18540 sigjmp_buf x; sigsetjmp(x, 1);
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_link") 2>conftest.er1
18553   ac_status=$?
18554   grep -v '^ *+' conftest.er1 >conftest.err
18555   rm -f conftest.er1
18556   cat conftest.err >&5
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); } && {
18559          test -z "$ac_c_werror_flag" ||
18560          test ! -s conftest.err
18561        } && test -s conftest$ac_exeext &&
18562        $as_test_x conftest$ac_exeext; then
18563
18564 cat >>confdefs.h <<\_ACEOF
18565 #define HAVE_SIGSETJMP 1
18566 _ACEOF
18567
18568 { echo "$as_me:$LINENO: result: yes" >&5
18569 echo "${ECHO_T}yes" >&6; }
18570 else
18571   echo "$as_me: failed program was:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18573
18574         { echo "$as_me:$LINENO: result: no" >&5
18575 echo "${ECHO_T}no" >&6; }
18576 fi
18577
18578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18579       conftest$ac_exeext conftest.$ac_ext
18580
18581 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
18582 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
18583 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586   cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h.  */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h.  */
18592 #include <signal.h>
18593 /* NetBSD declares sys_siglist in unistd.h.  */
18594 #ifdef HAVE_UNISTD_H
18595 # include <unistd.h>
18596 #endif
18597
18598
18599 int
18600 main ()
18601 {
18602 #ifndef sys_siglist
18603   (void) sys_siglist;
18604 #endif
18605
18606   ;
18607   return 0;
18608 }
18609 _ACEOF
18610 rm -f conftest.$ac_objext
18611 if { (ac_try="$ac_compile"
18612 case "(($ac_try" in
18613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18614   *) ac_try_echo=$ac_try;;
18615 esac
18616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18617   (eval "$ac_compile") 2>conftest.er1
18618   ac_status=$?
18619   grep -v '^ *+' conftest.er1 >conftest.err
18620   rm -f conftest.er1
18621   cat conftest.err >&5
18622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623   (exit $ac_status); } && {
18624          test -z "$ac_c_werror_flag" ||
18625          test ! -s conftest.err
18626        } && test -s conftest.$ac_objext; then
18627   ac_cv_have_decl_sys_siglist=yes
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         ac_cv_have_decl_sys_siglist=no
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 fi
18637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
18638 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
18639 if test $ac_cv_have_decl_sys_siglist = yes; then
18640
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_DECL_SYS_SIGLIST 1
18643 _ACEOF
18644
18645
18646 else
18647   cat >>confdefs.h <<_ACEOF
18648 #define HAVE_DECL_SYS_SIGLIST 0
18649 _ACEOF
18650
18651
18652 fi
18653
18654
18655
18656
18657 { echo "$as_me:$LINENO: checking for syslog" >&5
18658 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18659 if test "${ac_cv_func_syslog+set}" = set; then
18660   echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662   cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h.  */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h.  */
18668 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18669    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18670 #define syslog innocuous_syslog
18671
18672 /* System header to define __stub macros and hopefully few prototypes,
18673     which can conflict with char syslog (); below.
18674     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675     <limits.h> exists even on freestanding compilers.  */
18676
18677 #ifdef __STDC__
18678 # include <limits.h>
18679 #else
18680 # include <assert.h>
18681 #endif
18682
18683 #undef syslog
18684
18685 /* Override any GCC internal prototype to avoid an error.
18686    Use char because int might match the return type of a GCC
18687    builtin and then its argument prototype would still apply.  */
18688 #ifdef __cplusplus
18689 extern "C"
18690 #endif
18691 char syslog ();
18692 /* The GNU C library defines this for functions which it implements
18693     to always fail with ENOSYS.  Some functions are actually named
18694     something starting with __ and the normal name is an alias.  */
18695 #if defined __stub_syslog || defined __stub___syslog
18696 choke me
18697 #endif
18698
18699 int
18700 main ()
18701 {
18702 return syslog ();
18703   ;
18704   return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711   *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714   (eval "$ac_link") 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } && {
18721          test -z "$ac_c_werror_flag" ||
18722          test ! -s conftest.err
18723        } && test -s conftest$ac_exeext &&
18724        $as_test_x conftest$ac_exeext; then
18725   ac_cv_func_syslog=yes
18726 else
18727   echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730         ac_cv_func_syslog=no
18731 fi
18732
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734       conftest$ac_exeext conftest.$ac_ext
18735 fi
18736 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18737 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18738 if test $ac_cv_func_syslog = yes; then
18739   if test "${ac_cv_header_syslog_h+set}" = set; then
18740   { echo "$as_me:$LINENO: checking for syslog.h" >&5
18741 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18742 if test "${ac_cv_header_syslog_h+set}" = set; then
18743   echo $ECHO_N "(cached) $ECHO_C" >&6
18744 fi
18745 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18746 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18747 else
18748   # Is the header compilable?
18749 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
18750 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
18751 cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h.  */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h.  */
18757 $ac_includes_default
18758 #include <syslog.h>
18759 _ACEOF
18760 rm -f conftest.$ac_objext
18761 if { (ac_try="$ac_compile"
18762 case "(($ac_try" in
18763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764   *) ac_try_echo=$ac_try;;
18765 esac
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767   (eval "$ac_compile") 2>conftest.er1
18768   ac_status=$?
18769   grep -v '^ *+' conftest.er1 >conftest.err
18770   rm -f conftest.er1
18771   cat conftest.err >&5
18772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773   (exit $ac_status); } && {
18774          test -z "$ac_c_werror_flag" ||
18775          test ! -s conftest.err
18776        } && test -s conftest.$ac_objext; then
18777   ac_header_compiler=yes
18778 else
18779   echo "$as_me: failed program was:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18781
18782         ac_header_compiler=no
18783 fi
18784
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18787 echo "${ECHO_T}$ac_header_compiler" >&6; }
18788
18789 # Is the header present?
18790 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
18791 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
18792 cat >conftest.$ac_ext <<_ACEOF
18793 /* confdefs.h.  */
18794 _ACEOF
18795 cat confdefs.h >>conftest.$ac_ext
18796 cat >>conftest.$ac_ext <<_ACEOF
18797 /* end confdefs.h.  */
18798 #include <syslog.h>
18799 _ACEOF
18800 if { (ac_try="$ac_cpp conftest.$ac_ext"
18801 case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } >/dev/null && {
18813          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18814          test ! -s conftest.err
18815        }; then
18816   ac_header_preproc=yes
18817 else
18818   echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821   ac_header_preproc=no
18822 fi
18823
18824 rm -f conftest.err conftest.$ac_ext
18825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18826 echo "${ECHO_T}$ac_header_preproc" >&6; }
18827
18828 # So?  What about this header?
18829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18830   yes:no: )
18831     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
18832 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18833     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
18834 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
18835     ac_header_preproc=yes
18836     ;;
18837   no:yes:* )
18838     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
18839 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
18840     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
18841 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
18842     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
18843 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
18844     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
18845 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
18846     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
18847 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
18848     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
18849 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
18850     ( cat <<\_ASBOX
18851 ## ---------------------------------------- ##
18852 ## Report this to pgsql-bugs@postgresql.org ##
18853 ## ---------------------------------------- ##
18854 _ASBOX
18855      ) | sed "s/^/$as_me: WARNING:     /" >&2
18856     ;;
18857 esac
18858 { echo "$as_me:$LINENO: checking for syslog.h" >&5
18859 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18860 if test "${ac_cv_header_syslog_h+set}" = set; then
18861   echo $ECHO_N "(cached) $ECHO_C" >&6
18862 else
18863   ac_cv_header_syslog_h=$ac_header_preproc
18864 fi
18865 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18866 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18867
18868 fi
18869 if test $ac_cv_header_syslog_h = yes; then
18870
18871 cat >>confdefs.h <<\_ACEOF
18872 #define HAVE_SYSLOG 1
18873 _ACEOF
18874
18875 fi
18876
18877
18878 fi
18879
18880
18881 { echo "$as_me:$LINENO: checking for optreset" >&5
18882 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18883 if test "${pgac_cv_var_int_optreset+set}" = set; then
18884   echo $ECHO_N "(cached) $ECHO_C" >&6
18885 else
18886   cat >conftest.$ac_ext <<_ACEOF
18887 /* confdefs.h.  */
18888 _ACEOF
18889 cat confdefs.h >>conftest.$ac_ext
18890 cat >>conftest.$ac_ext <<_ACEOF
18891 /* end confdefs.h.  */
18892 #include <unistd.h>
18893 int
18894 main ()
18895 {
18896 extern int optreset; optreset = 1;
18897   ;
18898   return 0;
18899 }
18900 _ACEOF
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905   *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908   (eval "$ac_link") 2>conftest.er1
18909   ac_status=$?
18910   grep -v '^ *+' conftest.er1 >conftest.err
18911   rm -f conftest.er1
18912   cat conftest.err >&5
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); } && {
18915          test -z "$ac_c_werror_flag" ||
18916          test ! -s conftest.err
18917        } && test -s conftest$ac_exeext &&
18918        $as_test_x conftest$ac_exeext; then
18919   pgac_cv_var_int_optreset=yes
18920 else
18921   echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18923
18924         pgac_cv_var_int_optreset=no
18925 fi
18926
18927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18928       conftest$ac_exeext conftest.$ac_ext
18929 fi
18930 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18931 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18932 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18933
18934 cat >>confdefs.h <<\_ACEOF
18935 #define HAVE_INT_OPTRESET 1
18936 _ACEOF
18937
18938 fi
18939
18940
18941
18942 for ac_func in strtoll strtoq
18943 do
18944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18945 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18948   echo $ECHO_N "(cached) $ECHO_C" >&6
18949 else
18950   cat >conftest.$ac_ext <<_ACEOF
18951 /* confdefs.h.  */
18952 _ACEOF
18953 cat confdefs.h >>conftest.$ac_ext
18954 cat >>conftest.$ac_ext <<_ACEOF
18955 /* end confdefs.h.  */
18956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18958 #define $ac_func innocuous_$ac_func
18959
18960 /* System header to define __stub macros and hopefully few prototypes,
18961     which can conflict with char $ac_func (); below.
18962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963     <limits.h> exists even on freestanding compilers.  */
18964
18965 #ifdef __STDC__
18966 # include <limits.h>
18967 #else
18968 # include <assert.h>
18969 #endif
18970
18971 #undef $ac_func
18972
18973 /* Override any GCC internal prototype to avoid an error.
18974    Use char because int might match the return type of a GCC
18975    builtin and then its argument prototype would still apply.  */
18976 #ifdef __cplusplus
18977 extern "C"
18978 #endif
18979 char $ac_func ();
18980 /* The GNU C library defines this for functions which it implements
18981     to always fail with ENOSYS.  Some functions are actually named
18982     something starting with __ and the normal name is an alias.  */
18983 #if defined __stub_$ac_func || defined __stub___$ac_func
18984 choke me
18985 #endif
18986
18987 int
18988 main ()
18989 {
18990 return $ac_func ();
18991   ;
18992   return 0;
18993 }
18994 _ACEOF
18995 rm -f conftest.$ac_objext conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999   *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002   (eval "$ac_link") 2>conftest.er1
19003   ac_status=$?
19004   grep -v '^ *+' conftest.er1 >conftest.err
19005   rm -f conftest.er1
19006   cat conftest.err >&5
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); } && {
19009          test -z "$ac_c_werror_flag" ||
19010          test ! -s conftest.err
19011        } && test -s conftest$ac_exeext &&
19012        $as_test_x conftest$ac_exeext; then
19013   eval "$as_ac_var=yes"
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018         eval "$as_ac_var=no"
19019 fi
19020
19021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19022       conftest$ac_exeext conftest.$ac_ext
19023 fi
19024 ac_res=`eval echo '${'$as_ac_var'}'`
19025                { echo "$as_me:$LINENO: result: $ac_res" >&5
19026 echo "${ECHO_T}$ac_res" >&6; }
19027 if test `eval echo '${'$as_ac_var'}'` = yes; then
19028   cat >>confdefs.h <<_ACEOF
19029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19030 _ACEOF
19031  break
19032 fi
19033 done
19034
19035
19036
19037 for ac_func in strtoull strtouq
19038 do
19039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19043   echo $ECHO_N "(cached) $ECHO_C" >&6
19044 else
19045   cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h.  */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h.  */
19051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19052    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19053 #define $ac_func innocuous_$ac_func
19054
19055 /* System header to define __stub macros and hopefully few prototypes,
19056     which can conflict with char $ac_func (); below.
19057     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19058     <limits.h> exists even on freestanding compilers.  */
19059
19060 #ifdef __STDC__
19061 # include <limits.h>
19062 #else
19063 # include <assert.h>
19064 #endif
19065
19066 #undef $ac_func
19067
19068 /* Override any GCC internal prototype to avoid an error.
19069    Use char because int might match the return type of a GCC
19070    builtin and then its argument prototype would still apply.  */
19071 #ifdef __cplusplus
19072 extern "C"
19073 #endif
19074 char $ac_func ();
19075 /* The GNU C library defines this for functions which it implements
19076     to always fail with ENOSYS.  Some functions are actually named
19077     something starting with __ and the normal name is an alias.  */
19078 #if defined __stub_$ac_func || defined __stub___$ac_func
19079 choke me
19080 #endif
19081
19082 int
19083 main ()
19084 {
19085 return $ac_func ();
19086   ;
19087   return 0;
19088 }
19089 _ACEOF
19090 rm -f conftest.$ac_objext conftest$ac_exeext
19091 if { (ac_try="$ac_link"
19092 case "(($ac_try" in
19093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094   *) ac_try_echo=$ac_try;;
19095 esac
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097   (eval "$ac_link") 2>conftest.er1
19098   ac_status=$?
19099   grep -v '^ *+' conftest.er1 >conftest.err
19100   rm -f conftest.er1
19101   cat conftest.err >&5
19102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103   (exit $ac_status); } && {
19104          test -z "$ac_c_werror_flag" ||
19105          test ! -s conftest.err
19106        } && test -s conftest$ac_exeext &&
19107        $as_test_x conftest$ac_exeext; then
19108   eval "$as_ac_var=yes"
19109 else
19110   echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19112
19113         eval "$as_ac_var=no"
19114 fi
19115
19116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19117       conftest$ac_exeext conftest.$ac_ext
19118 fi
19119 ac_res=`eval echo '${'$as_ac_var'}'`
19120                { echo "$as_me:$LINENO: result: $ac_res" >&5
19121 echo "${ECHO_T}$ac_res" >&6; }
19122 if test `eval echo '${'$as_ac_var'}'` = yes; then
19123   cat >>confdefs.h <<_ACEOF
19124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19125 _ACEOF
19126  break
19127 fi
19128 done
19129
19130
19131 # Check for one of atexit() or on_exit()
19132
19133 for ac_func in atexit
19134 do
19135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19139   echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141   cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h.  */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h.  */
19147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19148    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19149 #define $ac_func innocuous_$ac_func
19150
19151 /* System header to define __stub macros and hopefully few prototypes,
19152     which can conflict with char $ac_func (); below.
19153     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154     <limits.h> exists even on freestanding compilers.  */
19155
19156 #ifdef __STDC__
19157 # include <limits.h>
19158 #else
19159 # include <assert.h>
19160 #endif
19161
19162 #undef $ac_func
19163
19164 /* Override any GCC internal prototype to avoid an error.
19165    Use char because int might match the return type of a GCC
19166    builtin and then its argument prototype would still apply.  */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 char $ac_func ();
19171 /* The GNU C library defines this for functions which it implements
19172     to always fail with ENOSYS.  Some functions are actually named
19173     something starting with __ and the normal name is an alias.  */
19174 #if defined __stub_$ac_func || defined __stub___$ac_func
19175 choke me
19176 #endif
19177
19178 int
19179 main ()
19180 {
19181 return $ac_func ();
19182   ;
19183   return 0;
19184 }
19185 _ACEOF
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190   *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193   (eval "$ac_link") 2>conftest.er1
19194   ac_status=$?
19195   grep -v '^ *+' conftest.er1 >conftest.err
19196   rm -f conftest.er1
19197   cat conftest.err >&5
19198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199   (exit $ac_status); } && {
19200          test -z "$ac_c_werror_flag" ||
19201          test ! -s conftest.err
19202        } && test -s conftest$ac_exeext &&
19203        $as_test_x conftest$ac_exeext; then
19204   eval "$as_ac_var=yes"
19205 else
19206   echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209         eval "$as_ac_var=no"
19210 fi
19211
19212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19213       conftest$ac_exeext conftest.$ac_ext
19214 fi
19215 ac_res=`eval echo '${'$as_ac_var'}'`
19216                { echo "$as_me:$LINENO: result: $ac_res" >&5
19217 echo "${ECHO_T}$ac_res" >&6; }
19218 if test `eval echo '${'$as_ac_var'}'` = yes; then
19219   cat >>confdefs.h <<_ACEOF
19220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19221 _ACEOF
19222
19223 else
19224
19225 for ac_func in on_exit
19226 do
19227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19231   echo $ECHO_N "(cached) $ECHO_C" >&6
19232 else
19233   cat >conftest.$ac_ext <<_ACEOF
19234 /* confdefs.h.  */
19235 _ACEOF
19236 cat confdefs.h >>conftest.$ac_ext
19237 cat >>conftest.$ac_ext <<_ACEOF
19238 /* end confdefs.h.  */
19239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19241 #define $ac_func innocuous_$ac_func
19242
19243 /* System header to define __stub macros and hopefully few prototypes,
19244     which can conflict with char $ac_func (); below.
19245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19246     <limits.h> exists even on freestanding compilers.  */
19247
19248 #ifdef __STDC__
19249 # include <limits.h>
19250 #else
19251 # include <assert.h>
19252 #endif
19253
19254 #undef $ac_func
19255
19256 /* Override any GCC internal prototype to avoid an error.
19257    Use char because int might match the return type of a GCC
19258    builtin and then its argument prototype would still apply.  */
19259 #ifdef __cplusplus
19260 extern "C"
19261 #endif
19262 char $ac_func ();
19263 /* The GNU C library defines this for functions which it implements
19264     to always fail with ENOSYS.  Some functions are actually named
19265     something starting with __ and the normal name is an alias.  */
19266 #if defined __stub_$ac_func || defined __stub___$ac_func
19267 choke me
19268 #endif
19269
19270 int
19271 main ()
19272 {
19273 return $ac_func ();
19274   ;
19275   return 0;
19276 }
19277 _ACEOF
19278 rm -f conftest.$ac_objext conftest$ac_exeext
19279 if { (ac_try="$ac_link"
19280 case "(($ac_try" in
19281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282   *) ac_try_echo=$ac_try;;
19283 esac
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285   (eval "$ac_link") 2>conftest.er1
19286   ac_status=$?
19287   grep -v '^ *+' conftest.er1 >conftest.err
19288   rm -f conftest.er1
19289   cat conftest.err >&5
19290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291   (exit $ac_status); } && {
19292          test -z "$ac_c_werror_flag" ||
19293          test ! -s conftest.err
19294        } && test -s conftest$ac_exeext &&
19295        $as_test_x conftest$ac_exeext; then
19296   eval "$as_ac_var=yes"
19297 else
19298   echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19300
19301         eval "$as_ac_var=no"
19302 fi
19303
19304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19305       conftest$ac_exeext conftest.$ac_ext
19306 fi
19307 ac_res=`eval echo '${'$as_ac_var'}'`
19308                { echo "$as_me:$LINENO: result: $ac_res" >&5
19309 echo "${ECHO_T}$ac_res" >&6; }
19310 if test `eval echo '${'$as_ac_var'}'` = yes; then
19311   cat >>confdefs.h <<_ACEOF
19312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19313 _ACEOF
19314
19315 else
19316   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
19317 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
19318    { (exit 1); exit 1; }; }
19319 fi
19320 done
19321
19322 fi
19323 done
19324
19325
19326
19327 for ac_func in fseeko
19328 do
19329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   cat >conftest.$ac_ext <<_ACEOF
19336 /* confdefs.h.  */
19337 _ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h.  */
19341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19342    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19343 #define $ac_func innocuous_$ac_func
19344
19345 /* System header to define __stub macros and hopefully few prototypes,
19346     which can conflict with char $ac_func (); below.
19347     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19348     <limits.h> exists even on freestanding compilers.  */
19349
19350 #ifdef __STDC__
19351 # include <limits.h>
19352 #else
19353 # include <assert.h>
19354 #endif
19355
19356 #undef $ac_func
19357
19358 /* Override any GCC internal prototype to avoid an error.
19359    Use char because int might match the return type of a GCC
19360    builtin and then its argument prototype would still apply.  */
19361 #ifdef __cplusplus
19362 extern "C"
19363 #endif
19364 char $ac_func ();
19365 /* The GNU C library defines this for functions which it implements
19366     to always fail with ENOSYS.  Some functions are actually named
19367     something starting with __ and the normal name is an alias.  */
19368 #if defined __stub_$ac_func || defined __stub___$ac_func
19369 choke me
19370 #endif
19371
19372 int
19373 main ()
19374 {
19375 return $ac_func ();
19376   ;
19377   return 0;
19378 }
19379 _ACEOF
19380 rm -f conftest.$ac_objext conftest$ac_exeext
19381 if { (ac_try="$ac_link"
19382 case "(($ac_try" in
19383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384   *) ac_try_echo=$ac_try;;
19385 esac
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387   (eval "$ac_link") 2>conftest.er1
19388   ac_status=$?
19389   grep -v '^ *+' conftest.er1 >conftest.err
19390   rm -f conftest.er1
19391   cat conftest.err >&5
19392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393   (exit $ac_status); } && {
19394          test -z "$ac_c_werror_flag" ||
19395          test ! -s conftest.err
19396        } && test -s conftest$ac_exeext &&
19397        $as_test_x conftest$ac_exeext; then
19398   eval "$as_ac_var=yes"
19399 else
19400   echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.$ac_ext >&5
19402
19403         eval "$as_ac_var=no"
19404 fi
19405
19406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19407       conftest$ac_exeext conftest.$ac_ext
19408 fi
19409 ac_res=`eval echo '${'$as_ac_var'}'`
19410                { echo "$as_me:$LINENO: result: $ac_res" >&5
19411 echo "${ECHO_T}$ac_res" >&6; }
19412 if test `eval echo '${'$as_ac_var'}'` = yes; then
19413   cat >>confdefs.h <<_ACEOF
19414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19415 _ACEOF
19416
19417 else
19418   case " $LIBOBJS " in
19419   *" $ac_func.$ac_objext "* ) ;;
19420   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
19421  ;;
19422 esac
19423
19424 fi
19425 done
19426
19427
19428 case $host_os in
19429         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
19430         bsdi*|netbsd*)
19431
19432 cat >>confdefs.h <<\_ACEOF
19433 #define HAVE_FSEEKO 1
19434 _ACEOF
19435
19436                 ac_cv_func_fseeko=yes;;
19437         *)
19438                 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19439 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19440 if test "${ac_cv_sys_largefile_source+set}" = set; then
19441   echo $ECHO_N "(cached) $ECHO_C" >&6
19442 else
19443   while :; do
19444   cat >conftest.$ac_ext <<_ACEOF
19445 /* confdefs.h.  */
19446 _ACEOF
19447 cat confdefs.h >>conftest.$ac_ext
19448 cat >>conftest.$ac_ext <<_ACEOF
19449 /* end confdefs.h.  */
19450 #include <sys/types.h> /* for off_t */
19451      #include <stdio.h>
19452 int
19453 main ()
19454 {
19455 int (*fp) (FILE *, off_t, int) = fseeko;
19456      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19457   ;
19458   return 0;
19459 }
19460 _ACEOF
19461 rm -f conftest.$ac_objext conftest$ac_exeext
19462 if { (ac_try="$ac_link"
19463 case "(($ac_try" in
19464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465   *) ac_try_echo=$ac_try;;
19466 esac
19467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19468   (eval "$ac_link") 2>conftest.er1
19469   ac_status=$?
19470   grep -v '^ *+' conftest.er1 >conftest.err
19471   rm -f conftest.er1
19472   cat conftest.err >&5
19473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } && {
19475          test -z "$ac_c_werror_flag" ||
19476          test ! -s conftest.err
19477        } && test -s conftest$ac_exeext &&
19478        $as_test_x conftest$ac_exeext; then
19479   ac_cv_sys_largefile_source=no; break
19480 else
19481   echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484
19485 fi
19486
19487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19488       conftest$ac_exeext conftest.$ac_ext
19489   cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495 #define _LARGEFILE_SOURCE 1
19496 #include <sys/types.h> /* for off_t */
19497      #include <stdio.h>
19498 int
19499 main ()
19500 {
19501 int (*fp) (FILE *, off_t, int) = fseeko;
19502      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19503   ;
19504   return 0;
19505 }
19506 _ACEOF
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511   *) ac_try_echo=$ac_try;;
19512 esac
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514   (eval "$ac_link") 2>conftest.er1
19515   ac_status=$?
19516   grep -v '^ *+' conftest.er1 >conftest.err
19517   rm -f conftest.er1
19518   cat conftest.err >&5
19519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520   (exit $ac_status); } && {
19521          test -z "$ac_c_werror_flag" ||
19522          test ! -s conftest.err
19523        } && test -s conftest$ac_exeext &&
19524        $as_test_x conftest$ac_exeext; then
19525   ac_cv_sys_largefile_source=1; break
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530
19531 fi
19532
19533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19534       conftest$ac_exeext conftest.$ac_ext
19535   ac_cv_sys_largefile_source=unknown
19536   break
19537 done
19538 fi
19539 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19540 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19541 case $ac_cv_sys_largefile_source in #(
19542   no | unknown) ;;
19543   *)
19544 cat >>confdefs.h <<_ACEOF
19545 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19546 _ACEOF
19547 ;;
19548 esac
19549 rm -f conftest*
19550
19551 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19552 # in glibc 2.1.3, but that breaks too many other things.
19553 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19554 if test $ac_cv_sys_largefile_source != unknown; then
19555
19556 cat >>confdefs.h <<\_ACEOF
19557 #define HAVE_FSEEKO 1
19558 _ACEOF
19559
19560 fi
19561 ;;
19562 esac
19563
19564
19565 #
19566 # Pthreads
19567 #
19568 # For each platform, we need to know about any special compile and link
19569 # libraries, and whether the normal C function names are thread-safe.
19570 # See the comment at the top of src/port/thread.c for more information.
19571 # WIN32 doesn't need the pthread tests;  it always uses threads
19572 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
19573
19574
19575
19576 ac_ext=c
19577 ac_cpp='$CPP $CPPFLAGS'
19578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19581
19582 acx_pthread_ok=no
19583
19584 # We used to check for pthread.h first, but this fails if pthread.h
19585 # requires special compiler flags (e.g. on True64 or Sequent).
19586 # It gets checked for in the link test anyway.
19587
19588 # First of all, check if the user has set any of the PTHREAD_LIBS,
19589 # etcetera environment variables, and if threads linking works using
19590 # them:
19591 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
19592         save_CFLAGS="$CFLAGS"
19593         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19594         save_LIBS="$LIBS"
19595         LIBS="$PTHREAD_LIBS $LIBS"
19596         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
19597 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
19598         cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604
19605 /* Override any GCC internal prototype to avoid an error.
19606    Use char because int might match the return type of a GCC
19607    builtin and then its argument prototype would still apply.  */
19608 #ifdef __cplusplus
19609 extern "C"
19610 #endif
19611 char pthread_join ();
19612 int
19613 main ()
19614 {
19615 return pthread_join ();
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624   *) ac_try_echo=$ac_try;;
19625 esac
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627   (eval "$ac_link") 2>conftest.er1
19628   ac_status=$?
19629   grep -v '^ *+' conftest.er1 >conftest.err
19630   rm -f conftest.er1
19631   cat conftest.err >&5
19632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633   (exit $ac_status); } && {
19634          test -z "$ac_c_werror_flag" ||
19635          test ! -s conftest.err
19636        } && test -s conftest$ac_exeext &&
19637        $as_test_x conftest$ac_exeext; then
19638   acx_pthread_ok=yes
19639 else
19640   echo "$as_me: failed program was:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19642
19643
19644 fi
19645
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647       conftest$ac_exeext conftest.$ac_ext
19648         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19649 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19650         if test x"$acx_pthread_ok" = xno; then
19651                 PTHREAD_LIBS=""
19652                 PTHREAD_CFLAGS=""
19653         fi
19654         LIBS="$save_LIBS"
19655         CFLAGS="$save_CFLAGS"
19656 fi
19657
19658 # We must check for the threads library under a number of different
19659 # names; the ordering is very important because some systems
19660 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
19661 # libraries is broken (non-POSIX).
19662
19663 # Create a list of thread flags to try.  Items starting with a "-" are
19664 # C compiler flags, and other items are library names, except for "none"
19665 # which indicates that we try without any flags at all, and "pthread-config"
19666 # which is a program returning the flags for the Pth emulation library.
19667
19668 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
19669
19670 # The ordering *is* (sometimes) important.  Some notes on the
19671 # individual items follow:
19672
19673 # pthreads: AIX (must check this before -lpthread)
19674 # none: in case threads are in libc; should be tried before -Kthread and
19675 #       other compiler flags to prevent continual compiler warnings
19676 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
19677 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
19678 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
19679 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
19680 # -pthreads: Solaris/gcc
19681 # -mthreads: Mingw32/gcc, Lynx/gcc
19682 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
19683 #      doesn't hurt to check since this sometimes defines pthreads too;
19684 #      also defines -D_REENTRANT)
19685 # pthread: Linux, etcetera
19686 # --thread-safe: KAI C++
19687 # pthread-config: use pthread-config program (for GNU Pth library)
19688
19689 case "${host_cpu}-${host_os}" in
19690         *solaris*)
19691
19692         # On Solaris (at least, for some versions), libc contains stubbed
19693         # (non-functional) versions of the pthreads routines, so link-based
19694         # tests will erroneously succeed.  (We need to link with -pthread or
19695         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
19696         # a function called by this macro, so we could check for that, but
19697         # who knows whether they'll stub that too in a future libc.)  So,
19698         # we'll just look for -pthreads and -lpthread first:
19699
19700         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
19701         ;;
19702 esac
19703
19704 if test x"$acx_pthread_ok" = xno; then
19705 for flag in $acx_pthread_flags; do
19706
19707         tryPTHREAD_CFLAGS=""
19708         tryPTHREAD_LIBS=""
19709         case $flag in
19710                 none)
19711                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
19712 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
19713                 ;;
19714
19715                 -*)
19716                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
19717 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
19718                 tryPTHREAD_CFLAGS="$flag"
19719                 ;;
19720
19721                 pthread-config)
19722                 # skip this if we already have flags defined, for PostgreSQL
19723                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
19724                 # Extract the first word of "pthread-config", so it can be a program name with args.
19725 set dummy pthread-config; ac_word=$2
19726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19728 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
19729   echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731   if test -n "$acx_pthread_config"; then
19732   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
19733 else
19734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19735 for as_dir in $PATH
19736 do
19737   IFS=$as_save_IFS
19738   test -z "$as_dir" && as_dir=.
19739   for ac_exec_ext in '' $ac_executable_extensions; do
19740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19741     ac_cv_prog_acx_pthread_config="yes"
19742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19743     break 2
19744   fi
19745 done
19746 done
19747 IFS=$as_save_IFS
19748
19749   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
19750 fi
19751 fi
19752 acx_pthread_config=$ac_cv_prog_acx_pthread_config
19753 if test -n "$acx_pthread_config"; then
19754   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
19755 echo "${ECHO_T}$acx_pthread_config" >&6; }
19756 else
19757   { echo "$as_me:$LINENO: result: no" >&5
19758 echo "${ECHO_T}no" >&6; }
19759 fi
19760
19761
19762                 if test x"$acx_pthread_config" = xno; then continue; fi
19763                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
19764                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19765                 ;;
19766
19767                 *)
19768                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
19769 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
19770                 tryPTHREAD_LIBS="-l$flag"
19771                 ;;
19772         esac
19773
19774         save_LIBS="$LIBS"
19775         save_CFLAGS="$CFLAGS"
19776         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
19777         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19778
19779         # Check for various functions.  We must include pthread.h,
19780         # since some functions may be macros.  (On the Sequent, we
19781         # need a special flag -Kthread to make this header compile.)
19782         # We check for pthread_join because it is in -lpthread on IRIX
19783         # while pthread_create is in libc.  We check for pthread_attr_init
19784         # due to DEC craziness with -lpthreads.  We check for
19785         # pthread_cleanup_push because it is one of the few pthread
19786         # functions on Solaris that doesn't have a non-functional libc stub.
19787         # We try pthread_create on general principles.
19788         cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 #include <pthread.h>
19795 int
19796 main ()
19797 {
19798 pthread_t th; pthread_join(th, 0);
19799                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
19800                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
19801   ;
19802   return 0;
19803 }
19804 _ACEOF
19805 rm -f conftest.$ac_objext conftest$ac_exeext
19806 if { (ac_try="$ac_link"
19807 case "(($ac_try" in
19808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809   *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812   (eval "$ac_link") 2>conftest.er1
19813   ac_status=$?
19814   grep -v '^ *+' conftest.er1 >conftest.err
19815   rm -f conftest.er1
19816   cat conftest.err >&5
19817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818   (exit $ac_status); } && {
19819          test -z "$ac_c_werror_flag" ||
19820          test ! -s conftest.err
19821        } && test -s conftest$ac_exeext &&
19822        $as_test_x conftest$ac_exeext; then
19823   acx_pthread_ok=yes
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828         acx_pthread_ok=no
19829 fi
19830
19831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19832       conftest$ac_exeext conftest.$ac_ext
19833
19834         if test "x$acx_pthread_ok" = xyes; then
19835             # Don't use options that are ignored by the compiler.
19836             # We find them by checking stderror.
19837             cat >conftest.$ac_ext <<_ACEOF
19838 int
19839 main (int argc, char **argv)
19840 {
19841   (void) argc;
19842   (void) argv;
19843   return 0;
19844 }
19845 _ACEOF
19846             rm -f conftest.$ac_objext conftest$ac_exeext
19847             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
19848                 # we continue with more flags because Linux needs -lpthread
19849                 # for libpq builds on PostgreSQL.  The test above only
19850                 # tests for building binaries, not shared libraries.
19851                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
19852                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
19853             else   acx_pthread_ok=no
19854             fi
19855         fi
19856
19857         LIBS="$save_LIBS"
19858         CFLAGS="$save_CFLAGS"
19859
19860         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19861 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19862 done
19863 fi
19864
19865 # Various other checks:
19866 if test "x$acx_pthread_ok" = xyes; then
19867         save_LIBS="$LIBS"
19868         LIBS="$PTHREAD_LIBS $LIBS"
19869         save_CFLAGS="$CFLAGS"
19870         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19871
19872         # Detect AIX lossage: threads are created detached by default
19873         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19874         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19875 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19876         cat >conftest.$ac_ext <<_ACEOF
19877 /* confdefs.h.  */
19878 _ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h.  */
19882 #include <pthread.h>
19883 int
19884 main ()
19885 {
19886 int attr=PTHREAD_CREATE_JOINABLE;
19887   ;
19888   return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext conftest$ac_exeext
19892 if { (ac_try="$ac_link"
19893 case "(($ac_try" in
19894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895   *) ac_try_echo=$ac_try;;
19896 esac
19897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19898   (eval "$ac_link") 2>conftest.er1
19899   ac_status=$?
19900   grep -v '^ *+' conftest.er1 >conftest.err
19901   rm -f conftest.er1
19902   cat conftest.err >&5
19903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904   (exit $ac_status); } && {
19905          test -z "$ac_c_werror_flag" ||
19906          test ! -s conftest.err
19907        } && test -s conftest$ac_exeext &&
19908        $as_test_x conftest$ac_exeext; then
19909   ok=PTHREAD_CREATE_JOINABLE
19910 else
19911   echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914         ok=unknown
19915 fi
19916
19917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19918       conftest$ac_exeext conftest.$ac_ext
19919         if test x"$ok" = xunknown; then
19920                 cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h.  */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h.  */
19926 #include <pthread.h>
19927 int
19928 main ()
19929 {
19930 int attr=PTHREAD_CREATE_UNDETACHED;
19931   ;
19932   return 0;
19933 }
19934 _ACEOF
19935 rm -f conftest.$ac_objext conftest$ac_exeext
19936 if { (ac_try="$ac_link"
19937 case "(($ac_try" in
19938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19939   *) ac_try_echo=$ac_try;;
19940 esac
19941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19942   (eval "$ac_link") 2>conftest.er1
19943   ac_status=$?
19944   grep -v '^ *+' conftest.er1 >conftest.err
19945   rm -f conftest.er1
19946   cat conftest.err >&5
19947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19948   (exit $ac_status); } && {
19949          test -z "$ac_c_werror_flag" ||
19950          test ! -s conftest.err
19951        } && test -s conftest$ac_exeext &&
19952        $as_test_x conftest$ac_exeext; then
19953   ok=PTHREAD_CREATE_UNDETACHED
19954 else
19955   echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958         ok=unknown
19959 fi
19960
19961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19962       conftest$ac_exeext conftest.$ac_ext
19963         fi
19964         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19965
19966 cat >>confdefs.h <<\_ACEOF
19967 #define PTHREAD_CREATE_JOINABLE $ok
19968 _ACEOF
19969
19970         fi
19971         { echo "$as_me:$LINENO: result: ${ok}" >&5
19972 echo "${ECHO_T}${ok}" >&6; }
19973         if test x"$ok" = xunknown; then
19974                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19975 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19976         fi
19977
19978         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19979 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19980         flag=no
19981 # We always add these in PostgreSQL
19982 #       case "${host_cpu}-${host_os}" in
19983 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19984 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19985 #       esac
19986         { echo "$as_me:$LINENO: result: ${flag}" >&5
19987 echo "${ECHO_T}${flag}" >&6; }
19988         if test "x$flag" != xno; then
19989                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19990         fi
19991
19992         LIBS="$save_LIBS"
19993         CFLAGS="$save_CFLAGS"
19994
19995 # Supporting cc_r would require a special CC in all places that
19996 # use libpq, and that is ugly, so we don't do it.  Users can still
19997 # define their compiler as cc_r to do thread builds of everything.
19998         # More AIX lossage: must compile with cc_r
19999         # Extract the first word of "cc_r", so it can be a program name with args.
20000 set dummy cc_r; ac_word=$2
20001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20003 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   if test -n "$PTHREAD_CC"; then
20007   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20008 else
20009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20010 for as_dir in $PATH
20011 do
20012   IFS=$as_save_IFS
20013   test -z "$as_dir" && as_dir=.
20014   for ac_exec_ext in '' $ac_executable_extensions; do
20015   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20016     ac_cv_prog_PTHREAD_CC="cc_r"
20017     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20018     break 2
20019   fi
20020 done
20021 done
20022 IFS=$as_save_IFS
20023
20024   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
20025 fi
20026 fi
20027 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20028 if test -n "$PTHREAD_CC"; then
20029   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
20030 echo "${ECHO_T}$PTHREAD_CC" >&6; }
20031 else
20032   { echo "$as_me:$LINENO: result: no" >&5
20033 echo "${ECHO_T}no" >&6; }
20034 fi
20035
20036
20037 else
20038         PTHREAD_CC="$CC"
20039 fi
20040
20041
20042
20043
20044
20045 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20046 if test x"$acx_pthread_ok" = xyes; then
20047
20048 cat >>confdefs.h <<\_ACEOF
20049 #define HAVE_PTHREAD 1
20050 _ACEOF
20051
20052         :
20053 else
20054         acx_pthread_ok=no
20055
20056 fi
20057 ac_ext=c
20058 ac_cpp='$CPP $CPPFLAGS'
20059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20062
20063         # set thread flags
20064
20065 # Some platforms use these, so just define them.  They can't hurt if they
20066 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
20067 # enables 5-arg getpwuid_r, among other things.
20068 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
20069
20070
20071 # At this point, we don't want to muck with the compiler name for threading.
20072 # Let's see who fails, perhaps AIX.  2004-04-23
20073 if test "$PTHREAD_CC" != "$CC"; then
20074 { { echo "$as_me:$LINENO: error:
20075 PostgreSQL does not support platforms that require a special compiler
20076 for thread safety." >&5
20077 echo "$as_me: error:
20078 PostgreSQL does not support platforms that require a special compiler
20079 for thread safety." >&2;}
20080    { (exit 1); exit 1; }; }
20081 fi
20082
20083 if test "$THREAD_SUPPORT" = no; then
20084 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
20085 This platform is known to not support thread-safe programs.  For details,
20086 compile and run src/bin/pg_thread_test." >&5
20087 echo "$as_me: error: cannot enable threads on this platform
20088 This platform is known to not support thread-safe programs.  For details,
20089 compile and run src/bin/pg_thread_test." >&2;}
20090    { (exit 1); exit 1; }; }
20091 fi
20092
20093 # Check for *_r functions
20094 _CFLAGS="$CFLAGS"
20095 _LIBS="$LIBS"
20096 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20097 LIBS="$LIBS $PTHREAD_LIBS"
20098
20099 if test "$PORTNAME" != "win32"; then
20100 if test "${ac_cv_header_pthread_h+set}" = set; then
20101   { echo "$as_me:$LINENO: checking for pthread.h" >&5
20102 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20103 if test "${ac_cv_header_pthread_h+set}" = set; then
20104   echo $ECHO_N "(cached) $ECHO_C" >&6
20105 fi
20106 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20107 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20108 else
20109   # Is the header compilable?
20110 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
20111 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h.  */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h.  */
20118 $ac_includes_default
20119 #include <pthread.h>
20120 _ACEOF
20121 rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125   *) ac_try_echo=$ac_try;;
20126 esac
20127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20128   (eval "$ac_compile") 2>conftest.er1
20129   ac_status=$?
20130   grep -v '^ *+' conftest.er1 >conftest.err
20131   rm -f conftest.er1
20132   cat conftest.err >&5
20133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134   (exit $ac_status); } && {
20135          test -z "$ac_c_werror_flag" ||
20136          test ! -s conftest.err
20137        } && test -s conftest.$ac_objext; then
20138   ac_header_compiler=yes
20139 else
20140   echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143         ac_header_compiler=no
20144 fi
20145
20146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20148 echo "${ECHO_T}$ac_header_compiler" >&6; }
20149
20150 # Is the header present?
20151 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
20152 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
20153 cat >conftest.$ac_ext <<_ACEOF
20154 /* confdefs.h.  */
20155 _ACEOF
20156 cat confdefs.h >>conftest.$ac_ext
20157 cat >>conftest.$ac_ext <<_ACEOF
20158 /* end confdefs.h.  */
20159 #include <pthread.h>
20160 _ACEOF
20161 if { (ac_try="$ac_cpp conftest.$ac_ext"
20162 case "(($ac_try" in
20163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20164   *) ac_try_echo=$ac_try;;
20165 esac
20166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20167   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20168   ac_status=$?
20169   grep -v '^ *+' conftest.er1 >conftest.err
20170   rm -f conftest.er1
20171   cat conftest.err >&5
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); } >/dev/null && {
20174          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20175          test ! -s conftest.err
20176        }; then
20177   ac_header_preproc=yes
20178 else
20179   echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20181
20182   ac_header_preproc=no
20183 fi
20184
20185 rm -f conftest.err conftest.$ac_ext
20186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20187 echo "${ECHO_T}$ac_header_preproc" >&6; }
20188
20189 # So?  What about this header?
20190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20191   yes:no: )
20192     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
20193 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20194     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
20195 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
20196     ac_header_preproc=yes
20197     ;;
20198   no:yes:* )
20199     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
20200 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
20201     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
20202 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
20203     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
20204 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
20205     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
20206 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20207     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
20208 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
20209     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
20210 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
20211     ( cat <<\_ASBOX
20212 ## ---------------------------------------- ##
20213 ## Report this to pgsql-bugs@postgresql.org ##
20214 ## ---------------------------------------- ##
20215 _ASBOX
20216      ) | sed "s/^/$as_me: WARNING:     /" >&2
20217     ;;
20218 esac
20219 { echo "$as_me:$LINENO: checking for pthread.h" >&5
20220 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
20221 if test "${ac_cv_header_pthread_h+set}" = set; then
20222   echo $ECHO_N "(cached) $ECHO_C" >&6
20223 else
20224   ac_cv_header_pthread_h=$ac_header_preproc
20225 fi
20226 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
20227 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
20228
20229 fi
20230 if test $ac_cv_header_pthread_h = yes; then
20231   :
20232 else
20233   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
20234 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
20235    { (exit 1); exit 1; }; }
20236 fi
20237
20238
20239 fi
20240
20241
20242
20243
20244 for ac_func in strerror_r getpwuid_r gethostbyname_r
20245 do
20246 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20247 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20248 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20249 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20250   echo $ECHO_N "(cached) $ECHO_C" >&6
20251 else
20252   cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h.  */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h.  */
20258 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20260 #define $ac_func innocuous_$ac_func
20261
20262 /* System header to define __stub macros and hopefully few prototypes,
20263     which can conflict with char $ac_func (); below.
20264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20265     <limits.h> exists even on freestanding compilers.  */
20266
20267 #ifdef __STDC__
20268 # include <limits.h>
20269 #else
20270 # include <assert.h>
20271 #endif
20272
20273 #undef $ac_func
20274
20275 /* Override any GCC internal prototype to avoid an error.
20276    Use char because int might match the return type of a GCC
20277    builtin and then its argument prototype would still apply.  */
20278 #ifdef __cplusplus
20279 extern "C"
20280 #endif
20281 char $ac_func ();
20282 /* The GNU C library defines this for functions which it implements
20283     to always fail with ENOSYS.  Some functions are actually named
20284     something starting with __ and the normal name is an alias.  */
20285 #if defined __stub_$ac_func || defined __stub___$ac_func
20286 choke me
20287 #endif
20288
20289 int
20290 main ()
20291 {
20292 return $ac_func ();
20293   ;
20294   return 0;
20295 }
20296 _ACEOF
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301   *) ac_try_echo=$ac_try;;
20302 esac
20303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20304   (eval "$ac_link") 2>conftest.er1
20305   ac_status=$?
20306   grep -v '^ *+' conftest.er1 >conftest.err
20307   rm -f conftest.er1
20308   cat conftest.err >&5
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); } && {
20311          test -z "$ac_c_werror_flag" ||
20312          test ! -s conftest.err
20313        } && test -s conftest$ac_exeext &&
20314        $as_test_x conftest$ac_exeext; then
20315   eval "$as_ac_var=yes"
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320         eval "$as_ac_var=no"
20321 fi
20322
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324       conftest$ac_exeext conftest.$ac_ext
20325 fi
20326 ac_res=`eval echo '${'$as_ac_var'}'`
20327                { echo "$as_me:$LINENO: result: $ac_res" >&5
20328 echo "${ECHO_T}$ac_res" >&6; }
20329 if test `eval echo '${'$as_ac_var'}'` = yes; then
20330   cat >>confdefs.h <<_ACEOF
20331 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20332 _ACEOF
20333
20334 fi
20335 done
20336
20337
20338 # Do test here with the proper thread flags
20339 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
20340 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
20341 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344   cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 #include <sys/types.h>
20351 #include <pwd.h>
20352 int
20353 main ()
20354 {
20355 uid_t uid;
20356 struct passwd *space;
20357 char *buf;
20358 size_t bufsize;
20359 struct passwd **result;
20360 getpwuid_r(uid, space, buf, bufsize, result);
20361   ;
20362   return 0;
20363 }
20364 _ACEOF
20365 rm -f conftest.$ac_objext
20366 if { (ac_try="$ac_compile"
20367 case "(($ac_try" in
20368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369   *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372   (eval "$ac_compile") 2>conftest.er1
20373   ac_status=$?
20374   grep -v '^ *+' conftest.er1 >conftest.err
20375   rm -f conftest.er1
20376   cat conftest.err >&5
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); } && {
20379          test -z "$ac_c_werror_flag" ||
20380          test ! -s conftest.err
20381        } && test -s conftest.$ac_objext; then
20382   pgac_cv_func_getpwuid_r_5arg=yes
20383 else
20384   echo "$as_me: failed program was:" >&5
20385 sed 's/^/| /' conftest.$ac_ext >&5
20386
20387         pgac_cv_func_getpwuid_r_5arg=no
20388 fi
20389
20390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20391 fi
20392 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
20393 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
20394 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
20395
20396 cat >>confdefs.h <<\_ACEOF
20397 #define GETPWUID_R_5ARG
20398 _ACEOF
20399
20400 fi
20401
20402 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
20403 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
20404 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
20405   echo $ECHO_N "(cached) $ECHO_C" >&6
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 #include <string.h>
20414 int
20415 main ()
20416 {
20417 #ifndef _AIX
20418 int strerror_r(int, char *, size_t);
20419 #else
20420 /* Older AIX has 'int' for the third argument so we don't test the args. */
20421 int strerror_r();
20422 #endif
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431   *) ac_try_echo=$ac_try;;
20432 esac
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434   (eval "$ac_compile") 2>conftest.er1
20435   ac_status=$?
20436   grep -v '^ *+' conftest.er1 >conftest.err
20437   rm -f conftest.er1
20438   cat conftest.err >&5
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } && {
20441          test -z "$ac_c_werror_flag" ||
20442          test ! -s conftest.err
20443        } && test -s conftest.$ac_objext; then
20444   pgac_cv_func_strerror_r_int=yes
20445 else
20446   echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449         pgac_cv_func_strerror_r_int=no
20450 fi
20451
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 fi
20454 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
20455 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
20456 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
20457
20458 cat >>confdefs.h <<\_ACEOF
20459 #define STRERROR_R_INT
20460 _ACEOF
20461
20462 fi
20463
20464
20465 CFLAGS="$_CFLAGS"
20466 LIBS="$_LIBS"
20467
20468 else
20469 # do not use values from template file
20470 PTHREAD_CFLAGS=
20471 PTHREAD_LIBS=
20472 fi
20473
20474
20475
20476
20477
20478 # We can test for libldap_r only after we know PTHREAD_LIBS
20479 if test "$with_ldap" = yes ; then
20480   _LIBS="$LIBS"
20481   if test "$PORTNAME" != "win32"; then
20482
20483 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
20484 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
20485 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
20486   echo $ECHO_N "(cached) $ECHO_C" >&6
20487 else
20488   ac_check_lib_save_LIBS=$LIBS
20489 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
20490 cat >conftest.$ac_ext <<_ACEOF
20491 /* confdefs.h.  */
20492 _ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h.  */
20496
20497 /* Override any GCC internal prototype to avoid an error.
20498    Use char because int might match the return type of a GCC
20499    builtin and then its argument prototype would still apply.  */
20500 #ifdef __cplusplus
20501 extern "C"
20502 #endif
20503 char ldap_bind ();
20504 int
20505 main ()
20506 {
20507 return ldap_bind ();
20508   ;
20509   return 0;
20510 }
20511 _ACEOF
20512 rm -f conftest.$ac_objext conftest$ac_exeext
20513 if { (ac_try="$ac_link"
20514 case "(($ac_try" in
20515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516   *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519   (eval "$ac_link") 2>conftest.er1
20520   ac_status=$?
20521   grep -v '^ *+' conftest.er1 >conftest.err
20522   rm -f conftest.er1
20523   cat conftest.err >&5
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); } && {
20526          test -z "$ac_c_werror_flag" ||
20527          test ! -s conftest.err
20528        } && test -s conftest$ac_exeext &&
20529        $as_test_x conftest$ac_exeext; then
20530   ac_cv_lib_ldap_ldap_bind=yes
20531 else
20532   echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535         ac_cv_lib_ldap_ldap_bind=no
20536 fi
20537
20538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20539       conftest$ac_exeext conftest.$ac_ext
20540 LIBS=$ac_check_lib_save_LIBS
20541 fi
20542 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
20543 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
20544 if test $ac_cv_lib_ldap_ldap_bind = yes; then
20545   cat >>confdefs.h <<_ACEOF
20546 #define HAVE_LIBLDAP 1
20547 _ACEOF
20548
20549   LIBS="-lldap $LIBS"
20550
20551 else
20552   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
20553 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
20554    { (exit 1); exit 1; }; }
20555 fi
20556
20557     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
20558     if test "$enable_thread_safety" = yes; then
20559       # on some platforms ldap_r fails to link without PTHREAD_LIBS
20560
20561 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
20562 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
20563 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
20564   echo $ECHO_N "(cached) $ECHO_C" >&6
20565 else
20566   ac_check_lib_save_LIBS=$LIBS
20567 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
20568 cat >conftest.$ac_ext <<_ACEOF
20569 /* confdefs.h.  */
20570 _ACEOF
20571 cat confdefs.h >>conftest.$ac_ext
20572 cat >>conftest.$ac_ext <<_ACEOF
20573 /* end confdefs.h.  */
20574
20575 /* Override any GCC internal prototype to avoid an error.
20576    Use char because int might match the return type of a GCC
20577    builtin and then its argument prototype would still apply.  */
20578 #ifdef __cplusplus
20579 extern "C"
20580 #endif
20581 char ldap_simple_bind ();
20582 int
20583 main ()
20584 {
20585 return ldap_simple_bind ();
20586   ;
20587   return 0;
20588 }
20589 _ACEOF
20590 rm -f conftest.$ac_objext conftest$ac_exeext
20591 if { (ac_try="$ac_link"
20592 case "(($ac_try" in
20593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20594   *) ac_try_echo=$ac_try;;
20595 esac
20596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20597   (eval "$ac_link") 2>conftest.er1
20598   ac_status=$?
20599   grep -v '^ *+' conftest.er1 >conftest.err
20600   rm -f conftest.er1
20601   cat conftest.err >&5
20602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603   (exit $ac_status); } && {
20604          test -z "$ac_c_werror_flag" ||
20605          test ! -s conftest.err
20606        } && test -s conftest$ac_exeext &&
20607        $as_test_x conftest$ac_exeext; then
20608   ac_cv_lib_ldap_r_ldap_simple_bind=yes
20609 else
20610   echo "$as_me: failed program was:" >&5
20611 sed 's/^/| /' conftest.$ac_ext >&5
20612
20613         ac_cv_lib_ldap_r_ldap_simple_bind=no
20614 fi
20615
20616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20617       conftest$ac_exeext conftest.$ac_ext
20618 LIBS=$ac_check_lib_save_LIBS
20619 fi
20620 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
20621 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
20622 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
20623   cat >>confdefs.h <<_ACEOF
20624 #define HAVE_LIBLDAP_R 1
20625 _ACEOF
20626
20627   LIBS="-lldap_r $LIBS"
20628
20629 else
20630   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
20631 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
20632    { (exit 1); exit 1; }; }
20633 fi
20634
20635       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
20636     else
20637       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
20638     fi
20639   else
20640
20641 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
20642 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
20643 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   ac_check_lib_save_LIBS=$LIBS
20647 LIBS="-lwldap32  $LIBS"
20648 cat >conftest.$ac_ext <<_ACEOF
20649 /* confdefs.h.  */
20650 _ACEOF
20651 cat confdefs.h >>conftest.$ac_ext
20652 cat >>conftest.$ac_ext <<_ACEOF
20653 /* end confdefs.h.  */
20654
20655 /* Override any GCC internal prototype to avoid an error.
20656    Use char because int might match the return type of a GCC
20657    builtin and then its argument prototype would still apply.  */
20658 #ifdef __cplusplus
20659 extern "C"
20660 #endif
20661 char ldap_bind ();
20662 int
20663 main ()
20664 {
20665 return ldap_bind ();
20666   ;
20667   return 0;
20668 }
20669 _ACEOF
20670 rm -f conftest.$ac_objext conftest$ac_exeext
20671 if { (ac_try="$ac_link"
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_link") 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_exeext &&
20687        $as_test_x conftest$ac_exeext; then
20688   ac_cv_lib_wldap32_ldap_bind=yes
20689 else
20690   echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20692
20693         ac_cv_lib_wldap32_ldap_bind=no
20694 fi
20695
20696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20697       conftest$ac_exeext conftest.$ac_ext
20698 LIBS=$ac_check_lib_save_LIBS
20699 fi
20700 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
20701 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
20702 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
20703   cat >>confdefs.h <<_ACEOF
20704 #define HAVE_LIBWLDAP32 1
20705 _ACEOF
20706
20707   LIBS="-lwldap32 $LIBS"
20708
20709 else
20710   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
20711 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
20712    { (exit 1); exit 1; }; }
20713 fi
20714
20715     LDAP_LIBS_FE="-lwldap32"
20716     LDAP_LIBS_BE="-lwldap32"
20717   fi
20718   LIBS="$_LIBS"
20719 fi
20720
20721
20722
20723
20724 # This test makes sure that run tests work at all.  Sometimes a shared
20725 # library is found by the linker, but the runtime linker can't find it.
20726 # This check should come after all modifications of compiler or linker
20727 # variables, and before any other run tests.
20728 { echo "$as_me:$LINENO: checking test program" >&5
20729 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
20730 if test "$cross_compiling" = yes; then
20731   { echo "$as_me:$LINENO: result: cross-compiling" >&5
20732 echo "${ECHO_T}cross-compiling" >&6; }
20733 else
20734   cat >conftest.$ac_ext <<_ACEOF
20735 /* confdefs.h.  */
20736 _ACEOF
20737 cat confdefs.h >>conftest.$ac_ext
20738 cat >>conftest.$ac_ext <<_ACEOF
20739 /* end confdefs.h.  */
20740 int main() { return 0; }
20741 _ACEOF
20742 rm -f conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746   *) ac_try_echo=$ac_try;;
20747 esac
20748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20749   (eval "$ac_link") 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20753   { (case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_try") 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; }; then
20762   { echo "$as_me:$LINENO: result: ok" >&5
20763 echo "${ECHO_T}ok" >&6; }
20764 else
20765   echo "$as_me: program exited with status $ac_status" >&5
20766 echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769 ( exit $ac_status )
20770 { echo "$as_me:$LINENO: result: failed" >&5
20771 echo "${ECHO_T}failed" >&6; }
20772 { { echo "$as_me:$LINENO: error:
20773 Could not execute a simple test program.  This may be a problem
20774 related to locating shared libraries.  Check the file 'config.log'
20775 for the exact reason." >&5
20776 echo "$as_me: error:
20777 Could not execute a simple test program.  This may be a problem
20778 related to locating shared libraries.  Check the file 'config.log'
20779 for the exact reason." >&2;}
20780    { (exit 1); exit 1; }; }
20781 fi
20782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20783 fi
20784
20785
20786
20787 # --------------------
20788 # Run tests below here
20789 # --------------------
20790
20791 # Force use of our snprintf if system's doesn't do arg control
20792 # See comment above at snprintf test for details.
20793 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
20794   { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
20795 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
20796 if test "${pgac_cv_printf_arg_control+set}" = set; then
20797   echo $ECHO_N "(cached) $ECHO_C" >&6
20798 else
20799   if test "$cross_compiling" = yes; then
20800   pgac_cv_printf_arg_control=cross
20801 else
20802   cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h.  */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h.  */
20808 #include <stdio.h>
20809 #include <string.h>
20810
20811 int main()
20812 {
20813   char buf[100];
20814
20815   /* can it swap arguments? */
20816   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
20817   if (strcmp(buf, "4 3") != 0)
20818     return 1;
20819   return 0;
20820 }
20821 _ACEOF
20822 rm -f conftest$ac_exeext
20823 if { (ac_try="$ac_link"
20824 case "(($ac_try" in
20825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826   *) ac_try_echo=$ac_try;;
20827 esac
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829   (eval "$ac_link") 2>&5
20830   ac_status=$?
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20833   { (case "(($ac_try" in
20834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835   *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838   (eval "$ac_try") 2>&5
20839   ac_status=$?
20840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841   (exit $ac_status); }; }; then
20842   pgac_cv_printf_arg_control=yes
20843 else
20844   echo "$as_me: program exited with status $ac_status" >&5
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ( exit $ac_status )
20849 pgac_cv_printf_arg_control=no
20850 fi
20851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20852 fi
20853
20854
20855
20856 fi
20857 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
20858 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
20859
20860   if test $pgac_cv_printf_arg_control != yes ; then
20861     pgac_need_repl_snprintf=yes
20862   fi
20863 fi
20864
20865
20866
20867 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20868 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20869 if test "${pgac_cv_type_long_int_64+set}" = set; then
20870   echo $ECHO_N "(cached) $ECHO_C" >&6
20871 else
20872   if test "$cross_compiling" = yes; then
20873   # If cross-compiling, check the size reported by the compiler and
20874 # trust that the arithmetic works.
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h.  */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h.  */
20881
20882 int
20883 main ()
20884 {
20885 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20886 test_array [0] = 0
20887
20888   ;
20889   return 0;
20890 }
20891 _ACEOF
20892 rm -f conftest.$ac_objext
20893 if { (ac_try="$ac_compile"
20894 case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_compile") 2>conftest.er1
20900   ac_status=$?
20901   grep -v '^ *+' conftest.er1 >conftest.err
20902   rm -f conftest.er1
20903   cat conftest.err >&5
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } && {
20906          test -z "$ac_c_werror_flag" ||
20907          test ! -s conftest.err
20908        } && test -s conftest.$ac_objext; then
20909   pgac_cv_type_long_int_64=yes
20910 else
20911   echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20913
20914         pgac_cv_type_long_int_64=no
20915 fi
20916
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20918 else
20919   cat >conftest.$ac_ext <<_ACEOF
20920 /* confdefs.h.  */
20921 _ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h.  */
20925 typedef long int ac_int64;
20926
20927 /*
20928  * These are globals to discourage the compiler from folding all the
20929  * arithmetic tests down to compile-time constants.
20930  */
20931 ac_int64 a = 20000001;
20932 ac_int64 b = 40000005;
20933
20934 int does_int64_work()
20935 {
20936   ac_int64 c,d;
20937
20938   if (sizeof(ac_int64) != 8)
20939     return 0;                   /* definitely not the right size */
20940
20941   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20942   c = a * b;
20943   d = (c + b) / b;
20944   if (d != a+1)
20945     return 0;
20946   return 1;
20947 }
20948 main() {
20949   exit(! does_int64_work());
20950 }
20951 _ACEOF
20952 rm -f conftest$ac_exeext
20953 if { (ac_try="$ac_link"
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_link") 2>&5
20960   ac_status=$?
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20963   { (case "(($ac_try" in
20964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965   *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968   (eval "$ac_try") 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; }; then
20972   pgac_cv_type_long_int_64=yes
20973 else
20974   echo "$as_me: program exited with status $ac_status" >&5
20975 echo "$as_me: failed program was:" >&5
20976 sed 's/^/| /' conftest.$ac_ext >&5
20977
20978 ( exit $ac_status )
20979 pgac_cv_type_long_int_64=no
20980 fi
20981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20982 fi
20983
20984
20985 fi
20986 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20987 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20988
20989 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20990 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20991
20992 cat >>confdefs.h <<\_ACEOF
20993 #define HAVE_LONG_INT_64 1
20994 _ACEOF
20995
20996 fi
20997
20998
20999 if test x"$HAVE_LONG_INT_64" = x"no" ; then
21000   { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
21001 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
21002 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
21003   echo $ECHO_N "(cached) $ECHO_C" >&6
21004 else
21005   if test "$cross_compiling" = yes; then
21006   # If cross-compiling, check the size reported by the compiler and
21007 # trust that the arithmetic works.
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h.  */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h.  */
21014
21015 int
21016 main ()
21017 {
21018 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
21019 test_array [0] = 0
21020
21021   ;
21022   return 0;
21023 }
21024 _ACEOF
21025 rm -f conftest.$ac_objext
21026 if { (ac_try="$ac_compile"
21027 case "(($ac_try" in
21028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21029   *) ac_try_echo=$ac_try;;
21030 esac
21031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21032   (eval "$ac_compile") 2>conftest.er1
21033   ac_status=$?
21034   grep -v '^ *+' conftest.er1 >conftest.err
21035   rm -f conftest.er1
21036   cat conftest.err >&5
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); } && {
21039          test -z "$ac_c_werror_flag" ||
21040          test ! -s conftest.err
21041        } && test -s conftest.$ac_objext; then
21042   pgac_cv_type_long_long_int_64=yes
21043 else
21044   echo "$as_me: failed program was:" >&5
21045 sed 's/^/| /' conftest.$ac_ext >&5
21046
21047         pgac_cv_type_long_long_int_64=no
21048 fi
21049
21050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21051 else
21052   cat >conftest.$ac_ext <<_ACEOF
21053 /* confdefs.h.  */
21054 _ACEOF
21055 cat confdefs.h >>conftest.$ac_ext
21056 cat >>conftest.$ac_ext <<_ACEOF
21057 /* end confdefs.h.  */
21058 typedef long long int ac_int64;
21059
21060 /*
21061  * These are globals to discourage the compiler from folding all the
21062  * arithmetic tests down to compile-time constants.
21063  */
21064 ac_int64 a = 20000001;
21065 ac_int64 b = 40000005;
21066
21067 int does_int64_work()
21068 {
21069   ac_int64 c,d;
21070
21071   if (sizeof(ac_int64) != 8)
21072     return 0;                   /* definitely not the right size */
21073
21074   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
21075   c = a * b;
21076   d = (c + b) / b;
21077   if (d != a+1)
21078     return 0;
21079   return 1;
21080 }
21081 main() {
21082   exit(! does_int64_work());
21083 }
21084 _ACEOF
21085 rm -f conftest$ac_exeext
21086 if { (ac_try="$ac_link"
21087 case "(($ac_try" in
21088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089   *) ac_try_echo=$ac_try;;
21090 esac
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092   (eval "$ac_link") 2>&5
21093   ac_status=$?
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21096   { (case "(($ac_try" in
21097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098   *) ac_try_echo=$ac_try;;
21099 esac
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101   (eval "$ac_try") 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; }; then
21105   pgac_cv_type_long_long_int_64=yes
21106 else
21107   echo "$as_me: program exited with status $ac_status" >&5
21108 echo "$as_me: failed program was:" >&5
21109 sed 's/^/| /' conftest.$ac_ext >&5
21110
21111 ( exit $ac_status )
21112 pgac_cv_type_long_long_int_64=no
21113 fi
21114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21115 fi
21116
21117
21118 fi
21119 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
21120 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
21121
21122 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
21123 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
21124
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_LONG_LONG_INT_64 1
21127 _ACEOF
21128
21129 fi
21130
21131 fi
21132
21133
21134
21135 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
21136   cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h.  */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h.  */
21142
21143 #define INT64CONST(x)  x##LL
21144 long long int foo = INT64CONST(0x1234567890123456);
21145
21146 int
21147 main ()
21148 {
21149
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext
21155 if { (ac_try="$ac_compile"
21156 case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161   (eval "$ac_compile") 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } && {
21168          test -z "$ac_c_werror_flag" ||
21169          test ! -s conftest.err
21170        } && test -s conftest.$ac_objext; then
21171
21172 cat >>confdefs.h <<\_ACEOF
21173 #define HAVE_LL_CONSTANTS 1
21174 _ACEOF
21175
21176 else
21177   echo "$as_me: failed program was:" >&5
21178 sed 's/^/| /' conftest.$ac_ext >&5
21179
21180
21181 fi
21182
21183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21184 fi
21185
21186
21187 # If we found "long int" is 64 bits, assume snprintf handles it.  If
21188 # we found we need to use "long long int", better check.  We cope with
21189 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
21190 # work, fall back to our own snprintf emulation (which we know uses %lld).
21191
21192 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
21193   if test $pgac_need_repl_snprintf = no; then
21194     { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
21195 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
21196 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
21197   echo $ECHO_N "(cached) $ECHO_C" >&6
21198 else
21199   for pgac_format in '%lld' '%qd' '%I64d'; do
21200 if test "$cross_compiling" = yes; then
21201   pgac_cv_snprintf_long_long_int_format=cross; break
21202 else
21203   cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h.  */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h.  */
21209 #include <stdio.h>
21210 typedef long long int ac_int64;
21211 #define INT64_FORMAT "$pgac_format"
21212
21213 ac_int64 a = 20000001;
21214 ac_int64 b = 40000005;
21215
21216 int does_int64_snprintf_work()
21217 {
21218   ac_int64 c;
21219   char buf[100];
21220
21221   if (sizeof(ac_int64) != 8)
21222     return 0;                   /* doesn't look like the right size */
21223
21224   c = a * b;
21225   snprintf(buf, 100, INT64_FORMAT, c);
21226   if (strcmp(buf, "800000140000005") != 0)
21227     return 0;                   /* either multiply or snprintf is busted */
21228   return 1;
21229 }
21230 main() {
21231   exit(! does_int64_snprintf_work());
21232 }
21233 _ACEOF
21234 rm -f conftest$ac_exeext
21235 if { (ac_try="$ac_link"
21236 case "(($ac_try" in
21237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21238   *) ac_try_echo=$ac_try;;
21239 esac
21240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21241   (eval "$ac_link") 2>&5
21242   ac_status=$?
21243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21245   { (case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250   (eval "$ac_try") 2>&5
21251   ac_status=$?
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); }; }; then
21254   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
21255 else
21256   echo "$as_me: program exited with status $ac_status" >&5
21257 echo "$as_me: failed program was:" >&5
21258 sed 's/^/| /' conftest.$ac_ext >&5
21259
21260 fi
21261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21262 fi
21263
21264
21265 done
21266 fi
21267
21268 LONG_LONG_INT_FORMAT=''
21269
21270 case $pgac_cv_snprintf_long_long_int_format in
21271   cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
21272 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
21273   ?*)    { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
21274 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
21275          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
21276   *)     { echo "$as_me:$LINENO: result: none" >&5
21277 echo "${ECHO_T}none" >&6; };;
21278 esac
21279     if test "$LONG_LONG_INT_FORMAT" = ""; then
21280       # Force usage of our own snprintf, since system snprintf is broken
21281       pgac_need_repl_snprintf=yes
21282       LONG_LONG_INT_FORMAT='%lld'
21283     fi
21284   else
21285     # Here if we previously decided we needed to use our own snprintf
21286     LONG_LONG_INT_FORMAT='%lld'
21287   fi
21288   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
21289   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
21290   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
21291 else
21292   # Here if we are not using 'long long int' at all
21293   INT64_FORMAT='"%ld"'
21294   UINT64_FORMAT='"%lu"'
21295 fi
21296
21297
21298 cat >>confdefs.h <<_ACEOF
21299 #define INT64_FORMAT $INT64_FORMAT
21300 _ACEOF
21301
21302
21303
21304 cat >>confdefs.h <<_ACEOF
21305 #define UINT64_FORMAT $UINT64_FORMAT
21306 _ACEOF
21307
21308
21309 # Now we have checked all the reasons to replace snprintf
21310 if test $pgac_need_repl_snprintf = yes; then
21311
21312 cat >>confdefs.h <<\_ACEOF
21313 #define USE_REPL_SNPRINTF 1
21314 _ACEOF
21315
21316   case " $LIBOBJS " in
21317   *" snprintf.$ac_objext "* ) ;;
21318   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
21319  ;;
21320 esac
21321
21322 fi
21323
21324 # Need a #define for the size of Datum (unsigned long)
21325 { echo "$as_me:$LINENO: checking for unsigned long" >&5
21326 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
21327 if test "${ac_cv_type_unsigned_long+set}" = set; then
21328   echo $ECHO_N "(cached) $ECHO_C" >&6
21329 else
21330   cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336 $ac_includes_default
21337 typedef unsigned long ac__type_new_;
21338 int
21339 main ()
21340 {
21341 if ((ac__type_new_ *) 0)
21342   return 0;
21343 if (sizeof (ac__type_new_))
21344   return 0;
21345   ;
21346   return 0;
21347 }
21348 _ACEOF
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353   *) ac_try_echo=$ac_try;;
21354 esac
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356   (eval "$ac_compile") 2>conftest.er1
21357   ac_status=$?
21358   grep -v '^ *+' conftest.er1 >conftest.err
21359   rm -f conftest.er1
21360   cat conftest.err >&5
21361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362   (exit $ac_status); } && {
21363          test -z "$ac_c_werror_flag" ||
21364          test ! -s conftest.err
21365        } && test -s conftest.$ac_objext; then
21366   ac_cv_type_unsigned_long=yes
21367 else
21368   echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21370
21371         ac_cv_type_unsigned_long=no
21372 fi
21373
21374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21375 fi
21376 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
21377 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
21378
21379 # The cast to long int works around a bug in the HP C Compiler
21380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21382 # This bug is HP SR number 8606223364.
21383 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
21384 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
21385 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
21386   echo $ECHO_N "(cached) $ECHO_C" >&6
21387 else
21388   if test "$cross_compiling" = yes; then
21389   # Depending upon the size, compute the lo and hi bounds.
21390 cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h.  */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h.  */
21396 $ac_includes_default
21397    typedef unsigned long ac__type_sizeof_;
21398 int
21399 main ()
21400 {
21401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21402 test_array [0] = 0
21403
21404   ;
21405   return 0;
21406 }
21407 _ACEOF
21408 rm -f conftest.$ac_objext
21409 if { (ac_try="$ac_compile"
21410 case "(($ac_try" in
21411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412   *) ac_try_echo=$ac_try;;
21413 esac
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415   (eval "$ac_compile") 2>conftest.er1
21416   ac_status=$?
21417   grep -v '^ *+' conftest.er1 >conftest.err
21418   rm -f conftest.er1
21419   cat conftest.err >&5
21420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421   (exit $ac_status); } && {
21422          test -z "$ac_c_werror_flag" ||
21423          test ! -s conftest.err
21424        } && test -s conftest.$ac_objext; then
21425   ac_lo=0 ac_mid=0
21426   while :; do
21427     cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h.  */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h.  */
21433 $ac_includes_default
21434    typedef unsigned long ac__type_sizeof_;
21435 int
21436 main ()
21437 {
21438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21439 test_array [0] = 0
21440
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_compile") 2>conftest.er1
21453   ac_status=$?
21454   grep -v '^ *+' conftest.er1 >conftest.err
21455   rm -f conftest.er1
21456   cat conftest.err >&5
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); } && {
21459          test -z "$ac_c_werror_flag" ||
21460          test ! -s conftest.err
21461        } && test -s conftest.$ac_objext; then
21462   ac_hi=$ac_mid; break
21463 else
21464   echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467         ac_lo=`expr $ac_mid + 1`
21468                         if test $ac_lo -le $ac_mid; then
21469                           ac_lo= ac_hi=
21470                           break
21471                         fi
21472                         ac_mid=`expr 2 '*' $ac_mid + 1`
21473 fi
21474
21475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21476   done
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481         cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h.  */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h.  */
21487 $ac_includes_default
21488    typedef unsigned long ac__type_sizeof_;
21489 int
21490 main ()
21491 {
21492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21493 test_array [0] = 0
21494
21495   ;
21496   return 0;
21497 }
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503   *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506   (eval "$ac_compile") 2>conftest.er1
21507   ac_status=$?
21508   grep -v '^ *+' conftest.er1 >conftest.err
21509   rm -f conftest.er1
21510   cat conftest.err >&5
21511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512   (exit $ac_status); } && {
21513          test -z "$ac_c_werror_flag" ||
21514          test ! -s conftest.err
21515        } && test -s conftest.$ac_objext; then
21516   ac_hi=-1 ac_mid=-1
21517   while :; do
21518     cat >conftest.$ac_ext <<_ACEOF
21519 /* confdefs.h.  */
21520 _ACEOF
21521 cat confdefs.h >>conftest.$ac_ext
21522 cat >>conftest.$ac_ext <<_ACEOF
21523 /* end confdefs.h.  */
21524 $ac_includes_default
21525    typedef unsigned long ac__type_sizeof_;
21526 int
21527 main ()
21528 {
21529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21530 test_array [0] = 0
21531
21532   ;
21533   return 0;
21534 }
21535 _ACEOF
21536 rm -f conftest.$ac_objext
21537 if { (ac_try="$ac_compile"
21538 case "(($ac_try" in
21539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540   *) ac_try_echo=$ac_try;;
21541 esac
21542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21543   (eval "$ac_compile") 2>conftest.er1
21544   ac_status=$?
21545   grep -v '^ *+' conftest.er1 >conftest.err
21546   rm -f conftest.er1
21547   cat conftest.err >&5
21548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549   (exit $ac_status); } && {
21550          test -z "$ac_c_werror_flag" ||
21551          test ! -s conftest.err
21552        } && test -s conftest.$ac_objext; then
21553   ac_lo=$ac_mid; break
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558         ac_hi=`expr '(' $ac_mid ')' - 1`
21559                         if test $ac_mid -le $ac_hi; then
21560                           ac_lo= ac_hi=
21561                           break
21562                         fi
21563                         ac_mid=`expr 2 '*' $ac_mid`
21564 fi
21565
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567   done
21568 else
21569   echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21571
21572         ac_lo= ac_hi=
21573 fi
21574
21575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21576 fi
21577
21578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579 # Binary search between lo and hi bounds.
21580 while test "x$ac_lo" != "x$ac_hi"; do
21581   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21582   cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h.  */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h.  */
21588 $ac_includes_default
21589    typedef unsigned long ac__type_sizeof_;
21590 int
21591 main ()
21592 {
21593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21594 test_array [0] = 0
21595
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 rm -f conftest.$ac_objext
21601 if { (ac_try="$ac_compile"
21602 case "(($ac_try" in
21603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604   *) ac_try_echo=$ac_try;;
21605 esac
21606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21607   (eval "$ac_compile") 2>conftest.er1
21608   ac_status=$?
21609   grep -v '^ *+' conftest.er1 >conftest.err
21610   rm -f conftest.er1
21611   cat conftest.err >&5
21612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613   (exit $ac_status); } && {
21614          test -z "$ac_c_werror_flag" ||
21615          test ! -s conftest.err
21616        } && test -s conftest.$ac_objext; then
21617   ac_hi=$ac_mid
21618 else
21619   echo "$as_me: failed program was:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21621
21622         ac_lo=`expr '(' $ac_mid ')' + 1`
21623 fi
21624
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21626 done
21627 case $ac_lo in
21628 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
21629 '') if test "$ac_cv_type_unsigned_long" = yes; then
21630      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21631 See \`config.log' for more details." >&5
21632 echo "$as_me: error: cannot compute sizeof (unsigned long)
21633 See \`config.log' for more details." >&2;}
21634    { (exit 77); exit 77; }; }
21635    else
21636      ac_cv_sizeof_unsigned_long=0
21637    fi ;;
21638 esac
21639 else
21640   cat >conftest.$ac_ext <<_ACEOF
21641 /* confdefs.h.  */
21642 _ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h.  */
21646 $ac_includes_default
21647    typedef unsigned long ac__type_sizeof_;
21648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21650 #include <stdio.h>
21651 #include <stdlib.h>
21652 int
21653 main ()
21654 {
21655
21656   FILE *f = fopen ("conftest.val", "w");
21657   if (! f)
21658     return 1;
21659   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21660     {
21661       long int i = longval ();
21662       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21663         return 1;
21664       fprintf (f, "%ld\n", i);
21665     }
21666   else
21667     {
21668       unsigned long int i = ulongval ();
21669       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21670         return 1;
21671       fprintf (f, "%lu\n", i);
21672     }
21673   return ferror (f) || fclose (f) != 0;
21674
21675   ;
21676   return 0;
21677 }
21678 _ACEOF
21679 rm -f conftest$ac_exeext
21680 if { (ac_try="$ac_link"
21681 case "(($ac_try" in
21682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683   *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686   (eval "$ac_link") 2>&5
21687   ac_status=$?
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21690   { (case "(($ac_try" in
21691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692   *) ac_try_echo=$ac_try;;
21693 esac
21694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21695   (eval "$ac_try") 2>&5
21696   ac_status=$?
21697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698   (exit $ac_status); }; }; then
21699   ac_cv_sizeof_unsigned_long=`cat conftest.val`
21700 else
21701   echo "$as_me: program exited with status $ac_status" >&5
21702 echo "$as_me: failed program was:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21704
21705 ( exit $ac_status )
21706 if test "$ac_cv_type_unsigned_long" = yes; then
21707      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
21708 See \`config.log' for more details." >&5
21709 echo "$as_me: error: cannot compute sizeof (unsigned long)
21710 See \`config.log' for more details." >&2;}
21711    { (exit 77); exit 77; }; }
21712    else
21713      ac_cv_sizeof_unsigned_long=0
21714    fi
21715 fi
21716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21717 fi
21718 rm -f conftest.val
21719 fi
21720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
21721 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
21722
21723
21724
21725 cat >>confdefs.h <<_ACEOF
21726 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21727 _ACEOF
21728
21729
21730
21731 # And one for the size of size_t (enables tweaks for > 32bit address space)
21732 { echo "$as_me:$LINENO: checking for size_t" >&5
21733 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21734 if test "${ac_cv_type_size_t+set}" = set; then
21735   echo $ECHO_N "(cached) $ECHO_C" >&6
21736 else
21737   cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h.  */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h.  */
21743 $ac_includes_default
21744 typedef size_t ac__type_new_;
21745 int
21746 main ()
21747 {
21748 if ((ac__type_new_ *) 0)
21749   return 0;
21750 if (sizeof (ac__type_new_))
21751   return 0;
21752   ;
21753   return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext
21757 if { (ac_try="$ac_compile"
21758 case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_compile") 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } && {
21770          test -z "$ac_c_werror_flag" ||
21771          test ! -s conftest.err
21772        } && test -s conftest.$ac_objext; then
21773   ac_cv_type_size_t=yes
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778         ac_cv_type_size_t=no
21779 fi
21780
21781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21782 fi
21783 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21784 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21785
21786 # The cast to long int works around a bug in the HP C Compiler
21787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21789 # This bug is HP SR number 8606223364.
21790 { echo "$as_me:$LINENO: checking size of size_t" >&5
21791 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
21792 if test "${ac_cv_sizeof_size_t+set}" = set; then
21793   echo $ECHO_N "(cached) $ECHO_C" >&6
21794 else
21795   if test "$cross_compiling" = yes; then
21796   # Depending upon the size, compute the lo and hi bounds.
21797 cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h.  */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h.  */
21803 $ac_includes_default
21804    typedef size_t ac__type_sizeof_;
21805 int
21806 main ()
21807 {
21808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21809 test_array [0] = 0
21810
21811   ;
21812   return 0;
21813 }
21814 _ACEOF
21815 rm -f conftest.$ac_objext
21816 if { (ac_try="$ac_compile"
21817 case "(($ac_try" in
21818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819   *) ac_try_echo=$ac_try;;
21820 esac
21821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822   (eval "$ac_compile") 2>conftest.er1
21823   ac_status=$?
21824   grep -v '^ *+' conftest.er1 >conftest.err
21825   rm -f conftest.er1
21826   cat conftest.err >&5
21827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828   (exit $ac_status); } && {
21829          test -z "$ac_c_werror_flag" ||
21830          test ! -s conftest.err
21831        } && test -s conftest.$ac_objext; then
21832   ac_lo=0 ac_mid=0
21833   while :; do
21834     cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h.  */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h.  */
21840 $ac_includes_default
21841    typedef size_t ac__type_sizeof_;
21842 int
21843 main ()
21844 {
21845 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21846 test_array [0] = 0
21847
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 rm -f conftest.$ac_objext
21853 if { (ac_try="$ac_compile"
21854 case "(($ac_try" in
21855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21856   *) ac_try_echo=$ac_try;;
21857 esac
21858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21859   (eval "$ac_compile") 2>conftest.er1
21860   ac_status=$?
21861   grep -v '^ *+' conftest.er1 >conftest.err
21862   rm -f conftest.er1
21863   cat conftest.err >&5
21864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865   (exit $ac_status); } && {
21866          test -z "$ac_c_werror_flag" ||
21867          test ! -s conftest.err
21868        } && test -s conftest.$ac_objext; then
21869   ac_hi=$ac_mid; break
21870 else
21871   echo "$as_me: failed program was:" >&5
21872 sed 's/^/| /' conftest.$ac_ext >&5
21873
21874         ac_lo=`expr $ac_mid + 1`
21875                         if test $ac_lo -le $ac_mid; then
21876                           ac_lo= ac_hi=
21877                           break
21878                         fi
21879                         ac_mid=`expr 2 '*' $ac_mid + 1`
21880 fi
21881
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883   done
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888         cat >conftest.$ac_ext <<_ACEOF
21889 /* confdefs.h.  */
21890 _ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h.  */
21894 $ac_includes_default
21895    typedef size_t ac__type_sizeof_;
21896 int
21897 main ()
21898 {
21899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21900 test_array [0] = 0
21901
21902   ;
21903   return 0;
21904 }
21905 _ACEOF
21906 rm -f conftest.$ac_objext
21907 if { (ac_try="$ac_compile"
21908 case "(($ac_try" in
21909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910   *) ac_try_echo=$ac_try;;
21911 esac
21912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21913   (eval "$ac_compile") 2>conftest.er1
21914   ac_status=$?
21915   grep -v '^ *+' conftest.er1 >conftest.err
21916   rm -f conftest.er1
21917   cat conftest.err >&5
21918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919   (exit $ac_status); } && {
21920          test -z "$ac_c_werror_flag" ||
21921          test ! -s conftest.err
21922        } && test -s conftest.$ac_objext; then
21923   ac_hi=-1 ac_mid=-1
21924   while :; do
21925     cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931 $ac_includes_default
21932    typedef size_t ac__type_sizeof_;
21933 int
21934 main ()
21935 {
21936 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21937 test_array [0] = 0
21938
21939   ;
21940   return 0;
21941 }
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (ac_try="$ac_compile"
21945 case "(($ac_try" in
21946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947   *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950   (eval "$ac_compile") 2>conftest.er1
21951   ac_status=$?
21952   grep -v '^ *+' conftest.er1 >conftest.err
21953   rm -f conftest.er1
21954   cat conftest.err >&5
21955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956   (exit $ac_status); } && {
21957          test -z "$ac_c_werror_flag" ||
21958          test ! -s conftest.err
21959        } && test -s conftest.$ac_objext; then
21960   ac_lo=$ac_mid; break
21961 else
21962   echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965         ac_hi=`expr '(' $ac_mid ')' - 1`
21966                         if test $ac_mid -le $ac_hi; then
21967                           ac_lo= ac_hi=
21968                           break
21969                         fi
21970                         ac_mid=`expr 2 '*' $ac_mid`
21971 fi
21972
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974   done
21975 else
21976   echo "$as_me: failed program was:" >&5
21977 sed 's/^/| /' conftest.$ac_ext >&5
21978
21979         ac_lo= ac_hi=
21980 fi
21981
21982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21983 fi
21984
21985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21986 # Binary search between lo and hi bounds.
21987 while test "x$ac_lo" != "x$ac_hi"; do
21988   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21989   cat >conftest.$ac_ext <<_ACEOF
21990 /* confdefs.h.  */
21991 _ACEOF
21992 cat confdefs.h >>conftest.$ac_ext
21993 cat >>conftest.$ac_ext <<_ACEOF
21994 /* end confdefs.h.  */
21995 $ac_includes_default
21996    typedef size_t ac__type_sizeof_;
21997 int
21998 main ()
21999 {
22000 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22001 test_array [0] = 0
22002
22003   ;
22004   return 0;
22005 }
22006 _ACEOF
22007 rm -f conftest.$ac_objext
22008 if { (ac_try="$ac_compile"
22009 case "(($ac_try" in
22010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011   *) ac_try_echo=$ac_try;;
22012 esac
22013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014   (eval "$ac_compile") 2>conftest.er1
22015   ac_status=$?
22016   grep -v '^ *+' conftest.er1 >conftest.err
22017   rm -f conftest.er1
22018   cat conftest.err >&5
22019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020   (exit $ac_status); } && {
22021          test -z "$ac_c_werror_flag" ||
22022          test ! -s conftest.err
22023        } && test -s conftest.$ac_objext; then
22024   ac_hi=$ac_mid
22025 else
22026   echo "$as_me: failed program was:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22028
22029         ac_lo=`expr '(' $ac_mid ')' + 1`
22030 fi
22031
22032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22033 done
22034 case $ac_lo in
22035 ?*) ac_cv_sizeof_size_t=$ac_lo;;
22036 '') if test "$ac_cv_type_size_t" = yes; then
22037      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22038 See \`config.log' for more details." >&5
22039 echo "$as_me: error: cannot compute sizeof (size_t)
22040 See \`config.log' for more details." >&2;}
22041    { (exit 77); exit 77; }; }
22042    else
22043      ac_cv_sizeof_size_t=0
22044    fi ;;
22045 esac
22046 else
22047   cat >conftest.$ac_ext <<_ACEOF
22048 /* confdefs.h.  */
22049 _ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h.  */
22053 $ac_includes_default
22054    typedef size_t ac__type_sizeof_;
22055 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22056 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22057 #include <stdio.h>
22058 #include <stdlib.h>
22059 int
22060 main ()
22061 {
22062
22063   FILE *f = fopen ("conftest.val", "w");
22064   if (! f)
22065     return 1;
22066   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22067     {
22068       long int i = longval ();
22069       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22070         return 1;
22071       fprintf (f, "%ld\n", i);
22072     }
22073   else
22074     {
22075       unsigned long int i = ulongval ();
22076       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22077         return 1;
22078       fprintf (f, "%lu\n", i);
22079     }
22080   return ferror (f) || fclose (f) != 0;
22081
22082   ;
22083   return 0;
22084 }
22085 _ACEOF
22086 rm -f conftest$ac_exeext
22087 if { (ac_try="$ac_link"
22088 case "(($ac_try" in
22089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090   *) ac_try_echo=$ac_try;;
22091 esac
22092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22093   (eval "$ac_link") 2>&5
22094   ac_status=$?
22095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22097   { (case "(($ac_try" in
22098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099   *) ac_try_echo=$ac_try;;
22100 esac
22101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22102   (eval "$ac_try") 2>&5
22103   ac_status=$?
22104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105   (exit $ac_status); }; }; then
22106   ac_cv_sizeof_size_t=`cat conftest.val`
22107 else
22108   echo "$as_me: program exited with status $ac_status" >&5
22109 echo "$as_me: failed program was:" >&5
22110 sed 's/^/| /' conftest.$ac_ext >&5
22111
22112 ( exit $ac_status )
22113 if test "$ac_cv_type_size_t" = yes; then
22114      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
22115 See \`config.log' for more details." >&5
22116 echo "$as_me: error: cannot compute sizeof (size_t)
22117 See \`config.log' for more details." >&2;}
22118    { (exit 77); exit 77; }; }
22119    else
22120      ac_cv_sizeof_size_t=0
22121    fi
22122 fi
22123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22124 fi
22125 rm -f conftest.val
22126 fi
22127 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
22128 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
22129
22130
22131
22132 cat >>confdefs.h <<_ACEOF
22133 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22134 _ACEOF
22135
22136
22137
22138 # Decide whether float4 is passed by value: user-selectable, enabled by default
22139 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
22140 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
22141
22142 pgac_args="$pgac_args enable_float4_byval"
22143
22144 # Check whether --enable-float4-byval was given.
22145 if test "${enable_float4_byval+set}" = set; then
22146   enableval=$enable_float4_byval;
22147   case $enableval in
22148     yes)
22149
22150 cat >>confdefs.h <<\_ACEOF
22151 #define USE_FLOAT4_BYVAL 1
22152 _ACEOF
22153
22154                float4passbyval=true
22155       ;;
22156     no)
22157       float4passbyval=false
22158       ;;
22159     *)
22160       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
22161 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
22162    { (exit 1); exit 1; }; }
22163       ;;
22164   esac
22165
22166 else
22167   enable_float4_byval=yes
22168
22169 cat >>confdefs.h <<\_ACEOF
22170 #define USE_FLOAT4_BYVAL 1
22171 _ACEOF
22172
22173                float4passbyval=true
22174 fi
22175
22176
22177 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
22178 echo "${ECHO_T}$enable_float4_byval" >&6; }
22179
22180 cat >>confdefs.h <<_ACEOF
22181 #define FLOAT4PASSBYVAL $float4passbyval
22182 _ACEOF
22183
22184
22185 # Decide whether float8 is passed by value.
22186 # Note: this setting also controls int8 and related types such as timestamp.
22187 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
22188 # If not, trying to select it is an error.
22189 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
22190 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
22191 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
22192
22193 pgac_args="$pgac_args enable_float8_byval"
22194
22195 # Check whether --enable-float8-byval was given.
22196 if test "${enable_float8_byval+set}" = set; then
22197   enableval=$enable_float8_byval;
22198   case $enableval in
22199     yes)
22200       :
22201       ;;
22202     no)
22203       :
22204       ;;
22205     *)
22206       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22207 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22208    { (exit 1); exit 1; }; }
22209       ;;
22210   esac
22211
22212 else
22213   enable_float8_byval=yes
22214
22215 fi
22216
22217
22218 else
22219
22220 pgac_args="$pgac_args enable_float8_byval"
22221
22222 # Check whether --enable-float8-byval was given.
22223 if test "${enable_float8_byval+set}" = set; then
22224   enableval=$enable_float8_byval;
22225   case $enableval in
22226     yes)
22227       :
22228       ;;
22229     no)
22230       :
22231       ;;
22232     *)
22233       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
22234 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
22235    { (exit 1); exit 1; }; }
22236       ;;
22237   esac
22238
22239 else
22240   enable_float8_byval=no
22241
22242 fi
22243
22244
22245   if test "$enable_float8_byval" = yes ; then
22246     { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
22247 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
22248    { (exit 1); exit 1; }; }
22249   fi
22250 fi
22251 if test "$enable_float8_byval" = yes ; then
22252
22253 cat >>confdefs.h <<\_ACEOF
22254 #define USE_FLOAT8_BYVAL 1
22255 _ACEOF
22256
22257   float8passbyval=true
22258 else
22259   float8passbyval=false
22260 fi
22261 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
22262 echo "${ECHO_T}$enable_float8_byval" >&6; }
22263
22264 cat >>confdefs.h <<_ACEOF
22265 #define FLOAT8PASSBYVAL $float8passbyval
22266 _ACEOF
22267
22268
22269 # Determine memory alignment requirements for the basic C data types.
22270
22271 { echo "$as_me:$LINENO: checking for short" >&5
22272 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
22273 if test "${ac_cv_type_short+set}" = set; then
22274   echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276   cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 $ac_includes_default
22283 typedef short ac__type_new_;
22284 int
22285 main ()
22286 {
22287 if ((ac__type_new_ *) 0)
22288   return 0;
22289 if (sizeof (ac__type_new_))
22290   return 0;
22291   ;
22292   return 0;
22293 }
22294 _ACEOF
22295 rm -f conftest.$ac_objext
22296 if { (ac_try="$ac_compile"
22297 case "(($ac_try" in
22298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22299   *) ac_try_echo=$ac_try;;
22300 esac
22301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22302   (eval "$ac_compile") 2>conftest.er1
22303   ac_status=$?
22304   grep -v '^ *+' conftest.er1 >conftest.err
22305   rm -f conftest.er1
22306   cat conftest.err >&5
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); } && {
22309          test -z "$ac_c_werror_flag" ||
22310          test ! -s conftest.err
22311        } && test -s conftest.$ac_objext; then
22312   ac_cv_type_short=yes
22313 else
22314   echo "$as_me: failed program was:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22316
22317         ac_cv_type_short=no
22318 fi
22319
22320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22321 fi
22322 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22323 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22324
22325 # The cast to long int works around a bug in the HP C Compiler,
22326 # see AC_CHECK_SIZEOF for more information.
22327 { echo "$as_me:$LINENO: checking alignment of short" >&5
22328 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
22329 if test "${ac_cv_alignof_short+set}" = set; then
22330   echo $ECHO_N "(cached) $ECHO_C" >&6
22331 else
22332   if test "$cross_compiling" = yes; then
22333   # Depending upon the size, compute the lo and hi bounds.
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h.  */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h.  */
22340 $ac_includes_default
22341 #ifndef offsetof
22342 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22343 #endif
22344 typedef struct { char x; short y; } ac__type_alignof_;
22345 int
22346 main ()
22347 {
22348 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22349 test_array [0] = 0
22350
22351   ;
22352   return 0;
22353 }
22354 _ACEOF
22355 rm -f conftest.$ac_objext
22356 if { (ac_try="$ac_compile"
22357 case "(($ac_try" in
22358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359   *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362   (eval "$ac_compile") 2>conftest.er1
22363   ac_status=$?
22364   grep -v '^ *+' conftest.er1 >conftest.err
22365   rm -f conftest.er1
22366   cat conftest.err >&5
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); } && {
22369          test -z "$ac_c_werror_flag" ||
22370          test ! -s conftest.err
22371        } && test -s conftest.$ac_objext; then
22372   ac_lo=0 ac_mid=0
22373   while :; do
22374     cat >conftest.$ac_ext <<_ACEOF
22375 /* confdefs.h.  */
22376 _ACEOF
22377 cat confdefs.h >>conftest.$ac_ext
22378 cat >>conftest.$ac_ext <<_ACEOF
22379 /* end confdefs.h.  */
22380 $ac_includes_default
22381 #ifndef offsetof
22382 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22383 #endif
22384 typedef struct { char x; short y; } ac__type_alignof_;
22385 int
22386 main ()
22387 {
22388 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22389 test_array [0] = 0
22390
22391   ;
22392   return 0;
22393 }
22394 _ACEOF
22395 rm -f conftest.$ac_objext
22396 if { (ac_try="$ac_compile"
22397 case "(($ac_try" in
22398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399   *) ac_try_echo=$ac_try;;
22400 esac
22401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22402   (eval "$ac_compile") 2>conftest.er1
22403   ac_status=$?
22404   grep -v '^ *+' conftest.er1 >conftest.err
22405   rm -f conftest.er1
22406   cat conftest.err >&5
22407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408   (exit $ac_status); } && {
22409          test -z "$ac_c_werror_flag" ||
22410          test ! -s conftest.err
22411        } && test -s conftest.$ac_objext; then
22412   ac_hi=$ac_mid; break
22413 else
22414   echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.$ac_ext >&5
22416
22417         ac_lo=`expr $ac_mid + 1`
22418                         if test $ac_lo -le $ac_mid; then
22419                           ac_lo= ac_hi=
22420                           break
22421                         fi
22422                         ac_mid=`expr 2 '*' $ac_mid + 1`
22423 fi
22424
22425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22426   done
22427 else
22428   echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22430
22431         cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h.  */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h.  */
22437 $ac_includes_default
22438 #ifndef offsetof
22439 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22440 #endif
22441 typedef struct { char x; short y; } ac__type_alignof_;
22442 int
22443 main ()
22444 {
22445 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22446 test_array [0] = 0
22447
22448   ;
22449   return 0;
22450 }
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456   *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459   (eval "$ac_compile") 2>conftest.er1
22460   ac_status=$?
22461   grep -v '^ *+' conftest.er1 >conftest.err
22462   rm -f conftest.er1
22463   cat conftest.err >&5
22464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465   (exit $ac_status); } && {
22466          test -z "$ac_c_werror_flag" ||
22467          test ! -s conftest.err
22468        } && test -s conftest.$ac_objext; then
22469   ac_hi=-1 ac_mid=-1
22470   while :; do
22471     cat >conftest.$ac_ext <<_ACEOF
22472 /* confdefs.h.  */
22473 _ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h.  */
22477 $ac_includes_default
22478 #ifndef offsetof
22479 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22480 #endif
22481 typedef struct { char x; short y; } ac__type_alignof_;
22482 int
22483 main ()
22484 {
22485 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22486 test_array [0] = 0
22487
22488   ;
22489   return 0;
22490 }
22491 _ACEOF
22492 rm -f conftest.$ac_objext
22493 if { (ac_try="$ac_compile"
22494 case "(($ac_try" in
22495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22496   *) ac_try_echo=$ac_try;;
22497 esac
22498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22499   (eval "$ac_compile") 2>conftest.er1
22500   ac_status=$?
22501   grep -v '^ *+' conftest.er1 >conftest.err
22502   rm -f conftest.er1
22503   cat conftest.err >&5
22504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505   (exit $ac_status); } && {
22506          test -z "$ac_c_werror_flag" ||
22507          test ! -s conftest.err
22508        } && test -s conftest.$ac_objext; then
22509   ac_lo=$ac_mid; break
22510 else
22511   echo "$as_me: failed program was:" >&5
22512 sed 's/^/| /' conftest.$ac_ext >&5
22513
22514         ac_hi=`expr '(' $ac_mid ')' - 1`
22515                         if test $ac_mid -le $ac_hi; then
22516                           ac_lo= ac_hi=
22517                           break
22518                         fi
22519                         ac_mid=`expr 2 '*' $ac_mid`
22520 fi
22521
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22523   done
22524 else
22525   echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22527
22528         ac_lo= ac_hi=
22529 fi
22530
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 fi
22533
22534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22535 # Binary search between lo and hi bounds.
22536 while test "x$ac_lo" != "x$ac_hi"; do
22537   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22538   cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h.  */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h.  */
22544 $ac_includes_default
22545 #ifndef offsetof
22546 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22547 #endif
22548 typedef struct { char x; short y; } ac__type_alignof_;
22549 int
22550 main ()
22551 {
22552 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22553 test_array [0] = 0
22554
22555   ;
22556   return 0;
22557 }
22558 _ACEOF
22559 rm -f conftest.$ac_objext
22560 if { (ac_try="$ac_compile"
22561 case "(($ac_try" in
22562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563   *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566   (eval "$ac_compile") 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } && {
22573          test -z "$ac_c_werror_flag" ||
22574          test ! -s conftest.err
22575        } && test -s conftest.$ac_objext; then
22576   ac_hi=$ac_mid
22577 else
22578   echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22580
22581         ac_lo=`expr '(' $ac_mid ')' + 1`
22582 fi
22583
22584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22585 done
22586 case $ac_lo in
22587 ?*) ac_cv_alignof_short=$ac_lo;;
22588 '') if test "$ac_cv_type_short" = yes; then
22589      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22590 See \`config.log' for more details." >&5
22591 echo "$as_me: error: cannot compute alignment of short
22592 See \`config.log' for more details." >&2;}
22593    { (exit 77); exit 77; }; }
22594    else
22595      ac_cv_alignof_short=0
22596    fi ;;
22597 esac
22598 else
22599   cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605 $ac_includes_default
22606 #ifndef offsetof
22607 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22608 #endif
22609 typedef struct { char x; short y; } ac__type_alignof_;
22610 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22611 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22612 #include <stdio.h>
22613 #include <stdlib.h>
22614 int
22615 main ()
22616 {
22617
22618   FILE *f = fopen ("conftest.val", "w");
22619   if (! f)
22620     return 1;
22621   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22622     {
22623       long int i = longval ();
22624       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22625         return 1;
22626       fprintf (f, "%ld\n", i);
22627     }
22628   else
22629     {
22630       unsigned long int i = ulongval ();
22631       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22632         return 1;
22633       fprintf (f, "%lu\n", i);
22634     }
22635   return ferror (f) || fclose (f) != 0;
22636
22637   ;
22638   return 0;
22639 }
22640 _ACEOF
22641 rm -f conftest$ac_exeext
22642 if { (ac_try="$ac_link"
22643 case "(($ac_try" in
22644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645   *) ac_try_echo=$ac_try;;
22646 esac
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648   (eval "$ac_link") 2>&5
22649   ac_status=$?
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22652   { (case "(($ac_try" in
22653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654   *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657   (eval "$ac_try") 2>&5
22658   ac_status=$?
22659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660   (exit $ac_status); }; }; then
22661   ac_cv_alignof_short=`cat conftest.val`
22662 else
22663   echo "$as_me: program exited with status $ac_status" >&5
22664 echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667 ( exit $ac_status )
22668 if test "$ac_cv_type_short" = yes; then
22669      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
22670 See \`config.log' for more details." >&5
22671 echo "$as_me: error: cannot compute alignment of short
22672 See \`config.log' for more details." >&2;}
22673    { (exit 77); exit 77; }; }
22674    else
22675      ac_cv_alignof_short=0
22676    fi
22677 fi
22678 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22679 fi
22680 rm -f conftest.val
22681 fi
22682 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
22683 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
22684
22685
22686
22687 cat >>confdefs.h <<_ACEOF
22688 #define ALIGNOF_SHORT $ac_cv_alignof_short
22689 _ACEOF
22690
22691
22692 { echo "$as_me:$LINENO: checking for int" >&5
22693 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22694 if test "${ac_cv_type_int+set}" = set; then
22695   echo $ECHO_N "(cached) $ECHO_C" >&6
22696 else
22697   cat >conftest.$ac_ext <<_ACEOF
22698 /* confdefs.h.  */
22699 _ACEOF
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h.  */
22703 $ac_includes_default
22704 typedef int ac__type_new_;
22705 int
22706 main ()
22707 {
22708 if ((ac__type_new_ *) 0)
22709   return 0;
22710 if (sizeof (ac__type_new_))
22711   return 0;
22712   ;
22713   return 0;
22714 }
22715 _ACEOF
22716 rm -f conftest.$ac_objext
22717 if { (ac_try="$ac_compile"
22718 case "(($ac_try" in
22719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22720   *) ac_try_echo=$ac_try;;
22721 esac
22722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22723   (eval "$ac_compile") 2>conftest.er1
22724   ac_status=$?
22725   grep -v '^ *+' conftest.er1 >conftest.err
22726   rm -f conftest.er1
22727   cat conftest.err >&5
22728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22729   (exit $ac_status); } && {
22730          test -z "$ac_c_werror_flag" ||
22731          test ! -s conftest.err
22732        } && test -s conftest.$ac_objext; then
22733   ac_cv_type_int=yes
22734 else
22735   echo "$as_me: failed program was:" >&5
22736 sed 's/^/| /' conftest.$ac_ext >&5
22737
22738         ac_cv_type_int=no
22739 fi
22740
22741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22742 fi
22743 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22744 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22745
22746 # The cast to long int works around a bug in the HP C Compiler,
22747 # see AC_CHECK_SIZEOF for more information.
22748 { echo "$as_me:$LINENO: checking alignment of int" >&5
22749 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
22750 if test "${ac_cv_alignof_int+set}" = set; then
22751   echo $ECHO_N "(cached) $ECHO_C" >&6
22752 else
22753   if test "$cross_compiling" = yes; then
22754   # Depending upon the size, compute the lo and hi bounds.
22755 cat >conftest.$ac_ext <<_ACEOF
22756 /* confdefs.h.  */
22757 _ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h.  */
22761 $ac_includes_default
22762 #ifndef offsetof
22763 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22764 #endif
22765 typedef struct { char x; int y; } ac__type_alignof_;
22766 int
22767 main ()
22768 {
22769 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22770 test_array [0] = 0
22771
22772   ;
22773   return 0;
22774 }
22775 _ACEOF
22776 rm -f conftest.$ac_objext
22777 if { (ac_try="$ac_compile"
22778 case "(($ac_try" in
22779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780   *) ac_try_echo=$ac_try;;
22781 esac
22782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22783   (eval "$ac_compile") 2>conftest.er1
22784   ac_status=$?
22785   grep -v '^ *+' conftest.er1 >conftest.err
22786   rm -f conftest.er1
22787   cat conftest.err >&5
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); } && {
22790          test -z "$ac_c_werror_flag" ||
22791          test ! -s conftest.err
22792        } && test -s conftest.$ac_objext; then
22793   ac_lo=0 ac_mid=0
22794   while :; do
22795     cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 $ac_includes_default
22802 #ifndef offsetof
22803 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22804 #endif
22805 typedef struct { char x; int y; } ac__type_alignof_;
22806 int
22807 main ()
22808 {
22809 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22810 test_array [0] = 0
22811
22812   ;
22813   return 0;
22814 }
22815 _ACEOF
22816 rm -f conftest.$ac_objext
22817 if { (ac_try="$ac_compile"
22818 case "(($ac_try" in
22819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820   *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823   (eval "$ac_compile") 2>conftest.er1
22824   ac_status=$?
22825   grep -v '^ *+' conftest.er1 >conftest.err
22826   rm -f conftest.er1
22827   cat conftest.err >&5
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); } && {
22830          test -z "$ac_c_werror_flag" ||
22831          test ! -s conftest.err
22832        } && test -s conftest.$ac_objext; then
22833   ac_hi=$ac_mid; break
22834 else
22835   echo "$as_me: failed program was:" >&5
22836 sed 's/^/| /' conftest.$ac_ext >&5
22837
22838         ac_lo=`expr $ac_mid + 1`
22839                         if test $ac_lo -le $ac_mid; then
22840                           ac_lo= ac_hi=
22841                           break
22842                         fi
22843                         ac_mid=`expr 2 '*' $ac_mid + 1`
22844 fi
22845
22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22847   done
22848 else
22849   echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852         cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h.  */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
22857 /* end confdefs.h.  */
22858 $ac_includes_default
22859 #ifndef offsetof
22860 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22861 #endif
22862 typedef struct { char x; int y; } ac__type_alignof_;
22863 int
22864 main ()
22865 {
22866 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22867 test_array [0] = 0
22868
22869   ;
22870   return 0;
22871 }
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877   *) ac_try_echo=$ac_try;;
22878 esac
22879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22880   (eval "$ac_compile") 2>conftest.er1
22881   ac_status=$?
22882   grep -v '^ *+' conftest.er1 >conftest.err
22883   rm -f conftest.er1
22884   cat conftest.err >&5
22885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886   (exit $ac_status); } && {
22887          test -z "$ac_c_werror_flag" ||
22888          test ! -s conftest.err
22889        } && test -s conftest.$ac_objext; then
22890   ac_hi=-1 ac_mid=-1
22891   while :; do
22892     cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h.  */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h.  */
22898 $ac_includes_default
22899 #ifndef offsetof
22900 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22901 #endif
22902 typedef struct { char x; int y; } ac__type_alignof_;
22903 int
22904 main ()
22905 {
22906 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22907 test_array [0] = 0
22908
22909   ;
22910   return 0;
22911 }
22912 _ACEOF
22913 rm -f conftest.$ac_objext
22914 if { (ac_try="$ac_compile"
22915 case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_compile") 2>conftest.er1
22921   ac_status=$?
22922   grep -v '^ *+' conftest.er1 >conftest.err
22923   rm -f conftest.er1
22924   cat conftest.err >&5
22925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926   (exit $ac_status); } && {
22927          test -z "$ac_c_werror_flag" ||
22928          test ! -s conftest.err
22929        } && test -s conftest.$ac_objext; then
22930   ac_lo=$ac_mid; break
22931 else
22932   echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22934
22935         ac_hi=`expr '(' $ac_mid ')' - 1`
22936                         if test $ac_mid -le $ac_hi; then
22937                           ac_lo= ac_hi=
22938                           break
22939                         fi
22940                         ac_mid=`expr 2 '*' $ac_mid`
22941 fi
22942
22943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22944   done
22945 else
22946   echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.$ac_ext >&5
22948
22949         ac_lo= ac_hi=
22950 fi
22951
22952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22953 fi
22954
22955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22956 # Binary search between lo and hi bounds.
22957 while test "x$ac_lo" != "x$ac_hi"; do
22958   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22959   cat >conftest.$ac_ext <<_ACEOF
22960 /* confdefs.h.  */
22961 _ACEOF
22962 cat confdefs.h >>conftest.$ac_ext
22963 cat >>conftest.$ac_ext <<_ACEOF
22964 /* end confdefs.h.  */
22965 $ac_includes_default
22966 #ifndef offsetof
22967 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22968 #endif
22969 typedef struct { char x; int y; } ac__type_alignof_;
22970 int
22971 main ()
22972 {
22973 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22974 test_array [0] = 0
22975
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 rm -f conftest.$ac_objext
22981 if { (ac_try="$ac_compile"
22982 case "(($ac_try" in
22983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984   *) ac_try_echo=$ac_try;;
22985 esac
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987   (eval "$ac_compile") 2>conftest.er1
22988   ac_status=$?
22989   grep -v '^ *+' conftest.er1 >conftest.err
22990   rm -f conftest.er1
22991   cat conftest.err >&5
22992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993   (exit $ac_status); } && {
22994          test -z "$ac_c_werror_flag" ||
22995          test ! -s conftest.err
22996        } && test -s conftest.$ac_objext; then
22997   ac_hi=$ac_mid
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002         ac_lo=`expr '(' $ac_mid ')' + 1`
23003 fi
23004
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 done
23007 case $ac_lo in
23008 ?*) ac_cv_alignof_int=$ac_lo;;
23009 '') if test "$ac_cv_type_int" = yes; then
23010      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23011 See \`config.log' for more details." >&5
23012 echo "$as_me: error: cannot compute alignment of int
23013 See \`config.log' for more details." >&2;}
23014    { (exit 77); exit 77; }; }
23015    else
23016      ac_cv_alignof_int=0
23017    fi ;;
23018 esac
23019 else
23020   cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026 $ac_includes_default
23027 #ifndef offsetof
23028 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23029 #endif
23030 typedef struct { char x; int y; } ac__type_alignof_;
23031 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23032 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23033 #include <stdio.h>
23034 #include <stdlib.h>
23035 int
23036 main ()
23037 {
23038
23039   FILE *f = fopen ("conftest.val", "w");
23040   if (! f)
23041     return 1;
23042   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23043     {
23044       long int i = longval ();
23045       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23046         return 1;
23047       fprintf (f, "%ld\n", i);
23048     }
23049   else
23050     {
23051       unsigned long int i = ulongval ();
23052       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23053         return 1;
23054       fprintf (f, "%lu\n", i);
23055     }
23056   return ferror (f) || fclose (f) != 0;
23057
23058   ;
23059   return 0;
23060 }
23061 _ACEOF
23062 rm -f conftest$ac_exeext
23063 if { (ac_try="$ac_link"
23064 case "(($ac_try" in
23065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066   *) ac_try_echo=$ac_try;;
23067 esac
23068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23069   (eval "$ac_link") 2>&5
23070   ac_status=$?
23071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23073   { (case "(($ac_try" in
23074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23075   *) ac_try_echo=$ac_try;;
23076 esac
23077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23078   (eval "$ac_try") 2>&5
23079   ac_status=$?
23080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081   (exit $ac_status); }; }; then
23082   ac_cv_alignof_int=`cat conftest.val`
23083 else
23084   echo "$as_me: program exited with status $ac_status" >&5
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23087
23088 ( exit $ac_status )
23089 if test "$ac_cv_type_int" = yes; then
23090      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
23091 See \`config.log' for more details." >&5
23092 echo "$as_me: error: cannot compute alignment of int
23093 See \`config.log' for more details." >&2;}
23094    { (exit 77); exit 77; }; }
23095    else
23096      ac_cv_alignof_int=0
23097    fi
23098 fi
23099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23100 fi
23101 rm -f conftest.val
23102 fi
23103 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
23104 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
23105
23106
23107
23108 cat >>confdefs.h <<_ACEOF
23109 #define ALIGNOF_INT $ac_cv_alignof_int
23110 _ACEOF
23111
23112
23113 { echo "$as_me:$LINENO: checking for long" >&5
23114 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23115 if test "${ac_cv_type_long+set}" = set; then
23116   echo $ECHO_N "(cached) $ECHO_C" >&6
23117 else
23118   cat >conftest.$ac_ext <<_ACEOF
23119 /* confdefs.h.  */
23120 _ACEOF
23121 cat confdefs.h >>conftest.$ac_ext
23122 cat >>conftest.$ac_ext <<_ACEOF
23123 /* end confdefs.h.  */
23124 $ac_includes_default
23125 typedef long ac__type_new_;
23126 int
23127 main ()
23128 {
23129 if ((ac__type_new_ *) 0)
23130   return 0;
23131 if (sizeof (ac__type_new_))
23132   return 0;
23133   ;
23134   return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest.$ac_objext
23138 if { (ac_try="$ac_compile"
23139 case "(($ac_try" in
23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141   *) ac_try_echo=$ac_try;;
23142 esac
23143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23144   (eval "$ac_compile") 2>conftest.er1
23145   ac_status=$?
23146   grep -v '^ *+' conftest.er1 >conftest.err
23147   rm -f conftest.er1
23148   cat conftest.err >&5
23149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150   (exit $ac_status); } && {
23151          test -z "$ac_c_werror_flag" ||
23152          test ! -s conftest.err
23153        } && test -s conftest.$ac_objext; then
23154   ac_cv_type_long=yes
23155 else
23156   echo "$as_me: failed program was:" >&5
23157 sed 's/^/| /' conftest.$ac_ext >&5
23158
23159         ac_cv_type_long=no
23160 fi
23161
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 fi
23164 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23165 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23166
23167 # The cast to long int works around a bug in the HP C Compiler,
23168 # see AC_CHECK_SIZEOF for more information.
23169 { echo "$as_me:$LINENO: checking alignment of long" >&5
23170 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
23171 if test "${ac_cv_alignof_long+set}" = set; then
23172   echo $ECHO_N "(cached) $ECHO_C" >&6
23173 else
23174   if test "$cross_compiling" = yes; then
23175   # Depending upon the size, compute the lo and hi bounds.
23176 cat >conftest.$ac_ext <<_ACEOF
23177 /* confdefs.h.  */
23178 _ACEOF
23179 cat confdefs.h >>conftest.$ac_ext
23180 cat >>conftest.$ac_ext <<_ACEOF
23181 /* end confdefs.h.  */
23182 $ac_includes_default
23183 #ifndef offsetof
23184 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23185 #endif
23186 typedef struct { char x; long y; } ac__type_alignof_;
23187 int
23188 main ()
23189 {
23190 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23191 test_array [0] = 0
23192
23193   ;
23194   return 0;
23195 }
23196 _ACEOF
23197 rm -f conftest.$ac_objext
23198 if { (ac_try="$ac_compile"
23199 case "(($ac_try" in
23200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201   *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204   (eval "$ac_compile") 2>conftest.er1
23205   ac_status=$?
23206   grep -v '^ *+' conftest.er1 >conftest.err
23207   rm -f conftest.er1
23208   cat conftest.err >&5
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } && {
23211          test -z "$ac_c_werror_flag" ||
23212          test ! -s conftest.err
23213        } && test -s conftest.$ac_objext; then
23214   ac_lo=0 ac_mid=0
23215   while :; do
23216     cat >conftest.$ac_ext <<_ACEOF
23217 /* confdefs.h.  */
23218 _ACEOF
23219 cat confdefs.h >>conftest.$ac_ext
23220 cat >>conftest.$ac_ext <<_ACEOF
23221 /* end confdefs.h.  */
23222 $ac_includes_default
23223 #ifndef offsetof
23224 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23225 #endif
23226 typedef struct { char x; long y; } ac__type_alignof_;
23227 int
23228 main ()
23229 {
23230 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23231 test_array [0] = 0
23232
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 rm -f conftest.$ac_objext
23238 if { (ac_try="$ac_compile"
23239 case "(($ac_try" in
23240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23241   *) ac_try_echo=$ac_try;;
23242 esac
23243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23244   (eval "$ac_compile") 2>conftest.er1
23245   ac_status=$?
23246   grep -v '^ *+' conftest.er1 >conftest.err
23247   rm -f conftest.er1
23248   cat conftest.err >&5
23249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250   (exit $ac_status); } && {
23251          test -z "$ac_c_werror_flag" ||
23252          test ! -s conftest.err
23253        } && test -s conftest.$ac_objext; then
23254   ac_hi=$ac_mid; break
23255 else
23256   echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.$ac_ext >&5
23258
23259         ac_lo=`expr $ac_mid + 1`
23260                         if test $ac_lo -le $ac_mid; then
23261                           ac_lo= ac_hi=
23262                           break
23263                         fi
23264                         ac_mid=`expr 2 '*' $ac_mid + 1`
23265 fi
23266
23267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268   done
23269 else
23270   echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23272
23273         cat >conftest.$ac_ext <<_ACEOF
23274 /* confdefs.h.  */
23275 _ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h.  */
23279 $ac_includes_default
23280 #ifndef offsetof
23281 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23282 #endif
23283 typedef struct { char x; long y; } ac__type_alignof_;
23284 int
23285 main ()
23286 {
23287 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23288 test_array [0] = 0
23289
23290   ;
23291   return 0;
23292 }
23293 _ACEOF
23294 rm -f conftest.$ac_objext
23295 if { (ac_try="$ac_compile"
23296 case "(($ac_try" in
23297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23298   *) ac_try_echo=$ac_try;;
23299 esac
23300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23301   (eval "$ac_compile") 2>conftest.er1
23302   ac_status=$?
23303   grep -v '^ *+' conftest.er1 >conftest.err
23304   rm -f conftest.er1
23305   cat conftest.err >&5
23306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307   (exit $ac_status); } && {
23308          test -z "$ac_c_werror_flag" ||
23309          test ! -s conftest.err
23310        } && test -s conftest.$ac_objext; then
23311   ac_hi=-1 ac_mid=-1
23312   while :; do
23313     cat >conftest.$ac_ext <<_ACEOF
23314 /* confdefs.h.  */
23315 _ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h.  */
23319 $ac_includes_default
23320 #ifndef offsetof
23321 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23322 #endif
23323 typedef struct { char x; long y; } ac__type_alignof_;
23324 int
23325 main ()
23326 {
23327 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23328 test_array [0] = 0
23329
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338   *) ac_try_echo=$ac_try;;
23339 esac
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341   (eval "$ac_compile") 2>conftest.er1
23342   ac_status=$?
23343   grep -v '^ *+' conftest.er1 >conftest.err
23344   rm -f conftest.er1
23345   cat conftest.err >&5
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); } && {
23348          test -z "$ac_c_werror_flag" ||
23349          test ! -s conftest.err
23350        } && test -s conftest.$ac_objext; then
23351   ac_lo=$ac_mid; break
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356         ac_hi=`expr '(' $ac_mid ')' - 1`
23357                         if test $ac_mid -le $ac_hi; then
23358                           ac_lo= ac_hi=
23359                           break
23360                         fi
23361                         ac_mid=`expr 2 '*' $ac_mid`
23362 fi
23363
23364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23365   done
23366 else
23367   echo "$as_me: failed program was:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23369
23370         ac_lo= ac_hi=
23371 fi
23372
23373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 fi
23375
23376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23377 # Binary search between lo and hi bounds.
23378 while test "x$ac_lo" != "x$ac_hi"; do
23379   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23380   cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386 $ac_includes_default
23387 #ifndef offsetof
23388 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23389 #endif
23390 typedef struct { char x; long y; } ac__type_alignof_;
23391 int
23392 main ()
23393 {
23394 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23395 test_array [0] = 0
23396
23397   ;
23398   return 0;
23399 }
23400 _ACEOF
23401 rm -f conftest.$ac_objext
23402 if { (ac_try="$ac_compile"
23403 case "(($ac_try" in
23404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405   *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408   (eval "$ac_compile") 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } && {
23415          test -z "$ac_c_werror_flag" ||
23416          test ! -s conftest.err
23417        } && test -s conftest.$ac_objext; then
23418   ac_hi=$ac_mid
23419 else
23420   echo "$as_me: failed program was:" >&5
23421 sed 's/^/| /' conftest.$ac_ext >&5
23422
23423         ac_lo=`expr '(' $ac_mid ')' + 1`
23424 fi
23425
23426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23427 done
23428 case $ac_lo in
23429 ?*) ac_cv_alignof_long=$ac_lo;;
23430 '') if test "$ac_cv_type_long" = yes; then
23431      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23432 See \`config.log' for more details." >&5
23433 echo "$as_me: error: cannot compute alignment of long
23434 See \`config.log' for more details." >&2;}
23435    { (exit 77); exit 77; }; }
23436    else
23437      ac_cv_alignof_long=0
23438    fi ;;
23439 esac
23440 else
23441   cat >conftest.$ac_ext <<_ACEOF
23442 /* confdefs.h.  */
23443 _ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h.  */
23447 $ac_includes_default
23448 #ifndef offsetof
23449 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23450 #endif
23451 typedef struct { char x; long y; } ac__type_alignof_;
23452 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23453 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23454 #include <stdio.h>
23455 #include <stdlib.h>
23456 int
23457 main ()
23458 {
23459
23460   FILE *f = fopen ("conftest.val", "w");
23461   if (! f)
23462     return 1;
23463   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23464     {
23465       long int i = longval ();
23466       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23467         return 1;
23468       fprintf (f, "%ld\n", i);
23469     }
23470   else
23471     {
23472       unsigned long int i = ulongval ();
23473       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23474         return 1;
23475       fprintf (f, "%lu\n", i);
23476     }
23477   return ferror (f) || fclose (f) != 0;
23478
23479   ;
23480   return 0;
23481 }
23482 _ACEOF
23483 rm -f conftest$ac_exeext
23484 if { (ac_try="$ac_link"
23485 case "(($ac_try" in
23486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23487   *) ac_try_echo=$ac_try;;
23488 esac
23489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23490   (eval "$ac_link") 2>&5
23491   ac_status=$?
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23494   { (case "(($ac_try" in
23495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23496   *) ac_try_echo=$ac_try;;
23497 esac
23498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23499   (eval "$ac_try") 2>&5
23500   ac_status=$?
23501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23502   (exit $ac_status); }; }; then
23503   ac_cv_alignof_long=`cat conftest.val`
23504 else
23505   echo "$as_me: program exited with status $ac_status" >&5
23506 echo "$as_me: failed program was:" >&5
23507 sed 's/^/| /' conftest.$ac_ext >&5
23508
23509 ( exit $ac_status )
23510 if test "$ac_cv_type_long" = yes; then
23511      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
23512 See \`config.log' for more details." >&5
23513 echo "$as_me: error: cannot compute alignment of long
23514 See \`config.log' for more details." >&2;}
23515    { (exit 77); exit 77; }; }
23516    else
23517      ac_cv_alignof_long=0
23518    fi
23519 fi
23520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23521 fi
23522 rm -f conftest.val
23523 fi
23524 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
23525 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
23526
23527
23528
23529 cat >>confdefs.h <<_ACEOF
23530 #define ALIGNOF_LONG $ac_cv_alignof_long
23531 _ACEOF
23532
23533
23534 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
23535   { echo "$as_me:$LINENO: checking for long long int" >&5
23536 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
23537 if test "${ac_cv_type_long_long_int+set}" = set; then
23538   echo $ECHO_N "(cached) $ECHO_C" >&6
23539 else
23540   cat >conftest.$ac_ext <<_ACEOF
23541 /* confdefs.h.  */
23542 _ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h.  */
23546 $ac_includes_default
23547 typedef long long int ac__type_new_;
23548 int
23549 main ()
23550 {
23551 if ((ac__type_new_ *) 0)
23552   return 0;
23553 if (sizeof (ac__type_new_))
23554   return 0;
23555   ;
23556   return 0;
23557 }
23558 _ACEOF
23559 rm -f conftest.$ac_objext
23560 if { (ac_try="$ac_compile"
23561 case "(($ac_try" in
23562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23563   *) ac_try_echo=$ac_try;;
23564 esac
23565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23566   (eval "$ac_compile") 2>conftest.er1
23567   ac_status=$?
23568   grep -v '^ *+' conftest.er1 >conftest.err
23569   rm -f conftest.er1
23570   cat conftest.err >&5
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); } && {
23573          test -z "$ac_c_werror_flag" ||
23574          test ! -s conftest.err
23575        } && test -s conftest.$ac_objext; then
23576   ac_cv_type_long_long_int=yes
23577 else
23578   echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.$ac_ext >&5
23580
23581         ac_cv_type_long_long_int=no
23582 fi
23583
23584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23585 fi
23586 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
23587 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
23588
23589 # The cast to long int works around a bug in the HP C Compiler,
23590 # see AC_CHECK_SIZEOF for more information.
23591 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
23592 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
23593 if test "${ac_cv_alignof_long_long_int+set}" = set; then
23594   echo $ECHO_N "(cached) $ECHO_C" >&6
23595 else
23596   if test "$cross_compiling" = yes; then
23597   # Depending upon the size, compute the lo and hi bounds.
23598 cat >conftest.$ac_ext <<_ACEOF
23599 /* confdefs.h.  */
23600 _ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h.  */
23604 $ac_includes_default
23605 #ifndef offsetof
23606 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23607 #endif
23608 typedef struct { char x; long long int y; } ac__type_alignof_;
23609 int
23610 main ()
23611 {
23612 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23613 test_array [0] = 0
23614
23615   ;
23616   return 0;
23617 }
23618 _ACEOF
23619 rm -f conftest.$ac_objext
23620 if { (ac_try="$ac_compile"
23621 case "(($ac_try" in
23622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623   *) ac_try_echo=$ac_try;;
23624 esac
23625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23626   (eval "$ac_compile") 2>conftest.er1
23627   ac_status=$?
23628   grep -v '^ *+' conftest.er1 >conftest.err
23629   rm -f conftest.er1
23630   cat conftest.err >&5
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); } && {
23633          test -z "$ac_c_werror_flag" ||
23634          test ! -s conftest.err
23635        } && test -s conftest.$ac_objext; then
23636   ac_lo=0 ac_mid=0
23637   while :; do
23638     cat >conftest.$ac_ext <<_ACEOF
23639 /* confdefs.h.  */
23640 _ACEOF
23641 cat confdefs.h >>conftest.$ac_ext
23642 cat >>conftest.$ac_ext <<_ACEOF
23643 /* end confdefs.h.  */
23644 $ac_includes_default
23645 #ifndef offsetof
23646 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23647 #endif
23648 typedef struct { char x; long long int y; } ac__type_alignof_;
23649 int
23650 main ()
23651 {
23652 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23653 test_array [0] = 0
23654
23655   ;
23656   return 0;
23657 }
23658 _ACEOF
23659 rm -f conftest.$ac_objext
23660 if { (ac_try="$ac_compile"
23661 case "(($ac_try" in
23662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23663   *) ac_try_echo=$ac_try;;
23664 esac
23665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23666   (eval "$ac_compile") 2>conftest.er1
23667   ac_status=$?
23668   grep -v '^ *+' conftest.er1 >conftest.err
23669   rm -f conftest.er1
23670   cat conftest.err >&5
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); } && {
23673          test -z "$ac_c_werror_flag" ||
23674          test ! -s conftest.err
23675        } && test -s conftest.$ac_objext; then
23676   ac_hi=$ac_mid; break
23677 else
23678   echo "$as_me: failed program was:" >&5
23679 sed 's/^/| /' conftest.$ac_ext >&5
23680
23681         ac_lo=`expr $ac_mid + 1`
23682                         if test $ac_lo -le $ac_mid; then
23683                           ac_lo= ac_hi=
23684                           break
23685                         fi
23686                         ac_mid=`expr 2 '*' $ac_mid + 1`
23687 fi
23688
23689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23690   done
23691 else
23692   echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23694
23695         cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h.  */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h.  */
23701 $ac_includes_default
23702 #ifndef offsetof
23703 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23704 #endif
23705 typedef struct { char x; long long int y; } ac__type_alignof_;
23706 int
23707 main ()
23708 {
23709 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23710 test_array [0] = 0
23711
23712   ;
23713   return 0;
23714 }
23715 _ACEOF
23716 rm -f conftest.$ac_objext
23717 if { (ac_try="$ac_compile"
23718 case "(($ac_try" in
23719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720   *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723   (eval "$ac_compile") 2>conftest.er1
23724   ac_status=$?
23725   grep -v '^ *+' conftest.er1 >conftest.err
23726   rm -f conftest.er1
23727   cat conftest.err >&5
23728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729   (exit $ac_status); } && {
23730          test -z "$ac_c_werror_flag" ||
23731          test ! -s conftest.err
23732        } && test -s conftest.$ac_objext; then
23733   ac_hi=-1 ac_mid=-1
23734   while :; do
23735     cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h.  */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h.  */
23741 $ac_includes_default
23742 #ifndef offsetof
23743 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23744 #endif
23745 typedef struct { char x; long long int y; } ac__type_alignof_;
23746 int
23747 main ()
23748 {
23749 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23750 test_array [0] = 0
23751
23752   ;
23753   return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760   *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763   (eval "$ac_compile") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_c_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest.$ac_objext; then
23773   ac_lo=$ac_mid; break
23774 else
23775   echo "$as_me: failed program was:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23777
23778         ac_hi=`expr '(' $ac_mid ')' - 1`
23779                         if test $ac_mid -le $ac_hi; then
23780                           ac_lo= ac_hi=
23781                           break
23782                         fi
23783                         ac_mid=`expr 2 '*' $ac_mid`
23784 fi
23785
23786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787   done
23788 else
23789   echo "$as_me: failed program was:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23791
23792         ac_lo= ac_hi=
23793 fi
23794
23795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23796 fi
23797
23798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23799 # Binary search between lo and hi bounds.
23800 while test "x$ac_lo" != "x$ac_hi"; do
23801   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23802   cat >conftest.$ac_ext <<_ACEOF
23803 /* confdefs.h.  */
23804 _ACEOF
23805 cat confdefs.h >>conftest.$ac_ext
23806 cat >>conftest.$ac_ext <<_ACEOF
23807 /* end confdefs.h.  */
23808 $ac_includes_default
23809 #ifndef offsetof
23810 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23811 #endif
23812 typedef struct { char x; long long int y; } ac__type_alignof_;
23813 int
23814 main ()
23815 {
23816 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23817 test_array [0] = 0
23818
23819   ;
23820   return 0;
23821 }
23822 _ACEOF
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827   *) ac_try_echo=$ac_try;;
23828 esac
23829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23830   (eval "$ac_compile") 2>conftest.er1
23831   ac_status=$?
23832   grep -v '^ *+' conftest.er1 >conftest.err
23833   rm -f conftest.er1
23834   cat conftest.err >&5
23835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836   (exit $ac_status); } && {
23837          test -z "$ac_c_werror_flag" ||
23838          test ! -s conftest.err
23839        } && test -s conftest.$ac_objext; then
23840   ac_hi=$ac_mid
23841 else
23842   echo "$as_me: failed program was:" >&5
23843 sed 's/^/| /' conftest.$ac_ext >&5
23844
23845         ac_lo=`expr '(' $ac_mid ')' + 1`
23846 fi
23847
23848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23849 done
23850 case $ac_lo in
23851 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
23852 '') if test "$ac_cv_type_long_long_int" = yes; then
23853      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23854 See \`config.log' for more details." >&5
23855 echo "$as_me: error: cannot compute alignment of long long int
23856 See \`config.log' for more details." >&2;}
23857    { (exit 77); exit 77; }; }
23858    else
23859      ac_cv_alignof_long_long_int=0
23860    fi ;;
23861 esac
23862 else
23863   cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869 $ac_includes_default
23870 #ifndef offsetof
23871 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23872 #endif
23873 typedef struct { char x; long long int y; } ac__type_alignof_;
23874 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23875 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23876 #include <stdio.h>
23877 #include <stdlib.h>
23878 int
23879 main ()
23880 {
23881
23882   FILE *f = fopen ("conftest.val", "w");
23883   if (! f)
23884     return 1;
23885   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23886     {
23887       long int i = longval ();
23888       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23889         return 1;
23890       fprintf (f, "%ld\n", i);
23891     }
23892   else
23893     {
23894       unsigned long int i = ulongval ();
23895       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23896         return 1;
23897       fprintf (f, "%lu\n", i);
23898     }
23899   return ferror (f) || fclose (f) != 0;
23900
23901   ;
23902   return 0;
23903 }
23904 _ACEOF
23905 rm -f conftest$ac_exeext
23906 if { (ac_try="$ac_link"
23907 case "(($ac_try" in
23908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909   *) ac_try_echo=$ac_try;;
23910 esac
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912   (eval "$ac_link") 2>&5
23913   ac_status=$?
23914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23916   { (case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_try") 2>&5
23922   ac_status=$?
23923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924   (exit $ac_status); }; }; then
23925   ac_cv_alignof_long_long_int=`cat conftest.val`
23926 else
23927   echo "$as_me: program exited with status $ac_status" >&5
23928 echo "$as_me: failed program was:" >&5
23929 sed 's/^/| /' conftest.$ac_ext >&5
23930
23931 ( exit $ac_status )
23932 if test "$ac_cv_type_long_long_int" = yes; then
23933      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23934 See \`config.log' for more details." >&5
23935 echo "$as_me: error: cannot compute alignment of long long int
23936 See \`config.log' for more details." >&2;}
23937    { (exit 77); exit 77; }; }
23938    else
23939      ac_cv_alignof_long_long_int=0
23940    fi
23941 fi
23942 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23943 fi
23944 rm -f conftest.val
23945 fi
23946 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23947 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23948
23949
23950
23951 cat >>confdefs.h <<_ACEOF
23952 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23953 _ACEOF
23954
23955
23956 fi
23957 { echo "$as_me:$LINENO: checking for double" >&5
23958 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23959 if test "${ac_cv_type_double+set}" = set; then
23960   echo $ECHO_N "(cached) $ECHO_C" >&6
23961 else
23962   cat >conftest.$ac_ext <<_ACEOF
23963 /* confdefs.h.  */
23964 _ACEOF
23965 cat confdefs.h >>conftest.$ac_ext
23966 cat >>conftest.$ac_ext <<_ACEOF
23967 /* end confdefs.h.  */
23968 $ac_includes_default
23969 typedef double ac__type_new_;
23970 int
23971 main ()
23972 {
23973 if ((ac__type_new_ *) 0)
23974   return 0;
23975 if (sizeof (ac__type_new_))
23976   return 0;
23977   ;
23978   return 0;
23979 }
23980 _ACEOF
23981 rm -f conftest.$ac_objext
23982 if { (ac_try="$ac_compile"
23983 case "(($ac_try" in
23984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985   *) ac_try_echo=$ac_try;;
23986 esac
23987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23988   (eval "$ac_compile") 2>conftest.er1
23989   ac_status=$?
23990   grep -v '^ *+' conftest.er1 >conftest.err
23991   rm -f conftest.er1
23992   cat conftest.err >&5
23993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994   (exit $ac_status); } && {
23995          test -z "$ac_c_werror_flag" ||
23996          test ! -s conftest.err
23997        } && test -s conftest.$ac_objext; then
23998   ac_cv_type_double=yes
23999 else
24000   echo "$as_me: failed program was:" >&5
24001 sed 's/^/| /' conftest.$ac_ext >&5
24002
24003         ac_cv_type_double=no
24004 fi
24005
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 fi
24008 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
24009 echo "${ECHO_T}$ac_cv_type_double" >&6; }
24010
24011 # The cast to long int works around a bug in the HP C Compiler,
24012 # see AC_CHECK_SIZEOF for more information.
24013 { echo "$as_me:$LINENO: checking alignment of double" >&5
24014 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
24015 if test "${ac_cv_alignof_double+set}" = set; then
24016   echo $ECHO_N "(cached) $ECHO_C" >&6
24017 else
24018   if test "$cross_compiling" = yes; then
24019   # Depending upon the size, compute the lo and hi bounds.
24020 cat >conftest.$ac_ext <<_ACEOF
24021 /* confdefs.h.  */
24022 _ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h.  */
24026 $ac_includes_default
24027 #ifndef offsetof
24028 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24029 #endif
24030 typedef struct { char x; double y; } ac__type_alignof_;
24031 int
24032 main ()
24033 {
24034 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
24035 test_array [0] = 0
24036
24037   ;
24038   return 0;
24039 }
24040 _ACEOF
24041 rm -f conftest.$ac_objext
24042 if { (ac_try="$ac_compile"
24043 case "(($ac_try" in
24044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045   *) ac_try_echo=$ac_try;;
24046 esac
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048   (eval "$ac_compile") 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } && {
24055          test -z "$ac_c_werror_flag" ||
24056          test ! -s conftest.err
24057        } && test -s conftest.$ac_objext; then
24058   ac_lo=0 ac_mid=0
24059   while :; do
24060     cat >conftest.$ac_ext <<_ACEOF
24061 /* confdefs.h.  */
24062 _ACEOF
24063 cat confdefs.h >>conftest.$ac_ext
24064 cat >>conftest.$ac_ext <<_ACEOF
24065 /* end confdefs.h.  */
24066 $ac_includes_default
24067 #ifndef offsetof
24068 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24069 #endif
24070 typedef struct { char x; double y; } ac__type_alignof_;
24071 int
24072 main ()
24073 {
24074 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24075 test_array [0] = 0
24076
24077   ;
24078   return 0;
24079 }
24080 _ACEOF
24081 rm -f conftest.$ac_objext
24082 if { (ac_try="$ac_compile"
24083 case "(($ac_try" in
24084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085   *) ac_try_echo=$ac_try;;
24086 esac
24087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24088   (eval "$ac_compile") 2>conftest.er1
24089   ac_status=$?
24090   grep -v '^ *+' conftest.er1 >conftest.err
24091   rm -f conftest.er1
24092   cat conftest.err >&5
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); } && {
24095          test -z "$ac_c_werror_flag" ||
24096          test ! -s conftest.err
24097        } && test -s conftest.$ac_objext; then
24098   ac_hi=$ac_mid; break
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103         ac_lo=`expr $ac_mid + 1`
24104                         if test $ac_lo -le $ac_mid; then
24105                           ac_lo= ac_hi=
24106                           break
24107                         fi
24108                         ac_mid=`expr 2 '*' $ac_mid + 1`
24109 fi
24110
24111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24112   done
24113 else
24114   echo "$as_me: failed program was:" >&5
24115 sed 's/^/| /' conftest.$ac_ext >&5
24116
24117         cat >conftest.$ac_ext <<_ACEOF
24118 /* confdefs.h.  */
24119 _ACEOF
24120 cat confdefs.h >>conftest.$ac_ext
24121 cat >>conftest.$ac_ext <<_ACEOF
24122 /* end confdefs.h.  */
24123 $ac_includes_default
24124 #ifndef offsetof
24125 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24126 #endif
24127 typedef struct { char x; double y; } ac__type_alignof_;
24128 int
24129 main ()
24130 {
24131 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
24132 test_array [0] = 0
24133
24134   ;
24135   return 0;
24136 }
24137 _ACEOF
24138 rm -f conftest.$ac_objext
24139 if { (ac_try="$ac_compile"
24140 case "(($ac_try" in
24141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142   *) ac_try_echo=$ac_try;;
24143 esac
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145   (eval "$ac_compile") 2>conftest.er1
24146   ac_status=$?
24147   grep -v '^ *+' conftest.er1 >conftest.err
24148   rm -f conftest.er1
24149   cat conftest.err >&5
24150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151   (exit $ac_status); } && {
24152          test -z "$ac_c_werror_flag" ||
24153          test ! -s conftest.err
24154        } && test -s conftest.$ac_objext; then
24155   ac_hi=-1 ac_mid=-1
24156   while :; do
24157     cat >conftest.$ac_ext <<_ACEOF
24158 /* confdefs.h.  */
24159 _ACEOF
24160 cat confdefs.h >>conftest.$ac_ext
24161 cat >>conftest.$ac_ext <<_ACEOF
24162 /* end confdefs.h.  */
24163 $ac_includes_default
24164 #ifndef offsetof
24165 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24166 #endif
24167 typedef struct { char x; double y; } ac__type_alignof_;
24168 int
24169 main ()
24170 {
24171 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
24172 test_array [0] = 0
24173
24174   ;
24175   return 0;
24176 }
24177 _ACEOF
24178 rm -f conftest.$ac_objext
24179 if { (ac_try="$ac_compile"
24180 case "(($ac_try" in
24181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24182   *) ac_try_echo=$ac_try;;
24183 esac
24184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24185   (eval "$ac_compile") 2>conftest.er1
24186   ac_status=$?
24187   grep -v '^ *+' conftest.er1 >conftest.err
24188   rm -f conftest.er1
24189   cat conftest.err >&5
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); } && {
24192          test -z "$ac_c_werror_flag" ||
24193          test ! -s conftest.err
24194        } && test -s conftest.$ac_objext; then
24195   ac_lo=$ac_mid; break
24196 else
24197   echo "$as_me: failed program was:" >&5
24198 sed 's/^/| /' conftest.$ac_ext >&5
24199
24200         ac_hi=`expr '(' $ac_mid ')' - 1`
24201                         if test $ac_mid -le $ac_hi; then
24202                           ac_lo= ac_hi=
24203                           break
24204                         fi
24205                         ac_mid=`expr 2 '*' $ac_mid`
24206 fi
24207
24208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24209   done
24210 else
24211   echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214         ac_lo= ac_hi=
24215 fi
24216
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218 fi
24219
24220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24221 # Binary search between lo and hi bounds.
24222 while test "x$ac_lo" != "x$ac_hi"; do
24223   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24224   cat >conftest.$ac_ext <<_ACEOF
24225 /* confdefs.h.  */
24226 _ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h.  */
24230 $ac_includes_default
24231 #ifndef offsetof
24232 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24233 #endif
24234 typedef struct { char x; double y; } ac__type_alignof_;
24235 int
24236 main ()
24237 {
24238 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
24239 test_array [0] = 0
24240
24241   ;
24242   return 0;
24243 }
24244 _ACEOF
24245 rm -f conftest.$ac_objext
24246 if { (ac_try="$ac_compile"
24247 case "(($ac_try" in
24248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24249   *) ac_try_echo=$ac_try;;
24250 esac
24251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24252   (eval "$ac_compile") 2>conftest.er1
24253   ac_status=$?
24254   grep -v '^ *+' conftest.er1 >conftest.err
24255   rm -f conftest.er1
24256   cat conftest.err >&5
24257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24258   (exit $ac_status); } && {
24259          test -z "$ac_c_werror_flag" ||
24260          test ! -s conftest.err
24261        } && test -s conftest.$ac_objext; then
24262   ac_hi=$ac_mid
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267         ac_lo=`expr '(' $ac_mid ')' + 1`
24268 fi
24269
24270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24271 done
24272 case $ac_lo in
24273 ?*) ac_cv_alignof_double=$ac_lo;;
24274 '') if test "$ac_cv_type_double" = yes; then
24275      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24276 See \`config.log' for more details." >&5
24277 echo "$as_me: error: cannot compute alignment of double
24278 See \`config.log' for more details." >&2;}
24279    { (exit 77); exit 77; }; }
24280    else
24281      ac_cv_alignof_double=0
24282    fi ;;
24283 esac
24284 else
24285   cat >conftest.$ac_ext <<_ACEOF
24286 /* confdefs.h.  */
24287 _ACEOF
24288 cat confdefs.h >>conftest.$ac_ext
24289 cat >>conftest.$ac_ext <<_ACEOF
24290 /* end confdefs.h.  */
24291 $ac_includes_default
24292 #ifndef offsetof
24293 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
24294 #endif
24295 typedef struct { char x; double y; } ac__type_alignof_;
24296 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
24297 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
24298 #include <stdio.h>
24299 #include <stdlib.h>
24300 int
24301 main ()
24302 {
24303
24304   FILE *f = fopen ("conftest.val", "w");
24305   if (! f)
24306     return 1;
24307   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
24308     {
24309       long int i = longval ();
24310       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24311         return 1;
24312       fprintf (f, "%ld\n", i);
24313     }
24314   else
24315     {
24316       unsigned long int i = ulongval ();
24317       if (i != ((long int) offsetof (ac__type_alignof_, y)))
24318         return 1;
24319       fprintf (f, "%lu\n", i);
24320     }
24321   return ferror (f) || fclose (f) != 0;
24322
24323   ;
24324   return 0;
24325 }
24326 _ACEOF
24327 rm -f conftest$ac_exeext
24328 if { (ac_try="$ac_link"
24329 case "(($ac_try" in
24330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331   *) ac_try_echo=$ac_try;;
24332 esac
24333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24334   (eval "$ac_link") 2>&5
24335   ac_status=$?
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24338   { (case "(($ac_try" in
24339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24340   *) ac_try_echo=$ac_try;;
24341 esac
24342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24343   (eval "$ac_try") 2>&5
24344   ac_status=$?
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); }; }; then
24347   ac_cv_alignof_double=`cat conftest.val`
24348 else
24349   echo "$as_me: program exited with status $ac_status" >&5
24350 echo "$as_me: failed program was:" >&5
24351 sed 's/^/| /' conftest.$ac_ext >&5
24352
24353 ( exit $ac_status )
24354 if test "$ac_cv_type_double" = yes; then
24355      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
24356 See \`config.log' for more details." >&5
24357 echo "$as_me: error: cannot compute alignment of double
24358 See \`config.log' for more details." >&2;}
24359    { (exit 77); exit 77; }; }
24360    else
24361      ac_cv_alignof_double=0
24362    fi
24363 fi
24364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24365 fi
24366 rm -f conftest.val
24367 fi
24368 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
24369 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
24370
24371
24372
24373 cat >>confdefs.h <<_ACEOF
24374 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
24375 _ACEOF
24376
24377
24378
24379 # Compute maximum alignment of any basic type.
24380 # We assume long's alignment is at least as strong as char, short, or int;
24381 # but we must check long long (if it exists) and double.
24382
24383 MAX_ALIGNOF=$ac_cv_alignof_long
24384 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
24385   MAX_ALIGNOF=$ac_cv_alignof_double
24386 fi
24387 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
24388   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
24389 fi
24390
24391 cat >>confdefs.h <<_ACEOF
24392 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
24393 _ACEOF
24394
24395
24396
24397 # Some platforms predefine the types int8, int16, etc.  Only check
24398 # a (hopefully) representative subset.
24399 { echo "$as_me:$LINENO: checking for int8" >&5
24400 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
24401 if test "${ac_cv_type_int8+set}" = set; then
24402   echo $ECHO_N "(cached) $ECHO_C" >&6
24403 else
24404   cat >conftest.$ac_ext <<_ACEOF
24405 /* confdefs.h.  */
24406 _ACEOF
24407 cat confdefs.h >>conftest.$ac_ext
24408 cat >>conftest.$ac_ext <<_ACEOF
24409 /* end confdefs.h.  */
24410 #include <stdio.h>
24411 #ifdef HAVE_SUPPORTDEFS_H
24412 #include <SupportDefs.h>
24413 #endif
24414
24415 typedef int8 ac__type_new_;
24416 int
24417 main ()
24418 {
24419 if ((ac__type_new_ *) 0)
24420   return 0;
24421 if (sizeof (ac__type_new_))
24422   return 0;
24423   ;
24424   return 0;
24425 }
24426 _ACEOF
24427 rm -f conftest.$ac_objext
24428 if { (ac_try="$ac_compile"
24429 case "(($ac_try" in
24430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24431   *) ac_try_echo=$ac_try;;
24432 esac
24433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24434   (eval "$ac_compile") 2>conftest.er1
24435   ac_status=$?
24436   grep -v '^ *+' conftest.er1 >conftest.err
24437   rm -f conftest.er1
24438   cat conftest.err >&5
24439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24440   (exit $ac_status); } && {
24441          test -z "$ac_c_werror_flag" ||
24442          test ! -s conftest.err
24443        } && test -s conftest.$ac_objext; then
24444   ac_cv_type_int8=yes
24445 else
24446   echo "$as_me: failed program was:" >&5
24447 sed 's/^/| /' conftest.$ac_ext >&5
24448
24449         ac_cv_type_int8=no
24450 fi
24451
24452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24453 fi
24454 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
24455 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
24456 if test $ac_cv_type_int8 = yes; then
24457
24458 cat >>confdefs.h <<_ACEOF
24459 #define HAVE_INT8 1
24460 _ACEOF
24461
24462
24463 fi
24464 { echo "$as_me:$LINENO: checking for uint8" >&5
24465 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
24466 if test "${ac_cv_type_uint8+set}" = set; then
24467   echo $ECHO_N "(cached) $ECHO_C" >&6
24468 else
24469   cat >conftest.$ac_ext <<_ACEOF
24470 /* confdefs.h.  */
24471 _ACEOF
24472 cat confdefs.h >>conftest.$ac_ext
24473 cat >>conftest.$ac_ext <<_ACEOF
24474 /* end confdefs.h.  */
24475 #include <stdio.h>
24476 #ifdef HAVE_SUPPORTDEFS_H
24477 #include <SupportDefs.h>
24478 #endif
24479
24480 typedef uint8 ac__type_new_;
24481 int
24482 main ()
24483 {
24484 if ((ac__type_new_ *) 0)
24485   return 0;
24486 if (sizeof (ac__type_new_))
24487   return 0;
24488   ;
24489   return 0;
24490 }
24491 _ACEOF
24492 rm -f conftest.$ac_objext
24493 if { (ac_try="$ac_compile"
24494 case "(($ac_try" in
24495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24496   *) ac_try_echo=$ac_try;;
24497 esac
24498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24499   (eval "$ac_compile") 2>conftest.er1
24500   ac_status=$?
24501   grep -v '^ *+' conftest.er1 >conftest.err
24502   rm -f conftest.er1
24503   cat conftest.err >&5
24504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505   (exit $ac_status); } && {
24506          test -z "$ac_c_werror_flag" ||
24507          test ! -s conftest.err
24508        } && test -s conftest.$ac_objext; then
24509   ac_cv_type_uint8=yes
24510 else
24511   echo "$as_me: failed program was:" >&5
24512 sed 's/^/| /' conftest.$ac_ext >&5
24513
24514         ac_cv_type_uint8=no
24515 fi
24516
24517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 fi
24519 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
24520 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
24521 if test $ac_cv_type_uint8 = yes; then
24522
24523 cat >>confdefs.h <<_ACEOF
24524 #define HAVE_UINT8 1
24525 _ACEOF
24526
24527
24528 fi
24529 { echo "$as_me:$LINENO: checking for int64" >&5
24530 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
24531 if test "${ac_cv_type_int64+set}" = set; then
24532   echo $ECHO_N "(cached) $ECHO_C" >&6
24533 else
24534   cat >conftest.$ac_ext <<_ACEOF
24535 /* confdefs.h.  */
24536 _ACEOF
24537 cat confdefs.h >>conftest.$ac_ext
24538 cat >>conftest.$ac_ext <<_ACEOF
24539 /* end confdefs.h.  */
24540 #include <stdio.h>
24541 #ifdef HAVE_SUPPORTDEFS_H
24542 #include <SupportDefs.h>
24543 #endif
24544
24545 typedef int64 ac__type_new_;
24546 int
24547 main ()
24548 {
24549 if ((ac__type_new_ *) 0)
24550   return 0;
24551 if (sizeof (ac__type_new_))
24552   return 0;
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 rm -f conftest.$ac_objext
24558 if { (ac_try="$ac_compile"
24559 case "(($ac_try" in
24560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24561   *) ac_try_echo=$ac_try;;
24562 esac
24563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24564   (eval "$ac_compile") 2>conftest.er1
24565   ac_status=$?
24566   grep -v '^ *+' conftest.er1 >conftest.err
24567   rm -f conftest.er1
24568   cat conftest.err >&5
24569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570   (exit $ac_status); } && {
24571          test -z "$ac_c_werror_flag" ||
24572          test ! -s conftest.err
24573        } && test -s conftest.$ac_objext; then
24574   ac_cv_type_int64=yes
24575 else
24576   echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579         ac_cv_type_int64=no
24580 fi
24581
24582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24583 fi
24584 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
24585 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
24586 if test $ac_cv_type_int64 = yes; then
24587
24588 cat >>confdefs.h <<_ACEOF
24589 #define HAVE_INT64 1
24590 _ACEOF
24591
24592
24593 fi
24594 { echo "$as_me:$LINENO: checking for uint64" >&5
24595 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
24596 if test "${ac_cv_type_uint64+set}" = set; then
24597   echo $ECHO_N "(cached) $ECHO_C" >&6
24598 else
24599   cat >conftest.$ac_ext <<_ACEOF
24600 /* confdefs.h.  */
24601 _ACEOF
24602 cat confdefs.h >>conftest.$ac_ext
24603 cat >>conftest.$ac_ext <<_ACEOF
24604 /* end confdefs.h.  */
24605 #include <stdio.h>
24606 #ifdef HAVE_SUPPORTDEFS_H
24607 #include <SupportDefs.h>
24608 #endif
24609
24610 typedef uint64 ac__type_new_;
24611 int
24612 main ()
24613 {
24614 if ((ac__type_new_ *) 0)
24615   return 0;
24616 if (sizeof (ac__type_new_))
24617   return 0;
24618   ;
24619   return 0;
24620 }
24621 _ACEOF
24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626   *) ac_try_echo=$ac_try;;
24627 esac
24628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24629   (eval "$ac_compile") 2>conftest.er1
24630   ac_status=$?
24631   grep -v '^ *+' conftest.er1 >conftest.err
24632   rm -f conftest.er1
24633   cat conftest.err >&5
24634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635   (exit $ac_status); } && {
24636          test -z "$ac_c_werror_flag" ||
24637          test ! -s conftest.err
24638        } && test -s conftest.$ac_objext; then
24639   ac_cv_type_uint64=yes
24640 else
24641   echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24643
24644         ac_cv_type_uint64=no
24645 fi
24646
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648 fi
24649 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
24650 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
24651 if test $ac_cv_type_uint64 = yes; then
24652
24653 cat >>confdefs.h <<_ACEOF
24654 #define HAVE_UINT64 1
24655 _ACEOF
24656
24657
24658 fi
24659
24660
24661 # We also check for sig_atomic_t, which *should* be defined per ANSI
24662 # C, but is missing on some old platforms.
24663 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
24664 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
24665 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
24666   echo $ECHO_N "(cached) $ECHO_C" >&6
24667 else
24668   cat >conftest.$ac_ext <<_ACEOF
24669 /* confdefs.h.  */
24670 _ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h.  */
24674 #include <signal.h>
24675
24676 typedef sig_atomic_t ac__type_new_;
24677 int
24678 main ()
24679 {
24680 if ((ac__type_new_ *) 0)
24681   return 0;
24682 if (sizeof (ac__type_new_))
24683   return 0;
24684   ;
24685   return 0;
24686 }
24687 _ACEOF
24688 rm -f conftest.$ac_objext
24689 if { (ac_try="$ac_compile"
24690 case "(($ac_try" in
24691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24692   *) ac_try_echo=$ac_try;;
24693 esac
24694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24695   (eval "$ac_compile") 2>conftest.er1
24696   ac_status=$?
24697   grep -v '^ *+' conftest.er1 >conftest.err
24698   rm -f conftest.er1
24699   cat conftest.err >&5
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); } && {
24702          test -z "$ac_c_werror_flag" ||
24703          test ! -s conftest.err
24704        } && test -s conftest.$ac_objext; then
24705   ac_cv_type_sig_atomic_t=yes
24706 else
24707   echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24709
24710         ac_cv_type_sig_atomic_t=no
24711 fi
24712
24713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24714 fi
24715 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
24716 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
24717 if test $ac_cv_type_sig_atomic_t = yes; then
24718
24719 cat >>confdefs.h <<_ACEOF
24720 #define HAVE_SIG_ATOMIC_T 1
24721 _ACEOF
24722
24723
24724 fi
24725
24726
24727
24728 # If the user did not disable integer datetimes, check that
24729 # there is a working 64-bit integral type to use.
24730 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
24731    test x"$HAVE_LONG_INT_64" = x"no" &&
24732    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
24733    test x"$HAVE_INT64" = x"no" ; then
24734   { { echo "$as_me:$LINENO: error:
24735 Integer-based datetime support requires a 64-bit integer type,
24736 but no such type could be found. The --disable-integer-datetimes
24737 configure option can be used to disable integer-based storage
24738 of datetime values." >&5
24739 echo "$as_me: error:
24740 Integer-based datetime support requires a 64-bit integer type,
24741 but no such type could be found. The --disable-integer-datetimes
24742 configure option can be used to disable integer-based storage
24743 of datetime values." >&2;}
24744    { (exit 1); exit 1; }; }
24745 fi
24746
24747
24748 if test "$PORTNAME" != "win32"
24749 then
24750 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
24751 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
24752 if test "${pgac_cv_func_posix_signals+set}" = set; then
24753   echo $ECHO_N "(cached) $ECHO_C" >&6
24754 else
24755   cat >conftest.$ac_ext <<_ACEOF
24756 /* confdefs.h.  */
24757 _ACEOF
24758 cat confdefs.h >>conftest.$ac_ext
24759 cat >>conftest.$ac_ext <<_ACEOF
24760 /* end confdefs.h.  */
24761 #include <signal.h>
24762
24763 int
24764 main ()
24765 {
24766 struct sigaction act, oact;
24767 sigemptyset(&act.sa_mask);
24768 act.sa_flags = SA_RESTART;
24769 sigaction(0, &act, &oact);
24770   ;
24771   return 0;
24772 }
24773 _ACEOF
24774 rm -f conftest.$ac_objext conftest$ac_exeext
24775 if { (ac_try="$ac_link"
24776 case "(($ac_try" in
24777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778   *) ac_try_echo=$ac_try;;
24779 esac
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781   (eval "$ac_link") 2>conftest.er1
24782   ac_status=$?
24783   grep -v '^ *+' conftest.er1 >conftest.err
24784   rm -f conftest.er1
24785   cat conftest.err >&5
24786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24787   (exit $ac_status); } && {
24788          test -z "$ac_c_werror_flag" ||
24789          test ! -s conftest.err
24790        } && test -s conftest$ac_exeext &&
24791        $as_test_x conftest$ac_exeext; then
24792   pgac_cv_func_posix_signals=yes
24793 else
24794   echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797         pgac_cv_func_posix_signals=no
24798 fi
24799
24800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24801       conftest$ac_exeext conftest.$ac_ext
24802 fi
24803 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
24804 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
24805 if test x"$pgac_cv_func_posix_signals" = xyes ; then
24806
24807 cat >>confdefs.h <<\_ACEOF
24808 #define HAVE_POSIX_SIGNALS
24809 _ACEOF
24810
24811 fi
24812 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
24813
24814 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
24815   { { echo "$as_me:$LINENO: error:
24816 Thread-safety requires POSIX signals, which are not supported by this
24817 operating system." >&5
24818 echo "$as_me: error:
24819 Thread-safety requires POSIX signals, which are not supported by this
24820 operating system." >&2;}
24821    { (exit 1); exit 1; }; }
24822 fi
24823 fi
24824
24825 if test $ac_cv_func_fseeko = yes; then
24826 # Check whether --enable-largefile was given.
24827 if test "${enable_largefile+set}" = set; then
24828   enableval=$enable_largefile;
24829 fi
24830
24831 if test "$enable_largefile" != no; then
24832
24833   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
24834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
24835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
24836   echo $ECHO_N "(cached) $ECHO_C" >&6
24837 else
24838   ac_cv_sys_largefile_CC=no
24839      if test "$GCC" != yes; then
24840        ac_save_CC=$CC
24841        while :; do
24842          # IRIX 6.2 and later do not support large files by default,
24843          # so use the C compiler's -n32 option if that helps.
24844          cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850 #include <sys/types.h>
24851  /* Check that off_t can represent 2**63 - 1 correctly.
24852     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24853     since some C++ compilers masquerading as C compilers
24854     incorrectly reject 9223372036854775807.  */
24855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24856   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24857                        && LARGE_OFF_T % 2147483647 == 1)
24858                       ? 1 : -1];
24859 int
24860 main ()
24861 {
24862
24863   ;
24864   return 0;
24865 }
24866 _ACEOF
24867          rm -f conftest.$ac_objext
24868 if { (ac_try="$ac_compile"
24869 case "(($ac_try" in
24870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24871   *) ac_try_echo=$ac_try;;
24872 esac
24873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24874   (eval "$ac_compile") 2>conftest.er1
24875   ac_status=$?
24876   grep -v '^ *+' conftest.er1 >conftest.err
24877   rm -f conftest.er1
24878   cat conftest.err >&5
24879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24880   (exit $ac_status); } && {
24881          test -z "$ac_c_werror_flag" ||
24882          test ! -s conftest.err
24883        } && test -s conftest.$ac_objext; then
24884   break
24885 else
24886   echo "$as_me: failed program was:" >&5
24887 sed 's/^/| /' conftest.$ac_ext >&5
24888
24889
24890 fi
24891
24892 rm -f core conftest.err conftest.$ac_objext
24893          CC="$CC -n32"
24894          rm -f conftest.$ac_objext
24895 if { (ac_try="$ac_compile"
24896 case "(($ac_try" in
24897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24898   *) ac_try_echo=$ac_try;;
24899 esac
24900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24901   (eval "$ac_compile") 2>conftest.er1
24902   ac_status=$?
24903   grep -v '^ *+' conftest.er1 >conftest.err
24904   rm -f conftest.er1
24905   cat conftest.err >&5
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); } && {
24908          test -z "$ac_c_werror_flag" ||
24909          test ! -s conftest.err
24910        } && test -s conftest.$ac_objext; then
24911   ac_cv_sys_largefile_CC=' -n32'; break
24912 else
24913   echo "$as_me: failed program was:" >&5
24914 sed 's/^/| /' conftest.$ac_ext >&5
24915
24916
24917 fi
24918
24919 rm -f core conftest.err conftest.$ac_objext
24920          break
24921        done
24922        CC=$ac_save_CC
24923        rm -f conftest.$ac_ext
24924     fi
24925 fi
24926 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24927 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24928   if test "$ac_cv_sys_largefile_CC" != no; then
24929     CC=$CC$ac_cv_sys_largefile_CC
24930   fi
24931
24932   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24933 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24934 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24935   echo $ECHO_N "(cached) $ECHO_C" >&6
24936 else
24937   while :; do
24938   cat >conftest.$ac_ext <<_ACEOF
24939 /* confdefs.h.  */
24940 _ACEOF
24941 cat confdefs.h >>conftest.$ac_ext
24942 cat >>conftest.$ac_ext <<_ACEOF
24943 /* end confdefs.h.  */
24944 #include <sys/types.h>
24945  /* Check that off_t can represent 2**63 - 1 correctly.
24946     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24947     since some C++ compilers masquerading as C compilers
24948     incorrectly reject 9223372036854775807.  */
24949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24950   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24951                        && LARGE_OFF_T % 2147483647 == 1)
24952                       ? 1 : -1];
24953 int
24954 main ()
24955 {
24956
24957   ;
24958   return 0;
24959 }
24960 _ACEOF
24961 rm -f conftest.$ac_objext
24962 if { (ac_try="$ac_compile"
24963 case "(($ac_try" in
24964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965   *) ac_try_echo=$ac_try;;
24966 esac
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968   (eval "$ac_compile") 2>conftest.er1
24969   ac_status=$?
24970   grep -v '^ *+' conftest.er1 >conftest.err
24971   rm -f conftest.er1
24972   cat conftest.err >&5
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); } && {
24975          test -z "$ac_c_werror_flag" ||
24976          test ! -s conftest.err
24977        } && test -s conftest.$ac_objext; then
24978   ac_cv_sys_file_offset_bits=no; break
24979 else
24980   echo "$as_me: failed program was:" >&5
24981 sed 's/^/| /' conftest.$ac_ext >&5
24982
24983
24984 fi
24985
24986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24987   cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993 #define _FILE_OFFSET_BITS 64
24994 #include <sys/types.h>
24995  /* Check that off_t can represent 2**63 - 1 correctly.
24996     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24997     since some C++ compilers masquerading as C compilers
24998     incorrectly reject 9223372036854775807.  */
24999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25000   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25001                        && LARGE_OFF_T % 2147483647 == 1)
25002                       ? 1 : -1];
25003 int
25004 main ()
25005 {
25006
25007   ;
25008   return 0;
25009 }
25010 _ACEOF
25011 rm -f conftest.$ac_objext
25012 if { (ac_try="$ac_compile"
25013 case "(($ac_try" in
25014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015   *) ac_try_echo=$ac_try;;
25016 esac
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018   (eval "$ac_compile") 2>conftest.er1
25019   ac_status=$?
25020   grep -v '^ *+' conftest.er1 >conftest.err
25021   rm -f conftest.er1
25022   cat conftest.err >&5
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); } && {
25025          test -z "$ac_c_werror_flag" ||
25026          test ! -s conftest.err
25027        } && test -s conftest.$ac_objext; then
25028   ac_cv_sys_file_offset_bits=64; break
25029 else
25030   echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033
25034 fi
25035
25036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25037   ac_cv_sys_file_offset_bits=unknown
25038   break
25039 done
25040 fi
25041 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25042 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25043 case $ac_cv_sys_file_offset_bits in #(
25044   no | unknown) ;;
25045   *)
25046 cat >>confdefs.h <<_ACEOF
25047 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25048 _ACEOF
25049 ;;
25050 esac
25051 rm -f conftest*
25052   if test $ac_cv_sys_file_offset_bits = unknown; then
25053     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25055 if test "${ac_cv_sys_large_files+set}" = set; then
25056   echo $ECHO_N "(cached) $ECHO_C" >&6
25057 else
25058   while :; do
25059   cat >conftest.$ac_ext <<_ACEOF
25060 /* confdefs.h.  */
25061 _ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h.  */
25065 #include <sys/types.h>
25066  /* Check that off_t can represent 2**63 - 1 correctly.
25067     We can't simply define LARGE_OFF_T to be 9223372036854775807,
25068     since some C++ compilers masquerading as C compilers
25069     incorrectly reject 9223372036854775807.  */
25070 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25071   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25072                        && LARGE_OFF_T % 2147483647 == 1)
25073                       ? 1 : -1];
25074 int
25075 main ()
25076 {
25077
25078   ;
25079   return 0;
25080 }
25081 _ACEOF
25082 rm -f conftest.$ac_objext
25083 if { (ac_try="$ac_compile"
25084 case "(($ac_try" in
25085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086   *) ac_try_echo=$ac_try;;
25087 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089   (eval "$ac_compile") 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } && {
25096          test -z "$ac_c_werror_flag" ||
25097          test ! -s conftest.err
25098        } && test -s conftest.$ac_objext; then
25099   ac_cv_sys_large_files=no; break
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108   cat >conftest.$ac_ext <<_ACEOF
25109 /* confdefs.h.  */
25110 _ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h.  */
25114 #define _LARGE_FILES 1
25115 #include <sys/types.h>
25116  /* Check that off_t can represent 2**63 - 1 correctly.
25117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
25118     since some C++ compilers masquerading as C compilers
25119     incorrectly reject 9223372036854775807.  */
25120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
25121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
25122                        && LARGE_OFF_T % 2147483647 == 1)
25123                       ? 1 : -1];
25124 int
25125 main ()
25126 {
25127
25128   ;
25129   return 0;
25130 }
25131 _ACEOF
25132 rm -f conftest.$ac_objext
25133 if { (ac_try="$ac_compile"
25134 case "(($ac_try" in
25135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25136   *) ac_try_echo=$ac_try;;
25137 esac
25138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25139   (eval "$ac_compile") 2>conftest.er1
25140   ac_status=$?
25141   grep -v '^ *+' conftest.er1 >conftest.err
25142   rm -f conftest.er1
25143   cat conftest.err >&5
25144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145   (exit $ac_status); } && {
25146          test -z "$ac_c_werror_flag" ||
25147          test ! -s conftest.err
25148        } && test -s conftest.$ac_objext; then
25149   ac_cv_sys_large_files=1; break
25150 else
25151   echo "$as_me: failed program was:" >&5
25152 sed 's/^/| /' conftest.$ac_ext >&5
25153
25154
25155 fi
25156
25157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25158   ac_cv_sys_large_files=unknown
25159   break
25160 done
25161 fi
25162 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25163 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25164 case $ac_cv_sys_large_files in #(
25165   no | unknown) ;;
25166   *)
25167 cat >>confdefs.h <<_ACEOF
25168 #define _LARGE_FILES $ac_cv_sys_large_files
25169 _ACEOF
25170 ;;
25171 esac
25172 rm -f conftest*
25173   fi
25174 fi
25175
25176 fi
25177
25178 # Check for largefile support (must be after AC_SYS_LARGEFILE)
25179 { echo "$as_me:$LINENO: checking for off_t" >&5
25180 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
25181 if test "${ac_cv_type_off_t+set}" = set; then
25182   echo $ECHO_N "(cached) $ECHO_C" >&6
25183 else
25184   cat >conftest.$ac_ext <<_ACEOF
25185 /* confdefs.h.  */
25186 _ACEOF
25187 cat confdefs.h >>conftest.$ac_ext
25188 cat >>conftest.$ac_ext <<_ACEOF
25189 /* end confdefs.h.  */
25190 $ac_includes_default
25191 typedef off_t ac__type_new_;
25192 int
25193 main ()
25194 {
25195 if ((ac__type_new_ *) 0)
25196   return 0;
25197 if (sizeof (ac__type_new_))
25198   return 0;
25199   ;
25200   return 0;
25201 }
25202 _ACEOF
25203 rm -f conftest.$ac_objext
25204 if { (ac_try="$ac_compile"
25205 case "(($ac_try" in
25206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207   *) ac_try_echo=$ac_try;;
25208 esac
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210   (eval "$ac_compile") 2>conftest.er1
25211   ac_status=$?
25212   grep -v '^ *+' conftest.er1 >conftest.err
25213   rm -f conftest.er1
25214   cat conftest.err >&5
25215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216   (exit $ac_status); } && {
25217          test -z "$ac_c_werror_flag" ||
25218          test ! -s conftest.err
25219        } && test -s conftest.$ac_objext; then
25220   ac_cv_type_off_t=yes
25221 else
25222   echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.$ac_ext >&5
25224
25225         ac_cv_type_off_t=no
25226 fi
25227
25228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25229 fi
25230 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
25231 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
25232
25233 # The cast to long int works around a bug in the HP C Compiler
25234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25236 # This bug is HP SR number 8606223364.
25237 { echo "$as_me:$LINENO: checking size of off_t" >&5
25238 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
25239 if test "${ac_cv_sizeof_off_t+set}" = set; then
25240   echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242   if test "$cross_compiling" = yes; then
25243   # Depending upon the size, compute the lo and hi bounds.
25244 cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h.  */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h.  */
25250 $ac_includes_default
25251    typedef off_t ac__type_sizeof_;
25252 int
25253 main ()
25254 {
25255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25256 test_array [0] = 0
25257
25258   ;
25259   return 0;
25260 }
25261 _ACEOF
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269   (eval "$ac_compile") 2>conftest.er1
25270   ac_status=$?
25271   grep -v '^ *+' conftest.er1 >conftest.err
25272   rm -f conftest.er1
25273   cat conftest.err >&5
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); } && {
25276          test -z "$ac_c_werror_flag" ||
25277          test ! -s conftest.err
25278        } && test -s conftest.$ac_objext; then
25279   ac_lo=0 ac_mid=0
25280   while :; do
25281     cat >conftest.$ac_ext <<_ACEOF
25282 /* confdefs.h.  */
25283 _ACEOF
25284 cat confdefs.h >>conftest.$ac_ext
25285 cat >>conftest.$ac_ext <<_ACEOF
25286 /* end confdefs.h.  */
25287 $ac_includes_default
25288    typedef off_t ac__type_sizeof_;
25289 int
25290 main ()
25291 {
25292 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25293 test_array [0] = 0
25294
25295   ;
25296   return 0;
25297 }
25298 _ACEOF
25299 rm -f conftest.$ac_objext
25300 if { (ac_try="$ac_compile"
25301 case "(($ac_try" in
25302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25303   *) ac_try_echo=$ac_try;;
25304 esac
25305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25306   (eval "$ac_compile") 2>conftest.er1
25307   ac_status=$?
25308   grep -v '^ *+' conftest.er1 >conftest.err
25309   rm -f conftest.er1
25310   cat conftest.err >&5
25311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312   (exit $ac_status); } && {
25313          test -z "$ac_c_werror_flag" ||
25314          test ! -s conftest.err
25315        } && test -s conftest.$ac_objext; then
25316   ac_hi=$ac_mid; break
25317 else
25318   echo "$as_me: failed program was:" >&5
25319 sed 's/^/| /' conftest.$ac_ext >&5
25320
25321         ac_lo=`expr $ac_mid + 1`
25322                         if test $ac_lo -le $ac_mid; then
25323                           ac_lo= ac_hi=
25324                           break
25325                         fi
25326                         ac_mid=`expr 2 '*' $ac_mid + 1`
25327 fi
25328
25329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25330   done
25331 else
25332   echo "$as_me: failed program was:" >&5
25333 sed 's/^/| /' conftest.$ac_ext >&5
25334
25335         cat >conftest.$ac_ext <<_ACEOF
25336 /* confdefs.h.  */
25337 _ACEOF
25338 cat confdefs.h >>conftest.$ac_ext
25339 cat >>conftest.$ac_ext <<_ACEOF
25340 /* end confdefs.h.  */
25341 $ac_includes_default
25342    typedef off_t ac__type_sizeof_;
25343 int
25344 main ()
25345 {
25346 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25347 test_array [0] = 0
25348
25349   ;
25350   return 0;
25351 }
25352 _ACEOF
25353 rm -f conftest.$ac_objext
25354 if { (ac_try="$ac_compile"
25355 case "(($ac_try" in
25356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25357   *) ac_try_echo=$ac_try;;
25358 esac
25359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25360   (eval "$ac_compile") 2>conftest.er1
25361   ac_status=$?
25362   grep -v '^ *+' conftest.er1 >conftest.err
25363   rm -f conftest.er1
25364   cat conftest.err >&5
25365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366   (exit $ac_status); } && {
25367          test -z "$ac_c_werror_flag" ||
25368          test ! -s conftest.err
25369        } && test -s conftest.$ac_objext; then
25370   ac_hi=-1 ac_mid=-1
25371   while :; do
25372     cat >conftest.$ac_ext <<_ACEOF
25373 /* confdefs.h.  */
25374 _ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h.  */
25378 $ac_includes_default
25379    typedef off_t ac__type_sizeof_;
25380 int
25381 main ()
25382 {
25383 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25384 test_array [0] = 0
25385
25386   ;
25387   return 0;
25388 }
25389 _ACEOF
25390 rm -f conftest.$ac_objext
25391 if { (ac_try="$ac_compile"
25392 case "(($ac_try" in
25393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394   *) ac_try_echo=$ac_try;;
25395 esac
25396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397   (eval "$ac_compile") 2>conftest.er1
25398   ac_status=$?
25399   grep -v '^ *+' conftest.er1 >conftest.err
25400   rm -f conftest.er1
25401   cat conftest.err >&5
25402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403   (exit $ac_status); } && {
25404          test -z "$ac_c_werror_flag" ||
25405          test ! -s conftest.err
25406        } && test -s conftest.$ac_objext; then
25407   ac_lo=$ac_mid; break
25408 else
25409   echo "$as_me: failed program was:" >&5
25410 sed 's/^/| /' conftest.$ac_ext >&5
25411
25412         ac_hi=`expr '(' $ac_mid ')' - 1`
25413                         if test $ac_mid -le $ac_hi; then
25414                           ac_lo= ac_hi=
25415                           break
25416                         fi
25417                         ac_mid=`expr 2 '*' $ac_mid`
25418 fi
25419
25420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25421   done
25422 else
25423   echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25425
25426         ac_lo= ac_hi=
25427 fi
25428
25429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25430 fi
25431
25432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25433 # Binary search between lo and hi bounds.
25434 while test "x$ac_lo" != "x$ac_hi"; do
25435   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25436   cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h.  */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h.  */
25442 $ac_includes_default
25443    typedef off_t ac__type_sizeof_;
25444 int
25445 main ()
25446 {
25447 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25448 test_array [0] = 0
25449
25450   ;
25451   return 0;
25452 }
25453 _ACEOF
25454 rm -f conftest.$ac_objext
25455 if { (ac_try="$ac_compile"
25456 case "(($ac_try" in
25457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25458   *) ac_try_echo=$ac_try;;
25459 esac
25460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25461   (eval "$ac_compile") 2>conftest.er1
25462   ac_status=$?
25463   grep -v '^ *+' conftest.er1 >conftest.err
25464   rm -f conftest.er1
25465   cat conftest.err >&5
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); } && {
25468          test -z "$ac_c_werror_flag" ||
25469          test ! -s conftest.err
25470        } && test -s conftest.$ac_objext; then
25471   ac_hi=$ac_mid
25472 else
25473   echo "$as_me: failed program was:" >&5
25474 sed 's/^/| /' conftest.$ac_ext >&5
25475
25476         ac_lo=`expr '(' $ac_mid ')' + 1`
25477 fi
25478
25479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25480 done
25481 case $ac_lo in
25482 ?*) ac_cv_sizeof_off_t=$ac_lo;;
25483 '') if test "$ac_cv_type_off_t" = yes; then
25484      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25485 See \`config.log' for more details." >&5
25486 echo "$as_me: error: cannot compute sizeof (off_t)
25487 See \`config.log' for more details." >&2;}
25488    { (exit 77); exit 77; }; }
25489    else
25490      ac_cv_sizeof_off_t=0
25491    fi ;;
25492 esac
25493 else
25494   cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h.  */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h.  */
25500 $ac_includes_default
25501    typedef off_t ac__type_sizeof_;
25502 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25503 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25504 #include <stdio.h>
25505 #include <stdlib.h>
25506 int
25507 main ()
25508 {
25509
25510   FILE *f = fopen ("conftest.val", "w");
25511   if (! f)
25512     return 1;
25513   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25514     {
25515       long int i = longval ();
25516       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25517         return 1;
25518       fprintf (f, "%ld\n", i);
25519     }
25520   else
25521     {
25522       unsigned long int i = ulongval ();
25523       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25524         return 1;
25525       fprintf (f, "%lu\n", i);
25526     }
25527   return ferror (f) || fclose (f) != 0;
25528
25529   ;
25530   return 0;
25531 }
25532 _ACEOF
25533 rm -f conftest$ac_exeext
25534 if { (ac_try="$ac_link"
25535 case "(($ac_try" in
25536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537   *) ac_try_echo=$ac_try;;
25538 esac
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540   (eval "$ac_link") 2>&5
25541   ac_status=$?
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25544   { (case "(($ac_try" in
25545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546   *) ac_try_echo=$ac_try;;
25547 esac
25548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25549   (eval "$ac_try") 2>&5
25550   ac_status=$?
25551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); }; }; then
25553   ac_cv_sizeof_off_t=`cat conftest.val`
25554 else
25555   echo "$as_me: program exited with status $ac_status" >&5
25556 echo "$as_me: failed program was:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25558
25559 ( exit $ac_status )
25560 if test "$ac_cv_type_off_t" = yes; then
25561      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
25562 See \`config.log' for more details." >&5
25563 echo "$as_me: error: cannot compute sizeof (off_t)
25564 See \`config.log' for more details." >&2;}
25565    { (exit 77); exit 77; }; }
25566    else
25567      ac_cv_sizeof_off_t=0
25568    fi
25569 fi
25570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25571 fi
25572 rm -f conftest.val
25573 fi
25574 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
25575 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
25576
25577
25578
25579 cat >>confdefs.h <<_ACEOF
25580 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25581 _ACEOF
25582
25583
25584
25585 # If we don't have largefile support, can't handle segsize >= 2GB.
25586 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
25587    { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
25588 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
25589    { (exit 1); exit 1; }; }
25590 fi
25591
25592 # SunOS doesn't handle negative byte comparisons properly with +/- return
25593 { echo "$as_me:$LINENO: checking for working memcmp" >&5
25594 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
25595 if test "${ac_cv_func_memcmp_working+set}" = set; then
25596   echo $ECHO_N "(cached) $ECHO_C" >&6
25597 else
25598   if test "$cross_compiling" = yes; then
25599   ac_cv_func_memcmp_working=no
25600 else
25601   cat >conftest.$ac_ext <<_ACEOF
25602 /* confdefs.h.  */
25603 _ACEOF
25604 cat confdefs.h >>conftest.$ac_ext
25605 cat >>conftest.$ac_ext <<_ACEOF
25606 /* end confdefs.h.  */
25607 $ac_includes_default
25608 int
25609 main ()
25610 {
25611
25612   /* Some versions of memcmp are not 8-bit clean.  */
25613   char c0 = '\100', c1 = '\200', c2 = '\201';
25614   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25615     return 1;
25616
25617   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25618      or more and with at least one buffer not starting on a 4-byte boundary.
25619      William Lewis provided this test program.   */
25620   {
25621     char foo[21];
25622     char bar[21];
25623     int i;
25624     for (i = 0; i < 4; i++)
25625       {
25626         char *a = foo + i;
25627         char *b = bar + i;
25628         strcpy (a, "--------01111111");
25629         strcpy (b, "--------10000000");
25630         if (memcmp (a, b, 16) >= 0)
25631           return 1;
25632       }
25633     return 0;
25634   }
25635
25636   ;
25637   return 0;
25638 }
25639 _ACEOF
25640 rm -f conftest$ac_exeext
25641 if { (ac_try="$ac_link"
25642 case "(($ac_try" in
25643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25644   *) ac_try_echo=$ac_try;;
25645 esac
25646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25647   (eval "$ac_link") 2>&5
25648   ac_status=$?
25649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25651   { (case "(($ac_try" in
25652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25653   *) ac_try_echo=$ac_try;;
25654 esac
25655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25656   (eval "$ac_try") 2>&5
25657   ac_status=$?
25658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25659   (exit $ac_status); }; }; then
25660   ac_cv_func_memcmp_working=yes
25661 else
25662   echo "$as_me: program exited with status $ac_status" >&5
25663 echo "$as_me: failed program was:" >&5
25664 sed 's/^/| /' conftest.$ac_ext >&5
25665
25666 ( exit $ac_status )
25667 ac_cv_func_memcmp_working=no
25668 fi
25669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25670 fi
25671
25672
25673 fi
25674 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25675 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
25676 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25677   *" memcmp.$ac_objext "* ) ;;
25678   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25679  ;;
25680 esac
25681
25682
25683
25684
25685 # Select semaphore implementation type.
25686 if test "$PORTNAME" != "win32"; then
25687   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
25688
25689 cat >>confdefs.h <<\_ACEOF
25690 #define USE_NAMED_POSIX_SEMAPHORES 1
25691 _ACEOF
25692
25693     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25694   else
25695     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
25696
25697 cat >>confdefs.h <<\_ACEOF
25698 #define USE_UNNAMED_POSIX_SEMAPHORES 1
25699 _ACEOF
25700
25701       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
25702     else
25703
25704 cat >>confdefs.h <<\_ACEOF
25705 #define USE_SYSV_SEMAPHORES 1
25706 _ACEOF
25707
25708       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
25709     fi
25710   fi
25711 else
25712
25713 cat >>confdefs.h <<\_ACEOF
25714 #define USE_WIN32_SEMAPHORES 1
25715 _ACEOF
25716
25717   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
25718 fi
25719
25720
25721 # Select shared-memory implementation type.
25722 if test "$PORTNAME" != "win32"; then
25723
25724 cat >>confdefs.h <<\_ACEOF
25725 #define USE_SYSV_SHARED_MEMORY 1
25726 _ACEOF
25727
25728   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
25729 else
25730
25731 cat >>confdefs.h <<\_ACEOF
25732 #define USE_WIN32_SHARED_MEMORY 1
25733 _ACEOF
25734
25735   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
25736 fi
25737
25738 # If not set in template file, set bytes to use libc memset()
25739 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
25740   MEMSET_LOOP_LIMIT=1024
25741 fi
25742
25743 cat >>confdefs.h <<_ACEOF
25744 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
25745 _ACEOF
25746
25747
25748
25749 if test "$enable_nls" = yes ; then
25750
25751   { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
25752 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
25753 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25754   echo $ECHO_N "(cached) $ECHO_C" >&6
25755 else
25756   ac_func_search_save_LIBS=$LIBS
25757 cat >conftest.$ac_ext <<_ACEOF
25758 /* confdefs.h.  */
25759 _ACEOF
25760 cat confdefs.h >>conftest.$ac_ext
25761 cat >>conftest.$ac_ext <<_ACEOF
25762 /* end confdefs.h.  */
25763
25764 /* Override any GCC internal prototype to avoid an error.
25765    Use char because int might match the return type of a GCC
25766    builtin and then its argument prototype would still apply.  */
25767 #ifdef __cplusplus
25768 extern "C"
25769 #endif
25770 char bind_textdomain_codeset ();
25771 int
25772 main ()
25773 {
25774 return bind_textdomain_codeset ();
25775   ;
25776   return 0;
25777 }
25778 _ACEOF
25779 for ac_lib in '' intl; do
25780   if test -z "$ac_lib"; then
25781     ac_res="none required"
25782   else
25783     ac_res=-l$ac_lib
25784     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25785   fi
25786   rm -f conftest.$ac_objext conftest$ac_exeext
25787 if { (ac_try="$ac_link"
25788 case "(($ac_try" in
25789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25790   *) ac_try_echo=$ac_try;;
25791 esac
25792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25793   (eval "$ac_link") 2>conftest.er1
25794   ac_status=$?
25795   grep -v '^ *+' conftest.er1 >conftest.err
25796   rm -f conftest.er1
25797   cat conftest.err >&5
25798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25799   (exit $ac_status); } && {
25800          test -z "$ac_c_werror_flag" ||
25801          test ! -s conftest.err
25802        } && test -s conftest$ac_exeext &&
25803        $as_test_x conftest$ac_exeext; then
25804   ac_cv_search_bind_textdomain_codeset=$ac_res
25805 else
25806   echo "$as_me: failed program was:" >&5
25807 sed 's/^/| /' conftest.$ac_ext >&5
25808
25809
25810 fi
25811
25812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25813       conftest$ac_exeext
25814   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25815   break
25816 fi
25817 done
25818 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
25819   :
25820 else
25821   ac_cv_search_bind_textdomain_codeset=no
25822 fi
25823 rm conftest.$ac_ext
25824 LIBS=$ac_func_search_save_LIBS
25825 fi
25826 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
25827 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
25828 ac_res=$ac_cv_search_bind_textdomain_codeset
25829 if test "$ac_res" != no; then
25830   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25831
25832 else
25833   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
25834 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
25835    { (exit 1); exit 1; }; }
25836 fi
25837
25838   if test "${ac_cv_header_libintl_h+set}" = set; then
25839   { echo "$as_me:$LINENO: checking for libintl.h" >&5
25840 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25841 if test "${ac_cv_header_libintl_h+set}" = set; then
25842   echo $ECHO_N "(cached) $ECHO_C" >&6
25843 fi
25844 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25845 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25846 else
25847   # Is the header compilable?
25848 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
25849 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
25850 cat >conftest.$ac_ext <<_ACEOF
25851 /* confdefs.h.  */
25852 _ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h.  */
25856 $ac_includes_default
25857 #include <libintl.h>
25858 _ACEOF
25859 rm -f conftest.$ac_objext
25860 if { (ac_try="$ac_compile"
25861 case "(($ac_try" in
25862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25863   *) ac_try_echo=$ac_try;;
25864 esac
25865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25866   (eval "$ac_compile") 2>conftest.er1
25867   ac_status=$?
25868   grep -v '^ *+' conftest.er1 >conftest.err
25869   rm -f conftest.er1
25870   cat conftest.err >&5
25871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25872   (exit $ac_status); } && {
25873          test -z "$ac_c_werror_flag" ||
25874          test ! -s conftest.err
25875        } && test -s conftest.$ac_objext; then
25876   ac_header_compiler=yes
25877 else
25878   echo "$as_me: failed program was:" >&5
25879 sed 's/^/| /' conftest.$ac_ext >&5
25880
25881         ac_header_compiler=no
25882 fi
25883
25884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25886 echo "${ECHO_T}$ac_header_compiler" >&6; }
25887
25888 # Is the header present?
25889 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25890 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25891 cat >conftest.$ac_ext <<_ACEOF
25892 /* confdefs.h.  */
25893 _ACEOF
25894 cat confdefs.h >>conftest.$ac_ext
25895 cat >>conftest.$ac_ext <<_ACEOF
25896 /* end confdefs.h.  */
25897 #include <libintl.h>
25898 _ACEOF
25899 if { (ac_try="$ac_cpp conftest.$ac_ext"
25900 case "(($ac_try" in
25901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25902   *) ac_try_echo=$ac_try;;
25903 esac
25904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25906   ac_status=$?
25907   grep -v '^ *+' conftest.er1 >conftest.err
25908   rm -f conftest.er1
25909   cat conftest.err >&5
25910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); } >/dev/null && {
25912          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25913          test ! -s conftest.err
25914        }; then
25915   ac_header_preproc=yes
25916 else
25917   echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25919
25920   ac_header_preproc=no
25921 fi
25922
25923 rm -f conftest.err conftest.$ac_ext
25924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25925 echo "${ECHO_T}$ac_header_preproc" >&6; }
25926
25927 # So?  What about this header?
25928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25929   yes:no: )
25930     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25931 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25932     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25933 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25934     ac_header_preproc=yes
25935     ;;
25936   no:yes:* )
25937     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25938 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25939     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
25940 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
25941     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25942 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25943     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
25944 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25945     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25946 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25947     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25948 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25949     ( cat <<\_ASBOX
25950 ## ---------------------------------------- ##
25951 ## Report this to pgsql-bugs@postgresql.org ##
25952 ## ---------------------------------------- ##
25953 _ASBOX
25954      ) | sed "s/^/$as_me: WARNING:     /" >&2
25955     ;;
25956 esac
25957 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25958 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25959 if test "${ac_cv_header_libintl_h+set}" = set; then
25960   echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962   ac_cv_header_libintl_h=$ac_header_preproc
25963 fi
25964 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25965 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25966
25967 fi
25968 if test $ac_cv_header_libintl_h = yes; then
25969   :
25970 else
25971   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25972 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25973    { (exit 1); exit 1; }; }
25974 fi
25975
25976
25977   for ac_prog in msgfmt
25978 do
25979   # Extract the first word of "$ac_prog", so it can be a program name with args.
25980 set dummy $ac_prog; ac_word=$2
25981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25983 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25984   echo $ECHO_N "(cached) $ECHO_C" >&6
25985 else
25986   if test -n "$MSGFMT"; then
25987   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25988 else
25989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25990 for as_dir in $PATH
25991 do
25992   IFS=$as_save_IFS
25993   test -z "$as_dir" && as_dir=.
25994   for ac_exec_ext in '' $ac_executable_extensions; do
25995   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25996     ac_cv_prog_MSGFMT="$ac_prog"
25997     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25998     break 2
25999   fi
26000 done
26001 done
26002 IFS=$as_save_IFS
26003
26004 fi
26005 fi
26006 MSGFMT=$ac_cv_prog_MSGFMT
26007 if test -n "$MSGFMT"; then
26008   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
26009 echo "${ECHO_T}$MSGFMT" >&6; }
26010 else
26011   { echo "$as_me:$LINENO: result: no" >&5
26012 echo "${ECHO_T}no" >&6; }
26013 fi
26014
26015
26016   test -n "$MSGFMT" && break
26017 done
26018
26019   if test -z "$MSGFMT"; then
26020     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
26021 echo "$as_me: error: msgfmt is required for NLS" >&2;}
26022    { (exit 1); exit 1; }; }
26023   fi
26024   for ac_prog in msgmerge
26025 do
26026   # Extract the first word of "$ac_prog", so it can be a program name with args.
26027 set dummy $ac_prog; ac_word=$2
26028 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26030 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
26031   echo $ECHO_N "(cached) $ECHO_C" >&6
26032 else
26033   if test -n "$MSGMERGE"; then
26034   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
26035 else
26036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037 for as_dir in $PATH
26038 do
26039   IFS=$as_save_IFS
26040   test -z "$as_dir" && as_dir=.
26041   for ac_exec_ext in '' $ac_executable_extensions; do
26042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26043     ac_cv_prog_MSGMERGE="$ac_prog"
26044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26045     break 2
26046   fi
26047 done
26048 done
26049 IFS=$as_save_IFS
26050
26051 fi
26052 fi
26053 MSGMERGE=$ac_cv_prog_MSGMERGE
26054 if test -n "$MSGMERGE"; then
26055   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
26056 echo "${ECHO_T}$MSGMERGE" >&6; }
26057 else
26058   { echo "$as_me:$LINENO: result: no" >&5
26059 echo "${ECHO_T}no" >&6; }
26060 fi
26061
26062
26063   test -n "$MSGMERGE" && break
26064 done
26065
26066   for ac_prog in xgettext
26067 do
26068   # Extract the first word of "$ac_prog", so it can be a program name with args.
26069 set dummy $ac_prog; ac_word=$2
26070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26072 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
26073   echo $ECHO_N "(cached) $ECHO_C" >&6
26074 else
26075   if test -n "$XGETTEXT"; then
26076   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
26077 else
26078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26079 for as_dir in $PATH
26080 do
26081   IFS=$as_save_IFS
26082   test -z "$as_dir" && as_dir=.
26083   for ac_exec_ext in '' $ac_executable_extensions; do
26084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26085     ac_cv_prog_XGETTEXT="$ac_prog"
26086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26087     break 2
26088   fi
26089 done
26090 done
26091 IFS=$as_save_IFS
26092
26093 fi
26094 fi
26095 XGETTEXT=$ac_cv_prog_XGETTEXT
26096 if test -n "$XGETTEXT"; then
26097   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
26098 echo "${ECHO_T}$XGETTEXT" >&6; }
26099 else
26100   { echo "$as_me:$LINENO: result: no" >&5
26101 echo "${ECHO_T}no" >&6; }
26102 fi
26103
26104
26105   test -n "$XGETTEXT" && break
26106 done
26107
26108
26109 fi
26110
26111 # Check for Tcl configuration script tclConfig.sh
26112 if test "$with_tcl" = yes; then
26113     for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
26114 do
26115   # Extract the first word of "$ac_prog", so it can be a program name with args.
26116 set dummy $ac_prog; ac_word=$2
26117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26119 if test "${ac_cv_path_TCLSH+set}" = set; then
26120   echo $ECHO_N "(cached) $ECHO_C" >&6
26121 else
26122   case $TCLSH in
26123   [\\/]* | ?:[\\/]*)
26124   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
26125   ;;
26126   *)
26127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26128 for as_dir in $PATH
26129 do
26130   IFS=$as_save_IFS
26131   test -z "$as_dir" && as_dir=.
26132   for ac_exec_ext in '' $ac_executable_extensions; do
26133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26134     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
26135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26136     break 2
26137   fi
26138 done
26139 done
26140 IFS=$as_save_IFS
26141
26142   ;;
26143 esac
26144 fi
26145 TCLSH=$ac_cv_path_TCLSH
26146 if test -n "$TCLSH"; then
26147   { echo "$as_me:$LINENO: result: $TCLSH" >&5
26148 echo "${ECHO_T}$TCLSH" >&6; }
26149 else
26150   { echo "$as_me:$LINENO: result: no" >&5
26151 echo "${ECHO_T}no" >&6; }
26152 fi
26153
26154
26155   test -n "$TCLSH" && break
26156 done
26157
26158 if test x"$TCLSH" = x""; then
26159   { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
26160 echo "$as_me: error: Tcl shell not found" >&2;}
26161    { (exit 1); exit 1; }; }
26162 fi
26163
26164 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
26165 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
26166 # Let user override test
26167 if test -z "$TCL_CONFIG_SH"; then
26168     pgac_test_dirs="$with_tclconfig"
26169
26170     set X $pgac_test_dirs; shift
26171     if test $# -eq 0; then
26172         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
26173 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
26174    { (exit 1); exit 1; }; }
26175         set X `echo 'puts $auto_path' | $TCLSH`; shift
26176     fi
26177
26178     for pgac_dir do
26179         if test -r "$pgac_dir/tclConfig.sh"; then
26180             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
26181             break
26182         fi
26183     done
26184 fi
26185
26186 if test -z "$TCL_CONFIG_SH"; then
26187     { echo "$as_me:$LINENO: result: no" >&5
26188 echo "${ECHO_T}no" >&6; }
26189     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
26190 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
26191    { (exit 1); exit 1; }; }
26192 else
26193     { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
26194 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
26195 fi
26196
26197
26198
26199     . "$TCL_CONFIG_SH"
26200 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
26201 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
26202 eval TCL_LIBS=\"$TCL_LIBS\"
26203 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
26204 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
26205
26206         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
26207     ac_save_CPPFLAGS=$CPPFLAGS
26208     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
26209     if test "${ac_cv_header_tcl_h+set}" = set; then
26210   { echo "$as_me:$LINENO: checking for tcl.h" >&5
26211 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26212 if test "${ac_cv_header_tcl_h+set}" = set; then
26213   echo $ECHO_N "(cached) $ECHO_C" >&6
26214 fi
26215 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26216 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26217 else
26218   # Is the header compilable?
26219 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
26220 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
26221 cat >conftest.$ac_ext <<_ACEOF
26222 /* confdefs.h.  */
26223 _ACEOF
26224 cat confdefs.h >>conftest.$ac_ext
26225 cat >>conftest.$ac_ext <<_ACEOF
26226 /* end confdefs.h.  */
26227 $ac_includes_default
26228 #include <tcl.h>
26229 _ACEOF
26230 rm -f conftest.$ac_objext
26231 if { (ac_try="$ac_compile"
26232 case "(($ac_try" in
26233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26234   *) ac_try_echo=$ac_try;;
26235 esac
26236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26237   (eval "$ac_compile") 2>conftest.er1
26238   ac_status=$?
26239   grep -v '^ *+' conftest.er1 >conftest.err
26240   rm -f conftest.er1
26241   cat conftest.err >&5
26242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26243   (exit $ac_status); } && {
26244          test -z "$ac_c_werror_flag" ||
26245          test ! -s conftest.err
26246        } && test -s conftest.$ac_objext; then
26247   ac_header_compiler=yes
26248 else
26249   echo "$as_me: failed program was:" >&5
26250 sed 's/^/| /' conftest.$ac_ext >&5
26251
26252         ac_header_compiler=no
26253 fi
26254
26255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26257 echo "${ECHO_T}$ac_header_compiler" >&6; }
26258
26259 # Is the header present?
26260 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
26261 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
26262 cat >conftest.$ac_ext <<_ACEOF
26263 /* confdefs.h.  */
26264 _ACEOF
26265 cat confdefs.h >>conftest.$ac_ext
26266 cat >>conftest.$ac_ext <<_ACEOF
26267 /* end confdefs.h.  */
26268 #include <tcl.h>
26269 _ACEOF
26270 if { (ac_try="$ac_cpp conftest.$ac_ext"
26271 case "(($ac_try" in
26272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26273   *) ac_try_echo=$ac_try;;
26274 esac
26275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26277   ac_status=$?
26278   grep -v '^ *+' conftest.er1 >conftest.err
26279   rm -f conftest.er1
26280   cat conftest.err >&5
26281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282   (exit $ac_status); } >/dev/null && {
26283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26284          test ! -s conftest.err
26285        }; then
26286   ac_header_preproc=yes
26287 else
26288   echo "$as_me: failed program was:" >&5
26289 sed 's/^/| /' conftest.$ac_ext >&5
26290
26291   ac_header_preproc=no
26292 fi
26293
26294 rm -f conftest.err conftest.$ac_ext
26295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26296 echo "${ECHO_T}$ac_header_preproc" >&6; }
26297
26298 # So?  What about this header?
26299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26300   yes:no: )
26301     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26302 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26303     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
26304 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
26305     ac_header_preproc=yes
26306     ;;
26307   no:yes:* )
26308     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
26309 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
26310     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
26311 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
26312     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
26313 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
26314     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
26315 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
26316     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
26317 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
26318     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
26319 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
26320     ( cat <<\_ASBOX
26321 ## ---------------------------------------- ##
26322 ## Report this to pgsql-bugs@postgresql.org ##
26323 ## ---------------------------------------- ##
26324 _ASBOX
26325      ) | sed "s/^/$as_me: WARNING:     /" >&2
26326     ;;
26327 esac
26328 { echo "$as_me:$LINENO: checking for tcl.h" >&5
26329 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
26330 if test "${ac_cv_header_tcl_h+set}" = set; then
26331   echo $ECHO_N "(cached) $ECHO_C" >&6
26332 else
26333   ac_cv_header_tcl_h=$ac_header_preproc
26334 fi
26335 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
26336 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
26337
26338 fi
26339 if test $ac_cv_header_tcl_h = yes; then
26340   :
26341 else
26342   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
26343 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
26344    { (exit 1); exit 1; }; }
26345 fi
26346
26347
26348     CPPFLAGS=$ac_save_CPPFLAGS
26349 fi
26350
26351 #
26352 # Check for DocBook and tools
26353 #
26354 for ac_prog in onsgmls nsgmls
26355 do
26356   # Extract the first word of "$ac_prog", so it can be a program name with args.
26357 set dummy $ac_prog; ac_word=$2
26358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26360 if test "${ac_cv_prog_NSGMLS+set}" = set; then
26361   echo $ECHO_N "(cached) $ECHO_C" >&6
26362 else
26363   if test -n "$NSGMLS"; then
26364   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
26365 else
26366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26367 for as_dir in $PATH
26368 do
26369   IFS=$as_save_IFS
26370   test -z "$as_dir" && as_dir=.
26371   for ac_exec_ext in '' $ac_executable_extensions; do
26372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26373     ac_cv_prog_NSGMLS="$ac_prog"
26374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26375     break 2
26376   fi
26377 done
26378 done
26379 IFS=$as_save_IFS
26380
26381 fi
26382 fi
26383 NSGMLS=$ac_cv_prog_NSGMLS
26384 if test -n "$NSGMLS"; then
26385   { echo "$as_me:$LINENO: result: $NSGMLS" >&5
26386 echo "${ECHO_T}$NSGMLS" >&6; }
26387 else
26388   { echo "$as_me:$LINENO: result: no" >&5
26389 echo "${ECHO_T}no" >&6; }
26390 fi
26391
26392
26393   test -n "$NSGMLS" && break
26394 done
26395
26396 for ac_prog in openjade jade
26397 do
26398   # Extract the first word of "$ac_prog", so it can be a program name with args.
26399 set dummy $ac_prog; ac_word=$2
26400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26402 if test "${ac_cv_prog_JADE+set}" = set; then
26403   echo $ECHO_N "(cached) $ECHO_C" >&6
26404 else
26405   if test -n "$JADE"; then
26406   ac_cv_prog_JADE="$JADE" # Let the user override the test.
26407 else
26408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26409 for as_dir in $PATH
26410 do
26411   IFS=$as_save_IFS
26412   test -z "$as_dir" && as_dir=.
26413   for ac_exec_ext in '' $ac_executable_extensions; do
26414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26415     ac_cv_prog_JADE="$ac_prog"
26416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26417     break 2
26418   fi
26419 done
26420 done
26421 IFS=$as_save_IFS
26422
26423 fi
26424 fi
26425 JADE=$ac_cv_prog_JADE
26426 if test -n "$JADE"; then
26427   { echo "$as_me:$LINENO: result: $JADE" >&5
26428 echo "${ECHO_T}$JADE" >&6; }
26429 else
26430   { echo "$as_me:$LINENO: result: no" >&5
26431 echo "${ECHO_T}no" >&6; }
26432 fi
26433
26434
26435   test -n "$JADE" && break
26436 done
26437
26438
26439 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
26440 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
26441 if test "${pgac_cv_check_docbook+set}" = set; then
26442   echo $ECHO_N "(cached) $ECHO_C" >&6
26443 else
26444   cat >conftest.sgml <<EOF
26445 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
26446 <book>
26447  <title>test</title>
26448  <chapter>
26449   <title>random</title>
26450    <sect1>
26451     <title>testsect</title>
26452     <para>text</para>
26453   </sect1>
26454  </chapter>
26455 </book>
26456 EOF
26457
26458 pgac_cv_check_docbook=no
26459
26460 if test -n "$NSGMLS"; then
26461   $NSGMLS -s conftest.sgml 1>&5 2>&1
26462   if test $? -eq 0; then
26463     pgac_cv_check_docbook=yes
26464   fi
26465 fi
26466 rm -f conftest.sgml
26467 fi
26468 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
26469 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
26470
26471 have_docbook=$pgac_cv_check_docbook
26472
26473
26474 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
26475 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
26476 if test "${pgac_cv_path_stylesheets+set}" = set; then
26477   echo $ECHO_N "(cached) $ECHO_C" >&6
26478 else
26479   if test -n "$DOCBOOKSTYLE"; then
26480   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
26481 else
26482   for pgac_prefix in /usr /usr/local /opt /sw; do
26483     for pgac_infix in share lib; do
26484       for pgac_postfix in \
26485         sgml/stylesheets/nwalsh-modular \
26486         sgml/stylesheets/docbook \
26487         sgml/stylesheets/dsssl/docbook \
26488         sgml/docbook-dsssl \
26489         sgml/docbook/dsssl/modular \
26490         sgml/docbook/stylesheet/dsssl/modular \
26491         sgml/docbook/dsssl-stylesheets \
26492         sgml/dsssl/docbook-dsssl-nwalsh
26493       do
26494         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
26495         if test -r "$pgac_candidate/html/docbook.dsl" \
26496            && test -r "$pgac_candidate/print/docbook.dsl"
26497         then
26498           pgac_cv_path_stylesheets=$pgac_candidate
26499           break 3
26500         fi
26501       done
26502     done
26503   done
26504 fi
26505 fi
26506
26507 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
26508
26509 if test -n "$DOCBOOKSTYLE"; then
26510   { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
26511 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
26512 else
26513   { echo "$as_me:$LINENO: result: no" >&5
26514 echo "${ECHO_T}no" >&6; }
26515 fi
26516 if test -n "$DOCBOOKSTYLE"; then
26517   for ac_prog in collateindex.pl
26518 do
26519   # Extract the first word of "$ac_prog", so it can be a program name with args.
26520 set dummy $ac_prog; ac_word=$2
26521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26523 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26524   echo $ECHO_N "(cached) $ECHO_C" >&6
26525 else
26526   case $COLLATEINDEX in
26527   [\\/]* | ?:[\\/]*)
26528   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26529   ;;
26530   *)
26531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26532 for as_dir in $DOCBOOKSTYLE/bin $PATH
26533 do
26534   IFS=$as_save_IFS
26535   test -z "$as_dir" && as_dir=.
26536   for ac_exec_ext in '' $ac_executable_extensions; do
26537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26538     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26540     break 2
26541   fi
26542 done
26543 done
26544 IFS=$as_save_IFS
26545
26546   ;;
26547 esac
26548 fi
26549 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26550 if test -n "$COLLATEINDEX"; then
26551   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26552 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26553 else
26554   { echo "$as_me:$LINENO: result: no" >&5
26555 echo "${ECHO_T}no" >&6; }
26556 fi
26557
26558
26559   test -n "$COLLATEINDEX" && break
26560 done
26561
26562 else
26563   for ac_prog in collateindex.pl
26564 do
26565   # Extract the first word of "$ac_prog", so it can be a program name with args.
26566 set dummy $ac_prog; ac_word=$2
26567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26569 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
26570   echo $ECHO_N "(cached) $ECHO_C" >&6
26571 else
26572   case $COLLATEINDEX in
26573   [\\/]* | ?:[\\/]*)
26574   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
26575   ;;
26576   *)
26577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26578 for as_dir in $PATH
26579 do
26580   IFS=$as_save_IFS
26581   test -z "$as_dir" && as_dir=.
26582   for ac_exec_ext in '' $ac_executable_extensions; do
26583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26584     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
26585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26586     break 2
26587   fi
26588 done
26589 done
26590 IFS=$as_save_IFS
26591
26592   ;;
26593 esac
26594 fi
26595 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
26596 if test -n "$COLLATEINDEX"; then
26597   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
26598 echo "${ECHO_T}$COLLATEINDEX" >&6; }
26599 else
26600   { echo "$as_me:$LINENO: result: no" >&5
26601 echo "${ECHO_T}no" >&6; }
26602 fi
26603
26604
26605   test -n "$COLLATEINDEX" && break
26606 done
26607
26608 fi
26609 for ac_prog in sgmlspl
26610 do
26611   # Extract the first word of "$ac_prog", so it can be a program name with args.
26612 set dummy $ac_prog; ac_word=$2
26613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
26614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
26615 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
26616   echo $ECHO_N "(cached) $ECHO_C" >&6
26617 else
26618   if test -n "$SGMLSPL"; then
26619   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
26620 else
26621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26622 for as_dir in $PATH
26623 do
26624   IFS=$as_save_IFS
26625   test -z "$as_dir" && as_dir=.
26626   for ac_exec_ext in '' $ac_executable_extensions; do
26627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26628     ac_cv_prog_SGMLSPL="$ac_prog"
26629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26630     break 2
26631   fi
26632 done
26633 done
26634 IFS=$as_save_IFS
26635
26636 fi
26637 fi
26638 SGMLSPL=$ac_cv_prog_SGMLSPL
26639 if test -n "$SGMLSPL"; then
26640   { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
26641 echo "${ECHO_T}$SGMLSPL" >&6; }
26642 else
26643   { echo "$as_me:$LINENO: result: no" >&5
26644 echo "${ECHO_T}no" >&6; }
26645 fi
26646
26647
26648   test -n "$SGMLSPL" && break
26649 done
26650
26651 { echo "$as_me:$LINENO: checking for docbook2man" >&5
26652 echo $ECHO_N "checking for docbook2man... $ECHO_C" >&6; }
26653 if test "${ac_cv_path_DOCBOOK2MAN+set}" = set; then
26654   echo $ECHO_N "(cached) $ECHO_C" >&6
26655 else
26656   if test -z "$DOCBOOK2MAN"; then
26657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26658 for as_dir in $PATH
26659 do
26660   IFS=$as_save_IFS
26661   test -z "$as_dir" && as_dir=.
26662   for ac_prog in docbook2x-man db2x_docbook2man docbook2man; do
26663     ac_path="$as_dir/$ac_prog"
26664     { test -f "$ac_path" && $as_test_x "$ac_path"; } || continue
26665     if "$ac_path" --version 2>/dev/null | $GREP docbook2x >/dev/null 2>&1; then
26666       ac_cv_path_DOCBOOK2MAN=$ac_path
26667       break
26668     fi
26669   done
26670 done
26671 IFS=$as_save_IFS
26672
26673 else
26674   ac_cv_path_DOCBOOK2MAN=$DOCBOOK2MAN
26675 fi
26676 fi
26677 { echo "$as_me:$LINENO: result: $ac_cv_path_DOCBOOK2MAN" >&5
26678 echo "${ECHO_T}$ac_cv_path_DOCBOOK2MAN" >&6; }
26679 DOCBOOK2MAN=$ac_cv_path_DOCBOOK2MAN
26680
26681
26682
26683 # Thread testing
26684
26685 # We have to run the thread test near the end so we have all our symbols
26686 # defined.  Cross compiling throws a warning.
26687 #
26688 if test "$enable_thread_safety_force" = yes; then
26689 if test "$PORTNAME" != "win32"
26690 then
26691   { echo "$as_me:$LINENO: WARNING:
26692 *** Skipping thread test program.  --enable-thread-safety-force was used.
26693 *** Run the program in src/test/thread on the your machine and add proper
26694 *** locking function calls to your applications to guarantee thread safety.
26695 " >&5
26696 echo "$as_me: WARNING:
26697 *** Skipping thread test program.  --enable-thread-safety-force was used.
26698 *** Run the program in src/test/thread on the your machine and add proper
26699 *** locking function calls to your applications to guarantee thread safety.
26700 " >&2;}
26701 else
26702 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26703 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26704 fi
26705 elif test "$enable_thread_safety" = yes; then
26706 if test "$PORTNAME" != "win32"
26707 then
26708 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
26709 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
26710
26711 _CFLAGS="$CFLAGS"
26712 _LIBS="$LIBS"
26713 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
26714 LIBS="$LIBS $PTHREAD_LIBS"
26715 if test "$cross_compiling" = yes; then
26716   { echo "$as_me:$LINENO: result: maybe" >&5
26717 echo "${ECHO_T}maybe" >&6; }
26718   { echo "$as_me:$LINENO: WARNING:
26719 *** Skipping thread test program because of cross-compile build.
26720 *** Run the program in src/test/thread on the target machine.
26721 " >&5
26722 echo "$as_me: WARNING:
26723 *** Skipping thread test program because of cross-compile build.
26724 *** Run the program in src/test/thread on the target machine.
26725 " >&2;}
26726 else
26727   cat >conftest.$ac_ext <<_ACEOF
26728 /* confdefs.h.  */
26729 _ACEOF
26730 cat confdefs.h >>conftest.$ac_ext
26731 cat >>conftest.$ac_ext <<_ACEOF
26732 /* end confdefs.h.  */
26733 #include "$srcdir/src/test/thread/thread_test.c"
26734 _ACEOF
26735 rm -f conftest$ac_exeext
26736 if { (ac_try="$ac_link"
26737 case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_link") 2>&5
26743   ac_status=$?
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26746   { (case "(($ac_try" in
26747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748   *) ac_try_echo=$ac_try;;
26749 esac
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751   (eval "$ac_try") 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); }; }; then
26755   { echo "$as_me:$LINENO: result: yes" >&5
26756 echo "${ECHO_T}yes" >&6; }
26757 else
26758   echo "$as_me: program exited with status $ac_status" >&5
26759 echo "$as_me: failed program was:" >&5
26760 sed 's/^/| /' conftest.$ac_ext >&5
26761
26762 ( exit $ac_status )
26763 { echo "$as_me:$LINENO: result: no" >&5
26764 echo "${ECHO_T}no" >&6; }
26765   { { echo "$as_me:$LINENO: error: thread test program failed
26766 This platform is not thread-safe.  Check the file 'config.log' for the
26767 exact reason.
26768
26769 You can use the configure option --enable-thread-safety-force to force
26770 threads to be enabled.  But you must then run the program in
26771 src/test/thread and add locking function calls to your applications to
26772 guarantee thread safety." >&5
26773 echo "$as_me: error: thread test program failed
26774 This platform is not thread-safe.  Check the file 'config.log' for the
26775 exact reason.
26776
26777 You can use the configure option --enable-thread-safety-force to force
26778 threads to be enabled.  But you must then run the program in
26779 src/test/thread and add locking function calls to your applications to
26780 guarantee thread safety." >&2;}
26781    { (exit 1); exit 1; }; }
26782 fi
26783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26784 fi
26785
26786
26787 CFLAGS="$_CFLAGS"
26788 LIBS="$_LIBS"
26789 else
26790 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
26791 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
26792 fi
26793 fi
26794
26795 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
26796 # This is much easier than trying to filter LIBS to the minimum for each
26797 # executable.  (Note that shared library links won't use this switch, though.)
26798 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
26799 # libreadline; therefore we postpone testing it until we know what library
26800 # dependencies readline has.  The test code will try to link with $LIBS.
26801 if test "$with_readline" = yes; then
26802   link_test_func=readline
26803 else
26804   link_test_func=exit
26805 fi
26806 if test "$PORTNAME" != "darwin"; then
26807   { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
26808 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
26809 pgac_save_LDFLAGS=$LDFLAGS
26810 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
26811 if test "$cross_compiling" = yes; then
26812   LDFLAGS="$pgac_save_LDFLAGS"
26813                { echo "$as_me:$LINENO: result: assuming no" >&5
26814 echo "${ECHO_T}assuming no" >&6; }
26815 else
26816   cat >conftest.$ac_ext <<_ACEOF
26817 /* confdefs.h.  */
26818 _ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h.  */
26822 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26823 int
26824 main ()
26825 {
26826
26827   ;
26828   return 0;
26829 }
26830 _ACEOF
26831 rm -f conftest$ac_exeext
26832 if { (ac_try="$ac_link"
26833 case "(($ac_try" in
26834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835   *) ac_try_echo=$ac_try;;
26836 esac
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838   (eval "$ac_link") 2>&5
26839   ac_status=$?
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26842   { (case "(($ac_try" in
26843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844   *) ac_try_echo=$ac_try;;
26845 esac
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847   (eval "$ac_try") 2>&5
26848   ac_status=$?
26849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850   (exit $ac_status); }; }; then
26851   { echo "$as_me:$LINENO: result: yes" >&5
26852 echo "${ECHO_T}yes" >&6; }
26853 else
26854   echo "$as_me: program exited with status $ac_status" >&5
26855 echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858 ( exit $ac_status )
26859 LDFLAGS="$pgac_save_LDFLAGS"
26860                { echo "$as_me:$LINENO: result: no" >&5
26861 echo "${ECHO_T}no" >&6; }
26862 fi
26863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26864 fi
26865
26866
26867
26868 else
26869   # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
26870   { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
26871 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
26872 pgac_save_LDFLAGS=$LDFLAGS
26873 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
26874 if test "$cross_compiling" = yes; then
26875   LDFLAGS="$pgac_save_LDFLAGS"
26876                { echo "$as_me:$LINENO: result: assuming no" >&5
26877 echo "${ECHO_T}assuming no" >&6; }
26878 else
26879   cat >conftest.$ac_ext <<_ACEOF
26880 /* confdefs.h.  */
26881 _ACEOF
26882 cat confdefs.h >>conftest.$ac_ext
26883 cat >>conftest.$ac_ext <<_ACEOF
26884 /* end confdefs.h.  */
26885 extern void $link_test_func (); void (*fptr) () = $link_test_func;
26886 int
26887 main ()
26888 {
26889
26890   ;
26891   return 0;
26892 }
26893 _ACEOF
26894 rm -f conftest$ac_exeext
26895 if { (ac_try="$ac_link"
26896 case "(($ac_try" in
26897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898   *) ac_try_echo=$ac_try;;
26899 esac
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901   (eval "$ac_link") 2>&5
26902   ac_status=$?
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26905   { (case "(($ac_try" in
26906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26907   *) ac_try_echo=$ac_try;;
26908 esac
26909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26910   (eval "$ac_try") 2>&5
26911   ac_status=$?
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); }; }; then
26914   { echo "$as_me:$LINENO: result: yes" >&5
26915 echo "${ECHO_T}yes" >&6; }
26916 else
26917   echo "$as_me: program exited with status $ac_status" >&5
26918 echo "$as_me: failed program was:" >&5
26919 sed 's/^/| /' conftest.$ac_ext >&5
26920
26921 ( exit $ac_status )
26922 LDFLAGS="$pgac_save_LDFLAGS"
26923                { echo "$as_me:$LINENO: result: no" >&5
26924 echo "${ECHO_T}no" >&6; }
26925 fi
26926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26927 fi
26928
26929
26930
26931 fi
26932
26933
26934 # Begin output steps
26935
26936 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26937 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26938 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26939 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26940 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26941 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26942
26943 # prepare build tree if outside source tree
26944 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26945 # Note 2: /bin/pwd might be better than shell's built-in at getting
26946 #         a symlink-free name.
26947 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26948   vpath_build=no
26949 else
26950   vpath_build=yes
26951   if test "$no_create" != yes; then
26952     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26953     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26954     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26955       || { { echo "$as_me:$LINENO: error: failed" >&5
26956 echo "$as_me: error: failed" >&2;}
26957    { (exit 1); exit 1; }; }
26958     { echo "$as_me:$LINENO: result: done" >&5
26959 echo "${ECHO_T}done" >&6; }
26960   fi
26961 fi
26962
26963
26964
26965 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26966
26967
26968 ac_config_links="$ac_config_links src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION} src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION} src/include/dynloader.h:src/backend/port/dynloader/${template}.h src/include/pg_config_os.h:src/include/port/${template}.h src/Makefile.port:src/makefiles/Makefile.${template}"
26969
26970
26971 if test "$PORTNAME" = "win32"; then
26972 ac_config_commands="$ac_config_commands check_win32_symlinks"
26973
26974 fi
26975
26976 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26977
26978
26979 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26980
26981
26982 cat >confcache <<\_ACEOF
26983 # This file is a shell script that caches the results of configure
26984 # tests run on this system so they can be shared between configure
26985 # scripts and configure runs, see configure's option --config-cache.
26986 # It is not useful on other systems.  If it contains results you don't
26987 # want to keep, you may remove or edit it.
26988 #
26989 # config.status only pays attention to the cache file if you give it
26990 # the --recheck option to rerun configure.
26991 #
26992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26994 # following values.
26995
26996 _ACEOF
26997
26998 # The following way of writing the cache mishandles newlines in values,
26999 # but we know of no workaround that is simple, portable, and efficient.
27000 # So, we kill variables containing newlines.
27001 # Ultrix sh set writes to stderr and can't be redirected directly,
27002 # and sets the high bit in the cache file unless we assign to the vars.
27003 (
27004   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27005     eval ac_val=\$$ac_var
27006     case $ac_val in #(
27007     *${as_nl}*)
27008       case $ac_var in #(
27009       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27010 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27011       esac
27012       case $ac_var in #(
27013       _ | IFS | as_nl) ;; #(
27014       *) $as_unset $ac_var ;;
27015       esac ;;
27016     esac
27017   done
27018
27019   (set) 2>&1 |
27020     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27021     *${as_nl}ac_space=\ *)
27022       # `set' does not quote correctly, so add quotes (double-quote
27023       # substitution turns \\\\ into \\, and sed turns \\ into \).
27024       sed -n \
27025         "s/'/'\\\\''/g;
27026           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27027       ;; #(
27028     *)
27029       # `set' quotes correctly as required by POSIX, so do not add quotes.
27030       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27031       ;;
27032     esac |
27033     sort
27034 ) |
27035   sed '
27036      /^ac_cv_env_/b end
27037      t clear
27038      :clear
27039      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27040      t end
27041      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27042      :end' >>confcache
27043 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27044   if test -w "$cache_file"; then
27045     test "x$cache_file" != "x/dev/null" &&
27046       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27047 echo "$as_me: updating cache $cache_file" >&6;}
27048     cat confcache >$cache_file
27049   else
27050     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27051 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27052   fi
27053 fi
27054 rm -f confcache
27055
27056 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27057 # Let make expand exec_prefix.
27058 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27059
27060 DEFS=-DHAVE_CONFIG_H
27061
27062 ac_libobjs=
27063 ac_ltlibobjs=
27064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27065   # 1. Remove the extension, and $U if already installed.
27066   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
27067   ac_i=`echo "$ac_i" | sed "$ac_script"`
27068   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
27069   #    will be set to the directory where LIBOBJS objects are built.
27070   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
27071   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
27072 done
27073 LIBOBJS=$ac_libobjs
27074
27075 LTLIBOBJS=$ac_ltlibobjs
27076
27077
27078
27079 : ${CONFIG_STATUS=./config.status}
27080 ac_clean_files_save=$ac_clean_files
27081 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27082 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27083 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27084 cat >$CONFIG_STATUS <<_ACEOF
27085 #! $SHELL
27086 # Generated by $as_me.
27087 # Run this file to recreate the current configuration.
27088 # Compiler output produced by configure, useful for debugging
27089 # configure, is in config.log if it exists.
27090
27091 debug=false
27092 ac_cs_recheck=false
27093 ac_cs_silent=false
27094 SHELL=\${CONFIG_SHELL-$SHELL}
27095 _ACEOF
27096
27097 cat >>$CONFIG_STATUS <<\_ACEOF
27098 ## --------------------- ##
27099 ## M4sh Initialization.  ##
27100 ## --------------------- ##
27101
27102 # Be more Bourne compatible
27103 DUALCASE=1; export DUALCASE # for MKS sh
27104 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27105   emulate sh
27106   NULLCMD=:
27107   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27108   # is contrary to our usage.  Disable this feature.
27109   alias -g '${1+"$@"}'='"$@"'
27110   setopt NO_GLOB_SUBST
27111 else
27112   case `(set -o) 2>/dev/null` in
27113   *posix*) set -o posix ;;
27114 esac
27115
27116 fi
27117
27118
27119
27120
27121 # PATH needs CR
27122 # Avoid depending upon Character Ranges.
27123 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27124 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27125 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27126 as_cr_digits='0123456789'
27127 as_cr_alnum=$as_cr_Letters$as_cr_digits
27128
27129 # The user is always right.
27130 if test "${PATH_SEPARATOR+set}" != set; then
27131   echo "#! /bin/sh" >conf$$.sh
27132   echo  "exit 0"   >>conf$$.sh
27133   chmod +x conf$$.sh
27134   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27135     PATH_SEPARATOR=';'
27136   else
27137     PATH_SEPARATOR=:
27138   fi
27139   rm -f conf$$.sh
27140 fi
27141
27142 # Support unset when possible.
27143 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27144   as_unset=unset
27145 else
27146   as_unset=false
27147 fi
27148
27149
27150 # IFS
27151 # We need space, tab and new line, in precisely that order.  Quoting is
27152 # there to prevent editors from complaining about space-tab.
27153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27154 # splitting by setting IFS to empty value.)
27155 as_nl='
27156 '
27157 IFS=" ""        $as_nl"
27158
27159 # Find who we are.  Look in the path if we contain no directory separator.
27160 case $0 in
27161   *[\\/]* ) as_myself=$0 ;;
27162   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27163 for as_dir in $PATH
27164 do
27165   IFS=$as_save_IFS
27166   test -z "$as_dir" && as_dir=.
27167   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27168 done
27169 IFS=$as_save_IFS
27170
27171      ;;
27172 esac
27173 # We did not find ourselves, most probably we were run as `sh COMMAND'
27174 # in which case we are not to be found in the path.
27175 if test "x$as_myself" = x; then
27176   as_myself=$0
27177 fi
27178 if test ! -f "$as_myself"; then
27179   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27180   { (exit 1); exit 1; }
27181 fi
27182
27183 # Work around bugs in pre-3.0 UWIN ksh.
27184 for as_var in ENV MAIL MAILPATH
27185 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27186 done
27187 PS1='$ '
27188 PS2='> '
27189 PS4='+ '
27190
27191 # NLS nuisances.
27192 for as_var in \
27193   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27194   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27195   LC_TELEPHONE LC_TIME
27196 do
27197   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27198     eval $as_var=C; export $as_var
27199   else
27200     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27201   fi
27202 done
27203
27204 # Required to use basename.
27205 if expr a : '\(a\)' >/dev/null 2>&1 &&
27206    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27207   as_expr=expr
27208 else
27209   as_expr=false
27210 fi
27211
27212 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27213   as_basename=basename
27214 else
27215   as_basename=false
27216 fi
27217
27218
27219 # Name of the executable.
27220 as_me=`$as_basename -- "$0" ||
27221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27222          X"$0" : 'X\(//\)$' \| \
27223          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27224 echo X/"$0" |
27225     sed '/^.*\/\([^/][^/]*\)\/*$/{
27226             s//\1/
27227             q
27228           }
27229           /^X\/\(\/\/\)$/{
27230             s//\1/
27231             q
27232           }
27233           /^X\/\(\/\).*/{
27234             s//\1/
27235             q
27236           }
27237           s/.*/./; q'`
27238
27239 # CDPATH.
27240 $as_unset CDPATH
27241
27242
27243
27244   as_lineno_1=$LINENO
27245   as_lineno_2=$LINENO
27246   test "x$as_lineno_1" != "x$as_lineno_2" &&
27247   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27248
27249   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27250   # uniformly replaced by the line number.  The first 'sed' inserts a
27251   # line-number line after each line using $LINENO; the second 'sed'
27252   # does the real work.  The second script uses 'N' to pair each
27253   # line-number line with the line containing $LINENO, and appends
27254   # trailing '-' during substitution so that $LINENO is not a special
27255   # case at line end.
27256   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27257   # scripts with optimization help from Paolo Bonzini.  Blame Lee
27258   # E. McMahon (1931-1989) for sed's syntax.  :-)
27259   sed -n '
27260     p
27261     /[$]LINENO/=
27262   ' <$as_myself |
27263     sed '
27264       s/[$]LINENO.*/&-/
27265       t lineno
27266       b
27267       :lineno
27268       N
27269       :loop
27270       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27271       t loop
27272       s/-\n.*//
27273     ' >$as_me.lineno &&
27274   chmod +x "$as_me.lineno" ||
27275     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27276    { (exit 1); exit 1; }; }
27277
27278   # Don't try to exec as it changes $[0], causing all sort of problems
27279   # (the dirname of $[0] is not the place where we might find the
27280   # original and so on.  Autoconf is especially sensitive to this).
27281   . "./$as_me.lineno"
27282   # Exit status is that of the last command.
27283   exit
27284 }
27285
27286
27287 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27288   as_dirname=dirname
27289 else
27290   as_dirname=false
27291 fi
27292
27293 ECHO_C= ECHO_N= ECHO_T=
27294 case `echo -n x` in
27295 -n*)
27296   case `echo 'x\c'` in
27297   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
27298   *)   ECHO_C='\c';;
27299   esac;;
27300 *)
27301   ECHO_N='-n';;
27302 esac
27303
27304 if expr a : '\(a\)' >/dev/null 2>&1 &&
27305    test "X`expr 00001 : '.*\(...\)'`" = X001; then
27306   as_expr=expr
27307 else
27308   as_expr=false
27309 fi
27310
27311 rm -f conf$$ conf$$.exe conf$$.file
27312 if test -d conf$$.dir; then
27313   rm -f conf$$.dir/conf$$.file
27314 else
27315   rm -f conf$$.dir
27316   mkdir conf$$.dir
27317 fi
27318 echo >conf$$.file
27319 if ln -s conf$$.file conf$$ 2>/dev/null; then
27320   as_ln_s='ln -s'
27321   # ... but there are two gotchas:
27322   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27323   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27324   # In both cases, we have to default to `cp -p'.
27325   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27326     as_ln_s='cp -p'
27327 elif ln conf$$.file conf$$ 2>/dev/null; then
27328   as_ln_s=ln
27329 else
27330   as_ln_s='cp -p'
27331 fi
27332 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27333 rmdir conf$$.dir 2>/dev/null
27334
27335 if mkdir -p . 2>/dev/null; then
27336   as_mkdir_p=:
27337 else
27338   test -d ./-p && rmdir ./-p
27339   as_mkdir_p=false
27340 fi
27341
27342 if test -x / >/dev/null 2>&1; then
27343   as_test_x='test -x'
27344 else
27345   if ls -dL / >/dev/null 2>&1; then
27346     as_ls_L_option=L
27347   else
27348     as_ls_L_option=
27349   fi
27350   as_test_x='
27351     eval sh -c '\''
27352       if test -d "$1"; then
27353         test -d "$1/.";
27354       else
27355         case $1 in
27356         -*)set "./$1";;
27357         esac;
27358         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27359         ???[sx]*):;;*)false;;esac;fi
27360     '\'' sh
27361   '
27362 fi
27363 as_executable_p=$as_test_x
27364
27365 # Sed expression to map a string onto a valid CPP name.
27366 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27367
27368 # Sed expression to map a string onto a valid variable name.
27369 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27370
27371
27372 exec 6>&1
27373
27374 # Save the log message, to keep $[0] and so on meaningful, and to
27375 # report actual input values of CONFIG_FILES etc. instead of their
27376 # values after options handling.
27377 ac_log="
27378 This file was extended by PostgreSQL $as_me 8.4devel, which was
27379 generated by GNU Autoconf 2.61.  Invocation command line was
27380
27381   CONFIG_FILES    = $CONFIG_FILES
27382   CONFIG_HEADERS  = $CONFIG_HEADERS
27383   CONFIG_LINKS    = $CONFIG_LINKS
27384   CONFIG_COMMANDS = $CONFIG_COMMANDS
27385   $ $0 $@
27386
27387 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27388 "
27389
27390 _ACEOF
27391
27392 cat >>$CONFIG_STATUS <<_ACEOF
27393 # Files that config.status was made for.
27394 config_files="$ac_config_files"
27395 config_headers="$ac_config_headers"
27396 config_links="$ac_config_links"
27397 config_commands="$ac_config_commands"
27398
27399 _ACEOF
27400
27401 cat >>$CONFIG_STATUS <<\_ACEOF
27402 ac_cs_usage="\
27403 \`$as_me' instantiates files from templates according to the
27404 current configuration.
27405
27406 Usage: $0 [OPTIONS] [FILE]...
27407
27408   -h, --help       print this help, then exit
27409   -V, --version    print version number and configuration settings, then exit
27410   -q, --quiet      do not print progress messages
27411   -d, --debug      don't remove temporary files
27412       --recheck    update $as_me by reconfiguring in the same conditions
27413   --file=FILE[:TEMPLATE]
27414                    instantiate the configuration file FILE
27415   --header=FILE[:TEMPLATE]
27416                    instantiate the configuration header FILE
27417
27418 Configuration files:
27419 $config_files
27420
27421 Configuration headers:
27422 $config_headers
27423
27424 Configuration links:
27425 $config_links
27426
27427 Configuration commands:
27428 $config_commands
27429
27430 Report bugs to <bug-autoconf@gnu.org>."
27431
27432 _ACEOF
27433 cat >>$CONFIG_STATUS <<_ACEOF
27434 ac_cs_version="\\
27435 PostgreSQL config.status 8.4devel
27436 configured by $0, generated by GNU Autoconf 2.61,
27437   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27438
27439 Copyright (C) 2006 Free Software Foundation, Inc.
27440 This config.status script is free software; the Free Software Foundation
27441 gives unlimited permission to copy, distribute and modify it."
27442
27443 ac_pwd='$ac_pwd'
27444 srcdir='$srcdir'
27445 _ACEOF
27446
27447 cat >>$CONFIG_STATUS <<\_ACEOF
27448 # If no file are specified by the user, then we need to provide default
27449 # value.  By we need to know if files were specified by the user.
27450 ac_need_defaults=:
27451 while test $# != 0
27452 do
27453   case $1 in
27454   --*=*)
27455     ac_option=`expr "X$1" : 'X\([^=]*\)='`
27456     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27457     ac_shift=:
27458     ;;
27459   *)
27460     ac_option=$1
27461     ac_optarg=$2
27462     ac_shift=shift
27463     ;;
27464   esac
27465
27466   case $ac_option in
27467   # Handling of the options.
27468   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27469     ac_cs_recheck=: ;;
27470   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27471     echo "$ac_cs_version"; exit ;;
27472   --debug | --debu | --deb | --de | --d | -d )
27473     debug=: ;;
27474   --file | --fil | --fi | --f )
27475     $ac_shift
27476     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27477     ac_need_defaults=false;;
27478   --header | --heade | --head | --hea )
27479     $ac_shift
27480     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27481     ac_need_defaults=false;;
27482   --he | --h)
27483     # Conflict between --help and --header
27484     { echo "$as_me: error: ambiguous option: $1
27485 Try \`$0 --help' for more information." >&2
27486    { (exit 1); exit 1; }; };;
27487   --help | --hel | -h )
27488     echo "$ac_cs_usage"; exit ;;
27489   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27490   | -silent | --silent | --silen | --sile | --sil | --si | --s)
27491     ac_cs_silent=: ;;
27492
27493   # This is an error.
27494   -*) { echo "$as_me: error: unrecognized option: $1
27495 Try \`$0 --help' for more information." >&2
27496    { (exit 1); exit 1; }; } ;;
27497
27498   *) ac_config_targets="$ac_config_targets $1"
27499      ac_need_defaults=false ;;
27500
27501   esac
27502   shift
27503 done
27504
27505 ac_configure_extra_args=
27506
27507 if $ac_cs_silent; then
27508   exec 6>/dev/null
27509   ac_configure_extra_args="$ac_configure_extra_args --silent"
27510 fi
27511
27512 _ACEOF
27513 cat >>$CONFIG_STATUS <<_ACEOF
27514 if \$ac_cs_recheck; then
27515   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27516   CONFIG_SHELL=$SHELL
27517   export CONFIG_SHELL
27518   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27519 fi
27520
27521 _ACEOF
27522 cat >>$CONFIG_STATUS <<\_ACEOF
27523 exec 5>>config.log
27524 {
27525   echo
27526   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27527 ## Running $as_me. ##
27528 _ASBOX
27529   echo "$ac_log"
27530 } >&5
27531
27532 _ACEOF
27533 cat >>$CONFIG_STATUS <<_ACEOF
27534 _ACEOF
27535
27536 cat >>$CONFIG_STATUS <<\_ACEOF
27537
27538 # Handling of arguments.
27539 for ac_config_target in $ac_config_targets
27540 do
27541   case $ac_config_target in
27542     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
27543     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
27544     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
27545     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
27546     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
27547     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
27548     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
27549     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
27550     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
27551     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
27552     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
27553     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
27554
27555   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27556 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27557    { (exit 1); exit 1; }; };;
27558   esac
27559 done
27560
27561
27562 # If the user did not use the arguments to specify the items to instantiate,
27563 # then the envvar interface is used.  Set only those that are not.
27564 # We use the long form for the default assignment because of an extremely
27565 # bizarre bug on SunOS 4.1.3.
27566 if $ac_need_defaults; then
27567   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27568   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27569   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27570   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27571 fi
27572
27573 # Have a temporary directory for convenience.  Make it in the build tree
27574 # simply because there is no reason against having it here, and in addition,
27575 # creating and moving files from /tmp can sometimes cause problems.
27576 # Hook for its removal unless debugging.
27577 # Note that there is a small window in which the directory will not be cleaned:
27578 # after its creation but before its name has been assigned to `$tmp'.
27579 $debug ||
27580 {
27581   tmp=
27582   trap 'exit_status=$?
27583   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27584 ' 0
27585   trap '{ (exit 1); exit 1; }' 1 2 13 15
27586 }
27587 # Create a (secure) tmp directory for tmp files.
27588
27589 {
27590   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27591   test -n "$tmp" && test -d "$tmp"
27592 }  ||
27593 {
27594   tmp=./conf$$-$RANDOM
27595   (umask 077 && mkdir "$tmp")
27596 } ||
27597 {
27598    echo "$me: cannot create a temporary directory in ." >&2
27599    { (exit 1); exit 1; }
27600 }
27601
27602 #
27603 # Set up the sed scripts for CONFIG_FILES section.
27604 #
27605
27606 # No need to generate the scripts if there are no CONFIG_FILES.
27607 # This happens for instance when ./config.status config.h
27608 if test -n "$CONFIG_FILES"; then
27609
27610 _ACEOF
27611
27612
27613
27614 ac_delim='%!_!# '
27615 for ac_last_try in false false false false false :; do
27616   cat >conf$$subs.sed <<_ACEOF
27617 SHELL!$SHELL$ac_delim
27618 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
27619 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
27620 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
27621 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
27622 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
27623 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
27624 exec_prefix!$exec_prefix$ac_delim
27625 prefix!$prefix$ac_delim
27626 program_transform_name!$program_transform_name$ac_delim
27627 bindir!$bindir$ac_delim
27628 sbindir!$sbindir$ac_delim
27629 libexecdir!$libexecdir$ac_delim
27630 datarootdir!$datarootdir$ac_delim
27631 datadir!$datadir$ac_delim
27632 sysconfdir!$sysconfdir$ac_delim
27633 sharedstatedir!$sharedstatedir$ac_delim
27634 localstatedir!$localstatedir$ac_delim
27635 includedir!$includedir$ac_delim
27636 oldincludedir!$oldincludedir$ac_delim
27637 docdir!$docdir$ac_delim
27638 infodir!$infodir$ac_delim
27639 htmldir!$htmldir$ac_delim
27640 dvidir!$dvidir$ac_delim
27641 pdfdir!$pdfdir$ac_delim
27642 psdir!$psdir$ac_delim
27643 libdir!$libdir$ac_delim
27644 localedir!$localedir$ac_delim
27645 mandir!$mandir$ac_delim
27646 DEFS!$DEFS$ac_delim
27647 ECHO_C!$ECHO_C$ac_delim
27648 ECHO_N!$ECHO_N$ac_delim
27649 ECHO_T!$ECHO_T$ac_delim
27650 LIBS!$LIBS$ac_delim
27651 build_alias!$build_alias$ac_delim
27652 host_alias!$host_alias$ac_delim
27653 target_alias!$target_alias$ac_delim
27654 configure_args!$configure_args$ac_delim
27655 PG_MAJORVERSION!$PG_MAJORVERSION$ac_delim
27656 build!$build$ac_delim
27657 build_cpu!$build_cpu$ac_delim
27658 build_vendor!$build_vendor$ac_delim
27659 build_os!$build_os$ac_delim
27660 host!$host$ac_delim
27661 host_cpu!$host_cpu$ac_delim
27662 host_vendor!$host_vendor$ac_delim
27663 host_os!$host_os$ac_delim
27664 PORTNAME!$PORTNAME$ac_delim
27665 enable_nls!$enable_nls$ac_delim
27666 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
27667 default_port!$default_port$ac_delim
27668 enable_shared!$enable_shared$ac_delim
27669 enable_rpath!$enable_rpath$ac_delim
27670 enable_debug!$enable_debug$ac_delim
27671 enable_profiling!$enable_profiling$ac_delim
27672 GCOV!$GCOV$ac_delim
27673 LCOV!$LCOV$ac_delim
27674 GENHTML!$GENHTML$ac_delim
27675 enable_coverage!$enable_coverage$ac_delim
27676 DTRACE!$DTRACE$ac_delim
27677 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
27678 enable_dtrace!$enable_dtrace$ac_delim
27679 CC!$CC$ac_delim
27680 CFLAGS!$CFLAGS$ac_delim
27681 LDFLAGS!$LDFLAGS$ac_delim
27682 CPPFLAGS!$CPPFLAGS$ac_delim
27683 ac_ct_CC!$ac_ct_CC$ac_delim
27684 EXEEXT!$EXEEXT$ac_delim
27685 OBJEXT!$OBJEXT$ac_delim
27686 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
27687 CPP!$CPP$ac_delim
27688 GCC!$GCC$ac_delim
27689 GREP!$GREP$ac_delim
27690 EGREP!$EGREP$ac_delim
27691 TAS!$TAS$ac_delim
27692 autodepend!$autodepend$ac_delim
27693 INCLUDES!$INCLUDES$ac_delim
27694 enable_thread_safety!$enable_thread_safety$ac_delim
27695 with_tcl!$with_tcl$ac_delim
27696 with_perl!$with_perl$ac_delim
27697 with_python!$with_python$ac_delim
27698 with_gssapi!$with_gssapi$ac_delim
27699 with_krb5!$with_krb5$ac_delim
27700 krb_srvtab!$krb_srvtab$ac_delim
27701 with_pam!$with_pam$ac_delim
27702 with_ldap!$with_ldap$ac_delim
27703 with_bonjour!$with_bonjour$ac_delim
27704 with_openssl!$with_openssl$ac_delim
27705 with_ossp_uuid!$with_ossp_uuid$ac_delim
27706 XML2_CONFIG!$XML2_CONFIG$ac_delim
27707 with_libxml!$with_libxml$ac_delim
27708 with_libxslt!$with_libxslt$ac_delim
27709 with_system_tzdata!$with_system_tzdata$ac_delim
27710 with_zlib!$with_zlib$ac_delim
27711 ELF_SYS!$ELF_SYS$ac_delim
27712 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
27713 LD!$LD$ac_delim
27714 _ACEOF
27715
27716   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
27717     break
27718   elif $ac_last_try; then
27719     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27720 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27721    { (exit 1); exit 1; }; }
27722   else
27723     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27724   fi
27725 done
27726
27727 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27728 if test -n "$ac_eof"; then
27729   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27730   ac_eof=`expr $ac_eof + 1`
27731 fi
27732
27733 cat >>$CONFIG_STATUS <<_ACEOF
27734 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
27735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27736 _ACEOF
27737 sed '
27738 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27739 s/^/s,@/; s/!/@,|#_!!_#|/
27740 :n
27741 t n
27742 s/'"$ac_delim"'$/,g/; t
27743 s/$/\\/; p
27744 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27745 ' >>$CONFIG_STATUS <conf$$subs.sed
27746 rm -f conf$$subs.sed
27747 cat >>$CONFIG_STATUS <<_ACEOF
27748 CEOF$ac_eof
27749 _ACEOF
27750
27751
27752 ac_delim='%!_!# '
27753 for ac_last_try in false false false false false :; do
27754   cat >conf$$subs.sed <<_ACEOF
27755 with_gnu_ld!$with_gnu_ld$ac_delim
27756 ld_R_works!$ld_R_works$ac_delim
27757 RANLIB!$RANLIB$ac_delim
27758 STRIP!$STRIP$ac_delim
27759 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
27760 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
27761 AR!$AR$ac_delim
27762 DLLTOOL!$DLLTOOL$ac_delim
27763 DLLWRAP!$DLLWRAP$ac_delim
27764 WINDRES!$WINDRES$ac_delim
27765 TAR!$TAR$ac_delim
27766 LN_S!$LN_S$ac_delim
27767 AWK!$AWK$ac_delim
27768 BISON!$BISON$ac_delim
27769 BISONFLAGS!$BISONFLAGS$ac_delim
27770 FLEX!$FLEX$ac_delim
27771 FLEXFLAGS!$FLEXFLAGS$ac_delim
27772 PERL!$PERL$ac_delim
27773 perl_archlibexp!$perl_archlibexp$ac_delim
27774 perl_privlibexp!$perl_privlibexp$ac_delim
27775 perl_useshrplib!$perl_useshrplib$ac_delim
27776 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
27777 PYTHON!$PYTHON$ac_delim
27778 python_version!$python_version$ac_delim
27779 python_configdir!$python_configdir$ac_delim
27780 python_includespec!$python_includespec$ac_delim
27781 python_libdir!$python_libdir$ac_delim
27782 python_libspec!$python_libspec$ac_delim
27783 python_additional_libs!$python_additional_libs$ac_delim
27784 ZIC!$ZIC$ac_delim
27785 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
27786 HAVE_IPV6!$HAVE_IPV6$ac_delim
27787 LIBOBJS!$LIBOBJS$ac_delim
27788 acx_pthread_config!$acx_pthread_config$ac_delim
27789 PTHREAD_CC!$PTHREAD_CC$ac_delim
27790 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
27791 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
27792 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
27793 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
27794 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
27795 MSGFMT!$MSGFMT$ac_delim
27796 MSGMERGE!$MSGMERGE$ac_delim
27797 XGETTEXT!$XGETTEXT$ac_delim
27798 TCLSH!$TCLSH$ac_delim
27799 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
27800 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
27801 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
27802 TCL_LIBS!$TCL_LIBS$ac_delim
27803 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
27804 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
27805 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
27806 NSGMLS!$NSGMLS$ac_delim
27807 JADE!$JADE$ac_delim
27808 have_docbook!$have_docbook$ac_delim
27809 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
27810 COLLATEINDEX!$COLLATEINDEX$ac_delim
27811 SGMLSPL!$SGMLSPL$ac_delim
27812 DOCBOOK2MAN!$DOCBOOK2MAN$ac_delim
27813 vpath_build!$vpath_build$ac_delim
27814 LTLIBOBJS!$LTLIBOBJS$ac_delim
27815 _ACEOF
27816
27817   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
27818     break
27819   elif $ac_last_try; then
27820     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27821 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27822    { (exit 1); exit 1; }; }
27823   else
27824     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27825   fi
27826 done
27827
27828 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
27829 if test -n "$ac_eof"; then
27830   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
27831   ac_eof=`expr $ac_eof + 1`
27832 fi
27833
27834 cat >>$CONFIG_STATUS <<_ACEOF
27835 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
27836 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
27837 _ACEOF
27838 sed '
27839 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
27840 s/^/s,@/; s/!/@,|#_!!_#|/
27841 :n
27842 t n
27843 s/'"$ac_delim"'$/,g/; t
27844 s/$/\\/; p
27845 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
27846 ' >>$CONFIG_STATUS <conf$$subs.sed
27847 rm -f conf$$subs.sed
27848 cat >>$CONFIG_STATUS <<_ACEOF
27849 :end
27850 s/|#_!!_#|//g
27851 CEOF$ac_eof
27852 _ACEOF
27853
27854
27855 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27856 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27857 # trailing colons and then remove the whole line if VPATH becomes empty
27858 # (actually we leave an empty line to preserve line numbers).
27859 if test "x$srcdir" = x.; then
27860   ac_vpsub='/^[  ]*VPATH[        ]*=/{
27861 s/:*\$(srcdir):*/:/
27862 s/:*\${srcdir}:*/:/
27863 s/:*@srcdir@:*/:/
27864 s/^\([^=]*=[     ]*\):*/\1/
27865 s/:*$//
27866 s/^[^=]*=[       ]*$//
27867 }'
27868 fi
27869
27870 cat >>$CONFIG_STATUS <<\_ACEOF
27871 fi # test -n "$CONFIG_FILES"
27872
27873
27874 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
27875 do
27876   case $ac_tag in
27877   :[FHLC]) ac_mode=$ac_tag; continue;;
27878   esac
27879   case $ac_mode$ac_tag in
27880   :[FHL]*:*);;
27881   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27882 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27883    { (exit 1); exit 1; }; };;
27884   :[FH]-) ac_tag=-:-;;
27885   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27886   esac
27887   ac_save_IFS=$IFS
27888   IFS=:
27889   set x $ac_tag
27890   IFS=$ac_save_IFS
27891   shift
27892   ac_file=$1
27893   shift
27894
27895   case $ac_mode in
27896   :L) ac_source=$1;;
27897   :[FH])
27898     ac_file_inputs=
27899     for ac_f
27900     do
27901       case $ac_f in
27902       -) ac_f="$tmp/stdin";;
27903       *) # Look for the file first in the build tree, then in the source tree
27904          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27905          # because $ac_f cannot contain `:'.
27906          test -f "$ac_f" ||
27907            case $ac_f in
27908            [\\/$]*) false;;
27909            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27910            esac ||
27911            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27912 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27913    { (exit 1); exit 1; }; };;
27914       esac
27915       ac_file_inputs="$ac_file_inputs $ac_f"
27916     done
27917
27918     # Let's still pretend it is `configure' which instantiates (i.e., don't
27919     # use $as_me), people would be surprised to read:
27920     #    /* config.h.  Generated by config.status.  */
27921     configure_input="Generated from "`IFS=:
27922           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27923     if test x"$ac_file" != x-; then
27924       configure_input="$ac_file.  $configure_input"
27925       { echo "$as_me:$LINENO: creating $ac_file" >&5
27926 echo "$as_me: creating $ac_file" >&6;}
27927     fi
27928
27929     case $ac_tag in
27930     *:-:* | *:-) cat >"$tmp/stdin";;
27931     esac
27932     ;;
27933   esac
27934
27935   ac_dir=`$as_dirname -- "$ac_file" ||
27936 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27937          X"$ac_file" : 'X\(//\)[^/]' \| \
27938          X"$ac_file" : 'X\(//\)$' \| \
27939          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27940 echo X"$ac_file" |
27941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27942             s//\1/
27943             q
27944           }
27945           /^X\(\/\/\)[^/].*/{
27946             s//\1/
27947             q
27948           }
27949           /^X\(\/\/\)$/{
27950             s//\1/
27951             q
27952           }
27953           /^X\(\/\).*/{
27954             s//\1/
27955             q
27956           }
27957           s/.*/./; q'`
27958   { as_dir="$ac_dir"
27959   case $as_dir in #(
27960   -*) as_dir=./$as_dir;;
27961   esac
27962   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27963     as_dirs=
27964     while :; do
27965       case $as_dir in #(
27966       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27967       *) as_qdir=$as_dir;;
27968       esac
27969       as_dirs="'$as_qdir' $as_dirs"
27970       as_dir=`$as_dirname -- "$as_dir" ||
27971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27972          X"$as_dir" : 'X\(//\)[^/]' \| \
27973          X"$as_dir" : 'X\(//\)$' \| \
27974          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27975 echo X"$as_dir" |
27976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27977             s//\1/
27978             q
27979           }
27980           /^X\(\/\/\)[^/].*/{
27981             s//\1/
27982             q
27983           }
27984           /^X\(\/\/\)$/{
27985             s//\1/
27986             q
27987           }
27988           /^X\(\/\).*/{
27989             s//\1/
27990             q
27991           }
27992           s/.*/./; q'`
27993       test -d "$as_dir" && break
27994     done
27995     test -z "$as_dirs" || eval "mkdir $as_dirs"
27996   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27997 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27998    { (exit 1); exit 1; }; }; }
27999   ac_builddir=.
28000
28001 case "$ac_dir" in
28002 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28003 *)
28004   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28005   # A ".." for each directory in $ac_dir_suffix.
28006   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
28007   case $ac_top_builddir_sub in
28008   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28009   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28010   esac ;;
28011 esac
28012 ac_abs_top_builddir=$ac_pwd
28013 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28014 # for backward compatibility:
28015 ac_top_builddir=$ac_top_build_prefix
28016
28017 case $srcdir in
28018   .)  # We are building in place.
28019     ac_srcdir=.
28020     ac_top_srcdir=$ac_top_builddir_sub
28021     ac_abs_top_srcdir=$ac_pwd ;;
28022   [\\/]* | ?:[\\/]* )  # Absolute name.
28023     ac_srcdir=$srcdir$ac_dir_suffix;
28024     ac_top_srcdir=$srcdir
28025     ac_abs_top_srcdir=$srcdir ;;
28026   *) # Relative name.
28027     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28028     ac_top_srcdir=$ac_top_build_prefix$srcdir
28029     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28030 esac
28031 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28032
28033
28034   case $ac_mode in
28035   :F)
28036   #
28037   # CONFIG_FILE
28038   #
28039
28040 _ACEOF
28041
28042 cat >>$CONFIG_STATUS <<\_ACEOF
28043 # If the template does not know about datarootdir, expand it.
28044 # FIXME: This hack should be removed a few years after 2.60.
28045 ac_datarootdir_hack=; ac_datarootdir_seen=
28046
28047 case `sed -n '/datarootdir/ {
28048   p
28049   q
28050 }
28051 /@datadir@/p
28052 /@docdir@/p
28053 /@infodir@/p
28054 /@localedir@/p
28055 /@mandir@/p
28056 ' $ac_file_inputs` in
28057 *datarootdir*) ac_datarootdir_seen=yes;;
28058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28059   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28060 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28061 _ACEOF
28062 cat >>$CONFIG_STATUS <<_ACEOF
28063   ac_datarootdir_hack='
28064   s&@datadir@&$datadir&g
28065   s&@docdir@&$docdir&g
28066   s&@infodir@&$infodir&g
28067   s&@localedir@&$localedir&g
28068   s&@mandir@&$mandir&g
28069     s&\\\${datarootdir}&$datarootdir&g' ;;
28070 esac
28071 _ACEOF
28072
28073 # Neutralize VPATH when `$srcdir' = `.'.
28074 # Shell code in configure.ac might set extrasub.
28075 # FIXME: do we really want to maintain this feature?
28076 cat >>$CONFIG_STATUS <<_ACEOF
28077   sed "$ac_vpsub
28078 $extrasub
28079 _ACEOF
28080 cat >>$CONFIG_STATUS <<\_ACEOF
28081 :t
28082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28083 s&@configure_input@&$configure_input&;t t
28084 s&@top_builddir@&$ac_top_builddir_sub&;t t
28085 s&@srcdir@&$ac_srcdir&;t t
28086 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28087 s&@top_srcdir@&$ac_top_srcdir&;t t
28088 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28089 s&@builddir@&$ac_builddir&;t t
28090 s&@abs_builddir@&$ac_abs_builddir&;t t
28091 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28092 $ac_datarootdir_hack
28093 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
28094
28095 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28096   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28097   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28098   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28099 which seems to be undefined.  Please make sure it is defined." >&5
28100 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28101 which seems to be undefined.  Please make sure it is defined." >&2;}
28102
28103   rm -f "$tmp/stdin"
28104   case $ac_file in
28105   -) cat "$tmp/out"; rm -f "$tmp/out";;
28106   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
28107   esac
28108  ;;
28109   :H)
28110   #
28111   # CONFIG_HEADER
28112   #
28113 _ACEOF
28114
28115 # Transform confdefs.h into a sed script `conftest.defines', that
28116 # substitutes the proper values into config.h.in to produce config.h.
28117 rm -f conftest.defines conftest.tail
28118 # First, append a space to every undef/define line, to ease matching.
28119 echo 's/$/ /' >conftest.defines
28120 # Then, protect against being on the right side of a sed subst, or in
28121 # an unquoted here document, in config.status.  If some macros were
28122 # called several times there might be several #defines for the same
28123 # symbol, which is useless.  But do not sort them, since the last
28124 # AC_DEFINE must be honored.
28125 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28126 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
28127 # NAME is the cpp macro being defined, VALUE is the value it is being given.
28128 # PARAMS is the parameter list in the macro definition--in most cases, it's
28129 # just an empty string.
28130 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
28131 ac_dB='\\)[      (].*,\\1define\\2'
28132 ac_dC=' '
28133 ac_dD=' ,'
28134
28135 uniq confdefs.h |
28136   sed -n '
28137         t rset
28138         :rset
28139         s/^[     ]*#[    ]*define[       ][      ]*//
28140         t ok
28141         d
28142         :ok
28143         s/[\\&,]/\\&/g
28144         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
28145         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
28146   ' >>conftest.defines
28147
28148 # Remove the space that was appended to ease matching.
28149 # Then replace #undef with comments.  This is necessary, for
28150 # example, in the case of _POSIX_SOURCE, which is predefined and required
28151 # on some systems where configure will not decide to define it.
28152 # (The regexp can be short, since the line contains either #define or #undef.)
28153 echo 's/ $//
28154 s,^[     #]*u.*,/* & */,' >>conftest.defines
28155
28156 # Break up conftest.defines:
28157 ac_max_sed_lines=50
28158
28159 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
28160 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
28161 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
28162 # et cetera.
28163 ac_in='$ac_file_inputs'
28164 ac_out='"$tmp/out1"'
28165 ac_nxt='"$tmp/out2"'
28166
28167 while :
28168 do
28169   # Write a here document:
28170     cat >>$CONFIG_STATUS <<_ACEOF
28171     # First, check the format of the line:
28172     cat >"\$tmp/defines.sed" <<\\CEOF
28173 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
28174 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
28175 b
28176 :def
28177 _ACEOF
28178   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
28179   echo 'CEOF
28180     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
28181   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
28182   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
28183   grep . conftest.tail >/dev/null || break
28184   rm -f conftest.defines
28185   mv conftest.tail conftest.defines
28186 done
28187 rm -f conftest.defines conftest.tail
28188
28189 echo "ac_result=$ac_in" >>$CONFIG_STATUS
28190 cat >>$CONFIG_STATUS <<\_ACEOF
28191   if test x"$ac_file" != x-; then
28192     echo "/* $configure_input  */" >"$tmp/config.h"
28193     cat "$ac_result" >>"$tmp/config.h"
28194     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
28195       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28196 echo "$as_me: $ac_file is unchanged" >&6;}
28197     else
28198       rm -f $ac_file
28199       mv "$tmp/config.h" $ac_file
28200     fi
28201   else
28202     echo "/* $configure_input  */"
28203     cat "$ac_result"
28204   fi
28205   rm -f "$tmp/out12"
28206  ;;
28207   :L)
28208   #
28209   # CONFIG_LINK
28210   #
28211
28212   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
28213 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
28214
28215   if test ! -r "$srcdir/$ac_source"; then
28216     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
28217 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
28218    { (exit 1); exit 1; }; }
28219   fi
28220   rm -f "$ac_file"
28221
28222   # Try a relative symlink, then a hard link, then a copy.
28223   case $srcdir in
28224   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
28225       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
28226   esac
28227   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
28228     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
28229     cp -p "$srcdir/$ac_source" "$ac_file" ||
28230     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
28231 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
28232    { (exit 1); exit 1; }; }
28233  ;;
28234   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
28235 echo "$as_me: executing $ac_file commands" >&6;}
28236  ;;
28237   esac
28238
28239
28240   case $ac_file$ac_mode in
28241     "check_win32_symlinks":C)
28242 # Links sometimes fail undetected on Mingw -
28243 # so here we detect it and warn the user
28244 for FILE in $CONFIG_LINKS
28245  do
28246         # test -e works for symlinks in the MinGW console
28247         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
28248 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
28249  done
28250  ;;
28251     "src/include/pg_config.h":H)
28252 # Update timestamp for pg_config.h (see Makefile.global)
28253 echo >src/include/stamp-h
28254  ;;
28255
28256   esac
28257 done # for ac_tag
28258
28259
28260 { (exit 0); exit 0; }
28261 _ACEOF
28262 chmod +x $CONFIG_STATUS
28263 ac_clean_files=$ac_clean_files_save
28264
28265
28266 # configure is writing to config.log, and then calls config.status.
28267 # config.status does its own redirection, appending to config.log.
28268 # Unfortunately, on DOS this fails, as config.log is still kept open
28269 # by configure, so config.status won't be able to write to it; its
28270 # output is simply discarded.  So we exec the FD to /dev/null,
28271 # effectively closing config.log, so it can be properly (re)opened and
28272 # appended to by config.status.  When coming back to configure, we
28273 # need to make the FD available again.
28274 if test "$no_create" != yes; then
28275   ac_cs_success=:
28276   ac_config_status_args=
28277   test "$silent" = yes &&
28278     ac_config_status_args="$ac_config_status_args --quiet"
28279   exec 5>/dev/null
28280   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28281   exec 5>>config.log
28282   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28283   # would make configure fail if this is the last instruction.
28284   $ac_cs_success || { (exit 1); exit 1; }
28285 fi
28286
28287
28288 # Warn about unknown options
28289 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
28290   for pgac_arg in $pgac_args with_gnu_ld; do
28291     if test "$pgac_var" = "$pgac_arg"; then
28292       continue 2
28293     fi
28294   done
28295   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
28296   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
28297 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
28298 done