]> granicus.if.org Git - postgresql/blob - configure
TABLE command
[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-2008, 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 build
660 build_cpu
661 build_vendor
662 build_os
663 host
664 host_cpu
665 host_vendor
666 host_os
667 PORTNAME
668 enable_nls
669 WANTED_LANGUAGES
670 default_port
671 enable_shared
672 enable_rpath
673 enable_debug
674 enable_profiling
675 GCOV
676 LCOV
677 GENHTML
678 enable_coverage
679 DTRACE
680 DTRACEFLAGS
681 enable_dtrace
682 CC
683 CFLAGS
684 LDFLAGS
685 CPPFLAGS
686 ac_ct_CC
687 EXEEXT
688 OBJEXT
689 SUN_STUDIO_CC
690 CPP
691 GCC
692 TAS
693 autodepend
694 INCLUDES
695 enable_thread_safety
696 with_tcl
697 with_perl
698 with_python
699 with_gssapi
700 with_krb5
701 krb_srvtab
702 with_pam
703 with_ldap
704 with_bonjour
705 with_openssl
706 with_ossp_uuid
707 XML2_CONFIG
708 with_libxml
709 with_libxslt
710 with_system_tzdata
711 with_zlib
712 GREP
713 EGREP
714 ELF_SYS
715 LDFLAGS_SL
716 LD
717 with_gnu_ld
718 ld_R_works
719 RANLIB
720 STRIP
721 STRIP_STATIC_LIB
722 STRIP_SHARED_LIB
723 TAR
724 LN_S
725 AWK
726 BISON
727 BISONFLAGS
728 FLEX
729 FLEXFLAGS
730 PERL
731 perl_archlibexp
732 perl_privlibexp
733 perl_useshrplib
734 perl_embed_ldflags
735 PYTHON
736 python_version
737 python_configdir
738 python_includespec
739 python_libdir
740 python_libspec
741 python_additional_libs
742 OSSP_UUID_LIBS
743 HAVE_IPV6
744 LIBOBJS
745 acx_pthread_config
746 PTHREAD_CC
747 PTHREAD_LIBS
748 PTHREAD_CFLAGS
749 LDAP_LIBS_FE
750 LDAP_LIBS_BE
751 HAVE_POSIX_SIGNALS
752 MSGFMT
753 MSGMERGE
754 XGETTEXT
755 TCLSH
756 TCL_CONFIG_SH
757 TCL_INCLUDE_SPEC
758 TCL_LIB_FILE
759 TCL_LIBS
760 TCL_LIB_SPEC
761 TCL_SHARED_BUILD
762 TCL_SHLIB_LD_LIBS
763 NSGMLS
764 JADE
765 have_docbook
766 DOCBOOKSTYLE
767 COLLATEINDEX
768 SGMLSPL
769 vpath_build
770 LTLIBOBJS'
771 ac_subst_files=''
772       ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 CPP
781 LDFLAGS_SL
782 DOCBOOKSTYLE'
783
784
785 # Initialize some variables set by options.
786 ac_init_help=
787 ac_init_version=false
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
804
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
830
831 ac_prev=
832 ac_dashdash=
833 for ac_option
834 do
835   # If the previous option needs an argument, assign it.
836   if test -n "$ac_prev"; then
837     eval $ac_prev=\$ac_option
838     ac_prev=
839     continue
840   fi
841
842   case $ac_option in
843   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844   *)    ac_optarg=yes ;;
845   esac
846
847   # Accept the important Cygnus configure options, so we can diagnose typos.
848
849   case $ac_dashdash$ac_option in
850   --)
851     ac_dashdash=yes ;;
852
853   -bindir | --bindir | --bindi | --bind | --bin | --bi)
854     ac_prev=bindir ;;
855   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856     bindir=$ac_optarg ;;
857
858   -build | --build | --buil | --bui | --bu)
859     ac_prev=build_alias ;;
860   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861     build_alias=$ac_optarg ;;
862
863   -cache-file | --cache-file | --cache-fil | --cache-fi \
864   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865     ac_prev=cache_file ;;
866   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868     cache_file=$ac_optarg ;;
869
870   --config-cache | -C)
871     cache_file=config.cache ;;
872
873   -datadir | --datadir | --datadi | --datad)
874     ac_prev=datadir ;;
875   -datadir=* | --datadir=* | --datadi=* | --datad=*)
876     datadir=$ac_optarg ;;
877
878   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879   | --dataroo | --dataro | --datar)
880     ac_prev=datarootdir ;;
881   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883     datarootdir=$ac_optarg ;;
884
885   -disable-* | --disable-*)
886     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887     # Reject names that are not valid shell variable names.
888     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
889       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
890    { (exit 1); exit 1; }; }
891     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
892     eval enable_$ac_feature=no ;;
893
894   -docdir | --docdir | --docdi | --doc | --do)
895     ac_prev=docdir ;;
896   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
897     docdir=$ac_optarg ;;
898
899   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900     ac_prev=dvidir ;;
901   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
902     dvidir=$ac_optarg ;;
903
904   -enable-* | --enable-*)
905     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906     # Reject names that are not valid shell variable names.
907     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
908       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
909    { (exit 1); exit 1; }; }
910     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
911     eval enable_$ac_feature=\$ac_optarg ;;
912
913   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915   | --exec | --exe | --ex)
916     ac_prev=exec_prefix ;;
917   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919   | --exec=* | --exe=* | --ex=*)
920     exec_prefix=$ac_optarg ;;
921
922   -gas | --gas | --ga | --g)
923     # Obsolete; use --with-gas.
924     with_gas=yes ;;
925
926   -help | --help | --hel | --he | -h)
927     ac_init_help=long ;;
928   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929     ac_init_help=recursive ;;
930   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931     ac_init_help=short ;;
932
933   -host | --host | --hos | --ho)
934     ac_prev=host_alias ;;
935   -host=* | --host=* | --hos=* | --ho=*)
936     host_alias=$ac_optarg ;;
937
938   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939     ac_prev=htmldir ;;
940   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941   | --ht=*)
942     htmldir=$ac_optarg ;;
943
944   -includedir | --includedir | --includedi | --included | --include \
945   | --includ | --inclu | --incl | --inc)
946     ac_prev=includedir ;;
947   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948   | --includ=* | --inclu=* | --incl=* | --inc=*)
949     includedir=$ac_optarg ;;
950
951   -infodir | --infodir | --infodi | --infod | --info | --inf)
952     ac_prev=infodir ;;
953   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954     infodir=$ac_optarg ;;
955
956   -libdir | --libdir | --libdi | --libd)
957     ac_prev=libdir ;;
958   -libdir=* | --libdir=* | --libdi=* | --libd=*)
959     libdir=$ac_optarg ;;
960
961   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962   | --libexe | --libex | --libe)
963     ac_prev=libexecdir ;;
964   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965   | --libexe=* | --libex=* | --libe=*)
966     libexecdir=$ac_optarg ;;
967
968   -localedir | --localedir | --localedi | --localed | --locale)
969     ac_prev=localedir ;;
970   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971     localedir=$ac_optarg ;;
972
973   -localstatedir | --localstatedir | --localstatedi | --localstated \
974   | --localstate | --localstat | --localsta | --localst | --locals)
975     ac_prev=localstatedir ;;
976   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978     localstatedir=$ac_optarg ;;
979
980   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981     ac_prev=mandir ;;
982   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983     mandir=$ac_optarg ;;
984
985   -nfp | --nfp | --nf)
986     # Obsolete; use --without-fp.
987     with_fp=no ;;
988
989   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990   | --no-cr | --no-c | -n)
991     no_create=yes ;;
992
993   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995     no_recursion=yes ;;
996
997   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999   | --oldin | --oldi | --old | --ol | --o)
1000     ac_prev=oldincludedir ;;
1001   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004     oldincludedir=$ac_optarg ;;
1005
1006   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007     ac_prev=prefix ;;
1008   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009     prefix=$ac_optarg ;;
1010
1011   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012   | --program-pre | --program-pr | --program-p)
1013     ac_prev=program_prefix ;;
1014   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016     program_prefix=$ac_optarg ;;
1017
1018   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019   | --program-suf | --program-su | --program-s)
1020     ac_prev=program_suffix ;;
1021   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023     program_suffix=$ac_optarg ;;
1024
1025   -program-transform-name | --program-transform-name \
1026   | --program-transform-nam | --program-transform-na \
1027   | --program-transform-n | --program-transform- \
1028   | --program-transform | --program-transfor \
1029   | --program-transfo | --program-transf \
1030   | --program-trans | --program-tran \
1031   | --progr-tra | --program-tr | --program-t)
1032     ac_prev=program_transform_name ;;
1033   -program-transform-name=* | --program-transform-name=* \
1034   | --program-transform-nam=* | --program-transform-na=* \
1035   | --program-transform-n=* | --program-transform-=* \
1036   | --program-transform=* | --program-transfor=* \
1037   | --program-transfo=* | --program-transf=* \
1038   | --program-trans=* | --program-tran=* \
1039   | --progr-tra=* | --program-tr=* | --program-t=*)
1040     program_transform_name=$ac_optarg ;;
1041
1042   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043     ac_prev=pdfdir ;;
1044   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045     pdfdir=$ac_optarg ;;
1046
1047   -psdir | --psdir | --psdi | --psd | --ps)
1048     ac_prev=psdir ;;
1049   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050     psdir=$ac_optarg ;;
1051
1052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053   | -silent | --silent | --silen | --sile | --sil)
1054     silent=yes ;;
1055
1056   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057     ac_prev=sbindir ;;
1058   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059   | --sbi=* | --sb=*)
1060     sbindir=$ac_optarg ;;
1061
1062   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064   | --sharedst | --shareds | --shared | --share | --shar \
1065   | --sha | --sh)
1066     ac_prev=sharedstatedir ;;
1067   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070   | --sha=* | --sh=*)
1071     sharedstatedir=$ac_optarg ;;
1072
1073   -site | --site | --sit)
1074     ac_prev=site ;;
1075   -site=* | --site=* | --sit=*)
1076     site=$ac_optarg ;;
1077
1078   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079     ac_prev=srcdir ;;
1080   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081     srcdir=$ac_optarg ;;
1082
1083   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084   | --syscon | --sysco | --sysc | --sys | --sy)
1085     ac_prev=sysconfdir ;;
1086   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088     sysconfdir=$ac_optarg ;;
1089
1090   -target | --target | --targe | --targ | --tar | --ta | --t)
1091     ac_prev=target_alias ;;
1092   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093     target_alias=$ac_optarg ;;
1094
1095   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096     verbose=yes ;;
1097
1098   -version | --version | --versio | --versi | --vers | -V)
1099     ac_init_version=: ;;
1100
1101   -with-* | --with-*)
1102     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105       { echo "$as_me: error: invalid package name: $ac_package" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1108     eval with_$ac_package=\$ac_optarg ;;
1109
1110   -without-* | --without-*)
1111     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112     # Reject names that are not valid shell variable names.
1113     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1114       { echo "$as_me: error: invalid package name: $ac_package" >&2
1115    { (exit 1); exit 1; }; }
1116     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1117     eval with_$ac_package=no ;;
1118
1119   --x)
1120     # Obsolete; use --with-x.
1121     with_x=yes ;;
1122
1123   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124   | --x-incl | --x-inc | --x-in | --x-i)
1125     ac_prev=x_includes ;;
1126   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128     x_includes=$ac_optarg ;;
1129
1130   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132     ac_prev=x_libraries ;;
1133   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135     x_libraries=$ac_optarg ;;
1136
1137   -*) { echo "$as_me: error: unrecognized option: $ac_option
1138 Try \`$0 --help' for more information." >&2
1139    { (exit 1); exit 1; }; }
1140     ;;
1141
1142   *=*)
1143     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1146       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1147    { (exit 1); exit 1; }; }
1148     eval $ac_envvar=\$ac_optarg
1149     export $ac_envvar ;;
1150
1151   *)
1152     # FIXME: should be removed in autoconf 3.0.
1153     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1157     ;;
1158
1159   esac
1160 done
1161
1162 if test -n "$ac_prev"; then
1163   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164   { echo "$as_me: error: missing argument to $ac_option" >&2
1165    { (exit 1); exit 1; }; }
1166 fi
1167
1168 # Be sure to have absolute directory names.
1169 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1170                 datadir sysconfdir sharedstatedir localstatedir includedir \
1171                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1172                 libdir localedir mandir
1173 do
1174   eval ac_val=\$$ac_var
1175   case $ac_val in
1176     [\\/$]* | ?:[\\/]* )  continue;;
1177     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1178   esac
1179   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1180    { (exit 1); exit 1; }; }
1181 done
1182
1183 # There might be people who depend on the old broken behavior: `$host'
1184 # used to hold the argument of --host etc.
1185 # FIXME: To remove some day.
1186 build=$build_alias
1187 host=$host_alias
1188 target=$target_alias
1189
1190 # FIXME: To remove some day.
1191 if test "x$host_alias" != x; then
1192   if test "x$build_alias" = x; then
1193     cross_compiling=maybe
1194     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1195     If a cross compiler is detected then cross compile mode will be used." >&2
1196   elif test "x$build_alias" != "x$host_alias"; then
1197     cross_compiling=yes
1198   fi
1199 fi
1200
1201 ac_tool_prefix=
1202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1203
1204 test "$silent" = yes && exec 6>/dev/null
1205
1206
1207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1208 ac_ls_di=`ls -di .` &&
1209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1210   { echo "$as_me: error: Working directory cannot be determined" >&2
1211    { (exit 1); exit 1; }; }
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213   { echo "$as_me: error: pwd does not report name of working directory" >&2
1214    { (exit 1); exit 1; }; }
1215
1216
1217 # Find the source files, if location was not specified.
1218 if test -z "$srcdir"; then
1219   ac_srcdir_defaulted=yes
1220   # Try the directory containing this script, then the parent directory.
1221   ac_confdir=`$as_dirname -- "$0" ||
1222 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1223          X"$0" : 'X\(//\)[^/]' \| \
1224          X"$0" : 'X\(//\)$' \| \
1225          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1226 echo X"$0" |
1227     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1228             s//\1/
1229             q
1230           }
1231           /^X\(\/\/\)[^/].*/{
1232             s//\1/
1233             q
1234           }
1235           /^X\(\/\/\)$/{
1236             s//\1/
1237             q
1238           }
1239           /^X\(\/\).*/{
1240             s//\1/
1241             q
1242           }
1243           s/.*/./; q'`
1244   srcdir=$ac_confdir
1245   if test ! -r "$srcdir/$ac_unique_file"; then
1246     srcdir=..
1247   fi
1248 else
1249   ac_srcdir_defaulted=no
1250 fi
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1252   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1253   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1254    { (exit 1); exit 1; }; }
1255 fi
1256 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1257 ac_abs_confdir=`(
1258         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1259    { (exit 1); exit 1; }; }
1260         pwd)`
1261 # When building in place, set srcdir=.
1262 if test "$ac_abs_confdir" = "$ac_pwd"; then
1263   srcdir=.
1264 fi
1265 # Remove unnecessary trailing slashes from srcdir.
1266 # Double slashes in file names in object file debugging info
1267 # mess up M-x gdb in Emacs.
1268 case $srcdir in
1269 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1270 esac
1271 for ac_var in $ac_precious_vars; do
1272   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1273   eval ac_env_${ac_var}_value=\$${ac_var}
1274   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1275   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 done
1277
1278 #
1279 # Report the --help message.
1280 #
1281 if test "$ac_init_help" = "long"; then
1282   # Omit some internal or obsolete options to make the list less imposing.
1283   # This message is too long to be a string in the A/UX 3.1 sh.
1284   cat <<_ACEOF
1285 \`configure' configures PostgreSQL 8.4devel to adapt to many kinds of systems.
1286
1287 Usage: $0 [OPTION]... [VAR=VALUE]...
1288
1289 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1290 VAR=VALUE.  See below for descriptions of some of the useful variables.
1291
1292 Defaults for the options are specified in brackets.
1293
1294 Configuration:
1295   -h, --help              display this help and exit
1296       --help=short        display options specific to this package
1297       --help=recursive    display the short help of all the included packages
1298   -V, --version           display version information and exit
1299   -q, --quiet, --silent   do not print \`checking...' messages
1300       --cache-file=FILE   cache test results in FILE [disabled]
1301   -C, --config-cache      alias for \`--cache-file=config.cache'
1302   -n, --no-create         do not create output files
1303       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1304
1305 Installation directories:
1306   --prefix=PREFIX         install architecture-independent files in PREFIX
1307                           [$ac_default_prefix]
1308   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1309                           [PREFIX]
1310
1311 By default, \`make install' will install all the files in
1312 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1313 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1314 for instance \`--prefix=\$HOME'.
1315
1316 For better control, use the options below.
1317
1318 Fine tuning of the installation directories:
1319   --bindir=DIR           user executables [EPREFIX/bin]
1320   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1321   --libexecdir=DIR       program executables [EPREFIX/libexec]
1322   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1323   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1324   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1325   --libdir=DIR           object code libraries [EPREFIX/lib]
1326   --includedir=DIR       C header files [PREFIX/include]
1327   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1328   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1329   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1330   --infodir=DIR          info documentation [DATAROOTDIR/info]
1331   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1332   --mandir=DIR           man documentation [DATAROOTDIR/man]
1333   --docdir=DIR           documentation root [DATAROOTDIR/doc/postgresql]
1334   --htmldir=DIR          html documentation [DOCDIR]
1335   --dvidir=DIR           dvi documentation [DOCDIR]
1336   --pdfdir=DIR           pdf documentation [DOCDIR]
1337   --psdir=DIR            ps documentation [DOCDIR]
1338 _ACEOF
1339
1340   cat <<\_ACEOF
1341
1342 System types:
1343   --build=BUILD     configure for building on BUILD [guessed]
1344   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1345 _ACEOF
1346 fi
1347
1348 if test -n "$ac_init_help"; then
1349   case $ac_init_help in
1350      short | recursive ) echo "Configuration of PostgreSQL 8.4devel:";;
1351    esac
1352   cat <<\_ACEOF
1353
1354 Optional Features:
1355   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1356   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1357   --disable-integer-datetimes
1358                           disable 64-bit integer date/time support
1359   --enable-nls[=LANGUAGES]
1360                           enable Native Language Support
1361   --disable-shared        do not build shared libraries
1362   --disable-rpath         do not embed shared library search path in
1363                           executables
1364   --disable-spinlocks     do not use spinlocks
1365   --enable-debug          build with debugging symbols (-g)
1366   --enable-profiling      build with profiling enabled
1367   --enable-coverage       build with coverage testing instrumentation
1368   --enable-dtrace         build with DTrace support
1369   --enable-depend         turn on automatic dependency tracking
1370   --enable-cassert        enable assertion checks (for debugging)
1371   --enable-thread-safety  make client libraries thread-safe
1372   --enable-thread-safety-force
1373                           force thread-safety despite thread test failure
1374   --disable-float4-byval  disable float4 passed by value
1375   --disable-float8-byval  disable float8 passed by value
1376   --disable-largefile     omit support for large files
1377
1378 Optional Packages:
1379   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1380   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1381   --with-template=NAME    override operating system template
1382   --with-includes=DIRS    look for additional header files in DIRS
1383   --with-libraries=DIRS   look for additional libraries in DIRS
1384   --with-libs=DIRS        alternative spelling of --with-libraries
1385   --with-pgport=PORTNUM   set default port number [5432]
1386   --with-blocksize=BLOCKSIZE
1387                           set table block size in kB [8]
1388   --with-segsize=SEGSIZE  set table segment size in GB [1]
1389   --with-wal-blocksize=BLOCKSIZE
1390                           set WAL block size in kB [8]
1391   --with-wal-segsize=SEGSIZE
1392                           set WAL segment size in MB [16]
1393   --with-CC=CMD           set compiler (deprecated)
1394   --with-tcl              build Tcl modules (PL/Tcl)
1395   --with-tclconfig=DIR    tclConfig.sh is in DIR
1396   --with-perl             build Perl modules (PL/Perl)
1397   --with-python           build Python modules (PL/Python)
1398   --with-gssapi           build with GSSAPI support
1399   --with-krb5             build with Kerberos 5 support
1400   --with-krb-srvnam=NAME  default service principal name in Kerberos
1401                           [postgres]
1402   --with-pam              build with PAM support
1403   --with-ldap             build with LDAP support
1404   --with-bonjour          build with Bonjour support
1405   --with-openssl          build with OpenSSL support
1406   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1407   --with-libedit-preferred
1408                           prefer BSD Libedit over GNU Readline
1409   --with-ossp-uuid        use OSSP UUID library when building
1410                           contrib/uuid-ossp
1411   --with-libxml           build with XML support
1412   --with-libxslt          use XSLT support when building contrib/xml2
1413   --with-system-tzdata=DIR
1414                           use system time zone data in DIR
1415   --without-zlib          do not use Zlib
1416   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1417
1418 Some influential environment variables:
1419   CC          C compiler command
1420   CFLAGS      C compiler flags
1421   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1422               nonstandard directory <lib dir>
1423   LIBS        libraries to pass to the linker, e.g. -l<library>
1424   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425               you have headers in a nonstandard directory <include dir>
1426   CPP         C preprocessor
1427   LDFLAGS_SL
1428   DOCBOOKSTYLE
1429               location of DocBook stylesheets
1430
1431 Use these variables to override the choices made by `configure' or to help
1432 it to find libraries and programs with nonstandard names/locations.
1433
1434 Report bugs to <pgsql-bugs@postgresql.org>.
1435 _ACEOF
1436 ac_status=$?
1437 fi
1438
1439 if test "$ac_init_help" = "recursive"; then
1440   # If there are subdirs, report their specific --help.
1441   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1442     test -d "$ac_dir" || continue
1443     ac_builddir=.
1444
1445 case "$ac_dir" in
1446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 *)
1448   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1449   # A ".." for each directory in $ac_dir_suffix.
1450   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1451   case $ac_top_builddir_sub in
1452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454   esac ;;
1455 esac
1456 ac_abs_top_builddir=$ac_pwd
1457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1458 # for backward compatibility:
1459 ac_top_builddir=$ac_top_build_prefix
1460
1461 case $srcdir in
1462   .)  # We are building in place.
1463     ac_srcdir=.
1464     ac_top_srcdir=$ac_top_builddir_sub
1465     ac_abs_top_srcdir=$ac_pwd ;;
1466   [\\/]* | ?:[\\/]* )  # Absolute name.
1467     ac_srcdir=$srcdir$ac_dir_suffix;
1468     ac_top_srcdir=$srcdir
1469     ac_abs_top_srcdir=$srcdir ;;
1470   *) # Relative name.
1471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1472     ac_top_srcdir=$ac_top_build_prefix$srcdir
1473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 esac
1475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476
1477     cd "$ac_dir" || { ac_status=$?; continue; }
1478     # Check for guested configure.
1479     if test -f "$ac_srcdir/configure.gnu"; then
1480       echo &&
1481       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1482     elif test -f "$ac_srcdir/configure"; then
1483       echo &&
1484       $SHELL "$ac_srcdir/configure" --help=recursive
1485     else
1486       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487     fi || ac_status=$?
1488     cd "$ac_pwd" || { ac_status=$?; break; }
1489   done
1490 fi
1491
1492 test -n "$ac_init_help" && exit $ac_status
1493 if $ac_init_version; then
1494   cat <<\_ACEOF
1495 PostgreSQL configure 8.4devel
1496 generated by GNU Autoconf 2.61
1497
1498 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1499 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1500 This configure script is free software; the Free Software Foundation
1501 gives unlimited permission to copy, distribute and modify it.
1502
1503 Copyright (c) 1996-2008, PostgreSQL Global Development Group
1504 _ACEOF
1505   exit
1506 fi
1507 cat >config.log <<_ACEOF
1508 This file contains any messages produced by compilers while
1509 running configure, to aid debugging if configure makes a mistake.
1510
1511 It was created by PostgreSQL $as_me 8.4devel, which was
1512 generated by GNU Autoconf 2.61.  Invocation command line was
1513
1514   $ $0 $@
1515
1516 _ACEOF
1517 exec 5>>config.log
1518 {
1519 cat <<_ASUNAME
1520 ## --------- ##
1521 ## Platform. ##
1522 ## --------- ##
1523
1524 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1525 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1526 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1527 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1528 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1529
1530 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1531 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1532
1533 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1534 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1535 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1536 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1537 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1538 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1539 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1540
1541 _ASUNAME
1542
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
1547   test -z "$as_dir" && as_dir=.
1548   echo "PATH: $as_dir"
1549 done
1550 IFS=$as_save_IFS
1551
1552 } >&5
1553
1554 cat >&5 <<_ACEOF
1555
1556
1557 ## ----------- ##
1558 ## Core tests. ##
1559 ## ----------- ##
1560
1561 _ACEOF
1562
1563
1564 # Keep a trace of the command line.
1565 # Strip out --no-create and --no-recursion so they do not pile up.
1566 # Strip out --silent because we don't want to record it for future runs.
1567 # Also quote any args containing shell meta-characters.
1568 # Make two passes to allow for proper duplicate-argument suppression.
1569 ac_configure_args=
1570 ac_configure_args0=
1571 ac_configure_args1=
1572 ac_must_keep_next=false
1573 for ac_pass in 1 2
1574 do
1575   for ac_arg
1576   do
1577     case $ac_arg in
1578     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1579     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1580     | -silent | --silent | --silen | --sile | --sil)
1581       continue ;;
1582     *\'*)
1583       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1584     esac
1585     case $ac_pass in
1586     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1587     2)
1588       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1589       if test $ac_must_keep_next = true; then
1590         ac_must_keep_next=false # Got value, back to normal.
1591       else
1592         case $ac_arg in
1593           *=* | --config-cache | -C | -disable-* | --disable-* \
1594           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1595           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1596           | -with-* | --with-* | -without-* | --without-* | --x)
1597             case "$ac_configure_args0 " in
1598               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1599             esac
1600             ;;
1601           -* ) ac_must_keep_next=true ;;
1602         esac
1603       fi
1604       ac_configure_args="$ac_configure_args '$ac_arg'"
1605       ;;
1606     esac
1607   done
1608 done
1609 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1610 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1611
1612 # When interrupted or exit'd, cleanup temporary files, and complete
1613 # config.log.  We remove comments because anyway the quotes in there
1614 # would cause problems or look ugly.
1615 # WARNING: Use '\'' to represent an apostrophe within the trap.
1616 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1617 trap 'exit_status=$?
1618   # Save into config.log some information that might help in debugging.
1619   {
1620     echo
1621
1622     cat <<\_ASBOX
1623 ## ---------------- ##
1624 ## Cache variables. ##
1625 ## ---------------- ##
1626 _ASBOX
1627     echo
1628     # The following way of writing the cache mishandles newlines in values,
1629 (
1630   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1631     eval ac_val=\$$ac_var
1632     case $ac_val in #(
1633     *${as_nl}*)
1634       case $ac_var in #(
1635       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1636 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1637       esac
1638       case $ac_var in #(
1639       _ | IFS | as_nl) ;; #(
1640       *) $as_unset $ac_var ;;
1641       esac ;;
1642     esac
1643   done
1644   (set) 2>&1 |
1645     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1646     *${as_nl}ac_space=\ *)
1647       sed -n \
1648         "s/'\''/'\''\\\\'\'''\''/g;
1649           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650       ;; #(
1651     *)
1652       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1653       ;;
1654     esac |
1655     sort
1656 )
1657     echo
1658
1659     cat <<\_ASBOX
1660 ## ----------------- ##
1661 ## Output variables. ##
1662 ## ----------------- ##
1663 _ASBOX
1664     echo
1665     for ac_var in $ac_subst_vars
1666     do
1667       eval ac_val=\$$ac_var
1668       case $ac_val in
1669       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670       esac
1671       echo "$ac_var='\''$ac_val'\''"
1672     done | sort
1673     echo
1674
1675     if test -n "$ac_subst_files"; then
1676       cat <<\_ASBOX
1677 ## ------------------- ##
1678 ## File substitutions. ##
1679 ## ------------------- ##
1680 _ASBOX
1681       echo
1682       for ac_var in $ac_subst_files
1683       do
1684         eval ac_val=\$$ac_var
1685         case $ac_val in
1686         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687         esac
1688         echo "$ac_var='\''$ac_val'\''"
1689       done | sort
1690       echo
1691     fi
1692
1693     if test -s confdefs.h; then
1694       cat <<\_ASBOX
1695 ## ----------- ##
1696 ## confdefs.h. ##
1697 ## ----------- ##
1698 _ASBOX
1699       echo
1700       cat confdefs.h
1701       echo
1702     fi
1703     test "$ac_signal" != 0 &&
1704       echo "$as_me: caught signal $ac_signal"
1705     echo "$as_me: exit $exit_status"
1706   } >&5
1707   rm -f core *.core core.conftest.* &&
1708     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709     exit $exit_status
1710 ' 0
1711 for ac_signal in 1 2 13 15; do
1712   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1713 done
1714 ac_signal=0
1715
1716 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1717 rm -f -r conftest* confdefs.h
1718
1719 # Predefined preprocessor variables.
1720
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_NAME "$PACKAGE_NAME"
1723 _ACEOF
1724
1725
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1728 _ACEOF
1729
1730
1731 cat >>confdefs.h <<_ACEOF
1732 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1733 _ACEOF
1734
1735
1736 cat >>confdefs.h <<_ACEOF
1737 #define PACKAGE_STRING "$PACKAGE_STRING"
1738 _ACEOF
1739
1740
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1743 _ACEOF
1744
1745
1746 # Let the site file select an alternate cache file if it wants to.
1747 # Prefer explicitly selected file to automatically selected ones.
1748 if test -n "$CONFIG_SITE"; then
1749   set x "$CONFIG_SITE"
1750 elif test "x$prefix" != xNONE; then
1751   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1752 else
1753   set x "$ac_default_prefix/share/config.site" \
1754         "$ac_default_prefix/etc/config.site"
1755 fi
1756 shift
1757 for ac_site_file
1758 do
1759   if test -r "$ac_site_file"; then
1760     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1761 echo "$as_me: loading site script $ac_site_file" >&6;}
1762     sed 's/^/| /' "$ac_site_file" >&5
1763     . "$ac_site_file"
1764   fi
1765 done
1766
1767 if test -r "$cache_file"; then
1768   # Some versions of bash will fail to source /dev/null (special
1769   # files actually), so we avoid doing that.
1770   if test -f "$cache_file"; then
1771     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1772 echo "$as_me: loading cache $cache_file" >&6;}
1773     case $cache_file in
1774       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1775       *)                      . "./$cache_file";;
1776     esac
1777   fi
1778 else
1779   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1780 echo "$as_me: creating cache $cache_file" >&6;}
1781   >$cache_file
1782 fi
1783
1784 # Check that the precious variables saved in the cache have kept the same
1785 # value.
1786 ac_cache_corrupted=false
1787 for ac_var in $ac_precious_vars; do
1788   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1789   eval ac_new_set=\$ac_env_${ac_var}_set
1790   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1791   eval ac_new_val=\$ac_env_${ac_var}_value
1792   case $ac_old_set,$ac_new_set in
1793     set,)
1794       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1795 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1796       ac_cache_corrupted=: ;;
1797     ,set)
1798       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1799 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1800       ac_cache_corrupted=: ;;
1801     ,);;
1802     *)
1803       if test "x$ac_old_val" != "x$ac_new_val"; then
1804         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1805 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1806         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1807 echo "$as_me:   former value:  $ac_old_val" >&2;}
1808         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1809 echo "$as_me:   current value: $ac_new_val" >&2;}
1810         ac_cache_corrupted=:
1811       fi;;
1812   esac
1813   # Pass precious variables to config.status.
1814   if test "$ac_new_set" = set; then
1815     case $ac_new_val in
1816     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1817     *) ac_arg=$ac_var=$ac_new_val ;;
1818     esac
1819     case " $ac_configure_args " in
1820       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1821       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1822     esac
1823   fi
1824 done
1825 if $ac_cache_corrupted; then
1826   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1827 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1828   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1829 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1830    { (exit 1); exit 1; }; }
1831 fi
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857 ac_ext=c
1858 ac_cpp='$CPP $CPPFLAGS'
1859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1862
1863
1864
1865
1866
1867
1868 ac_aux_dir=
1869 for ac_dir in config "$srcdir"/config; do
1870   if test -f "$ac_dir/install-sh"; then
1871     ac_aux_dir=$ac_dir
1872     ac_install_sh="$ac_aux_dir/install-sh -c"
1873     break
1874   elif test -f "$ac_dir/install.sh"; then
1875     ac_aux_dir=$ac_dir
1876     ac_install_sh="$ac_aux_dir/install.sh -c"
1877     break
1878   elif test -f "$ac_dir/shtool"; then
1879     ac_aux_dir=$ac_dir
1880     ac_install_sh="$ac_aux_dir/shtool install -c"
1881     break
1882   fi
1883 done
1884 if test -z "$ac_aux_dir"; then
1885   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1886 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1887    { (exit 1); exit 1; }; }
1888 fi
1889
1890 # These three variables are undocumented and unsupported,
1891 # and are intended to be withdrawn in a future Autoconf release.
1892 # They can cause serious problems if a builder's source tree is in a directory
1893 # whose full name contains unusual characters.
1894 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1895 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1896 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1897
1898
1899
1900 configure_args=$ac_configure_args
1901
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PG_VERSION "$PACKAGE_VERSION"
1906 _ACEOF
1907
1908
1909 # Make sure we can run config.sub.
1910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1911   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1912 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1913    { (exit 1); exit 1; }; }
1914
1915 { echo "$as_me:$LINENO: checking build system type" >&5
1916 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1917 if test "${ac_cv_build+set}" = set; then
1918   echo $ECHO_N "(cached) $ECHO_C" >&6
1919 else
1920   ac_build_alias=$build_alias
1921 test "x$ac_build_alias" = x &&
1922   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1923 test "x$ac_build_alias" = x &&
1924   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1925 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1926    { (exit 1); exit 1; }; }
1927 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1928   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1929 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1930    { (exit 1); exit 1; }; }
1931
1932 fi
1933 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1934 echo "${ECHO_T}$ac_cv_build" >&6; }
1935 case $ac_cv_build in
1936 *-*-*) ;;
1937 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1938 echo "$as_me: error: invalid value of canonical build" >&2;}
1939    { (exit 1); exit 1; }; };;
1940 esac
1941 build=$ac_cv_build
1942 ac_save_IFS=$IFS; IFS='-'
1943 set x $ac_cv_build
1944 shift
1945 build_cpu=$1
1946 build_vendor=$2
1947 shift; shift
1948 # Remember, the first character of IFS is used to create $*,
1949 # except with old shells:
1950 build_os=$*
1951 IFS=$ac_save_IFS
1952 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1953
1954
1955 { echo "$as_me:$LINENO: checking host system type" >&5
1956 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1957 if test "${ac_cv_host+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   if test "x$host_alias" = x; then
1961   ac_cv_host=$ac_cv_build
1962 else
1963   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1964     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1965 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1966    { (exit 1); exit 1; }; }
1967 fi
1968
1969 fi
1970 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1971 echo "${ECHO_T}$ac_cv_host" >&6; }
1972 case $ac_cv_host in
1973 *-*-*) ;;
1974 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1975 echo "$as_me: error: invalid value of canonical host" >&2;}
1976    { (exit 1); exit 1; }; };;
1977 esac
1978 host=$ac_cv_host
1979 ac_save_IFS=$IFS; IFS='-'
1980 set x $ac_cv_host
1981 shift
1982 host_cpu=$1
1983 host_vendor=$2
1984 shift; shift
1985 # Remember, the first character of IFS is used to create $*,
1986 # except with old shells:
1987 host_os=$*
1988 IFS=$ac_save_IFS
1989 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1990
1991
1992
1993 template=
1994 { echo "$as_me:$LINENO: checking which template to use" >&5
1995 echo $ECHO_N "checking which template to use... $ECHO_C" >&6; }
1996
1997
1998 pgac_args="$pgac_args with_template"
1999
2000
2001 # Check whether --with-template was given.
2002 if test "${with_template+set}" = set; then
2003   withval=$with_template;
2004   case $withval in
2005     yes)
2006       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2007 echo "$as_me: error: argument required for --with-template option" >&2;}
2008    { (exit 1); exit 1; }; }
2009       ;;
2010     no)
2011       { { echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2012 echo "$as_me: error: argument required for --with-template option" >&2;}
2013    { (exit 1); exit 1; }; }
2014       ;;
2015     *)
2016
2017   case $withval in
2018     list)   echo; ls "$srcdir/src/template"; exit;;
2019     *)      if test -f "$srcdir/src/template/$with_template" ; then
2020               template=$withval
2021             else
2022               { { echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2023 echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2024    { (exit 1); exit 1; }; }
2025             fi;;
2026   esac
2027
2028       ;;
2029   esac
2030
2031 else
2032
2033 # --with-template not given
2034
2035 case $host_os in
2036      aix*) template=aix ;;
2037     bsdi*) template=bsdi ;;
2038   cygwin*) template=cygwin ;;
2039   darwin*) template=darwin ;;
2040     dgux*) template=dgux ;;
2041  freebsd*) template=freebsd ;;
2042     hpux*) template=hpux ;;
2043     irix*) template=irix ;;
2044  linux*|gnu*|k*bsd*-gnu)
2045            template=linux ;;
2046    mingw*) template=win32 ;;
2047   netbsd*) template=netbsd ;;
2048 nextstep*) template=nextstep ;;
2049  openbsd*) template=openbsd ;;
2050      osf*) template=osf ;;
2051      sco*) template=sco ;;
2052  solaris*) template=solaris ;;
2053    sunos*) template=sunos4 ;;
2054  sysv4.2*)
2055         case $host_vendor in
2056           univel) template=univel ;;
2057         esac ;;
2058    sysv4*) template=svr4 ;;
2059    sysv5*) template=unixware ;;
2060   ultrix*) template=ultrix4 ;;
2061 esac
2062
2063   if test x"$template" = x"" ; then
2064     { { echo "$as_me:$LINENO: error:
2065 *******************************************************************
2066 PostgreSQL has apparently not been ported to your platform yet.
2067 To try a manual configuration, look into the src/template directory
2068 for a similar platform and use the '--with-template=' option.
2069
2070 Please also contact <pgsql-ports@postgresql.org> to see about
2071 rectifying this.  Include the above 'checking host system type...'
2072 line.
2073 *******************************************************************
2074 " >&5
2075 echo "$as_me: error:
2076 *******************************************************************
2077 PostgreSQL has apparently not been ported to your platform yet.
2078 To try a manual configuration, look into the src/template directory
2079 for a similar platform and use the '--with-template=' option.
2080
2081 Please also contact <pgsql-ports@postgresql.org> to see about
2082 rectifying this.  Include the above 'checking host system type...'
2083 line.
2084 *******************************************************************
2085 " >&2;}
2086    { (exit 1); exit 1; }; }
2087   fi
2088
2089
2090 fi
2091
2092
2093
2094 { echo "$as_me:$LINENO: result: $template" >&5
2095 echo "${ECHO_T}$template" >&6; }
2096
2097 PORTNAME=$template
2098
2099
2100 # Initialize default assumption that we do not need separate assembly code
2101 # for TAS (test-and-set).  This can be overridden by the template file
2102 # when it's executed.
2103 need_tas=no
2104 tas_file=dummy.s
2105
2106
2107
2108 ##
2109 ## Command line options
2110 ##
2111
2112 #
2113 # Add non-standard directories to the include path
2114 #
2115
2116 pgac_args="$pgac_args with_includes"
2117
2118
2119 # Check whether --with-includes was given.
2120 if test "${with_includes+set}" = set; then
2121   withval=$with_includes;
2122   case $withval in
2123     yes)
2124       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2125 echo "$as_me: error: argument required for --with-includes option" >&2;}
2126    { (exit 1); exit 1; }; }
2127       ;;
2128     no)
2129       { { echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2130 echo "$as_me: error: argument required for --with-includes option" >&2;}
2131    { (exit 1); exit 1; }; }
2132       ;;
2133     *)
2134
2135       ;;
2136   esac
2137
2138 fi
2139
2140
2141
2142
2143 #
2144 # Add non-standard directories to the library search path
2145 #
2146
2147 pgac_args="$pgac_args with_libraries"
2148
2149
2150 # Check whether --with-libraries was given.
2151 if test "${with_libraries+set}" = set; then
2152   withval=$with_libraries;
2153   case $withval in
2154     yes)
2155       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2156 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2157    { (exit 1); exit 1; }; }
2158       ;;
2159     no)
2160       { { echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2161 echo "$as_me: error: argument required for --with-libraries option" >&2;}
2162    { (exit 1); exit 1; }; }
2163       ;;
2164     *)
2165       LIBRARY_DIRS=$withval
2166       ;;
2167   esac
2168
2169 fi
2170
2171
2172
2173
2174 pgac_args="$pgac_args with_libs"
2175
2176
2177 # Check whether --with-libs was given.
2178 if test "${with_libs+set}" = set; then
2179   withval=$with_libs;
2180   case $withval in
2181     yes)
2182       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2183 echo "$as_me: error: argument required for --with-libs option" >&2;}
2184    { (exit 1); exit 1; }; }
2185       ;;
2186     no)
2187       { { echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2188 echo "$as_me: error: argument required for --with-libs option" >&2;}
2189    { (exit 1); exit 1; }; }
2190       ;;
2191     *)
2192       LIBRARY_DIRS=$withval
2193       ;;
2194   esac
2195
2196 fi
2197
2198
2199
2200
2201 #
2202 # 64-bit integer date/time storage: enabled by default.
2203 #
2204 { echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2205 echo $ECHO_N "checking whether to build with 64-bit integer date/time support... $ECHO_C" >&6; }
2206
2207 pgac_args="$pgac_args enable_integer_datetimes"
2208
2209 # Check whether --enable-integer-datetimes was given.
2210 if test "${enable_integer_datetimes+set}" = set; then
2211   enableval=$enable_integer_datetimes;
2212   case $enableval in
2213     yes)
2214
2215 cat >>confdefs.h <<\_ACEOF
2216 #define USE_INTEGER_DATETIMES 1
2217 _ACEOF
2218
2219       ;;
2220     no)
2221       :
2222       ;;
2223     *)
2224       { { echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2225 echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2226    { (exit 1); exit 1; }; }
2227       ;;
2228   esac
2229
2230 else
2231   enable_integer_datetimes=yes
2232
2233 cat >>confdefs.h <<\_ACEOF
2234 #define USE_INTEGER_DATETIMES 1
2235 _ACEOF
2236
2237 fi
2238
2239
2240 { echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2241 echo "${ECHO_T}$enable_integer_datetimes" >&6; }
2242
2243
2244 #
2245 # NLS
2246 #
2247 { echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2248 echo $ECHO_N "checking whether NLS is wanted... $ECHO_C" >&6; }
2249
2250 pgac_args="$pgac_args enable_nls"
2251
2252 # Check whether --enable-nls was given.
2253 if test "${enable_nls+set}" = set; then
2254   enableval=$enable_nls;
2255   case $enableval in
2256     yes)
2257       :
2258       ;;
2259     no)
2260       :
2261       ;;
2262     *)
2263       enable_nls=yes
2264 WANTED_LANGUAGES=$enableval
2265       ;;
2266   esac
2267
2268 else
2269   enable_nls=no
2270 fi
2271
2272
2273
2274 if test "$enable_nls" = yes; then
2275
2276 cat >>confdefs.h <<\_ACEOF
2277 #define ENABLE_NLS 1
2278 _ACEOF
2279
2280 fi
2281
2282 { echo "$as_me:$LINENO: result: $enable_nls" >&5
2283 echo "${ECHO_T}$enable_nls" >&6; }
2284
2285
2286
2287 #
2288 # Default port number (--with-pgport), default 5432
2289 #
2290 { echo "$as_me:$LINENO: checking for default port number" >&5
2291 echo $ECHO_N "checking for default port number... $ECHO_C" >&6; }
2292
2293 pgac_args="$pgac_args with_pgport"
2294
2295
2296 # Check whether --with-pgport was given.
2297 if test "${with_pgport+set}" = set; then
2298   withval=$with_pgport;
2299   case $withval in
2300     yes)
2301       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2302 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2303    { (exit 1); exit 1; }; }
2304       ;;
2305     no)
2306       { { echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2307 echo "$as_me: error: argument required for --with-pgport option" >&2;}
2308    { (exit 1); exit 1; }; }
2309       ;;
2310     *)
2311       default_port=$withval
2312       ;;
2313   esac
2314
2315 else
2316   default_port=5432
2317 fi
2318
2319
2320 { echo "$as_me:$LINENO: result: $default_port" >&5
2321 echo "${ECHO_T}$default_port" >&6; }
2322 # Need both of these because some places want an integer and some a string
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define DEF_PGPORT ${default_port}
2326 _ACEOF
2327
2328
2329 cat >>confdefs.h <<_ACEOF
2330 #define DEF_PGPORT_STR "${default_port}"
2331 _ACEOF
2332
2333
2334
2335 #
2336 # Option to disable shared libraries
2337 #
2338
2339 pgac_args="$pgac_args enable_shared"
2340
2341 # Check whether --enable-shared was given.
2342 if test "${enable_shared+set}" = set; then
2343   enableval=$enable_shared;
2344   case $enableval in
2345     yes)
2346       :
2347       ;;
2348     no)
2349       :
2350       ;;
2351     *)
2352       { { echo "$as_me:$LINENO: error: no argument expected for --enable-shared option" >&5
2353 echo "$as_me: error: no argument expected for --enable-shared option" >&2;}
2354    { (exit 1); exit 1; }; }
2355       ;;
2356   esac
2357
2358 else
2359   enable_shared=yes
2360
2361 fi
2362
2363
2364
2365
2366 #
2367 # '-rpath'-like feature can be disabled
2368 #
2369
2370 pgac_args="$pgac_args enable_rpath"
2371
2372 # Check whether --enable-rpath was given.
2373 if test "${enable_rpath+set}" = set; then
2374   enableval=$enable_rpath;
2375   case $enableval in
2376     yes)
2377       :
2378       ;;
2379     no)
2380       :
2381       ;;
2382     *)
2383       { { echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2384 echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2385    { (exit 1); exit 1; }; }
2386       ;;
2387   esac
2388
2389 else
2390   enable_rpath=yes
2391
2392 fi
2393
2394
2395
2396
2397 #
2398 # Spinlocks
2399 #
2400
2401 pgac_args="$pgac_args enable_spinlocks"
2402
2403 # Check whether --enable-spinlocks was given.
2404 if test "${enable_spinlocks+set}" = set; then
2405   enableval=$enable_spinlocks;
2406   case $enableval in
2407     yes)
2408       :
2409       ;;
2410     no)
2411       :
2412       ;;
2413     *)
2414       { { echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2415 echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2416    { (exit 1); exit 1; }; }
2417       ;;
2418   esac
2419
2420 else
2421   enable_spinlocks=yes
2422
2423 fi
2424
2425
2426
2427 #
2428 # --enable-debug adds -g to compiler flags
2429 #
2430
2431 pgac_args="$pgac_args enable_debug"
2432
2433 # Check whether --enable-debug was given.
2434 if test "${enable_debug+set}" = set; then
2435   enableval=$enable_debug;
2436   case $enableval in
2437     yes)
2438       :
2439       ;;
2440     no)
2441       :
2442       ;;
2443     *)
2444       { { echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2445 echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2446    { (exit 1); exit 1; }; }
2447       ;;
2448   esac
2449
2450 else
2451   enable_debug=no
2452
2453 fi
2454
2455
2456
2457
2458 #
2459 # --enable-profiling enables gcc profiling
2460 #
2461
2462 pgac_args="$pgac_args enable_profiling"
2463
2464 # Check whether --enable-profiling was given.
2465 if test "${enable_profiling+set}" = set; then
2466   enableval=$enable_profiling;
2467   case $enableval in
2468     yes)
2469       :
2470       ;;
2471     no)
2472       :
2473       ;;
2474     *)
2475       { { echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2476 echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2477    { (exit 1); exit 1; }; }
2478       ;;
2479   esac
2480
2481 else
2482   enable_profiling=no
2483
2484 fi
2485
2486
2487
2488
2489 #
2490 # --enable-coverage enables generation of code coverage metrics with gcov
2491 #
2492
2493 pgac_args="$pgac_args enable_coverage"
2494
2495 # Check whether --enable-coverage was given.
2496 if test "${enable_coverage+set}" = set; then
2497   enableval=$enable_coverage;
2498   case $enableval in
2499     yes)
2500       for ac_prog in gcov
2501 do
2502   # Extract the first word of "$ac_prog", so it can be a program name with args.
2503 set dummy $ac_prog; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_GCOV+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   if test -n "$GCOV"; then
2510   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517   for ac_exec_ext in '' $ac_executable_extensions; do
2518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519     ac_cv_prog_GCOV="$ac_prog"
2520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524 done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 GCOV=$ac_cv_prog_GCOV
2530 if test -n "$GCOV"; then
2531   { echo "$as_me:$LINENO: result: $GCOV" >&5
2532 echo "${ECHO_T}$GCOV" >&6; }
2533 else
2534   { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2536 fi
2537
2538
2539   test -n "$GCOV" && break
2540 done
2541
2542 if test -z "$GCOV"; then
2543   { { echo "$as_me:$LINENO: error: gcov not found" >&5
2544 echo "$as_me: error: gcov not found" >&2;}
2545    { (exit 1); exit 1; }; }
2546 fi
2547 for ac_prog in lcov
2548 do
2549   # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2553 if test "${ac_cv_prog_LCOV+set}" = set; then
2554   echo $ECHO_N "(cached) $ECHO_C" >&6
2555 else
2556   if test -n "$LCOV"; then
2557   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562   IFS=$as_save_IFS
2563   test -z "$as_dir" && as_dir=.
2564   for ac_exec_ext in '' $ac_executable_extensions; do
2565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566     ac_cv_prog_LCOV="$ac_prog"
2567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2568     break 2
2569   fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 LCOV=$ac_cv_prog_LCOV
2577 if test -n "$LCOV"; then
2578   { echo "$as_me:$LINENO: result: $LCOV" >&5
2579 echo "${ECHO_T}$LCOV" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586   test -n "$LCOV" && break
2587 done
2588
2589 if test -z "$LCOV"; then
2590   { { echo "$as_me:$LINENO: error: lcov not found" >&5
2591 echo "$as_me: error: lcov not found" >&2;}
2592    { (exit 1); exit 1; }; }
2593 fi
2594 for ac_prog in genhtml
2595 do
2596   # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_GENHTML+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   if test -n "$GENHTML"; then
2604   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2605 else
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 for as_dir in $PATH
2608 do
2609   IFS=$as_save_IFS
2610   test -z "$as_dir" && as_dir=.
2611   for ac_exec_ext in '' $ac_executable_extensions; do
2612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613     ac_cv_prog_GENHTML="$ac_prog"
2614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615     break 2
2616   fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 GENHTML=$ac_cv_prog_GENHTML
2624 if test -n "$GENHTML"; then
2625   { echo "$as_me:$LINENO: result: $GENHTML" >&5
2626 echo "${ECHO_T}$GENHTML" >&6; }
2627 else
2628   { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2630 fi
2631
2632
2633   test -n "$GENHTML" && break
2634 done
2635
2636 if test -z "$GENHTML"; then
2637   { { echo "$as_me:$LINENO: error: genhtml not found" >&5
2638 echo "$as_me: error: genhtml not found" >&2;}
2639    { (exit 1); exit 1; }; }
2640 fi
2641       ;;
2642     no)
2643       :
2644       ;;
2645     *)
2646       { { echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2647 echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2648    { (exit 1); exit 1; }; }
2649       ;;
2650   esac
2651
2652 else
2653   enable_coverage=no
2654
2655 fi
2656
2657
2658
2659
2660 #
2661 # DTrace
2662 #
2663
2664 pgac_args="$pgac_args enable_dtrace"
2665
2666 # Check whether --enable-dtrace was given.
2667 if test "${enable_dtrace+set}" = set; then
2668   enableval=$enable_dtrace;
2669   case $enableval in
2670     yes)
2671
2672 cat >>confdefs.h <<\_ACEOF
2673 #define ENABLE_DTRACE 1
2674 _ACEOF
2675
2676 for ac_prog in dtrace
2677 do
2678   # Extract the first word of "$ac_prog", so it can be a program name with args.
2679 set dummy $ac_prog; ac_word=$2
2680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682 if test "${ac_cv_prog_DTRACE+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   if test -n "$DTRACE"; then
2686   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691   IFS=$as_save_IFS
2692   test -z "$as_dir" && as_dir=.
2693   for ac_exec_ext in '' $ac_executable_extensions; do
2694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695     ac_cv_prog_DTRACE="$ac_prog"
2696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2697     break 2
2698   fi
2699 done
2700 done
2701 IFS=$as_save_IFS
2702
2703 fi
2704 fi
2705 DTRACE=$ac_cv_prog_DTRACE
2706 if test -n "$DTRACE"; then
2707   { echo "$as_me:$LINENO: result: $DTRACE" >&5
2708 echo "${ECHO_T}$DTRACE" >&6; }
2709 else
2710   { echo "$as_me:$LINENO: result: no" >&5
2711 echo "${ECHO_T}no" >&6; }
2712 fi
2713
2714
2715   test -n "$DTRACE" && break
2716 done
2717
2718 if test -z "$DTRACE"; then
2719   { { echo "$as_me:$LINENO: error: dtrace not found" >&5
2720 echo "$as_me: error: dtrace not found" >&2;}
2721    { (exit 1); exit 1; }; }
2722 fi
2723
2724       ;;
2725     no)
2726       :
2727       ;;
2728     *)
2729       { { echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2730 echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2731    { (exit 1); exit 1; }; }
2732       ;;
2733   esac
2734
2735 else
2736   enable_dtrace=no
2737
2738 fi
2739
2740
2741
2742
2743 #
2744 # Block size
2745 #
2746 { echo "$as_me:$LINENO: checking for block size" >&5
2747 echo $ECHO_N "checking for block size... $ECHO_C" >&6; }
2748
2749 pgac_args="$pgac_args with_blocksize"
2750
2751
2752 # Check whether --with-blocksize was given.
2753 if test "${with_blocksize+set}" = set; then
2754   withval=$with_blocksize;
2755   case $withval in
2756     yes)
2757       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2758 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2759    { (exit 1); exit 1; }; }
2760       ;;
2761     no)
2762       { { echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2763 echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2764    { (exit 1); exit 1; }; }
2765       ;;
2766     *)
2767       blocksize=$withval
2768       ;;
2769   esac
2770
2771 else
2772   blocksize=8
2773 fi
2774
2775
2776 case ${blocksize} in
2777   1) BLCKSZ=1024;;
2778   2) BLCKSZ=2048;;
2779   4) BLCKSZ=4096;;
2780   8) BLCKSZ=8192;;
2781  16) BLCKSZ=16384;;
2782  32) BLCKSZ=32768;;
2783   *) { { echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2784 echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2785    { (exit 1); exit 1; }; }
2786 esac
2787 { echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2788 echo "${ECHO_T}${blocksize}kB" >&6; }
2789
2790
2791 cat >>confdefs.h <<_ACEOF
2792 #define BLCKSZ ${BLCKSZ}
2793 _ACEOF
2794
2795
2796 #
2797 # Relation segment size
2798 #
2799 { echo "$as_me:$LINENO: checking for segment size" >&5
2800 echo $ECHO_N "checking for segment size... $ECHO_C" >&6; }
2801
2802 pgac_args="$pgac_args with_segsize"
2803
2804
2805 # Check whether --with-segsize was given.
2806 if test "${with_segsize+set}" = set; then
2807   withval=$with_segsize;
2808   case $withval in
2809     yes)
2810       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2811 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2812    { (exit 1); exit 1; }; }
2813       ;;
2814     no)
2815       { { echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2816 echo "$as_me: error: argument required for --with-segsize option" >&2;}
2817    { (exit 1); exit 1; }; }
2818       ;;
2819     *)
2820       segsize=$withval
2821       ;;
2822   esac
2823
2824 else
2825   segsize=1
2826 fi
2827
2828
2829 # this expression is set up to avoid unnecessary integer overflow
2830 # blocksize is already guaranteed to be a factor of 1024
2831 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2832 test $? -eq 0 || exit 1
2833 { echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2834 echo "${ECHO_T}${segsize}GB" >&6; }
2835
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define RELSEG_SIZE ${RELSEG_SIZE}
2839 _ACEOF
2840
2841
2842 #
2843 # WAL block size
2844 #
2845 { echo "$as_me:$LINENO: checking for WAL block size" >&5
2846 echo $ECHO_N "checking for WAL block size... $ECHO_C" >&6; }
2847
2848 pgac_args="$pgac_args with_wal_blocksize"
2849
2850
2851 # Check whether --with-wal-blocksize was given.
2852 if test "${with_wal_blocksize+set}" = set; then
2853   withval=$with_wal_blocksize;
2854   case $withval in
2855     yes)
2856       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2857 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2858    { (exit 1); exit 1; }; }
2859       ;;
2860     no)
2861       { { echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2862 echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2863    { (exit 1); exit 1; }; }
2864       ;;
2865     *)
2866       wal_blocksize=$withval
2867       ;;
2868   esac
2869
2870 else
2871   wal_blocksize=8
2872 fi
2873
2874
2875 case ${wal_blocksize} in
2876   1) XLOG_BLCKSZ=1024;;
2877   2) XLOG_BLCKSZ=2048;;
2878   4) XLOG_BLCKSZ=4096;;
2879   8) XLOG_BLCKSZ=8192;;
2880  16) XLOG_BLCKSZ=16384;;
2881  32) XLOG_BLCKSZ=32768;;
2882  64) XLOG_BLCKSZ=65536;;
2883   *) { { echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2884 echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2885    { (exit 1); exit 1; }; }
2886 esac
2887 { echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2888 echo "${ECHO_T}${wal_blocksize}kB" >&6; }
2889
2890
2891 cat >>confdefs.h <<_ACEOF
2892 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2893 _ACEOF
2894
2895
2896 #
2897 # WAL segment size
2898 #
2899 { echo "$as_me:$LINENO: checking for WAL segment size" >&5
2900 echo $ECHO_N "checking for WAL segment size... $ECHO_C" >&6; }
2901
2902 pgac_args="$pgac_args with_wal_segsize"
2903
2904
2905 # Check whether --with-wal-segsize was given.
2906 if test "${with_wal_segsize+set}" = set; then
2907   withval=$with_wal_segsize;
2908   case $withval in
2909     yes)
2910       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2911 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2912    { (exit 1); exit 1; }; }
2913       ;;
2914     no)
2915       { { echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
2916 echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
2917    { (exit 1); exit 1; }; }
2918       ;;
2919     *)
2920       wal_segsize=$withval
2921       ;;
2922   esac
2923
2924 else
2925   wal_segsize=16
2926 fi
2927
2928
2929 case ${wal_segsize} in
2930   1) ;;
2931   2) ;;
2932   4) ;;
2933   8) ;;
2934  16) ;;
2935  32) ;;
2936  64) ;;
2937   *) { { echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
2938 echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2939    { (exit 1); exit 1; }; }
2940 esac
2941 { echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
2942 echo "${ECHO_T}${wal_segsize}MB" >&6; }
2943
2944
2945 cat >>confdefs.h <<_ACEOF
2946 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
2947 _ACEOF
2948
2949
2950 #
2951 # C compiler
2952 #
2953
2954 # For historical reasons you can also use --with-CC to specify the C compiler
2955 # to use, although the standard way to do this is to set the CC environment
2956 # variable.
2957
2958 pgac_args="$pgac_args with_CC"
2959
2960
2961 # Check whether --with-CC was given.
2962 if test "${with_CC+set}" = set; then
2963   withval=$with_CC;
2964   case $withval in
2965     yes)
2966       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2967 echo "$as_me: error: argument required for --with-CC option" >&2;}
2968    { (exit 1); exit 1; }; }
2969       ;;
2970     no)
2971       { { echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
2972 echo "$as_me: error: argument required for --with-CC option" >&2;}
2973    { (exit 1); exit 1; }; }
2974       ;;
2975     *)
2976       CC=$with_CC
2977       ;;
2978   esac
2979
2980 fi
2981
2982
2983
2984 case $template in
2985   aix) pgac_cc_list="gcc xlc";;
2986  irix) pgac_cc_list="cc";; # no gcc
2987     *) pgac_cc_list="gcc cc";;
2988 esac
2989
2990 ac_ext=c
2991 ac_cpp='$CPP $CPPFLAGS'
2992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995 if test -n "$ac_tool_prefix"; then
2996   for ac_prog in $pgac_cc_list
2997   do
2998     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2999 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_CC+set}" = set; then
3003   echo $ECHO_N "(cached) $ECHO_C" >&6
3004 else
3005   if test -n "$CC"; then
3006   ac_cv_prog_CC="$CC" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011   IFS=$as_save_IFS
3012   test -z "$as_dir" && as_dir=.
3013   for ac_exec_ext in '' $ac_executable_extensions; do
3014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3017     break 2
3018   fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027   { echo "$as_me:$LINENO: result: $CC" >&5
3028 echo "${ECHO_T}$CC" >&6; }
3029 else
3030   { echo "$as_me:$LINENO: result: no" >&5
3031 echo "${ECHO_T}no" >&6; }
3032 fi
3033
3034
3035     test -n "$CC" && break
3036   done
3037 fi
3038 if test -z "$CC"; then
3039   ac_ct_CC=$CC
3040   for ac_prog in $pgac_cc_list
3041 do
3042   # Extract the first word of "$ac_prog", so it can be a program name with args.
3043 set dummy $ac_prog; ac_word=$2
3044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   if test -n "$ac_ct_CC"; then
3050   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055   IFS=$as_save_IFS
3056   test -z "$as_dir" && as_dir=.
3057   for ac_exec_ext in '' $ac_executable_extensions; do
3058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059     ac_cv_prog_ac_ct_CC="$ac_prog"
3060     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061     break 2
3062   fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3070 if test -n "$ac_ct_CC"; then
3071   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3072 echo "${ECHO_T}$ac_ct_CC" >&6; }
3073 else
3074   { echo "$as_me:$LINENO: result: no" >&5
3075 echo "${ECHO_T}no" >&6; }
3076 fi
3077
3078
3079   test -n "$ac_ct_CC" && break
3080 done
3081
3082   if test "x$ac_ct_CC" = x; then
3083     CC=""
3084   else
3085     case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3088 whose name does not start with the host triplet.  If you think this
3089 configuration is useful to you, please write to autoconf@gnu.org." >&5
3090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3091 whose name does not start with the host triplet.  If you think this
3092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095     CC=$ac_ct_CC
3096   fi
3097 fi
3098
3099
3100 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: no acceptable C compiler found in \$PATH
3103 See \`config.log' for more details." >&2;}
3104    { (exit 1); exit 1; }; }
3105
3106 # Provide some information about the compiler.
3107 echo "$as_me:$LINENO: checking for C compiler version" >&5
3108 ac_compiler=`set X $ac_compile; echo $2`
3109 { (ac_try="$ac_compiler --version >&5"
3110 case "(($ac_try" in
3111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112   *) ac_try_echo=$ac_try;;
3113 esac
3114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3115   (eval "$ac_compiler --version >&5") 2>&5
3116   ac_status=$?
3117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118   (exit $ac_status); }
3119 { (ac_try="$ac_compiler -v >&5"
3120 case "(($ac_try" in
3121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122   *) ac_try_echo=$ac_try;;
3123 esac
3124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125   (eval "$ac_compiler -v >&5") 2>&5
3126   ac_status=$?
3127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128   (exit $ac_status); }
3129 { (ac_try="$ac_compiler -V >&5"
3130 case "(($ac_try" in
3131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132   *) ac_try_echo=$ac_try;;
3133 esac
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135   (eval "$ac_compiler -V >&5") 2>&5
3136   ac_status=$?
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); }
3139
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h.  */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h.  */
3146
3147 int
3148 main ()
3149 {
3150
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 ac_clean_files_save=$ac_clean_files
3156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3157 # Try to create an executable without -o first, disregard a.out.
3158 # It will help us diagnose broken compilers, and finding out an intuition
3159 # of exeext.
3160 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3161 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3163 #
3164 # List of possible output files, starting from the most likely.
3165 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3166 # only as a last resort.  b.out is created by i960 compilers.
3167 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3168 #
3169 # The IRIX 6 linker writes into existing files which may not be
3170 # executable, retaining their permissions.  Remove them first so a
3171 # subsequent execution test works.
3172 ac_rmfiles=
3173 for ac_file in $ac_files
3174 do
3175   case $ac_file in
3176     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3177     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3178   esac
3179 done
3180 rm -f $ac_rmfiles
3181
3182 if { (ac_try="$ac_link_default"
3183 case "(($ac_try" in
3184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185   *) ac_try_echo=$ac_try;;
3186 esac
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188   (eval "$ac_link_default") 2>&5
3189   ac_status=$?
3190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191   (exit $ac_status); }; then
3192   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3193 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3194 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3195 # so that the user can short-circuit this test for compilers unknown to
3196 # Autoconf.
3197 for ac_file in $ac_files ''
3198 do
3199   test -f "$ac_file" || continue
3200   case $ac_file in
3201     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3202         ;;
3203     [ab].out )
3204         # We found the default executable, but exeext='' is most
3205         # certainly right.
3206         break;;
3207     *.* )
3208         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3209         then :; else
3210            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3211         fi
3212         # We set ac_cv_exeext here because the later test for it is not
3213         # safe: cross compilers may not add the suffix if given an `-o'
3214         # argument, so we may need to know it at that point already.
3215         # Even if this section looks crufty: it has the advantage of
3216         # actually working.
3217         break;;
3218     * )
3219         break;;
3220   esac
3221 done
3222 test "$ac_cv_exeext" = no && ac_cv_exeext=
3223
3224 else
3225   ac_file=''
3226 fi
3227
3228 { echo "$as_me:$LINENO: result: $ac_file" >&5
3229 echo "${ECHO_T}$ac_file" >&6; }
3230 if test -z "$ac_file"; then
3231   echo "$as_me: failed program was:" >&5
3232 sed 's/^/| /' conftest.$ac_ext >&5
3233
3234 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: C compiler cannot create executables
3237 See \`config.log' for more details." >&2;}
3238    { (exit 77); exit 77; }; }
3239 fi
3240
3241 ac_exeext=$ac_cv_exeext
3242
3243 # Check that the compiler produces executables we can run.  If not, either
3244 # the compiler is broken, or we cross compile.
3245 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3246 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3247 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3248 # If not cross compiling, check that we can run a simple program.
3249 if test "$cross_compiling" != yes; then
3250   if { ac_try='./$ac_file'
3251   { (case "(($ac_try" in
3252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253   *) ac_try_echo=$ac_try;;
3254 esac
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256   (eval "$ac_try") 2>&5
3257   ac_status=$?
3258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); }; }; then
3260     cross_compiling=no
3261   else
3262     if test "$cross_compiling" = maybe; then
3263         cross_compiling=yes
3264     else
3265         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3266 If you meant to cross compile, use \`--host'.
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details." >&2;}
3271    { (exit 1); exit 1; }; }
3272     fi
3273   fi
3274 fi
3275 { echo "$as_me:$LINENO: result: yes" >&5
3276 echo "${ECHO_T}yes" >&6; }
3277
3278 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3279 ac_clean_files=$ac_clean_files_save
3280 # Check that the compiler produces executables we can run.  If not, either
3281 # the compiler is broken, or we cross compile.
3282 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3283 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3284 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3285 echo "${ECHO_T}$cross_compiling" >&6; }
3286
3287 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3288 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3289 if { (ac_try="$ac_link"
3290 case "(($ac_try" in
3291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3292   *) ac_try_echo=$ac_try;;
3293 esac
3294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3295   (eval "$ac_link") 2>&5
3296   ac_status=$?
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); }; then
3299   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3300 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3301 # work properly (i.e., refer to `conftest.exe'), while it won't with
3302 # `rm'.
3303 for ac_file in conftest.exe conftest conftest.*; do
3304   test -f "$ac_file" || continue
3305   case $ac_file in
3306     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3307     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308           break;;
3309     * ) break;;
3310   esac
3311 done
3312 else
3313   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3314 See \`config.log' for more details." >&5
3315 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3316 See \`config.log' for more details." >&2;}
3317    { (exit 1); exit 1; }; }
3318 fi
3319
3320 rm -f conftest$ac_cv_exeext
3321 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3322 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3323
3324 rm -f conftest.$ac_ext
3325 EXEEXT=$ac_cv_exeext
3326 ac_exeext=$EXEEXT
3327 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3328 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3329 if test "${ac_cv_objext+set}" = set; then
3330   echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338
3339 int
3340 main ()
3341 {
3342
3343   ;
3344   return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.o conftest.obj
3348 if { (ac_try="$ac_compile"
3349 case "(($ac_try" in
3350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351   *) ac_try_echo=$ac_try;;
3352 esac
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354   (eval "$ac_compile") 2>&5
3355   ac_status=$?
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); }; then
3358   for ac_file in conftest.o conftest.obj conftest.*; do
3359   test -f "$ac_file" || continue;
3360   case $ac_file in
3361     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3362     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3363        break;;
3364   esac
3365 done
3366 else
3367   echo "$as_me: failed program was:" >&5
3368 sed 's/^/| /' conftest.$ac_ext >&5
3369
3370 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3371 See \`config.log' for more details." >&5
3372 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3373 See \`config.log' for more details." >&2;}
3374    { (exit 1); exit 1; }; }
3375 fi
3376
3377 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3378 fi
3379 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3380 echo "${ECHO_T}$ac_cv_objext" >&6; }
3381 OBJEXT=$ac_cv_objext
3382 ac_objext=$OBJEXT
3383 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3384 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3385 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3386   echo $ECHO_N "(cached) $ECHO_C" >&6
3387 else
3388   cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394
3395 int
3396 main ()
3397 {
3398 #ifndef __GNUC__
3399        choke me
3400 #endif
3401
3402   ;
3403   return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.$ac_objext
3407 if { (ac_try="$ac_compile"
3408 case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_compile") 2>conftest.er1
3414   ac_status=$?
3415   grep -v '^ *+' conftest.er1 >conftest.err
3416   rm -f conftest.er1
3417   cat conftest.err >&5
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); } && {
3420          test -z "$ac_c_werror_flag" ||
3421          test ! -s conftest.err
3422        } && test -s conftest.$ac_objext; then
3423   ac_compiler_gnu=yes
3424 else
3425   echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3427
3428         ac_compiler_gnu=no
3429 fi
3430
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433
3434 fi
3435 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3436 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3437 GCC=`test $ac_compiler_gnu = yes && echo yes`
3438 ac_test_CFLAGS=${CFLAGS+set}
3439 ac_save_CFLAGS=$CFLAGS
3440 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3441 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_cc_g+set}" = set; then
3443   echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445   ac_save_c_werror_flag=$ac_c_werror_flag
3446    ac_c_werror_flag=yes
3447    ac_cv_prog_cc_g=no
3448    CFLAGS="-g"
3449    cat >conftest.$ac_ext <<_ACEOF
3450 /* confdefs.h.  */
3451 _ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h.  */
3455
3456 int
3457 main ()
3458 {
3459
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3466 case "(($ac_try" in
3467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468   *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471   (eval "$ac_compile") 2>conftest.er1
3472   ac_status=$?
3473   grep -v '^ *+' conftest.er1 >conftest.err
3474   rm -f conftest.er1
3475   cat conftest.err >&5
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); } && {
3478          test -z "$ac_c_werror_flag" ||
3479          test ! -s conftest.err
3480        } && test -s conftest.$ac_objext; then
3481   ac_cv_prog_cc_g=yes
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486         CFLAGS=""
3487       cat >conftest.$ac_ext <<_ACEOF
3488 /* confdefs.h.  */
3489 _ACEOF
3490 cat confdefs.h >>conftest.$ac_ext
3491 cat >>conftest.$ac_ext <<_ACEOF
3492 /* end confdefs.h.  */
3493
3494 int
3495 main ()
3496 {
3497
3498   ;
3499   return 0;
3500 }
3501 _ACEOF
3502 rm -f conftest.$ac_objext
3503 if { (ac_try="$ac_compile"
3504 case "(($ac_try" in
3505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506   *) ac_try_echo=$ac_try;;
3507 esac
3508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3509   (eval "$ac_compile") 2>conftest.er1
3510   ac_status=$?
3511   grep -v '^ *+' conftest.er1 >conftest.err
3512   rm -f conftest.er1
3513   cat conftest.err >&5
3514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515   (exit $ac_status); } && {
3516          test -z "$ac_c_werror_flag" ||
3517          test ! -s conftest.err
3518        } && test -s conftest.$ac_objext; then
3519   :
3520 else
3521   echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3523
3524         ac_c_werror_flag=$ac_save_c_werror_flag
3525          CFLAGS="-g"
3526          cat >conftest.$ac_ext <<_ACEOF
3527 /* confdefs.h.  */
3528 _ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h.  */
3532
3533 int
3534 main ()
3535 {
3536
3537   ;
3538   return 0;
3539 }
3540 _ACEOF
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3543 case "(($ac_try" in
3544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545   *) ac_try_echo=$ac_try;;
3546 esac
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548   (eval "$ac_compile") 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } && {
3555          test -z "$ac_c_werror_flag" ||
3556          test ! -s conftest.err
3557        } && test -s conftest.$ac_objext; then
3558   ac_cv_prog_cc_g=yes
3559 else
3560   echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3562
3563
3564 fi
3565
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 fi
3568
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570 fi
3571
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573    ac_c_werror_flag=$ac_save_c_werror_flag
3574 fi
3575 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3576 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3577 if test "$ac_test_CFLAGS" = set; then
3578   CFLAGS=$ac_save_CFLAGS
3579 elif test $ac_cv_prog_cc_g = yes; then
3580   if test "$GCC" = yes; then
3581     CFLAGS="-g -O2"
3582   else
3583     CFLAGS="-g"
3584   fi
3585 else
3586   if test "$GCC" = yes; then
3587     CFLAGS="-O2"
3588   else
3589     CFLAGS=
3590   fi
3591 fi
3592 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3593 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3594 if test "${ac_cv_prog_cc_c89+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   ac_cv_prog_cc_c89=no
3598 ac_save_CC=$CC
3599 cat >conftest.$ac_ext <<_ACEOF
3600 /* confdefs.h.  */
3601 _ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h.  */
3605 #include <stdarg.h>
3606 #include <stdio.h>
3607 #include <sys/types.h>
3608 #include <sys/stat.h>
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3610 struct buf { int x; };
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612 static char *e (p, i)
3613      char **p;
3614      int i;
3615 {
3616   return p[i];
3617 }
3618 static char *f (char * (*g) (char **, int), char **p, ...)
3619 {
3620   char *s;
3621   va_list v;
3622   va_start (v,p);
3623   s = g (p, va_arg (v,int));
3624   va_end (v);
3625   return s;
3626 }
3627
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3629    function prototypes and stuff, but not '\xHH' hex character constants.
3630    These don't provoke an error unfortunately, instead are silently treated
3631    as 'x'.  The following induces an error, until -std is added to get
3632    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3633    array size at least.  It's necessary to write '\x00'==0 to get something
3634    that's true only with -std.  */
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638    inside strings and character constants.  */
3639 #define FOO(x) 'x'
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641
3642 int test (int i, double x);
3643 struct s1 {int (*f) (int a);};
3644 struct s2 {int (*f) (double a);};
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646 int argc;
3647 char **argv;
3648 int
3649 main ()
3650 {
3651 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 do
3659   CC="$ac_save_CC $ac_arg"
3660   rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3662 case "(($ac_try" in
3663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664   *) ac_try_echo=$ac_try;;
3665 esac
3666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667   (eval "$ac_compile") 2>conftest.er1
3668   ac_status=$?
3669   grep -v '^ *+' conftest.er1 >conftest.err
3670   rm -f conftest.er1
3671   cat conftest.err >&5
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } && {
3674          test -z "$ac_c_werror_flag" ||
3675          test ! -s conftest.err
3676        } && test -s conftest.$ac_objext; then
3677   ac_cv_prog_cc_c89=$ac_arg
3678 else
3679   echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682
3683 fi
3684
3685 rm -f core conftest.err conftest.$ac_objext
3686   test "x$ac_cv_prog_cc_c89" != "xno" && break
3687 done
3688 rm -f conftest.$ac_ext
3689 CC=$ac_save_CC
3690
3691 fi
3692 # AC_CACHE_VAL
3693 case "x$ac_cv_prog_cc_c89" in
3694   x)
3695     { echo "$as_me:$LINENO: result: none needed" >&5
3696 echo "${ECHO_T}none needed" >&6; } ;;
3697   xno)
3698     { echo "$as_me:$LINENO: result: unsupported" >&5
3699 echo "${ECHO_T}unsupported" >&6; } ;;
3700   *)
3701     CC="$CC $ac_cv_prog_cc_c89"
3702     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3703 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3704 esac
3705
3706
3707 ac_ext=c
3708 ac_cpp='$CPP $CPPFLAGS'
3709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712
3713
3714 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3715 # but has idiosyncrasies of its own.  We assume icc will define
3716 # __INTEL_COMPILER regardless of CFLAGS.
3717
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h.  */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h.  */
3724
3725 int
3726 main ()
3727 {
3728 #ifndef __INTEL_COMPILER
3729 choke me
3730 #endif
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (ac_try="$ac_compile"
3737 case "(($ac_try" in
3738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739   *) ac_try_echo=$ac_try;;
3740 esac
3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3742   (eval "$ac_compile") 2>conftest.er1
3743   ac_status=$?
3744   grep -v '^ *+' conftest.er1 >conftest.err
3745   rm -f conftest.er1
3746   cat conftest.err >&5
3747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748   (exit $ac_status); } && {
3749          test -z "$ac_c_werror_flag" ||
3750          test ! -s conftest.err
3751        } && test -s conftest.$ac_objext; then
3752   ICC=yes
3753 else
3754   echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3756
3757         ICC=no
3758 fi
3759
3760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761
3762 # Check if it's Sun Studio compiler. We assume that
3763 # __SUNPRO_C will be defined for Sun Studio compilers
3764 cat >conftest.$ac_ext <<_ACEOF
3765 /* confdefs.h.  */
3766 _ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h.  */
3770
3771 int
3772 main ()
3773 {
3774 #ifndef __SUNPRO_C
3775 choke me
3776 #endif
3777   ;
3778   return 0;
3779 }
3780 _ACEOF
3781 rm -f conftest.$ac_objext
3782 if { (ac_try="$ac_compile"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3788   (eval "$ac_compile") 2>conftest.er1
3789   ac_status=$?
3790   grep -v '^ *+' conftest.er1 >conftest.err
3791   rm -f conftest.er1
3792   cat conftest.err >&5
3793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); } && {
3795          test -z "$ac_c_werror_flag" ||
3796          test ! -s conftest.err
3797        } && test -s conftest.$ac_objext; then
3798   SUN_STUDIO_CC=yes
3799 else
3800   echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3802
3803         SUN_STUDIO_CC=no
3804 fi
3805
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807
3808
3809
3810 unset CFLAGS
3811
3812 #
3813 # Read the template
3814 #
3815 . "$srcdir/src/template/$template" || exit
3816
3817 # CFLAGS are selected so:
3818 # If the user specifies something in the environment, that is used.
3819 # else:  If the template file set something, that is used.
3820 # else:  If coverage was enabled, don't set anything.
3821 # else:  If the compiler is GCC, then we use -O2.
3822 # else:  If the compiler is something else, then we use -O.
3823
3824 if test "$ac_env_CFLAGS_set" = set; then
3825   CFLAGS=$ac_env_CFLAGS_value
3826 elif test "${CFLAGS+set}" = set; then
3827   : # (keep what template set)
3828 elif test "$enable_coverage" = yes; then
3829   : # no optimization by default
3830 elif test "$GCC" = yes; then
3831   CFLAGS="-O2"
3832 else
3833   # if the user selected debug mode, don't use -O
3834   if test "$enable_debug" != yes; then
3835     CFLAGS="-O"
3836   fi
3837 fi
3838
3839 # Some versions of GCC support some additional useful warning flags.
3840 # Check whether they are supported, and add them to CFLAGS if so.
3841 # ICC pretends to be GCC but it's lying; it doesn't support these options.
3842
3843 if test "$GCC" = yes -a "$ICC" = no; then
3844   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3845   # These work in some but not all gcc versions
3846   { echo "$as_me:$LINENO: checking if $CC supports -Wdeclaration-after-statement" >&5
3847 echo $ECHO_N "checking if $CC supports -Wdeclaration-after-statement... $ECHO_C" >&6; }
3848 pgac_save_CFLAGS=$CFLAGS
3849 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h.  */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h.  */
3856
3857 int
3858 main ()
3859 {
3860
3861   ;
3862   return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869   *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872   (eval "$ac_compile") 2>conftest.er1
3873   ac_status=$?
3874   grep -v '^ *+' conftest.er1 >conftest.err
3875   rm -f conftest.er1
3876   cat conftest.err >&5
3877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878   (exit $ac_status); } && {
3879          test -z "$ac_c_werror_flag" ||
3880          test ! -s conftest.err
3881        } && test -s conftest.$ac_objext; then
3882   { echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6; }
3884 else
3885   echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888         CFLAGS="$pgac_save_CFLAGS"
3889                     { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3891 fi
3892
3893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3894
3895   { echo "$as_me:$LINENO: checking if $CC supports -Wendif-labels" >&5
3896 echo $ECHO_N "checking if $CC supports -Wendif-labels... $ECHO_C" >&6; }
3897 pgac_save_CFLAGS=$CFLAGS
3898 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905
3906 int
3907 main ()
3908 {
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3916 case "(($ac_try" in
3917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918   *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921   (eval "$ac_compile") 2>conftest.er1
3922   ac_status=$?
3923   grep -v '^ *+' conftest.er1 >conftest.err
3924   rm -f conftest.er1
3925   cat conftest.err >&5
3926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927   (exit $ac_status); } && {
3928          test -z "$ac_c_werror_flag" ||
3929          test ! -s conftest.err
3930        } && test -s conftest.$ac_objext; then
3931   { echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6; }
3933 else
3934   echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3936
3937         CFLAGS="$pgac_save_CFLAGS"
3938                     { echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6; }
3940 fi
3941
3942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3943
3944   # Disable strict-aliasing rules; needed for gcc 3.3+
3945   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
3946 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
3947 pgac_save_CFLAGS=$CFLAGS
3948 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
3949 cat >conftest.$ac_ext <<_ACEOF
3950 /* confdefs.h.  */
3951 _ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3966 case "(($ac_try" in
3967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968   *) ac_try_echo=$ac_try;;
3969 esac
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971   (eval "$ac_compile") 2>conftest.er1
3972   ac_status=$?
3973   grep -v '^ *+' conftest.er1 >conftest.err
3974   rm -f conftest.er1
3975   cat conftest.err >&5
3976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977   (exit $ac_status); } && {
3978          test -z "$ac_c_werror_flag" ||
3979          test ! -s conftest.err
3980        } && test -s conftest.$ac_objext; then
3981   { echo "$as_me:$LINENO: result: yes" >&5
3982 echo "${ECHO_T}yes" >&6; }
3983 else
3984   echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3986
3987         CFLAGS="$pgac_save_CFLAGS"
3988                     { echo "$as_me:$LINENO: result: no" >&5
3989 echo "${ECHO_T}no" >&6; }
3990 fi
3991
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993
3994   # Disable optimizations that assume no overflow; needed for gcc 4.3+
3995   { echo "$as_me:$LINENO: checking if $CC supports -fwrapv" >&5
3996 echo $ECHO_N "checking if $CC supports -fwrapv... $ECHO_C" >&6; }
3997 pgac_save_CFLAGS=$CFLAGS
3998 CFLAGS="$pgac_save_CFLAGS -fwrapv"
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005
4006 int
4007 main ()
4008 {
4009
4010   ;
4011   return 0;
4012 }
4013 _ACEOF
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4016 case "(($ac_try" in
4017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018   *) ac_try_echo=$ac_try;;
4019 esac
4020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021   (eval "$ac_compile") 2>conftest.er1
4022   ac_status=$?
4023   grep -v '^ *+' conftest.er1 >conftest.err
4024   rm -f conftest.er1
4025   cat conftest.err >&5
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); } && {
4028          test -z "$ac_c_werror_flag" ||
4029          test ! -s conftest.err
4030        } && test -s conftest.$ac_objext; then
4031   { echo "$as_me:$LINENO: result: yes" >&5
4032 echo "${ECHO_T}yes" >&6; }
4033 else
4034   echo "$as_me: failed program was:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4036
4037         CFLAGS="$pgac_save_CFLAGS"
4038                     { echo "$as_me:$LINENO: result: no" >&5
4039 echo "${ECHO_T}no" >&6; }
4040 fi
4041
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043
4044 elif test "$ICC" = yes; then
4045   # Intel's compiler has a bug/misoptimization in checking for
4046   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4047   { echo "$as_me:$LINENO: checking if $CC supports -mp1" >&5
4048 echo $ECHO_N "checking if $CC supports -mp1... $ECHO_C" >&6; }
4049 pgac_save_CFLAGS=$CFLAGS
4050 CFLAGS="$pgac_save_CFLAGS -mp1"
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h.  */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h.  */
4057
4058 int
4059 main ()
4060 {
4061
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext
4067 if { (ac_try="$ac_compile"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_compile") 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } && {
4080          test -z "$ac_c_werror_flag" ||
4081          test ! -s conftest.err
4082        } && test -s conftest.$ac_objext; then
4083   { echo "$as_me:$LINENO: result: yes" >&5
4084 echo "${ECHO_T}yes" >&6; }
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089         CFLAGS="$pgac_save_CFLAGS"
4090                     { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4092 fi
4093
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095
4096   # Make sure strict aliasing is off (though this is said to be the default)
4097   { echo "$as_me:$LINENO: checking if $CC supports -fno-strict-aliasing" >&5
4098 echo $ECHO_N "checking if $CC supports -fno-strict-aliasing... $ECHO_C" >&6; }
4099 pgac_save_CFLAGS=$CFLAGS
4100 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4101 cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107
4108 int
4109 main ()
4110 {
4111
4112   ;
4113   return 0;
4114 }
4115 _ACEOF
4116 rm -f conftest.$ac_objext
4117 if { (ac_try="$ac_compile"
4118 case "(($ac_try" in
4119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4120   *) ac_try_echo=$ac_try;;
4121 esac
4122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4123   (eval "$ac_compile") 2>conftest.er1
4124   ac_status=$?
4125   grep -v '^ *+' conftest.er1 >conftest.err
4126   rm -f conftest.er1
4127   cat conftest.err >&5
4128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129   (exit $ac_status); } && {
4130          test -z "$ac_c_werror_flag" ||
4131          test ! -s conftest.err
4132        } && test -s conftest.$ac_objext; then
4133   { echo "$as_me:$LINENO: result: yes" >&5
4134 echo "${ECHO_T}yes" >&6; }
4135 else
4136   echo "$as_me: failed program was:" >&5
4137 sed 's/^/| /' conftest.$ac_ext >&5
4138
4139         CFLAGS="$pgac_save_CFLAGS"
4140                     { echo "$as_me:$LINENO: result: no" >&5
4141 echo "${ECHO_T}no" >&6; }
4142 fi
4143
4144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4145
4146 elif test x"${CC}" = x"xlc"; then
4147   # AIX xlc has to have strict aliasing turned off too
4148   { echo "$as_me:$LINENO: checking if $CC supports -qnoansialias" >&5
4149 echo $ECHO_N "checking if $CC supports -qnoansialias... $ECHO_C" >&6; }
4150 pgac_save_CFLAGS=$CFLAGS
4151 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4152 cat >conftest.$ac_ext <<_ACEOF
4153 /* confdefs.h.  */
4154 _ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h.  */
4158
4159 int
4160 main ()
4161 {
4162
4163   ;
4164   return 0;
4165 }
4166 _ACEOF
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4169 case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174   (eval "$ac_compile") 2>conftest.er1
4175   ac_status=$?
4176   grep -v '^ *+' conftest.er1 >conftest.err
4177   rm -f conftest.er1
4178   cat conftest.err >&5
4179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180   (exit $ac_status); } && {
4181          test -z "$ac_c_werror_flag" ||
4182          test ! -s conftest.err
4183        } && test -s conftest.$ac_objext; then
4184   { echo "$as_me:$LINENO: result: yes" >&5
4185 echo "${ECHO_T}yes" >&6; }
4186 else
4187   echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190         CFLAGS="$pgac_save_CFLAGS"
4191                     { echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6; }
4193 fi
4194
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197 fi
4198
4199 # supply -g if --enable-debug
4200 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4201   CFLAGS="$CFLAGS -g"
4202 fi
4203
4204 # enable code coverage if --enable-coverage
4205 if test "$enable_coverage" = yes; then
4206   if test "$GCC" = yes; then
4207     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4208   else
4209     { { echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4210 echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4211    { (exit 1); exit 1; }; }
4212   fi
4213 fi
4214
4215 # enable profiling if --enable-profiling
4216 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4217   if test "$GCC" = yes; then
4218
4219 cat >>confdefs.h <<\_ACEOF
4220 #define PROFILE_PID_DIR 1
4221 _ACEOF
4222
4223     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4224   else
4225     { { echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4226 echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4227    { (exit 1); exit 1; }; }
4228   fi
4229 fi
4230
4231 # We already have this in Makefile.win32, but configure needs it too
4232 if test "$PORTNAME" = "win32"; then
4233   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4234 fi
4235
4236 # Check if the compiler still works with the template settings
4237 { echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4238 echo $ECHO_N "checking whether the C compiler still works... $ECHO_C" >&6; }
4239 cat >conftest.$ac_ext <<_ACEOF
4240 /* confdefs.h.  */
4241 _ACEOF
4242 cat confdefs.h >>conftest.$ac_ext
4243 cat >>conftest.$ac_ext <<_ACEOF
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249 return 0;
4250   ;
4251   return 0;
4252 }
4253 _ACEOF
4254 rm -f conftest.$ac_objext conftest$ac_exeext
4255 if { (ac_try="$ac_link"
4256 case "(($ac_try" in
4257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258   *) ac_try_echo=$ac_try;;
4259 esac
4260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4261   (eval "$ac_link") 2>conftest.er1
4262   ac_status=$?
4263   grep -v '^ *+' conftest.er1 >conftest.err
4264   rm -f conftest.er1
4265   cat conftest.err >&5
4266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267   (exit $ac_status); } && {
4268          test -z "$ac_c_werror_flag" ||
4269          test ! -s conftest.err
4270        } && test -s conftest$ac_exeext &&
4271        $as_test_x conftest$ac_exeext; then
4272   { echo "$as_me:$LINENO: result: yes" >&5
4273 echo "${ECHO_T}yes" >&6; }
4274 else
4275   echo "$as_me: failed program was:" >&5
4276 sed 's/^/| /' conftest.$ac_ext >&5
4277
4278         { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4280    { { echo "$as_me:$LINENO: error: cannot proceed" >&5
4281 echo "$as_me: error: cannot proceed" >&2;}
4282    { (exit 1); exit 1; }; }
4283 fi
4284
4285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4286       conftest$ac_exeext conftest.$ac_ext
4287
4288 # Defend against gcc -ffast-math
4289 if test "$GCC" = yes; then
4290 cat >conftest.$ac_ext <<_ACEOF
4291 /* confdefs.h.  */
4292 _ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h.  */
4296
4297 int
4298 main ()
4299 {
4300 #ifdef __FAST_MATH__
4301 choke me
4302 #endif
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 rm -f conftest.$ac_objext
4308 if { (ac_try="$ac_compile"
4309 case "(($ac_try" in
4310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4311   *) ac_try_echo=$ac_try;;
4312 esac
4313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4314   (eval "$ac_compile") 2>conftest.er1
4315   ac_status=$?
4316   grep -v '^ *+' conftest.er1 >conftest.err
4317   rm -f conftest.er1
4318   cat conftest.err >&5
4319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320   (exit $ac_status); } && {
4321          test -z "$ac_c_werror_flag" ||
4322          test ! -s conftest.err
4323        } && test -s conftest.$ac_objext; then
4324   :
4325 else
4326   echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329         { { echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4330 echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4331    { (exit 1); exit 1; }; }
4332 fi
4333
4334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 fi
4336
4337 ac_ext=c
4338 ac_cpp='$CPP $CPPFLAGS'
4339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4342 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4344 # On Suns, sometimes $CPP names a directory.
4345 if test -n "$CPP" && test -d "$CPP"; then
4346   CPP=
4347 fi
4348 if test -z "$CPP"; then
4349   if test "${ac_cv_prog_CPP+set}" = set; then
4350   echo $ECHO_N "(cached) $ECHO_C" >&6
4351 else
4352       # Double quotes because CPP needs to be expanded
4353     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4354     do
4355       ac_preproc_ok=false
4356 for ac_c_preproc_warn_flag in '' yes
4357 do
4358   # Use a header file that comes with gcc, so configuring glibc
4359   # with a fresh cross-compiler works.
4360   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4361   # <limits.h> exists even on freestanding compilers.
4362   # On the NeXT, cc -E runs the code through the compiler's parser,
4363   # not just through cpp. "Syntax error" is here to catch this case.
4364   cat >conftest.$ac_ext <<_ACEOF
4365 /* confdefs.h.  */
4366 _ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h.  */
4370 #ifdef __STDC__
4371 # include <limits.h>
4372 #else
4373 # include <assert.h>
4374 #endif
4375                      Syntax error
4376 _ACEOF
4377 if { (ac_try="$ac_cpp conftest.$ac_ext"
4378 case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4384   ac_status=$?
4385   grep -v '^ *+' conftest.er1 >conftest.err
4386   rm -f conftest.er1
4387   cat conftest.err >&5
4388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389   (exit $ac_status); } >/dev/null && {
4390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4391          test ! -s conftest.err
4392        }; then
4393   :
4394 else
4395   echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4397
4398   # Broken: fails on valid input.
4399 continue
4400 fi
4401
4402 rm -f conftest.err conftest.$ac_ext
4403
4404   # OK, works on sane cases.  Now check whether nonexistent headers
4405   # can be detected and how.
4406   cat >conftest.$ac_ext <<_ACEOF
4407 /* confdefs.h.  */
4408 _ACEOF
4409 cat confdefs.h >>conftest.$ac_ext
4410 cat >>conftest.$ac_ext <<_ACEOF
4411 /* end confdefs.h.  */
4412 #include <ac_nonexistent.h>
4413 _ACEOF
4414 if { (ac_try="$ac_cpp conftest.$ac_ext"
4415 case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4421   ac_status=$?
4422   grep -v '^ *+' conftest.er1 >conftest.err
4423   rm -f conftest.er1
4424   cat conftest.err >&5
4425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426   (exit $ac_status); } >/dev/null && {
4427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4428          test ! -s conftest.err
4429        }; then
4430   # Broken: success on invalid input.
4431 continue
4432 else
4433   echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436   # Passes both tests.
4437 ac_preproc_ok=:
4438 break
4439 fi
4440
4441 rm -f conftest.err conftest.$ac_ext
4442
4443 done
4444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4445 rm -f conftest.err conftest.$ac_ext
4446 if $ac_preproc_ok; then
4447   break
4448 fi
4449
4450     done
4451     ac_cv_prog_CPP=$CPP
4452
4453 fi
4454   CPP=$ac_cv_prog_CPP
4455 else
4456   ac_cv_prog_CPP=$CPP
4457 fi
4458 { echo "$as_me:$LINENO: result: $CPP" >&5
4459 echo "${ECHO_T}$CPP" >&6; }
4460 ac_preproc_ok=false
4461 for ac_c_preproc_warn_flag in '' yes
4462 do
4463   # Use a header file that comes with gcc, so configuring glibc
4464   # with a fresh cross-compiler works.
4465   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4466   # <limits.h> exists even on freestanding compilers.
4467   # On the NeXT, cc -E runs the code through the compiler's parser,
4468   # not just through cpp. "Syntax error" is here to catch this case.
4469   cat >conftest.$ac_ext <<_ACEOF
4470 /* confdefs.h.  */
4471 _ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h.  */
4475 #ifdef __STDC__
4476 # include <limits.h>
4477 #else
4478 # include <assert.h>
4479 #endif
4480                      Syntax error
4481 _ACEOF
4482 if { (ac_try="$ac_cpp conftest.$ac_ext"
4483 case "(($ac_try" in
4484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4485   *) ac_try_echo=$ac_try;;
4486 esac
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4489   ac_status=$?
4490   grep -v '^ *+' conftest.er1 >conftest.err
4491   rm -f conftest.er1
4492   cat conftest.err >&5
4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494   (exit $ac_status); } >/dev/null && {
4495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4496          test ! -s conftest.err
4497        }; then
4498   :
4499 else
4500   echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4502
4503   # Broken: fails on valid input.
4504 continue
4505 fi
4506
4507 rm -f conftest.err conftest.$ac_ext
4508
4509   # OK, works on sane cases.  Now check whether nonexistent headers
4510   # can be detected and how.
4511   cat >conftest.$ac_ext <<_ACEOF
4512 /* confdefs.h.  */
4513 _ACEOF
4514 cat confdefs.h >>conftest.$ac_ext
4515 cat >>conftest.$ac_ext <<_ACEOF
4516 /* end confdefs.h.  */
4517 #include <ac_nonexistent.h>
4518 _ACEOF
4519 if { (ac_try="$ac_cpp conftest.$ac_ext"
4520 case "(($ac_try" in
4521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522   *) ac_try_echo=$ac_try;;
4523 esac
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4526   ac_status=$?
4527   grep -v '^ *+' conftest.er1 >conftest.err
4528   rm -f conftest.er1
4529   cat conftest.err >&5
4530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531   (exit $ac_status); } >/dev/null && {
4532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4533          test ! -s conftest.err
4534        }; then
4535   # Broken: success on invalid input.
4536 continue
4537 else
4538   echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541   # Passes both tests.
4542 ac_preproc_ok=:
4543 break
4544 fi
4545
4546 rm -f conftest.err conftest.$ac_ext
4547
4548 done
4549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4550 rm -f conftest.err conftest.$ac_ext
4551 if $ac_preproc_ok; then
4552   :
4553 else
4554   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4555 See \`config.log' for more details." >&5
4556 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4557 See \`config.log' for more details." >&2;}
4558    { (exit 1); exit 1; }; }
4559 fi
4560
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568
4569 # Create compiler version string
4570 if test x"$GCC" = x"yes" ; then
4571   cc_string="GCC `${CC} --version | sed q`"
4572 else
4573   cc_string=$CC
4574 fi
4575
4576 cat >>confdefs.h <<_ACEOF
4577 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string"
4578 _ACEOF
4579
4580
4581
4582 #
4583 # Set up TAS assembly code if needed; the template file has now had its
4584 # chance to request this.
4585 #
4586 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
4587
4588
4589 if test "$need_tas" = yes ; then
4590   TAS=tas.o
4591 else
4592   TAS=""
4593 fi
4594
4595
4596
4597 #
4598 # Automatic dependency tracking
4599 #
4600
4601 pgac_args="$pgac_args enable_depend"
4602
4603 # Check whether --enable-depend was given.
4604 if test "${enable_depend+set}" = set; then
4605   enableval=$enable_depend;
4606   case $enableval in
4607     yes)
4608       autodepend=yes
4609       ;;
4610     no)
4611       :
4612       ;;
4613     *)
4614       { { echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
4615 echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
4616    { (exit 1); exit 1; }; }
4617       ;;
4618   esac
4619
4620 else
4621   enable_depend=no
4622
4623 fi
4624
4625
4626
4627
4628
4629 #
4630 # Enable assert checks
4631 #
4632
4633 pgac_args="$pgac_args enable_cassert"
4634
4635 # Check whether --enable-cassert was given.
4636 if test "${enable_cassert+set}" = set; then
4637   enableval=$enable_cassert;
4638   case $enableval in
4639     yes)
4640
4641 cat >>confdefs.h <<\_ACEOF
4642 #define USE_ASSERT_CHECKING 1
4643 _ACEOF
4644
4645       ;;
4646     no)
4647       :
4648       ;;
4649     *)
4650       { { echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
4651 echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
4652    { (exit 1); exit 1; }; }
4653       ;;
4654   esac
4655
4656 else
4657   enable_cassert=no
4658
4659 fi
4660
4661
4662
4663
4664 #
4665 # Include directories
4666 #
4667 ac_save_IFS=$IFS
4668 IFS="${IFS}${PATH_SEPARATOR}"
4669 # SRCH_INC comes from the template file
4670 for dir in $with_includes $SRCH_INC; do
4671   if test -d "$dir"; then
4672     INCLUDES="$INCLUDES -I$dir"
4673   else
4674     { echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
4675 echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
4676   fi
4677 done
4678 IFS=$ac_save_IFS
4679
4680
4681
4682 #
4683 # Library directories
4684 #
4685 ac_save_IFS=$IFS
4686 IFS="${IFS}${PATH_SEPARATOR}"
4687 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
4688 for dir in $LIBRARY_DIRS $SRCH_LIB; do
4689   if test -d "$dir"; then
4690     LIBDIRS="$LIBDIRS -L$dir"
4691   else
4692     { echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
4693 echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
4694   fi
4695 done
4696 IFS=$ac_save_IFS
4697
4698 #
4699 # Enable thread-safe client libraries
4700 #
4701 { echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
4702 echo $ECHO_N "checking allow thread-safe client libraries... $ECHO_C" >&6; }
4703 if test "$PORTNAME" != "win32"; then
4704
4705 pgac_args="$pgac_args enable_thread_safety"
4706
4707 # Check whether --enable-thread-safety was given.
4708 if test "${enable_thread_safety+set}" = set; then
4709   enableval=$enable_thread_safety;
4710   case $enableval in
4711     yes)
4712       :
4713       ;;
4714     no)
4715       :
4716       ;;
4717     *)
4718       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4719 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4720    { (exit 1); exit 1; }; }
4721       ;;
4722   esac
4723
4724 else
4725   enable_thread_safety=no
4726
4727 fi
4728
4729
4730 else
4731 # Win32 should always use threads
4732
4733 pgac_args="$pgac_args enable_thread_safety"
4734
4735 # Check whether --enable-thread-safety was given.
4736 if test "${enable_thread_safety+set}" = set; then
4737   enableval=$enable_thread_safety;
4738   case $enableval in
4739     yes)
4740       :
4741       ;;
4742     no)
4743       :
4744       ;;
4745     *)
4746       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
4747 echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
4748    { (exit 1); exit 1; }; }
4749       ;;
4750   esac
4751
4752 else
4753   enable_thread_safety=yes
4754
4755 fi
4756
4757
4758 fi
4759
4760
4761 pgac_args="$pgac_args enable_thread_safety_force"
4762
4763 # Check whether --enable-thread-safety-force was given.
4764 if test "${enable_thread_safety_force+set}" = set; then
4765   enableval=$enable_thread_safety_force;
4766   case $enableval in
4767     yes)
4768       :
4769       ;;
4770     no)
4771       :
4772       ;;
4773     *)
4774       { { echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety-force option" >&5
4775 echo "$as_me: error: no argument expected for --enable-thread-safety-force option" >&2;}
4776    { (exit 1); exit 1; }; }
4777       ;;
4778   esac
4779
4780 else
4781   enable_thread_safety_force=no
4782
4783 fi
4784
4785
4786 if test "$enable_thread_safety" = yes -o \
4787         "$enable_thread_safety_force" = yes; then
4788   enable_thread_safety="yes"    # for 'force'
4789
4790 cat >>confdefs.h <<\_ACEOF
4791 #define ENABLE_THREAD_SAFETY 1
4792 _ACEOF
4793
4794 fi
4795 { echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
4796 echo "${ECHO_T}$enable_thread_safety" >&6; }
4797
4798
4799 #
4800 # Optionally build Tcl modules (PL/Tcl)
4801 #
4802 { echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
4803 echo $ECHO_N "checking whether to build with Tcl... $ECHO_C" >&6; }
4804
4805 pgac_args="$pgac_args with_tcl"
4806
4807
4808 # Check whether --with-tcl was given.
4809 if test "${with_tcl+set}" = set; then
4810   withval=$with_tcl;
4811   case $withval in
4812     yes)
4813       :
4814       ;;
4815     no)
4816       :
4817       ;;
4818     *)
4819       { { echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
4820 echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
4821    { (exit 1); exit 1; }; }
4822       ;;
4823   esac
4824
4825 else
4826   with_tcl=no
4827
4828 fi
4829
4830
4831 { echo "$as_me:$LINENO: result: $with_tcl" >&5
4832 echo "${ECHO_T}$with_tcl" >&6; }
4833
4834
4835 # We see if the path to the Tcl/Tk configuration scripts is specified.
4836 # This will override the use of tclsh to find the paths to search.
4837
4838
4839 pgac_args="$pgac_args with_tclconfig"
4840
4841
4842 # Check whether --with-tclconfig was given.
4843 if test "${with_tclconfig+set}" = set; then
4844   withval=$with_tclconfig;
4845   case $withval in
4846     yes)
4847       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4848 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4849    { (exit 1); exit 1; }; }
4850       ;;
4851     no)
4852       { { echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
4853 echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
4854    { (exit 1); exit 1; }; }
4855       ;;
4856     *)
4857
4858       ;;
4859   esac
4860
4861 fi
4862
4863
4864
4865 #
4866 # Optionally build Perl modules (PL/Perl)
4867 #
4868 { echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
4869 echo $ECHO_N "checking whether to build Perl modules... $ECHO_C" >&6; }
4870
4871 pgac_args="$pgac_args with_perl"
4872
4873
4874 # Check whether --with-perl was given.
4875 if test "${with_perl+set}" = set; then
4876   withval=$with_perl;
4877   case $withval in
4878     yes)
4879       :
4880       ;;
4881     no)
4882       :
4883       ;;
4884     *)
4885       { { echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
4886 echo "$as_me: error: no argument expected for --with-perl option" >&2;}
4887    { (exit 1); exit 1; }; }
4888       ;;
4889   esac
4890
4891 else
4892   with_perl=no
4893
4894 fi
4895
4896
4897 { echo "$as_me:$LINENO: result: $with_perl" >&5
4898 echo "${ECHO_T}$with_perl" >&6; }
4899
4900
4901 #
4902 # Optionally build Python modules (PL/Python)
4903 #
4904 { echo "$as_me:$LINENO: checking whether to build Python modules" >&5
4905 echo $ECHO_N "checking whether to build Python modules... $ECHO_C" >&6; }
4906
4907 pgac_args="$pgac_args with_python"
4908
4909
4910 # Check whether --with-python was given.
4911 if test "${with_python+set}" = set; then
4912   withval=$with_python;
4913   case $withval in
4914     yes)
4915       :
4916       ;;
4917     no)
4918       :
4919       ;;
4920     *)
4921       { { echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
4922 echo "$as_me: error: no argument expected for --with-python option" >&2;}
4923    { (exit 1); exit 1; }; }
4924       ;;
4925   esac
4926
4927 else
4928   with_python=no
4929
4930 fi
4931
4932
4933 { echo "$as_me:$LINENO: result: $with_python" >&5
4934 echo "${ECHO_T}$with_python" >&6; }
4935
4936
4937 #
4938 # GSSAPI
4939 #
4940 { echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
4941 echo $ECHO_N "checking whether to build with GSSAPI support... $ECHO_C" >&6; }
4942
4943 pgac_args="$pgac_args with_gssapi"
4944
4945
4946 # Check whether --with-gssapi was given.
4947 if test "${with_gssapi+set}" = set; then
4948   withval=$with_gssapi;
4949   case $withval in
4950     yes)
4951
4952
4953 cat >>confdefs.h <<\_ACEOF
4954 #define ENABLE_GSS 1
4955 _ACEOF
4956
4957   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
4958
4959       ;;
4960     no)
4961       :
4962       ;;
4963     *)
4964       { { echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
4965 echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
4966    { (exit 1); exit 1; }; }
4967       ;;
4968   esac
4969
4970 else
4971   with_gssapi=no
4972
4973 fi
4974
4975
4976 { echo "$as_me:$LINENO: result: $with_gssapi" >&5
4977 echo "${ECHO_T}$with_gssapi" >&6; }
4978
4979
4980 #
4981 # Kerberos 5
4982 #
4983 { echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
4984 echo $ECHO_N "checking whether to build with Kerberos 5 support... $ECHO_C" >&6; }
4985
4986 pgac_args="$pgac_args with_krb5"
4987
4988
4989 # Check whether --with-krb5 was given.
4990 if test "${with_krb5+set}" = set; then
4991   withval=$with_krb5;
4992   case $withval in
4993     yes)
4994
4995
4996 cat >>confdefs.h <<\_ACEOF
4997 #define KRB5 1
4998 _ACEOF
4999
5000   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5001
5002       ;;
5003     no)
5004       :
5005       ;;
5006     *)
5007       { { echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5008 echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5009    { (exit 1); exit 1; }; }
5010       ;;
5011   esac
5012
5013 else
5014   with_krb5=no
5015
5016 fi
5017
5018
5019 { echo "$as_me:$LINENO: result: $with_krb5" >&5
5020 echo "${ECHO_T}$with_krb5" >&6; }
5021
5022
5023
5024
5025
5026
5027 #
5028 # Kerberos configuration parameters
5029 #
5030
5031 pgac_args="$pgac_args with_krb_srvnam"
5032
5033
5034 # Check whether --with-krb-srvnam was given.
5035 if test "${with_krb_srvnam+set}" = set; then
5036   withval=$with_krb_srvnam;
5037   case $withval in
5038     yes)
5039       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5040 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5041    { (exit 1); exit 1; }; }
5042       ;;
5043     no)
5044       { { echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5045 echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5046    { (exit 1); exit 1; }; }
5047       ;;
5048     *)
5049
5050       ;;
5051   esac
5052
5053 else
5054   with_krb_srvnam="postgres"
5055 fi
5056
5057
5058
5059 cat >>confdefs.h <<_ACEOF
5060 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5061 _ACEOF
5062
5063
5064
5065 #
5066 # PAM
5067 #
5068 { echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5069 echo $ECHO_N "checking whether to build with PAM support... $ECHO_C" >&6; }
5070
5071 pgac_args="$pgac_args with_pam"
5072
5073
5074 # Check whether --with-pam was given.
5075 if test "${with_pam+set}" = set; then
5076   withval=$with_pam;
5077   case $withval in
5078     yes)
5079
5080 cat >>confdefs.h <<\_ACEOF
5081 #define USE_PAM 1
5082 _ACEOF
5083
5084       ;;
5085     no)
5086       :
5087       ;;
5088     *)
5089       { { echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5090 echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5091    { (exit 1); exit 1; }; }
5092       ;;
5093   esac
5094
5095 else
5096   with_pam=no
5097
5098 fi
5099
5100
5101 { echo "$as_me:$LINENO: result: $with_pam" >&5
5102 echo "${ECHO_T}$with_pam" >&6; }
5103
5104
5105
5106 #
5107 # LDAP
5108 #
5109 { echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5110 echo $ECHO_N "checking whether to build with LDAP support... $ECHO_C" >&6; }
5111
5112 pgac_args="$pgac_args with_ldap"
5113
5114
5115 # Check whether --with-ldap was given.
5116 if test "${with_ldap+set}" = set; then
5117   withval=$with_ldap;
5118   case $withval in
5119     yes)
5120
5121 cat >>confdefs.h <<\_ACEOF
5122 #define USE_LDAP 1
5123 _ACEOF
5124
5125       ;;
5126     no)
5127       :
5128       ;;
5129     *)
5130       { { echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5131 echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5132    { (exit 1); exit 1; }; }
5133       ;;
5134   esac
5135
5136 else
5137   with_ldap=no
5138
5139 fi
5140
5141
5142 { echo "$as_me:$LINENO: result: $with_ldap" >&5
5143 echo "${ECHO_T}$with_ldap" >&6; }
5144
5145
5146
5147 #
5148 # Bonjour
5149 #
5150 { echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5151 echo $ECHO_N "checking whether to build with Bonjour support... $ECHO_C" >&6; }
5152
5153 pgac_args="$pgac_args with_bonjour"
5154
5155
5156 # Check whether --with-bonjour was given.
5157 if test "${with_bonjour+set}" = set; then
5158   withval=$with_bonjour;
5159   case $withval in
5160     yes)
5161
5162 cat >>confdefs.h <<\_ACEOF
5163 #define USE_BONJOUR 1
5164 _ACEOF
5165
5166       ;;
5167     no)
5168       :
5169       ;;
5170     *)
5171       { { echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5172 echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5173    { (exit 1); exit 1; }; }
5174       ;;
5175   esac
5176
5177 else
5178   with_bonjour=no
5179
5180 fi
5181
5182
5183 { echo "$as_me:$LINENO: result: $with_bonjour" >&5
5184 echo "${ECHO_T}$with_bonjour" >&6; }
5185
5186
5187
5188 #
5189 # OpenSSL
5190 #
5191 { echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5192 echo $ECHO_N "checking whether to build with OpenSSL support... $ECHO_C" >&6; }
5193
5194 pgac_args="$pgac_args with_openssl"
5195
5196
5197 # Check whether --with-openssl was given.
5198 if test "${with_openssl+set}" = set; then
5199   withval=$with_openssl;
5200   case $withval in
5201     yes)
5202
5203 cat >>confdefs.h <<\_ACEOF
5204 #define USE_SSL 1
5205 _ACEOF
5206
5207       ;;
5208     no)
5209       :
5210       ;;
5211     *)
5212       { { echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5213 echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5214    { (exit 1); exit 1; }; }
5215       ;;
5216   esac
5217
5218 else
5219   with_openssl=no
5220
5221 fi
5222
5223
5224 { echo "$as_me:$LINENO: result: $with_openssl" >&5
5225 echo "${ECHO_T}$with_openssl" >&6; }
5226
5227
5228
5229 #
5230 # Readline
5231 #
5232
5233 pgac_args="$pgac_args with_readline"
5234
5235
5236 # Check whether --with-readline was given.
5237 if test "${with_readline+set}" = set; then
5238   withval=$with_readline;
5239   case $withval in
5240     yes)
5241       :
5242       ;;
5243     no)
5244       :
5245       ;;
5246     *)
5247       { { echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5248 echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5249    { (exit 1); exit 1; }; }
5250       ;;
5251   esac
5252
5253 else
5254   with_readline=yes
5255
5256 fi
5257
5258
5259 # readline on MinGW has problems with backslashes in psql and other bugs.
5260 # This is particularly a problem with non-US code pages.
5261 # Therefore disable its use until we understand the cause. 2004-07-20
5262 if test "$PORTNAME" = "win32"; then
5263   if test "$with_readline" = yes; then
5264     { echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5265 echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5266     with_readline=no
5267   fi
5268 fi
5269
5270
5271 #
5272 # Prefer libedit
5273 #
5274
5275 pgac_args="$pgac_args with_libedit_preferred"
5276
5277
5278 # Check whether --with-libedit-preferred was given.
5279 if test "${with_libedit_preferred+set}" = set; then
5280   withval=$with_libedit_preferred;
5281   case $withval in
5282     yes)
5283       :
5284       ;;
5285     no)
5286       :
5287       ;;
5288     *)
5289       { { echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5290 echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5291    { (exit 1); exit 1; }; }
5292       ;;
5293   esac
5294
5295 else
5296   with_libedit_preferred=no
5297
5298 fi
5299
5300
5301
5302
5303 #
5304 # OSSP UUID library
5305 #
5306
5307 pgac_args="$pgac_args with_ossp_uuid"
5308
5309
5310 # Check whether --with-ossp-uuid was given.
5311 if test "${with_ossp_uuid+set}" = set; then
5312   withval=$with_ossp_uuid;
5313   case $withval in
5314     yes)
5315       :
5316       ;;
5317     no)
5318       :
5319       ;;
5320     *)
5321       { { echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5322 echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5323    { (exit 1); exit 1; }; }
5324       ;;
5325   esac
5326
5327 else
5328   with_ossp_uuid=no
5329
5330 fi
5331
5332
5333
5334
5335
5336 #
5337 # XML
5338 #
5339
5340 pgac_args="$pgac_args with_libxml"
5341
5342
5343 # Check whether --with-libxml was given.
5344 if test "${with_libxml+set}" = set; then
5345   withval=$with_libxml;
5346   case $withval in
5347     yes)
5348
5349 cat >>confdefs.h <<\_ACEOF
5350 #define USE_LIBXML 1
5351 _ACEOF
5352
5353       ;;
5354     no)
5355       :
5356       ;;
5357     *)
5358       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5359 echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5360    { (exit 1); exit 1; }; }
5361       ;;
5362   esac
5363
5364 else
5365   with_libxml=no
5366
5367 fi
5368
5369
5370
5371 if test "$with_libxml" = yes ; then
5372   for ac_prog in xml2-config
5373 do
5374   # Extract the first word of "$ac_prog", so it can be a program name with args.
5375 set dummy $ac_prog; ac_word=$2
5376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   if test -n "$XML2_CONFIG"; then
5382   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387   IFS=$as_save_IFS
5388   test -z "$as_dir" && as_dir=.
5389   for ac_exec_ext in '' $ac_executable_extensions; do
5390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391     ac_cv_prog_XML2_CONFIG="$ac_prog"
5392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393     break 2
5394   fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5402 if test -n "$XML2_CONFIG"; then
5403   { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5404 echo "${ECHO_T}$XML2_CONFIG" >&6; }
5405 else
5406   { echo "$as_me:$LINENO: result: no" >&5
5407 echo "${ECHO_T}no" >&6; }
5408 fi
5409
5410
5411   test -n "$XML2_CONFIG" && break
5412 done
5413
5414   if test -n "$XML2_CONFIG"; then
5415     for pgac_option in `$XML2_CONFIG --cflags`; do
5416       case $pgac_option in
5417         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5418       esac
5419     done
5420     for pgac_option in `$XML2_CONFIG --libs`; do
5421       case $pgac_option in
5422         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5423       esac
5424     done
5425   fi
5426 fi
5427
5428
5429
5430 #
5431 # XSLT
5432 #
5433
5434 pgac_args="$pgac_args with_libxslt"
5435
5436
5437 # Check whether --with-libxslt was given.
5438 if test "${with_libxslt+set}" = set; then
5439   withval=$with_libxslt;
5440   case $withval in
5441     yes)
5442
5443 cat >>confdefs.h <<\_ACEOF
5444 #define USE_LIBXSLT 1
5445 _ACEOF
5446
5447       ;;
5448     no)
5449       :
5450       ;;
5451     *)
5452       { { echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5453 echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5454    { (exit 1); exit 1; }; }
5455       ;;
5456   esac
5457
5458 else
5459   with_libxslt=no
5460
5461 fi
5462
5463
5464
5465
5466
5467
5468 #
5469 # tzdata
5470 #
5471
5472 pgac_args="$pgac_args with_system_tzdata"
5473
5474
5475 # Check whether --with-system-tzdata was given.
5476 if test "${with_system_tzdata+set}" = set; then
5477   withval=$with_system_tzdata;
5478   case $withval in
5479     yes)
5480       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5481 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5482    { (exit 1); exit 1; }; }
5483       ;;
5484     no)
5485       { { echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5486 echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5487    { (exit 1); exit 1; }; }
5488       ;;
5489     *)
5490
5491       ;;
5492   esac
5493
5494 fi
5495
5496
5497
5498
5499 #
5500 # Zlib
5501 #
5502
5503 pgac_args="$pgac_args with_zlib"
5504
5505
5506 # Check whether --with-zlib was given.
5507 if test "${with_zlib+set}" = set; then
5508   withval=$with_zlib;
5509   case $withval in
5510     yes)
5511       :
5512       ;;
5513     no)
5514       :
5515       ;;
5516     *)
5517       { { echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
5518 echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
5519    { (exit 1); exit 1; }; }
5520       ;;
5521   esac
5522
5523 else
5524   with_zlib=yes
5525
5526 fi
5527
5528
5529
5530
5531 #
5532 # Elf
5533 #
5534
5535 # Assume system is ELF if it predefines __ELF__ as 1,
5536 # otherwise believe host_os based default.
5537 case $host_os in
5538     freebsd1*|freebsd2*) elf=no;;
5539     freebsd3*|freebsd4*) elf=yes;;
5540 esac
5541
5542
5543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5545 if test "${ac_cv_path_GREP+set}" = set; then
5546   echo $ECHO_N "(cached) $ECHO_C" >&6
5547 else
5548   # Extract the first word of "grep ggrep" to use in msg output
5549 if test -z "$GREP"; then
5550 set dummy grep ggrep; ac_prog_name=$2
5551 if test "${ac_cv_path_GREP+set}" = set; then
5552   echo $ECHO_N "(cached) $ECHO_C" >&6
5553 else
5554   ac_path_GREP_found=false
5555 # Loop through the user's path and test for each of PROGNAME-LIST
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5558 do
5559   IFS=$as_save_IFS
5560   test -z "$as_dir" && as_dir=.
5561   for ac_prog in grep ggrep; do
5562   for ac_exec_ext in '' $ac_executable_extensions; do
5563     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5564     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5565     # Check for GNU ac_path_GREP and select it if it is found.
5566   # Check for GNU $ac_path_GREP
5567 case `"$ac_path_GREP" --version 2>&1` in
5568 *GNU*)
5569   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5570 *)
5571   ac_count=0
5572   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5573   while :
5574   do
5575     cat "conftest.in" "conftest.in" >"conftest.tmp"
5576     mv "conftest.tmp" "conftest.in"
5577     cp "conftest.in" "conftest.nl"
5578     echo 'GREP' >> "conftest.nl"
5579     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5580     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5581     ac_count=`expr $ac_count + 1`
5582     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5583       # Best one so far, save it but keep looking for a better one
5584       ac_cv_path_GREP="$ac_path_GREP"
5585       ac_path_GREP_max=$ac_count
5586     fi
5587     # 10*(2^10) chars as input seems more than enough
5588     test $ac_count -gt 10 && break
5589   done
5590   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5591 esac
5592
5593
5594     $ac_path_GREP_found && break 3
5595   done
5596 done
5597
5598 done
5599 IFS=$as_save_IFS
5600
5601
5602 fi
5603
5604 GREP="$ac_cv_path_GREP"
5605 if test -z "$GREP"; then
5606   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5608    { (exit 1); exit 1; }; }
5609 fi
5610
5611 else
5612   ac_cv_path_GREP=$GREP
5613 fi
5614
5615
5616 fi
5617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5619  GREP="$ac_cv_path_GREP"
5620
5621
5622 { echo "$as_me:$LINENO: checking for egrep" >&5
5623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5624 if test "${ac_cv_path_EGREP+set}" = set; then
5625   echo $ECHO_N "(cached) $ECHO_C" >&6
5626 else
5627   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5628    then ac_cv_path_EGREP="$GREP -E"
5629    else
5630      # Extract the first word of "egrep" to use in msg output
5631 if test -z "$EGREP"; then
5632 set dummy egrep; ac_prog_name=$2
5633 if test "${ac_cv_path_EGREP+set}" = set; then
5634   echo $ECHO_N "(cached) $ECHO_C" >&6
5635 else
5636   ac_path_EGREP_found=false
5637 # Loop through the user's path and test for each of PROGNAME-LIST
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643   for ac_prog in egrep; do
5644   for ac_exec_ext in '' $ac_executable_extensions; do
5645     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5646     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5647     # Check for GNU ac_path_EGREP and select it if it is found.
5648   # Check for GNU $ac_path_EGREP
5649 case `"$ac_path_EGREP" --version 2>&1` in
5650 *GNU*)
5651   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5652 *)
5653   ac_count=0
5654   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5655   while :
5656   do
5657     cat "conftest.in" "conftest.in" >"conftest.tmp"
5658     mv "conftest.tmp" "conftest.in"
5659     cp "conftest.in" "conftest.nl"
5660     echo 'EGREP' >> "conftest.nl"
5661     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5662     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5663     ac_count=`expr $ac_count + 1`
5664     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5665       # Best one so far, save it but keep looking for a better one
5666       ac_cv_path_EGREP="$ac_path_EGREP"
5667       ac_path_EGREP_max=$ac_count
5668     fi
5669     # 10*(2^10) chars as input seems more than enough
5670     test $ac_count -gt 10 && break
5671   done
5672   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5673 esac
5674
5675
5676     $ac_path_EGREP_found && break 3
5677   done
5678 done
5679
5680 done
5681 IFS=$as_save_IFS
5682
5683
5684 fi
5685
5686 EGREP="$ac_cv_path_EGREP"
5687 if test -z "$EGREP"; then
5688   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5690    { (exit 1); exit 1; }; }
5691 fi
5692
5693 else
5694   ac_cv_path_EGREP=$EGREP
5695 fi
5696
5697
5698    fi
5699 fi
5700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5702  EGREP="$ac_cv_path_EGREP"
5703
5704
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 #if __ELF__
5712   yes
5713 #endif
5714
5715 _ACEOF
5716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5717   $EGREP "yes" >/dev/null 2>&1; then
5718   ELF_SYS=true
5719 else
5720   if test "X$elf" = "Xyes" ; then
5721   ELF_SYS=true
5722 else
5723   ELF_SYS=
5724 fi
5725 fi
5726 rm -f conftest*
5727
5728
5729
5730 #
5731 # Assignments
5732 #
5733
5734 CPPFLAGS="$CPPFLAGS $INCLUDES"
5735 LDFLAGS="$LDFLAGS $LIBDIRS"
5736
5737
5738
5739
5740 # Check whether --with-gnu-ld was given.
5741 if test "${with_gnu_ld+set}" = set; then
5742   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5743 else
5744   with_gnu_ld=no
5745 fi
5746
5747 ac_prog=ld
5748 if test "$GCC" = yes; then
5749   # Check if gcc -print-prog-name=ld gives a path.
5750   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5751 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
5752   case $host in
5753   *-*-mingw*)
5754     # gcc leaves a trailing carriage return which upsets mingw
5755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5756   *)
5757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5758   esac
5759   case "$ac_prog" in
5760     # Accept absolute paths.
5761     [\\/]* | [A-Za-z]:[\\/]*)
5762       re_direlt='/[^/][^/]*/\.\./'
5763       # Canonicalize the path of ld
5764       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5765       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5766         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5767       done
5768       test -z "$LD" && LD="$ac_prog"
5769       ;;
5770   "")
5771     # If it fails, then pretend we aren't using GCC.
5772     ac_prog=ld
5773     ;;
5774   *)
5775     # If it is relative, then search for the first ld in PATH.
5776     with_gnu_ld=unknown
5777     ;;
5778   esac
5779 elif test "$with_gnu_ld" = yes; then
5780   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5782 else
5783   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5785 fi
5786 if test "${ac_cv_path_LD+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   if test -z "$LD"; then
5790   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5791   for ac_dir in $PATH; do
5792     test -z "$ac_dir" && ac_dir=.
5793     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5794       ac_cv_path_LD="$ac_dir/$ac_prog"
5795       # Check to see if the program is GNU ld.  I'd rather use --version,
5796       # but apparently some GNU ld's only accept -v.
5797       # Break only if it was the GNU/non-GNU ld that we prefer.
5798       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5799         test "$with_gnu_ld" != no && break
5800       else
5801         test "$with_gnu_ld" != yes && break
5802       fi
5803     fi
5804   done
5805   IFS="$ac_save_ifs"
5806 else
5807   ac_cv_path_LD="$LD" # Let the user override the test with a path.
5808 fi
5809 fi
5810
5811 LD="$ac_cv_path_LD"
5812 if test -n "$LD"; then
5813   { echo "$as_me:$LINENO: result: $LD" >&5
5814 echo "${ECHO_T}$LD" >&6; }
5815 else
5816   { echo "$as_me:$LINENO: result: no" >&5
5817 echo "${ECHO_T}no" >&6; }
5818 fi
5819 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5820 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5821    { (exit 1); exit 1; }; }
5822 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5823 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5824 if test "${ac_cv_prog_gnu_ld+set}" = set; then
5825   echo $ECHO_N "(cached) $ECHO_C" >&6
5826 else
5827   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5828 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5829   ac_cv_prog_gnu_ld=yes
5830 else
5831   ac_cv_prog_gnu_ld=no
5832 fi
5833 fi
5834 { echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
5835 echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6; }
5836 with_gnu_ld=$ac_cv_prog_gnu_ld
5837
5838
5839
5840
5841 case $host_os in sysv5*)
5842   { echo "$as_me:$LINENO: checking whether ld -R works" >&5
5843 echo $ECHO_N "checking whether ld -R works... $ECHO_C" >&6; }
5844 if test "${pgac_cv_prog_ld_R+set}" = set; then
5845   echo $ECHO_N "(cached) $ECHO_C" >&6
5846 else
5847
5848     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
5849     cat >conftest.$ac_ext <<_ACEOF
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855
5856 int
5857 main ()
5858 {
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (ac_try="$ac_link"
5866 case "(($ac_try" in
5867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5868   *) ac_try_echo=$ac_try;;
5869 esac
5870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5871   (eval "$ac_link") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } && {
5878          test -z "$ac_c_werror_flag" ||
5879          test ! -s conftest.err
5880        } && test -s conftest$ac_exeext &&
5881        $as_test_x conftest$ac_exeext; then
5882   pgac_cv_prog_ld_R=yes
5883 else
5884   echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887         pgac_cv_prog_ld_R=no
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5891       conftest$ac_exeext conftest.$ac_ext
5892     LDFLAGS=$pgac_save_LDFLAGS
5893
5894 fi
5895 { echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
5896 echo "${ECHO_T}$pgac_cv_prog_ld_R" >&6; }
5897   ld_R_works=$pgac_cv_prog_ld_R
5898
5899 esac
5900 if test -n "$ac_tool_prefix"; then
5901   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5905 if test "${ac_cv_prog_RANLIB+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   if test -n "$RANLIB"; then
5909   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5910 else
5911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5912 for as_dir in $PATH
5913 do
5914   IFS=$as_save_IFS
5915   test -z "$as_dir" && as_dir=.
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5918     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5919     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5920     break 2
5921   fi
5922 done
5923 done
5924 IFS=$as_save_IFS
5925
5926 fi
5927 fi
5928 RANLIB=$ac_cv_prog_RANLIB
5929 if test -n "$RANLIB"; then
5930   { echo "$as_me:$LINENO: result: $RANLIB" >&5
5931 echo "${ECHO_T}$RANLIB" >&6; }
5932 else
5933   { echo "$as_me:$LINENO: result: no" >&5
5934 echo "${ECHO_T}no" >&6; }
5935 fi
5936
5937
5938 fi
5939 if test -z "$ac_cv_prog_RANLIB"; then
5940   ac_ct_RANLIB=$RANLIB
5941   # Extract the first word of "ranlib", so it can be a program name with args.
5942 set dummy ranlib; ac_word=$2
5943 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5945 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5946   echo $ECHO_N "(cached) $ECHO_C" >&6
5947 else
5948   if test -n "$ac_ct_RANLIB"; then
5949   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5950 else
5951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5952 for as_dir in $PATH
5953 do
5954   IFS=$as_save_IFS
5955   test -z "$as_dir" && as_dir=.
5956   for ac_exec_ext in '' $ac_executable_extensions; do
5957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5958     ac_cv_prog_ac_ct_RANLIB="ranlib"
5959     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960     break 2
5961   fi
5962 done
5963 done
5964 IFS=$as_save_IFS
5965
5966 fi
5967 fi
5968 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5969 if test -n "$ac_ct_RANLIB"; then
5970   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5971 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no" >&5
5974 echo "${ECHO_T}no" >&6; }
5975 fi
5976
5977   if test "x$ac_ct_RANLIB" = x; then
5978     RANLIB=":"
5979   else
5980     case $cross_compiling:$ac_tool_warned in
5981 yes:)
5982 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5983 whose name does not start with the host triplet.  If you think this
5984 configuration is useful to you, please write to autoconf@gnu.org." >&5
5985 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5986 whose name does not start with the host triplet.  If you think this
5987 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990     RANLIB=$ac_ct_RANLIB
5991   fi
5992 else
5993   RANLIB="$ac_cv_prog_RANLIB"
5994 fi
5995
5996
5997   if test -n "$ac_tool_prefix"; then
5998   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}strip; ac_word=$2
6000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6002 if test "${ac_cv_prog_STRIP+set}" = set; then
6003   echo $ECHO_N "(cached) $ECHO_C" >&6
6004 else
6005   if test -n "$STRIP"; then
6006   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 STRIP=$ac_cv_prog_STRIP
6026 if test -n "$STRIP"; then
6027   { echo "$as_me:$LINENO: result: $STRIP" >&5
6028 echo "${ECHO_T}$STRIP" >&6; }
6029 else
6030   { echo "$as_me:$LINENO: result: no" >&5
6031 echo "${ECHO_T}no" >&6; }
6032 fi
6033
6034
6035 fi
6036 if test -z "$ac_cv_prog_STRIP"; then
6037   ac_ct_STRIP=$STRIP
6038   # Extract the first word of "strip", so it can be a program name with args.
6039 set dummy strip; ac_word=$2
6040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6042 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test -n "$ac_ct_STRIP"; then
6046   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_exec_ext in '' $ac_executable_extensions; do
6054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6055     ac_cv_prog_ac_ct_STRIP="strip"
6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6066 if test -n "$ac_ct_STRIP"; then
6067   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6068 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6069 else
6070   { echo "$as_me:$LINENO: result: no" >&5
6071 echo "${ECHO_T}no" >&6; }
6072 fi
6073
6074   if test "x$ac_ct_STRIP" = x; then
6075     STRIP=":"
6076   else
6077     case $cross_compiling:$ac_tool_warned in
6078 yes:)
6079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6080 whose name does not start with the host triplet.  If you think this
6081 configuration is useful to you, please write to autoconf@gnu.org." >&5
6082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6083 whose name does not start with the host triplet.  If you think this
6084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087     STRIP=$ac_ct_STRIP
6088   fi
6089 else
6090   STRIP="$ac_cv_prog_STRIP"
6091 fi
6092
6093
6094   { echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6095 echo $ECHO_N "checking whether it is possible to strip libraries... $ECHO_C" >&6; }
6096   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6097     STRIP_STATIC_LIB="$STRIP -x"
6098     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6099     { echo "$as_me:$LINENO: result: yes" >&5
6100 echo "${ECHO_T}yes" >&6; }
6101   else
6102     STRIP_STATIC_LIB=:
6103     STRIP_SHARED_LIB=:
6104     { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6106   fi
6107
6108
6109
6110
6111 # Extract the first word of "tar", so it can be a program name with args.
6112 set dummy tar; ac_word=$2
6113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6115 if test "${ac_cv_path_TAR+set}" = set; then
6116   echo $ECHO_N "(cached) $ECHO_C" >&6
6117 else
6118   case $TAR in
6119   [\\/]* | ?:[\\/]*)
6120   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6121   ;;
6122   *)
6123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128   for ac_exec_ext in '' $ac_executable_extensions; do
6129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6130     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135 done
6136 IFS=$as_save_IFS
6137
6138   ;;
6139 esac
6140 fi
6141 TAR=$ac_cv_path_TAR
6142 if test -n "$TAR"; then
6143   { echo "$as_me:$LINENO: result: $TAR" >&5
6144 echo "${ECHO_T}$TAR" >&6; }
6145 else
6146   { echo "$as_me:$LINENO: result: no" >&5
6147 echo "${ECHO_T}no" >&6; }
6148 fi
6149
6150
6151 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6152 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6153 LN_S=$as_ln_s
6154 if test "$LN_S" = "ln -s"; then
6155   { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6157 else
6158   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6159 echo "${ECHO_T}no, using $LN_S" >&6; }
6160 fi
6161
6162 for ac_prog in gawk mawk nawk awk
6163 do
6164   # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6168 if test "${ac_cv_prog_AWK+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   if test -n "$AWK"; then
6172   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   test -z "$as_dir" && as_dir=.
6179   for ac_exec_ext in '' $ac_executable_extensions; do
6180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6181     ac_cv_prog_AWK="$ac_prog"
6182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6183     break 2
6184   fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 AWK=$ac_cv_prog_AWK
6192 if test -n "$AWK"; then
6193   { echo "$as_me:$LINENO: result: $AWK" >&5
6194 echo "${ECHO_T}$AWK" >&6; }
6195 else
6196   { echo "$as_me:$LINENO: result: no" >&5
6197 echo "${ECHO_T}no" >&6; }
6198 fi
6199
6200
6201   test -n "$AWK" && break
6202 done
6203
6204
6205 # Let the user override the search
6206 if test -z "$BISON"; then
6207   for ac_prog in bison
6208 do
6209   # Extract the first word of "$ac_prog", so it can be a program name with args.
6210 set dummy $ac_prog; ac_word=$2
6211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6213 if test "${ac_cv_prog_BISON+set}" = set; then
6214   echo $ECHO_N "(cached) $ECHO_C" >&6
6215 else
6216   if test -n "$BISON"; then
6217   ac_cv_prog_BISON="$BISON" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   test -z "$as_dir" && as_dir=.
6224   for ac_exec_ext in '' $ac_executable_extensions; do
6225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226     ac_cv_prog_BISON="$ac_prog"
6227     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6228     break 2
6229   fi
6230 done
6231 done
6232 IFS=$as_save_IFS
6233
6234 fi
6235 fi
6236 BISON=$ac_cv_prog_BISON
6237 if test -n "$BISON"; then
6238   { echo "$as_me:$LINENO: result: $BISON" >&5
6239 echo "${ECHO_T}$BISON" >&6; }
6240 else
6241   { echo "$as_me:$LINENO: result: no" >&5
6242 echo "${ECHO_T}no" >&6; }
6243 fi
6244
6245
6246   test -n "$BISON" && break
6247 done
6248
6249 fi
6250
6251 if test "$BISON"; then
6252   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
6253   { echo "$as_me:$LINENO: using $pgac_bison_version" >&5
6254 echo "$as_me: using $pgac_bison_version" >&6;}
6255   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
6256   then
6257     { echo "$as_me:$LINENO: WARNING:
6258 *** The installed version of Bison is too old to use with PostgreSQL.
6259 *** Bison version 1.875 or later is required." >&5
6260 echo "$as_me: WARNING:
6261 *** The installed version of Bison is too old to use with PostgreSQL.
6262 *** Bison version 1.875 or later is required." >&2;}
6263     BISON=""
6264   fi
6265 fi
6266
6267 if test -z "$BISON"; then
6268   { echo "$as_me:$LINENO: WARNING:
6269 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6270 *** change any of the parser definition files.  You can obtain Bison from
6271 *** a GNU mirror site.  (If you are using the official distribution of
6272 *** PostgreSQL then you do not need to worry about this, because the Bison
6273 *** output is pre-generated.)" >&5
6274 echo "$as_me: WARNING:
6275 *** Without Bison you will not be able to build PostgreSQL from CVS nor
6276 *** change any of the parser definition files.  You can obtain Bison from
6277 *** a GNU mirror site.  (If you are using the official distribution of
6278 *** PostgreSQL then you do not need to worry about this, because the Bison
6279 *** output is pre-generated.)" >&2;}
6280 fi
6281 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
6282
6283
6284 { echo "$as_me:$LINENO: checking for flex" >&5
6285 echo $ECHO_N "checking for flex... $ECHO_C" >&6; }
6286 if test "${pgac_cv_path_flex+set}" = set; then
6287   echo $ECHO_N "(cached) $ECHO_C" >&6
6288 else
6289   # Let the user override the test
6290 if test -n "$FLEX"; then
6291   pgac_cv_path_flex=$FLEX
6292 else
6293   pgac_save_IFS=$IFS
6294   IFS=$PATH_SEPARATOR
6295   for pgac_dir in $PATH; do
6296     IFS=$pgac_save_IFS
6297     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
6298       pgac_dir=`pwd`
6299     fi
6300     for pgac_prog in flex lex; do
6301       pgac_candidate="$pgac_dir/$pgac_prog"
6302       if test -f "$pgac_candidate" \
6303         && $pgac_candidate --version </dev/null >/dev/null 2>&1
6304       then
6305         echo '%%'  > conftest.l
6306         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
6307           if $pgac_candidate --version | grep ' 2\.5\.3$' >/dev/null 2>&1; then
6308             pgac_broken_flex=$pgac_candidate
6309             continue
6310           fi
6311
6312           pgac_cv_path_flex=$pgac_candidate
6313           break 2
6314         fi
6315       fi
6316     done
6317   done
6318   rm -f conftest.l lex.yy.c
6319   : ${pgac_cv_path_flex=no}
6320 fi
6321
6322 fi
6323 { echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
6324 echo "${ECHO_T}$pgac_cv_path_flex" >&6; }
6325 if test x"$pgac_cv_path_flex" = x"no"; then
6326   if test -n "$pgac_broken_flex"; then
6327     { echo "$as_me:$LINENO: WARNING:
6328 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6329 *** should get version 2.5.4 or later." >&5
6330 echo "$as_me: WARNING:
6331 *** The Flex version 2.5.3 you have at $pgac_broken_flex contains a bug. You
6332 *** should get version 2.5.4 or later." >&2;}
6333   fi
6334
6335   { echo "$as_me:$LINENO: WARNING:
6336 *** Without Flex you will not be able to build PostgreSQL from CVS or
6337 *** change any of the scanner definition files.  You can obtain Flex from
6338 *** a GNU mirror site.  (If you are using the official distribution of
6339 *** PostgreSQL then you do not need to worry about this because the Flex
6340 *** output is pre-generated.)" >&5
6341 echo "$as_me: WARNING:
6342 *** Without Flex you will not be able to build PostgreSQL from CVS or
6343 *** change any of the scanner definition files.  You can obtain Flex from
6344 *** a GNU mirror site.  (If you are using the official distribution of
6345 *** PostgreSQL then you do not need to worry about this because the Flex
6346 *** output is pre-generated.)" >&2;}
6347
6348   FLEX=
6349 else
6350   FLEX=$pgac_cv_path_flex
6351   pgac_flex_version=`$FLEX -V 2>/dev/null`
6352   { echo "$as_me:$LINENO: using $pgac_flex_version" >&5
6353 echo "$as_me: using $pgac_flex_version" >&6;}
6354 fi
6355
6356
6357
6358
6359
6360 # Extract the first word of "perl", so it can be a program name with args.
6361 set dummy perl; ac_word=$2
6362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6364 if test "${ac_cv_path_PERL+set}" = set; then
6365   echo $ECHO_N "(cached) $ECHO_C" >&6
6366 else
6367   case $PERL in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377   for ac_exec_ext in '' $ac_executable_extensions; do
6378   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6380     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384 done
6385 IFS=$as_save_IFS
6386
6387   ;;
6388 esac
6389 fi
6390 PERL=$ac_cv_path_PERL
6391 if test -n "$PERL"; then
6392   { echo "$as_me:$LINENO: result: $PERL" >&5
6393 echo "${ECHO_T}$PERL" >&6; }
6394 else
6395   { echo "$as_me:$LINENO: result: no" >&5
6396 echo "${ECHO_T}no" >&6; }
6397 fi
6398
6399
6400 if test "$with_perl" = yes; then
6401
6402 { echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
6403 echo $ECHO_N "checking for Perl archlibexp... $ECHO_C" >&6; }
6404 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
6405 { echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
6406 echo "${ECHO_T}$perl_archlibexp" >&6; }
6407 { echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
6408 echo $ECHO_N "checking for Perl privlibexp... $ECHO_C" >&6; }
6409 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
6410 { echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
6411 echo "${ECHO_T}$perl_privlibexp" >&6; }
6412 { echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
6413 echo $ECHO_N "checking for Perl useshrplib... $ECHO_C" >&6; }
6414 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
6415 { echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
6416 echo "${ECHO_T}$perl_useshrplib" >&6; }
6417
6418 { echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
6419 echo $ECHO_N "checking for flags to link embedded Perl... $ECHO_C" >&6; }
6420 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
6421 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
6422 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed "s/^X//;s%$pgac_tmp2%%"`
6423 if test -z "$perl_embed_ldflags" ; then
6424         { echo "$as_me:$LINENO: result: no" >&5
6425 echo "${ECHO_T}no" >&6; }
6426         { { echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
6427 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6428 installed." >&5
6429 echo "$as_me: error: could not determine flags for linking embedded Perl.
6430 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
6431 installed." >&2;}
6432    { (exit 1); exit 1; }; }
6433 else
6434         { echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
6435 echo "${ECHO_T}$perl_embed_ldflags" >&6; }
6436 fi
6437
6438 fi
6439
6440 if test "$with_python" = yes; then
6441   # Extract the first word of "python", so it can be a program name with args.
6442 set dummy python; ac_word=$2
6443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6445 if test "${ac_cv_path_PYTHON+set}" = set; then
6446   echo $ECHO_N "(cached) $ECHO_C" >&6
6447 else
6448   case $PYTHON in
6449   [\\/]* | ?:[\\/]*)
6450   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
6451   ;;
6452   *)
6453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458   for ac_exec_ext in '' $ac_executable_extensions; do
6459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
6461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465 done
6466 IFS=$as_save_IFS
6467
6468   ;;
6469 esac
6470 fi
6471 PYTHON=$ac_cv_path_PYTHON
6472 if test -n "$PYTHON"; then
6473   { echo "$as_me:$LINENO: result: $PYTHON" >&5
6474 echo "${ECHO_T}$PYTHON" >&6; }
6475 else
6476   { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6478 fi
6479
6480
6481 if test x"$PYTHON" = x""; then
6482   { { echo "$as_me:$LINENO: error: Python not found" >&5
6483 echo "$as_me: error: Python not found" >&2;}
6484    { (exit 1); exit 1; }; }
6485 fi
6486
6487
6488 { echo "$as_me:$LINENO: checking for Python distutils module" >&5
6489 echo $ECHO_N "checking for Python distutils module... $ECHO_C" >&6; }
6490 if "${PYTHON}" 2>&- -c 'import distutils'
6491 then
6492     { echo "$as_me:$LINENO: result: yes" >&5
6493 echo "${ECHO_T}yes" >&6; }
6494 else
6495     { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6497     { { echo "$as_me:$LINENO: error: distutils module not found" >&5
6498 echo "$as_me: error: distutils module not found" >&2;}
6499    { (exit 1); exit 1; }; }
6500 fi
6501 { echo "$as_me:$LINENO: checking Python configuration directory" >&5
6502 echo $ECHO_N "checking Python configuration directory... $ECHO_C" >&6; }
6503 python_version=`${PYTHON} -c "import sys; print sys.version[:3]"`
6504 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')"`
6505 python_includespec=`${PYTHON} -c "import distutils.sysconfig; print '-I'+distutils.sysconfig.get_python_inc()"`
6506
6507 # This should be enough of a message.
6508 { echo "$as_me:$LINENO: result: $python_configdir" >&5
6509 echo "${ECHO_T}$python_configdir" >&6; }
6510
6511
6512 { echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
6513 echo $ECHO_N "checking how to link an embedded Python application... $ECHO_C" >&6; }
6514
6515 python_libdir=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR')))"`
6516 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY')))"`
6517 python_so=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('SO')))"`
6518 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
6519
6520 if test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
6521 then
6522         # New way: use the official shared library
6523         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
6524         python_libspec="-L${python_libdir} -l${ldlibrary}"
6525 else
6526         # Old way: use libpython from python_configdir
6527         python_libdir="${python_configdir}"
6528         python_libspec="-L${python_libdir} -lpython${python_version}"
6529 fi
6530
6531 python_additional_libs=`${PYTHON} -c "import distutils.sysconfig,string; print string.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','LOCALMODLIBS','BASEMODLIBS')))"`
6532
6533 { echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
6534 echo "${ECHO_T}${python_libspec} ${python_additional_libs}" >&6; }
6535
6536
6537 # threaded python is not supported on bsd's
6538 { echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
6539 echo $ECHO_N "checking whether Python is compiled with thread support... $ECHO_C" >&6; }
6540 pythreads=`${PYTHON} -c "import sys; print int('thread' in sys.builtin_module_names)"`
6541 if test "$pythreads" = "1"; then
6542   { echo "$as_me:$LINENO: result: yes" >&5
6543 echo "${ECHO_T}yes" >&6; }
6544   case $host_os in
6545   openbsd*|freebsd*)
6546     { { echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
6547 echo "$as_me: error: threaded Python not supported on this platform" >&2;}
6548    { (exit 1); exit 1; }; }
6549     ;;
6550   esac
6551 else
6552   { echo "$as_me:$LINENO: result: no" >&5
6553 echo "${ECHO_T}no" >&6; }
6554 fi
6555
6556
6557 fi
6558
6559 # Supply a numeric version string for use by 3rd party add-ons
6560 # awk -F is a regex on some platforms, and not on others, so make "." a tab
6561 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
6562 tr '.' '        ' |
6563 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
6564
6565 cat >>confdefs.h <<_ACEOF
6566 #define PG_VERSION_NUM $PG_VERSION_NUM
6567 _ACEOF
6568
6569
6570 ##
6571 ## Libraries
6572 ##
6573 ## Most libraries are included only if they demonstrably provide a function
6574 ## we need, but libm is an exception: always include it, because there are
6575 ## too many compilers that play cute optimization games that will break
6576 ## probes for standard functions such as pow().
6577 ##
6578
6579
6580 { echo "$as_me:$LINENO: checking for main in -lm" >&5
6581 echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
6582 if test "${ac_cv_lib_m_main+set}" = set; then
6583   echo $ECHO_N "(cached) $ECHO_C" >&6
6584 else
6585   ac_check_lib_save_LIBS=$LIBS
6586 LIBS="-lm  $LIBS"
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593
6594
6595 int
6596 main ()
6597 {
6598 return main ();
6599   ;
6600   return 0;
6601 }
6602 _ACEOF
6603 rm -f conftest.$ac_objext conftest$ac_exeext
6604 if { (ac_try="$ac_link"
6605 case "(($ac_try" in
6606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607   *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610   (eval "$ac_link") 2>conftest.er1
6611   ac_status=$?
6612   grep -v '^ *+' conftest.er1 >conftest.err
6613   rm -f conftest.er1
6614   cat conftest.err >&5
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); } && {
6617          test -z "$ac_c_werror_flag" ||
6618          test ! -s conftest.err
6619        } && test -s conftest$ac_exeext &&
6620        $as_test_x conftest$ac_exeext; then
6621   ac_cv_lib_m_main=yes
6622 else
6623   echo "$as_me: failed program was:" >&5
6624 sed 's/^/| /' conftest.$ac_ext >&5
6625
6626         ac_cv_lib_m_main=no
6627 fi
6628
6629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6630       conftest$ac_exeext conftest.$ac_ext
6631 LIBS=$ac_check_lib_save_LIBS
6632 fi
6633 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
6634 echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
6635 if test $ac_cv_lib_m_main = yes; then
6636   cat >>confdefs.h <<_ACEOF
6637 #define HAVE_LIBM 1
6638 _ACEOF
6639
6640   LIBS="-lm $LIBS"
6641
6642 fi
6643
6644 { echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
6645 echo $ECHO_N "checking for library containing setproctitle... $ECHO_C" >&6; }
6646 if test "${ac_cv_search_setproctitle+set}" = set; then
6647   echo $ECHO_N "(cached) $ECHO_C" >&6
6648 else
6649   ac_func_search_save_LIBS=$LIBS
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h.  */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h.  */
6656
6657 /* Override any GCC internal prototype to avoid an error.
6658    Use char because int might match the return type of a GCC
6659    builtin and then its argument prototype would still apply.  */
6660 #ifdef __cplusplus
6661 extern "C"
6662 #endif
6663 char setproctitle ();
6664 int
6665 main ()
6666 {
6667 return setproctitle ();
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 for ac_lib in '' util; do
6673   if test -z "$ac_lib"; then
6674     ac_res="none required"
6675   else
6676     ac_res=-l$ac_lib
6677     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6678   fi
6679   rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6681 case "(($ac_try" in
6682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683   *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686   (eval "$ac_link") 2>conftest.er1
6687   ac_status=$?
6688   grep -v '^ *+' conftest.er1 >conftest.err
6689   rm -f conftest.er1
6690   cat conftest.err >&5
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); } && {
6693          test -z "$ac_c_werror_flag" ||
6694          test ! -s conftest.err
6695        } && test -s conftest$ac_exeext &&
6696        $as_test_x conftest$ac_exeext; then
6697   ac_cv_search_setproctitle=$ac_res
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702
6703 fi
6704
6705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6706       conftest$ac_exeext
6707   if test "${ac_cv_search_setproctitle+set}" = set; then
6708   break
6709 fi
6710 done
6711 if test "${ac_cv_search_setproctitle+set}" = set; then
6712   :
6713 else
6714   ac_cv_search_setproctitle=no
6715 fi
6716 rm conftest.$ac_ext
6717 LIBS=$ac_func_search_save_LIBS
6718 fi
6719 { echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
6720 echo "${ECHO_T}$ac_cv_search_setproctitle" >&6; }
6721 ac_res=$ac_cv_search_setproctitle
6722 if test "$ac_res" != no; then
6723   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6724
6725 fi
6726
6727 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
6728 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
6729 if test "${ac_cv_search_dlopen+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732   ac_func_search_save_LIBS=$LIBS
6733 cat >conftest.$ac_ext <<_ACEOF
6734 /* confdefs.h.  */
6735 _ACEOF
6736 cat confdefs.h >>conftest.$ac_ext
6737 cat >>conftest.$ac_ext <<_ACEOF
6738 /* end confdefs.h.  */
6739
6740 /* Override any GCC internal prototype to avoid an error.
6741    Use char because int might match the return type of a GCC
6742    builtin and then its argument prototype would still apply.  */
6743 #ifdef __cplusplus
6744 extern "C"
6745 #endif
6746 char dlopen ();
6747 int
6748 main ()
6749 {
6750 return dlopen ();
6751   ;
6752   return 0;
6753 }
6754 _ACEOF
6755 for ac_lib in '' dl; do
6756   if test -z "$ac_lib"; then
6757     ac_res="none required"
6758   else
6759     ac_res=-l$ac_lib
6760     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6761   fi
6762   rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6764 case "(($ac_try" in
6765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766   *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769   (eval "$ac_link") 2>conftest.er1
6770   ac_status=$?
6771   grep -v '^ *+' conftest.er1 >conftest.err
6772   rm -f conftest.er1
6773   cat conftest.err >&5
6774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775   (exit $ac_status); } && {
6776          test -z "$ac_c_werror_flag" ||
6777          test ! -s conftest.err
6778        } && test -s conftest$ac_exeext &&
6779        $as_test_x conftest$ac_exeext; then
6780   ac_cv_search_dlopen=$ac_res
6781 else
6782   echo "$as_me: failed program was:" >&5
6783 sed 's/^/| /' conftest.$ac_ext >&5
6784
6785
6786 fi
6787
6788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6789       conftest$ac_exeext
6790   if test "${ac_cv_search_dlopen+set}" = set; then
6791   break
6792 fi
6793 done
6794 if test "${ac_cv_search_dlopen+set}" = set; then
6795   :
6796 else
6797   ac_cv_search_dlopen=no
6798 fi
6799 rm conftest.$ac_ext
6800 LIBS=$ac_func_search_save_LIBS
6801 fi
6802 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
6803 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
6804 ac_res=$ac_cv_search_dlopen
6805 if test "$ac_res" != no; then
6806   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6807
6808 fi
6809
6810 { echo "$as_me:$LINENO: checking for library containing socket" >&5
6811 echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
6812 if test "${ac_cv_search_socket+set}" = set; then
6813   echo $ECHO_N "(cached) $ECHO_C" >&6
6814 else
6815   ac_func_search_save_LIBS=$LIBS
6816 cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h.  */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h.  */
6822
6823 /* Override any GCC internal prototype to avoid an error.
6824    Use char because int might match the return type of a GCC
6825    builtin and then its argument prototype would still apply.  */
6826 #ifdef __cplusplus
6827 extern "C"
6828 #endif
6829 char socket ();
6830 int
6831 main ()
6832 {
6833 return socket ();
6834   ;
6835   return 0;
6836 }
6837 _ACEOF
6838 for ac_lib in '' socket wsock32; do
6839   if test -z "$ac_lib"; then
6840     ac_res="none required"
6841   else
6842     ac_res=-l$ac_lib
6843     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6844   fi
6845   rm -f conftest.$ac_objext conftest$ac_exeext
6846 if { (ac_try="$ac_link"
6847 case "(($ac_try" in
6848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849   *) ac_try_echo=$ac_try;;
6850 esac
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852   (eval "$ac_link") 2>conftest.er1
6853   ac_status=$?
6854   grep -v '^ *+' conftest.er1 >conftest.err
6855   rm -f conftest.er1
6856   cat conftest.err >&5
6857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); } && {
6859          test -z "$ac_c_werror_flag" ||
6860          test ! -s conftest.err
6861        } && test -s conftest$ac_exeext &&
6862        $as_test_x conftest$ac_exeext; then
6863   ac_cv_search_socket=$ac_res
6864 else
6865   echo "$as_me: failed program was:" >&5
6866 sed 's/^/| /' conftest.$ac_ext >&5
6867
6868
6869 fi
6870
6871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6872       conftest$ac_exeext
6873   if test "${ac_cv_search_socket+set}" = set; then
6874   break
6875 fi
6876 done
6877 if test "${ac_cv_search_socket+set}" = set; then
6878   :
6879 else
6880   ac_cv_search_socket=no
6881 fi
6882 rm conftest.$ac_ext
6883 LIBS=$ac_func_search_save_LIBS
6884 fi
6885 { echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
6886 echo "${ECHO_T}$ac_cv_search_socket" >&6; }
6887 ac_res=$ac_cv_search_socket
6888 if test "$ac_res" != no; then
6889   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6890
6891 fi
6892
6893 { echo "$as_me:$LINENO: checking for library containing shl_load" >&5
6894 echo $ECHO_N "checking for library containing shl_load... $ECHO_C" >&6; }
6895 if test "${ac_cv_search_shl_load+set}" = set; then
6896   echo $ECHO_N "(cached) $ECHO_C" >&6
6897 else
6898   ac_func_search_save_LIBS=$LIBS
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h.  */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h.  */
6905
6906 /* Override any GCC internal prototype to avoid an error.
6907    Use char because int might match the return type of a GCC
6908    builtin and then its argument prototype would still apply.  */
6909 #ifdef __cplusplus
6910 extern "C"
6911 #endif
6912 char shl_load ();
6913 int
6914 main ()
6915 {
6916 return shl_load ();
6917   ;
6918   return 0;
6919 }
6920 _ACEOF
6921 for ac_lib in '' dld; do
6922   if test -z "$ac_lib"; then
6923     ac_res="none required"
6924   else
6925     ac_res=-l$ac_lib
6926     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6927   fi
6928   rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6930 case "(($ac_try" in
6931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932   *) ac_try_echo=$ac_try;;
6933 esac
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935   (eval "$ac_link") 2>conftest.er1
6936   ac_status=$?
6937   grep -v '^ *+' conftest.er1 >conftest.err
6938   rm -f conftest.er1
6939   cat conftest.err >&5
6940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941   (exit $ac_status); } && {
6942          test -z "$ac_c_werror_flag" ||
6943          test ! -s conftest.err
6944        } && test -s conftest$ac_exeext &&
6945        $as_test_x conftest$ac_exeext; then
6946   ac_cv_search_shl_load=$ac_res
6947 else
6948   echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6950
6951
6952 fi
6953
6954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6955       conftest$ac_exeext
6956   if test "${ac_cv_search_shl_load+set}" = set; then
6957   break
6958 fi
6959 done
6960 if test "${ac_cv_search_shl_load+set}" = set; then
6961   :
6962 else
6963   ac_cv_search_shl_load=no
6964 fi
6965 rm conftest.$ac_ext
6966 LIBS=$ac_func_search_save_LIBS
6967 fi
6968 { echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
6969 echo "${ECHO_T}$ac_cv_search_shl_load" >&6; }
6970 ac_res=$ac_cv_search_shl_load
6971 if test "$ac_res" != no; then
6972   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6973
6974 fi
6975
6976 # We only use libld in port/dynloader/aix.c
6977 case $host_os in
6978      aix*)
6979         { echo "$as_me:$LINENO: checking for library containing ldopen" >&5
6980 echo $ECHO_N "checking for library containing ldopen... $ECHO_C" >&6; }
6981 if test "${ac_cv_search_ldopen+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984   ac_func_search_save_LIBS=$LIBS
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991
6992 /* Override any GCC internal prototype to avoid an error.
6993    Use char because int might match the return type of a GCC
6994    builtin and then its argument prototype would still apply.  */
6995 #ifdef __cplusplus
6996 extern "C"
6997 #endif
6998 char ldopen ();
6999 int
7000 main ()
7001 {
7002 return ldopen ();
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 for ac_lib in '' ld; do
7008   if test -z "$ac_lib"; then
7009     ac_res="none required"
7010   else
7011     ac_res=-l$ac_lib
7012     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7013   fi
7014   rm -f conftest.$ac_objext conftest$ac_exeext
7015 if { (ac_try="$ac_link"
7016 case "(($ac_try" in
7017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018   *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021   (eval "$ac_link") 2>conftest.er1
7022   ac_status=$?
7023   grep -v '^ *+' conftest.er1 >conftest.err
7024   rm -f conftest.er1
7025   cat conftest.err >&5
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); } && {
7028          test -z "$ac_c_werror_flag" ||
7029          test ! -s conftest.err
7030        } && test -s conftest$ac_exeext &&
7031        $as_test_x conftest$ac_exeext; then
7032   ac_cv_search_ldopen=$ac_res
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037
7038 fi
7039
7040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041       conftest$ac_exeext
7042   if test "${ac_cv_search_ldopen+set}" = set; then
7043   break
7044 fi
7045 done
7046 if test "${ac_cv_search_ldopen+set}" = set; then
7047   :
7048 else
7049   ac_cv_search_ldopen=no
7050 fi
7051 rm conftest.$ac_ext
7052 LIBS=$ac_func_search_save_LIBS
7053 fi
7054 { echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
7055 echo "${ECHO_T}$ac_cv_search_ldopen" >&6; }
7056 ac_res=$ac_cv_search_ldopen
7057 if test "$ac_res" != no; then
7058   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7059
7060 fi
7061
7062         ;;
7063 esac
7064 { echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
7065 echo $ECHO_N "checking for library containing getopt_long... $ECHO_C" >&6; }
7066 if test "${ac_cv_search_getopt_long+set}" = set; then
7067   echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069   ac_func_search_save_LIBS=$LIBS
7070 cat >conftest.$ac_ext <<_ACEOF
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076
7077 /* Override any GCC internal prototype to avoid an error.
7078    Use char because int might match the return type of a GCC
7079    builtin and then its argument prototype would still apply.  */
7080 #ifdef __cplusplus
7081 extern "C"
7082 #endif
7083 char getopt_long ();
7084 int
7085 main ()
7086 {
7087 return getopt_long ();
7088   ;
7089   return 0;
7090 }
7091 _ACEOF
7092 for ac_lib in '' getopt gnugetopt; do
7093   if test -z "$ac_lib"; then
7094     ac_res="none required"
7095   else
7096     ac_res=-l$ac_lib
7097     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7098   fi
7099   rm -f conftest.$ac_objext conftest$ac_exeext
7100 if { (ac_try="$ac_link"
7101 case "(($ac_try" in
7102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7103   *) ac_try_echo=$ac_try;;
7104 esac
7105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7106   (eval "$ac_link") 2>conftest.er1
7107   ac_status=$?
7108   grep -v '^ *+' conftest.er1 >conftest.err
7109   rm -f conftest.er1
7110   cat conftest.err >&5
7111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112   (exit $ac_status); } && {
7113          test -z "$ac_c_werror_flag" ||
7114          test ! -s conftest.err
7115        } && test -s conftest$ac_exeext &&
7116        $as_test_x conftest$ac_exeext; then
7117   ac_cv_search_getopt_long=$ac_res
7118 else
7119   echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.$ac_ext >&5
7121
7122
7123 fi
7124
7125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7126       conftest$ac_exeext
7127   if test "${ac_cv_search_getopt_long+set}" = set; then
7128   break
7129 fi
7130 done
7131 if test "${ac_cv_search_getopt_long+set}" = set; then
7132   :
7133 else
7134   ac_cv_search_getopt_long=no
7135 fi
7136 rm conftest.$ac_ext
7137 LIBS=$ac_func_search_save_LIBS
7138 fi
7139 { echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
7140 echo "${ECHO_T}$ac_cv_search_getopt_long" >&6; }
7141 ac_res=$ac_cv_search_getopt_long
7142 if test "$ac_res" != no; then
7143   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7144
7145 fi
7146
7147 { echo "$as_me:$LINENO: checking for library containing crypt" >&5
7148 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
7149 if test "${ac_cv_search_crypt+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   ac_func_search_save_LIBS=$LIBS
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h.  */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h.  */
7159
7160 /* Override any GCC internal prototype to avoid an error.
7161    Use char because int might match the return type of a GCC
7162    builtin and then its argument prototype would still apply.  */
7163 #ifdef __cplusplus
7164 extern "C"
7165 #endif
7166 char crypt ();
7167 int
7168 main ()
7169 {
7170 return crypt ();
7171   ;
7172   return 0;
7173 }
7174 _ACEOF
7175 for ac_lib in '' crypt; do
7176   if test -z "$ac_lib"; then
7177     ac_res="none required"
7178   else
7179     ac_res=-l$ac_lib
7180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7181   fi
7182   rm -f conftest.$ac_objext conftest$ac_exeext
7183 if { (ac_try="$ac_link"
7184 case "(($ac_try" in
7185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186   *) ac_try_echo=$ac_try;;
7187 esac
7188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7189   (eval "$ac_link") 2>conftest.er1
7190   ac_status=$?
7191   grep -v '^ *+' conftest.er1 >conftest.err
7192   rm -f conftest.er1
7193   cat conftest.err >&5
7194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195   (exit $ac_status); } && {
7196          test -z "$ac_c_werror_flag" ||
7197          test ! -s conftest.err
7198        } && test -s conftest$ac_exeext &&
7199        $as_test_x conftest$ac_exeext; then
7200   ac_cv_search_crypt=$ac_res
7201 else
7202   echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.$ac_ext >&5
7204
7205
7206 fi
7207
7208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7209       conftest$ac_exeext
7210   if test "${ac_cv_search_crypt+set}" = set; then
7211   break
7212 fi
7213 done
7214 if test "${ac_cv_search_crypt+set}" = set; then
7215   :
7216 else
7217   ac_cv_search_crypt=no
7218 fi
7219 rm conftest.$ac_ext
7220 LIBS=$ac_func_search_save_LIBS
7221 fi
7222 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
7223 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
7224 ac_res=$ac_cv_search_crypt
7225 if test "$ac_res" != no; then
7226   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7227
7228 fi
7229
7230 # Solaris:
7231 { echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
7232 echo $ECHO_N "checking for library containing fdatasync... $ECHO_C" >&6; }
7233 if test "${ac_cv_search_fdatasync+set}" = set; then
7234   echo $ECHO_N "(cached) $ECHO_C" >&6
7235 else
7236   ac_func_search_save_LIBS=$LIBS
7237 cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243
7244 /* Override any GCC internal prototype to avoid an error.
7245    Use char because int might match the return type of a GCC
7246    builtin and then its argument prototype would still apply.  */
7247 #ifdef __cplusplus
7248 extern "C"
7249 #endif
7250 char fdatasync ();
7251 int
7252 main ()
7253 {
7254 return fdatasync ();
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 for ac_lib in '' rt posix4; do
7260   if test -z "$ac_lib"; then
7261     ac_res="none required"
7262   else
7263     ac_res=-l$ac_lib
7264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7265   fi
7266   rm -f conftest.$ac_objext conftest$ac_exeext
7267 if { (ac_try="$ac_link"
7268 case "(($ac_try" in
7269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270   *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273   (eval "$ac_link") 2>conftest.er1
7274   ac_status=$?
7275   grep -v '^ *+' conftest.er1 >conftest.err
7276   rm -f conftest.er1
7277   cat conftest.err >&5
7278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279   (exit $ac_status); } && {
7280          test -z "$ac_c_werror_flag" ||
7281          test ! -s conftest.err
7282        } && test -s conftest$ac_exeext &&
7283        $as_test_x conftest$ac_exeext; then
7284   ac_cv_search_fdatasync=$ac_res
7285 else
7286   echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289
7290 fi
7291
7292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7293       conftest$ac_exeext
7294   if test "${ac_cv_search_fdatasync+set}" = set; then
7295   break
7296 fi
7297 done
7298 if test "${ac_cv_search_fdatasync+set}" = set; then
7299   :
7300 else
7301   ac_cv_search_fdatasync=no
7302 fi
7303 rm conftest.$ac_ext
7304 LIBS=$ac_func_search_save_LIBS
7305 fi
7306 { echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
7307 echo "${ECHO_T}$ac_cv_search_fdatasync" >&6; }
7308 ac_res=$ac_cv_search_fdatasync
7309 if test "$ac_res" != no; then
7310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7311
7312 fi
7313
7314 # Cygwin:
7315 { echo "$as_me:$LINENO: checking for library containing shmget" >&5
7316 echo $ECHO_N "checking for library containing shmget... $ECHO_C" >&6; }
7317 if test "${ac_cv_search_shmget+set}" = set; then
7318   echo $ECHO_N "(cached) $ECHO_C" >&6
7319 else
7320   ac_func_search_save_LIBS=$LIBS
7321 cat >conftest.$ac_ext <<_ACEOF
7322 /* confdefs.h.  */
7323 _ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h.  */
7327
7328 /* Override any GCC internal prototype to avoid an error.
7329    Use char because int might match the return type of a GCC
7330    builtin and then its argument prototype would still apply.  */
7331 #ifdef __cplusplus
7332 extern "C"
7333 #endif
7334 char shmget ();
7335 int
7336 main ()
7337 {
7338 return shmget ();
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 for ac_lib in '' cygipc; do
7344   if test -z "$ac_lib"; then
7345     ac_res="none required"
7346   else
7347     ac_res=-l$ac_lib
7348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7349   fi
7350   rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357   (eval "$ac_link") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest$ac_exeext &&
7367        $as_test_x conftest$ac_exeext; then
7368   ac_cv_search_shmget=$ac_res
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373
7374 fi
7375
7376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7377       conftest$ac_exeext
7378   if test "${ac_cv_search_shmget+set}" = set; then
7379   break
7380 fi
7381 done
7382 if test "${ac_cv_search_shmget+set}" = set; then
7383   :
7384 else
7385   ac_cv_search_shmget=no
7386 fi
7387 rm conftest.$ac_ext
7388 LIBS=$ac_func_search_save_LIBS
7389 fi
7390 { echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
7391 echo "${ECHO_T}$ac_cv_search_shmget" >&6; }
7392 ac_res=$ac_cv_search_shmget
7393 if test "$ac_res" != no; then
7394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7395
7396 fi
7397
7398
7399 if test "$with_readline" = yes; then
7400
7401
7402 if test "${pgac_cv_check_readline+set}" = set; then
7403   echo $ECHO_N "(cached) $ECHO_C" >&6
7404 else
7405   pgac_cv_check_readline=no
7406 pgac_save_LIBS=$LIBS
7407 if test x"$with_libedit_preferred" != x"yes"
7408 then    READLINE_ORDER="-lreadline -ledit"
7409 else    READLINE_ORDER="-ledit -lreadline"
7410 fi
7411 for pgac_rllib in $READLINE_ORDER ; do
7412   { echo "$as_me:$LINENO: checking for ${pgac_rllib}" >&5
7413 echo $ECHO_N "checking for ${pgac_rllib}... $ECHO_C" >&6; }
7414   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
7415     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
7416     cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422
7423 /* Override any GCC internal prototype to avoid an error.
7424    Use char because int might match the return type of a GCC
7425    builtin and then its argument prototype would still apply.  */
7426 #ifdef __cplusplus
7427 extern "C"
7428 #endif
7429 char readline ();
7430 int
7431 main ()
7432 {
7433 return readline ();
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext conftest$ac_exeext
7439 if { (ac_try="$ac_link"
7440 case "(($ac_try" in
7441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442   *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445   (eval "$ac_link") 2>conftest.er1
7446   ac_status=$?
7447   grep -v '^ *+' conftest.er1 >conftest.err
7448   rm -f conftest.er1
7449   cat conftest.err >&5
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } && {
7452          test -z "$ac_c_werror_flag" ||
7453          test ! -s conftest.err
7454        } && test -s conftest$ac_exeext &&
7455        $as_test_x conftest$ac_exeext; then
7456
7457       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
7458       # recognize dependent libraries; assume curses is needed if we didn't
7459       # find any dependency.
7460       case $host_os in
7461         netbsd* | openbsd* | irix*)
7462           if test x"$pgac_lib" = x"" ; then
7463             pgac_lib=" -lcurses"
7464           fi ;;
7465       esac
7466
7467       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
7468       break
7469
7470 else
7471   echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474
7475 fi
7476
7477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7478       conftest$ac_exeext conftest.$ac_ext
7479   done
7480   if test "$pgac_cv_check_readline" != no ; then
7481     { echo "$as_me:$LINENO: result: yes ($pgac_cv_check_readline)" >&5
7482 echo "${ECHO_T}yes ($pgac_cv_check_readline)" >&6; }
7483     break
7484   else
7485     { echo "$as_me:$LINENO: result: no" >&5
7486 echo "${ECHO_T}no" >&6; }
7487   fi
7488 done
7489 LIBS=$pgac_save_LIBS
7490
7491 fi
7492
7493 if test "$pgac_cv_check_readline" != no ; then
7494   LIBS="$pgac_cv_check_readline $LIBS"
7495
7496 cat >>confdefs.h <<\_ACEOF
7497 #define HAVE_LIBREADLINE 1
7498 _ACEOF
7499
7500 fi
7501
7502
7503   if test x"$pgac_cv_check_readline" = x"no"; then
7504     { { echo "$as_me:$LINENO: error: readline library not found
7505 If you have readline already installed, see config.log for details on the
7506 failure.  It is possible the compiler isn't looking in the proper directory.
7507 Use --without-readline to disable readline support." >&5
7508 echo "$as_me: error: readline library not found
7509 If you have readline already installed, see config.log for details on the
7510 failure.  It is possible the compiler isn't looking in the proper directory.
7511 Use --without-readline to disable readline support." >&2;}
7512    { (exit 1); exit 1; }; }
7513   fi
7514 fi
7515
7516 if test "$with_zlib" = yes; then
7517
7518 { echo "$as_me:$LINENO: checking for inflate in -lz" >&5
7519 echo $ECHO_N "checking for inflate in -lz... $ECHO_C" >&6; }
7520 if test "${ac_cv_lib_z_inflate+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   ac_check_lib_save_LIBS=$LIBS
7524 LIBS="-lz  $LIBS"
7525 cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h.  */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h.  */
7531
7532 /* Override any GCC internal prototype to avoid an error.
7533    Use char because int might match the return type of a GCC
7534    builtin and then its argument prototype would still apply.  */
7535 #ifdef __cplusplus
7536 extern "C"
7537 #endif
7538 char inflate ();
7539 int
7540 main ()
7541 {
7542 return inflate ();
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (ac_try="$ac_link"
7549 case "(($ac_try" in
7550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551   *) ac_try_echo=$ac_try;;
7552 esac
7553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7554   (eval "$ac_link") 2>conftest.er1
7555   ac_status=$?
7556   grep -v '^ *+' conftest.er1 >conftest.err
7557   rm -f conftest.er1
7558   cat conftest.err >&5
7559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560   (exit $ac_status); } && {
7561          test -z "$ac_c_werror_flag" ||
7562          test ! -s conftest.err
7563        } && test -s conftest$ac_exeext &&
7564        $as_test_x conftest$ac_exeext; then
7565   ac_cv_lib_z_inflate=yes
7566 else
7567   echo "$as_me: failed program was:" >&5
7568 sed 's/^/| /' conftest.$ac_ext >&5
7569
7570         ac_cv_lib_z_inflate=no
7571 fi
7572
7573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7574       conftest$ac_exeext conftest.$ac_ext
7575 LIBS=$ac_check_lib_save_LIBS
7576 fi
7577 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
7578 echo "${ECHO_T}$ac_cv_lib_z_inflate" >&6; }
7579 if test $ac_cv_lib_z_inflate = yes; then
7580   cat >>confdefs.h <<_ACEOF
7581 #define HAVE_LIBZ 1
7582 _ACEOF
7583
7584   LIBS="-lz $LIBS"
7585
7586 else
7587   { { echo "$as_me:$LINENO: error: zlib library not found
7588 If you have zlib already installed, see config.log for details on the
7589 failure.  It is possible the compiler isn't looking in the proper directory.
7590 Use --without-zlib to disable zlib support." >&5
7591 echo "$as_me: error: zlib library not found
7592 If you have zlib already installed, see config.log for details on the
7593 failure.  It is possible the compiler isn't looking in the proper directory.
7594 Use --without-zlib to disable zlib support." >&2;}
7595    { (exit 1); exit 1; }; }
7596 fi
7597
7598 fi
7599
7600 if test "$enable_spinlocks" = yes; then
7601
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_SPINLOCKS 1
7604 _ACEOF
7605
7606 else
7607   { echo "$as_me:$LINENO: WARNING:
7608 *** Not using spinlocks will cause poor performance." >&5
7609 echo "$as_me: WARNING:
7610 *** Not using spinlocks will cause poor performance." >&2;}
7611 fi
7612
7613 if test "$with_gssapi" = yes ; then
7614   if test "$PORTNAME" != "win32"; then
7615     { echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
7616 echo $ECHO_N "checking for library containing gss_init_sec_context... $ECHO_C" >&6; }
7617 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   ac_func_search_save_LIBS=$LIBS
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h.  */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h.  */
7627
7628 /* Override any GCC internal prototype to avoid an error.
7629    Use char because int might match the return type of a GCC
7630    builtin and then its argument prototype would still apply.  */
7631 #ifdef __cplusplus
7632 extern "C"
7633 #endif
7634 char gss_init_sec_context ();
7635 int
7636 main ()
7637 {
7638 return gss_init_sec_context ();
7639   ;
7640   return 0;
7641 }
7642 _ACEOF
7643 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
7644   if test -z "$ac_lib"; then
7645     ac_res="none required"
7646   else
7647     ac_res=-l$ac_lib
7648     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7649   fi
7650   rm -f conftest.$ac_objext conftest$ac_exeext
7651 if { (ac_try="$ac_link"
7652 case "(($ac_try" in
7653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654   *) ac_try_echo=$ac_try;;
7655 esac
7656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7657   (eval "$ac_link") 2>conftest.er1
7658   ac_status=$?
7659   grep -v '^ *+' conftest.er1 >conftest.err
7660   rm -f conftest.er1
7661   cat conftest.err >&5
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); } && {
7664          test -z "$ac_c_werror_flag" ||
7665          test ! -s conftest.err
7666        } && test -s conftest$ac_exeext &&
7667        $as_test_x conftest$ac_exeext; then
7668   ac_cv_search_gss_init_sec_context=$ac_res
7669 else
7670   echo "$as_me: failed program was:" >&5
7671 sed 's/^/| /' conftest.$ac_ext >&5
7672
7673
7674 fi
7675
7676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7677       conftest$ac_exeext
7678   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7679   break
7680 fi
7681 done
7682 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
7683   :
7684 else
7685   ac_cv_search_gss_init_sec_context=no
7686 fi
7687 rm conftest.$ac_ext
7688 LIBS=$ac_func_search_save_LIBS
7689 fi
7690 { echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
7691 echo "${ECHO_T}$ac_cv_search_gss_init_sec_context" >&6; }
7692 ac_res=$ac_cv_search_gss_init_sec_context
7693 if test "$ac_res" != no; then
7694   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7695
7696 else
7697   { { echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
7698 echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
7699    { (exit 1); exit 1; }; }
7700 fi
7701
7702   else
7703     LIBS="$LIBS -lgssapi32"
7704   fi
7705 fi
7706
7707 if test "$with_krb5" = yes ; then
7708   if test "$PORTNAME" != "win32"; then
7709      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7710 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7711 if test "${ac_cv_search_com_err+set}" = set; then
7712   echo $ECHO_N "(cached) $ECHO_C" >&6
7713 else
7714   ac_func_search_save_LIBS=$LIBS
7715 cat >conftest.$ac_ext <<_ACEOF
7716 /* confdefs.h.  */
7717 _ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h.  */
7721
7722 /* Override any GCC internal prototype to avoid an error.
7723    Use char because int might match the return type of a GCC
7724    builtin and then its argument prototype would still apply.  */
7725 #ifdef __cplusplus
7726 extern "C"
7727 #endif
7728 char com_err ();
7729 int
7730 main ()
7731 {
7732 return com_err ();
7733   ;
7734   return 0;
7735 }
7736 _ACEOF
7737 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err; do
7738   if test -z "$ac_lib"; then
7739     ac_res="none required"
7740   else
7741     ac_res=-l$ac_lib
7742     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7743   fi
7744   rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748   *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751   (eval "$ac_link") 2>conftest.er1
7752   ac_status=$?
7753   grep -v '^ *+' conftest.er1 >conftest.err
7754   rm -f conftest.er1
7755   cat conftest.err >&5
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); } && {
7758          test -z "$ac_c_werror_flag" ||
7759          test ! -s conftest.err
7760        } && test -s conftest$ac_exeext &&
7761        $as_test_x conftest$ac_exeext; then
7762   ac_cv_search_com_err=$ac_res
7763 else
7764   echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767
7768 fi
7769
7770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7771       conftest$ac_exeext
7772   if test "${ac_cv_search_com_err+set}" = set; then
7773   break
7774 fi
7775 done
7776 if test "${ac_cv_search_com_err+set}" = set; then
7777   :
7778 else
7779   ac_cv_search_com_err=no
7780 fi
7781 rm conftest.$ac_ext
7782 LIBS=$ac_func_search_save_LIBS
7783 fi
7784 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7785 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7786 ac_res=$ac_cv_search_com_err
7787 if test "$ac_res" != no; then
7788   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7789
7790 else
7791   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7792 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7793    { (exit 1); exit 1; }; }
7794 fi
7795
7796      { echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
7797 echo $ECHO_N "checking for library containing krb5_sendauth... $ECHO_C" >&6; }
7798 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7799   echo $ECHO_N "(cached) $ECHO_C" >&6
7800 else
7801   ac_func_search_save_LIBS=$LIBS
7802 cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h.  */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h.  */
7808
7809 /* Override any GCC internal prototype to avoid an error.
7810    Use char because int might match the return type of a GCC
7811    builtin and then its argument prototype would still apply.  */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 char krb5_sendauth ();
7816 int
7817 main ()
7818 {
7819 return krb5_sendauth ();
7820   ;
7821   return 0;
7822 }
7823 _ACEOF
7824 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
7825   if test -z "$ac_lib"; then
7826     ac_res="none required"
7827   else
7828     ac_res=-l$ac_lib
7829     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7830   fi
7831   rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (ac_try="$ac_link"
7833 case "(($ac_try" in
7834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835   *) ac_try_echo=$ac_try;;
7836 esac
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838   (eval "$ac_link") 2>conftest.er1
7839   ac_status=$?
7840   grep -v '^ *+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } && {
7845          test -z "$ac_c_werror_flag" ||
7846          test ! -s conftest.err
7847        } && test -s conftest$ac_exeext &&
7848        $as_test_x conftest$ac_exeext; then
7849   ac_cv_search_krb5_sendauth=$ac_res
7850 else
7851   echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854
7855 fi
7856
7857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7858       conftest$ac_exeext
7859   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7860   break
7861 fi
7862 done
7863 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
7864   :
7865 else
7866   ac_cv_search_krb5_sendauth=no
7867 fi
7868 rm conftest.$ac_ext
7869 LIBS=$ac_func_search_save_LIBS
7870 fi
7871 { echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
7872 echo "${ECHO_T}$ac_cv_search_krb5_sendauth" >&6; }
7873 ac_res=$ac_cv_search_krb5_sendauth
7874 if test "$ac_res" != no; then
7875   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7876
7877 else
7878   { { echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
7879 echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
7880    { (exit 1); exit 1; }; }
7881 fi
7882
7883   else
7884      { echo "$as_me:$LINENO: checking for library containing com_err" >&5
7885 echo $ECHO_N "checking for library containing com_err... $ECHO_C" >&6; }
7886 if test "${ac_cv_search_com_err+set}" = set; then
7887   echo $ECHO_N "(cached) $ECHO_C" >&6
7888 else
7889   ac_func_search_save_LIBS=$LIBS
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896
7897 /* Override any GCC internal prototype to avoid an error.
7898    Use char because int might match the return type of a GCC
7899    builtin and then its argument prototype would still apply.  */
7900 #ifdef __cplusplus
7901 extern "C"
7902 #endif
7903 char com_err ();
7904 int
7905 main ()
7906 {
7907 return com_err ();
7908   ;
7909   return 0;
7910 }
7911 _ACEOF
7912 for ac_lib in '' 'comerr32 -lkrb5_32'; do
7913   if test -z "$ac_lib"; then
7914     ac_res="none required"
7915   else
7916     ac_res=-l$ac_lib
7917     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7918   fi
7919   rm -f conftest.$ac_objext conftest$ac_exeext
7920 if { (ac_try="$ac_link"
7921 case "(($ac_try" in
7922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923   *) ac_try_echo=$ac_try;;
7924 esac
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926   (eval "$ac_link") 2>conftest.er1
7927   ac_status=$?
7928   grep -v '^ *+' conftest.er1 >conftest.err
7929   rm -f conftest.er1
7930   cat conftest.err >&5
7931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932   (exit $ac_status); } && {
7933          test -z "$ac_c_werror_flag" ||
7934          test ! -s conftest.err
7935        } && test -s conftest$ac_exeext &&
7936        $as_test_x conftest$ac_exeext; then
7937   ac_cv_search_com_err=$ac_res
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7941
7942
7943 fi
7944
7945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7946       conftest$ac_exeext
7947   if test "${ac_cv_search_com_err+set}" = set; then
7948   break
7949 fi
7950 done
7951 if test "${ac_cv_search_com_err+set}" = set; then
7952   :
7953 else
7954   ac_cv_search_com_err=no
7955 fi
7956 rm conftest.$ac_ext
7957 LIBS=$ac_func_search_save_LIBS
7958 fi
7959 { echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
7960 echo "${ECHO_T}$ac_cv_search_com_err" >&6; }
7961 ac_res=$ac_cv_search_com_err
7962 if test "$ac_res" != no; then
7963   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7964
7965 else
7966   { { echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
7967 echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
7968    { (exit 1); exit 1; }; }
7969 fi
7970
7971   fi
7972 fi
7973
7974 if test "$with_openssl" = yes ; then
7975     if test "$PORTNAME" != "win32"; then
7976
7977 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
7978 echo $ECHO_N "checking for CRYPTO_new_ex_data in -lcrypto... $ECHO_C" >&6; }
7979 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
7980   echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982   ac_check_lib_save_LIBS=$LIBS
7983 LIBS="-lcrypto  $LIBS"
7984 cat >conftest.$ac_ext <<_ACEOF
7985 /* confdefs.h.  */
7986 _ACEOF
7987 cat confdefs.h >>conftest.$ac_ext
7988 cat >>conftest.$ac_ext <<_ACEOF
7989 /* end confdefs.h.  */
7990
7991 /* Override any GCC internal prototype to avoid an error.
7992    Use char because int might match the return type of a GCC
7993    builtin and then its argument prototype would still apply.  */
7994 #ifdef __cplusplus
7995 extern "C"
7996 #endif
7997 char CRYPTO_new_ex_data ();
7998 int
7999 main ()
8000 {
8001 return CRYPTO_new_ex_data ();
8002   ;
8003   return 0;
8004 }
8005 _ACEOF
8006 rm -f conftest.$ac_objext conftest$ac_exeext
8007 if { (ac_try="$ac_link"
8008 case "(($ac_try" in
8009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010   *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013   (eval "$ac_link") 2>conftest.er1
8014   ac_status=$?
8015   grep -v '^ *+' conftest.er1 >conftest.err
8016   rm -f conftest.er1
8017   cat conftest.err >&5
8018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019   (exit $ac_status); } && {
8020          test -z "$ac_c_werror_flag" ||
8021          test ! -s conftest.err
8022        } && test -s conftest$ac_exeext &&
8023        $as_test_x conftest$ac_exeext; then
8024   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
8025 else
8026   echo "$as_me: failed program was:" >&5
8027 sed 's/^/| /' conftest.$ac_ext >&5
8028
8029         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
8030 fi
8031
8032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8033       conftest$ac_exeext conftest.$ac_ext
8034 LIBS=$ac_check_lib_save_LIBS
8035 fi
8036 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
8037 echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
8038 if test $ac_cv_lib_crypto_CRYPTO_new_ex_data = yes; then
8039   cat >>confdefs.h <<_ACEOF
8040 #define HAVE_LIBCRYPTO 1
8041 _ACEOF
8042
8043   LIBS="-lcrypto $LIBS"
8044
8045 else
8046   { { echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
8047 echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
8048    { (exit 1); exit 1; }; }
8049 fi
8050
8051
8052 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
8053 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
8054 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
8055   echo $ECHO_N "(cached) $ECHO_C" >&6
8056 else
8057   ac_check_lib_save_LIBS=$LIBS
8058 LIBS="-lssl  $LIBS"
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065
8066 /* Override any GCC internal prototype to avoid an error.
8067    Use char because int might match the return type of a GCC
8068    builtin and then its argument prototype would still apply.  */
8069 #ifdef __cplusplus
8070 extern "C"
8071 #endif
8072 char SSL_library_init ();
8073 int
8074 main ()
8075 {
8076 return SSL_library_init ();
8077   ;
8078   return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8083 case "(($ac_try" in
8084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085   *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088   (eval "$ac_link") 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } && {
8095          test -z "$ac_c_werror_flag" ||
8096          test ! -s conftest.err
8097        } && test -s conftest$ac_exeext &&
8098        $as_test_x conftest$ac_exeext; then
8099   ac_cv_lib_ssl_SSL_library_init=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104         ac_cv_lib_ssl_SSL_library_init=no
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108       conftest$ac_exeext conftest.$ac_ext
8109 LIBS=$ac_check_lib_save_LIBS
8110 fi
8111 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
8112 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
8113 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
8114   cat >>confdefs.h <<_ACEOF
8115 #define HAVE_LIBSSL 1
8116 _ACEOF
8117
8118   LIBS="-lssl $LIBS"
8119
8120 else
8121   { { echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
8122 echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
8123    { (exit 1); exit 1; }; }
8124 fi
8125
8126   else
8127
8128 { echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -leay32" >&5
8129 echo $ECHO_N "checking for CRYPTO_new_ex_data in -leay32... $ECHO_C" >&6; }
8130 if test "${ac_cv_lib_eay32_CRYPTO_new_ex_data+set}" = set; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-leay32  $LIBS"
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h.  */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h.  */
8141
8142 /* Override any GCC internal prototype to avoid an error.
8143    Use char because int might match the return type of a GCC
8144    builtin and then its argument prototype would still apply.  */
8145 #ifdef __cplusplus
8146 extern "C"
8147 #endif
8148 char CRYPTO_new_ex_data ();
8149 int
8150 main ()
8151 {
8152 return CRYPTO_new_ex_data ();
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest.$ac_objext conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8159 case "(($ac_try" in
8160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161   *) ac_try_echo=$ac_try;;
8162 esac
8163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8164   (eval "$ac_link") 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } && {
8171          test -z "$ac_c_werror_flag" ||
8172          test ! -s conftest.err
8173        } && test -s conftest$ac_exeext &&
8174        $as_test_x conftest$ac_exeext; then
8175   ac_cv_lib_eay32_CRYPTO_new_ex_data=yes
8176 else
8177   echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180         ac_cv_lib_eay32_CRYPTO_new_ex_data=no
8181 fi
8182
8183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8184       conftest$ac_exeext conftest.$ac_ext
8185 LIBS=$ac_check_lib_save_LIBS
8186 fi
8187 { echo "$as_me:$LINENO: result: $ac_cv_lib_eay32_CRYPTO_new_ex_data" >&5
8188 echo "${ECHO_T}$ac_cv_lib_eay32_CRYPTO_new_ex_data" >&6; }
8189 if test $ac_cv_lib_eay32_CRYPTO_new_ex_data = yes; then
8190   cat >>confdefs.h <<_ACEOF
8191 #define HAVE_LIBEAY32 1
8192 _ACEOF
8193
8194   LIBS="-leay32 $LIBS"
8195
8196 else
8197   { { echo "$as_me:$LINENO: error: library 'eay32' is required for OpenSSL" >&5
8198 echo "$as_me: error: library 'eay32' is required for OpenSSL" >&2;}
8199    { (exit 1); exit 1; }; }
8200 fi
8201
8202
8203 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssleay32" >&5
8204 echo $ECHO_N "checking for SSL_library_init in -lssleay32... $ECHO_C" >&6; }
8205 if test "${ac_cv_lib_ssleay32_SSL_library_init+set}" = set; then
8206   echo $ECHO_N "(cached) $ECHO_C" >&6
8207 else
8208   ac_check_lib_save_LIBS=$LIBS
8209 LIBS="-lssleay32  $LIBS"
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216
8217 /* Override any GCC internal prototype to avoid an error.
8218    Use char because int might match the return type of a GCC
8219    builtin and then its argument prototype would still apply.  */
8220 #ifdef __cplusplus
8221 extern "C"
8222 #endif
8223 char SSL_library_init ();
8224 int
8225 main ()
8226 {
8227 return SSL_library_init ();
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (ac_try="$ac_link"
8234 case "(($ac_try" in
8235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236   *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239   (eval "$ac_link") 2>conftest.er1
8240   ac_status=$?
8241   grep -v '^ *+' conftest.er1 >conftest.err
8242   rm -f conftest.er1
8243   cat conftest.err >&5
8244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245   (exit $ac_status); } && {
8246          test -z "$ac_c_werror_flag" ||
8247          test ! -s conftest.err
8248        } && test -s conftest$ac_exeext &&
8249        $as_test_x conftest$ac_exeext; then
8250   ac_cv_lib_ssleay32_SSL_library_init=yes
8251 else
8252   echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255         ac_cv_lib_ssleay32_SSL_library_init=no
8256 fi
8257
8258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8259       conftest$ac_exeext conftest.$ac_ext
8260 LIBS=$ac_check_lib_save_LIBS
8261 fi
8262 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssleay32_SSL_library_init" >&5
8263 echo "${ECHO_T}$ac_cv_lib_ssleay32_SSL_library_init" >&6; }
8264 if test $ac_cv_lib_ssleay32_SSL_library_init = yes; then
8265   cat >>confdefs.h <<_ACEOF
8266 #define HAVE_LIBSSLEAY32 1
8267 _ACEOF
8268
8269   LIBS="-lssleay32 $LIBS"
8270
8271 else
8272   { { echo "$as_me:$LINENO: error: library 'ssleay32' is required for OpenSSL" >&5
8273 echo "$as_me: error: library 'ssleay32' is required for OpenSSL" >&2;}
8274    { (exit 1); exit 1; }; }
8275 fi
8276
8277   fi
8278 fi
8279
8280 if test "$with_pam" = yes ; then
8281
8282 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8283 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
8284 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8285   echo $ECHO_N "(cached) $ECHO_C" >&6
8286 else
8287   ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-lpam  $LIBS"
8289 cat >conftest.$ac_ext <<_ACEOF
8290 /* confdefs.h.  */
8291 _ACEOF
8292 cat confdefs.h >>conftest.$ac_ext
8293 cat >>conftest.$ac_ext <<_ACEOF
8294 /* end confdefs.h.  */
8295
8296 /* Override any GCC internal prototype to avoid an error.
8297    Use char because int might match the return type of a GCC
8298    builtin and then its argument prototype would still apply.  */
8299 #ifdef __cplusplus
8300 extern "C"
8301 #endif
8302 char pam_start ();
8303 int
8304 main ()
8305 {
8306 return pam_start ();
8307   ;
8308   return 0;
8309 }
8310 _ACEOF
8311 rm -f conftest.$ac_objext conftest$ac_exeext
8312 if { (ac_try="$ac_link"
8313 case "(($ac_try" in
8314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8315   *) ac_try_echo=$ac_try;;
8316 esac
8317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8318   (eval "$ac_link") 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } && {
8325          test -z "$ac_c_werror_flag" ||
8326          test ! -s conftest.err
8327        } && test -s conftest$ac_exeext &&
8328        $as_test_x conftest$ac_exeext; then
8329   ac_cv_lib_pam_pam_start=yes
8330 else
8331   echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8333
8334         ac_cv_lib_pam_pam_start=no
8335 fi
8336
8337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8338       conftest$ac_exeext conftest.$ac_ext
8339 LIBS=$ac_check_lib_save_LIBS
8340 fi
8341 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8342 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
8343 if test $ac_cv_lib_pam_pam_start = yes; then
8344   cat >>confdefs.h <<_ACEOF
8345 #define HAVE_LIBPAM 1
8346 _ACEOF
8347
8348   LIBS="-lpam $LIBS"
8349
8350 else
8351   { { echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
8352 echo "$as_me: error: library 'pam' is required for PAM" >&2;}
8353    { (exit 1); exit 1; }; }
8354 fi
8355
8356 fi
8357
8358 if test "$with_libxml" = yes ; then
8359
8360 { echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
8361 echo $ECHO_N "checking for xmlSaveToBuffer in -lxml2... $ECHO_C" >&6; }
8362 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   ac_check_lib_save_LIBS=$LIBS
8366 LIBS="-lxml2  $LIBS"
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373
8374 /* Override any GCC internal prototype to avoid an error.
8375    Use char because int might match the return type of a GCC
8376    builtin and then its argument prototype would still apply.  */
8377 #ifdef __cplusplus
8378 extern "C"
8379 #endif
8380 char xmlSaveToBuffer ();
8381 int
8382 main ()
8383 {
8384 return xmlSaveToBuffer ();
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (ac_try="$ac_link"
8391 case "(($ac_try" in
8392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393   *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396   (eval "$ac_link") 2>conftest.er1
8397   ac_status=$?
8398   grep -v '^ *+' conftest.er1 >conftest.err
8399   rm -f conftest.er1
8400   cat conftest.err >&5
8401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402   (exit $ac_status); } && {
8403          test -z "$ac_c_werror_flag" ||
8404          test ! -s conftest.err
8405        } && test -s conftest$ac_exeext &&
8406        $as_test_x conftest$ac_exeext; then
8407   ac_cv_lib_xml2_xmlSaveToBuffer=yes
8408 else
8409   echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412         ac_cv_lib_xml2_xmlSaveToBuffer=no
8413 fi
8414
8415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8416       conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8418 fi
8419 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
8420 echo "${ECHO_T}$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
8421 if test $ac_cv_lib_xml2_xmlSaveToBuffer = yes; then
8422   cat >>confdefs.h <<_ACEOF
8423 #define HAVE_LIBXML2 1
8424 _ACEOF
8425
8426   LIBS="-lxml2 $LIBS"
8427
8428 else
8429   { { echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
8430 echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
8431    { (exit 1); exit 1; }; }
8432 fi
8433
8434 fi
8435
8436 if test "$with_libxslt" = yes ; then
8437
8438 { echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
8439 echo $ECHO_N "checking for xsltCleanupGlobals in -lxslt... $ECHO_C" >&6; }
8440 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443   ac_check_lib_save_LIBS=$LIBS
8444 LIBS="-lxslt  $LIBS"
8445 cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451
8452 /* Override any GCC internal prototype to avoid an error.
8453    Use char because int might match the return type of a GCC
8454    builtin and then its argument prototype would still apply.  */
8455 #ifdef __cplusplus
8456 extern "C"
8457 #endif
8458 char xsltCleanupGlobals ();
8459 int
8460 main ()
8461 {
8462 return xsltCleanupGlobals ();
8463   ;
8464   return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext conftest$ac_exeext
8468 if { (ac_try="$ac_link"
8469 case "(($ac_try" in
8470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8471   *) ac_try_echo=$ac_try;;
8472 esac
8473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8474   (eval "$ac_link") 2>conftest.er1
8475   ac_status=$?
8476   grep -v '^ *+' conftest.er1 >conftest.err
8477   rm -f conftest.er1
8478   cat conftest.err >&5
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); } && {
8481          test -z "$ac_c_werror_flag" ||
8482          test ! -s conftest.err
8483        } && test -s conftest$ac_exeext &&
8484        $as_test_x conftest$ac_exeext; then
8485   ac_cv_lib_xslt_xsltCleanupGlobals=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490         ac_cv_lib_xslt_xsltCleanupGlobals=no
8491 fi
8492
8493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8494       conftest$ac_exeext conftest.$ac_ext
8495 LIBS=$ac_check_lib_save_LIBS
8496 fi
8497 { echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
8498 echo "${ECHO_T}$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
8499 if test $ac_cv_lib_xslt_xsltCleanupGlobals = yes; then
8500   cat >>confdefs.h <<_ACEOF
8501 #define HAVE_LIBXSLT 1
8502 _ACEOF
8503
8504   LIBS="-lxslt $LIBS"
8505
8506 else
8507   { { echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
8508 echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
8509    { (exit 1); exit 1; }; }
8510 fi
8511
8512 fi
8513
8514 # for contrib/uuid-ossp
8515 if test "$with_ossp_uuid" = yes ; then
8516   { echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
8517 echo $ECHO_N "checking for uuid_export in -lossp-uuid... $ECHO_C" >&6; }
8518 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   ac_check_lib_save_LIBS=$LIBS
8522 LIBS="-lossp-uuid  $LIBS"
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8529
8530 /* Override any GCC internal prototype to avoid an error.
8531    Use char because int might match the return type of a GCC
8532    builtin and then its argument prototype would still apply.  */
8533 #ifdef __cplusplus
8534 extern "C"
8535 #endif
8536 char uuid_export ();
8537 int
8538 main ()
8539 {
8540 return uuid_export ();
8541   ;
8542   return 0;
8543 }
8544 _ACEOF
8545 rm -f conftest.$ac_objext conftest$ac_exeext
8546 if { (ac_try="$ac_link"
8547 case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_link") 2>conftest.er1
8553   ac_status=$?
8554   grep -v '^ *+' conftest.er1 >conftest.err
8555   rm -f conftest.er1
8556   cat conftest.err >&5
8557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558   (exit $ac_status); } && {
8559          test -z "$ac_c_werror_flag" ||
8560          test ! -s conftest.err
8561        } && test -s conftest$ac_exeext &&
8562        $as_test_x conftest$ac_exeext; then
8563   ac_cv_lib_ossp_uuid_uuid_export=yes
8564 else
8565   echo "$as_me: failed program was:" >&5
8566 sed 's/^/| /' conftest.$ac_ext >&5
8567
8568         ac_cv_lib_ossp_uuid_uuid_export=no
8569 fi
8570
8571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8572       conftest$ac_exeext conftest.$ac_ext
8573 LIBS=$ac_check_lib_save_LIBS
8574 fi
8575 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
8576 echo "${ECHO_T}$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
8577 if test $ac_cv_lib_ossp_uuid_uuid_export = yes; then
8578   OSSP_UUID_LIBS="-lossp-uuid"
8579 else
8580   { echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
8581 echo $ECHO_N "checking for uuid_export in -luuid... $ECHO_C" >&6; }
8582 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
8583   echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585   ac_check_lib_save_LIBS=$LIBS
8586 LIBS="-luuid  $LIBS"
8587 cat >conftest.$ac_ext <<_ACEOF
8588 /* confdefs.h.  */
8589 _ACEOF
8590 cat confdefs.h >>conftest.$ac_ext
8591 cat >>conftest.$ac_ext <<_ACEOF
8592 /* end confdefs.h.  */
8593
8594 /* Override any GCC internal prototype to avoid an error.
8595    Use char because int might match the return type of a GCC
8596    builtin and then its argument prototype would still apply.  */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 char uuid_export ();
8601 int
8602 main ()
8603 {
8604 return uuid_export ();
8605   ;
8606   return 0;
8607 }
8608 _ACEOF
8609 rm -f conftest.$ac_objext conftest$ac_exeext
8610 if { (ac_try="$ac_link"
8611 case "(($ac_try" in
8612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613   *) ac_try_echo=$ac_try;;
8614 esac
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616   (eval "$ac_link") 2>conftest.er1
8617   ac_status=$?
8618   grep -v '^ *+' conftest.er1 >conftest.err
8619   rm -f conftest.er1
8620   cat conftest.err >&5
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); } && {
8623          test -z "$ac_c_werror_flag" ||
8624          test ! -s conftest.err
8625        } && test -s conftest$ac_exeext &&
8626        $as_test_x conftest$ac_exeext; then
8627   ac_cv_lib_uuid_uuid_export=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         ac_cv_lib_uuid_uuid_export=no
8633 fi
8634
8635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8636       conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ac_check_lib_save_LIBS
8638 fi
8639 { echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
8640 echo "${ECHO_T}$ac_cv_lib_uuid_uuid_export" >&6; }
8641 if test $ac_cv_lib_uuid_uuid_export = yes; then
8642   OSSP_UUID_LIBS="-luuid"
8643 else
8644   { { echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
8645 echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
8646    { (exit 1); exit 1; }; }
8647 fi
8648
8649 fi
8650
8651 fi
8652
8653
8654
8655 ##
8656 ## Header files
8657 ##
8658
8659 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8660 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8661 if test "${ac_cv_header_stdc+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 #include <stdlib.h>
8671 #include <stdarg.h>
8672 #include <string.h>
8673 #include <float.h>
8674
8675 int
8676 main ()
8677 {
8678
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_compile") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } && {
8697          test -z "$ac_c_werror_flag" ||
8698          test ! -s conftest.err
8699        } && test -s conftest.$ac_objext; then
8700   ac_cv_header_stdc=yes
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705         ac_cv_header_stdc=no
8706 fi
8707
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709
8710 if test $ac_cv_header_stdc = yes; then
8711   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8712   cat >conftest.$ac_ext <<_ACEOF
8713 /* confdefs.h.  */
8714 _ACEOF
8715 cat confdefs.h >>conftest.$ac_ext
8716 cat >>conftest.$ac_ext <<_ACEOF
8717 /* end confdefs.h.  */
8718 #include <string.h>
8719
8720 _ACEOF
8721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8722   $EGREP "memchr" >/dev/null 2>&1; then
8723   :
8724 else
8725   ac_cv_header_stdc=no
8726 fi
8727 rm -f conftest*
8728
8729 fi
8730
8731 if test $ac_cv_header_stdc = yes; then
8732   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8733   cat >conftest.$ac_ext <<_ACEOF
8734 /* confdefs.h.  */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h.  */
8739 #include <stdlib.h>
8740
8741 _ACEOF
8742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8743   $EGREP "free" >/dev/null 2>&1; then
8744   :
8745 else
8746   ac_cv_header_stdc=no
8747 fi
8748 rm -f conftest*
8749
8750 fi
8751
8752 if test $ac_cv_header_stdc = yes; then
8753   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8754   if test "$cross_compiling" = yes; then
8755   :
8756 else
8757   cat >conftest.$ac_ext <<_ACEOF
8758 /* confdefs.h.  */
8759 _ACEOF
8760 cat confdefs.h >>conftest.$ac_ext
8761 cat >>conftest.$ac_ext <<_ACEOF
8762 /* end confdefs.h.  */
8763 #include <ctype.h>
8764 #include <stdlib.h>
8765 #if ((' ' & 0x0FF) == 0x020)
8766 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8767 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8768 #else
8769 # define ISLOWER(c) \
8770                    (('a' <= (c) && (c) <= 'i') \
8771                      || ('j' <= (c) && (c) <= 'r') \
8772                      || ('s' <= (c) && (c) <= 'z'))
8773 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8774 #endif
8775
8776 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8777 int
8778 main ()
8779 {
8780   int i;
8781   for (i = 0; i < 256; i++)
8782     if (XOR (islower (i), ISLOWER (i))
8783         || toupper (i) != TOUPPER (i))
8784       return 2;
8785   return 0;
8786 }
8787 _ACEOF
8788 rm -f conftest$ac_exeext
8789 if { (ac_try="$ac_link"
8790 case "(($ac_try" in
8791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8792   *) ac_try_echo=$ac_try;;
8793 esac
8794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8795   (eval "$ac_link") 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8799   { (case "(($ac_try" in
8800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801   *) ac_try_echo=$ac_try;;
8802 esac
8803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8804   (eval "$ac_try") 2>&5
8805   ac_status=$?
8806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); }; }; then
8808   :
8809 else
8810   echo "$as_me: program exited with status $ac_status" >&5
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ( exit $ac_status )
8815 ac_cv_header_stdc=no
8816 fi
8817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8818 fi
8819
8820
8821 fi
8822 fi
8823 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8824 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8825 if test $ac_cv_header_stdc = yes; then
8826
8827 cat >>confdefs.h <<\_ACEOF
8828 #define STDC_HEADERS 1
8829 _ACEOF
8830
8831 fi
8832
8833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8844                   inttypes.h stdint.h unistd.h
8845 do
8846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850   echo $ECHO_N "(cached) $ECHO_C" >&6
8851 else
8852   cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h.  */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h.  */
8858 $ac_includes_default
8859
8860 #include <$ac_header>
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8864 case "(($ac_try" in
8865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866   *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869   (eval "$ac_compile") 2>conftest.er1
8870   ac_status=$?
8871   grep -v '^ *+' conftest.er1 >conftest.err
8872   rm -f conftest.er1
8873   cat conftest.err >&5
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); } && {
8876          test -z "$ac_c_werror_flag" ||
8877          test ! -s conftest.err
8878        } && test -s conftest.$ac_objext; then
8879   eval "$as_ac_Header=yes"
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884         eval "$as_ac_Header=no"
8885 fi
8886
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 fi
8889 ac_res=`eval echo '${'$as_ac_Header'}'`
8890                { echo "$as_me:$LINENO: result: $ac_res" >&5
8891 echo "${ECHO_T}$ac_res" >&6; }
8892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8893   cat >>confdefs.h <<_ACEOF
8894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8895 _ACEOF
8896
8897 fi
8898
8899 done
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929 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
8930 do
8931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8933   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 fi
8938 ac_res=`eval echo '${'$as_ac_Header'}'`
8939                { echo "$as_me:$LINENO: result: $ac_res" >&5
8940 echo "${ECHO_T}$ac_res" >&6; }
8941 else
8942   # Is the header compilable?
8943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8945 cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951 $ac_includes_default
8952 #include <$ac_header>
8953 _ACEOF
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8956 case "(($ac_try" in
8957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958   *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961   (eval "$ac_compile") 2>conftest.er1
8962   ac_status=$?
8963   grep -v '^ *+' conftest.er1 >conftest.err
8964   rm -f conftest.er1
8965   cat conftest.err >&5
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); } && {
8968          test -z "$ac_c_werror_flag" ||
8969          test ! -s conftest.err
8970        } && test -s conftest.$ac_objext; then
8971   ac_header_compiler=yes
8972 else
8973   echo "$as_me: failed program was:" >&5
8974 sed 's/^/| /' conftest.$ac_ext >&5
8975
8976         ac_header_compiler=no
8977 fi
8978
8979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8981 echo "${ECHO_T}$ac_header_compiler" >&6; }
8982
8983 # Is the header present?
8984 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8985 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8986 cat >conftest.$ac_ext <<_ACEOF
8987 /* confdefs.h.  */
8988 _ACEOF
8989 cat confdefs.h >>conftest.$ac_ext
8990 cat >>conftest.$ac_ext <<_ACEOF
8991 /* end confdefs.h.  */
8992 #include <$ac_header>
8993 _ACEOF
8994 if { (ac_try="$ac_cpp conftest.$ac_ext"
8995 case "(($ac_try" in
8996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997   *) ac_try_echo=$ac_try;;
8998 esac
8999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9001   ac_status=$?
9002   grep -v '^ *+' conftest.er1 >conftest.err
9003   rm -f conftest.er1
9004   cat conftest.err >&5
9005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006   (exit $ac_status); } >/dev/null && {
9007          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9008          test ! -s conftest.err
9009        }; then
9010   ac_header_preproc=yes
9011 else
9012   echo "$as_me: failed program was:" >&5
9013 sed 's/^/| /' conftest.$ac_ext >&5
9014
9015   ac_header_preproc=no
9016 fi
9017
9018 rm -f conftest.err conftest.$ac_ext
9019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9020 echo "${ECHO_T}$ac_header_preproc" >&6; }
9021
9022 # So?  What about this header?
9023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9024   yes:no: )
9025     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9029     ac_header_preproc=yes
9030     ;;
9031   no:yes:* )
9032     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9034     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9035 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9036     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9038     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9039 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9042     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9044     ( cat <<\_ASBOX
9045 ## ---------------------------------------- ##
9046 ## Report this to pgsql-bugs@postgresql.org ##
9047 ## ---------------------------------------- ##
9048 _ASBOX
9049      ) | sed "s/^/$as_me: WARNING:     /" >&2
9050     ;;
9051 esac
9052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055   echo $ECHO_N "(cached) $ECHO_C" >&6
9056 else
9057   eval "$as_ac_Header=\$ac_header_preproc"
9058 fi
9059 ac_res=`eval echo '${'$as_ac_Header'}'`
9060                { echo "$as_me:$LINENO: result: $ac_res" >&5
9061 echo "${ECHO_T}$ac_res" >&6; }
9062
9063 fi
9064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9065   cat >>confdefs.h <<_ACEOF
9066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9067 _ACEOF
9068
9069 fi
9070
9071 done
9072
9073
9074 # At least on IRIX, cpp test for netinet/tcp.h will fail unless
9075 # netinet/in.h is included first.
9076
9077 for ac_header in netinet/in.h
9078 do
9079 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9081   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9084   echo $ECHO_N "(cached) $ECHO_C" >&6
9085 fi
9086 ac_res=`eval echo '${'$as_ac_Header'}'`
9087                { echo "$as_me:$LINENO: result: $ac_res" >&5
9088 echo "${ECHO_T}$ac_res" >&6; }
9089 else
9090   # Is the header compilable?
9091 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9092 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9093 cat >conftest.$ac_ext <<_ACEOF
9094 /* confdefs.h.  */
9095 _ACEOF
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h.  */
9099 $ac_includes_default
9100 #include <$ac_header>
9101 _ACEOF
9102 rm -f conftest.$ac_objext
9103 if { (ac_try="$ac_compile"
9104 case "(($ac_try" in
9105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106   *) ac_try_echo=$ac_try;;
9107 esac
9108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109   (eval "$ac_compile") 2>conftest.er1
9110   ac_status=$?
9111   grep -v '^ *+' conftest.er1 >conftest.err
9112   rm -f conftest.er1
9113   cat conftest.err >&5
9114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115   (exit $ac_status); } && {
9116          test -z "$ac_c_werror_flag" ||
9117          test ! -s conftest.err
9118        } && test -s conftest.$ac_objext; then
9119   ac_header_compiler=yes
9120 else
9121   echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124         ac_header_compiler=no
9125 fi
9126
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9129 echo "${ECHO_T}$ac_header_compiler" >&6; }
9130
9131 # Is the header present?
9132 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9134 cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140 #include <$ac_header>
9141 _ACEOF
9142 if { (ac_try="$ac_cpp conftest.$ac_ext"
9143 case "(($ac_try" in
9144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9145   *) ac_try_echo=$ac_try;;
9146 esac
9147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9148   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9149   ac_status=$?
9150   grep -v '^ *+' conftest.er1 >conftest.err
9151   rm -f conftest.er1
9152   cat conftest.err >&5
9153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154   (exit $ac_status); } >/dev/null && {
9155          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9156          test ! -s conftest.err
9157        }; then
9158   ac_header_preproc=yes
9159 else
9160   echo "$as_me: failed program was:" >&5
9161 sed 's/^/| /' conftest.$ac_ext >&5
9162
9163   ac_header_preproc=no
9164 fi
9165
9166 rm -f conftest.err conftest.$ac_ext
9167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9168 echo "${ECHO_T}$ac_header_preproc" >&6; }
9169
9170 # So?  What about this header?
9171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9172   yes:no: )
9173     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9174 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9175     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9176 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9177     ac_header_preproc=yes
9178     ;;
9179   no:yes:* )
9180     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9181 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9182     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9183 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9184     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9185 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9186     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9187 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9188     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9189 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9190     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9191 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9192     ( cat <<\_ASBOX
9193 ## ---------------------------------------- ##
9194 ## Report this to pgsql-bugs@postgresql.org ##
9195 ## ---------------------------------------- ##
9196 _ASBOX
9197      ) | sed "s/^/$as_me: WARNING:     /" >&2
9198     ;;
9199 esac
9200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9203   echo $ECHO_N "(cached) $ECHO_C" >&6
9204 else
9205   eval "$as_ac_Header=\$ac_header_preproc"
9206 fi
9207 ac_res=`eval echo '${'$as_ac_Header'}'`
9208                { echo "$as_me:$LINENO: result: $ac_res" >&5
9209 echo "${ECHO_T}$ac_res" >&6; }
9210
9211 fi
9212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9213   cat >>confdefs.h <<_ACEOF
9214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9215 _ACEOF
9216
9217 fi
9218
9219 done
9220
9221
9222 for ac_header in netinet/tcp.h
9223 do
9224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9228   echo $ECHO_N "(cached) $ECHO_C" >&6
9229 else
9230   cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h.  */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h.  */
9236 $ac_includes_default
9237 #ifdef HAVE_NETINET_IN_H
9238 #include <netinet/in.h>
9239 #endif
9240
9241
9242 #include <$ac_header>
9243 _ACEOF
9244 rm -f conftest.$ac_objext
9245 if { (ac_try="$ac_compile"
9246 case "(($ac_try" in
9247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9248   *) ac_try_echo=$ac_try;;
9249 esac
9250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9251   (eval "$ac_compile") 2>conftest.er1
9252   ac_status=$?
9253   grep -v '^ *+' conftest.er1 >conftest.err
9254   rm -f conftest.er1
9255   cat conftest.err >&5
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); } && {
9258          test -z "$ac_c_werror_flag" ||
9259          test ! -s conftest.err
9260        } && test -s conftest.$ac_objext; then
9261   eval "$as_ac_Header=yes"
9262 else
9263   echo "$as_me: failed program was:" >&5
9264 sed 's/^/| /' conftest.$ac_ext >&5
9265
9266         eval "$as_ac_Header=no"
9267 fi
9268
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 fi
9271 ac_res=`eval echo '${'$as_ac_Header'}'`
9272                { echo "$as_me:$LINENO: result: $ac_res" >&5
9273 echo "${ECHO_T}$ac_res" >&6; }
9274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9275   cat >>confdefs.h <<_ACEOF
9276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9277 _ACEOF
9278
9279 fi
9280
9281 done
9282
9283
9284 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
9285
9286 for ac_header in readline/readline.h
9287 do
9288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9290   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9293   echo $ECHO_N "(cached) $ECHO_C" >&6
9294 fi
9295 ac_res=`eval echo '${'$as_ac_Header'}'`
9296                { echo "$as_me:$LINENO: result: $ac_res" >&5
9297 echo "${ECHO_T}$ac_res" >&6; }
9298 else
9299   # Is the header compilable?
9300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9302 cat >conftest.$ac_ext <<_ACEOF
9303 /* confdefs.h.  */
9304 _ACEOF
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h.  */
9308 $ac_includes_default
9309 #include <$ac_header>
9310 _ACEOF
9311 rm -f conftest.$ac_objext
9312 if { (ac_try="$ac_compile"
9313 case "(($ac_try" in
9314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9315   *) ac_try_echo=$ac_try;;
9316 esac
9317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9318   (eval "$ac_compile") 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } && {
9325          test -z "$ac_c_werror_flag" ||
9326          test ! -s conftest.err
9327        } && test -s conftest.$ac_objext; then
9328   ac_header_compiler=yes
9329 else
9330   echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9332
9333         ac_header_compiler=no
9334 fi
9335
9336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9338 echo "${ECHO_T}$ac_header_compiler" >&6; }
9339
9340 # Is the header present?
9341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9343 cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h.  */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h.  */
9349 #include <$ac_header>
9350 _ACEOF
9351 if { (ac_try="$ac_cpp conftest.$ac_ext"
9352 case "(($ac_try" in
9353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354   *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } >/dev/null && {
9364          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9365          test ! -s conftest.err
9366        }; then
9367   ac_header_preproc=yes
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372   ac_header_preproc=no
9373 fi
9374
9375 rm -f conftest.err conftest.$ac_ext
9376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9377 echo "${ECHO_T}$ac_header_preproc" >&6; }
9378
9379 # So?  What about this header?
9380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9381   yes:no: )
9382     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9386     ac_header_preproc=yes
9387     ;;
9388   no:yes:* )
9389     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9391     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9392 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9393     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9395     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9396 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9401     ( cat <<\_ASBOX
9402 ## ---------------------------------------- ##
9403 ## Report this to pgsql-bugs@postgresql.org ##
9404 ## ---------------------------------------- ##
9405 _ASBOX
9406      ) | sed "s/^/$as_me: WARNING:     /" >&2
9407     ;;
9408 esac
9409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9412   echo $ECHO_N "(cached) $ECHO_C" >&6
9413 else
9414   eval "$as_ac_Header=\$ac_header_preproc"
9415 fi
9416 ac_res=`eval echo '${'$as_ac_Header'}'`
9417                { echo "$as_me:$LINENO: result: $ac_res" >&5
9418 echo "${ECHO_T}$ac_res" >&6; }
9419
9420 fi
9421 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9422   cat >>confdefs.h <<_ACEOF
9423 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9424 _ACEOF
9425
9426 else
9427
9428 for ac_header in readline.h
9429 do
9430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435   echo $ECHO_N "(cached) $ECHO_C" >&6
9436 fi
9437 ac_res=`eval echo '${'$as_ac_Header'}'`
9438                { echo "$as_me:$LINENO: result: $ac_res" >&5
9439 echo "${ECHO_T}$ac_res" >&6; }
9440 else
9441   # Is the header compilable?
9442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450 $ac_includes_default
9451 #include <$ac_header>
9452 _ACEOF
9453 rm -f conftest.$ac_objext
9454 if { (ac_try="$ac_compile"
9455 case "(($ac_try" in
9456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457   *) ac_try_echo=$ac_try;;
9458 esac
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460   (eval "$ac_compile") 2>conftest.er1
9461   ac_status=$?
9462   grep -v '^ *+' conftest.er1 >conftest.err
9463   rm -f conftest.er1
9464   cat conftest.err >&5
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); } && {
9467          test -z "$ac_c_werror_flag" ||
9468          test ! -s conftest.err
9469        } && test -s conftest.$ac_objext; then
9470   ac_header_compiler=yes
9471 else
9472   echo "$as_me: failed program was:" >&5
9473 sed 's/^/| /' conftest.$ac_ext >&5
9474
9475         ac_header_compiler=no
9476 fi
9477
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9480 echo "${ECHO_T}$ac_header_compiler" >&6; }
9481
9482 # Is the header present?
9483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h.  */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h.  */
9491 #include <$ac_header>
9492 _ACEOF
9493 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
9506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9507          test ! -s conftest.err
9508        }; then
9509   ac_header_preproc=yes
9510 else
9511   echo "$as_me: failed program was:" >&5
9512 sed 's/^/| /' conftest.$ac_ext >&5
9513
9514   ac_header_preproc=no
9515 fi
9516
9517 rm -f conftest.err conftest.$ac_ext
9518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9519 echo "${ECHO_T}$ac_header_preproc" >&6; }
9520
9521 # So?  What about this header?
9522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9523   yes:no: )
9524     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9526     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9528     ac_header_preproc=yes
9529     ;;
9530   no:yes:* )
9531     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9533     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9534 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9535     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9537     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9538 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9541     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9543     ( cat <<\_ASBOX
9544 ## ---------------------------------------- ##
9545 ## Report this to pgsql-bugs@postgresql.org ##
9546 ## ---------------------------------------- ##
9547 _ASBOX
9548      ) | sed "s/^/$as_me: WARNING:     /" >&2
9549     ;;
9550 esac
9551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9554   echo $ECHO_N "(cached) $ECHO_C" >&6
9555 else
9556   eval "$as_ac_Header=\$ac_header_preproc"
9557 fi
9558 ac_res=`eval echo '${'$as_ac_Header'}'`
9559                { echo "$as_me:$LINENO: result: $ac_res" >&5
9560 echo "${ECHO_T}$ac_res" >&6; }
9561
9562 fi
9563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9564   cat >>confdefs.h <<_ACEOF
9565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9566 _ACEOF
9567
9568 else
9569   { { echo "$as_me:$LINENO: error: readline header not found
9570 If you have readline already installed, see config.log for details on the
9571 failure.  It is possible the compiler isn't looking in the proper directory.
9572 Use --without-readline to disable readline support." >&5
9573 echo "$as_me: error: readline header not found
9574 If you have readline already installed, see config.log for details on the
9575 failure.  It is possible the compiler isn't looking in the proper directory.
9576 Use --without-readline to disable readline support." >&2;}
9577    { (exit 1); exit 1; }; }
9578 fi
9579
9580 done
9581
9582 fi
9583
9584 done
9585
9586
9587 for ac_header in readline/history.h
9588 do
9589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594   echo $ECHO_N "(cached) $ECHO_C" >&6
9595 fi
9596 ac_res=`eval echo '${'$as_ac_Header'}'`
9597                { echo "$as_me:$LINENO: result: $ac_res" >&5
9598 echo "${ECHO_T}$ac_res" >&6; }
9599 else
9600   # Is the header compilable?
9601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609 $ac_includes_default
9610 #include <$ac_header>
9611 _ACEOF
9612 rm -f conftest.$ac_objext
9613 if { (ac_try="$ac_compile"
9614 case "(($ac_try" in
9615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616   *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619   (eval "$ac_compile") 2>conftest.er1
9620   ac_status=$?
9621   grep -v '^ *+' conftest.er1 >conftest.err
9622   rm -f conftest.er1
9623   cat conftest.err >&5
9624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625   (exit $ac_status); } && {
9626          test -z "$ac_c_werror_flag" ||
9627          test ! -s conftest.err
9628        } && test -s conftest.$ac_objext; then
9629   ac_header_compiler=yes
9630 else
9631   echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9633
9634         ac_header_compiler=no
9635 fi
9636
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9639 echo "${ECHO_T}$ac_header_compiler" >&6; }
9640
9641 # Is the header present?
9642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h.  */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h.  */
9650 #include <$ac_header>
9651 _ACEOF
9652 if { (ac_try="$ac_cpp conftest.$ac_ext"
9653 case "(($ac_try" in
9654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655   *) ac_try_echo=$ac_try;;
9656 esac
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9659   ac_status=$?
9660   grep -v '^ *+' conftest.er1 >conftest.err
9661   rm -f conftest.er1
9662   cat conftest.err >&5
9663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664   (exit $ac_status); } >/dev/null && {
9665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9666          test ! -s conftest.err
9667        }; then
9668   ac_header_preproc=yes
9669 else
9670   echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673   ac_header_preproc=no
9674 fi
9675
9676 rm -f conftest.err conftest.$ac_ext
9677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9678 echo "${ECHO_T}$ac_header_preproc" >&6; }
9679
9680 # So?  What about this header?
9681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9682   yes:no: )
9683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9687     ac_header_preproc=yes
9688     ;;
9689   no:yes:* )
9690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9702     ( cat <<\_ASBOX
9703 ## ---------------------------------------- ##
9704 ## Report this to pgsql-bugs@postgresql.org ##
9705 ## ---------------------------------------- ##
9706 _ASBOX
9707      ) | sed "s/^/$as_me: WARNING:     /" >&2
9708     ;;
9709 esac
9710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9713   echo $ECHO_N "(cached) $ECHO_C" >&6
9714 else
9715   eval "$as_ac_Header=\$ac_header_preproc"
9716 fi
9717 ac_res=`eval echo '${'$as_ac_Header'}'`
9718                { echo "$as_me:$LINENO: result: $ac_res" >&5
9719 echo "${ECHO_T}$ac_res" >&6; }
9720
9721 fi
9722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9723   cat >>confdefs.h <<_ACEOF
9724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9725 _ACEOF
9726
9727 else
9728
9729 for ac_header in history.h
9730 do
9731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9733   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9736   echo $ECHO_N "(cached) $ECHO_C" >&6
9737 fi
9738 ac_res=`eval echo '${'$as_ac_Header'}'`
9739                { echo "$as_me:$LINENO: result: $ac_res" >&5
9740 echo "${ECHO_T}$ac_res" >&6; }
9741 else
9742   # Is the header compilable?
9743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9745 cat >conftest.$ac_ext <<_ACEOF
9746 /* confdefs.h.  */
9747 _ACEOF
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h.  */
9751 $ac_includes_default
9752 #include <$ac_header>
9753 _ACEOF
9754 rm -f conftest.$ac_objext
9755 if { (ac_try="$ac_compile"
9756 case "(($ac_try" in
9757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9758   *) ac_try_echo=$ac_try;;
9759 esac
9760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9761   (eval "$ac_compile") 2>conftest.er1
9762   ac_status=$?
9763   grep -v '^ *+' conftest.er1 >conftest.err
9764   rm -f conftest.er1
9765   cat conftest.err >&5
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); } && {
9768          test -z "$ac_c_werror_flag" ||
9769          test ! -s conftest.err
9770        } && test -s conftest.$ac_objext; then
9771   ac_header_compiler=yes
9772 else
9773   echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9775
9776         ac_header_compiler=no
9777 fi
9778
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 echo "${ECHO_T}$ac_header_compiler" >&6; }
9782
9783 # Is the header present?
9784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9787 /* confdefs.h.  */
9788 _ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h.  */
9792 #include <$ac_header>
9793 _ACEOF
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9795 case "(($ac_try" in
9796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797   *) ac_try_echo=$ac_try;;
9798 esac
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9801   ac_status=$?
9802   grep -v '^ *+' conftest.er1 >conftest.err
9803   rm -f conftest.er1
9804   cat conftest.err >&5
9805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806   (exit $ac_status); } >/dev/null && {
9807          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9808          test ! -s conftest.err
9809        }; then
9810   ac_header_preproc=yes
9811 else
9812   echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9814
9815   ac_header_preproc=no
9816 fi
9817
9818 rm -f conftest.err conftest.$ac_ext
9819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9820 echo "${ECHO_T}$ac_header_preproc" >&6; }
9821
9822 # So?  What about this header?
9823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9824   yes:no: )
9825     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9827     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9829     ac_header_preproc=yes
9830     ;;
9831   no:yes:* )
9832     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9834     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9835 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9836     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9838     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9839 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9840     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9842     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9844     ( cat <<\_ASBOX
9845 ## ---------------------------------------- ##
9846 ## Report this to pgsql-bugs@postgresql.org ##
9847 ## ---------------------------------------- ##
9848 _ASBOX
9849      ) | sed "s/^/$as_me: WARNING:     /" >&2
9850     ;;
9851 esac
9852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9855   echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857   eval "$as_ac_Header=\$ac_header_preproc"
9858 fi
9859 ac_res=`eval echo '${'$as_ac_Header'}'`
9860                { echo "$as_me:$LINENO: result: $ac_res" >&5
9861 echo "${ECHO_T}$ac_res" >&6; }
9862
9863 fi
9864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9865   cat >>confdefs.h <<_ACEOF
9866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9867 _ACEOF
9868
9869 else
9870   { { echo "$as_me:$LINENO: error: history header not found
9871 If you have readline already installed, see config.log for details on the
9872 failure.  It is possible the compiler isn't looking in the proper directory.
9873 Use --without-readline to disable readline support." >&5
9874 echo "$as_me: error: history header not found
9875 If you have readline already installed, see config.log for details on the
9876 failure.  It is possible the compiler isn't looking in the proper directory.
9877 Use --without-readline to disable readline support." >&2;}
9878    { (exit 1); exit 1; }; }
9879 fi
9880
9881 done
9882
9883 fi
9884
9885 done
9886
9887 fi
9888
9889 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
9890 # Some installations of libedit usurp /usr/include/readline/, which seems
9891 # bad practice, since in combined installations readline will have its headers
9892 # there.  We might have to resort to AC_EGREP checks to make sure we found
9893 # the proper header...
9894
9895 for ac_header in editline/readline.h
9896 do
9897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9899   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9902   echo $ECHO_N "(cached) $ECHO_C" >&6
9903 fi
9904 ac_res=`eval echo '${'$as_ac_Header'}'`
9905                { echo "$as_me:$LINENO: result: $ac_res" >&5
9906 echo "${ECHO_T}$ac_res" >&6; }
9907 else
9908   # Is the header compilable?
9909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9911 cat >conftest.$ac_ext <<_ACEOF
9912 /* confdefs.h.  */
9913 _ACEOF
9914 cat confdefs.h >>conftest.$ac_ext
9915 cat >>conftest.$ac_ext <<_ACEOF
9916 /* end confdefs.h.  */
9917 $ac_includes_default
9918 #include <$ac_header>
9919 _ACEOF
9920 rm -f conftest.$ac_objext
9921 if { (ac_try="$ac_compile"
9922 case "(($ac_try" in
9923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9924   *) ac_try_echo=$ac_try;;
9925 esac
9926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9927   (eval "$ac_compile") 2>conftest.er1
9928   ac_status=$?
9929   grep -v '^ *+' conftest.er1 >conftest.err
9930   rm -f conftest.er1
9931   cat conftest.err >&5
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } && {
9934          test -z "$ac_c_werror_flag" ||
9935          test ! -s conftest.err
9936        } && test -s conftest.$ac_objext; then
9937   ac_header_compiler=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942         ac_header_compiler=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9947 echo "${ECHO_T}$ac_header_compiler" >&6; }
9948
9949 # Is the header present?
9950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9952 cat >conftest.$ac_ext <<_ACEOF
9953 /* confdefs.h.  */
9954 _ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h.  */
9958 #include <$ac_header>
9959 _ACEOF
9960 if { (ac_try="$ac_cpp conftest.$ac_ext"
9961 case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9967   ac_status=$?
9968   grep -v '^ *+' conftest.er1 >conftest.err
9969   rm -f conftest.er1
9970   cat conftest.err >&5
9971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972   (exit $ac_status); } >/dev/null && {
9973          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9974          test ! -s conftest.err
9975        }; then
9976   ac_header_preproc=yes
9977 else
9978   echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9980
9981   ac_header_preproc=no
9982 fi
9983
9984 rm -f conftest.err conftest.$ac_ext
9985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9986 echo "${ECHO_T}$ac_header_preproc" >&6; }
9987
9988 # So?  What about this header?
9989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9990   yes:no: )
9991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9995     ac_header_preproc=yes
9996     ;;
9997   no:yes:* )
9998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10010     ( cat <<\_ASBOX
10011 ## ---------------------------------------- ##
10012 ## Report this to pgsql-bugs@postgresql.org ##
10013 ## ---------------------------------------- ##
10014 _ASBOX
10015      ) | sed "s/^/$as_me: WARNING:     /" >&2
10016     ;;
10017 esac
10018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10021   echo $ECHO_N "(cached) $ECHO_C" >&6
10022 else
10023   eval "$as_ac_Header=\$ac_header_preproc"
10024 fi
10025 ac_res=`eval echo '${'$as_ac_Header'}'`
10026                { echo "$as_me:$LINENO: result: $ac_res" >&5
10027 echo "${ECHO_T}$ac_res" >&6; }
10028
10029 fi
10030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10031   cat >>confdefs.h <<_ACEOF
10032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10033 _ACEOF
10034
10035 else
10036
10037 for ac_header in readline.h
10038 do
10039 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10044   echo $ECHO_N "(cached) $ECHO_C" >&6
10045 fi
10046 ac_res=`eval echo '${'$as_ac_Header'}'`
10047                { echo "$as_me:$LINENO: result: $ac_res" >&5
10048 echo "${ECHO_T}$ac_res" >&6; }
10049 else
10050   # Is the header compilable?
10051 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059 $ac_includes_default
10060 #include <$ac_header>
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10069   (eval "$ac_compile") 2>conftest.er1
10070   ac_status=$?
10071   grep -v '^ *+' conftest.er1 >conftest.err
10072   rm -f conftest.er1
10073   cat conftest.err >&5
10074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075   (exit $ac_status); } && {
10076          test -z "$ac_c_werror_flag" ||
10077          test ! -s conftest.err
10078        } && test -s conftest.$ac_objext; then
10079   ac_header_compiler=yes
10080 else
10081   echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10083
10084         ac_header_compiler=no
10085 fi
10086
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10089 echo "${ECHO_T}$ac_header_compiler" >&6; }
10090
10091 # Is the header present?
10092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10094 cat >conftest.$ac_ext <<_ACEOF
10095 /* confdefs.h.  */
10096 _ACEOF
10097 cat confdefs.h >>conftest.$ac_ext
10098 cat >>conftest.$ac_ext <<_ACEOF
10099 /* end confdefs.h.  */
10100 #include <$ac_header>
10101 _ACEOF
10102 if { (ac_try="$ac_cpp conftest.$ac_ext"
10103 case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } >/dev/null && {
10115          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10116          test ! -s conftest.err
10117        }; then
10118   ac_header_preproc=yes
10119 else
10120   echo "$as_me: failed program was:" >&5
10121 sed 's/^/| /' conftest.$ac_ext >&5
10122
10123   ac_header_preproc=no
10124 fi
10125
10126 rm -f conftest.err conftest.$ac_ext
10127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10128 echo "${ECHO_T}$ac_header_preproc" >&6; }
10129
10130 # So?  What about this header?
10131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10132   yes:no: )
10133     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10135     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10137     ac_header_preproc=yes
10138     ;;
10139   no:yes:* )
10140     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10142     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10143 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10144     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10146     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10147 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10148     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10150     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10152     ( cat <<\_ASBOX
10153 ## ---------------------------------------- ##
10154 ## Report this to pgsql-bugs@postgresql.org ##
10155 ## ---------------------------------------- ##
10156 _ASBOX
10157      ) | sed "s/^/$as_me: WARNING:     /" >&2
10158     ;;
10159 esac
10160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10163   echo $ECHO_N "(cached) $ECHO_C" >&6
10164 else
10165   eval "$as_ac_Header=\$ac_header_preproc"
10166 fi
10167 ac_res=`eval echo '${'$as_ac_Header'}'`
10168                { echo "$as_me:$LINENO: result: $ac_res" >&5
10169 echo "${ECHO_T}$ac_res" >&6; }
10170
10171 fi
10172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10173   cat >>confdefs.h <<_ACEOF
10174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10175 _ACEOF
10176
10177 else
10178
10179 for ac_header in readline/readline.h
10180 do
10181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10183   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10186   echo $ECHO_N "(cached) $ECHO_C" >&6
10187 fi
10188 ac_res=`eval echo '${'$as_ac_Header'}'`
10189                { echo "$as_me:$LINENO: result: $ac_res" >&5
10190 echo "${ECHO_T}$ac_res" >&6; }
10191 else
10192   # Is the header compilable?
10193 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10194 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10195 cat >conftest.$ac_ext <<_ACEOF
10196 /* confdefs.h.  */
10197 _ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h.  */
10201 $ac_includes_default
10202 #include <$ac_header>
10203 _ACEOF
10204 rm -f conftest.$ac_objext
10205 if { (ac_try="$ac_compile"
10206 case "(($ac_try" in
10207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10208   *) ac_try_echo=$ac_try;;
10209 esac
10210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10211   (eval "$ac_compile") 2>conftest.er1
10212   ac_status=$?
10213   grep -v '^ *+' conftest.er1 >conftest.err
10214   rm -f conftest.er1
10215   cat conftest.err >&5
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } && {
10218          test -z "$ac_c_werror_flag" ||
10219          test ! -s conftest.err
10220        } && test -s conftest.$ac_objext; then
10221   ac_header_compiler=yes
10222 else
10223   echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226         ac_header_compiler=no
10227 fi
10228
10229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10231 echo "${ECHO_T}$ac_header_compiler" >&6; }
10232
10233 # Is the header present?
10234 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10235 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 #include <$ac_header>
10243 _ACEOF
10244 if { (ac_try="$ac_cpp conftest.$ac_ext"
10245 case "(($ac_try" in
10246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10247   *) ac_try_echo=$ac_try;;
10248 esac
10249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } >/dev/null && {
10257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10258          test ! -s conftest.err
10259        }; then
10260   ac_header_preproc=yes
10261 else
10262   echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10264
10265   ac_header_preproc=no
10266 fi
10267
10268 rm -f conftest.err conftest.$ac_ext
10269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10270 echo "${ECHO_T}$ac_header_preproc" >&6; }
10271
10272 # So?  What about this header?
10273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10274   yes:no: )
10275     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10277     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10279     ac_header_preproc=yes
10280     ;;
10281   no:yes:* )
10282     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10284     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10285 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10286     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10288     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10289 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10290     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10292     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10294     ( cat <<\_ASBOX
10295 ## ---------------------------------------- ##
10296 ## Report this to pgsql-bugs@postgresql.org ##
10297 ## ---------------------------------------- ##
10298 _ASBOX
10299      ) | sed "s/^/$as_me: WARNING:     /" >&2
10300     ;;
10301 esac
10302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10305   echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307   eval "$as_ac_Header=\$ac_header_preproc"
10308 fi
10309 ac_res=`eval echo '${'$as_ac_Header'}'`
10310                { echo "$as_me:$LINENO: result: $ac_res" >&5
10311 echo "${ECHO_T}$ac_res" >&6; }
10312
10313 fi
10314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10315   cat >>confdefs.h <<_ACEOF
10316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10317 _ACEOF
10318
10319 else
10320   { { echo "$as_me:$LINENO: error: readline header not found
10321 If you have libedit already installed, see config.log for details on the
10322 failure.  It is possible the compiler isn't looking in the proper directory.
10323 Use --without-readline to disable libedit support." >&5
10324 echo "$as_me: error: readline header not found
10325 If you have libedit already installed, see config.log for details on the
10326 failure.  It is possible the compiler isn't looking in the proper directory.
10327 Use --without-readline to disable libedit support." >&2;}
10328    { (exit 1); exit 1; }; }
10329 fi
10330
10331 done
10332
10333 fi
10334
10335 done
10336
10337 fi
10338
10339 done
10340
10341 # Note: in a libedit installation, history.h is sometimes a dummy, and may
10342 # not be there at all.  Hence, don't complain if not found.  We must check
10343 # though, since in yet other versions it is an independent header.
10344
10345 for ac_header in editline/history.h
10346 do
10347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10349   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 fi
10354 ac_res=`eval echo '${'$as_ac_Header'}'`
10355                { echo "$as_me:$LINENO: result: $ac_res" >&5
10356 echo "${ECHO_T}$ac_res" >&6; }
10357 else
10358   # Is the header compilable?
10359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10361 cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h.  */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h.  */
10367 $ac_includes_default
10368 #include <$ac_header>
10369 _ACEOF
10370 rm -f conftest.$ac_objext
10371 if { (ac_try="$ac_compile"
10372 case "(($ac_try" in
10373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10374   *) ac_try_echo=$ac_try;;
10375 esac
10376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10377   (eval "$ac_compile") 2>conftest.er1
10378   ac_status=$?
10379   grep -v '^ *+' conftest.er1 >conftest.err
10380   rm -f conftest.er1
10381   cat conftest.err >&5
10382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10383   (exit $ac_status); } && {
10384          test -z "$ac_c_werror_flag" ||
10385          test ! -s conftest.err
10386        } && test -s conftest.$ac_objext; then
10387   ac_header_compiler=yes
10388 else
10389   echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.$ac_ext >&5
10391
10392         ac_header_compiler=no
10393 fi
10394
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10397 echo "${ECHO_T}$ac_header_compiler" >&6; }
10398
10399 # Is the header present?
10400 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10402 cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408 #include <$ac_header>
10409 _ACEOF
10410 if { (ac_try="$ac_cpp conftest.$ac_ext"
10411 case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10417   ac_status=$?
10418   grep -v '^ *+' conftest.er1 >conftest.err
10419   rm -f conftest.er1
10420   cat conftest.err >&5
10421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422   (exit $ac_status); } >/dev/null && {
10423          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10424          test ! -s conftest.err
10425        }; then
10426   ac_header_preproc=yes
10427 else
10428   echo "$as_me: failed program was:" >&5
10429 sed 's/^/| /' conftest.$ac_ext >&5
10430
10431   ac_header_preproc=no
10432 fi
10433
10434 rm -f conftest.err conftest.$ac_ext
10435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10436 echo "${ECHO_T}$ac_header_preproc" >&6; }
10437
10438 # So?  What about this header?
10439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10440   yes:no: )
10441     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10445     ac_header_preproc=yes
10446     ;;
10447   no:yes:* )
10448     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10450     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10451 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10452     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10454     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10455 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10458     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10460     ( cat <<\_ASBOX
10461 ## ---------------------------------------- ##
10462 ## Report this to pgsql-bugs@postgresql.org ##
10463 ## ---------------------------------------- ##
10464 _ASBOX
10465      ) | sed "s/^/$as_me: WARNING:     /" >&2
10466     ;;
10467 esac
10468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10471   echo $ECHO_N "(cached) $ECHO_C" >&6
10472 else
10473   eval "$as_ac_Header=\$ac_header_preproc"
10474 fi
10475 ac_res=`eval echo '${'$as_ac_Header'}'`
10476                { echo "$as_me:$LINENO: result: $ac_res" >&5
10477 echo "${ECHO_T}$ac_res" >&6; }
10478
10479 fi
10480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10481   cat >>confdefs.h <<_ACEOF
10482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10483 _ACEOF
10484
10485 else
10486
10487 for ac_header in history.h
10488 do
10489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10491   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10494   echo $ECHO_N "(cached) $ECHO_C" >&6
10495 fi
10496 ac_res=`eval echo '${'$as_ac_Header'}'`
10497                { echo "$as_me:$LINENO: result: $ac_res" >&5
10498 echo "${ECHO_T}$ac_res" >&6; }
10499 else
10500   # Is the header compilable?
10501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h.  */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h.  */
10509 $ac_includes_default
10510 #include <$ac_header>
10511 _ACEOF
10512 rm -f conftest.$ac_objext
10513 if { (ac_try="$ac_compile"
10514 case "(($ac_try" in
10515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10516   *) ac_try_echo=$ac_try;;
10517 esac
10518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10519   (eval "$ac_compile") 2>conftest.er1
10520   ac_status=$?
10521   grep -v '^ *+' conftest.er1 >conftest.err
10522   rm -f conftest.er1
10523   cat conftest.err >&5
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); } && {
10526          test -z "$ac_c_werror_flag" ||
10527          test ! -s conftest.err
10528        } && test -s conftest.$ac_objext; then
10529   ac_header_compiler=yes
10530 else
10531   echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.$ac_ext >&5
10533
10534         ac_header_compiler=no
10535 fi
10536
10537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10539 echo "${ECHO_T}$ac_header_compiler" >&6; }
10540
10541 # Is the header present?
10542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10544 cat >conftest.$ac_ext <<_ACEOF
10545 /* confdefs.h.  */
10546 _ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h.  */
10550 #include <$ac_header>
10551 _ACEOF
10552 if { (ac_try="$ac_cpp conftest.$ac_ext"
10553 case "(($ac_try" in
10554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10555   *) ac_try_echo=$ac_try;;
10556 esac
10557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10559   ac_status=$?
10560   grep -v '^ *+' conftest.er1 >conftest.err
10561   rm -f conftest.er1
10562   cat conftest.err >&5
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); } >/dev/null && {
10565          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10566          test ! -s conftest.err
10567        }; then
10568   ac_header_preproc=yes
10569 else
10570   echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573   ac_header_preproc=no
10574 fi
10575
10576 rm -f conftest.err conftest.$ac_ext
10577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10578 echo "${ECHO_T}$ac_header_preproc" >&6; }
10579
10580 # So?  What about this header?
10581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10582   yes:no: )
10583     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10587     ac_header_preproc=yes
10588     ;;
10589   no:yes:* )
10590     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10592     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10593 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10594     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10596     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10597 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10600     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10602     ( cat <<\_ASBOX
10603 ## ---------------------------------------- ##
10604 ## Report this to pgsql-bugs@postgresql.org ##
10605 ## ---------------------------------------- ##
10606 _ASBOX
10607      ) | sed "s/^/$as_me: WARNING:     /" >&2
10608     ;;
10609 esac
10610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10613   echo $ECHO_N "(cached) $ECHO_C" >&6
10614 else
10615   eval "$as_ac_Header=\$ac_header_preproc"
10616 fi
10617 ac_res=`eval echo '${'$as_ac_Header'}'`
10618                { echo "$as_me:$LINENO: result: $ac_res" >&5
10619 echo "${ECHO_T}$ac_res" >&6; }
10620
10621 fi
10622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10623   cat >>confdefs.h <<_ACEOF
10624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10625 _ACEOF
10626
10627 else
10628
10629 for ac_header in readline/history.h
10630 do
10631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10633   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10636   echo $ECHO_N "(cached) $ECHO_C" >&6
10637 fi
10638 ac_res=`eval echo '${'$as_ac_Header'}'`
10639                { echo "$as_me:$LINENO: result: $ac_res" >&5
10640 echo "${ECHO_T}$ac_res" >&6; }
10641 else
10642   # Is the header compilable?
10643 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10644 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10645 cat >conftest.$ac_ext <<_ACEOF
10646 /* confdefs.h.  */
10647 _ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h.  */
10651 $ac_includes_default
10652 #include <$ac_header>
10653 _ACEOF
10654 rm -f conftest.$ac_objext
10655 if { (ac_try="$ac_compile"
10656 case "(($ac_try" in
10657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658   *) ac_try_echo=$ac_try;;
10659 esac
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661   (eval "$ac_compile") 2>conftest.er1
10662   ac_status=$?
10663   grep -v '^ *+' conftest.er1 >conftest.err
10664   rm -f conftest.er1
10665   cat conftest.err >&5
10666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667   (exit $ac_status); } && {
10668          test -z "$ac_c_werror_flag" ||
10669          test ! -s conftest.err
10670        } && test -s conftest.$ac_objext; then
10671   ac_header_compiler=yes
10672 else
10673   echo "$as_me: failed program was:" >&5
10674 sed 's/^/| /' conftest.$ac_ext >&5
10675
10676         ac_header_compiler=no
10677 fi
10678
10679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10680 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10681 echo "${ECHO_T}$ac_header_compiler" >&6; }
10682
10683 # Is the header present?
10684 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10686 cat >conftest.$ac_ext <<_ACEOF
10687 /* confdefs.h.  */
10688 _ACEOF
10689 cat confdefs.h >>conftest.$ac_ext
10690 cat >>conftest.$ac_ext <<_ACEOF
10691 /* end confdefs.h.  */
10692 #include <$ac_header>
10693 _ACEOF
10694 if { (ac_try="$ac_cpp conftest.$ac_ext"
10695 case "(($ac_try" in
10696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697   *) ac_try_echo=$ac_try;;
10698 esac
10699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10701   ac_status=$?
10702   grep -v '^ *+' conftest.er1 >conftest.err
10703   rm -f conftest.er1
10704   cat conftest.err >&5
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); } >/dev/null && {
10707          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10708          test ! -s conftest.err
10709        }; then
10710   ac_header_preproc=yes
10711 else
10712   echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715   ac_header_preproc=no
10716 fi
10717
10718 rm -f conftest.err conftest.$ac_ext
10719 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10720 echo "${ECHO_T}$ac_header_preproc" >&6; }
10721
10722 # So?  What about this header?
10723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10724   yes:no: )
10725     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10726 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10729     ac_header_preproc=yes
10730     ;;
10731   no:yes:* )
10732     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10733 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10734     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10735 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10736     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10737 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10738     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10739 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10742     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10743 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10744     ( cat <<\_ASBOX
10745 ## ---------------------------------------- ##
10746 ## Report this to pgsql-bugs@postgresql.org ##
10747 ## ---------------------------------------- ##
10748 _ASBOX
10749      ) | sed "s/^/$as_me: WARNING:     /" >&2
10750     ;;
10751 esac
10752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10755   echo $ECHO_N "(cached) $ECHO_C" >&6
10756 else
10757   eval "$as_ac_Header=\$ac_header_preproc"
10758 fi
10759 ac_res=`eval echo '${'$as_ac_Header'}'`
10760                { echo "$as_me:$LINENO: result: $ac_res" >&5
10761 echo "${ECHO_T}$ac_res" >&6; }
10762
10763 fi
10764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10765   cat >>confdefs.h <<_ACEOF
10766 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10767 _ACEOF
10768
10769 fi
10770
10771 done
10772
10773 fi
10774
10775 done
10776
10777 fi
10778
10779 done
10780
10781 fi
10782
10783 if test "$with_zlib" = yes; then
10784   if test "${ac_cv_header_zlib_h+set}" = set; then
10785   { echo "$as_me:$LINENO: checking for zlib.h" >&5
10786 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10787 if test "${ac_cv_header_zlib_h+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 fi
10790 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10791 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10792 else
10793   # Is the header compilable?
10794 { echo "$as_me:$LINENO: checking zlib.h usability" >&5
10795 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; }
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h.  */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h.  */
10802 $ac_includes_default
10803 #include <zlib.h>
10804 _ACEOF
10805 rm -f conftest.$ac_objext
10806 if { (ac_try="$ac_compile"
10807 case "(($ac_try" in
10808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809   *) ac_try_echo=$ac_try;;
10810 esac
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812   (eval "$ac_compile") 2>conftest.er1
10813   ac_status=$?
10814   grep -v '^ *+' conftest.er1 >conftest.err
10815   rm -f conftest.er1
10816   cat conftest.err >&5
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } && {
10819          test -z "$ac_c_werror_flag" ||
10820          test ! -s conftest.err
10821        } && test -s conftest.$ac_objext; then
10822   ac_header_compiler=yes
10823 else
10824   echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827         ac_header_compiler=no
10828 fi
10829
10830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10832 echo "${ECHO_T}$ac_header_compiler" >&6; }
10833
10834 # Is the header present?
10835 { echo "$as_me:$LINENO: checking zlib.h presence" >&5
10836 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; }
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843 #include <zlib.h>
10844 _ACEOF
10845 if { (ac_try="$ac_cpp conftest.$ac_ext"
10846 case "(($ac_try" in
10847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848   *) ac_try_echo=$ac_try;;
10849 esac
10850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10851   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10852   ac_status=$?
10853   grep -v '^ *+' conftest.er1 >conftest.err
10854   rm -f conftest.er1
10855   cat conftest.err >&5
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } >/dev/null && {
10858          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10859          test ! -s conftest.err
10860        }; then
10861   ac_header_preproc=yes
10862 else
10863   echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10865
10866   ac_header_preproc=no
10867 fi
10868
10869 rm -f conftest.err conftest.$ac_ext
10870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10871 echo "${ECHO_T}$ac_header_preproc" >&6; }
10872
10873 # So?  What about this header?
10874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10875   yes:no: )
10876     { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
10877 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10878     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
10879 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
10880     ac_header_preproc=yes
10881     ;;
10882   no:yes:* )
10883     { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
10884 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
10885     { echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
10886 echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
10887     { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
10888 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
10889     { echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
10890 echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10891     { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
10892 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
10893     { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
10894 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
10895     ( cat <<\_ASBOX
10896 ## ---------------------------------------- ##
10897 ## Report this to pgsql-bugs@postgresql.org ##
10898 ## ---------------------------------------- ##
10899 _ASBOX
10900      ) | sed "s/^/$as_me: WARNING:     /" >&2
10901     ;;
10902 esac
10903 { echo "$as_me:$LINENO: checking for zlib.h" >&5
10904 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
10905 if test "${ac_cv_header_zlib_h+set}" = set; then
10906   echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908   ac_cv_header_zlib_h=$ac_header_preproc
10909 fi
10910 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
10911 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
10912
10913 fi
10914 if test $ac_cv_header_zlib_h = yes; then
10915   :
10916 else
10917   { { echo "$as_me:$LINENO: error: zlib header not found
10918 If you have zlib already installed, see config.log for details on the
10919 failure.  It is possible the compiler isn't looking in the proper directory.
10920 Use --without-zlib to disable zlib support." >&5
10921 echo "$as_me: error: zlib header not found
10922 If you have zlib already installed, see config.log for details on the
10923 failure.  It is possible the compiler isn't looking in the proper directory.
10924 Use --without-zlib to disable zlib support." >&2;}
10925    { (exit 1); exit 1; }; }
10926 fi
10927
10928
10929 fi
10930
10931 if test "$with_gssapi" = yes ; then
10932
10933 for ac_header in gssapi/gssapi.h
10934 do
10935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10937   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10940   echo $ECHO_N "(cached) $ECHO_C" >&6
10941 fi
10942 ac_res=`eval echo '${'$as_ac_Header'}'`
10943                { echo "$as_me:$LINENO: result: $ac_res" >&5
10944 echo "${ECHO_T}$ac_res" >&6; }
10945 else
10946   # Is the header compilable?
10947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h.  */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h.  */
10955 $ac_includes_default
10956 #include <$ac_header>
10957 _ACEOF
10958 rm -f conftest.$ac_objext
10959 if { (ac_try="$ac_compile"
10960 case "(($ac_try" in
10961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10962   *) ac_try_echo=$ac_try;;
10963 esac
10964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10965   (eval "$ac_compile") 2>conftest.er1
10966   ac_status=$?
10967   grep -v '^ *+' conftest.er1 >conftest.err
10968   rm -f conftest.er1
10969   cat conftest.err >&5
10970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971   (exit $ac_status); } && {
10972          test -z "$ac_c_werror_flag" ||
10973          test ! -s conftest.err
10974        } && test -s conftest.$ac_objext; then
10975   ac_header_compiler=yes
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980         ac_header_compiler=no
10981 fi
10982
10983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10985 echo "${ECHO_T}$ac_header_compiler" >&6; }
10986
10987 # Is the header present?
10988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10990 cat >conftest.$ac_ext <<_ACEOF
10991 /* confdefs.h.  */
10992 _ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h.  */
10996 #include <$ac_header>
10997 _ACEOF
10998 if { (ac_try="$ac_cpp conftest.$ac_ext"
10999 case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } >/dev/null && {
11011          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11012          test ! -s conftest.err
11013        }; then
11014   ac_header_preproc=yes
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019   ac_header_preproc=no
11020 fi
11021
11022 rm -f conftest.err conftest.$ac_ext
11023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11024 echo "${ECHO_T}$ac_header_preproc" >&6; }
11025
11026 # So?  What about this header?
11027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11028   yes:no: )
11029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11033     ac_header_preproc=yes
11034     ;;
11035   no:yes:* )
11036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11048     ( cat <<\_ASBOX
11049 ## ---------------------------------------- ##
11050 ## Report this to pgsql-bugs@postgresql.org ##
11051 ## ---------------------------------------- ##
11052 _ASBOX
11053      ) | sed "s/^/$as_me: WARNING:     /" >&2
11054     ;;
11055 esac
11056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11059   echo $ECHO_N "(cached) $ECHO_C" >&6
11060 else
11061   eval "$as_ac_Header=\$ac_header_preproc"
11062 fi
11063 ac_res=`eval echo '${'$as_ac_Header'}'`
11064                { echo "$as_me:$LINENO: result: $ac_res" >&5
11065 echo "${ECHO_T}$ac_res" >&6; }
11066
11067 fi
11068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11069   cat >>confdefs.h <<_ACEOF
11070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11071 _ACEOF
11072
11073 else
11074
11075 for ac_header in gssapi.h
11076 do
11077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11079   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11082   echo $ECHO_N "(cached) $ECHO_C" >&6
11083 fi
11084 ac_res=`eval echo '${'$as_ac_Header'}'`
11085                { echo "$as_me:$LINENO: result: $ac_res" >&5
11086 echo "${ECHO_T}$ac_res" >&6; }
11087 else
11088   # Is the header compilable?
11089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h.  */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h.  */
11097 $ac_includes_default
11098 #include <$ac_header>
11099 _ACEOF
11100 rm -f conftest.$ac_objext
11101 if { (ac_try="$ac_compile"
11102 case "(($ac_try" in
11103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104   *) ac_try_echo=$ac_try;;
11105 esac
11106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11107   (eval "$ac_compile") 2>conftest.er1
11108   ac_status=$?
11109   grep -v '^ *+' conftest.er1 >conftest.err
11110   rm -f conftest.er1
11111   cat conftest.err >&5
11112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113   (exit $ac_status); } && {
11114          test -z "$ac_c_werror_flag" ||
11115          test ! -s conftest.err
11116        } && test -s conftest.$ac_objext; then
11117   ac_header_compiler=yes
11118 else
11119   echo "$as_me: failed program was:" >&5
11120 sed 's/^/| /' conftest.$ac_ext >&5
11121
11122         ac_header_compiler=no
11123 fi
11124
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11127 echo "${ECHO_T}$ac_header_compiler" >&6; }
11128
11129 # Is the header present?
11130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11132 cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <$ac_header>
11139 _ACEOF
11140 if { (ac_try="$ac_cpp conftest.$ac_ext"
11141 case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11147   ac_status=$?
11148   grep -v '^ *+' conftest.er1 >conftest.err
11149   rm -f conftest.er1
11150   cat conftest.err >&5
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); } >/dev/null && {
11153          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11154          test ! -s conftest.err
11155        }; then
11156   ac_header_preproc=yes
11157 else
11158   echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11160
11161   ac_header_preproc=no
11162 fi
11163
11164 rm -f conftest.err conftest.$ac_ext
11165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11166 echo "${ECHO_T}$ac_header_preproc" >&6; }
11167
11168 # So?  What about this header?
11169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11170   yes:no: )
11171     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11173     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11175     ac_header_preproc=yes
11176     ;;
11177   no:yes:* )
11178     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11180     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11181 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11182     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11184     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11185 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11186     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11188     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11190     ( cat <<\_ASBOX
11191 ## ---------------------------------------- ##
11192 ## Report this to pgsql-bugs@postgresql.org ##
11193 ## ---------------------------------------- ##
11194 _ASBOX
11195      ) | sed "s/^/$as_me: WARNING:     /" >&2
11196     ;;
11197 esac
11198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11201   echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203   eval "$as_ac_Header=\$ac_header_preproc"
11204 fi
11205 ac_res=`eval echo '${'$as_ac_Header'}'`
11206                { echo "$as_me:$LINENO: result: $ac_res" >&5
11207 echo "${ECHO_T}$ac_res" >&6; }
11208
11209 fi
11210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11211   cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11213 _ACEOF
11214
11215 else
11216   { { echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
11217 echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
11218    { (exit 1); exit 1; }; }
11219 fi
11220
11221 done
11222
11223 fi
11224
11225 done
11226
11227 fi
11228
11229 if test "$with_krb5" = yes ; then
11230   if test "${ac_cv_header_krb5_h+set}" = set; then
11231   { echo "$as_me:$LINENO: checking for krb5.h" >&5
11232 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11233 if test "${ac_cv_header_krb5_h+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 fi
11236 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11237 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11238 else
11239   # Is the header compilable?
11240 { echo "$as_me:$LINENO: checking krb5.h usability" >&5
11241 echo $ECHO_N "checking krb5.h usability... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11243 /* confdefs.h.  */
11244 _ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h.  */
11248 $ac_includes_default
11249 #include <krb5.h>
11250 _ACEOF
11251 rm -f conftest.$ac_objext
11252 if { (ac_try="$ac_compile"
11253 case "(($ac_try" in
11254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255   *) ac_try_echo=$ac_try;;
11256 esac
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258   (eval "$ac_compile") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } && {
11265          test -z "$ac_c_werror_flag" ||
11266          test ! -s conftest.err
11267        } && test -s conftest.$ac_objext; then
11268   ac_header_compiler=yes
11269 else
11270   echo "$as_me: failed program was:" >&5
11271 sed 's/^/| /' conftest.$ac_ext >&5
11272
11273         ac_header_compiler=no
11274 fi
11275
11276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11278 echo "${ECHO_T}$ac_header_compiler" >&6; }
11279
11280 # Is the header present?
11281 { echo "$as_me:$LINENO: checking krb5.h presence" >&5
11282 echo $ECHO_N "checking krb5.h presence... $ECHO_C" >&6; }
11283 cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h.  */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h.  */
11289 #include <krb5.h>
11290 _ACEOF
11291 if { (ac_try="$ac_cpp conftest.$ac_ext"
11292 case "(($ac_try" in
11293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11294   *) ac_try_echo=$ac_try;;
11295 esac
11296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11297   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11298   ac_status=$?
11299   grep -v '^ *+' conftest.er1 >conftest.err
11300   rm -f conftest.er1
11301   cat conftest.err >&5
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); } >/dev/null && {
11304          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11305          test ! -s conftest.err
11306        }; then
11307   ac_header_preproc=yes
11308 else
11309   echo "$as_me: failed program was:" >&5
11310 sed 's/^/| /' conftest.$ac_ext >&5
11311
11312   ac_header_preproc=no
11313 fi
11314
11315 rm -f conftest.err conftest.$ac_ext
11316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11317 echo "${ECHO_T}$ac_header_preproc" >&6; }
11318
11319 # So?  What about this header?
11320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11321   yes:no: )
11322     { echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
11323 echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11324     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
11325 echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
11326     ac_header_preproc=yes
11327     ;;
11328   no:yes:* )
11329     { echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
11330 echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
11331     { echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
11332 echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
11333     { echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
11334 echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
11335     { echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
11336 echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11337     { echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
11338 echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
11339     { echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
11340 echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
11341     ( cat <<\_ASBOX
11342 ## ---------------------------------------- ##
11343 ## Report this to pgsql-bugs@postgresql.org ##
11344 ## ---------------------------------------- ##
11345 _ASBOX
11346      ) | sed "s/^/$as_me: WARNING:     /" >&2
11347     ;;
11348 esac
11349 { echo "$as_me:$LINENO: checking for krb5.h" >&5
11350 echo $ECHO_N "checking for krb5.h... $ECHO_C" >&6; }
11351 if test "${ac_cv_header_krb5_h+set}" = set; then
11352   echo $ECHO_N "(cached) $ECHO_C" >&6
11353 else
11354   ac_cv_header_krb5_h=$ac_header_preproc
11355 fi
11356 { echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
11357 echo "${ECHO_T}$ac_cv_header_krb5_h" >&6; }
11358
11359 fi
11360 if test $ac_cv_header_krb5_h = yes; then
11361   :
11362 else
11363   { { echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
11364 echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
11365    { (exit 1); exit 1; }; }
11366 fi
11367
11368
11369 fi
11370
11371 if test "$with_openssl" = yes ; then
11372   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11373   { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11374 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11375 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11376   echo $ECHO_N "(cached) $ECHO_C" >&6
11377 fi
11378 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11379 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11380 else
11381   # Is the header compilable?
11382 { echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
11383 echo $ECHO_N "checking openssl/ssl.h usability... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h.  */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h.  */
11390 $ac_includes_default
11391 #include <openssl/ssl.h>
11392 _ACEOF
11393 rm -f conftest.$ac_objext
11394 if { (ac_try="$ac_compile"
11395 case "(($ac_try" in
11396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397   *) ac_try_echo=$ac_try;;
11398 esac
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400   (eval "$ac_compile") 2>conftest.er1
11401   ac_status=$?
11402   grep -v '^ *+' conftest.er1 >conftest.err
11403   rm -f conftest.er1
11404   cat conftest.err >&5
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); } && {
11407          test -z "$ac_c_werror_flag" ||
11408          test ! -s conftest.err
11409        } && test -s conftest.$ac_objext; then
11410   ac_header_compiler=yes
11411 else
11412   echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11414
11415         ac_header_compiler=no
11416 fi
11417
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11420 echo "${ECHO_T}$ac_header_compiler" >&6; }
11421
11422 # Is the header present?
11423 { echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
11424 echo $ECHO_N "checking openssl/ssl.h presence... $ECHO_C" >&6; }
11425 cat >conftest.$ac_ext <<_ACEOF
11426 /* confdefs.h.  */
11427 _ACEOF
11428 cat confdefs.h >>conftest.$ac_ext
11429 cat >>conftest.$ac_ext <<_ACEOF
11430 /* end confdefs.h.  */
11431 #include <openssl/ssl.h>
11432 _ACEOF
11433 if { (ac_try="$ac_cpp conftest.$ac_ext"
11434 case "(($ac_try" in
11435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11436   *) ac_try_echo=$ac_try;;
11437 esac
11438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11439   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11440   ac_status=$?
11441   grep -v '^ *+' conftest.er1 >conftest.err
11442   rm -f conftest.er1
11443   cat conftest.err >&5
11444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445   (exit $ac_status); } >/dev/null && {
11446          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11447          test ! -s conftest.err
11448        }; then
11449   ac_header_preproc=yes
11450 else
11451   echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11453
11454   ac_header_preproc=no
11455 fi
11456
11457 rm -f conftest.err conftest.$ac_ext
11458 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11459 echo "${ECHO_T}$ac_header_preproc" >&6; }
11460
11461 # So?  What about this header?
11462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11463   yes:no: )
11464     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
11465 echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11466     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
11467 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
11468     ac_header_preproc=yes
11469     ;;
11470   no:yes:* )
11471     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
11472 echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
11473     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
11474 echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
11475     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
11476 echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
11477     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
11478 echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11479     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
11480 echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
11481     { echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
11482 echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
11483     ( cat <<\_ASBOX
11484 ## ---------------------------------------- ##
11485 ## Report this to pgsql-bugs@postgresql.org ##
11486 ## ---------------------------------------- ##
11487 _ASBOX
11488      ) | sed "s/^/$as_me: WARNING:     /" >&2
11489     ;;
11490 esac
11491 { echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
11492 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6; }
11493 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
11494   echo $ECHO_N "(cached) $ECHO_C" >&6
11495 else
11496   ac_cv_header_openssl_ssl_h=$ac_header_preproc
11497 fi
11498 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
11499 echo "${ECHO_T}$ac_cv_header_openssl_ssl_h" >&6; }
11500
11501 fi
11502 if test $ac_cv_header_openssl_ssl_h = yes; then
11503   :
11504 else
11505   { { echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
11506 echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
11507    { (exit 1); exit 1; }; }
11508 fi
11509
11510
11511   if test "${ac_cv_header_openssl_err_h+set}" = set; then
11512   { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11513 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11514 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11515   echo $ECHO_N "(cached) $ECHO_C" >&6
11516 fi
11517 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11518 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11519 else
11520   # Is the header compilable?
11521 { echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
11522 echo $ECHO_N "checking openssl/err.h usability... $ECHO_C" >&6; }
11523 cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 $ac_includes_default
11530 #include <openssl/err.h>
11531 _ACEOF
11532 rm -f conftest.$ac_objext
11533 if { (ac_try="$ac_compile"
11534 case "(($ac_try" in
11535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536   *) ac_try_echo=$ac_try;;
11537 esac
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539   (eval "$ac_compile") 2>conftest.er1
11540   ac_status=$?
11541   grep -v '^ *+' conftest.er1 >conftest.err
11542   rm -f conftest.er1
11543   cat conftest.err >&5
11544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545   (exit $ac_status); } && {
11546          test -z "$ac_c_werror_flag" ||
11547          test ! -s conftest.err
11548        } && test -s conftest.$ac_objext; then
11549   ac_header_compiler=yes
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554         ac_header_compiler=no
11555 fi
11556
11557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11559 echo "${ECHO_T}$ac_header_compiler" >&6; }
11560
11561 # Is the header present?
11562 { echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
11563 echo $ECHO_N "checking openssl/err.h presence... $ECHO_C" >&6; }
11564 cat >conftest.$ac_ext <<_ACEOF
11565 /* confdefs.h.  */
11566 _ACEOF
11567 cat confdefs.h >>conftest.$ac_ext
11568 cat >>conftest.$ac_ext <<_ACEOF
11569 /* end confdefs.h.  */
11570 #include <openssl/err.h>
11571 _ACEOF
11572 if { (ac_try="$ac_cpp conftest.$ac_ext"
11573 case "(($ac_try" in
11574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11575   *) ac_try_echo=$ac_try;;
11576 esac
11577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11579   ac_status=$?
11580   grep -v '^ *+' conftest.er1 >conftest.err
11581   rm -f conftest.er1
11582   cat conftest.err >&5
11583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584   (exit $ac_status); } >/dev/null && {
11585          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11586          test ! -s conftest.err
11587        }; then
11588   ac_header_preproc=yes
11589 else
11590   echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11592
11593   ac_header_preproc=no
11594 fi
11595
11596 rm -f conftest.err conftest.$ac_ext
11597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11598 echo "${ECHO_T}$ac_header_preproc" >&6; }
11599
11600 # So?  What about this header?
11601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11602   yes:no: )
11603     { echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
11604 echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11605     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
11606 echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
11607     ac_header_preproc=yes
11608     ;;
11609   no:yes:* )
11610     { echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
11611 echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
11612     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
11613 echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
11614     { echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
11615 echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
11616     { echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
11617 echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
11618     { echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
11619 echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
11620     { echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
11621 echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
11622     ( cat <<\_ASBOX
11623 ## ---------------------------------------- ##
11624 ## Report this to pgsql-bugs@postgresql.org ##
11625 ## ---------------------------------------- ##
11626 _ASBOX
11627      ) | sed "s/^/$as_me: WARNING:     /" >&2
11628     ;;
11629 esac
11630 { echo "$as_me:$LINENO: checking for openssl/err.h" >&5
11631 echo $ECHO_N "checking for openssl/err.h... $ECHO_C" >&6; }
11632 if test "${ac_cv_header_openssl_err_h+set}" = set; then
11633   echo $ECHO_N "(cached) $ECHO_C" >&6
11634 else
11635   ac_cv_header_openssl_err_h=$ac_header_preproc
11636 fi
11637 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
11638 echo "${ECHO_T}$ac_cv_header_openssl_err_h" >&6; }
11639
11640 fi
11641 if test $ac_cv_header_openssl_err_h = yes; then
11642   :
11643 else
11644   { { echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
11645 echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
11646    { (exit 1); exit 1; }; }
11647 fi
11648
11649
11650
11651 for ac_func in ERR_set_mark
11652 do
11653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11654 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11657   echo $ECHO_N "(cached) $ECHO_C" >&6
11658 else
11659   cat >conftest.$ac_ext <<_ACEOF
11660 /* confdefs.h.  */
11661 _ACEOF
11662 cat confdefs.h >>conftest.$ac_ext
11663 cat >>conftest.$ac_ext <<_ACEOF
11664 /* end confdefs.h.  */
11665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11667 #define $ac_func innocuous_$ac_func
11668
11669 /* System header to define __stub macros and hopefully few prototypes,
11670     which can conflict with char $ac_func (); below.
11671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11672     <limits.h> exists even on freestanding compilers.  */
11673
11674 #ifdef __STDC__
11675 # include <limits.h>
11676 #else
11677 # include <assert.h>
11678 #endif
11679
11680 #undef $ac_func
11681
11682 /* Override any GCC internal prototype to avoid an error.
11683    Use char because int might match the return type of a GCC
11684    builtin and then its argument prototype would still apply.  */
11685 #ifdef __cplusplus
11686 extern "C"
11687 #endif
11688 char $ac_func ();
11689 /* The GNU C library defines this for functions which it implements
11690     to always fail with ENOSYS.  Some functions are actually named
11691     something starting with __ and the normal name is an alias.  */
11692 #if defined __stub_$ac_func || defined __stub___$ac_func
11693 choke me
11694 #endif
11695
11696 int
11697 main ()
11698 {
11699 return $ac_func ();
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (ac_try="$ac_link"
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_link") 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); } && {
11718          test -z "$ac_c_werror_flag" ||
11719          test ! -s conftest.err
11720        } && test -s conftest$ac_exeext &&
11721        $as_test_x conftest$ac_exeext; then
11722   eval "$as_ac_var=yes"
11723 else
11724   echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727         eval "$as_ac_var=no"
11728 fi
11729
11730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11731       conftest$ac_exeext conftest.$ac_ext
11732 fi
11733 ac_res=`eval echo '${'$as_ac_var'}'`
11734                { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11736 if test `eval echo '${'$as_ac_var'}'` = yes; then
11737   cat >>confdefs.h <<_ACEOF
11738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11739 _ACEOF
11740
11741 fi
11742 done
11743
11744 fi
11745
11746 if test "$with_pam" = yes ; then
11747
11748 for ac_header in security/pam_appl.h
11749 do
11750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11755   echo $ECHO_N "(cached) $ECHO_C" >&6
11756 fi
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758                { echo "$as_me:$LINENO: result: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11760 else
11761   # Is the header compilable?
11762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11764 cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770 $ac_includes_default
11771 #include <$ac_header>
11772 _ACEOF
11773 rm -f conftest.$ac_objext
11774 if { (ac_try="$ac_compile"
11775 case "(($ac_try" in
11776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11777   *) ac_try_echo=$ac_try;;
11778 esac
11779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11780   (eval "$ac_compile") 2>conftest.er1
11781   ac_status=$?
11782   grep -v '^ *+' conftest.er1 >conftest.err
11783   rm -f conftest.er1
11784   cat conftest.err >&5
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); } && {
11787          test -z "$ac_c_werror_flag" ||
11788          test ! -s conftest.err
11789        } && test -s conftest.$ac_objext; then
11790   ac_header_compiler=yes
11791 else
11792   echo "$as_me: failed program was:" >&5
11793 sed 's/^/| /' conftest.$ac_ext >&5
11794
11795         ac_header_compiler=no
11796 fi
11797
11798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11800 echo "${ECHO_T}$ac_header_compiler" >&6; }
11801
11802 # Is the header present?
11803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h.  */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h.  */
11811 #include <$ac_header>
11812 _ACEOF
11813 if { (ac_try="$ac_cpp conftest.$ac_ext"
11814 case "(($ac_try" in
11815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816   *) ac_try_echo=$ac_try;;
11817 esac
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } >/dev/null && {
11826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11827          test ! -s conftest.err
11828        }; then
11829   ac_header_preproc=yes
11830 else
11831   echo "$as_me: failed program was:" >&5
11832 sed 's/^/| /' conftest.$ac_ext >&5
11833
11834   ac_header_preproc=no
11835 fi
11836
11837 rm -f conftest.err conftest.$ac_ext
11838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11839 echo "${ECHO_T}$ac_header_preproc" >&6; }
11840
11841 # So?  What about this header?
11842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11843   yes:no: )
11844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11848     ac_header_preproc=yes
11849     ;;
11850   no:yes:* )
11851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11863     ( cat <<\_ASBOX
11864 ## ---------------------------------------- ##
11865 ## Report this to pgsql-bugs@postgresql.org ##
11866 ## ---------------------------------------- ##
11867 _ASBOX
11868      ) | sed "s/^/$as_me: WARNING:     /" >&2
11869     ;;
11870 esac
11871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   eval "$as_ac_Header=\$ac_header_preproc"
11877 fi
11878 ac_res=`eval echo '${'$as_ac_Header'}'`
11879                { echo "$as_me:$LINENO: result: $ac_res" >&5
11880 echo "${ECHO_T}$ac_res" >&6; }
11881
11882 fi
11883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11884   cat >>confdefs.h <<_ACEOF
11885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11886 _ACEOF
11887
11888 else
11889
11890 for ac_header in pam/pam_appl.h
11891 do
11892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11894   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897   echo $ECHO_N "(cached) $ECHO_C" >&6
11898 fi
11899 ac_res=`eval echo '${'$as_ac_Header'}'`
11900                { echo "$as_me:$LINENO: result: $ac_res" >&5
11901 echo "${ECHO_T}$ac_res" >&6; }
11902 else
11903   # Is the header compilable?
11904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h.  */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h.  */
11912 $ac_includes_default
11913 #include <$ac_header>
11914 _ACEOF
11915 rm -f conftest.$ac_objext
11916 if { (ac_try="$ac_compile"
11917 case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_compile") 2>conftest.er1
11923   ac_status=$?
11924   grep -v '^ *+' conftest.er1 >conftest.err
11925   rm -f conftest.er1
11926   cat conftest.err >&5
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } && {
11929          test -z "$ac_c_werror_flag" ||
11930          test ! -s conftest.err
11931        } && test -s conftest.$ac_objext; then
11932   ac_header_compiler=yes
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937         ac_header_compiler=no
11938 fi
11939
11940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11942 echo "${ECHO_T}$ac_header_compiler" >&6; }
11943
11944 # Is the header present?
11945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11947 cat >conftest.$ac_ext <<_ACEOF
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 #include <$ac_header>
11954 _ACEOF
11955 if { (ac_try="$ac_cpp conftest.$ac_ext"
11956 case "(($ac_try" in
11957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958   *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11962   ac_status=$?
11963   grep -v '^ *+' conftest.er1 >conftest.err
11964   rm -f conftest.er1
11965   cat conftest.err >&5
11966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967   (exit $ac_status); } >/dev/null && {
11968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11969          test ! -s conftest.err
11970        }; then
11971   ac_header_preproc=yes
11972 else
11973   echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11975
11976   ac_header_preproc=no
11977 fi
11978
11979 rm -f conftest.err conftest.$ac_ext
11980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11981 echo "${ECHO_T}$ac_header_preproc" >&6; }
11982
11983 # So?  What about this header?
11984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11985   yes:no: )
11986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11990     ac_header_preproc=yes
11991     ;;
11992   no:yes:* )
11993     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11995     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11996 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11997     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11999     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12000 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12001     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12003     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12005     ( cat <<\_ASBOX
12006 ## ---------------------------------------- ##
12007 ## Report this to pgsql-bugs@postgresql.org ##
12008 ## ---------------------------------------- ##
12009 _ASBOX
12010      ) | sed "s/^/$as_me: WARNING:     /" >&2
12011     ;;
12012 esac
12013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12016   echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018   eval "$as_ac_Header=\$ac_header_preproc"
12019 fi
12020 ac_res=`eval echo '${'$as_ac_Header'}'`
12021                { echo "$as_me:$LINENO: result: $ac_res" >&5
12022 echo "${ECHO_T}$ac_res" >&6; }
12023
12024 fi
12025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12026   cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12028 _ACEOF
12029
12030 else
12031   { { echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
12032 echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
12033    { (exit 1); exit 1; }; }
12034 fi
12035
12036 done
12037
12038 fi
12039
12040 done
12041
12042 fi
12043
12044 if test "$with_libxml" = yes ; then
12045   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12046   { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12047 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12048 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12049   echo $ECHO_N "(cached) $ECHO_C" >&6
12050 fi
12051 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12052 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12053 else
12054   # Is the header compilable?
12055 { echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
12056 echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
12057 cat >conftest.$ac_ext <<_ACEOF
12058 /* confdefs.h.  */
12059 _ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h.  */
12063 $ac_includes_default
12064 #include <libxml/parser.h>
12065 _ACEOF
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_compile") 2>conftest.er1
12074   ac_status=$?
12075   grep -v '^ *+' conftest.er1 >conftest.err
12076   rm -f conftest.er1
12077   cat conftest.err >&5
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); } && {
12080          test -z "$ac_c_werror_flag" ||
12081          test ! -s conftest.err
12082        } && test -s conftest.$ac_objext; then
12083   ac_header_compiler=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088         ac_header_compiler=no
12089 fi
12090
12091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12093 echo "${ECHO_T}$ac_header_compiler" >&6; }
12094
12095 # Is the header present?
12096 { echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
12097 echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h.  */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h.  */
12104 #include <libxml/parser.h>
12105 _ACEOF
12106 if { (ac_try="$ac_cpp conftest.$ac_ext"
12107 case "(($ac_try" in
12108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12109   *) ac_try_echo=$ac_try;;
12110 esac
12111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12113   ac_status=$?
12114   grep -v '^ *+' conftest.er1 >conftest.err
12115   rm -f conftest.er1
12116   cat conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   (exit $ac_status); } >/dev/null && {
12119          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12120          test ! -s conftest.err
12121        }; then
12122   ac_header_preproc=yes
12123 else
12124   echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127   ac_header_preproc=no
12128 fi
12129
12130 rm -f conftest.err conftest.$ac_ext
12131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12132 echo "${ECHO_T}$ac_header_preproc" >&6; }
12133
12134 # So?  What about this header?
12135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12136   yes:no: )
12137     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
12138 echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12139     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
12140 echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
12141     ac_header_preproc=yes
12142     ;;
12143   no:yes:* )
12144     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
12145 echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
12146     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
12147 echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
12148     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
12149 echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
12150     { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
12151 echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12152     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
12153 echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
12154     { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
12155 echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
12156     ( cat <<\_ASBOX
12157 ## ---------------------------------------- ##
12158 ## Report this to pgsql-bugs@postgresql.org ##
12159 ## ---------------------------------------- ##
12160 _ASBOX
12161      ) | sed "s/^/$as_me: WARNING:     /" >&2
12162     ;;
12163 esac
12164 { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
12165 echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
12166 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
12167   echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169   ac_cv_header_libxml_parser_h=$ac_header_preproc
12170 fi
12171 { echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
12172 echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
12173
12174 fi
12175 if test $ac_cv_header_libxml_parser_h = yes; then
12176   :
12177 else
12178   { { echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
12179 echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
12180    { (exit 1); exit 1; }; }
12181 fi
12182
12183
12184 fi
12185
12186 if test "$with_libxslt" = yes ; then
12187   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12188   { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12189 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12190 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12191   echo $ECHO_N "(cached) $ECHO_C" >&6
12192 fi
12193 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12194 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12195 else
12196   # Is the header compilable?
12197 { echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
12198 echo $ECHO_N "checking libxslt/xslt.h usability... $ECHO_C" >&6; }
12199 cat >conftest.$ac_ext <<_ACEOF
12200 /* confdefs.h.  */
12201 _ACEOF
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h.  */
12205 $ac_includes_default
12206 #include <libxslt/xslt.h>
12207 _ACEOF
12208 rm -f conftest.$ac_objext
12209 if { (ac_try="$ac_compile"
12210 case "(($ac_try" in
12211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212   *) ac_try_echo=$ac_try;;
12213 esac
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215   (eval "$ac_compile") 2>conftest.er1
12216   ac_status=$?
12217   grep -v '^ *+' conftest.er1 >conftest.err
12218   rm -f conftest.er1
12219   cat conftest.err >&5
12220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221   (exit $ac_status); } && {
12222          test -z "$ac_c_werror_flag" ||
12223          test ! -s conftest.err
12224        } && test -s conftest.$ac_objext; then
12225   ac_header_compiler=yes
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230         ac_header_compiler=no
12231 fi
12232
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12235 echo "${ECHO_T}$ac_header_compiler" >&6; }
12236
12237 # Is the header present?
12238 { echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
12239 echo $ECHO_N "checking libxslt/xslt.h presence... $ECHO_C" >&6; }
12240 cat >conftest.$ac_ext <<_ACEOF
12241 /* confdefs.h.  */
12242 _ACEOF
12243 cat confdefs.h >>conftest.$ac_ext
12244 cat >>conftest.$ac_ext <<_ACEOF
12245 /* end confdefs.h.  */
12246 #include <libxslt/xslt.h>
12247 _ACEOF
12248 if { (ac_try="$ac_cpp conftest.$ac_ext"
12249 case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } >/dev/null && {
12261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12262          test ! -s conftest.err
12263        }; then
12264   ac_header_preproc=yes
12265 else
12266   echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12268
12269   ac_header_preproc=no
12270 fi
12271
12272 rm -f conftest.err conftest.$ac_ext
12273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12274 echo "${ECHO_T}$ac_header_preproc" >&6; }
12275
12276 # So?  What about this header?
12277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12278   yes:no: )
12279     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
12280 echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12281     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
12282 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
12283     ac_header_preproc=yes
12284     ;;
12285   no:yes:* )
12286     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
12287 echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
12288     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
12289 echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
12290     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
12291 echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
12292     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
12293 echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12294     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
12295 echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
12296     { echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
12297 echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
12298     ( cat <<\_ASBOX
12299 ## ---------------------------------------- ##
12300 ## Report this to pgsql-bugs@postgresql.org ##
12301 ## ---------------------------------------- ##
12302 _ASBOX
12303      ) | sed "s/^/$as_me: WARNING:     /" >&2
12304     ;;
12305 esac
12306 { echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
12307 echo $ECHO_N "checking for libxslt/xslt.h... $ECHO_C" >&6; }
12308 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
12309   echo $ECHO_N "(cached) $ECHO_C" >&6
12310 else
12311   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
12312 fi
12313 { echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
12314 echo "${ECHO_T}$ac_cv_header_libxslt_xslt_h" >&6; }
12315
12316 fi
12317 if test $ac_cv_header_libxslt_xslt_h = yes; then
12318   :
12319 else
12320   { { echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
12321 echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
12322    { (exit 1); exit 1; }; }
12323 fi
12324
12325
12326 fi
12327
12328 if test "$with_ldap" = yes ; then
12329   if test "$PORTNAME" != "win32"; then
12330
12331 for ac_header in ldap.h
12332 do
12333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12338   echo $ECHO_N "(cached) $ECHO_C" >&6
12339 fi
12340 ac_res=`eval echo '${'$as_ac_Header'}'`
12341                { echo "$as_me:$LINENO: result: $ac_res" >&5
12342 echo "${ECHO_T}$ac_res" >&6; }
12343 else
12344   # Is the header compilable?
12345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12347 cat >conftest.$ac_ext <<_ACEOF
12348 /* confdefs.h.  */
12349 _ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h.  */
12353 $ac_includes_default
12354 #include <$ac_header>
12355 _ACEOF
12356 rm -f conftest.$ac_objext
12357 if { (ac_try="$ac_compile"
12358 case "(($ac_try" in
12359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360   *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363   (eval "$ac_compile") 2>conftest.er1
12364   ac_status=$?
12365   grep -v '^ *+' conftest.er1 >conftest.err
12366   rm -f conftest.er1
12367   cat conftest.err >&5
12368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369   (exit $ac_status); } && {
12370          test -z "$ac_c_werror_flag" ||
12371          test ! -s conftest.err
12372        } && test -s conftest.$ac_objext; then
12373   ac_header_compiler=yes
12374 else
12375   echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378         ac_header_compiler=no
12379 fi
12380
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6; }
12384
12385 # Is the header present?
12386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12389 /* confdefs.h.  */
12390 _ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h.  */
12394 #include <$ac_header>
12395 _ACEOF
12396 if { (ac_try="$ac_cpp conftest.$ac_ext"
12397 case "(($ac_try" in
12398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399   *) ac_try_echo=$ac_try;;
12400 esac
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12403   ac_status=$?
12404   grep -v '^ *+' conftest.er1 >conftest.err
12405   rm -f conftest.er1
12406   cat conftest.err >&5
12407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408   (exit $ac_status); } >/dev/null && {
12409          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12410          test ! -s conftest.err
12411        }; then
12412   ac_header_preproc=yes
12413 else
12414   echo "$as_me: failed program was:" >&5
12415 sed 's/^/| /' conftest.$ac_ext >&5
12416
12417   ac_header_preproc=no
12418 fi
12419
12420 rm -f conftest.err conftest.$ac_ext
12421 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12422 echo "${ECHO_T}$ac_header_preproc" >&6; }
12423
12424 # So?  What about this header?
12425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12426   yes:no: )
12427     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12428 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12429     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12430 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12431     ac_header_preproc=yes
12432     ;;
12433   no:yes:* )
12434     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12435 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12436     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12437 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12438     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12439 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12440     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12441 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12442     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12443 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12444     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12445 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12446     ( cat <<\_ASBOX
12447 ## ---------------------------------------- ##
12448 ## Report this to pgsql-bugs@postgresql.org ##
12449 ## ---------------------------------------- ##
12450 _ASBOX
12451      ) | sed "s/^/$as_me: WARNING:     /" >&2
12452     ;;
12453 esac
12454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12457   echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459   eval "$as_ac_Header=\$ac_header_preproc"
12460 fi
12461 ac_res=`eval echo '${'$as_ac_Header'}'`
12462                { echo "$as_me:$LINENO: result: $ac_res" >&5
12463 echo "${ECHO_T}$ac_res" >&6; }
12464
12465 fi
12466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12467   cat >>confdefs.h <<_ACEOF
12468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12469 _ACEOF
12470
12471 else
12472   { { echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
12473 echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
12474    { (exit 1); exit 1; }; }
12475 fi
12476
12477 done
12478
12479   else
12480
12481 for ac_header in winldap.h
12482 do
12483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12487   echo $ECHO_N "(cached) $ECHO_C" >&6
12488 else
12489   cat >conftest.$ac_ext <<_ACEOF
12490 /* confdefs.h.  */
12491 _ACEOF
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h.  */
12495 $ac_includes_default
12496 #include <windows.h>
12497
12498
12499 #include <$ac_header>
12500 _ACEOF
12501 rm -f conftest.$ac_objext
12502 if { (ac_try="$ac_compile"
12503 case "(($ac_try" in
12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505   *) ac_try_echo=$ac_try;;
12506 esac
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508   (eval "$ac_compile") 2>conftest.er1
12509   ac_status=$?
12510   grep -v '^ *+' conftest.er1 >conftest.err
12511   rm -f conftest.er1
12512   cat conftest.err >&5
12513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514   (exit $ac_status); } && {
12515          test -z "$ac_c_werror_flag" ||
12516          test ! -s conftest.err
12517        } && test -s conftest.$ac_objext; then
12518   eval "$as_ac_Header=yes"
12519 else
12520   echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12522
12523         eval "$as_ac_Header=no"
12524 fi
12525
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12527 fi
12528 ac_res=`eval echo '${'$as_ac_Header'}'`
12529                { echo "$as_me:$LINENO: result: $ac_res" >&5
12530 echo "${ECHO_T}$ac_res" >&6; }
12531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12532   cat >>confdefs.h <<_ACEOF
12533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12534 _ACEOF
12535
12536 else
12537   { { echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
12538 echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
12539    { (exit 1); exit 1; }; }
12540 fi
12541
12542 done
12543
12544   fi
12545 fi
12546
12547 if test "$with_bonjour" = yes ; then
12548   if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12549   { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12550 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12551 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12552   echo $ECHO_N "(cached) $ECHO_C" >&6
12553 fi
12554 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12555 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12556 else
12557   # Is the header compilable?
12558 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h usability" >&5
12559 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h usability... $ECHO_C" >&6; }
12560 cat >conftest.$ac_ext <<_ACEOF
12561 /* confdefs.h.  */
12562 _ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h.  */
12566 $ac_includes_default
12567 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12568 _ACEOF
12569 rm -f conftest.$ac_objext
12570 if { (ac_try="$ac_compile"
12571 case "(($ac_try" in
12572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12573   *) ac_try_echo=$ac_try;;
12574 esac
12575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12576   (eval "$ac_compile") 2>conftest.er1
12577   ac_status=$?
12578   grep -v '^ *+' conftest.er1 >conftest.err
12579   rm -f conftest.er1
12580   cat conftest.err >&5
12581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582   (exit $ac_status); } && {
12583          test -z "$ac_c_werror_flag" ||
12584          test ! -s conftest.err
12585        } && test -s conftest.$ac_objext; then
12586   ac_header_compiler=yes
12587 else
12588   echo "$as_me: failed program was:" >&5
12589 sed 's/^/| /' conftest.$ac_ext >&5
12590
12591         ac_header_compiler=no
12592 fi
12593
12594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12596 echo "${ECHO_T}$ac_header_compiler" >&6; }
12597
12598 # Is the header present?
12599 { echo "$as_me:$LINENO: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence" >&5
12600 echo $ECHO_N "checking DNSServiceDiscovery/DNSServiceDiscovery.h presence... $ECHO_C" >&6; }
12601 cat >conftest.$ac_ext <<_ACEOF
12602 /* confdefs.h.  */
12603 _ACEOF
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h.  */
12607 #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
12608 _ACEOF
12609 if { (ac_try="$ac_cpp conftest.$ac_ext"
12610 case "(($ac_try" in
12611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12612   *) ac_try_echo=$ac_try;;
12613 esac
12614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12616   ac_status=$?
12617   grep -v '^ *+' conftest.er1 >conftest.err
12618   rm -f conftest.er1
12619   cat conftest.err >&5
12620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621   (exit $ac_status); } >/dev/null && {
12622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12623          test ! -s conftest.err
12624        }; then
12625   ac_header_preproc=yes
12626 else
12627   echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12629
12630   ac_header_preproc=no
12631 fi
12632
12633 rm -f conftest.err conftest.$ac_ext
12634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12635 echo "${ECHO_T}$ac_header_preproc" >&6; }
12636
12637 # So?  What about this header?
12638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12639   yes:no: )
12640     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&5
12641 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12642     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&5
12643 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the compiler's result" >&2;}
12644     ac_header_preproc=yes
12645     ;;
12646   no:yes:* )
12647     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&5
12648 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: present but cannot be compiled" >&2;}
12649     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&5
12650 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     check for missing prerequisite headers?" >&2;}
12651     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&5
12652 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: see the Autoconf documentation" >&2;}
12653     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&5
12654 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12655     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&5
12656 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: proceeding with the preprocessor's result" >&2;}
12657     { echo "$as_me:$LINENO: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&5
12658 echo "$as_me: WARNING: DNSServiceDiscovery/DNSServiceDiscovery.h: in the future, the compiler will take precedence" >&2;}
12659     ( cat <<\_ASBOX
12660 ## ---------------------------------------- ##
12661 ## Report this to pgsql-bugs@postgresql.org ##
12662 ## ---------------------------------------- ##
12663 _ASBOX
12664      ) | sed "s/^/$as_me: WARNING:     /" >&2
12665     ;;
12666 esac
12667 { echo "$as_me:$LINENO: checking for DNSServiceDiscovery/DNSServiceDiscovery.h" >&5
12668 echo $ECHO_N "checking for DNSServiceDiscovery/DNSServiceDiscovery.h... $ECHO_C" >&6; }
12669 if test "${ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h+set}" = set; then
12670   echo $ECHO_N "(cached) $ECHO_C" >&6
12671 else
12672   ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h=$ac_header_preproc
12673 fi
12674 { echo "$as_me:$LINENO: result: $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&5
12675 echo "${ECHO_T}$ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h" >&6; }
12676
12677 fi
12678 if test $ac_cv_header_DNSServiceDiscovery_DNSServiceDiscovery_h = yes; then
12679   :
12680 else
12681   { { echo "$as_me:$LINENO: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&5
12682 echo "$as_me: error: header file <DNSServiceDiscovery/DNSServiceDiscovery.h> is required for Bonjour" >&2;}
12683    { (exit 1); exit 1; }; }
12684 fi
12685
12686
12687 fi
12688
12689 # for contrib/uuid-ossp
12690 if test "$with_ossp_uuid" = yes ; then
12691
12692 for ac_header in ossp/uuid.h
12693 do
12694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12696   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12699   echo $ECHO_N "(cached) $ECHO_C" >&6
12700 fi
12701 ac_res=`eval echo '${'$as_ac_Header'}'`
12702                { echo "$as_me:$LINENO: result: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12704 else
12705   # Is the header compilable?
12706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12708 cat >conftest.$ac_ext <<_ACEOF
12709 /* confdefs.h.  */
12710 _ACEOF
12711 cat confdefs.h >>conftest.$ac_ext
12712 cat >>conftest.$ac_ext <<_ACEOF
12713 /* end confdefs.h.  */
12714 $ac_includes_default
12715 #include <$ac_header>
12716 _ACEOF
12717 rm -f conftest.$ac_objext
12718 if { (ac_try="$ac_compile"
12719 case "(($ac_try" in
12720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12721   *) ac_try_echo=$ac_try;;
12722 esac
12723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12724   (eval "$ac_compile") 2>conftest.er1
12725   ac_status=$?
12726   grep -v '^ *+' conftest.er1 >conftest.err
12727   rm -f conftest.er1
12728   cat conftest.err >&5
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); } && {
12731          test -z "$ac_c_werror_flag" ||
12732          test ! -s conftest.err
12733        } && test -s conftest.$ac_objext; then
12734   ac_header_compiler=yes
12735 else
12736   echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739         ac_header_compiler=no
12740 fi
12741
12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12744 echo "${ECHO_T}$ac_header_compiler" >&6; }
12745
12746 # Is the header present?
12747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12749 cat >conftest.$ac_ext <<_ACEOF
12750 /* confdefs.h.  */
12751 _ACEOF
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h.  */
12755 #include <$ac_header>
12756 _ACEOF
12757 if { (ac_try="$ac_cpp conftest.$ac_ext"
12758 case "(($ac_try" in
12759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760   *) ac_try_echo=$ac_try;;
12761 esac
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12764   ac_status=$?
12765   grep -v '^ *+' conftest.er1 >conftest.err
12766   rm -f conftest.er1
12767   cat conftest.err >&5
12768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769   (exit $ac_status); } >/dev/null && {
12770          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12771          test ! -s conftest.err
12772        }; then
12773   ac_header_preproc=yes
12774 else
12775   echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778   ac_header_preproc=no
12779 fi
12780
12781 rm -f conftest.err conftest.$ac_ext
12782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12783 echo "${ECHO_T}$ac_header_preproc" >&6; }
12784
12785 # So?  What about this header?
12786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12787   yes:no: )
12788     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12792     ac_header_preproc=yes
12793     ;;
12794   no:yes:* )
12795     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12797     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12798 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12799     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12801     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12802 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12805     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12807     ( cat <<\_ASBOX
12808 ## ---------------------------------------- ##
12809 ## Report this to pgsql-bugs@postgresql.org ##
12810 ## ---------------------------------------- ##
12811 _ASBOX
12812      ) | sed "s/^/$as_me: WARNING:     /" >&2
12813     ;;
12814 esac
12815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12818   echo $ECHO_N "(cached) $ECHO_C" >&6
12819 else
12820   eval "$as_ac_Header=\$ac_header_preproc"
12821 fi
12822 ac_res=`eval echo '${'$as_ac_Header'}'`
12823                { echo "$as_me:$LINENO: result: $ac_res" >&5
12824 echo "${ECHO_T}$ac_res" >&6; }
12825
12826 fi
12827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12828   cat >>confdefs.h <<_ACEOF
12829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12830 _ACEOF
12831
12832 else
12833
12834
12835 for ac_header in uuid.h
12836 do
12837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12839   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 fi
12844 ac_res=`eval echo '${'$as_ac_Header'}'`
12845                { echo "$as_me:$LINENO: result: $ac_res" >&5
12846 echo "${ECHO_T}$ac_res" >&6; }
12847 else
12848   # Is the header compilable?
12849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12851 cat >conftest.$ac_ext <<_ACEOF
12852 /* confdefs.h.  */
12853 _ACEOF
12854 cat confdefs.h >>conftest.$ac_ext
12855 cat >>conftest.$ac_ext <<_ACEOF
12856 /* end confdefs.h.  */
12857 $ac_includes_default
12858 #include <$ac_header>
12859 _ACEOF
12860 rm -f conftest.$ac_objext
12861 if { (ac_try="$ac_compile"
12862 case "(($ac_try" in
12863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12864   *) ac_try_echo=$ac_try;;
12865 esac
12866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12867   (eval "$ac_compile") 2>conftest.er1
12868   ac_status=$?
12869   grep -v '^ *+' conftest.er1 >conftest.err
12870   rm -f conftest.er1
12871   cat conftest.err >&5
12872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873   (exit $ac_status); } && {
12874          test -z "$ac_c_werror_flag" ||
12875          test ! -s conftest.err
12876        } && test -s conftest.$ac_objext; then
12877   ac_header_compiler=yes
12878 else
12879   echo "$as_me: failed program was:" >&5
12880 sed 's/^/| /' conftest.$ac_ext >&5
12881
12882         ac_header_compiler=no
12883 fi
12884
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12887 echo "${ECHO_T}$ac_header_compiler" >&6; }
12888
12889 # Is the header present?
12890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h.  */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h.  */
12898 #include <$ac_header>
12899 _ACEOF
12900 if { (ac_try="$ac_cpp conftest.$ac_ext"
12901 case "(($ac_try" in
12902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903   *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12907   ac_status=$?
12908   grep -v '^ *+' conftest.er1 >conftest.err
12909   rm -f conftest.er1
12910   cat conftest.err >&5
12911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912   (exit $ac_status); } >/dev/null && {
12913          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12914          test ! -s conftest.err
12915        }; then
12916   ac_header_preproc=yes
12917 else
12918   echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.$ac_ext >&5
12920
12921   ac_header_preproc=no
12922 fi
12923
12924 rm -f conftest.err conftest.$ac_ext
12925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12926 echo "${ECHO_T}$ac_header_preproc" >&6; }
12927
12928 # So?  What about this header?
12929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12930   yes:no: )
12931     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12935     ac_header_preproc=yes
12936     ;;
12937   no:yes:* )
12938     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12940     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12941 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12942     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12944     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12945 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12946     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12948     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12950     ( cat <<\_ASBOX
12951 ## ---------------------------------------- ##
12952 ## Report this to pgsql-bugs@postgresql.org ##
12953 ## ---------------------------------------- ##
12954 _ASBOX
12955      ) | sed "s/^/$as_me: WARNING:     /" >&2
12956     ;;
12957 esac
12958 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   eval "$as_ac_Header=\$ac_header_preproc"
12964 fi
12965 ac_res=`eval echo '${'$as_ac_Header'}'`
12966                { echo "$as_me:$LINENO: result: $ac_res" >&5
12967 echo "${ECHO_T}$ac_res" >&6; }
12968
12969 fi
12970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12971   cat >>confdefs.h <<_ACEOF
12972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12973 _ACEOF
12974
12975 else
12976   { { echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
12977 echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
12978    { (exit 1); exit 1; }; }
12979 fi
12980
12981 done
12982
12983 fi
12984
12985 done
12986
12987 fi
12988
12989
12990 ##
12991 ## Types, structures, compiler characteristics
12992 ##
12993
12994  { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12995 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
12996 if test "${ac_cv_c_bigendian+set}" = set; then
12997   echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999   # See if sys/param.h defines the BYTE_ORDER macro.
13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h.  */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h.  */
13006 #include <sys/types.h>
13007 #include <sys/param.h>
13008
13009 int
13010 main ()
13011 {
13012 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13013         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13014  bogus endian macros
13015 #endif
13016
13017   ;
13018   return 0;
13019 }
13020 _ACEOF
13021 rm -f conftest.$ac_objext
13022 if { (ac_try="$ac_compile"
13023 case "(($ac_try" in
13024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025   *) ac_try_echo=$ac_try;;
13026 esac
13027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13028   (eval "$ac_compile") 2>conftest.er1
13029   ac_status=$?
13030   grep -v '^ *+' conftest.er1 >conftest.err
13031   rm -f conftest.er1
13032   cat conftest.err >&5
13033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034   (exit $ac_status); } && {
13035          test -z "$ac_c_werror_flag" ||
13036          test ! -s conftest.err
13037        } && test -s conftest.$ac_objext; then
13038   # It does; now see whether it defined to BIG_ENDIAN or not.
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h.  */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h.  */
13045 #include <sys/types.h>
13046 #include <sys/param.h>
13047
13048 int
13049 main ()
13050 {
13051 #if BYTE_ORDER != BIG_ENDIAN
13052  not big endian
13053 #endif
13054
13055   ;
13056   return 0;
13057 }
13058 _ACEOF
13059 rm -f conftest.$ac_objext
13060 if { (ac_try="$ac_compile"
13061 case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_compile") 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } && {
13073          test -z "$ac_c_werror_flag" ||
13074          test ! -s conftest.err
13075        } && test -s conftest.$ac_objext; then
13076   ac_cv_c_bigendian=yes
13077 else
13078   echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13080
13081         ac_cv_c_bigendian=no
13082 fi
13083
13084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13085 else
13086   echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13088
13089         # It does not; compile a test program.
13090 if test "$cross_compiling" = yes; then
13091   # try to guess the endianness by grepping values into an object file
13092   ac_cv_c_bigendian=unknown
13093   cat >conftest.$ac_ext <<_ACEOF
13094 /* confdefs.h.  */
13095 _ACEOF
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h.  */
13099 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13100 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13101 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13102 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13103 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13104 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13105 int
13106 main ()
13107 {
13108  _ascii (); _ebcdic ();
13109   ;
13110   return 0;
13111 }
13112 _ACEOF
13113 rm -f conftest.$ac_objext
13114 if { (ac_try="$ac_compile"
13115 case "(($ac_try" in
13116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117   *) ac_try_echo=$ac_try;;
13118 esac
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120   (eval "$ac_compile") 2>conftest.er1
13121   ac_status=$?
13122   grep -v '^ *+' conftest.er1 >conftest.err
13123   rm -f conftest.er1
13124   cat conftest.err >&5
13125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126   (exit $ac_status); } && {
13127          test -z "$ac_c_werror_flag" ||
13128          test ! -s conftest.err
13129        } && test -s conftest.$ac_objext; then
13130   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13131   ac_cv_c_bigendian=yes
13132 fi
13133 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13134   if test "$ac_cv_c_bigendian" = unknown; then
13135     ac_cv_c_bigendian=no
13136   else
13137     # finding both strings is unlikely to happen, but who knows?
13138     ac_cv_c_bigendian=unknown
13139   fi
13140 fi
13141 else
13142   echo "$as_me: failed program was:" >&5
13143 sed 's/^/| /' conftest.$ac_ext >&5
13144
13145
13146 fi
13147
13148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13149 else
13150   cat >conftest.$ac_ext <<_ACEOF
13151 /* confdefs.h.  */
13152 _ACEOF
13153 cat confdefs.h >>conftest.$ac_ext
13154 cat >>conftest.$ac_ext <<_ACEOF
13155 /* end confdefs.h.  */
13156 $ac_includes_default
13157 int
13158 main ()
13159 {
13160
13161   /* Are we little or big endian?  From Harbison&Steele.  */
13162   union
13163   {
13164     long int l;
13165     char c[sizeof (long int)];
13166   } u;
13167   u.l = 1;
13168   return u.c[sizeof (long int) - 1] == 1;
13169
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 rm -f conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_link") 2>&5
13182   ac_status=$?
13183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13185   { (case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_try") 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   ac_cv_c_bigendian=no
13195 else
13196   echo "$as_me: program exited with status $ac_status" >&5
13197 echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200 ( exit $ac_status )
13201 ac_cv_c_bigendian=yes
13202 fi
13203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13204 fi
13205
13206
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13210 fi
13211 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13212 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
13213 case $ac_cv_c_bigendian in
13214   yes)
13215
13216 cat >>confdefs.h <<\_ACEOF
13217 #define WORDS_BIGENDIAN 1
13218 _ACEOF
13219  ;;
13220   no)
13221      ;;
13222   *)
13223     { { echo "$as_me:$LINENO: error: unknown endianness
13224 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13225 echo "$as_me: error: unknown endianness
13226 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13227    { (exit 1); exit 1; }; } ;;
13228 esac
13229
13230 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13231 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
13232 if test "${ac_cv_c_const+set}" = set; then
13233   echo $ECHO_N "(cached) $ECHO_C" >&6
13234 else
13235   cat >conftest.$ac_ext <<_ACEOF
13236 /* confdefs.h.  */
13237 _ACEOF
13238 cat confdefs.h >>conftest.$ac_ext
13239 cat >>conftest.$ac_ext <<_ACEOF
13240 /* end confdefs.h.  */
13241
13242 int
13243 main ()
13244 {
13245 /* FIXME: Include the comments suggested by Paul. */
13246 #ifndef __cplusplus
13247   /* Ultrix mips cc rejects this.  */
13248   typedef int charset[2];
13249   const charset cs;
13250   /* SunOS 4.1.1 cc rejects this.  */
13251   char const *const *pcpcc;
13252   char **ppc;
13253   /* NEC SVR4.0.2 mips cc rejects this.  */
13254   struct point {int x, y;};
13255   static struct point const zero = {0,0};
13256   /* AIX XL C 1.02.0.0 rejects this.
13257      It does not let you subtract one const X* pointer from another in
13258      an arm of an if-expression whose if-part is not a constant
13259      expression */
13260   const char *g = "string";
13261   pcpcc = &g + (g ? g-g : 0);
13262   /* HPUX 7.0 cc rejects these. */
13263   ++pcpcc;
13264   ppc = (char**) pcpcc;
13265   pcpcc = (char const *const *) ppc;
13266   { /* SCO 3.2v4 cc rejects this.  */
13267     char *t;
13268     char const *s = 0 ? (char *) 0 : (char const *) 0;
13269
13270     *t++ = 0;
13271     if (s) return 0;
13272   }
13273   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13274     int x[] = {25, 17};
13275     const int *foo = &x[0];
13276     ++foo;
13277   }
13278   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13279     typedef const int *iptr;
13280     iptr p = 0;
13281     ++p;
13282   }
13283   { /* AIX XL C 1.02.0.0 rejects this saying
13284        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13285     struct s { int j; const int *ap[3]; };
13286     struct s *b; b->j = 5;
13287   }
13288   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13289     const int foo = 10;
13290     if (!foo) return 0;
13291   }
13292   return !cs[0] && !zero.x;
13293 #endif
13294
13295   ;
13296   return 0;
13297 }
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (ac_try="$ac_compile"
13301 case "(($ac_try" in
13302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13303   *) ac_try_echo=$ac_try;;
13304 esac
13305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13306   (eval "$ac_compile") 2>conftest.er1
13307   ac_status=$?
13308   grep -v '^ *+' conftest.er1 >conftest.err
13309   rm -f conftest.er1
13310   cat conftest.err >&5
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); } && {
13313          test -z "$ac_c_werror_flag" ||
13314          test ! -s conftest.err
13315        } && test -s conftest.$ac_objext; then
13316   ac_cv_c_const=yes
13317 else
13318   echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.$ac_ext >&5
13320
13321         ac_cv_c_const=no
13322 fi
13323
13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13325 fi
13326 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13327 echo "${ECHO_T}$ac_cv_c_const" >&6; }
13328 if test $ac_cv_c_const = no; then
13329
13330 cat >>confdefs.h <<\_ACEOF
13331 #define const
13332 _ACEOF
13333
13334 fi
13335
13336 { echo "$as_me:$LINENO: checking for inline" >&5
13337 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
13338 if test "${ac_cv_c_inline+set}" = set; then
13339   echo $ECHO_N "(cached) $ECHO_C" >&6
13340 else
13341   ac_cv_c_inline=no
13342 for ac_kw in inline __inline__ __inline; do
13343   cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349 #ifndef __cplusplus
13350 typedef int foo_t;
13351 static $ac_kw foo_t static_foo () {return 0; }
13352 $ac_kw foo_t foo () {return 0; }
13353 #endif
13354
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (ac_try="$ac_compile"
13358 case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363   (eval "$ac_compile") 2>conftest.er1
13364   ac_status=$?
13365   grep -v '^ *+' conftest.er1 >conftest.err
13366   rm -f conftest.er1
13367   cat conftest.err >&5
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } && {
13370          test -z "$ac_c_werror_flag" ||
13371          test ! -s conftest.err
13372        } && test -s conftest.$ac_objext; then
13373   ac_cv_c_inline=$ac_kw
13374 else
13375   echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378
13379 fi
13380
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382   test "$ac_cv_c_inline" != no && break
13383 done
13384
13385 fi
13386 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13387 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13388
13389
13390 case $ac_cv_c_inline in
13391   inline | yes) ;;
13392   *)
13393     case $ac_cv_c_inline in
13394       no) ac_val=;;
13395       *) ac_val=$ac_cv_c_inline;;
13396     esac
13397     cat >>confdefs.h <<_ACEOF
13398 #ifndef __cplusplus
13399 #define inline $ac_val
13400 #endif
13401 _ACEOF
13402     ;;
13403 esac
13404
13405 { echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
13406 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6; }
13407 if test "${ac_cv_c_stringize+set}" = set; then
13408   echo $ECHO_N "(cached) $ECHO_C" >&6
13409 else
13410   cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h.  */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h.  */
13416 #define x(y) #y
13417
13418 char *s = x(teststring);
13419 _ACEOF
13420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13421   $EGREP "#teststring" >/dev/null 2>&1; then
13422   ac_cv_c_stringize=no
13423 else
13424   ac_cv_c_stringize=yes
13425 fi
13426 rm -f conftest*
13427
13428 fi
13429 { echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
13430 echo "${ECHO_T}$ac_cv_c_stringize" >&6; }
13431 if test $ac_cv_c_stringize = yes; then
13432
13433 cat >>confdefs.h <<\_ACEOF
13434 #define HAVE_STRINGIZE 1
13435 _ACEOF
13436
13437 fi
13438
13439 { echo "$as_me:$LINENO: checking for signed types" >&5
13440 echo $ECHO_N "checking for signed types... $ECHO_C" >&6; }
13441 if test "${pgac_cv_c_signed+set}" = set; then
13442   echo $ECHO_N "(cached) $ECHO_C" >&6
13443 else
13444   cat >conftest.$ac_ext <<_ACEOF
13445 /* confdefs.h.  */
13446 _ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h.  */
13450
13451 int
13452 main ()
13453 {
13454 signed char c; signed short s; signed int i;
13455   ;
13456   return 0;
13457 }
13458 _ACEOF
13459 rm -f conftest.$ac_objext
13460 if { (ac_try="$ac_compile"
13461 case "(($ac_try" in
13462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463   *) ac_try_echo=$ac_try;;
13464 esac
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466   (eval "$ac_compile") 2>conftest.er1
13467   ac_status=$?
13468   grep -v '^ *+' conftest.er1 >conftest.err
13469   rm -f conftest.er1
13470   cat conftest.err >&5
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && {
13473          test -z "$ac_c_werror_flag" ||
13474          test ! -s conftest.err
13475        } && test -s conftest.$ac_objext; then
13476   pgac_cv_c_signed=yes
13477 else
13478   echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481         pgac_cv_c_signed=no
13482 fi
13483
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 fi
13486 { echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
13487 echo "${ECHO_T}$pgac_cv_c_signed" >&6; }
13488 if test x"$pgac_cv_c_signed" = xno ; then
13489
13490 cat >>confdefs.h <<\_ACEOF
13491 #define signed
13492 _ACEOF
13493
13494 fi
13495 { echo "$as_me:$LINENO: checking for working volatile" >&5
13496 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
13497 if test "${ac_cv_c_volatile+set}" = set; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 else
13500   cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506
13507 int
13508 main ()
13509 {
13510
13511 volatile int x;
13512 int * volatile y = (int *) 0;
13513 return !x && !y;
13514   ;
13515   return 0;
13516 }
13517 _ACEOF
13518 rm -f conftest.$ac_objext
13519 if { (ac_try="$ac_compile"
13520 case "(($ac_try" in
13521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13522   *) ac_try_echo=$ac_try;;
13523 esac
13524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13525   (eval "$ac_compile") 2>conftest.er1
13526   ac_status=$?
13527   grep -v '^ *+' conftest.er1 >conftest.err
13528   rm -f conftest.er1
13529   cat conftest.err >&5
13530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531   (exit $ac_status); } && {
13532          test -z "$ac_c_werror_flag" ||
13533          test ! -s conftest.err
13534        } && test -s conftest.$ac_objext; then
13535   ac_cv_c_volatile=yes
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540         ac_cv_c_volatile=no
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 fi
13545 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
13546 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
13547 if test $ac_cv_c_volatile = no; then
13548
13549 cat >>confdefs.h <<\_ACEOF
13550 #define volatile
13551 _ACEOF
13552
13553 fi
13554
13555 { echo "$as_me:$LINENO: checking for __func__" >&5
13556 echo $ECHO_N "checking for __func__... $ECHO_C" >&6; }
13557 if test "${pgac_cv_funcname_func_support+set}" = set; then
13558   echo $ECHO_N "(cached) $ECHO_C" >&6
13559 else
13560   cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 #include <stdio.h>
13567 int
13568 main ()
13569 {
13570 printf("%s\n", __func__);
13571   ;
13572   return 0;
13573 }
13574 _ACEOF
13575 rm -f conftest.$ac_objext
13576 if { (ac_try="$ac_compile"
13577 case "(($ac_try" in
13578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13579   *) ac_try_echo=$ac_try;;
13580 esac
13581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13582   (eval "$ac_compile") 2>conftest.er1
13583   ac_status=$?
13584   grep -v '^ *+' conftest.er1 >conftest.err
13585   rm -f conftest.er1
13586   cat conftest.err >&5
13587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588   (exit $ac_status); } && {
13589          test -z "$ac_c_werror_flag" ||
13590          test ! -s conftest.err
13591        } && test -s conftest.$ac_objext; then
13592   pgac_cv_funcname_func_support=yes
13593 else
13594   echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597         pgac_cv_funcname_func_support=no
13598 fi
13599
13600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13601 fi
13602 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
13603 echo "${ECHO_T}$pgac_cv_funcname_func_support" >&6; }
13604 if test x"$pgac_cv_funcname_func_support" = xyes ; then
13605
13606 cat >>confdefs.h <<\_ACEOF
13607 #define HAVE_FUNCNAME__FUNC 1
13608 _ACEOF
13609
13610 else
13611 { echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
13612 echo $ECHO_N "checking for __FUNCTION__... $ECHO_C" >&6; }
13613 if test "${pgac_cv_funcname_function_support+set}" = set; then
13614   echo $ECHO_N "(cached) $ECHO_C" >&6
13615 else
13616   cat >conftest.$ac_ext <<_ACEOF
13617 /* confdefs.h.  */
13618 _ACEOF
13619 cat confdefs.h >>conftest.$ac_ext
13620 cat >>conftest.$ac_ext <<_ACEOF
13621 /* end confdefs.h.  */
13622 #include <stdio.h>
13623 int
13624 main ()
13625 {
13626 printf("%s\n", __FUNCTION__);
13627   ;
13628   return 0;
13629 }
13630 _ACEOF
13631 rm -f conftest.$ac_objext
13632 if { (ac_try="$ac_compile"
13633 case "(($ac_try" in
13634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635   *) ac_try_echo=$ac_try;;
13636 esac
13637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638   (eval "$ac_compile") 2>conftest.er1
13639   ac_status=$?
13640   grep -v '^ *+' conftest.er1 >conftest.err
13641   rm -f conftest.er1
13642   cat conftest.err >&5
13643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644   (exit $ac_status); } && {
13645          test -z "$ac_c_werror_flag" ||
13646          test ! -s conftest.err
13647        } && test -s conftest.$ac_objext; then
13648   pgac_cv_funcname_function_support=yes
13649 else
13650   echo "$as_me: failed program was:" >&5
13651 sed 's/^/| /' conftest.$ac_ext >&5
13652
13653         pgac_cv_funcname_function_support=no
13654 fi
13655
13656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657 fi
13658 { echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
13659 echo "${ECHO_T}$pgac_cv_funcname_function_support" >&6; }
13660 if test x"$pgac_cv_funcname_function_support" = xyes ; then
13661
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_FUNCNAME__FUNCTION 1
13664 _ACEOF
13665
13666 fi
13667 fi
13668 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13669 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
13670 if test "${ac_cv_struct_tm+set}" = set; then
13671   echo $ECHO_N "(cached) $ECHO_C" >&6
13672 else
13673   cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h.  */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h.  */
13679 #include <sys/types.h>
13680 #include <time.h>
13681
13682 int
13683 main ()
13684 {
13685 struct tm tm;
13686                                      int *p = &tm.tm_sec;
13687                                      return !p;
13688   ;
13689   return 0;
13690 }
13691 _ACEOF
13692 rm -f conftest.$ac_objext
13693 if { (ac_try="$ac_compile"
13694 case "(($ac_try" in
13695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696   *) ac_try_echo=$ac_try;;
13697 esac
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699   (eval "$ac_compile") 2>conftest.er1
13700   ac_status=$?
13701   grep -v '^ *+' conftest.er1 >conftest.err
13702   rm -f conftest.er1
13703   cat conftest.err >&5
13704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705   (exit $ac_status); } && {
13706          test -z "$ac_c_werror_flag" ||
13707          test ! -s conftest.err
13708        } && test -s conftest.$ac_objext; then
13709   ac_cv_struct_tm=time.h
13710 else
13711   echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13713
13714         ac_cv_struct_tm=sys/time.h
13715 fi
13716
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 fi
13719 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13720 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
13721 if test $ac_cv_struct_tm = sys/time.h; then
13722
13723 cat >>confdefs.h <<\_ACEOF
13724 #define TM_IN_SYS_TIME 1
13725 _ACEOF
13726
13727 fi
13728
13729 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
13730 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
13731 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h.  */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h.  */
13740 #include <sys/types.h>
13741 #include <$ac_cv_struct_tm>
13742
13743
13744 int
13745 main ()
13746 {
13747 static struct tm ac_aggr;
13748 if (ac_aggr.tm_zone)
13749 return 0;
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 rm -f conftest.$ac_objext
13755 if { (ac_try="$ac_compile"
13756 case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761   (eval "$ac_compile") 2>conftest.er1
13762   ac_status=$?
13763   grep -v '^ *+' conftest.er1 >conftest.err
13764   rm -f conftest.er1
13765   cat conftest.err >&5
13766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767   (exit $ac_status); } && {
13768          test -z "$ac_c_werror_flag" ||
13769          test ! -s conftest.err
13770        } && test -s conftest.$ac_objext; then
13771   ac_cv_member_struct_tm_tm_zone=yes
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776         cat >conftest.$ac_ext <<_ACEOF
13777 /* confdefs.h.  */
13778 _ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h.  */
13782 #include <sys/types.h>
13783 #include <$ac_cv_struct_tm>
13784
13785
13786 int
13787 main ()
13788 {
13789 static struct tm ac_aggr;
13790 if (sizeof ac_aggr.tm_zone)
13791 return 0;
13792   ;
13793   return 0;
13794 }
13795 _ACEOF
13796 rm -f conftest.$ac_objext
13797 if { (ac_try="$ac_compile"
13798 case "(($ac_try" in
13799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13800   *) ac_try_echo=$ac_try;;
13801 esac
13802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13803   (eval "$ac_compile") 2>conftest.er1
13804   ac_status=$?
13805   grep -v '^ *+' conftest.er1 >conftest.err
13806   rm -f conftest.er1
13807   cat conftest.err >&5
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); } && {
13810          test -z "$ac_c_werror_flag" ||
13811          test ! -s conftest.err
13812        } && test -s conftest.$ac_objext; then
13813   ac_cv_member_struct_tm_tm_zone=yes
13814 else
13815   echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13817
13818         ac_cv_member_struct_tm_tm_zone=no
13819 fi
13820
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13822 fi
13823
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 fi
13826 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
13827 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
13828 if test $ac_cv_member_struct_tm_tm_zone = yes; then
13829
13830 cat >>confdefs.h <<_ACEOF
13831 #define HAVE_STRUCT_TM_TM_ZONE 1
13832 _ACEOF
13833
13834
13835 fi
13836
13837 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
13838
13839 cat >>confdefs.h <<\_ACEOF
13840 #define HAVE_TM_ZONE 1
13841 _ACEOF
13842
13843 fi
13844 { echo "$as_me:$LINENO: checking for tzname" >&5
13845 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
13846 if test "${ac_cv_var_tzname+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855 #include <time.h>
13856 #ifndef tzname /* For SGI.  */
13857 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
13858 #endif
13859
13860 int
13861 main ()
13862 {
13863 atoi(*tzname);
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872   *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875   (eval "$ac_link") 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } && {
13882          test -z "$ac_c_werror_flag" ||
13883          test ! -s conftest.err
13884        } && test -s conftest$ac_exeext &&
13885        $as_test_x conftest$ac_exeext; then
13886   ac_cv_var_tzname=yes
13887 else
13888   echo "$as_me: failed program was:" >&5
13889 sed 's/^/| /' conftest.$ac_ext >&5
13890
13891         ac_cv_var_tzname=no
13892 fi
13893
13894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13895       conftest$ac_exeext conftest.$ac_ext
13896 fi
13897 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
13898 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
13899 if test $ac_cv_var_tzname = yes; then
13900
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_TZNAME 1
13903 _ACEOF
13904
13905 fi
13906
13907 { echo "$as_me:$LINENO: checking for union semun" >&5
13908 echo $ECHO_N "checking for union semun... $ECHO_C" >&6; }
13909 if test "${ac_cv_type_union_semun+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 else
13912   cat >conftest.$ac_ext <<_ACEOF
13913 /* confdefs.h.  */
13914 _ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h.  */
13918 #include <sys/types.h>
13919 #include <sys/ipc.h>
13920 #include <sys/sem.h>
13921
13922 typedef union semun ac__type_new_;
13923 int
13924 main ()
13925 {
13926 if ((ac__type_new_ *) 0)
13927   return 0;
13928 if (sizeof (ac__type_new_))
13929   return 0;
13930   ;
13931   return 0;
13932 }
13933 _ACEOF
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938   *) ac_try_echo=$ac_try;;
13939 esac
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941   (eval "$ac_compile") 2>conftest.er1
13942   ac_status=$?
13943   grep -v '^ *+' conftest.er1 >conftest.err
13944   rm -f conftest.er1
13945   cat conftest.err >&5
13946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947   (exit $ac_status); } && {
13948          test -z "$ac_c_werror_flag" ||
13949          test ! -s conftest.err
13950        } && test -s conftest.$ac_objext; then
13951   ac_cv_type_union_semun=yes
13952 else
13953   echo "$as_me: failed program was:" >&5
13954 sed 's/^/| /' conftest.$ac_ext >&5
13955
13956         ac_cv_type_union_semun=no
13957 fi
13958
13959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13960 fi
13961 { echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
13962 echo "${ECHO_T}$ac_cv_type_union_semun" >&6; }
13963 if test $ac_cv_type_union_semun = yes; then
13964
13965 cat >>confdefs.h <<_ACEOF
13966 #define HAVE_UNION_SEMUN 1
13967 _ACEOF
13968
13969
13970 fi
13971
13972 { echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
13973 echo $ECHO_N "checking for struct sockaddr_un... $ECHO_C" >&6; }
13974 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
13975   echo $ECHO_N "(cached) $ECHO_C" >&6
13976 else
13977   cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 #include <sys/types.h>
13984 #ifdef HAVE_SYS_UN_H
13985 #include <sys/un.h>
13986 #endif
13987
13988
13989 typedef struct sockaddr_un ac__type_new_;
13990 int
13991 main ()
13992 {
13993 if ((ac__type_new_ *) 0)
13994   return 0;
13995 if (sizeof (ac__type_new_))
13996   return 0;
13997   ;
13998   return 0;
13999 }
14000 _ACEOF
14001 rm -f conftest.$ac_objext
14002 if { (ac_try="$ac_compile"
14003 case "(($ac_try" in
14004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14005   *) ac_try_echo=$ac_try;;
14006 esac
14007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14008   (eval "$ac_compile") 2>conftest.er1
14009   ac_status=$?
14010   grep -v '^ *+' conftest.er1 >conftest.err
14011   rm -f conftest.er1
14012   cat conftest.err >&5
14013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } && {
14015          test -z "$ac_c_werror_flag" ||
14016          test ! -s conftest.err
14017        } && test -s conftest.$ac_objext; then
14018   ac_cv_type_struct_sockaddr_un=yes
14019 else
14020   echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023         ac_cv_type_struct_sockaddr_un=no
14024 fi
14025
14026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14027 fi
14028 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
14029 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_un" >&6; }
14030 if test $ac_cv_type_struct_sockaddr_un = yes; then
14031
14032 cat >>confdefs.h <<_ACEOF
14033 #define HAVE_STRUCT_SOCKADDR_UN 1
14034 _ACEOF
14035
14036
14037 cat >>confdefs.h <<\_ACEOF
14038 #define HAVE_UNIX_SOCKETS 1
14039 _ACEOF
14040
14041 fi
14042
14043 { echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
14044 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6; }
14045 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
14046   echo $ECHO_N "(cached) $ECHO_C" >&6
14047 else
14048   cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h.  */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h.  */
14054 #include <sys/types.h>
14055 #ifdef HAVE_SYS_SOCKET_H
14056 #include <sys/socket.h>
14057 #endif
14058
14059
14060 typedef struct sockaddr_storage ac__type_new_;
14061 int
14062 main ()
14063 {
14064 if ((ac__type_new_ *) 0)
14065   return 0;
14066 if (sizeof (ac__type_new_))
14067   return 0;
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 rm -f conftest.$ac_objext
14073 if { (ac_try="$ac_compile"
14074 case "(($ac_try" in
14075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076   *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079   (eval "$ac_compile") 2>conftest.er1
14080   ac_status=$?
14081   grep -v '^ *+' conftest.er1 >conftest.err
14082   rm -f conftest.er1
14083   cat conftest.err >&5
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); } && {
14086          test -z "$ac_c_werror_flag" ||
14087          test ! -s conftest.err
14088        } && test -s conftest.$ac_objext; then
14089   ac_cv_type_struct_sockaddr_storage=yes
14090 else
14091   echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14093
14094         ac_cv_type_struct_sockaddr_storage=no
14095 fi
14096
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14098 fi
14099 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
14100 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6; }
14101 if test $ac_cv_type_struct_sockaddr_storage = yes; then
14102
14103 cat >>confdefs.h <<_ACEOF
14104 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
14105 _ACEOF
14106
14107
14108 fi
14109
14110 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
14111 echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6; }
14112 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
14113   echo $ECHO_N "(cached) $ECHO_C" >&6
14114 else
14115   cat >conftest.$ac_ext <<_ACEOF
14116 /* confdefs.h.  */
14117 _ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h.  */
14121 #include <sys/types.h>
14122 #ifdef HAVE_SYS_SOCKET_H
14123 #include <sys/socket.h>
14124 #endif
14125
14126
14127 int
14128 main ()
14129 {
14130 static struct sockaddr_storage ac_aggr;
14131 if (ac_aggr.ss_family)
14132 return 0;
14133   ;
14134   return 0;
14135 }
14136 _ACEOF
14137 rm -f conftest.$ac_objext
14138 if { (ac_try="$ac_compile"
14139 case "(($ac_try" in
14140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14141   *) ac_try_echo=$ac_try;;
14142 esac
14143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14144   (eval "$ac_compile") 2>conftest.er1
14145   ac_status=$?
14146   grep -v '^ *+' conftest.er1 >conftest.err
14147   rm -f conftest.er1
14148   cat conftest.err >&5
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } && {
14151          test -z "$ac_c_werror_flag" ||
14152          test ! -s conftest.err
14153        } && test -s conftest.$ac_objext; then
14154   ac_cv_member_struct_sockaddr_storage_ss_family=yes
14155 else
14156   echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159         cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h.  */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h.  */
14165 #include <sys/types.h>
14166 #ifdef HAVE_SYS_SOCKET_H
14167 #include <sys/socket.h>
14168 #endif
14169
14170
14171 int
14172 main ()
14173 {
14174 static struct sockaddr_storage ac_aggr;
14175 if (sizeof ac_aggr.ss_family)
14176 return 0;
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14188   (eval "$ac_compile") 2>conftest.er1
14189   ac_status=$?
14190   grep -v '^ *+' conftest.er1 >conftest.err
14191   rm -f conftest.er1
14192   cat conftest.err >&5
14193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194   (exit $ac_status); } && {
14195          test -z "$ac_c_werror_flag" ||
14196          test ! -s conftest.err
14197        } && test -s conftest.$ac_objext; then
14198   ac_cv_member_struct_sockaddr_storage_ss_family=yes
14199 else
14200   echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.$ac_ext >&5
14202
14203         ac_cv_member_struct_sockaddr_storage_ss_family=no
14204 fi
14205
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207 fi
14208
14209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14210 fi
14211 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
14212 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
14213 if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
14214
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
14217 _ACEOF
14218
14219
14220 fi
14221 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
14222 echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6; }
14223 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 else
14226   cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 #include <sys/types.h>
14233 #ifdef HAVE_SYS_SOCKET_H
14234 #include <sys/socket.h>
14235 #endif
14236
14237
14238 int
14239 main ()
14240 {
14241 static struct sockaddr_storage ac_aggr;
14242 if (ac_aggr.__ss_family)
14243 return 0;
14244   ;
14245   return 0;
14246 }
14247 _ACEOF
14248 rm -f conftest.$ac_objext
14249 if { (ac_try="$ac_compile"
14250 case "(($ac_try" in
14251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14252   *) ac_try_echo=$ac_try;;
14253 esac
14254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14255   (eval "$ac_compile") 2>conftest.er1
14256   ac_status=$?
14257   grep -v '^ *+' conftest.er1 >conftest.err
14258   rm -f conftest.er1
14259   cat conftest.err >&5
14260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261   (exit $ac_status); } && {
14262          test -z "$ac_c_werror_flag" ||
14263          test ! -s conftest.err
14264        } && test -s conftest.$ac_objext; then
14265   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14266 else
14267   echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
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 #include <sys/types.h>
14277 #ifdef HAVE_SYS_SOCKET_H
14278 #include <sys/socket.h>
14279 #endif
14280
14281
14282 int
14283 main ()
14284 {
14285 static struct sockaddr_storage ac_aggr;
14286 if (sizeof ac_aggr.__ss_family)
14287 return 0;
14288   ;
14289   return 0;
14290 }
14291 _ACEOF
14292 rm -f conftest.$ac_objext
14293 if { (ac_try="$ac_compile"
14294 case "(($ac_try" in
14295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14296   *) ac_try_echo=$ac_try;;
14297 esac
14298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14299   (eval "$ac_compile") 2>conftest.er1
14300   ac_status=$?
14301   grep -v '^ *+' conftest.er1 >conftest.err
14302   rm -f conftest.er1
14303   cat conftest.err >&5
14304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14305   (exit $ac_status); } && {
14306          test -z "$ac_c_werror_flag" ||
14307          test ! -s conftest.err
14308        } && test -s conftest.$ac_objext; then
14309   ac_cv_member_struct_sockaddr_storage___ss_family=yes
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314         ac_cv_member_struct_sockaddr_storage___ss_family=no
14315 fi
14316
14317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14318 fi
14319
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 fi
14322 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
14323 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
14324 if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
14325
14326 cat >>confdefs.h <<_ACEOF
14327 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
14328 _ACEOF
14329
14330
14331 fi
14332 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
14333 echo $ECHO_N "checking for struct sockaddr_storage.ss_len... $ECHO_C" >&6; }
14334 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
14335   echo $ECHO_N "(cached) $ECHO_C" >&6
14336 else
14337   cat >conftest.$ac_ext <<_ACEOF
14338 /* confdefs.h.  */
14339 _ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h.  */
14343 #include <sys/types.h>
14344 #ifdef HAVE_SYS_SOCKET_H
14345 #include <sys/socket.h>
14346 #endif
14347
14348
14349 int
14350 main ()
14351 {
14352 static struct sockaddr_storage ac_aggr;
14353 if (ac_aggr.ss_len)
14354 return 0;
14355   ;
14356   return 0;
14357 }
14358 _ACEOF
14359 rm -f conftest.$ac_objext
14360 if { (ac_try="$ac_compile"
14361 case "(($ac_try" in
14362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14363   *) ac_try_echo=$ac_try;;
14364 esac
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366   (eval "$ac_compile") 2>conftest.er1
14367   ac_status=$?
14368   grep -v '^ *+' conftest.er1 >conftest.err
14369   rm -f conftest.er1
14370   cat conftest.err >&5
14371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372   (exit $ac_status); } && {
14373          test -z "$ac_c_werror_flag" ||
14374          test ! -s conftest.err
14375        } && test -s conftest.$ac_objext; then
14376   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14377 else
14378   echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14380
14381         cat >conftest.$ac_ext <<_ACEOF
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387 #include <sys/types.h>
14388 #ifdef HAVE_SYS_SOCKET_H
14389 #include <sys/socket.h>
14390 #endif
14391
14392
14393 int
14394 main ()
14395 {
14396 static struct sockaddr_storage ac_aggr;
14397 if (sizeof ac_aggr.ss_len)
14398 return 0;
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (ac_try="$ac_compile"
14405 case "(($ac_try" in
14406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14407   *) ac_try_echo=$ac_try;;
14408 esac
14409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14410   (eval "$ac_compile") 2>conftest.er1
14411   ac_status=$?
14412   grep -v '^ *+' conftest.er1 >conftest.err
14413   rm -f conftest.er1
14414   cat conftest.err >&5
14415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416   (exit $ac_status); } && {
14417          test -z "$ac_c_werror_flag" ||
14418          test ! -s conftest.err
14419        } && test -s conftest.$ac_objext; then
14420   ac_cv_member_struct_sockaddr_storage_ss_len=yes
14421 else
14422   echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14424
14425         ac_cv_member_struct_sockaddr_storage_ss_len=no
14426 fi
14427
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14432 fi
14433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
14434 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
14435 if test $ac_cv_member_struct_sockaddr_storage_ss_len = yes; then
14436
14437 cat >>confdefs.h <<_ACEOF
14438 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
14439 _ACEOF
14440
14441
14442 fi
14443 { echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
14444 echo $ECHO_N "checking for struct sockaddr_storage.__ss_len... $ECHO_C" >&6; }
14445 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
14446   echo $ECHO_N "(cached) $ECHO_C" >&6
14447 else
14448   cat >conftest.$ac_ext <<_ACEOF
14449 /* confdefs.h.  */
14450 _ACEOF
14451 cat confdefs.h >>conftest.$ac_ext
14452 cat >>conftest.$ac_ext <<_ACEOF
14453 /* end confdefs.h.  */
14454 #include <sys/types.h>
14455 #ifdef HAVE_SYS_SOCKET_H
14456 #include <sys/socket.h>
14457 #endif
14458
14459
14460 int
14461 main ()
14462 {
14463 static struct sockaddr_storage ac_aggr;
14464 if (ac_aggr.__ss_len)
14465 return 0;
14466   ;
14467   return 0;
14468 }
14469 _ACEOF
14470 rm -f conftest.$ac_objext
14471 if { (ac_try="$ac_compile"
14472 case "(($ac_try" in
14473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14474   *) ac_try_echo=$ac_try;;
14475 esac
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477   (eval "$ac_compile") 2>conftest.er1
14478   ac_status=$?
14479   grep -v '^ *+' conftest.er1 >conftest.err
14480   rm -f conftest.er1
14481   cat conftest.err >&5
14482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483   (exit $ac_status); } && {
14484          test -z "$ac_c_werror_flag" ||
14485          test ! -s conftest.err
14486        } && test -s conftest.$ac_objext; then
14487   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14488 else
14489   echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14491
14492         cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498 #include <sys/types.h>
14499 #ifdef HAVE_SYS_SOCKET_H
14500 #include <sys/socket.h>
14501 #endif
14502
14503
14504 int
14505 main ()
14506 {
14507 static struct sockaddr_storage ac_aggr;
14508 if (sizeof ac_aggr.__ss_len)
14509 return 0;
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 rm -f conftest.$ac_objext
14515 if { (ac_try="$ac_compile"
14516 case "(($ac_try" in
14517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518   *) ac_try_echo=$ac_try;;
14519 esac
14520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14521   (eval "$ac_compile") 2>conftest.er1
14522   ac_status=$?
14523   grep -v '^ *+' conftest.er1 >conftest.err
14524   rm -f conftest.er1
14525   cat conftest.err >&5
14526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527   (exit $ac_status); } && {
14528          test -z "$ac_c_werror_flag" ||
14529          test ! -s conftest.err
14530        } && test -s conftest.$ac_objext; then
14531   ac_cv_member_struct_sockaddr_storage___ss_len=yes
14532 else
14533   echo "$as_me: failed program was:" >&5
14534 sed 's/^/| /' conftest.$ac_ext >&5
14535
14536         ac_cv_member_struct_sockaddr_storage___ss_len=no
14537 fi
14538
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 fi
14541
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14543 fi
14544 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
14545 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
14546 if test $ac_cv_member_struct_sockaddr_storage___ss_len = yes; then
14547
14548 cat >>confdefs.h <<_ACEOF
14549 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
14550 _ACEOF
14551
14552
14553 fi
14554 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14555 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14556 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14557   echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559   cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h.  */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h.  */
14565 #include <sys/types.h>
14566 #ifdef HAVE_SYS_SOCKET_H
14567 #include <sys/socket.h>
14568 #endif
14569
14570
14571 int
14572 main ()
14573 {
14574 static struct sockaddr ac_aggr;
14575 if (ac_aggr.sa_len)
14576 return 0;
14577   ;
14578   return 0;
14579 }
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585   *) ac_try_echo=$ac_try;;
14586 esac
14587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14588   (eval "$ac_compile") 2>conftest.er1
14589   ac_status=$?
14590   grep -v '^ *+' conftest.er1 >conftest.err
14591   rm -f conftest.er1
14592   cat conftest.err >&5
14593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14594   (exit $ac_status); } && {
14595          test -z "$ac_c_werror_flag" ||
14596          test ! -s conftest.err
14597        } && test -s conftest.$ac_objext; then
14598   ac_cv_member_struct_sockaddr_sa_len=yes
14599 else
14600   echo "$as_me: failed program was:" >&5
14601 sed 's/^/| /' conftest.$ac_ext >&5
14602
14603         cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609 #include <sys/types.h>
14610 #ifdef HAVE_SYS_SOCKET_H
14611 #include <sys/socket.h>
14612 #endif
14613
14614
14615 int
14616 main ()
14617 {
14618 static struct sockaddr ac_aggr;
14619 if (sizeof ac_aggr.sa_len)
14620 return 0;
14621   ;
14622   return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632   (eval "$ac_compile") 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } && {
14639          test -z "$ac_c_werror_flag" ||
14640          test ! -s conftest.err
14641        } && test -s conftest.$ac_objext; then
14642   ac_cv_member_struct_sockaddr_sa_len=yes
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647         ac_cv_member_struct_sockaddr_sa_len=no
14648 fi
14649
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 fi
14652
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654 fi
14655 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14656 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14657 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14658
14659 cat >>confdefs.h <<_ACEOF
14660 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
14661 _ACEOF
14662
14663
14664 fi
14665
14666 { echo "$as_me:$LINENO: checking for struct addrinfo" >&5
14667 echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6; }
14668 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
14669   echo $ECHO_N "(cached) $ECHO_C" >&6
14670 else
14671   cat >conftest.$ac_ext <<_ACEOF
14672 /* confdefs.h.  */
14673 _ACEOF
14674 cat confdefs.h >>conftest.$ac_ext
14675 cat >>conftest.$ac_ext <<_ACEOF
14676 /* end confdefs.h.  */
14677 #include <sys/types.h>
14678 #include <sys/socket.h>
14679 #include <netdb.h>
14680
14681
14682 typedef struct addrinfo ac__type_new_;
14683 int
14684 main ()
14685 {
14686 if ((ac__type_new_ *) 0)
14687   return 0;
14688 if (sizeof (ac__type_new_))
14689   return 0;
14690   ;
14691   return 0;
14692 }
14693 _ACEOF
14694 rm -f conftest.$ac_objext
14695 if { (ac_try="$ac_compile"
14696 case "(($ac_try" in
14697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698   *) ac_try_echo=$ac_try;;
14699 esac
14700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14701   (eval "$ac_compile") 2>conftest.er1
14702   ac_status=$?
14703   grep -v '^ *+' conftest.er1 >conftest.err
14704   rm -f conftest.er1
14705   cat conftest.err >&5
14706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707   (exit $ac_status); } && {
14708          test -z "$ac_c_werror_flag" ||
14709          test ! -s conftest.err
14710        } && test -s conftest.$ac_objext; then
14711   ac_cv_type_struct_addrinfo=yes
14712 else
14713   echo "$as_me: failed program was:" >&5
14714 sed 's/^/| /' conftest.$ac_ext >&5
14715
14716         ac_cv_type_struct_addrinfo=no
14717 fi
14718
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 fi
14721 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
14722 echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6; }
14723 if test $ac_cv_type_struct_addrinfo = yes; then
14724
14725 cat >>confdefs.h <<_ACEOF
14726 #define HAVE_STRUCT_ADDRINFO 1
14727 _ACEOF
14728
14729
14730 fi
14731
14732
14733 { echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
14734 echo $ECHO_N "checking for struct cmsgcred... $ECHO_C" >&6; }
14735 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
14736   echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738   cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744 #include <sys/param.h>
14745 #include <sys/types.h>
14746 #include <sys/socket.h>
14747 #include <sys/ucred.h>
14748
14749 typedef struct cmsgcred ac__type_new_;
14750 int
14751 main ()
14752 {
14753 if ((ac__type_new_ *) 0)
14754   return 0;
14755 if (sizeof (ac__type_new_))
14756   return 0;
14757   ;
14758   return 0;
14759 }
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765   *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768   (eval "$ac_compile") 2>conftest.er1
14769   ac_status=$?
14770   grep -v '^ *+' conftest.er1 >conftest.err
14771   rm -f conftest.er1
14772   cat conftest.err >&5
14773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774   (exit $ac_status); } && {
14775          test -z "$ac_c_werror_flag" ||
14776          test ! -s conftest.err
14777        } && test -s conftest.$ac_objext; then
14778   ac_cv_type_struct_cmsgcred=yes
14779 else
14780   echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783         ac_cv_type_struct_cmsgcred=no
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 fi
14788 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
14789 echo "${ECHO_T}$ac_cv_type_struct_cmsgcred" >&6; }
14790 if test $ac_cv_type_struct_cmsgcred = yes; then
14791
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_STRUCT_CMSGCRED 1
14794 _ACEOF
14795
14796
14797 fi
14798 { echo "$as_me:$LINENO: checking for struct fcred" >&5
14799 echo $ECHO_N "checking for struct fcred... $ECHO_C" >&6; }
14800 if test "${ac_cv_type_struct_fcred+set}" = set; then
14801   echo $ECHO_N "(cached) $ECHO_C" >&6
14802 else
14803   cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 #include <sys/param.h>
14810 #include <sys/types.h>
14811 #include <sys/socket.h>
14812 #include <sys/ucred.h>
14813
14814 typedef struct fcred ac__type_new_;
14815 int
14816 main ()
14817 {
14818 if ((ac__type_new_ *) 0)
14819   return 0;
14820 if (sizeof (ac__type_new_))
14821   return 0;
14822   ;
14823   return 0;
14824 }
14825 _ACEOF
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830   *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833   (eval "$ac_compile") 2>conftest.er1
14834   ac_status=$?
14835   grep -v '^ *+' conftest.er1 >conftest.err
14836   rm -f conftest.er1
14837   cat conftest.err >&5
14838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839   (exit $ac_status); } && {
14840          test -z "$ac_c_werror_flag" ||
14841          test ! -s conftest.err
14842        } && test -s conftest.$ac_objext; then
14843   ac_cv_type_struct_fcred=yes
14844 else
14845   echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14847
14848         ac_cv_type_struct_fcred=no
14849 fi
14850
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 fi
14853 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_fcred" >&5
14854 echo "${ECHO_T}$ac_cv_type_struct_fcred" >&6; }
14855 if test $ac_cv_type_struct_fcred = yes; then
14856
14857 cat >>confdefs.h <<_ACEOF
14858 #define HAVE_STRUCT_FCRED 1
14859 _ACEOF
14860
14861
14862 fi
14863 { echo "$as_me:$LINENO: checking for struct sockcred" >&5
14864 echo $ECHO_N "checking for struct sockcred... $ECHO_C" >&6; }
14865 if test "${ac_cv_type_struct_sockcred+set}" = set; then
14866   echo $ECHO_N "(cached) $ECHO_C" >&6
14867 else
14868   cat >conftest.$ac_ext <<_ACEOF
14869 /* confdefs.h.  */
14870 _ACEOF
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h.  */
14874 #include <sys/param.h>
14875 #include <sys/types.h>
14876 #include <sys/socket.h>
14877 #include <sys/ucred.h>
14878
14879 typedef struct sockcred ac__type_new_;
14880 int
14881 main ()
14882 {
14883 if ((ac__type_new_ *) 0)
14884   return 0;
14885 if (sizeof (ac__type_new_))
14886   return 0;
14887   ;
14888   return 0;
14889 }
14890 _ACEOF
14891 rm -f conftest.$ac_objext
14892 if { (ac_try="$ac_compile"
14893 case "(($ac_try" in
14894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895   *) ac_try_echo=$ac_try;;
14896 esac
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898   (eval "$ac_compile") 2>conftest.er1
14899   ac_status=$?
14900   grep -v '^ *+' conftest.er1 >conftest.err
14901   rm -f conftest.er1
14902   cat conftest.err >&5
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } && {
14905          test -z "$ac_c_werror_flag" ||
14906          test ! -s conftest.err
14907        } && test -s conftest.$ac_objext; then
14908   ac_cv_type_struct_sockcred=yes
14909 else
14910   echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14912
14913         ac_cv_type_struct_sockcred=no
14914 fi
14915
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 fi
14918 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockcred" >&5
14919 echo "${ECHO_T}$ac_cv_type_struct_sockcred" >&6; }
14920 if test $ac_cv_type_struct_sockcred = yes; then
14921
14922 cat >>confdefs.h <<_ACEOF
14923 #define HAVE_STRUCT_SOCKCRED 1
14924 _ACEOF
14925
14926
14927 fi
14928
14929
14930 { echo "$as_me:$LINENO: checking for struct option" >&5
14931 echo $ECHO_N "checking for struct option... $ECHO_C" >&6; }
14932 if test "${ac_cv_type_struct_option+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h.  */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h.  */
14941 #ifdef HAVE_GETOPT_H
14942 #include <getopt.h>
14943 #endif
14944
14945 typedef struct option ac__type_new_;
14946 int
14947 main ()
14948 {
14949 if ((ac__type_new_ *) 0)
14950   return 0;
14951 if (sizeof (ac__type_new_))
14952   return 0;
14953   ;
14954   return 0;
14955 }
14956 _ACEOF
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961   *) ac_try_echo=$ac_try;;
14962 esac
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964   (eval "$ac_compile") 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } && {
14971          test -z "$ac_c_werror_flag" ||
14972          test ! -s conftest.err
14973        } && test -s conftest.$ac_objext; then
14974   ac_cv_type_struct_option=yes
14975 else
14976   echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14978
14979         ac_cv_type_struct_option=no
14980 fi
14981
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 fi
14984 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
14985 echo "${ECHO_T}$ac_cv_type_struct_option" >&6; }
14986 if test $ac_cv_type_struct_option = yes; then
14987
14988 cat >>confdefs.h <<_ACEOF
14989 #define HAVE_STRUCT_OPTION 1
14990 _ACEOF
14991
14992
14993 fi
14994
14995
14996 if test "$with_zlib" = yes; then
14997   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
14998   # did not).  While we could work around the lack of z_streamp, it
14999   # seems unwise to encourage people to use such old zlib versions...
15000   { echo "$as_me:$LINENO: checking for z_streamp" >&5
15001 echo $ECHO_N "checking for z_streamp... $ECHO_C" >&6; }
15002 if test "${ac_cv_type_z_streamp+set}" = set; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 else
15005   cat >conftest.$ac_ext <<_ACEOF
15006 /* confdefs.h.  */
15007 _ACEOF
15008 cat confdefs.h >>conftest.$ac_ext
15009 cat >>conftest.$ac_ext <<_ACEOF
15010 /* end confdefs.h.  */
15011 #include <zlib.h>
15012
15013 typedef z_streamp ac__type_new_;
15014 int
15015 main ()
15016 {
15017 if ((ac__type_new_ *) 0)
15018   return 0;
15019 if (sizeof (ac__type_new_))
15020   return 0;
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15032   (eval "$ac_compile") 2>conftest.er1
15033   ac_status=$?
15034   grep -v '^ *+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } && {
15039          test -z "$ac_c_werror_flag" ||
15040          test ! -s conftest.err
15041        } && test -s conftest.$ac_objext; then
15042   ac_cv_type_z_streamp=yes
15043 else
15044   echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047         ac_cv_type_z_streamp=no
15048 fi
15049
15050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15051 fi
15052 { echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
15053 echo "${ECHO_T}$ac_cv_type_z_streamp" >&6; }
15054 if test $ac_cv_type_z_streamp = yes; then
15055   :
15056 else
15057   { { echo "$as_me:$LINENO: error: zlib version is too old
15058 Use --without-zlib to disable zlib support." >&5
15059 echo "$as_me: error: zlib version is too old
15060 Use --without-zlib to disable zlib support." >&2;}
15061    { (exit 1); exit 1; }; }
15062 fi
15063
15064 fi
15065
15066 if test "$with_krb5" = yes; then
15067 # Check for differences between MIT and Heimdal (KTH) releases
15068   { echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
15069 echo $ECHO_N "checking for krb5_ticket.enc_part2... $ECHO_C" >&6; }
15070 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
15071   echo $ECHO_N "(cached) $ECHO_C" >&6
15072 else
15073   cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079 #include <krb5.h>
15080
15081 int
15082 main ()
15083 {
15084 static krb5_ticket ac_aggr;
15085 if (ac_aggr.enc_part2)
15086 return 0;
15087   ;
15088   return 0;
15089 }
15090 _ACEOF
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095   *) ac_try_echo=$ac_try;;
15096 esac
15097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15098   (eval "$ac_compile") 2>conftest.er1
15099   ac_status=$?
15100   grep -v '^ *+' conftest.er1 >conftest.err
15101   rm -f conftest.er1
15102   cat conftest.err >&5
15103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104   (exit $ac_status); } && {
15105          test -z "$ac_c_werror_flag" ||
15106          test ! -s conftest.err
15107        } && test -s conftest.$ac_objext; then
15108   ac_cv_member_krb5_ticket_enc_part2=yes
15109 else
15110   echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15112
15113         cat >conftest.$ac_ext <<_ACEOF
15114 /* confdefs.h.  */
15115 _ACEOF
15116 cat confdefs.h >>conftest.$ac_ext
15117 cat >>conftest.$ac_ext <<_ACEOF
15118 /* end confdefs.h.  */
15119 #include <krb5.h>
15120
15121 int
15122 main ()
15123 {
15124 static krb5_ticket ac_aggr;
15125 if (sizeof ac_aggr.enc_part2)
15126 return 0;
15127   ;
15128   return 0;
15129 }
15130 _ACEOF
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135   *) ac_try_echo=$ac_try;;
15136 esac
15137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138   (eval "$ac_compile") 2>conftest.er1
15139   ac_status=$?
15140   grep -v '^ *+' conftest.er1 >conftest.err
15141   rm -f conftest.er1
15142   cat conftest.err >&5
15143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144   (exit $ac_status); } && {
15145          test -z "$ac_c_werror_flag" ||
15146          test ! -s conftest.err
15147        } && test -s conftest.$ac_objext; then
15148   ac_cv_member_krb5_ticket_enc_part2=yes
15149 else
15150   echo "$as_me: failed program was:" >&5
15151 sed 's/^/| /' conftest.$ac_ext >&5
15152
15153         ac_cv_member_krb5_ticket_enc_part2=no
15154 fi
15155
15156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15157 fi
15158
15159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15160 fi
15161 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
15162 echo "${ECHO_T}$ac_cv_member_krb5_ticket_enc_part2" >&6; }
15163 if test $ac_cv_member_krb5_ticket_enc_part2 = yes; then
15164
15165 cat >>confdefs.h <<_ACEOF
15166 #define HAVE_KRB5_TICKET_ENC_PART2 1
15167 _ACEOF
15168
15169
15170 else
15171   { echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
15172 echo $ECHO_N "checking for krb5_ticket.client... $ECHO_C" >&6; }
15173 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
15174   echo $ECHO_N "(cached) $ECHO_C" >&6
15175 else
15176   cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 #include <krb5.h>
15183
15184 int
15185 main ()
15186 {
15187 static krb5_ticket ac_aggr;
15188 if (ac_aggr.client)
15189 return 0;
15190   ;
15191   return 0;
15192 }
15193 _ACEOF
15194 rm -f conftest.$ac_objext
15195 if { (ac_try="$ac_compile"
15196 case "(($ac_try" in
15197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15198   *) ac_try_echo=$ac_try;;
15199 esac
15200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15201   (eval "$ac_compile") 2>conftest.er1
15202   ac_status=$?
15203   grep -v '^ *+' conftest.er1 >conftest.err
15204   rm -f conftest.er1
15205   cat conftest.err >&5
15206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207   (exit $ac_status); } && {
15208          test -z "$ac_c_werror_flag" ||
15209          test ! -s conftest.err
15210        } && test -s conftest.$ac_objext; then
15211   ac_cv_member_krb5_ticket_client=yes
15212 else
15213   echo "$as_me: failed program was:" >&5
15214 sed 's/^/| /' conftest.$ac_ext >&5
15215
15216         cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h.  */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h.  */
15222 #include <krb5.h>
15223
15224 int
15225 main ()
15226 {
15227 static krb5_ticket ac_aggr;
15228 if (sizeof ac_aggr.client)
15229 return 0;
15230   ;
15231   return 0;
15232 }
15233 _ACEOF
15234 rm -f conftest.$ac_objext
15235 if { (ac_try="$ac_compile"
15236 case "(($ac_try" in
15237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15238   *) ac_try_echo=$ac_try;;
15239 esac
15240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15241   (eval "$ac_compile") 2>conftest.er1
15242   ac_status=$?
15243   grep -v '^ *+' conftest.er1 >conftest.err
15244   rm -f conftest.er1
15245   cat conftest.err >&5
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); } && {
15248          test -z "$ac_c_werror_flag" ||
15249          test ! -s conftest.err
15250        } && test -s conftest.$ac_objext; then
15251   ac_cv_member_krb5_ticket_client=yes
15252 else
15253   echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256         ac_cv_member_krb5_ticket_client=no
15257 fi
15258
15259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15260 fi
15261
15262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15263 fi
15264 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
15265 echo "${ECHO_T}$ac_cv_member_krb5_ticket_client" >&6; }
15266 if test $ac_cv_member_krb5_ticket_client = yes; then
15267
15268 cat >>confdefs.h <<_ACEOF
15269 #define HAVE_KRB5_TICKET_CLIENT 1
15270 _ACEOF
15271
15272
15273 else
15274   { { echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
15275 echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
15276    { (exit 1); exit 1; }; }
15277 fi
15278
15279 fi
15280
15281   { echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
15282 echo $ECHO_N "checking for krb5_error.text.data... $ECHO_C" >&6; }
15283 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292 #include <krb5.h>
15293
15294 int
15295 main ()
15296 {
15297 static krb5_error ac_aggr;
15298 if (ac_aggr.text.data)
15299 return 0;
15300   ;
15301   return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308   *) ac_try_echo=$ac_try;;
15309 esac
15310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15311   (eval "$ac_compile") 2>conftest.er1
15312   ac_status=$?
15313   grep -v '^ *+' conftest.er1 >conftest.err
15314   rm -f conftest.er1
15315   cat conftest.err >&5
15316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317   (exit $ac_status); } && {
15318          test -z "$ac_c_werror_flag" ||
15319          test ! -s conftest.err
15320        } && test -s conftest.$ac_objext; then
15321   ac_cv_member_krb5_error_text_data=yes
15322 else
15323   echo "$as_me: failed program was:" >&5
15324 sed 's/^/| /' conftest.$ac_ext >&5
15325
15326         cat >conftest.$ac_ext <<_ACEOF
15327 /* confdefs.h.  */
15328 _ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h.  */
15332 #include <krb5.h>
15333
15334 int
15335 main ()
15336 {
15337 static krb5_error ac_aggr;
15338 if (sizeof ac_aggr.text.data)
15339 return 0;
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext
15345 if { (ac_try="$ac_compile"
15346 case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351   (eval "$ac_compile") 2>conftest.er1
15352   ac_status=$?
15353   grep -v '^ *+' conftest.er1 >conftest.err
15354   rm -f conftest.er1
15355   cat conftest.err >&5
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); } && {
15358          test -z "$ac_c_werror_flag" ||
15359          test ! -s conftest.err
15360        } && test -s conftest.$ac_objext; then
15361   ac_cv_member_krb5_error_text_data=yes
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366         ac_cv_member_krb5_error_text_data=no
15367 fi
15368
15369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15370 fi
15371
15372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15373 fi
15374 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
15375 echo "${ECHO_T}$ac_cv_member_krb5_error_text_data" >&6; }
15376 if test $ac_cv_member_krb5_error_text_data = yes; then
15377
15378 cat >>confdefs.h <<_ACEOF
15379 #define HAVE_KRB5_ERROR_TEXT_DATA 1
15380 _ACEOF
15381
15382
15383 else
15384   { echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
15385 echo $ECHO_N "checking for krb5_error.e_data... $ECHO_C" >&6; }
15386 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
15387   echo $ECHO_N "(cached) $ECHO_C" >&6
15388 else
15389   cat >conftest.$ac_ext <<_ACEOF
15390 /* confdefs.h.  */
15391 _ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h.  */
15395 #include <krb5.h>
15396
15397 int
15398 main ()
15399 {
15400 static krb5_error ac_aggr;
15401 if (ac_aggr.e_data)
15402 return 0;
15403   ;
15404   return 0;
15405 }
15406 _ACEOF
15407 rm -f conftest.$ac_objext
15408 if { (ac_try="$ac_compile"
15409 case "(($ac_try" in
15410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15411   *) ac_try_echo=$ac_try;;
15412 esac
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414   (eval "$ac_compile") 2>conftest.er1
15415   ac_status=$?
15416   grep -v '^ *+' conftest.er1 >conftest.err
15417   rm -f conftest.er1
15418   cat conftest.err >&5
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); } && {
15421          test -z "$ac_c_werror_flag" ||
15422          test ! -s conftest.err
15423        } && test -s conftest.$ac_objext; then
15424   ac_cv_member_krb5_error_e_data=yes
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429         cat >conftest.$ac_ext <<_ACEOF
15430 /* confdefs.h.  */
15431 _ACEOF
15432 cat confdefs.h >>conftest.$ac_ext
15433 cat >>conftest.$ac_ext <<_ACEOF
15434 /* end confdefs.h.  */
15435 #include <krb5.h>
15436
15437 int
15438 main ()
15439 {
15440 static krb5_error ac_aggr;
15441 if (sizeof ac_aggr.e_data)
15442 return 0;
15443   ;
15444   return 0;
15445 }
15446 _ACEOF
15447 rm -f conftest.$ac_objext
15448 if { (ac_try="$ac_compile"
15449 case "(($ac_try" in
15450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451   *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454   (eval "$ac_compile") 2>conftest.er1
15455   ac_status=$?
15456   grep -v '^ *+' conftest.er1 >conftest.err
15457   rm -f conftest.er1
15458   cat conftest.err >&5
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); } && {
15461          test -z "$ac_c_werror_flag" ||
15462          test ! -s conftest.err
15463        } && test -s conftest.$ac_objext; then
15464   ac_cv_member_krb5_error_e_data=yes
15465 else
15466   echo "$as_me: failed program was:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15468
15469         ac_cv_member_krb5_error_e_data=no
15470 fi
15471
15472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15473 fi
15474
15475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15476 fi
15477 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
15478 echo "${ECHO_T}$ac_cv_member_krb5_error_e_data" >&6; }
15479 if test $ac_cv_member_krb5_error_e_data = yes; then
15480
15481 cat >>confdefs.h <<_ACEOF
15482 #define HAVE_KRB5_ERROR_E_DATA 1
15483 _ACEOF
15484
15485
15486 else
15487   { { echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
15488 echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
15489    { (exit 1); exit 1; }; }
15490 fi
15491
15492 fi
15493
15494
15495 # Win32 requires headers to be loaded for __stdcall, so can't use
15496 # AC_CHECK_FUNCS here.
15497   { echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
15498 echo $ECHO_N "checking for krb5_free_unparsed_name... $ECHO_C" >&6; }
15499   cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h.  */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h.  */
15505 #include <krb5.h>
15506 int
15507 main ()
15508 {
15509 krb5_free_unparsed_name(NULL,NULL);
15510   ;
15511   return 0;
15512 }
15513 _ACEOF
15514 rm -f conftest.$ac_objext conftest$ac_exeext
15515 if { (ac_try="$ac_link"
15516 case "(($ac_try" in
15517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15518   *) ac_try_echo=$ac_try;;
15519 esac
15520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15521   (eval "$ac_link") 2>conftest.er1
15522   ac_status=$?
15523   grep -v '^ *+' conftest.er1 >conftest.err
15524   rm -f conftest.er1
15525   cat conftest.err >&5
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } && {
15528          test -z "$ac_c_werror_flag" ||
15529          test ! -s conftest.err
15530        } && test -s conftest$ac_exeext &&
15531        $as_test_x conftest$ac_exeext; then
15532
15533 cat >>confdefs.h <<\_ACEOF
15534 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
15535 _ACEOF
15536
15537 { echo "$as_me:$LINENO: result: yes" >&5
15538 echo "${ECHO_T}yes" >&6; }
15539 else
15540   echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543         { echo "$as_me:$LINENO: result: no" >&5
15544 echo "${ECHO_T}no" >&6; }
15545 fi
15546
15547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15548       conftest$ac_exeext conftest.$ac_ext
15549 fi
15550
15551
15552 ##
15553 ## Functions, global variables
15554 ##
15555
15556 { echo "$as_me:$LINENO: checking for int timezone" >&5
15557 echo $ECHO_N "checking for int timezone... $ECHO_C" >&6; }
15558 if test "${pgac_cv_var_int_timezone+set}" = set; then
15559   echo $ECHO_N "(cached) $ECHO_C" >&6
15560 else
15561   cat >conftest.$ac_ext <<_ACEOF
15562 /* confdefs.h.  */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h.  */
15567 #include <time.h>
15568 int res;
15569 int
15570 main ()
15571 {
15572 #ifndef __CYGWIN__
15573 res = timezone / 60;
15574 #else
15575 res = _timezone / 60;
15576 #endif
15577   ;
15578   return 0;
15579 }
15580 _ACEOF
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (ac_try="$ac_link"
15583 case "(($ac_try" in
15584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585   *) ac_try_echo=$ac_try;;
15586 esac
15587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15588   (eval "$ac_link") 2>conftest.er1
15589   ac_status=$?
15590   grep -v '^ *+' conftest.er1 >conftest.err
15591   rm -f conftest.er1
15592   cat conftest.err >&5
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); } && {
15595          test -z "$ac_c_werror_flag" ||
15596          test ! -s conftest.err
15597        } && test -s conftest$ac_exeext &&
15598        $as_test_x conftest$ac_exeext; then
15599   pgac_cv_var_int_timezone=yes
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604         pgac_cv_var_int_timezone=no
15605 fi
15606
15607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15608       conftest$ac_exeext conftest.$ac_ext
15609 fi
15610 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
15611 echo "${ECHO_T}$pgac_cv_var_int_timezone" >&6; }
15612 if test x"$pgac_cv_var_int_timezone" = xyes ; then
15613
15614 cat >>confdefs.h <<\_ACEOF
15615 #define HAVE_INT_TIMEZONE
15616 _ACEOF
15617
15618 fi
15619 { echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
15620 echo $ECHO_N "checking types of arguments for accept()... $ECHO_C" >&6; }
15621  if test "${ac_cv_func_accept_return+set}" = set; then
15622   echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624    if test "${ac_cv_func_accept_arg1+set}" = set; then
15625   echo $ECHO_N "(cached) $ECHO_C" >&6
15626 else
15627     if test "${ac_cv_func_accept_arg2+set}" = set; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630      if test "${ac_cv_func_accept_arg3+set}" = set; then
15631   echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
15634       for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
15635        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15636         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15637          cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h.  */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h.  */
15643 #ifdef HAVE_SYS_TYPES_H
15644 #include <sys/types.h>
15645 #endif
15646 #ifdef HAVE_SYS_SOCKET_H
15647 #include <sys/socket.h>
15648 #endif
15649 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15650 int
15651 main ()
15652 {
15653
15654   ;
15655   return 0;
15656 }
15657 _ACEOF
15658 rm -f conftest.$ac_objext
15659 if { (ac_try="$ac_compile"
15660 case "(($ac_try" in
15661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662   *) ac_try_echo=$ac_try;;
15663 esac
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665   (eval "$ac_compile") 2>conftest.er1
15666   ac_status=$?
15667   grep -v '^ *+' conftest.er1 >conftest.err
15668   rm -f conftest.er1
15669   cat conftest.err >&5
15670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671   (exit $ac_status); } && {
15672          test -z "$ac_c_werror_flag" ||
15673          test ! -s conftest.err
15674        } && test -s conftest.$ac_objext; then
15675   ac_not_found=no; break 4
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680         ac_not_found=yes
15681 fi
15682
15683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15684        done
15685       done
15686      done
15687     done
15688     if test "$ac_not_found" = yes; then
15689       { { echo "$as_me:$LINENO: error: could not determine argument types" >&5
15690 echo "$as_me: error: could not determine argument types" >&2;}
15691    { (exit 1); exit 1; }; }
15692     fi
15693     if test "$ac_cv_func_accept_arg3" = "void"; then
15694       ac_cv_func_accept_arg3=int
15695     fi
15696
15697 fi
15698
15699 fi
15700
15701 fi
15702
15703 fi
15704  { 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
15705 echo "${ECHO_T}$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15706
15707 cat >>confdefs.h <<_ACEOF
15708 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15709 _ACEOF
15710
15711
15712 cat >>confdefs.h <<_ACEOF
15713 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15714 _ACEOF
15715
15716
15717 cat >>confdefs.h <<_ACEOF
15718 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15719 _ACEOF
15720
15721
15722 cat >>confdefs.h <<_ACEOF
15723 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15724 _ACEOF
15725
15726
15727 { echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
15728 echo $ECHO_N "checking whether gettimeofday takes only one argument... $ECHO_C" >&6; }
15729 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
15730   echo $ECHO_N "(cached) $ECHO_C" >&6
15731 else
15732   cat >conftest.$ac_ext <<_ACEOF
15733 /* confdefs.h.  */
15734 _ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h.  */
15738 #include <sys/time.h>
15739 int
15740 main ()
15741 {
15742 struct timeval *tp;
15743 struct timezone *tzp;
15744 gettimeofday(tp,tzp);
15745   ;
15746   return 0;
15747 }
15748 _ACEOF
15749 rm -f conftest.$ac_objext
15750 if { (ac_try="$ac_compile"
15751 case "(($ac_try" in
15752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15753   *) ac_try_echo=$ac_try;;
15754 esac
15755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15756   (eval "$ac_compile") 2>conftest.er1
15757   ac_status=$?
15758   grep -v '^ *+' conftest.er1 >conftest.err
15759   rm -f conftest.er1
15760   cat conftest.err >&5
15761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762   (exit $ac_status); } && {
15763          test -z "$ac_c_werror_flag" ||
15764          test ! -s conftest.err
15765        } && test -s conftest.$ac_objext; then
15766   pgac_cv_func_gettimeofday_1arg=no
15767 else
15768   echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771         pgac_cv_func_gettimeofday_1arg=yes
15772 fi
15773
15774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 fi
15776 { echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
15777 echo "${ECHO_T}$pgac_cv_func_gettimeofday_1arg" >&6; }
15778 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
15779
15780 cat >>confdefs.h <<\_ACEOF
15781 #define GETTIMEOFDAY_1ARG
15782 _ACEOF
15783
15784 fi
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809 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
15810 do
15811 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15814 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15815   echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817   cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h.  */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h.  */
15823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15825 #define $ac_func innocuous_$ac_func
15826
15827 /* System header to define __stub macros and hopefully few prototypes,
15828     which can conflict with char $ac_func (); below.
15829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15830     <limits.h> exists even on freestanding compilers.  */
15831
15832 #ifdef __STDC__
15833 # include <limits.h>
15834 #else
15835 # include <assert.h>
15836 #endif
15837
15838 #undef $ac_func
15839
15840 /* Override any GCC internal prototype to avoid an error.
15841    Use char because int might match the return type of a GCC
15842    builtin and then its argument prototype would still apply.  */
15843 #ifdef __cplusplus
15844 extern "C"
15845 #endif
15846 char $ac_func ();
15847 /* The GNU C library defines this for functions which it implements
15848     to always fail with ENOSYS.  Some functions are actually named
15849     something starting with __ and the normal name is an alias.  */
15850 #if defined __stub_$ac_func || defined __stub___$ac_func
15851 choke me
15852 #endif
15853
15854 int
15855 main ()
15856 {
15857 return $ac_func ();
15858   ;
15859   return 0;
15860 }
15861 _ACEOF
15862 rm -f conftest.$ac_objext conftest$ac_exeext
15863 if { (ac_try="$ac_link"
15864 case "(($ac_try" in
15865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866   *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869   (eval "$ac_link") 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } && {
15876          test -z "$ac_c_werror_flag" ||
15877          test ! -s conftest.err
15878        } && test -s conftest$ac_exeext &&
15879        $as_test_x conftest$ac_exeext; then
15880   eval "$as_ac_var=yes"
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885         eval "$as_ac_var=no"
15886 fi
15887
15888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15889       conftest$ac_exeext conftest.$ac_ext
15890 fi
15891 ac_res=`eval echo '${'$as_ac_var'}'`
15892                { echo "$as_me:$LINENO: result: $ac_res" >&5
15893 echo "${ECHO_T}$ac_res" >&6; }
15894 if test `eval echo '${'$as_ac_var'}'` = yes; then
15895   cat >>confdefs.h <<_ACEOF
15896 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15897 _ACEOF
15898
15899 fi
15900 done
15901
15902
15903 { echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
15904 echo $ECHO_N "checking whether fdatasync is declared... $ECHO_C" >&6; }
15905 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
15906   echo $ECHO_N "(cached) $ECHO_C" >&6
15907 else
15908   cat >conftest.$ac_ext <<_ACEOF
15909 /* confdefs.h.  */
15910 _ACEOF
15911 cat confdefs.h >>conftest.$ac_ext
15912 cat >>conftest.$ac_ext <<_ACEOF
15913 /* end confdefs.h.  */
15914 #include <unistd.h>
15915
15916 int
15917 main ()
15918 {
15919 #ifndef fdatasync
15920   (void) fdatasync;
15921 #endif
15922
15923   ;
15924   return 0;
15925 }
15926 _ACEOF
15927 rm -f conftest.$ac_objext
15928 if { (ac_try="$ac_compile"
15929 case "(($ac_try" in
15930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931   *) ac_try_echo=$ac_try;;
15932 esac
15933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15934   (eval "$ac_compile") 2>conftest.er1
15935   ac_status=$?
15936   grep -v '^ *+' conftest.er1 >conftest.err
15937   rm -f conftest.er1
15938   cat conftest.err >&5
15939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940   (exit $ac_status); } && {
15941          test -z "$ac_c_werror_flag" ||
15942          test ! -s conftest.err
15943        } && test -s conftest.$ac_objext; then
15944   ac_cv_have_decl_fdatasync=yes
15945 else
15946   echo "$as_me: failed program was:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15948
15949         ac_cv_have_decl_fdatasync=no
15950 fi
15951
15952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15953 fi
15954 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
15955 echo "${ECHO_T}$ac_cv_have_decl_fdatasync" >&6; }
15956 if test $ac_cv_have_decl_fdatasync = yes; then
15957
15958 cat >>confdefs.h <<_ACEOF
15959 #define HAVE_DECL_FDATASYNC 1
15960 _ACEOF
15961
15962
15963 else
15964   cat >>confdefs.h <<_ACEOF
15965 #define HAVE_DECL_FDATASYNC 0
15966 _ACEOF
15967
15968
15969 fi
15970
15971
15972 { echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
15973 echo $ECHO_N "checking whether posix_fadvise is declared... $ECHO_C" >&6; }
15974 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
15975   echo $ECHO_N "(cached) $ECHO_C" >&6
15976 else
15977   cat >conftest.$ac_ext <<_ACEOF
15978 /* confdefs.h.  */
15979 _ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h.  */
15983 #include <fcntl.h>
15984
15985 int
15986 main ()
15987 {
15988 #ifndef posix_fadvise
15989   (void) posix_fadvise;
15990 #endif
15991
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext
15997 if { (ac_try="$ac_compile"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_compile") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } && {
16010          test -z "$ac_c_werror_flag" ||
16011          test ! -s conftest.err
16012        } && test -s conftest.$ac_objext; then
16013   ac_cv_have_decl_posix_fadvise=yes
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018         ac_cv_have_decl_posix_fadvise=no
16019 fi
16020
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 fi
16023 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
16024 echo "${ECHO_T}$ac_cv_have_decl_posix_fadvise" >&6; }
16025 if test $ac_cv_have_decl_posix_fadvise = yes; then
16026
16027 cat >>confdefs.h <<_ACEOF
16028 #define HAVE_DECL_POSIX_FADVISE 1
16029 _ACEOF
16030
16031
16032 else
16033   cat >>confdefs.h <<_ACEOF
16034 #define HAVE_DECL_POSIX_FADVISE 0
16035 _ACEOF
16036
16037
16038 fi
16039
16040
16041 { echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
16042 echo $ECHO_N "checking whether strlcat is declared... $ECHO_C" >&6; }
16043 if test "${ac_cv_have_decl_strlcat+set}" = set; then
16044   echo $ECHO_N "(cached) $ECHO_C" >&6
16045 else
16046   cat >conftest.$ac_ext <<_ACEOF
16047 /* confdefs.h.  */
16048 _ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h.  */
16052 $ac_includes_default
16053 int
16054 main ()
16055 {
16056 #ifndef strlcat
16057   (void) strlcat;
16058 #endif
16059
16060   ;
16061   return 0;
16062 }
16063 _ACEOF
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068   *) ac_try_echo=$ac_try;;
16069 esac
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071   (eval "$ac_compile") 2>conftest.er1
16072   ac_status=$?
16073   grep -v '^ *+' conftest.er1 >conftest.err
16074   rm -f conftest.er1
16075   cat conftest.err >&5
16076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077   (exit $ac_status); } && {
16078          test -z "$ac_c_werror_flag" ||
16079          test ! -s conftest.err
16080        } && test -s conftest.$ac_objext; then
16081   ac_cv_have_decl_strlcat=yes
16082 else
16083   echo "$as_me: failed program was:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16085
16086         ac_cv_have_decl_strlcat=no
16087 fi
16088
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090 fi
16091 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
16092 echo "${ECHO_T}$ac_cv_have_decl_strlcat" >&6; }
16093 if test $ac_cv_have_decl_strlcat = yes; then
16094
16095 cat >>confdefs.h <<_ACEOF
16096 #define HAVE_DECL_STRLCAT 1
16097 _ACEOF
16098
16099
16100 else
16101   cat >>confdefs.h <<_ACEOF
16102 #define HAVE_DECL_STRLCAT 0
16103 _ACEOF
16104
16105
16106 fi
16107 { echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
16108 echo $ECHO_N "checking whether strlcpy is declared... $ECHO_C" >&6; }
16109 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
16110   echo $ECHO_N "(cached) $ECHO_C" >&6
16111 else
16112   cat >conftest.$ac_ext <<_ACEOF
16113 /* confdefs.h.  */
16114 _ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h.  */
16118 $ac_includes_default
16119 int
16120 main ()
16121 {
16122 #ifndef strlcpy
16123   (void) strlcpy;
16124 #endif
16125
16126   ;
16127   return 0;
16128 }
16129 _ACEOF
16130 rm -f conftest.$ac_objext
16131 if { (ac_try="$ac_compile"
16132 case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_compile") 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } && {
16144          test -z "$ac_c_werror_flag" ||
16145          test ! -s conftest.err
16146        } && test -s conftest.$ac_objext; then
16147   ac_cv_have_decl_strlcpy=yes
16148 else
16149   echo "$as_me: failed program was:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16151
16152         ac_cv_have_decl_strlcpy=no
16153 fi
16154
16155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16156 fi
16157 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
16158 echo "${ECHO_T}$ac_cv_have_decl_strlcpy" >&6; }
16159 if test $ac_cv_have_decl_strlcpy = yes; then
16160
16161 cat >>confdefs.h <<_ACEOF
16162 #define HAVE_DECL_STRLCPY 1
16163 _ACEOF
16164
16165
16166 else
16167   cat >>confdefs.h <<_ACEOF
16168 #define HAVE_DECL_STRLCPY 0
16169 _ACEOF
16170
16171
16172 fi
16173
16174
16175 # This is probably only present on Darwin, but may as well check always
16176 { echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
16177 echo $ECHO_N "checking whether F_FULLFSYNC is declared... $ECHO_C" >&6; }
16178 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
16179   echo $ECHO_N "(cached) $ECHO_C" >&6
16180 else
16181   cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187 #include <fcntl.h>
16188
16189 int
16190 main ()
16191 {
16192 #ifndef F_FULLFSYNC
16193   (void) F_FULLFSYNC;
16194 #endif
16195
16196   ;
16197   return 0;
16198 }
16199 _ACEOF
16200 rm -f conftest.$ac_objext
16201 if { (ac_try="$ac_compile"
16202 case "(($ac_try" in
16203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204   *) ac_try_echo=$ac_try;;
16205 esac
16206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16207   (eval "$ac_compile") 2>conftest.er1
16208   ac_status=$?
16209   grep -v '^ *+' conftest.er1 >conftest.err
16210   rm -f conftest.er1
16211   cat conftest.err >&5
16212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213   (exit $ac_status); } && {
16214          test -z "$ac_c_werror_flag" ||
16215          test ! -s conftest.err
16216        } && test -s conftest.$ac_objext; then
16217   ac_cv_have_decl_F_FULLFSYNC=yes
16218 else
16219   echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16221
16222         ac_cv_have_decl_F_FULLFSYNC=no
16223 fi
16224
16225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16226 fi
16227 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
16228 echo "${ECHO_T}$ac_cv_have_decl_F_FULLFSYNC" >&6; }
16229 if test $ac_cv_have_decl_F_FULLFSYNC = yes; then
16230
16231 cat >>confdefs.h <<_ACEOF
16232 #define HAVE_DECL_F_FULLFSYNC 1
16233 _ACEOF
16234
16235
16236 else
16237   cat >>confdefs.h <<_ACEOF
16238 #define HAVE_DECL_F_FULLFSYNC 0
16239 _ACEOF
16240
16241
16242 fi
16243
16244
16245
16246 HAVE_IPV6=no
16247 { echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
16248 echo $ECHO_N "checking for struct sockaddr_in6... $ECHO_C" >&6; }
16249 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
16250   echo $ECHO_N "(cached) $ECHO_C" >&6
16251 else
16252   cat >conftest.$ac_ext <<_ACEOF
16253 /* confdefs.h.  */
16254 _ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h.  */
16258 $ac_includes_default
16259 #include <netinet/in.h>
16260
16261 typedef struct sockaddr_in6 ac__type_new_;
16262 int
16263 main ()
16264 {
16265 if ((ac__type_new_ *) 0)
16266   return 0;
16267 if (sizeof (ac__type_new_))
16268   return 0;
16269   ;
16270   return 0;
16271 }
16272 _ACEOF
16273 rm -f conftest.$ac_objext
16274 if { (ac_try="$ac_compile"
16275 case "(($ac_try" in
16276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16277   *) ac_try_echo=$ac_try;;
16278 esac
16279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16280   (eval "$ac_compile") 2>conftest.er1
16281   ac_status=$?
16282   grep -v '^ *+' conftest.er1 >conftest.err
16283   rm -f conftest.er1
16284   cat conftest.err >&5
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); } && {
16287          test -z "$ac_c_werror_flag" ||
16288          test ! -s conftest.err
16289        } && test -s conftest.$ac_objext; then
16290   ac_cv_type_struct_sockaddr_in6=yes
16291 else
16292   echo "$as_me: failed program was:" >&5
16293 sed 's/^/| /' conftest.$ac_ext >&5
16294
16295         ac_cv_type_struct_sockaddr_in6=no
16296 fi
16297
16298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16299 fi
16300 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
16301 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_in6" >&6; }
16302 if test $ac_cv_type_struct_sockaddr_in6 = yes; then
16303
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_IPV6 1
16306 _ACEOF
16307
16308          HAVE_IPV6=yes
16309 fi
16310
16311
16312
16313 { echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
16314 echo $ECHO_N "checking for PS_STRINGS... $ECHO_C" >&6; }
16315 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
16316   echo $ECHO_N "(cached) $ECHO_C" >&6
16317 else
16318   cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16324 #include <machine/vmparam.h>
16325 #include <sys/exec.h>
16326
16327 int
16328 main ()
16329 {
16330 PS_STRINGS->ps_nargvstr = 1;
16331 PS_STRINGS->ps_argvstr = "foo";
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (ac_try="$ac_link"
16338 case "(($ac_try" in
16339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340   *) ac_try_echo=$ac_try;;
16341 esac
16342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16343   (eval "$ac_link") 2>conftest.er1
16344   ac_status=$?
16345   grep -v '^ *+' conftest.er1 >conftest.err
16346   rm -f conftest.er1
16347   cat conftest.err >&5
16348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349   (exit $ac_status); } && {
16350          test -z "$ac_c_werror_flag" ||
16351          test ! -s conftest.err
16352        } && test -s conftest$ac_exeext &&
16353        $as_test_x conftest$ac_exeext; then
16354   pgac_cv_var_PS_STRINGS=yes
16355 else
16356   echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16358
16359         pgac_cv_var_PS_STRINGS=no
16360 fi
16361
16362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363       conftest$ac_exeext conftest.$ac_ext
16364 fi
16365 { echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
16366 echo "${ECHO_T}$pgac_cv_var_PS_STRINGS" >&6; }
16367 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
16368
16369 cat >>confdefs.h <<\_ACEOF
16370 #define HAVE_PS_STRINGS
16371 _ACEOF
16372
16373 fi
16374
16375
16376 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
16377 # is missing.  Yes, there are machines that have only one.  We may
16378 # also decide to use snprintf.c if snprintf() is present but does not
16379 # have all the features we need --- see below.
16380
16381 if test "$PORTNAME" = "win32"; then
16382   # Win32 gets snprintf.c built unconditionally.
16383   #
16384   # To properly translate all NLS languages strings, we must support the
16385   # *printf() %$ format, which allows *printf() arguments to be selected
16386   # by position in the translated string.
16387   #
16388   # libintl versions < 0.13 use the native *printf() functions, and Win32
16389   # *printf() doesn't understand %$, so we must use our /port versions,
16390   # which do understand %$. libintl versions >= 0.13 include their own
16391   # *printf versions on Win32.  The libintl 0.13 release note text is:
16392   #
16393   #   C format strings with positions, as they arise when a translator
16394   #   needs to reorder a sentence, are now supported on all platforms.
16395   #   On those few platforms (NetBSD and Woe32) for which the native
16396   #   printf()/fprintf()/... functions don't support such format
16397   #   strings, replacements are provided through <libintl.h>.
16398   #
16399   # We could use libintl >= 0.13's *printf() if we were sure that we had
16400   # a litint >= 0.13 at runtime, but seeing that there is no clean way
16401   # to guarantee that, it is best to just use our own, so we are sure to
16402   # get %$ support. In include/port.h we disable the *printf() macros
16403   # that might have been defined by libintl.
16404   #
16405   # We do this unconditionally whether NLS is used or not so we are sure
16406   # that all Win32 libraries and binaries behave the same.
16407   pgac_need_repl_snprintf=yes
16408 else
16409   pgac_need_repl_snprintf=no
16410
16411 for ac_func in snprintf
16412 do
16413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16417   echo $ECHO_N "(cached) $ECHO_C" >&6
16418 else
16419   cat >conftest.$ac_ext <<_ACEOF
16420 /* confdefs.h.  */
16421 _ACEOF
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h.  */
16425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16427 #define $ac_func innocuous_$ac_func
16428
16429 /* System header to define __stub macros and hopefully few prototypes,
16430     which can conflict with char $ac_func (); below.
16431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16432     <limits.h> exists even on freestanding compilers.  */
16433
16434 #ifdef __STDC__
16435 # include <limits.h>
16436 #else
16437 # include <assert.h>
16438 #endif
16439
16440 #undef $ac_func
16441
16442 /* Override any GCC internal prototype to avoid an error.
16443    Use char because int might match the return type of a GCC
16444    builtin and then its argument prototype would still apply.  */
16445 #ifdef __cplusplus
16446 extern "C"
16447 #endif
16448 char $ac_func ();
16449 /* The GNU C library defines this for functions which it implements
16450     to always fail with ENOSYS.  Some functions are actually named
16451     something starting with __ and the normal name is an alias.  */
16452 #if defined __stub_$ac_func || defined __stub___$ac_func
16453 choke me
16454 #endif
16455
16456 int
16457 main ()
16458 {
16459 return $ac_func ();
16460   ;
16461   return 0;
16462 }
16463 _ACEOF
16464 rm -f conftest.$ac_objext conftest$ac_exeext
16465 if { (ac_try="$ac_link"
16466 case "(($ac_try" in
16467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16468   *) ac_try_echo=$ac_try;;
16469 esac
16470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16471   (eval "$ac_link") 2>conftest.er1
16472   ac_status=$?
16473   grep -v '^ *+' conftest.er1 >conftest.err
16474   rm -f conftest.er1
16475   cat conftest.err >&5
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); } && {
16478          test -z "$ac_c_werror_flag" ||
16479          test ! -s conftest.err
16480        } && test -s conftest$ac_exeext &&
16481        $as_test_x conftest$ac_exeext; then
16482   eval "$as_ac_var=yes"
16483 else
16484   echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16486
16487         eval "$as_ac_var=no"
16488 fi
16489
16490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16491       conftest$ac_exeext conftest.$ac_ext
16492 fi
16493 ac_res=`eval echo '${'$as_ac_var'}'`
16494                { echo "$as_me:$LINENO: result: $ac_res" >&5
16495 echo "${ECHO_T}$ac_res" >&6; }
16496 if test `eval echo '${'$as_ac_var'}'` = yes; then
16497   cat >>confdefs.h <<_ACEOF
16498 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16499 _ACEOF
16500
16501 else
16502   pgac_need_repl_snprintf=yes
16503 fi
16504 done
16505
16506
16507 for ac_func in vsnprintf
16508 do
16509 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16510 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16511 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16512 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16513   echo $ECHO_N "(cached) $ECHO_C" >&6
16514 else
16515   cat >conftest.$ac_ext <<_ACEOF
16516 /* confdefs.h.  */
16517 _ACEOF
16518 cat confdefs.h >>conftest.$ac_ext
16519 cat >>conftest.$ac_ext <<_ACEOF
16520 /* end confdefs.h.  */
16521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16522    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16523 #define $ac_func innocuous_$ac_func
16524
16525 /* System header to define __stub macros and hopefully few prototypes,
16526     which can conflict with char $ac_func (); below.
16527     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16528     <limits.h> exists even on freestanding compilers.  */
16529
16530 #ifdef __STDC__
16531 # include <limits.h>
16532 #else
16533 # include <assert.h>
16534 #endif
16535
16536 #undef $ac_func
16537
16538 /* Override any GCC internal prototype to avoid an error.
16539    Use char because int might match the return type of a GCC
16540    builtin and then its argument prototype would still apply.  */
16541 #ifdef __cplusplus
16542 extern "C"
16543 #endif
16544 char $ac_func ();
16545 /* The GNU C library defines this for functions which it implements
16546     to always fail with ENOSYS.  Some functions are actually named
16547     something starting with __ and the normal name is an alias.  */
16548 #if defined __stub_$ac_func || defined __stub___$ac_func
16549 choke me
16550 #endif
16551
16552 int
16553 main ()
16554 {
16555 return $ac_func ();
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_link") 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } && {
16574          test -z "$ac_c_werror_flag" ||
16575          test ! -s conftest.err
16576        } && test -s conftest$ac_exeext &&
16577        $as_test_x conftest$ac_exeext; then
16578   eval "$as_ac_var=yes"
16579 else
16580   echo "$as_me: failed program was:" >&5
16581 sed 's/^/| /' conftest.$ac_ext >&5
16582
16583         eval "$as_ac_var=no"
16584 fi
16585
16586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16587       conftest$ac_exeext conftest.$ac_ext
16588 fi
16589 ac_res=`eval echo '${'$as_ac_var'}'`
16590                { echo "$as_me:$LINENO: result: $ac_res" >&5
16591 echo "${ECHO_T}$ac_res" >&6; }
16592 if test `eval echo '${'$as_ac_var'}'` = yes; then
16593   cat >>confdefs.h <<_ACEOF
16594 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16595 _ACEOF
16596
16597 else
16598   pgac_need_repl_snprintf=yes
16599 fi
16600 done
16601
16602 fi
16603
16604
16605 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
16606 # include/c.h will provide declarations.  Note this is a separate test
16607 # from whether the functions exist in the C library --- there are
16608 # systems that have the functions but don't bother to declare them :-(
16609
16610 { echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
16611 echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6; }
16612 if test "${ac_cv_have_decl_snprintf+set}" = set; then
16613   echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615   cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h.  */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h.  */
16621 $ac_includes_default
16622 int
16623 main ()
16624 {
16625 #ifndef snprintf
16626   (void) snprintf;
16627 #endif
16628
16629   ;
16630   return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637   *) ac_try_echo=$ac_try;;
16638 esac
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640   (eval "$ac_compile") 2>conftest.er1
16641   ac_status=$?
16642   grep -v '^ *+' conftest.er1 >conftest.err
16643   rm -f conftest.er1
16644   cat conftest.err >&5
16645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646   (exit $ac_status); } && {
16647          test -z "$ac_c_werror_flag" ||
16648          test ! -s conftest.err
16649        } && test -s conftest.$ac_objext; then
16650   ac_cv_have_decl_snprintf=yes
16651 else
16652   echo "$as_me: failed program was:" >&5
16653 sed 's/^/| /' conftest.$ac_ext >&5
16654
16655         ac_cv_have_decl_snprintf=no
16656 fi
16657
16658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 fi
16660 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
16661 echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6; }
16662 if test $ac_cv_have_decl_snprintf = yes; then
16663
16664 cat >>confdefs.h <<_ACEOF
16665 #define HAVE_DECL_SNPRINTF 1
16666 _ACEOF
16667
16668
16669 else
16670   cat >>confdefs.h <<_ACEOF
16671 #define HAVE_DECL_SNPRINTF 0
16672 _ACEOF
16673
16674
16675 fi
16676 { echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
16677 echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6; }
16678 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
16679   echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681   cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h.  */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h.  */
16687 $ac_includes_default
16688 int
16689 main ()
16690 {
16691 #ifndef vsnprintf
16692   (void) vsnprintf;
16693 #endif
16694
16695   ;
16696   return 0;
16697 }
16698 _ACEOF
16699 rm -f conftest.$ac_objext
16700 if { (ac_try="$ac_compile"
16701 case "(($ac_try" in
16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703   *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706   (eval "$ac_compile") 2>conftest.er1
16707   ac_status=$?
16708   grep -v '^ *+' conftest.er1 >conftest.err
16709   rm -f conftest.er1
16710   cat conftest.err >&5
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); } && {
16713          test -z "$ac_c_werror_flag" ||
16714          test ! -s conftest.err
16715        } && test -s conftest.$ac_objext; then
16716   ac_cv_have_decl_vsnprintf=yes
16717 else
16718   echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721         ac_cv_have_decl_vsnprintf=no
16722 fi
16723
16724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 fi
16726 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
16727 echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6; }
16728 if test $ac_cv_have_decl_vsnprintf = yes; then
16729
16730 cat >>confdefs.h <<_ACEOF
16731 #define HAVE_DECL_VSNPRINTF 1
16732 _ACEOF
16733
16734
16735 else
16736   cat >>confdefs.h <<_ACEOF
16737 #define HAVE_DECL_VSNPRINTF 0
16738 _ACEOF
16739
16740
16741 fi
16742
16743
16744
16745
16746 { echo "$as_me:$LINENO: checking for isinf" >&5
16747 echo $ECHO_N "checking for isinf... $ECHO_C" >&6; }
16748 if test "${ac_cv_func_isinf+set}" = set; then
16749   echo $ECHO_N "(cached) $ECHO_C" >&6
16750 else
16751   cat >conftest.$ac_ext <<_ACEOF
16752 /* confdefs.h.  */
16753 _ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h.  */
16757
16758 #include <math.h>
16759 double glob_double;
16760
16761 int
16762 main ()
16763 {
16764 return isinf(glob_double) ? 0 : 1;
16765   ;
16766   return 0;
16767 }
16768 _ACEOF
16769 rm -f conftest.$ac_objext conftest$ac_exeext
16770 if { (ac_try="$ac_link"
16771 case "(($ac_try" in
16772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16773   *) ac_try_echo=$ac_try;;
16774 esac
16775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16776   (eval "$ac_link") 2>conftest.er1
16777   ac_status=$?
16778   grep -v '^ *+' conftest.er1 >conftest.err
16779   rm -f conftest.er1
16780   cat conftest.err >&5
16781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); } && {
16783          test -z "$ac_c_werror_flag" ||
16784          test ! -s conftest.err
16785        } && test -s conftest$ac_exeext &&
16786        $as_test_x conftest$ac_exeext; then
16787   ac_cv_func_isinf=yes
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792         ac_cv_func_isinf=no
16793 fi
16794
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796       conftest$ac_exeext conftest.$ac_ext
16797 fi
16798 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
16799 echo "${ECHO_T}$ac_cv_func_isinf" >&6; }
16800
16801 if test $ac_cv_func_isinf = yes ; then
16802
16803 cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_ISINF 1
16805 _ACEOF
16806
16807 else
16808   case " $LIBOBJS " in
16809   *" isinf.$ac_objext "* ) ;;
16810   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
16811  ;;
16812 esac
16813
16814   # Look for a way to implement a substitute for isinf()
16815
16816
16817
16818
16819 for ac_func in fpclass fp_class fp_class_d class
16820 do
16821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16825   echo $ECHO_N "(cached) $ECHO_C" >&6
16826 else
16827   cat >conftest.$ac_ext <<_ACEOF
16828 /* confdefs.h.  */
16829 _ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h.  */
16833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16835 #define $ac_func innocuous_$ac_func
16836
16837 /* System header to define __stub macros and hopefully few prototypes,
16838     which can conflict with char $ac_func (); below.
16839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16840     <limits.h> exists even on freestanding compilers.  */
16841
16842 #ifdef __STDC__
16843 # include <limits.h>
16844 #else
16845 # include <assert.h>
16846 #endif
16847
16848 #undef $ac_func
16849
16850 /* Override any GCC internal prototype to avoid an error.
16851    Use char because int might match the return type of a GCC
16852    builtin and then its argument prototype would still apply.  */
16853 #ifdef __cplusplus
16854 extern "C"
16855 #endif
16856 char $ac_func ();
16857 /* The GNU C library defines this for functions which it implements
16858     to always fail with ENOSYS.  Some functions are actually named
16859     something starting with __ and the normal name is an alias.  */
16860 #if defined __stub_$ac_func || defined __stub___$ac_func
16861 choke me
16862 #endif
16863
16864 int
16865 main ()
16866 {
16867 return $ac_func ();
16868   ;
16869   return 0;
16870 }
16871 _ACEOF
16872 rm -f conftest.$ac_objext conftest$ac_exeext
16873 if { (ac_try="$ac_link"
16874 case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_link") 2>conftest.er1
16880   ac_status=$?
16881   grep -v '^ *+' conftest.er1 >conftest.err
16882   rm -f conftest.er1
16883   cat conftest.err >&5
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); } && {
16886          test -z "$ac_c_werror_flag" ||
16887          test ! -s conftest.err
16888        } && test -s conftest$ac_exeext &&
16889        $as_test_x conftest$ac_exeext; then
16890   eval "$as_ac_var=yes"
16891 else
16892   echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.$ac_ext >&5
16894
16895         eval "$as_ac_var=no"
16896 fi
16897
16898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16899       conftest$ac_exeext conftest.$ac_ext
16900 fi
16901 ac_res=`eval echo '${'$as_ac_var'}'`
16902                { echo "$as_me:$LINENO: result: $ac_res" >&5
16903 echo "${ECHO_T}$ac_res" >&6; }
16904 if test `eval echo '${'$as_ac_var'}'` = yes; then
16905   cat >>confdefs.h <<_ACEOF
16906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16907 _ACEOF
16908  break
16909 fi
16910 done
16911
16912 fi
16913
16914 # Some versions of libedit contain strlcpy(); so disregard that library while
16915 # checking for these standard libc functions.
16916 pgac_save_LIBS="$LIBS"
16917 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
16918
16919
16920
16921
16922
16923
16924
16925
16926
16927
16928
16929
16930
16931
16932
16933 for ac_func in crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv
16934 do
16935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16949 #define $ac_func innocuous_$ac_func
16950
16951 /* System header to define __stub macros and hopefully few prototypes,
16952     which can conflict with char $ac_func (); below.
16953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954     <limits.h> exists even on freestanding compilers.  */
16955
16956 #ifdef __STDC__
16957 # include <limits.h>
16958 #else
16959 # include <assert.h>
16960 #endif
16961
16962 #undef $ac_func
16963
16964 /* Override any GCC internal prototype to avoid an error.
16965    Use char because int might match the return type of a GCC
16966    builtin and then its argument prototype would still apply.  */
16967 #ifdef __cplusplus
16968 extern "C"
16969 #endif
16970 char $ac_func ();
16971 /* The GNU C library defines this for functions which it implements
16972     to always fail with ENOSYS.  Some functions are actually named
16973     something starting with __ and the normal name is an alias.  */
16974 #if defined __stub_$ac_func || defined __stub___$ac_func
16975 choke me
16976 #endif
16977
16978 int
16979 main ()
16980 {
16981 return $ac_func ();
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990   *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993   (eval "$ac_link") 2>conftest.er1
16994   ac_status=$?
16995   grep -v '^ *+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } && {
17000          test -z "$ac_c_werror_flag" ||
17001          test ! -s conftest.err
17002        } && test -s conftest$ac_exeext &&
17003        $as_test_x conftest$ac_exeext; then
17004   eval "$as_ac_var=yes"
17005 else
17006   echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009         eval "$as_ac_var=no"
17010 fi
17011
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013       conftest$ac_exeext conftest.$ac_ext
17014 fi
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016                { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019   cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17021 _ACEOF
17022
17023 else
17024   case " $LIBOBJS " in
17025   *" $ac_func.$ac_objext "* ) ;;
17026   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17027  ;;
17028 esac
17029
17030 fi
17031 done
17032
17033
17034
17035 LIBS="$pgac_save_LIBS"
17036
17037 # System's version of getaddrinfo(), if any, may be used only if we found
17038 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
17039 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
17040 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
17041 # because we want to use our own getaddrinfo.c on Windows anyway.)
17042 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
17043
17044 for ac_func in getaddrinfo
17045 do
17046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17047 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17050   echo $ECHO_N "(cached) $ECHO_C" >&6
17051 else
17052   cat >conftest.$ac_ext <<_ACEOF
17053 /* confdefs.h.  */
17054 _ACEOF
17055 cat confdefs.h >>conftest.$ac_ext
17056 cat >>conftest.$ac_ext <<_ACEOF
17057 /* end confdefs.h.  */
17058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17060 #define $ac_func innocuous_$ac_func
17061
17062 /* System header to define __stub macros and hopefully few prototypes,
17063     which can conflict with char $ac_func (); below.
17064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17065     <limits.h> exists even on freestanding compilers.  */
17066
17067 #ifdef __STDC__
17068 # include <limits.h>
17069 #else
17070 # include <assert.h>
17071 #endif
17072
17073 #undef $ac_func
17074
17075 /* Override any GCC internal prototype to avoid an error.
17076    Use char because int might match the return type of a GCC
17077    builtin and then its argument prototype would still apply.  */
17078 #ifdef __cplusplus
17079 extern "C"
17080 #endif
17081 char $ac_func ();
17082 /* The GNU C library defines this for functions which it implements
17083     to always fail with ENOSYS.  Some functions are actually named
17084     something starting with __ and the normal name is an alias.  */
17085 #if defined __stub_$ac_func || defined __stub___$ac_func
17086 choke me
17087 #endif
17088
17089 int
17090 main ()
17091 {
17092 return $ac_func ();
17093   ;
17094   return 0;
17095 }
17096 _ACEOF
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101   *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104   (eval "$ac_link") 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } && {
17111          test -z "$ac_c_werror_flag" ||
17112          test ! -s conftest.err
17113        } && test -s conftest$ac_exeext &&
17114        $as_test_x conftest$ac_exeext; then
17115   eval "$as_ac_var=yes"
17116 else
17117   echo "$as_me: failed program was:" >&5
17118 sed 's/^/| /' conftest.$ac_ext >&5
17119
17120         eval "$as_ac_var=no"
17121 fi
17122
17123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17124       conftest$ac_exeext conftest.$ac_ext
17125 fi
17126 ac_res=`eval echo '${'$as_ac_var'}'`
17127                { echo "$as_me:$LINENO: result: $ac_res" >&5
17128 echo "${ECHO_T}$ac_res" >&6; }
17129 if test `eval echo '${'$as_ac_var'}'` = yes; then
17130   cat >>confdefs.h <<_ACEOF
17131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17132 _ACEOF
17133
17134 else
17135   case " $LIBOBJS " in
17136   *" $ac_func.$ac_objext "* ) ;;
17137   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17138  ;;
17139 esac
17140
17141 fi
17142 done
17143
17144
17145 else
17146   case " $LIBOBJS " in
17147   *" getaddrinfo.$ac_objext "* ) ;;
17148   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
17149  ;;
17150 esac
17151
17152 fi
17153
17154 # Similarly, use system's getopt_long() only if system provides struct option.
17155 # Solaris' getopt() doesn't do what we want for long options, so always use
17156 # our versions on that platform.
17157 if test "$PORTNAME" = "solaris"; then
17158   case " $LIBOBJS " in
17159   *" getopt.$ac_objext "* ) ;;
17160   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17161  ;;
17162 esac
17163
17164   case " $LIBOBJS " in
17165   *" getopt_long.$ac_objext "* ) ;;
17166   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17167  ;;
17168 esac
17169
17170 elif test x"$ac_cv_type_struct_option" = xyes ; then
17171
17172 for ac_func in getopt_long
17173 do
17174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17175 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17177 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17178   echo $ECHO_N "(cached) $ECHO_C" >&6
17179 else
17180   cat >conftest.$ac_ext <<_ACEOF
17181 /* confdefs.h.  */
17182 _ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h.  */
17186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17188 #define $ac_func innocuous_$ac_func
17189
17190 /* System header to define __stub macros and hopefully few prototypes,
17191     which can conflict with char $ac_func (); below.
17192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17193     <limits.h> exists even on freestanding compilers.  */
17194
17195 #ifdef __STDC__
17196 # include <limits.h>
17197 #else
17198 # include <assert.h>
17199 #endif
17200
17201 #undef $ac_func
17202
17203 /* Override any GCC internal prototype to avoid an error.
17204    Use char because int might match the return type of a GCC
17205    builtin and then its argument prototype would still apply.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 char $ac_func ();
17210 /* The GNU C library defines this for functions which it implements
17211     to always fail with ENOSYS.  Some functions are actually named
17212     something starting with __ and the normal name is an alias.  */
17213 #if defined __stub_$ac_func || defined __stub___$ac_func
17214 choke me
17215 #endif
17216
17217 int
17218 main ()
17219 {
17220 return $ac_func ();
17221   ;
17222   return 0;
17223 }
17224 _ACEOF
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229   *) ac_try_echo=$ac_try;;
17230 esac
17231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232   (eval "$ac_link") 2>conftest.er1
17233   ac_status=$?
17234   grep -v '^ *+' conftest.er1 >conftest.err
17235   rm -f conftest.er1
17236   cat conftest.err >&5
17237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238   (exit $ac_status); } && {
17239          test -z "$ac_c_werror_flag" ||
17240          test ! -s conftest.err
17241        } && test -s conftest$ac_exeext &&
17242        $as_test_x conftest$ac_exeext; then
17243   eval "$as_ac_var=yes"
17244 else
17245   echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248         eval "$as_ac_var=no"
17249 fi
17250
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252       conftest$ac_exeext conftest.$ac_ext
17253 fi
17254 ac_res=`eval echo '${'$as_ac_var'}'`
17255                { echo "$as_me:$LINENO: result: $ac_res" >&5
17256 echo "${ECHO_T}$ac_res" >&6; }
17257 if test `eval echo '${'$as_ac_var'}'` = yes; then
17258   cat >>confdefs.h <<_ACEOF
17259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17260 _ACEOF
17261
17262 else
17263   case " $LIBOBJS " in
17264   *" $ac_func.$ac_objext "* ) ;;
17265   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17266  ;;
17267 esac
17268
17269 fi
17270 done
17271
17272
17273 else
17274   case " $LIBOBJS " in
17275   *" getopt_long.$ac_objext "* ) ;;
17276   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
17277  ;;
17278 esac
17279
17280 fi
17281
17282 # Win32 support
17283 if test "$PORTNAME" = "win32"; then
17284
17285 for ac_func in gettimeofday
17286 do
17287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17291   echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293   cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h.  */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h.  */
17299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17300    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17301 #define $ac_func innocuous_$ac_func
17302
17303 /* System header to define __stub macros and hopefully few prototypes,
17304     which can conflict with char $ac_func (); below.
17305     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17306     <limits.h> exists even on freestanding compilers.  */
17307
17308 #ifdef __STDC__
17309 # include <limits.h>
17310 #else
17311 # include <assert.h>
17312 #endif
17313
17314 #undef $ac_func
17315
17316 /* Override any GCC internal prototype to avoid an error.
17317    Use char because int might match the return type of a GCC
17318    builtin and then its argument prototype would still apply.  */
17319 #ifdef __cplusplus
17320 extern "C"
17321 #endif
17322 char $ac_func ();
17323 /* The GNU C library defines this for functions which it implements
17324     to always fail with ENOSYS.  Some functions are actually named
17325     something starting with __ and the normal name is an alias.  */
17326 #if defined __stub_$ac_func || defined __stub___$ac_func
17327 choke me
17328 #endif
17329
17330 int
17331 main ()
17332 {
17333 return $ac_func ();
17334   ;
17335   return 0;
17336 }
17337 _ACEOF
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342   *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345   (eval "$ac_link") 2>conftest.er1
17346   ac_status=$?
17347   grep -v '^ *+' conftest.er1 >conftest.err
17348   rm -f conftest.er1
17349   cat conftest.err >&5
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); } && {
17352          test -z "$ac_c_werror_flag" ||
17353          test ! -s conftest.err
17354        } && test -s conftest$ac_exeext &&
17355        $as_test_x conftest$ac_exeext; then
17356   eval "$as_ac_var=yes"
17357 else
17358   echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17360
17361         eval "$as_ac_var=no"
17362 fi
17363
17364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365       conftest$ac_exeext conftest.$ac_ext
17366 fi
17367 ac_res=`eval echo '${'$as_ac_var'}'`
17368                { echo "$as_me:$LINENO: result: $ac_res" >&5
17369 echo "${ECHO_T}$ac_res" >&6; }
17370 if test `eval echo '${'$as_ac_var'}'` = yes; then
17371   cat >>confdefs.h <<_ACEOF
17372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17373 _ACEOF
17374
17375 else
17376   case " $LIBOBJS " in
17377   *" $ac_func.$ac_objext "* ) ;;
17378   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17379  ;;
17380 esac
17381
17382 fi
17383 done
17384
17385
17386 case " $LIBOBJS " in
17387   *" kill.$ac_objext "* ) ;;
17388   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
17389  ;;
17390 esac
17391
17392 case " $LIBOBJS " in
17393   *" open.$ac_objext "* ) ;;
17394   *) LIBOBJS="$LIBOBJS open.$ac_objext"
17395  ;;
17396 esac
17397
17398 case " $LIBOBJS " in
17399   *" rand.$ac_objext "* ) ;;
17400   *) LIBOBJS="$LIBOBJS rand.$ac_objext"
17401  ;;
17402 esac
17403
17404 case " $LIBOBJS " in
17405   *" win32error.$ac_objext "* ) ;;
17406   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
17407  ;;
17408 esac
17409
17410
17411 cat >>confdefs.h <<\_ACEOF
17412 #define HAVE_SYMLINK 1
17413 _ACEOF
17414
17415 fi
17416
17417 if test "$with_readline" = yes; then
17418   { echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
17419 echo $ECHO_N "checking for rl_completion_append_character... $ECHO_C" >&6; }
17420 cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426 #include <stdio.h>
17427 #ifdef HAVE_READLINE_READLINE_H
17428 # include <readline/readline.h>
17429 #elif defined(HAVE_READLINE_H)
17430 # include <readline.h>
17431 #endif
17432
17433 int
17434 main ()
17435 {
17436 rl_completion_append_character = 'x';
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445   *) ac_try_echo=$ac_try;;
17446 esac
17447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17448   (eval "$ac_link") 2>conftest.er1
17449   ac_status=$?
17450   grep -v '^ *+' conftest.er1 >conftest.err
17451   rm -f conftest.er1
17452   cat conftest.err >&5
17453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454   (exit $ac_status); } && {
17455          test -z "$ac_c_werror_flag" ||
17456          test ! -s conftest.err
17457        } && test -s conftest$ac_exeext &&
17458        $as_test_x conftest$ac_exeext; then
17459   { echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6; }
17461
17462 cat >>confdefs.h <<\_ACEOF
17463 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
17464 _ACEOF
17465
17466 else
17467   echo "$as_me: failed program was:" >&5
17468 sed 's/^/| /' conftest.$ac_ext >&5
17469
17470         { echo "$as_me:$LINENO: result: no" >&5
17471 echo "${ECHO_T}no" >&6; }
17472 fi
17473
17474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17475       conftest$ac_exeext conftest.$ac_ext
17476
17477
17478 for ac_func in rl_completion_matches rl_filename_completion_function
17479 do
17480 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17481 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17482 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17483 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17484   echo $ECHO_N "(cached) $ECHO_C" >&6
17485 else
17486   cat >conftest.$ac_ext <<_ACEOF
17487 /* confdefs.h.  */
17488 _ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h.  */
17492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17493    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17494 #define $ac_func innocuous_$ac_func
17495
17496 /* System header to define __stub macros and hopefully few prototypes,
17497     which can conflict with char $ac_func (); below.
17498     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499     <limits.h> exists even on freestanding compilers.  */
17500
17501 #ifdef __STDC__
17502 # include <limits.h>
17503 #else
17504 # include <assert.h>
17505 #endif
17506
17507 #undef $ac_func
17508
17509 /* Override any GCC internal prototype to avoid an error.
17510    Use char because int might match the return type of a GCC
17511    builtin and then its argument prototype would still apply.  */
17512 #ifdef __cplusplus
17513 extern "C"
17514 #endif
17515 char $ac_func ();
17516 /* The GNU C library defines this for functions which it implements
17517     to always fail with ENOSYS.  Some functions are actually named
17518     something starting with __ and the normal name is an alias.  */
17519 #if defined __stub_$ac_func || defined __stub___$ac_func
17520 choke me
17521 #endif
17522
17523 int
17524 main ()
17525 {
17526 return $ac_func ();
17527   ;
17528   return 0;
17529 }
17530 _ACEOF
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (ac_try="$ac_link"
17533 case "(($ac_try" in
17534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535   *) ac_try_echo=$ac_try;;
17536 esac
17537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17538   (eval "$ac_link") 2>conftest.er1
17539   ac_status=$?
17540   grep -v '^ *+' conftest.er1 >conftest.err
17541   rm -f conftest.er1
17542   cat conftest.err >&5
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } && {
17545          test -z "$ac_c_werror_flag" ||
17546          test ! -s conftest.err
17547        } && test -s conftest$ac_exeext &&
17548        $as_test_x conftest$ac_exeext; then
17549   eval "$as_ac_var=yes"
17550 else
17551   echo "$as_me: failed program was:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17553
17554         eval "$as_ac_var=no"
17555 fi
17556
17557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17558       conftest$ac_exeext conftest.$ac_ext
17559 fi
17560 ac_res=`eval echo '${'$as_ac_var'}'`
17561                { echo "$as_me:$LINENO: result: $ac_res" >&5
17562 echo "${ECHO_T}$ac_res" >&6; }
17563 if test `eval echo '${'$as_ac_var'}'` = yes; then
17564   cat >>confdefs.h <<_ACEOF
17565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17566 _ACEOF
17567
17568 fi
17569 done
17570
17571
17572 for ac_func in replace_history_entry
17573 do
17574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17578   echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580   cat >conftest.$ac_ext <<_ACEOF
17581 /* confdefs.h.  */
17582 _ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h.  */
17586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17588 #define $ac_func innocuous_$ac_func
17589
17590 /* System header to define __stub macros and hopefully few prototypes,
17591     which can conflict with char $ac_func (); below.
17592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17593     <limits.h> exists even on freestanding compilers.  */
17594
17595 #ifdef __STDC__
17596 # include <limits.h>
17597 #else
17598 # include <assert.h>
17599 #endif
17600
17601 #undef $ac_func
17602
17603 /* Override any GCC internal prototype to avoid an error.
17604    Use char because int might match the return type of a GCC
17605    builtin and then its argument prototype would still apply.  */
17606 #ifdef __cplusplus
17607 extern "C"
17608 #endif
17609 char $ac_func ();
17610 /* The GNU C library defines this for functions which it implements
17611     to always fail with ENOSYS.  Some functions are actually named
17612     something starting with __ and the normal name is an alias.  */
17613 #if defined __stub_$ac_func || defined __stub___$ac_func
17614 choke me
17615 #endif
17616
17617 int
17618 main ()
17619 {
17620 return $ac_func ();
17621   ;
17622   return 0;
17623 }
17624 _ACEOF
17625 rm -f conftest.$ac_objext conftest$ac_exeext
17626 if { (ac_try="$ac_link"
17627 case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632   (eval "$ac_link") 2>conftest.er1
17633   ac_status=$?
17634   grep -v '^ *+' conftest.er1 >conftest.err
17635   rm -f conftest.er1
17636   cat conftest.err >&5
17637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638   (exit $ac_status); } && {
17639          test -z "$ac_c_werror_flag" ||
17640          test ! -s conftest.err
17641        } && test -s conftest$ac_exeext &&
17642        $as_test_x conftest$ac_exeext; then
17643   eval "$as_ac_var=yes"
17644 else
17645   echo "$as_me: failed program was:" >&5
17646 sed 's/^/| /' conftest.$ac_ext >&5
17647
17648         eval "$as_ac_var=no"
17649 fi
17650
17651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17652       conftest$ac_exeext conftest.$ac_ext
17653 fi
17654 ac_res=`eval echo '${'$as_ac_var'}'`
17655                { echo "$as_me:$LINENO: result: $ac_res" >&5
17656 echo "${ECHO_T}$ac_res" >&6; }
17657 if test `eval echo '${'$as_ac_var'}'` = yes; then
17658   cat >>confdefs.h <<_ACEOF
17659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17660 _ACEOF
17661
17662 fi
17663 done
17664
17665 fi
17666
17667
17668 { echo "$as_me:$LINENO: checking for sigsetjmp" >&5
17669 echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6; }
17670 cat >conftest.$ac_ext <<_ACEOF
17671 /* confdefs.h.  */
17672 _ACEOF
17673 cat confdefs.h >>conftest.$ac_ext
17674 cat >>conftest.$ac_ext <<_ACEOF
17675 /* end confdefs.h.  */
17676 #include <setjmp.h>
17677 int
17678 main ()
17679 {
17680 sigjmp_buf x; sigsetjmp(x, 1);
17681   ;
17682   return 0;
17683 }
17684 _ACEOF
17685 rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (ac_try="$ac_link"
17687 case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_link") 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } && {
17699          test -z "$ac_c_werror_flag" ||
17700          test ! -s conftest.err
17701        } && test -s conftest$ac_exeext &&
17702        $as_test_x conftest$ac_exeext; then
17703
17704 cat >>confdefs.h <<\_ACEOF
17705 #define HAVE_SIGSETJMP 1
17706 _ACEOF
17707
17708 { echo "$as_me:$LINENO: result: yes" >&5
17709 echo "${ECHO_T}yes" >&6; }
17710 else
17711   echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17713
17714         { echo "$as_me:$LINENO: result: no" >&5
17715 echo "${ECHO_T}no" >&6; }
17716 fi
17717
17718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17719       conftest$ac_exeext conftest.$ac_ext
17720
17721 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
17722 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
17723 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
17724   echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726   cat >conftest.$ac_ext <<_ACEOF
17727 /* confdefs.h.  */
17728 _ACEOF
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h.  */
17732 #include <signal.h>
17733 /* NetBSD declares sys_siglist in unistd.h.  */
17734 #ifdef HAVE_UNISTD_H
17735 # include <unistd.h>
17736 #endif
17737
17738
17739 int
17740 main ()
17741 {
17742 #ifndef sys_siglist
17743   (void) sys_siglist;
17744 #endif
17745
17746   ;
17747   return 0;
17748 }
17749 _ACEOF
17750 rm -f conftest.$ac_objext
17751 if { (ac_try="$ac_compile"
17752 case "(($ac_try" in
17753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754   *) ac_try_echo=$ac_try;;
17755 esac
17756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17757   (eval "$ac_compile") 2>conftest.er1
17758   ac_status=$?
17759   grep -v '^ *+' conftest.er1 >conftest.err
17760   rm -f conftest.er1
17761   cat conftest.err >&5
17762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763   (exit $ac_status); } && {
17764          test -z "$ac_c_werror_flag" ||
17765          test ! -s conftest.err
17766        } && test -s conftest.$ac_objext; then
17767   ac_cv_have_decl_sys_siglist=yes
17768 else
17769   echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772         ac_cv_have_decl_sys_siglist=no
17773 fi
17774
17775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17776 fi
17777 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
17778 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
17779 if test $ac_cv_have_decl_sys_siglist = yes; then
17780
17781 cat >>confdefs.h <<_ACEOF
17782 #define HAVE_DECL_SYS_SIGLIST 1
17783 _ACEOF
17784
17785
17786 else
17787   cat >>confdefs.h <<_ACEOF
17788 #define HAVE_DECL_SYS_SIGLIST 0
17789 _ACEOF
17790
17791
17792 fi
17793
17794
17795
17796
17797 { echo "$as_me:$LINENO: checking for syslog" >&5
17798 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
17799 if test "${ac_cv_func_syslog+set}" = set; then
17800   echo $ECHO_N "(cached) $ECHO_C" >&6
17801 else
17802   cat >conftest.$ac_ext <<_ACEOF
17803 /* confdefs.h.  */
17804 _ACEOF
17805 cat confdefs.h >>conftest.$ac_ext
17806 cat >>conftest.$ac_ext <<_ACEOF
17807 /* end confdefs.h.  */
17808 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
17809    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17810 #define syslog innocuous_syslog
17811
17812 /* System header to define __stub macros and hopefully few prototypes,
17813     which can conflict with char syslog (); below.
17814     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17815     <limits.h> exists even on freestanding compilers.  */
17816
17817 #ifdef __STDC__
17818 # include <limits.h>
17819 #else
17820 # include <assert.h>
17821 #endif
17822
17823 #undef syslog
17824
17825 /* Override any GCC internal prototype to avoid an error.
17826    Use char because int might match the return type of a GCC
17827    builtin and then its argument prototype would still apply.  */
17828 #ifdef __cplusplus
17829 extern "C"
17830 #endif
17831 char syslog ();
17832 /* The GNU C library defines this for functions which it implements
17833     to always fail with ENOSYS.  Some functions are actually named
17834     something starting with __ and the normal name is an alias.  */
17835 #if defined __stub_syslog || defined __stub___syslog
17836 choke me
17837 #endif
17838
17839 int
17840 main ()
17841 {
17842 return syslog ();
17843   ;
17844   return 0;
17845 }
17846 _ACEOF
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851   *) ac_try_echo=$ac_try;;
17852 esac
17853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17854   (eval "$ac_link") 2>conftest.er1
17855   ac_status=$?
17856   grep -v '^ *+' conftest.er1 >conftest.err
17857   rm -f conftest.er1
17858   cat conftest.err >&5
17859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860   (exit $ac_status); } && {
17861          test -z "$ac_c_werror_flag" ||
17862          test ! -s conftest.err
17863        } && test -s conftest$ac_exeext &&
17864        $as_test_x conftest$ac_exeext; then
17865   ac_cv_func_syslog=yes
17866 else
17867   echo "$as_me: failed program was:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17869
17870         ac_cv_func_syslog=no
17871 fi
17872
17873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17874       conftest$ac_exeext conftest.$ac_ext
17875 fi
17876 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
17877 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
17878 if test $ac_cv_func_syslog = yes; then
17879   if test "${ac_cv_header_syslog_h+set}" = set; then
17880   { echo "$as_me:$LINENO: checking for syslog.h" >&5
17881 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
17882 if test "${ac_cv_header_syslog_h+set}" = set; then
17883   echo $ECHO_N "(cached) $ECHO_C" >&6
17884 fi
17885 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
17886 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
17887 else
17888   # Is the header compilable?
17889 { echo "$as_me:$LINENO: checking syslog.h usability" >&5
17890 echo $ECHO_N "checking syslog.h usability... $ECHO_C" >&6; }
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h.  */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h.  */
17897 $ac_includes_default
17898 #include <syslog.h>
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904   *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907   (eval "$ac_compile") 2>conftest.er1
17908   ac_status=$?
17909   grep -v '^ *+' conftest.er1 >conftest.err
17910   rm -f conftest.er1
17911   cat conftest.err >&5
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); } && {
17914          test -z "$ac_c_werror_flag" ||
17915          test ! -s conftest.err
17916        } && test -s conftest.$ac_objext; then
17917   ac_header_compiler=yes
17918 else
17919   echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17921
17922         ac_header_compiler=no
17923 fi
17924
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17927 echo "${ECHO_T}$ac_header_compiler" >&6; }
17928
17929 # Is the header present?
17930 { echo "$as_me:$LINENO: checking syslog.h presence" >&5
17931 echo $ECHO_N "checking syslog.h presence... $ECHO_C" >&6; }
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h.  */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h.  */
17938 #include <syslog.h>
17939 _ACEOF
17940 if { (ac_try="$ac_cpp conftest.$ac_ext"
17941 case "(($ac_try" in
17942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943   *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17947   ac_status=$?
17948   grep -v '^ *+' conftest.er1 >conftest.err
17949   rm -f conftest.er1
17950   cat conftest.err >&5
17951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952   (exit $ac_status); } >/dev/null && {
17953          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17954          test ! -s conftest.err
17955        }; then
17956   ac_header_preproc=yes
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961   ac_header_preproc=no
17962 fi
17963
17964 rm -f conftest.err conftest.$ac_ext
17965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17966 echo "${ECHO_T}$ac_header_preproc" >&6; }
17967
17968 # So?  What about this header?
17969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17970   yes:no: )
17971     { echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
17972 echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17973     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
17974 echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
17975     ac_header_preproc=yes
17976     ;;
17977   no:yes:* )
17978     { echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
17979 echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
17980     { echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
17981 echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
17982     { echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
17983 echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
17984     { echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
17985 echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17986     { echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
17987 echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
17988     { echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
17989 echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
17990     ( cat <<\_ASBOX
17991 ## ---------------------------------------- ##
17992 ## Report this to pgsql-bugs@postgresql.org ##
17993 ## ---------------------------------------- ##
17994 _ASBOX
17995      ) | sed "s/^/$as_me: WARNING:     /" >&2
17996     ;;
17997 esac
17998 { echo "$as_me:$LINENO: checking for syslog.h" >&5
17999 echo $ECHO_N "checking for syslog.h... $ECHO_C" >&6; }
18000 if test "${ac_cv_header_syslog_h+set}" = set; then
18001   echo $ECHO_N "(cached) $ECHO_C" >&6
18002 else
18003   ac_cv_header_syslog_h=$ac_header_preproc
18004 fi
18005 { echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
18006 echo "${ECHO_T}$ac_cv_header_syslog_h" >&6; }
18007
18008 fi
18009 if test $ac_cv_header_syslog_h = yes; then
18010
18011 cat >>confdefs.h <<\_ACEOF
18012 #define HAVE_SYSLOG 1
18013 _ACEOF
18014
18015 fi
18016
18017
18018 fi
18019
18020
18021 { echo "$as_me:$LINENO: checking for optreset" >&5
18022 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
18023 if test "${pgac_cv_var_int_optreset+set}" = set; then
18024   echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026   cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h.  */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h.  */
18032 #include <unistd.h>
18033 int
18034 main ()
18035 {
18036 extern int optreset; optreset = 1;
18037   ;
18038   return 0;
18039 }
18040 _ACEOF
18041 rm -f conftest.$ac_objext conftest$ac_exeext
18042 if { (ac_try="$ac_link"
18043 case "(($ac_try" in
18044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045   *) ac_try_echo=$ac_try;;
18046 esac
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048   (eval "$ac_link") 2>conftest.er1
18049   ac_status=$?
18050   grep -v '^ *+' conftest.er1 >conftest.err
18051   rm -f conftest.er1
18052   cat conftest.err >&5
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); } && {
18055          test -z "$ac_c_werror_flag" ||
18056          test ! -s conftest.err
18057        } && test -s conftest$ac_exeext &&
18058        $as_test_x conftest$ac_exeext; then
18059   pgac_cv_var_int_optreset=yes
18060 else
18061   echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18063
18064         pgac_cv_var_int_optreset=no
18065 fi
18066
18067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18068       conftest$ac_exeext conftest.$ac_ext
18069 fi
18070 { echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
18071 echo "${ECHO_T}$pgac_cv_var_int_optreset" >&6; }
18072 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
18073
18074 cat >>confdefs.h <<\_ACEOF
18075 #define HAVE_INT_OPTRESET 1
18076 _ACEOF
18077
18078 fi
18079
18080
18081
18082 for ac_func in strtoll strtoq
18083 do
18084 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18085 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18086 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18088   echo $ECHO_N "(cached) $ECHO_C" >&6
18089 else
18090   cat >conftest.$ac_ext <<_ACEOF
18091 /* confdefs.h.  */
18092 _ACEOF
18093 cat confdefs.h >>conftest.$ac_ext
18094 cat >>conftest.$ac_ext <<_ACEOF
18095 /* end confdefs.h.  */
18096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18097    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18098 #define $ac_func innocuous_$ac_func
18099
18100 /* System header to define __stub macros and hopefully few prototypes,
18101     which can conflict with char $ac_func (); below.
18102     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18103     <limits.h> exists even on freestanding compilers.  */
18104
18105 #ifdef __STDC__
18106 # include <limits.h>
18107 #else
18108 # include <assert.h>
18109 #endif
18110
18111 #undef $ac_func
18112
18113 /* Override any GCC internal prototype to avoid an error.
18114    Use char because int might match the return type of a GCC
18115    builtin and then its argument prototype would still apply.  */
18116 #ifdef __cplusplus
18117 extern "C"
18118 #endif
18119 char $ac_func ();
18120 /* The GNU C library defines this for functions which it implements
18121     to always fail with ENOSYS.  Some functions are actually named
18122     something starting with __ and the normal name is an alias.  */
18123 #if defined __stub_$ac_func || defined __stub___$ac_func
18124 choke me
18125 #endif
18126
18127 int
18128 main ()
18129 {
18130 return $ac_func ();
18131   ;
18132   return 0;
18133 }
18134 _ACEOF
18135 rm -f conftest.$ac_objext conftest$ac_exeext
18136 if { (ac_try="$ac_link"
18137 case "(($ac_try" in
18138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18139   *) ac_try_echo=$ac_try;;
18140 esac
18141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18142   (eval "$ac_link") 2>conftest.er1
18143   ac_status=$?
18144   grep -v '^ *+' conftest.er1 >conftest.err
18145   rm -f conftest.er1
18146   cat conftest.err >&5
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); } && {
18149          test -z "$ac_c_werror_flag" ||
18150          test ! -s conftest.err
18151        } && test -s conftest$ac_exeext &&
18152        $as_test_x conftest$ac_exeext; then
18153   eval "$as_ac_var=yes"
18154 else
18155   echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18157
18158         eval "$as_ac_var=no"
18159 fi
18160
18161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18162       conftest$ac_exeext conftest.$ac_ext
18163 fi
18164 ac_res=`eval echo '${'$as_ac_var'}'`
18165                { echo "$as_me:$LINENO: result: $ac_res" >&5
18166 echo "${ECHO_T}$ac_res" >&6; }
18167 if test `eval echo '${'$as_ac_var'}'` = yes; then
18168   cat >>confdefs.h <<_ACEOF
18169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18170 _ACEOF
18171  break
18172 fi
18173 done
18174
18175
18176
18177 for ac_func in strtoull strtouq
18178 do
18179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18183   echo $ECHO_N "(cached) $ECHO_C" >&6
18184 else
18185   cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18193 #define $ac_func innocuous_$ac_func
18194
18195 /* System header to define __stub macros and hopefully few prototypes,
18196     which can conflict with char $ac_func (); below.
18197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18198     <limits.h> exists even on freestanding compilers.  */
18199
18200 #ifdef __STDC__
18201 # include <limits.h>
18202 #else
18203 # include <assert.h>
18204 #endif
18205
18206 #undef $ac_func
18207
18208 /* Override any GCC internal prototype to avoid an error.
18209    Use char because int might match the return type of a GCC
18210    builtin and then its argument prototype would still apply.  */
18211 #ifdef __cplusplus
18212 extern "C"
18213 #endif
18214 char $ac_func ();
18215 /* The GNU C library defines this for functions which it implements
18216     to always fail with ENOSYS.  Some functions are actually named
18217     something starting with __ and the normal name is an alias.  */
18218 #if defined __stub_$ac_func || defined __stub___$ac_func
18219 choke me
18220 #endif
18221
18222 int
18223 main ()
18224 {
18225 return $ac_func ();
18226   ;
18227   return 0;
18228 }
18229 _ACEOF
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (ac_try="$ac_link"
18232 case "(($ac_try" in
18233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234   *) ac_try_echo=$ac_try;;
18235 esac
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237   (eval "$ac_link") 2>conftest.er1
18238   ac_status=$?
18239   grep -v '^ *+' conftest.er1 >conftest.err
18240   rm -f conftest.er1
18241   cat conftest.err >&5
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); } && {
18244          test -z "$ac_c_werror_flag" ||
18245          test ! -s conftest.err
18246        } && test -s conftest$ac_exeext &&
18247        $as_test_x conftest$ac_exeext; then
18248   eval "$as_ac_var=yes"
18249 else
18250   echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253         eval "$as_ac_var=no"
18254 fi
18255
18256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18257       conftest$ac_exeext conftest.$ac_ext
18258 fi
18259 ac_res=`eval echo '${'$as_ac_var'}'`
18260                { echo "$as_me:$LINENO: result: $ac_res" >&5
18261 echo "${ECHO_T}$ac_res" >&6; }
18262 if test `eval echo '${'$as_ac_var'}'` = yes; then
18263   cat >>confdefs.h <<_ACEOF
18264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18265 _ACEOF
18266  break
18267 fi
18268 done
18269
18270
18271 # Check for one of atexit() or on_exit()
18272
18273 for ac_func in atexit
18274 do
18275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18279   echo $ECHO_N "(cached) $ECHO_C" >&6
18280 else
18281   cat >conftest.$ac_ext <<_ACEOF
18282 /* confdefs.h.  */
18283 _ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h.  */
18287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18289 #define $ac_func innocuous_$ac_func
18290
18291 /* System header to define __stub macros and hopefully few prototypes,
18292     which can conflict with char $ac_func (); below.
18293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18294     <limits.h> exists even on freestanding compilers.  */
18295
18296 #ifdef __STDC__
18297 # include <limits.h>
18298 #else
18299 # include <assert.h>
18300 #endif
18301
18302 #undef $ac_func
18303
18304 /* Override any GCC internal prototype to avoid an error.
18305    Use char because int might match the return type of a GCC
18306    builtin and then its argument prototype would still apply.  */
18307 #ifdef __cplusplus
18308 extern "C"
18309 #endif
18310 char $ac_func ();
18311 /* The GNU C library defines this for functions which it implements
18312     to always fail with ENOSYS.  Some functions are actually named
18313     something starting with __ and the normal name is an alias.  */
18314 #if defined __stub_$ac_func || defined __stub___$ac_func
18315 choke me
18316 #endif
18317
18318 int
18319 main ()
18320 {
18321 return $ac_func ();
18322   ;
18323   return 0;
18324 }
18325 _ACEOF
18326 rm -f conftest.$ac_objext conftest$ac_exeext
18327 if { (ac_try="$ac_link"
18328 case "(($ac_try" in
18329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18330   *) ac_try_echo=$ac_try;;
18331 esac
18332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18333   (eval "$ac_link") 2>conftest.er1
18334   ac_status=$?
18335   grep -v '^ *+' conftest.er1 >conftest.err
18336   rm -f conftest.er1
18337   cat conftest.err >&5
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); } && {
18340          test -z "$ac_c_werror_flag" ||
18341          test ! -s conftest.err
18342        } && test -s conftest$ac_exeext &&
18343        $as_test_x conftest$ac_exeext; then
18344   eval "$as_ac_var=yes"
18345 else
18346   echo "$as_me: failed program was:" >&5
18347 sed 's/^/| /' conftest.$ac_ext >&5
18348
18349         eval "$as_ac_var=no"
18350 fi
18351
18352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18353       conftest$ac_exeext conftest.$ac_ext
18354 fi
18355 ac_res=`eval echo '${'$as_ac_var'}'`
18356                { echo "$as_me:$LINENO: result: $ac_res" >&5
18357 echo "${ECHO_T}$ac_res" >&6; }
18358 if test `eval echo '${'$as_ac_var'}'` = yes; then
18359   cat >>confdefs.h <<_ACEOF
18360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18361 _ACEOF
18362
18363 else
18364
18365 for ac_func in on_exit
18366 do
18367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18368 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18370 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18371   echo $ECHO_N "(cached) $ECHO_C" >&6
18372 else
18373   cat >conftest.$ac_ext <<_ACEOF
18374 /* confdefs.h.  */
18375 _ACEOF
18376 cat confdefs.h >>conftest.$ac_ext
18377 cat >>conftest.$ac_ext <<_ACEOF
18378 /* end confdefs.h.  */
18379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18381 #define $ac_func innocuous_$ac_func
18382
18383 /* System header to define __stub macros and hopefully few prototypes,
18384     which can conflict with char $ac_func (); below.
18385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18386     <limits.h> exists even on freestanding compilers.  */
18387
18388 #ifdef __STDC__
18389 # include <limits.h>
18390 #else
18391 # include <assert.h>
18392 #endif
18393
18394 #undef $ac_func
18395
18396 /* Override any GCC internal prototype to avoid an error.
18397    Use char because int might match the return type of a GCC
18398    builtin and then its argument prototype would still apply.  */
18399 #ifdef __cplusplus
18400 extern "C"
18401 #endif
18402 char $ac_func ();
18403 /* The GNU C library defines this for functions which it implements
18404     to always fail with ENOSYS.  Some functions are actually named
18405     something starting with __ and the normal name is an alias.  */
18406 #if defined __stub_$ac_func || defined __stub___$ac_func
18407 choke me
18408 #endif
18409
18410 int
18411 main ()
18412 {
18413 return $ac_func ();
18414   ;
18415   return 0;
18416 }
18417 _ACEOF
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425   (eval "$ac_link") 2>conftest.er1
18426   ac_status=$?
18427   grep -v '^ *+' conftest.er1 >conftest.err
18428   rm -f conftest.er1
18429   cat conftest.err >&5
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } && {
18432          test -z "$ac_c_werror_flag" ||
18433          test ! -s conftest.err
18434        } && test -s conftest$ac_exeext &&
18435        $as_test_x conftest$ac_exeext; then
18436   eval "$as_ac_var=yes"
18437 else
18438   echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441         eval "$as_ac_var=no"
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18445       conftest$ac_exeext conftest.$ac_ext
18446 fi
18447 ac_res=`eval echo '${'$as_ac_var'}'`
18448                { echo "$as_me:$LINENO: result: $ac_res" >&5
18449 echo "${ECHO_T}$ac_res" >&6; }
18450 if test `eval echo '${'$as_ac_var'}'` = yes; then
18451   cat >>confdefs.h <<_ACEOF
18452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18453 _ACEOF
18454
18455 else
18456   { { echo "$as_me:$LINENO: error: neither atexit() nor on_exit() found" >&5
18457 echo "$as_me: error: neither atexit() nor on_exit() found" >&2;}
18458    { (exit 1); exit 1; }; }
18459 fi
18460 done
18461
18462 fi
18463 done
18464
18465
18466
18467 for ac_func in fseeko
18468 do
18469 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18470 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18471 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18472 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18473   echo $ECHO_N "(cached) $ECHO_C" >&6
18474 else
18475   cat >conftest.$ac_ext <<_ACEOF
18476 /* confdefs.h.  */
18477 _ACEOF
18478 cat confdefs.h >>conftest.$ac_ext
18479 cat >>conftest.$ac_ext <<_ACEOF
18480 /* end confdefs.h.  */
18481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18483 #define $ac_func innocuous_$ac_func
18484
18485 /* System header to define __stub macros and hopefully few prototypes,
18486     which can conflict with char $ac_func (); below.
18487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18488     <limits.h> exists even on freestanding compilers.  */
18489
18490 #ifdef __STDC__
18491 # include <limits.h>
18492 #else
18493 # include <assert.h>
18494 #endif
18495
18496 #undef $ac_func
18497
18498 /* Override any GCC internal prototype to avoid an error.
18499    Use char because int might match the return type of a GCC
18500    builtin and then its argument prototype would still apply.  */
18501 #ifdef __cplusplus
18502 extern "C"
18503 #endif
18504 char $ac_func ();
18505 /* The GNU C library defines this for functions which it implements
18506     to always fail with ENOSYS.  Some functions are actually named
18507     something starting with __ and the normal name is an alias.  */
18508 #if defined __stub_$ac_func || defined __stub___$ac_func
18509 choke me
18510 #endif
18511
18512 int
18513 main ()
18514 {
18515 return $ac_func ();
18516   ;
18517   return 0;
18518 }
18519 _ACEOF
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524   *) ac_try_echo=$ac_try;;
18525 esac
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527   (eval "$ac_link") 2>conftest.er1
18528   ac_status=$?
18529   grep -v '^ *+' conftest.er1 >conftest.err
18530   rm -f conftest.er1
18531   cat conftest.err >&5
18532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533   (exit $ac_status); } && {
18534          test -z "$ac_c_werror_flag" ||
18535          test ! -s conftest.err
18536        } && test -s conftest$ac_exeext &&
18537        $as_test_x conftest$ac_exeext; then
18538   eval "$as_ac_var=yes"
18539 else
18540   echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543         eval "$as_ac_var=no"
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547       conftest$ac_exeext conftest.$ac_ext
18548 fi
18549 ac_res=`eval echo '${'$as_ac_var'}'`
18550                { echo "$as_me:$LINENO: result: $ac_res" >&5
18551 echo "${ECHO_T}$ac_res" >&6; }
18552 if test `eval echo '${'$as_ac_var'}'` = yes; then
18553   cat >>confdefs.h <<_ACEOF
18554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18555 _ACEOF
18556
18557 else
18558   case " $LIBOBJS " in
18559   *" $ac_func.$ac_objext "* ) ;;
18560   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
18561  ;;
18562 esac
18563
18564 fi
18565 done
18566
18567
18568 case $host_os in
18569         # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos
18570         bsdi*|netbsd*)
18571
18572 cat >>confdefs.h <<\_ACEOF
18573 #define HAVE_FSEEKO 1
18574 _ACEOF
18575
18576                 ac_cv_func_fseeko=yes;;
18577         *)
18578                 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18579 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18580 if test "${ac_cv_sys_largefile_source+set}" = set; then
18581   echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583   while :; do
18584   cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h.  */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h.  */
18590 #include <sys/types.h> /* for off_t */
18591      #include <stdio.h>
18592 int
18593 main ()
18594 {
18595 int (*fp) (FILE *, off_t, int) = fseeko;
18596      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18597   ;
18598   return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (ac_try="$ac_link"
18603 case "(($ac_try" in
18604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605   *) ac_try_echo=$ac_try;;
18606 esac
18607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18608   (eval "$ac_link") 2>conftest.er1
18609   ac_status=$?
18610   grep -v '^ *+' conftest.er1 >conftest.err
18611   rm -f conftest.er1
18612   cat conftest.err >&5
18613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614   (exit $ac_status); } && {
18615          test -z "$ac_c_werror_flag" ||
18616          test ! -s conftest.err
18617        } && test -s conftest$ac_exeext &&
18618        $as_test_x conftest$ac_exeext; then
18619   ac_cv_sys_largefile_source=no; break
18620 else
18621   echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18623
18624
18625 fi
18626
18627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18628       conftest$ac_exeext conftest.$ac_ext
18629   cat >conftest.$ac_ext <<_ACEOF
18630 /* confdefs.h.  */
18631 _ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h.  */
18635 #define _LARGEFILE_SOURCE 1
18636 #include <sys/types.h> /* for off_t */
18637      #include <stdio.h>
18638 int
18639 main ()
18640 {
18641 int (*fp) (FILE *, off_t, int) = fseeko;
18642      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18643   ;
18644   return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest.$ac_objext conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651   *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654   (eval "$ac_link") 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } && {
18661          test -z "$ac_c_werror_flag" ||
18662          test ! -s conftest.err
18663        } && test -s conftest$ac_exeext &&
18664        $as_test_x conftest$ac_exeext; then
18665   ac_cv_sys_largefile_source=1; break
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670
18671 fi
18672
18673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18674       conftest$ac_exeext conftest.$ac_ext
18675   ac_cv_sys_largefile_source=unknown
18676   break
18677 done
18678 fi
18679 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18680 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18681 case $ac_cv_sys_largefile_source in #(
18682   no | unknown) ;;
18683   *)
18684 cat >>confdefs.h <<_ACEOF
18685 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18686 _ACEOF
18687 ;;
18688 esac
18689 rm -f conftest*
18690
18691 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18692 # in glibc 2.1.3, but that breaks too many other things.
18693 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18694 if test $ac_cv_sys_largefile_source != unknown; then
18695
18696 cat >>confdefs.h <<\_ACEOF
18697 #define HAVE_FSEEKO 1
18698 _ACEOF
18699
18700 fi
18701 ;;
18702 esac
18703
18704
18705 #
18706 # Pthreads
18707 #
18708 # For each platform, we need to know about any special compile and link
18709 # libraries, and whether the normal C function names are thread-safe.
18710 # See the comment at the top of src/port/thread.c for more information.
18711 # WIN32 doesn't need the pthread tests;  it always uses threads
18712 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
18713
18714
18715
18716 ac_ext=c
18717 ac_cpp='$CPP $CPPFLAGS'
18718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18721
18722 acx_pthread_ok=no
18723
18724 # We used to check for pthread.h first, but this fails if pthread.h
18725 # requires special compiler flags (e.g. on True64 or Sequent).
18726 # It gets checked for in the link test anyway.
18727
18728 # First of all, check if the user has set any of the PTHREAD_LIBS,
18729 # etcetera environment variables, and if threads linking works using
18730 # them:
18731 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18732         save_CFLAGS="$CFLAGS"
18733         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18734         save_LIBS="$LIBS"
18735         LIBS="$PTHREAD_LIBS $LIBS"
18736         { echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18737 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6; }
18738         cat >conftest.$ac_ext <<_ACEOF
18739 /* confdefs.h.  */
18740 _ACEOF
18741 cat confdefs.h >>conftest.$ac_ext
18742 cat >>conftest.$ac_ext <<_ACEOF
18743 /* end confdefs.h.  */
18744
18745 /* Override any GCC internal prototype to avoid an error.
18746    Use char because int might match the return type of a GCC
18747    builtin and then its argument prototype would still apply.  */
18748 #ifdef __cplusplus
18749 extern "C"
18750 #endif
18751 char pthread_join ();
18752 int
18753 main ()
18754 {
18755 return pthread_join ();
18756   ;
18757   return 0;
18758 }
18759 _ACEOF
18760 rm -f conftest.$ac_objext conftest$ac_exeext
18761 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18777        $as_test_x conftest$ac_exeext; then
18778   acx_pthread_ok=yes
18779 else
18780   echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18782
18783
18784 fi
18785
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787       conftest$ac_exeext conftest.$ac_ext
18788         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
18789 echo "${ECHO_T}$acx_pthread_ok" >&6; }
18790         if test x"$acx_pthread_ok" = xno; then
18791                 PTHREAD_LIBS=""
18792                 PTHREAD_CFLAGS=""
18793         fi
18794         LIBS="$save_LIBS"
18795         CFLAGS="$save_CFLAGS"
18796 fi
18797
18798 # We must check for the threads library under a number of different
18799 # names; the ordering is very important because some systems
18800 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
18801 # libraries is broken (non-POSIX).
18802
18803 # Create a list of thread flags to try.  Items starting with a "-" are
18804 # C compiler flags, and other items are library names, except for "none"
18805 # which indicates that we try without any flags at all, and "pthread-config"
18806 # which is a program returning the flags for the Pth emulation library.
18807
18808 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
18809
18810 # The ordering *is* (sometimes) important.  Some notes on the
18811 # individual items follow:
18812
18813 # pthreads: AIX (must check this before -lpthread)
18814 # none: in case threads are in libc; should be tried before -Kthread and
18815 #       other compiler flags to prevent continual compiler warnings
18816 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
18817 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
18818 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
18819 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
18820 # -pthreads: Solaris/gcc
18821 # -mthreads: Mingw32/gcc, Lynx/gcc
18822 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
18823 #      doesn't hurt to check since this sometimes defines pthreads too;
18824 #      also defines -D_REENTRANT)
18825 # pthread: Linux, etcetera
18826 # --thread-safe: KAI C++
18827 # pthread-config: use pthread-config program (for GNU Pth library)
18828
18829 case "${host_cpu}-${host_os}" in
18830         *solaris*)
18831
18832         # On Solaris (at least, for some versions), libc contains stubbed
18833         # (non-functional) versions of the pthreads routines, so link-based
18834         # tests will erroneously succeed.  (We need to link with -pthread or
18835         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
18836         # a function called by this macro, so we could check for that, but
18837         # who knows whether they'll stub that too in a future libc.)  So,
18838         # we'll just look for -pthreads and -lpthread first:
18839
18840         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
18841         ;;
18842 esac
18843
18844 if test x"$acx_pthread_ok" = xno; then
18845 for flag in $acx_pthread_flags; do
18846
18847         tryPTHREAD_CFLAGS=""
18848         tryPTHREAD_LIBS=""
18849         case $flag in
18850                 none)
18851                 { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
18852 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
18853                 ;;
18854
18855                 -*)
18856                 { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
18857 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
18858                 tryPTHREAD_CFLAGS="$flag"
18859                 ;;
18860
18861                 pthread-config)
18862                 # skip this if we already have flags defined, for PostgreSQL
18863                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
18864                 # Extract the first word of "pthread-config", so it can be a program name with args.
18865 set dummy pthread-config; ac_word=$2
18866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18868 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
18869   echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871   if test -n "$acx_pthread_config"; then
18872   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
18873 else
18874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18875 for as_dir in $PATH
18876 do
18877   IFS=$as_save_IFS
18878   test -z "$as_dir" && as_dir=.
18879   for ac_exec_ext in '' $ac_executable_extensions; do
18880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18881     ac_cv_prog_acx_pthread_config="yes"
18882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18883     break 2
18884   fi
18885 done
18886 done
18887 IFS=$as_save_IFS
18888
18889   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
18890 fi
18891 fi
18892 acx_pthread_config=$ac_cv_prog_acx_pthread_config
18893 if test -n "$acx_pthread_config"; then
18894   { echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
18895 echo "${ECHO_T}$acx_pthread_config" >&6; }
18896 else
18897   { echo "$as_me:$LINENO: result: no" >&5
18898 echo "${ECHO_T}no" >&6; }
18899 fi
18900
18901
18902                 if test x"$acx_pthread_config" = xno; then continue; fi
18903                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
18904                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
18905                 ;;
18906
18907                 *)
18908                 { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
18909 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
18910                 tryPTHREAD_LIBS="-l$flag"
18911                 ;;
18912         esac
18913
18914         save_LIBS="$LIBS"
18915         save_CFLAGS="$CFLAGS"
18916         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
18917         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18918
18919         # Check for various functions.  We must include pthread.h,
18920         # since some functions may be macros.  (On the Sequent, we
18921         # need a special flag -Kthread to make this header compile.)
18922         # We check for pthread_join because it is in -lpthread on IRIX
18923         # while pthread_create is in libc.  We check for pthread_attr_init
18924         # due to DEC craziness with -lpthreads.  We check for
18925         # pthread_cleanup_push because it is one of the few pthread
18926         # functions on Solaris that doesn't have a non-functional libc stub.
18927         # We try pthread_create on general principles.
18928         cat >conftest.$ac_ext <<_ACEOF
18929 /* confdefs.h.  */
18930 _ACEOF
18931 cat confdefs.h >>conftest.$ac_ext
18932 cat >>conftest.$ac_ext <<_ACEOF
18933 /* end confdefs.h.  */
18934 #include <pthread.h>
18935 int
18936 main ()
18937 {
18938 pthread_t th; pthread_join(th, 0);
18939                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
18940                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
18941   ;
18942   return 0;
18943 }
18944 _ACEOF
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949   *) ac_try_echo=$ac_try;;
18950 esac
18951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18952   (eval "$ac_link") 2>conftest.er1
18953   ac_status=$?
18954   grep -v '^ *+' conftest.er1 >conftest.err
18955   rm -f conftest.er1
18956   cat conftest.err >&5
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); } && {
18959          test -z "$ac_c_werror_flag" ||
18960          test ! -s conftest.err
18961        } && test -s conftest$ac_exeext &&
18962        $as_test_x conftest$ac_exeext; then
18963   acx_pthread_ok=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         acx_pthread_ok=no
18969 fi
18970
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972       conftest$ac_exeext conftest.$ac_ext
18973
18974         if test "x$acx_pthread_ok" = xyes; then
18975             # Don't use options that are ignored by the compiler.
18976             # We find them by checking stderror.
18977             cat >conftest.$ac_ext <<_ACEOF
18978 int
18979 main (int argc, char **argv)
18980 {
18981   (void) argc;
18982   (void) argv;
18983   return 0;
18984 }
18985 _ACEOF
18986             rm -f conftest.$ac_objext conftest$ac_exeext
18987             if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
18988                 # we continue with more flags because Linux needs -lpthread
18989                 # for libpq builds on PostgreSQL.  The test above only
18990                 # tests for building binaries, not shared libraries.
18991                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
18992                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
18993             else   acx_pthread_ok=no
18994             fi
18995         fi
18996
18997         LIBS="$save_LIBS"
18998         CFLAGS="$save_CFLAGS"
18999
19000         { echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
19001 echo "${ECHO_T}$acx_pthread_ok" >&6; }
19002 done
19003 fi
19004
19005 # Various other checks:
19006 if test "x$acx_pthread_ok" = xyes; then
19007         save_LIBS="$LIBS"
19008         LIBS="$PTHREAD_LIBS $LIBS"
19009         save_CFLAGS="$CFLAGS"
19010         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19011
19012         # Detect AIX lossage: threads are created detached by default
19013         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
19014         { echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
19015 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6; }
19016         cat >conftest.$ac_ext <<_ACEOF
19017 /* confdefs.h.  */
19018 _ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h.  */
19022 #include <pthread.h>
19023 int
19024 main ()
19025 {
19026 int attr=PTHREAD_CREATE_JOINABLE;
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035   *) ac_try_echo=$ac_try;;
19036 esac
19037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19038   (eval "$ac_link") 2>conftest.er1
19039   ac_status=$?
19040   grep -v '^ *+' conftest.er1 >conftest.err
19041   rm -f conftest.er1
19042   cat conftest.err >&5
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); } && {
19045          test -z "$ac_c_werror_flag" ||
19046          test ! -s conftest.err
19047        } && test -s conftest$ac_exeext &&
19048        $as_test_x conftest$ac_exeext; then
19049   ok=PTHREAD_CREATE_JOINABLE
19050 else
19051   echo "$as_me: failed program was:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19053
19054         ok=unknown
19055 fi
19056
19057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058       conftest$ac_exeext conftest.$ac_ext
19059         if test x"$ok" = xunknown; then
19060                 cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066 #include <pthread.h>
19067 int
19068 main ()
19069 {
19070 int attr=PTHREAD_CREATE_UNDETACHED;
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079   *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082   (eval "$ac_link") 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } && {
19089          test -z "$ac_c_werror_flag" ||
19090          test ! -s conftest.err
19091        } && test -s conftest$ac_exeext &&
19092        $as_test_x conftest$ac_exeext; then
19093   ok=PTHREAD_CREATE_UNDETACHED
19094 else
19095   echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19097
19098         ok=unknown
19099 fi
19100
19101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19102       conftest$ac_exeext conftest.$ac_ext
19103         fi
19104         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
19105
19106 cat >>confdefs.h <<\_ACEOF
19107 #define PTHREAD_CREATE_JOINABLE $ok
19108 _ACEOF
19109
19110         fi
19111         { echo "$as_me:$LINENO: result: ${ok}" >&5
19112 echo "${ECHO_T}${ok}" >&6; }
19113         if test x"$ok" = xunknown; then
19114                 { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
19115 echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
19116         fi
19117
19118         { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
19119 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
19120         flag=no
19121 # We always add these in PostgreSQL
19122 #       case "${host_cpu}-${host_os}" in
19123 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19124 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19125 #       esac
19126         { echo "$as_me:$LINENO: result: ${flag}" >&5
19127 echo "${ECHO_T}${flag}" >&6; }
19128         if test "x$flag" != xno; then
19129                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19130         fi
19131
19132         LIBS="$save_LIBS"
19133         CFLAGS="$save_CFLAGS"
19134
19135 # Supporting cc_r would require a special CC in all places that
19136 # use libpq, and that is ugly, so we don't do it.  Users can still
19137 # define their compiler as cc_r to do thread builds of everything.
19138         # More AIX lossage: must compile with cc_r
19139         # Extract the first word of "cc_r", so it can be a program name with args.
19140 set dummy cc_r; ac_word=$2
19141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19143 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
19144   echo $ECHO_N "(cached) $ECHO_C" >&6
19145 else
19146   if test -n "$PTHREAD_CC"; then
19147   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19148 else
19149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19150 for as_dir in $PATH
19151 do
19152   IFS=$as_save_IFS
19153   test -z "$as_dir" && as_dir=.
19154   for ac_exec_ext in '' $ac_executable_extensions; do
19155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19156     ac_cv_prog_PTHREAD_CC="cc_r"
19157     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19158     break 2
19159   fi
19160 done
19161 done
19162 IFS=$as_save_IFS
19163
19164   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
19165 fi
19166 fi
19167 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19168 if test -n "$PTHREAD_CC"; then
19169   { echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
19170 echo "${ECHO_T}$PTHREAD_CC" >&6; }
19171 else
19172   { echo "$as_me:$LINENO: result: no" >&5
19173 echo "${ECHO_T}no" >&6; }
19174 fi
19175
19176
19177 else
19178         PTHREAD_CC="$CC"
19179 fi
19180
19181
19182
19183
19184
19185 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
19186 if test x"$acx_pthread_ok" = xyes; then
19187
19188 cat >>confdefs.h <<\_ACEOF
19189 #define HAVE_PTHREAD 1
19190 _ACEOF
19191
19192         :
19193 else
19194         acx_pthread_ok=no
19195
19196 fi
19197 ac_ext=c
19198 ac_cpp='$CPP $CPPFLAGS'
19199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19202
19203         # set thread flags
19204
19205 # Some platforms use these, so just define them.  They can't hurt if they
19206 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
19207 # enables 5-arg getpwuid_r, among other things.
19208 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
19209
19210
19211 # At this point, we don't want to muck with the compiler name for threading.
19212 # Let's see who fails, perhaps AIX.  2004-04-23
19213 if test "$PTHREAD_CC" != "$CC"; then
19214 { { echo "$as_me:$LINENO: error:
19215 PostgreSQL does not support platforms that require a special compiler
19216 for thread safety." >&5
19217 echo "$as_me: error:
19218 PostgreSQL does not support platforms that require a special compiler
19219 for thread safety." >&2;}
19220    { (exit 1); exit 1; }; }
19221 fi
19222
19223 if test "$THREAD_SUPPORT" = no; then
19224 { { echo "$as_me:$LINENO: error: cannot enable threads on this platform
19225 This platform is known to not support thread-safe programs.  For details,
19226 compile and run src/bin/pg_thread_test." >&5
19227 echo "$as_me: error: cannot enable threads on this platform
19228 This platform is known to not support thread-safe programs.  For details,
19229 compile and run src/bin/pg_thread_test." >&2;}
19230    { (exit 1); exit 1; }; }
19231 fi
19232
19233 # Check for *_r functions
19234 _CFLAGS="$CFLAGS"
19235 _LIBS="$LIBS"
19236 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19237 LIBS="$LIBS $PTHREAD_LIBS"
19238
19239 if test "$PORTNAME" != "win32"; then
19240 if test "${ac_cv_header_pthread_h+set}" = set; then
19241   { echo "$as_me:$LINENO: checking for pthread.h" >&5
19242 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19243 if test "${ac_cv_header_pthread_h+set}" = set; then
19244   echo $ECHO_N "(cached) $ECHO_C" >&6
19245 fi
19246 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19247 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19248 else
19249   # Is the header compilable?
19250 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
19251 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
19252 cat >conftest.$ac_ext <<_ACEOF
19253 /* confdefs.h.  */
19254 _ACEOF
19255 cat confdefs.h >>conftest.$ac_ext
19256 cat >>conftest.$ac_ext <<_ACEOF
19257 /* end confdefs.h.  */
19258 $ac_includes_default
19259 #include <pthread.h>
19260 _ACEOF
19261 rm -f conftest.$ac_objext
19262 if { (ac_try="$ac_compile"
19263 case "(($ac_try" in
19264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265   *) ac_try_echo=$ac_try;;
19266 esac
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268   (eval "$ac_compile") 2>conftest.er1
19269   ac_status=$?
19270   grep -v '^ *+' conftest.er1 >conftest.err
19271   rm -f conftest.er1
19272   cat conftest.err >&5
19273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274   (exit $ac_status); } && {
19275          test -z "$ac_c_werror_flag" ||
19276          test ! -s conftest.err
19277        } && test -s conftest.$ac_objext; then
19278   ac_header_compiler=yes
19279 else
19280   echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283         ac_header_compiler=no
19284 fi
19285
19286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19288 echo "${ECHO_T}$ac_header_compiler" >&6; }
19289
19290 # Is the header present?
19291 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
19292 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
19293 cat >conftest.$ac_ext <<_ACEOF
19294 /* confdefs.h.  */
19295 _ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h.  */
19299 #include <pthread.h>
19300 _ACEOF
19301 if { (ac_try="$ac_cpp conftest.$ac_ext"
19302 case "(($ac_try" in
19303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304   *) ac_try_echo=$ac_try;;
19305 esac
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19308   ac_status=$?
19309   grep -v '^ *+' conftest.er1 >conftest.err
19310   rm -f conftest.er1
19311   cat conftest.err >&5
19312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313   (exit $ac_status); } >/dev/null && {
19314          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19315          test ! -s conftest.err
19316        }; then
19317   ac_header_preproc=yes
19318 else
19319   echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19321
19322   ac_header_preproc=no
19323 fi
19324
19325 rm -f conftest.err conftest.$ac_ext
19326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19327 echo "${ECHO_T}$ac_header_preproc" >&6; }
19328
19329 # So?  What about this header?
19330 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19331   yes:no: )
19332     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
19333 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19334     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
19335 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
19336     ac_header_preproc=yes
19337     ;;
19338   no:yes:* )
19339     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
19340 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
19341     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
19342 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
19343     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
19344 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
19345     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
19346 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19347     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
19348 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
19349     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
19350 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
19351     ( cat <<\_ASBOX
19352 ## ---------------------------------------- ##
19353 ## Report this to pgsql-bugs@postgresql.org ##
19354 ## ---------------------------------------- ##
19355 _ASBOX
19356      ) | sed "s/^/$as_me: WARNING:     /" >&2
19357     ;;
19358 esac
19359 { echo "$as_me:$LINENO: checking for pthread.h" >&5
19360 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
19361 if test "${ac_cv_header_pthread_h+set}" = set; then
19362   echo $ECHO_N "(cached) $ECHO_C" >&6
19363 else
19364   ac_cv_header_pthread_h=$ac_header_preproc
19365 fi
19366 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
19367 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
19368
19369 fi
19370 if test $ac_cv_header_pthread_h = yes; then
19371   :
19372 else
19373   { { echo "$as_me:$LINENO: error: pthread.h not found, required for --enable-thread-safety" >&5
19374 echo "$as_me: error: pthread.h not found, required for --enable-thread-safety" >&2;}
19375    { (exit 1); exit 1; }; }
19376 fi
19377
19378
19379 fi
19380
19381
19382
19383
19384 for ac_func in strerror_r getpwuid_r gethostbyname_r
19385 do
19386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392   cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19400 #define $ac_func innocuous_$ac_func
19401
19402 /* System header to define __stub macros and hopefully few prototypes,
19403     which can conflict with char $ac_func (); below.
19404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19405     <limits.h> exists even on freestanding compilers.  */
19406
19407 #ifdef __STDC__
19408 # include <limits.h>
19409 #else
19410 # include <assert.h>
19411 #endif
19412
19413 #undef $ac_func
19414
19415 /* Override any GCC internal prototype to avoid an error.
19416    Use char because int might match the return type of a GCC
19417    builtin and then its argument prototype would still apply.  */
19418 #ifdef __cplusplus
19419 extern "C"
19420 #endif
19421 char $ac_func ();
19422 /* The GNU C library defines this for functions which it implements
19423     to always fail with ENOSYS.  Some functions are actually named
19424     something starting with __ and the normal name is an alias.  */
19425 #if defined __stub_$ac_func || defined __stub___$ac_func
19426 choke me
19427 #endif
19428
19429 int
19430 main ()
19431 {
19432 return $ac_func ();
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (ac_try="$ac_link"
19439 case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_link") 2>conftest.er1
19445   ac_status=$?
19446   grep -v '^ *+' conftest.er1 >conftest.err
19447   rm -f conftest.er1
19448   cat conftest.err >&5
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); } && {
19451          test -z "$ac_c_werror_flag" ||
19452          test ! -s conftest.err
19453        } && test -s conftest$ac_exeext &&
19454        $as_test_x conftest$ac_exeext; then
19455   eval "$as_ac_var=yes"
19456 else
19457   echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460         eval "$as_ac_var=no"
19461 fi
19462
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464       conftest$ac_exeext conftest.$ac_ext
19465 fi
19466 ac_res=`eval echo '${'$as_ac_var'}'`
19467                { echo "$as_me:$LINENO: result: $ac_res" >&5
19468 echo "${ECHO_T}$ac_res" >&6; }
19469 if test `eval echo '${'$as_ac_var'}'` = yes; then
19470   cat >>confdefs.h <<_ACEOF
19471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19472 _ACEOF
19473
19474 fi
19475 done
19476
19477
19478 # Do test here with the proper thread flags
19479 { echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
19480 echo $ECHO_N "checking whether getpwuid_r takes a fifth argument... $ECHO_C" >&6; }
19481 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
19482   echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484   cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h.  */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h.  */
19490 #include <sys/types.h>
19491 #include <pwd.h>
19492 int
19493 main ()
19494 {
19495 uid_t uid;
19496 struct passwd *space;
19497 char *buf;
19498 size_t bufsize;
19499 struct passwd **result;
19500 getpwuid_r(uid, space, buf, bufsize, result);
19501   ;
19502   return 0;
19503 }
19504 _ACEOF
19505 rm -f conftest.$ac_objext
19506 if { (ac_try="$ac_compile"
19507 case "(($ac_try" in
19508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19509   *) ac_try_echo=$ac_try;;
19510 esac
19511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19512   (eval "$ac_compile") 2>conftest.er1
19513   ac_status=$?
19514   grep -v '^ *+' conftest.er1 >conftest.err
19515   rm -f conftest.er1
19516   cat conftest.err >&5
19517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518   (exit $ac_status); } && {
19519          test -z "$ac_c_werror_flag" ||
19520          test ! -s conftest.err
19521        } && test -s conftest.$ac_objext; then
19522   pgac_cv_func_getpwuid_r_5arg=yes
19523 else
19524   echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527         pgac_cv_func_getpwuid_r_5arg=no
19528 fi
19529
19530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19531 fi
19532 { echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
19533 echo "${ECHO_T}$pgac_cv_func_getpwuid_r_5arg" >&6; }
19534 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
19535
19536 cat >>confdefs.h <<\_ACEOF
19537 #define GETPWUID_R_5ARG
19538 _ACEOF
19539
19540 fi
19541
19542 { echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
19543 echo $ECHO_N "checking whether strerror_r returns int... $ECHO_C" >&6; }
19544 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 #include <string.h>
19554 int
19555 main ()
19556 {
19557 #ifndef _AIX
19558 int strerror_r(int, char *, size_t);
19559 #else
19560 /* Older AIX has 'int' for the third argument so we don't test the args. */
19561 int strerror_r();
19562 #endif
19563   ;
19564   return 0;
19565 }
19566 _ACEOF
19567 rm -f conftest.$ac_objext
19568 if { (ac_try="$ac_compile"
19569 case "(($ac_try" in
19570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571   *) ac_try_echo=$ac_try;;
19572 esac
19573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19574   (eval "$ac_compile") 2>conftest.er1
19575   ac_status=$?
19576   grep -v '^ *+' conftest.er1 >conftest.err
19577   rm -f conftest.er1
19578   cat conftest.err >&5
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); } && {
19581          test -z "$ac_c_werror_flag" ||
19582          test ! -s conftest.err
19583        } && test -s conftest.$ac_objext; then
19584   pgac_cv_func_strerror_r_int=yes
19585 else
19586   echo "$as_me: failed program was:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19588
19589         pgac_cv_func_strerror_r_int=no
19590 fi
19591
19592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19593 fi
19594 { echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
19595 echo "${ECHO_T}$pgac_cv_func_strerror_r_int" >&6; }
19596 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
19597
19598 cat >>confdefs.h <<\_ACEOF
19599 #define STRERROR_R_INT
19600 _ACEOF
19601
19602 fi
19603
19604
19605 CFLAGS="$_CFLAGS"
19606 LIBS="$_LIBS"
19607
19608 else
19609 # do not use values from template file
19610 PTHREAD_CFLAGS=
19611 PTHREAD_LIBS=
19612 fi
19613
19614
19615
19616
19617
19618 # We can test for libldap_r only after we know PTHREAD_LIBS
19619 if test "$with_ldap" = yes ; then
19620   _LIBS="$LIBS"
19621   if test "$PORTNAME" != "win32"; then
19622
19623 { echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
19624 echo $ECHO_N "checking for ldap_bind in -lldap... $ECHO_C" >&6; }
19625 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
19626   echo $ECHO_N "(cached) $ECHO_C" >&6
19627 else
19628   ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
19630 cat >conftest.$ac_ext <<_ACEOF
19631 /* confdefs.h.  */
19632 _ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h.  */
19636
19637 /* Override any GCC internal prototype to avoid an error.
19638    Use char because int might match the return type of a GCC
19639    builtin and then its argument prototype would still apply.  */
19640 #ifdef __cplusplus
19641 extern "C"
19642 #endif
19643 char ldap_bind ();
19644 int
19645 main ()
19646 {
19647 return ldap_bind ();
19648   ;
19649   return 0;
19650 }
19651 _ACEOF
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (ac_try="$ac_link"
19654 case "(($ac_try" in
19655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656   *) ac_try_echo=$ac_try;;
19657 esac
19658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19659   (eval "$ac_link") 2>conftest.er1
19660   ac_status=$?
19661   grep -v '^ *+' conftest.er1 >conftest.err
19662   rm -f conftest.er1
19663   cat conftest.err >&5
19664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665   (exit $ac_status); } && {
19666          test -z "$ac_c_werror_flag" ||
19667          test ! -s conftest.err
19668        } && test -s conftest$ac_exeext &&
19669        $as_test_x conftest$ac_exeext; then
19670   ac_cv_lib_ldap_ldap_bind=yes
19671 else
19672   echo "$as_me: failed program was:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19674
19675         ac_cv_lib_ldap_ldap_bind=no
19676 fi
19677
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679       conftest$ac_exeext conftest.$ac_ext
19680 LIBS=$ac_check_lib_save_LIBS
19681 fi
19682 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
19683 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_bind" >&6; }
19684 if test $ac_cv_lib_ldap_ldap_bind = yes; then
19685   cat >>confdefs.h <<_ACEOF
19686 #define HAVE_LIBLDAP 1
19687 _ACEOF
19688
19689   LIBS="-lldap $LIBS"
19690
19691 else
19692   { { echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
19693 echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
19694    { (exit 1); exit 1; }; }
19695 fi
19696
19697     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
19698     if test "$enable_thread_safety" = yes; then
19699       # on some platforms ldap_r fails to link without PTHREAD_LIBS
19700
19701 { echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
19702 echo $ECHO_N "checking for ldap_simple_bind in -lldap_r... $ECHO_C" >&6; }
19703 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
19704   echo $ECHO_N "(cached) $ECHO_C" >&6
19705 else
19706   ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714
19715 /* Override any GCC internal prototype to avoid an error.
19716    Use char because int might match the return type of a GCC
19717    builtin and then its argument prototype would still apply.  */
19718 #ifdef __cplusplus
19719 extern "C"
19720 #endif
19721 char ldap_simple_bind ();
19722 int
19723 main ()
19724 {
19725 return ldap_simple_bind ();
19726   ;
19727   return 0;
19728 }
19729 _ACEOF
19730 rm -f conftest.$ac_objext conftest$ac_exeext
19731 if { (ac_try="$ac_link"
19732 case "(($ac_try" in
19733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19734   *) ac_try_echo=$ac_try;;
19735 esac
19736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19737   (eval "$ac_link") 2>conftest.er1
19738   ac_status=$?
19739   grep -v '^ *+' conftest.er1 >conftest.err
19740   rm -f conftest.er1
19741   cat conftest.err >&5
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); } && {
19744          test -z "$ac_c_werror_flag" ||
19745          test ! -s conftest.err
19746        } && test -s conftest$ac_exeext &&
19747        $as_test_x conftest$ac_exeext; then
19748   ac_cv_lib_ldap_r_ldap_simple_bind=yes
19749 else
19750   echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753         ac_cv_lib_ldap_r_ldap_simple_bind=no
19754 fi
19755
19756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19757       conftest$ac_exeext conftest.$ac_ext
19758 LIBS=$ac_check_lib_save_LIBS
19759 fi
19760 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
19761 echo "${ECHO_T}$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
19762 if test $ac_cv_lib_ldap_r_ldap_simple_bind = yes; then
19763   cat >>confdefs.h <<_ACEOF
19764 #define HAVE_LIBLDAP_R 1
19765 _ACEOF
19766
19767   LIBS="-lldap_r $LIBS"
19768
19769 else
19770   { { echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
19771 echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
19772    { (exit 1); exit 1; }; }
19773 fi
19774
19775       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
19776     else
19777       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
19778     fi
19779   else
19780
19781 { echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
19782 echo $ECHO_N "checking for ldap_bind in -lwldap32... $ECHO_C" >&6; }
19783 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786   ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-lwldap32  $LIBS"
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
19795 /* Override any GCC internal prototype to avoid an error.
19796    Use char because int might match the return type of a GCC
19797    builtin and then its argument prototype would still apply.  */
19798 #ifdef __cplusplus
19799 extern "C"
19800 #endif
19801 char ldap_bind ();
19802 int
19803 main ()
19804 {
19805 return ldap_bind ();
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814   *) ac_try_echo=$ac_try;;
19815 esac
19816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19817   (eval "$ac_link") 2>conftest.er1
19818   ac_status=$?
19819   grep -v '^ *+' conftest.er1 >conftest.err
19820   rm -f conftest.er1
19821   cat conftest.err >&5
19822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823   (exit $ac_status); } && {
19824          test -z "$ac_c_werror_flag" ||
19825          test ! -s conftest.err
19826        } && test -s conftest$ac_exeext &&
19827        $as_test_x conftest$ac_exeext; then
19828   ac_cv_lib_wldap32_ldap_bind=yes
19829 else
19830   echo "$as_me: failed program was:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19832
19833         ac_cv_lib_wldap32_ldap_bind=no
19834 fi
19835
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837       conftest$ac_exeext conftest.$ac_ext
19838 LIBS=$ac_check_lib_save_LIBS
19839 fi
19840 { echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
19841 echo "${ECHO_T}$ac_cv_lib_wldap32_ldap_bind" >&6; }
19842 if test $ac_cv_lib_wldap32_ldap_bind = yes; then
19843   cat >>confdefs.h <<_ACEOF
19844 #define HAVE_LIBWLDAP32 1
19845 _ACEOF
19846
19847   LIBS="-lwldap32 $LIBS"
19848
19849 else
19850   { { echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
19851 echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
19852    { (exit 1); exit 1; }; }
19853 fi
19854
19855     LDAP_LIBS_FE="-lwldap32"
19856     LDAP_LIBS_BE="-lwldap32"
19857   fi
19858   LIBS="$_LIBS"
19859 fi
19860
19861
19862
19863
19864 # This test makes sure that run tests work at all.  Sometimes a shared
19865 # library is found by the linker, but the runtime linker can't find it.
19866 # This check should come after all modifications of compiler or linker
19867 # variables, and before any other run tests.
19868 { echo "$as_me:$LINENO: checking test program" >&5
19869 echo $ECHO_N "checking test program... $ECHO_C" >&6; }
19870 if test "$cross_compiling" = yes; then
19871   { echo "$as_me:$LINENO: result: cross-compiling" >&5
19872 echo "${ECHO_T}cross-compiling" >&6; }
19873 else
19874   cat >conftest.$ac_ext <<_ACEOF
19875 /* confdefs.h.  */
19876 _ACEOF
19877 cat confdefs.h >>conftest.$ac_ext
19878 cat >>conftest.$ac_ext <<_ACEOF
19879 /* end confdefs.h.  */
19880 int main() { return 0; }
19881 _ACEOF
19882 rm -f conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_link") 2>&5
19890   ac_status=$?
19891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19899   ac_status=$?
19900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901   (exit $ac_status); }; }; then
19902   { echo "$as_me:$LINENO: result: ok" >&5
19903 echo "${ECHO_T}ok" >&6; }
19904 else
19905   echo "$as_me: program exited with status $ac_status" >&5
19906 echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19908
19909 ( exit $ac_status )
19910 { echo "$as_me:$LINENO: result: failed" >&5
19911 echo "${ECHO_T}failed" >&6; }
19912 { { echo "$as_me:$LINENO: error:
19913 Could not execute a simple test program.  This may be a problem
19914 related to locating shared libraries.  Check the file 'config.log'
19915 for the exact reason." >&5
19916 echo "$as_me: error:
19917 Could not execute a simple test program.  This may be a problem
19918 related to locating shared libraries.  Check the file 'config.log'
19919 for the exact reason." >&2;}
19920    { (exit 1); exit 1; }; }
19921 fi
19922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19923 fi
19924
19925
19926
19927 # --------------------
19928 # Run tests below here
19929 # --------------------
19930
19931 # Force use of our snprintf if system's doesn't do arg control
19932 # See comment above at snprintf test for details.
19933 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
19934   { echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
19935 echo $ECHO_N "checking whether printf supports argument control... $ECHO_C" >&6; }
19936 if test "${pgac_cv_printf_arg_control+set}" = set; then
19937   echo $ECHO_N "(cached) $ECHO_C" >&6
19938 else
19939   if test "$cross_compiling" = yes; then
19940   pgac_cv_printf_arg_control=cross
19941 else
19942   cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h.  */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h.  */
19948 #include <stdio.h>
19949 #include <string.h>
19950
19951 int main()
19952 {
19953   char buf[100];
19954
19955   /* can it swap arguments? */
19956   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
19957   if (strcmp(buf, "4 3") != 0)
19958     return 1;
19959   return 0;
19960 }
19961 _ACEOF
19962 rm -f conftest$ac_exeext
19963 if { (ac_try="$ac_link"
19964 case "(($ac_try" in
19965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19966   *) ac_try_echo=$ac_try;;
19967 esac
19968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19969   (eval "$ac_link") 2>&5
19970   ac_status=$?
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19973   { (case "(($ac_try" in
19974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19975   *) ac_try_echo=$ac_try;;
19976 esac
19977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19978   (eval "$ac_try") 2>&5
19979   ac_status=$?
19980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981   (exit $ac_status); }; }; then
19982   pgac_cv_printf_arg_control=yes
19983 else
19984   echo "$as_me: program exited with status $ac_status" >&5
19985 echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19987
19988 ( exit $ac_status )
19989 pgac_cv_printf_arg_control=no
19990 fi
19991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19992 fi
19993
19994
19995
19996 fi
19997 { echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
19998 echo "${ECHO_T}$pgac_cv_printf_arg_control" >&6; }
19999
20000   if test $pgac_cv_printf_arg_control != yes ; then
20001     pgac_need_repl_snprintf=yes
20002   fi
20003 fi
20004
20005
20006
20007 { echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
20008 echo $ECHO_N "checking whether long int is 64 bits... $ECHO_C" >&6; }
20009 if test "${pgac_cv_type_long_int_64+set}" = set; then
20010   echo $ECHO_N "(cached) $ECHO_C" >&6
20011 else
20012   if test "$cross_compiling" = yes; then
20013   # If cross-compiling, check the size reported by the compiler and
20014 # trust that the arithmetic works.
20015 cat >conftest.$ac_ext <<_ACEOF
20016 /* confdefs.h.  */
20017 _ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h.  */
20021
20022 int
20023 main ()
20024 {
20025 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
20026 test_array [0] = 0
20027
20028   ;
20029   return 0;
20030 }
20031 _ACEOF
20032 rm -f conftest.$ac_objext
20033 if { (ac_try="$ac_compile"
20034 case "(($ac_try" in
20035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036   *) ac_try_echo=$ac_try;;
20037 esac
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039   (eval "$ac_compile") 2>conftest.er1
20040   ac_status=$?
20041   grep -v '^ *+' conftest.er1 >conftest.err
20042   rm -f conftest.er1
20043   cat conftest.err >&5
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); } && {
20046          test -z "$ac_c_werror_flag" ||
20047          test ! -s conftest.err
20048        } && test -s conftest.$ac_objext; then
20049   pgac_cv_type_long_int_64=yes
20050 else
20051   echo "$as_me: failed program was:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20053
20054         pgac_cv_type_long_int_64=no
20055 fi
20056
20057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20058 else
20059   cat >conftest.$ac_ext <<_ACEOF
20060 /* confdefs.h.  */
20061 _ACEOF
20062 cat confdefs.h >>conftest.$ac_ext
20063 cat >>conftest.$ac_ext <<_ACEOF
20064 /* end confdefs.h.  */
20065 typedef long int ac_int64;
20066
20067 /*
20068  * These are globals to discourage the compiler from folding all the
20069  * arithmetic tests down to compile-time constants.
20070  */
20071 ac_int64 a = 20000001;
20072 ac_int64 b = 40000005;
20073
20074 int does_int64_work()
20075 {
20076   ac_int64 c,d;
20077
20078   if (sizeof(ac_int64) != 8)
20079     return 0;                   /* definitely not the right size */
20080
20081   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20082   c = a * b;
20083   d = (c + b) / b;
20084   if (d != a+1)
20085     return 0;
20086   return 1;
20087 }
20088 main() {
20089   exit(! does_int64_work());
20090 }
20091 _ACEOF
20092 rm -f conftest$ac_exeext
20093 if { (ac_try="$ac_link"
20094 case "(($ac_try" in
20095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20096   *) ac_try_echo=$ac_try;;
20097 esac
20098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20099   (eval "$ac_link") 2>&5
20100   ac_status=$?
20101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20103   { (case "(($ac_try" in
20104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105   *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108   (eval "$ac_try") 2>&5
20109   ac_status=$?
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); }; }; then
20112   pgac_cv_type_long_int_64=yes
20113 else
20114   echo "$as_me: program exited with status $ac_status" >&5
20115 echo "$as_me: failed program was:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20117
20118 ( exit $ac_status )
20119 pgac_cv_type_long_int_64=no
20120 fi
20121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20122 fi
20123
20124
20125 fi
20126 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
20127 echo "${ECHO_T}$pgac_cv_type_long_int_64" >&6; }
20128
20129 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
20130 if test x"$pgac_cv_type_long_int_64" = xyes ; then
20131
20132 cat >>confdefs.h <<\_ACEOF
20133 #define HAVE_LONG_INT_64 1
20134 _ACEOF
20135
20136 fi
20137
20138
20139 if test x"$HAVE_LONG_INT_64" = x"no" ; then
20140   { echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
20141 echo $ECHO_N "checking whether long long int is 64 bits... $ECHO_C" >&6; }
20142 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
20143   echo $ECHO_N "(cached) $ECHO_C" >&6
20144 else
20145   if test "$cross_compiling" = yes; then
20146   # If cross-compiling, check the size reported by the compiler and
20147 # trust that the arithmetic works.
20148 cat >conftest.$ac_ext <<_ACEOF
20149 /* confdefs.h.  */
20150 _ACEOF
20151 cat confdefs.h >>conftest.$ac_ext
20152 cat >>conftest.$ac_ext <<_ACEOF
20153 /* end confdefs.h.  */
20154
20155 int
20156 main ()
20157 {
20158 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
20159 test_array [0] = 0
20160
20161   ;
20162   return 0;
20163 }
20164 _ACEOF
20165 rm -f conftest.$ac_objext
20166 if { (ac_try="$ac_compile"
20167 case "(($ac_try" in
20168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169   *) ac_try_echo=$ac_try;;
20170 esac
20171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20172   (eval "$ac_compile") 2>conftest.er1
20173   ac_status=$?
20174   grep -v '^ *+' conftest.er1 >conftest.err
20175   rm -f conftest.er1
20176   cat conftest.err >&5
20177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178   (exit $ac_status); } && {
20179          test -z "$ac_c_werror_flag" ||
20180          test ! -s conftest.err
20181        } && test -s conftest.$ac_objext; then
20182   pgac_cv_type_long_long_int_64=yes
20183 else
20184   echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20186
20187         pgac_cv_type_long_long_int_64=no
20188 fi
20189
20190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20191 else
20192   cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h.  */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h.  */
20198 typedef long long int ac_int64;
20199
20200 /*
20201  * These are globals to discourage the compiler from folding all the
20202  * arithmetic tests down to compile-time constants.
20203  */
20204 ac_int64 a = 20000001;
20205 ac_int64 b = 40000005;
20206
20207 int does_int64_work()
20208 {
20209   ac_int64 c,d;
20210
20211   if (sizeof(ac_int64) != 8)
20212     return 0;                   /* definitely not the right size */
20213
20214   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
20215   c = a * b;
20216   d = (c + b) / b;
20217   if (d != a+1)
20218     return 0;
20219   return 1;
20220 }
20221 main() {
20222   exit(! does_int64_work());
20223 }
20224 _ACEOF
20225 rm -f conftest$ac_exeext
20226 if { (ac_try="$ac_link"
20227 case "(($ac_try" in
20228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229   *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232   (eval "$ac_link") 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20236   { (case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_try") 2>&5
20242   ac_status=$?
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); }; }; then
20245   pgac_cv_type_long_long_int_64=yes
20246 else
20247   echo "$as_me: program exited with status $ac_status" >&5
20248 echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251 ( exit $ac_status )
20252 pgac_cv_type_long_long_int_64=no
20253 fi
20254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20255 fi
20256
20257
20258 fi
20259 { echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
20260 echo "${ECHO_T}$pgac_cv_type_long_long_int_64" >&6; }
20261
20262 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
20263 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
20264
20265 cat >>confdefs.h <<\_ACEOF
20266 #define HAVE_LONG_LONG_INT_64 1
20267 _ACEOF
20268
20269 fi
20270
20271 fi
20272
20273
20274
20275 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
20276   cat >conftest.$ac_ext <<_ACEOF
20277 /* confdefs.h.  */
20278 _ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h.  */
20282
20283 #define INT64CONST(x)  x##LL
20284 long long int foo = INT64CONST(0x1234567890123456);
20285
20286 int
20287 main ()
20288 {
20289
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext
20295 if { (ac_try="$ac_compile"
20296 case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_compile") 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } && {
20308          test -z "$ac_c_werror_flag" ||
20309          test ! -s conftest.err
20310        } && test -s conftest.$ac_objext; then
20311
20312 cat >>confdefs.h <<\_ACEOF
20313 #define HAVE_LL_CONSTANTS 1
20314 _ACEOF
20315
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320
20321 fi
20322
20323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20324 fi
20325
20326
20327 # If we found "long int" is 64 bits, assume snprintf handles it.  If
20328 # we found we need to use "long long int", better check.  We cope with
20329 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
20330 # work, fall back to our own snprintf emulation (which we know uses %lld).
20331
20332 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
20333   if test $pgac_need_repl_snprintf = no; then
20334     { echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
20335 echo $ECHO_N "checking snprintf format for long long int... $ECHO_C" >&6; }
20336 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
20337   echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339   for pgac_format in '%lld' '%qd' '%I64d'; do
20340 if test "$cross_compiling" = yes; then
20341   pgac_cv_snprintf_long_long_int_format=cross; break
20342 else
20343   cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h.  */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h.  */
20349 #include <stdio.h>
20350 typedef long long int ac_int64;
20351 #define INT64_FORMAT "$pgac_format"
20352
20353 ac_int64 a = 20000001;
20354 ac_int64 b = 40000005;
20355
20356 int does_int64_snprintf_work()
20357 {
20358   ac_int64 c;
20359   char buf[100];
20360
20361   if (sizeof(ac_int64) != 8)
20362     return 0;                   /* doesn't look like the right size */
20363
20364   c = a * b;
20365   snprintf(buf, 100, INT64_FORMAT, c);
20366   if (strcmp(buf, "800000140000005") != 0)
20367     return 0;                   /* either multiply or snprintf is busted */
20368   return 1;
20369 }
20370 main() {
20371   exit(! does_int64_snprintf_work());
20372 }
20373 _ACEOF
20374 rm -f conftest$ac_exeext
20375 if { (ac_try="$ac_link"
20376 case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_link") 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20385   { (case "(($ac_try" in
20386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20387   *) ac_try_echo=$ac_try;;
20388 esac
20389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20390   (eval "$ac_try") 2>&5
20391   ac_status=$?
20392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20393   (exit $ac_status); }; }; then
20394   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
20395 else
20396   echo "$as_me: program exited with status $ac_status" >&5
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400 fi
20401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20402 fi
20403
20404
20405 done
20406 fi
20407
20408 LONG_LONG_INT_FORMAT=''
20409
20410 case $pgac_cv_snprintf_long_long_int_format in
20411   cross) { echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
20412 echo "${ECHO_T}cannot test (not on host machine)" >&6; };;
20413   ?*)    { echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
20414 echo "${ECHO_T}$pgac_cv_snprintf_long_long_int_format" >&6; }
20415          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
20416   *)     { echo "$as_me:$LINENO: result: none" >&5
20417 echo "${ECHO_T}none" >&6; };;
20418 esac
20419     if test "$LONG_LONG_INT_FORMAT" = ""; then
20420       # Force usage of our own snprintf, since system snprintf is broken
20421       pgac_need_repl_snprintf=yes
20422       LONG_LONG_INT_FORMAT='%lld'
20423     fi
20424   else
20425     # Here if we previously decided we needed to use our own snprintf
20426     LONG_LONG_INT_FORMAT='%lld'
20427   fi
20428   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
20429   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
20430   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
20431 else
20432   # Here if we are not using 'long long int' at all
20433   INT64_FORMAT='"%ld"'
20434   UINT64_FORMAT='"%lu"'
20435 fi
20436
20437
20438 cat >>confdefs.h <<_ACEOF
20439 #define INT64_FORMAT $INT64_FORMAT
20440 _ACEOF
20441
20442
20443
20444 cat >>confdefs.h <<_ACEOF
20445 #define UINT64_FORMAT $UINT64_FORMAT
20446 _ACEOF
20447
20448
20449 # Now we have checked all the reasons to replace snprintf
20450 if test $pgac_need_repl_snprintf = yes; then
20451
20452 cat >>confdefs.h <<\_ACEOF
20453 #define USE_REPL_SNPRINTF 1
20454 _ACEOF
20455
20456   case " $LIBOBJS " in
20457   *" snprintf.$ac_objext "* ) ;;
20458   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
20459  ;;
20460 esac
20461
20462 fi
20463
20464 # Need a #define for the size of Datum (unsigned long)
20465 { echo "$as_me:$LINENO: checking for unsigned long" >&5
20466 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
20467 if test "${ac_cv_type_unsigned_long+set}" = set; then
20468   echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470   cat >conftest.$ac_ext <<_ACEOF
20471 /* confdefs.h.  */
20472 _ACEOF
20473 cat confdefs.h >>conftest.$ac_ext
20474 cat >>conftest.$ac_ext <<_ACEOF
20475 /* end confdefs.h.  */
20476 $ac_includes_default
20477 typedef unsigned long ac__type_new_;
20478 int
20479 main ()
20480 {
20481 if ((ac__type_new_ *) 0)
20482   return 0;
20483 if (sizeof (ac__type_new_))
20484   return 0;
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext
20490 if { (ac_try="$ac_compile"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_compile") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } && {
20503          test -z "$ac_c_werror_flag" ||
20504          test ! -s conftest.err
20505        } && test -s conftest.$ac_objext; then
20506   ac_cv_type_unsigned_long=yes
20507 else
20508   echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511         ac_cv_type_unsigned_long=no
20512 fi
20513
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
20517 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
20518
20519 # The cast to long int works around a bug in the HP C Compiler
20520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20522 # This bug is HP SR number 8606223364.
20523 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
20524 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
20525 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
20526   echo $ECHO_N "(cached) $ECHO_C" >&6
20527 else
20528   if test "$cross_compiling" = yes; then
20529   # Depending upon the size, compute the lo and hi bounds.
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536 $ac_includes_default
20537    typedef unsigned long ac__type_sizeof_;
20538 int
20539 main ()
20540 {
20541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20542 test_array [0] = 0
20543
20544   ;
20545   return 0;
20546 }
20547 _ACEOF
20548 rm -f conftest.$ac_objext
20549 if { (ac_try="$ac_compile"
20550 case "(($ac_try" in
20551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552   *) ac_try_echo=$ac_try;;
20553 esac
20554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20555   (eval "$ac_compile") 2>conftest.er1
20556   ac_status=$?
20557   grep -v '^ *+' conftest.er1 >conftest.err
20558   rm -f conftest.er1
20559   cat conftest.err >&5
20560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561   (exit $ac_status); } && {
20562          test -z "$ac_c_werror_flag" ||
20563          test ! -s conftest.err
20564        } && test -s conftest.$ac_objext; then
20565   ac_lo=0 ac_mid=0
20566   while :; do
20567     cat >conftest.$ac_ext <<_ACEOF
20568 /* confdefs.h.  */
20569 _ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h.  */
20573 $ac_includes_default
20574    typedef unsigned long ac__type_sizeof_;
20575 int
20576 main ()
20577 {
20578 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20579 test_array [0] = 0
20580
20581   ;
20582   return 0;
20583 }
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_compile") 2>conftest.er1
20593   ac_status=$?
20594   grep -v '^ *+' conftest.er1 >conftest.err
20595   rm -f conftest.er1
20596   cat conftest.err >&5
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); } && {
20599          test -z "$ac_c_werror_flag" ||
20600          test ! -s conftest.err
20601        } && test -s conftest.$ac_objext; then
20602   ac_hi=$ac_mid; break
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607         ac_lo=`expr $ac_mid + 1`
20608                         if test $ac_lo -le $ac_mid; then
20609                           ac_lo= ac_hi=
20610                           break
20611                         fi
20612                         ac_mid=`expr 2 '*' $ac_mid + 1`
20613 fi
20614
20615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20616   done
20617 else
20618   echo "$as_me: failed program was:" >&5
20619 sed 's/^/| /' conftest.$ac_ext >&5
20620
20621         cat >conftest.$ac_ext <<_ACEOF
20622 /* confdefs.h.  */
20623 _ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h.  */
20627 $ac_includes_default
20628    typedef unsigned long ac__type_sizeof_;
20629 int
20630 main ()
20631 {
20632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
20633 test_array [0] = 0
20634
20635   ;
20636   return 0;
20637 }
20638 _ACEOF
20639 rm -f conftest.$ac_objext
20640 if { (ac_try="$ac_compile"
20641 case "(($ac_try" in
20642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643   *) ac_try_echo=$ac_try;;
20644 esac
20645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20646   (eval "$ac_compile") 2>conftest.er1
20647   ac_status=$?
20648   grep -v '^ *+' conftest.er1 >conftest.err
20649   rm -f conftest.er1
20650   cat conftest.err >&5
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); } && {
20653          test -z "$ac_c_werror_flag" ||
20654          test ! -s conftest.err
20655        } && test -s conftest.$ac_objext; then
20656   ac_hi=-1 ac_mid=-1
20657   while :; do
20658     cat >conftest.$ac_ext <<_ACEOF
20659 /* confdefs.h.  */
20660 _ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h.  */
20664 $ac_includes_default
20665    typedef unsigned long ac__type_sizeof_;
20666 int
20667 main ()
20668 {
20669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
20670 test_array [0] = 0
20671
20672   ;
20673   return 0;
20674 }
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680   *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683   (eval "$ac_compile") 2>conftest.er1
20684   ac_status=$?
20685   grep -v '^ *+' conftest.er1 >conftest.err
20686   rm -f conftest.er1
20687   cat conftest.err >&5
20688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689   (exit $ac_status); } && {
20690          test -z "$ac_c_werror_flag" ||
20691          test ! -s conftest.err
20692        } && test -s conftest.$ac_objext; then
20693   ac_lo=$ac_mid; break
20694 else
20695   echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698         ac_hi=`expr '(' $ac_mid ')' - 1`
20699                         if test $ac_mid -le $ac_hi; then
20700                           ac_lo= ac_hi=
20701                           break
20702                         fi
20703                         ac_mid=`expr 2 '*' $ac_mid`
20704 fi
20705
20706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20707   done
20708 else
20709   echo "$as_me: failed program was:" >&5
20710 sed 's/^/| /' conftest.$ac_ext >&5
20711
20712         ac_lo= ac_hi=
20713 fi
20714
20715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20716 fi
20717
20718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 # Binary search between lo and hi bounds.
20720 while test "x$ac_lo" != "x$ac_hi"; do
20721   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20722   cat >conftest.$ac_ext <<_ACEOF
20723 /* confdefs.h.  */
20724 _ACEOF
20725 cat confdefs.h >>conftest.$ac_ext
20726 cat >>conftest.$ac_ext <<_ACEOF
20727 /* end confdefs.h.  */
20728 $ac_includes_default
20729    typedef unsigned long ac__type_sizeof_;
20730 int
20731 main ()
20732 {
20733 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20734 test_array [0] = 0
20735
20736   ;
20737   return 0;
20738 }
20739 _ACEOF
20740 rm -f conftest.$ac_objext
20741 if { (ac_try="$ac_compile"
20742 case "(($ac_try" in
20743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20744   *) ac_try_echo=$ac_try;;
20745 esac
20746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20747   (eval "$ac_compile") 2>conftest.er1
20748   ac_status=$?
20749   grep -v '^ *+' conftest.er1 >conftest.err
20750   rm -f conftest.er1
20751   cat conftest.err >&5
20752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753   (exit $ac_status); } && {
20754          test -z "$ac_c_werror_flag" ||
20755          test ! -s conftest.err
20756        } && test -s conftest.$ac_objext; then
20757   ac_hi=$ac_mid
20758 else
20759   echo "$as_me: failed program was:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20761
20762         ac_lo=`expr '(' $ac_mid ')' + 1`
20763 fi
20764
20765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20766 done
20767 case $ac_lo in
20768 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
20769 '') if test "$ac_cv_type_unsigned_long" = yes; then
20770      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20771 See \`config.log' for more details." >&5
20772 echo "$as_me: error: cannot compute sizeof (unsigned long)
20773 See \`config.log' for more details." >&2;}
20774    { (exit 77); exit 77; }; }
20775    else
20776      ac_cv_sizeof_unsigned_long=0
20777    fi ;;
20778 esac
20779 else
20780   cat >conftest.$ac_ext <<_ACEOF
20781 /* confdefs.h.  */
20782 _ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h.  */
20786 $ac_includes_default
20787    typedef unsigned long ac__type_sizeof_;
20788 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
20789 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
20790 #include <stdio.h>
20791 #include <stdlib.h>
20792 int
20793 main ()
20794 {
20795
20796   FILE *f = fopen ("conftest.val", "w");
20797   if (! f)
20798     return 1;
20799   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
20800     {
20801       long int i = longval ();
20802       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20803         return 1;
20804       fprintf (f, "%ld\n", i);
20805     }
20806   else
20807     {
20808       unsigned long int i = ulongval ();
20809       if (i != ((long int) (sizeof (ac__type_sizeof_))))
20810         return 1;
20811       fprintf (f, "%lu\n", i);
20812     }
20813   return ferror (f) || fclose (f) != 0;
20814
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest$ac_exeext
20820 if { (ac_try="$ac_link"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_link") 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20830   { (case "(($ac_try" in
20831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832   *) ac_try_echo=$ac_try;;
20833 esac
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835   (eval "$ac_try") 2>&5
20836   ac_status=$?
20837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838   (exit $ac_status); }; }; then
20839   ac_cv_sizeof_unsigned_long=`cat conftest.val`
20840 else
20841   echo "$as_me: program exited with status $ac_status" >&5
20842 echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.$ac_ext >&5
20844
20845 ( exit $ac_status )
20846 if test "$ac_cv_type_unsigned_long" = yes; then
20847      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
20848 See \`config.log' for more details." >&5
20849 echo "$as_me: error: cannot compute sizeof (unsigned long)
20850 See \`config.log' for more details." >&2;}
20851    { (exit 77); exit 77; }; }
20852    else
20853      ac_cv_sizeof_unsigned_long=0
20854    fi
20855 fi
20856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20857 fi
20858 rm -f conftest.val
20859 fi
20860 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
20861 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
20862
20863
20864
20865 cat >>confdefs.h <<_ACEOF
20866 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20867 _ACEOF
20868
20869
20870
20871 # And one for the size of size_t (enables tweaks for > 32bit address space)
20872 { echo "$as_me:$LINENO: checking for size_t" >&5
20873 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
20874 if test "${ac_cv_type_size_t+set}" = set; then
20875   echo $ECHO_N "(cached) $ECHO_C" >&6
20876 else
20877   cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h.  */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h.  */
20883 $ac_includes_default
20884 typedef size_t ac__type_new_;
20885 int
20886 main ()
20887 {
20888 if ((ac__type_new_ *) 0)
20889   return 0;
20890 if (sizeof (ac__type_new_))
20891   return 0;
20892   ;
20893   return 0;
20894 }
20895 _ACEOF
20896 rm -f conftest.$ac_objext
20897 if { (ac_try="$ac_compile"
20898 case "(($ac_try" in
20899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900   *) ac_try_echo=$ac_try;;
20901 esac
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903   (eval "$ac_compile") 2>conftest.er1
20904   ac_status=$?
20905   grep -v '^ *+' conftest.er1 >conftest.err
20906   rm -f conftest.er1
20907   cat conftest.err >&5
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); } && {
20910          test -z "$ac_c_werror_flag" ||
20911          test ! -s conftest.err
20912        } && test -s conftest.$ac_objext; then
20913   ac_cv_type_size_t=yes
20914 else
20915   echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20917
20918         ac_cv_type_size_t=no
20919 fi
20920
20921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20922 fi
20923 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20924 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
20925
20926 # The cast to long int works around a bug in the HP C Compiler
20927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20929 # This bug is HP SR number 8606223364.
20930 { echo "$as_me:$LINENO: checking size of size_t" >&5
20931 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
20932 if test "${ac_cv_sizeof_size_t+set}" = set; then
20933   echo $ECHO_N "(cached) $ECHO_C" >&6
20934 else
20935   if test "$cross_compiling" = yes; then
20936   # Depending upon the size, compute the lo and hi bounds.
20937 cat >conftest.$ac_ext <<_ACEOF
20938 /* confdefs.h.  */
20939 _ACEOF
20940 cat confdefs.h >>conftest.$ac_ext
20941 cat >>conftest.$ac_ext <<_ACEOF
20942 /* end confdefs.h.  */
20943 $ac_includes_default
20944    typedef size_t ac__type_sizeof_;
20945 int
20946 main ()
20947 {
20948 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
20949 test_array [0] = 0
20950
20951   ;
20952   return 0;
20953 }
20954 _ACEOF
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959   *) ac_try_echo=$ac_try;;
20960 esac
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962   (eval "$ac_compile") 2>conftest.er1
20963   ac_status=$?
20964   grep -v '^ *+' conftest.er1 >conftest.err
20965   rm -f conftest.er1
20966   cat conftest.err >&5
20967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968   (exit $ac_status); } && {
20969          test -z "$ac_c_werror_flag" ||
20970          test ! -s conftest.err
20971        } && test -s conftest.$ac_objext; then
20972   ac_lo=0 ac_mid=0
20973   while :; do
20974     cat >conftest.$ac_ext <<_ACEOF
20975 /* confdefs.h.  */
20976 _ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h.  */
20980 $ac_includes_default
20981    typedef size_t ac__type_sizeof_;
20982 int
20983 main ()
20984 {
20985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
20986 test_array [0] = 0
20987
20988   ;
20989   return 0;
20990 }
20991 _ACEOF
20992 rm -f conftest.$ac_objext
20993 if { (ac_try="$ac_compile"
20994 case "(($ac_try" in
20995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20996   *) ac_try_echo=$ac_try;;
20997 esac
20998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20999   (eval "$ac_compile") 2>conftest.er1
21000   ac_status=$?
21001   grep -v '^ *+' conftest.er1 >conftest.err
21002   rm -f conftest.er1
21003   cat conftest.err >&5
21004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005   (exit $ac_status); } && {
21006          test -z "$ac_c_werror_flag" ||
21007          test ! -s conftest.err
21008        } && test -s conftest.$ac_objext; then
21009   ac_hi=$ac_mid; break
21010 else
21011   echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21013
21014         ac_lo=`expr $ac_mid + 1`
21015                         if test $ac_lo -le $ac_mid; then
21016                           ac_lo= ac_hi=
21017                           break
21018                         fi
21019                         ac_mid=`expr 2 '*' $ac_mid + 1`
21020 fi
21021
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023   done
21024 else
21025   echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028         cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h.  */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h.  */
21034 $ac_includes_default
21035    typedef size_t ac__type_sizeof_;
21036 int
21037 main ()
21038 {
21039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21040 test_array [0] = 0
21041
21042   ;
21043   return 0;
21044 }
21045 _ACEOF
21046 rm -f conftest.$ac_objext
21047 if { (ac_try="$ac_compile"
21048 case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_compile") 2>conftest.er1
21054   ac_status=$?
21055   grep -v '^ *+' conftest.er1 >conftest.err
21056   rm -f conftest.er1
21057   cat conftest.err >&5
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); } && {
21060          test -z "$ac_c_werror_flag" ||
21061          test ! -s conftest.err
21062        } && test -s conftest.$ac_objext; then
21063   ac_hi=-1 ac_mid=-1
21064   while :; do
21065     cat >conftest.$ac_ext <<_ACEOF
21066 /* confdefs.h.  */
21067 _ACEOF
21068 cat confdefs.h >>conftest.$ac_ext
21069 cat >>conftest.$ac_ext <<_ACEOF
21070 /* end confdefs.h.  */
21071 $ac_includes_default
21072    typedef size_t ac__type_sizeof_;
21073 int
21074 main ()
21075 {
21076 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
21077 test_array [0] = 0
21078
21079   ;
21080   return 0;
21081 }
21082 _ACEOF
21083 rm -f conftest.$ac_objext
21084 if { (ac_try="$ac_compile"
21085 case "(($ac_try" in
21086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21087   *) ac_try_echo=$ac_try;;
21088 esac
21089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21090   (eval "$ac_compile") 2>conftest.er1
21091   ac_status=$?
21092   grep -v '^ *+' conftest.er1 >conftest.err
21093   rm -f conftest.er1
21094   cat conftest.err >&5
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } && {
21097          test -z "$ac_c_werror_flag" ||
21098          test ! -s conftest.err
21099        } && test -s conftest.$ac_objext; then
21100   ac_lo=$ac_mid; break
21101 else
21102   echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21104
21105         ac_hi=`expr '(' $ac_mid ')' - 1`
21106                         if test $ac_mid -le $ac_hi; then
21107                           ac_lo= ac_hi=
21108                           break
21109                         fi
21110                         ac_mid=`expr 2 '*' $ac_mid`
21111 fi
21112
21113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21114   done
21115 else
21116   echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21118
21119         ac_lo= ac_hi=
21120 fi
21121
21122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21123 fi
21124
21125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21126 # Binary search between lo and hi bounds.
21127 while test "x$ac_lo" != "x$ac_hi"; do
21128   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21129   cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h.  */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h.  */
21135 $ac_includes_default
21136    typedef size_t ac__type_sizeof_;
21137 int
21138 main ()
21139 {
21140 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21141 test_array [0] = 0
21142
21143   ;
21144   return 0;
21145 }
21146 _ACEOF
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151   *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154   (eval "$ac_compile") 2>conftest.er1
21155   ac_status=$?
21156   grep -v '^ *+' conftest.er1 >conftest.err
21157   rm -f conftest.er1
21158   cat conftest.err >&5
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); } && {
21161          test -z "$ac_c_werror_flag" ||
21162          test ! -s conftest.err
21163        } && test -s conftest.$ac_objext; then
21164   ac_hi=$ac_mid
21165 else
21166   echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169         ac_lo=`expr '(' $ac_mid ')' + 1`
21170 fi
21171
21172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21173 done
21174 case $ac_lo in
21175 ?*) ac_cv_sizeof_size_t=$ac_lo;;
21176 '') if test "$ac_cv_type_size_t" = yes; then
21177      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21178 See \`config.log' for more details." >&5
21179 echo "$as_me: error: cannot compute sizeof (size_t)
21180 See \`config.log' for more details." >&2;}
21181    { (exit 77); exit 77; }; }
21182    else
21183      ac_cv_sizeof_size_t=0
21184    fi ;;
21185 esac
21186 else
21187   cat >conftest.$ac_ext <<_ACEOF
21188 /* confdefs.h.  */
21189 _ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h.  */
21193 $ac_includes_default
21194    typedef size_t ac__type_sizeof_;
21195 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
21196 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
21197 #include <stdio.h>
21198 #include <stdlib.h>
21199 int
21200 main ()
21201 {
21202
21203   FILE *f = fopen ("conftest.val", "w");
21204   if (! f)
21205     return 1;
21206   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
21207     {
21208       long int i = longval ();
21209       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21210         return 1;
21211       fprintf (f, "%ld\n", i);
21212     }
21213   else
21214     {
21215       unsigned long int i = ulongval ();
21216       if (i != ((long int) (sizeof (ac__type_sizeof_))))
21217         return 1;
21218       fprintf (f, "%lu\n", i);
21219     }
21220   return ferror (f) || fclose (f) != 0;
21221
21222   ;
21223   return 0;
21224 }
21225 _ACEOF
21226 rm -f conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230   *) ac_try_echo=$ac_try;;
21231 esac
21232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21233   (eval "$ac_link") 2>&5
21234   ac_status=$?
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21237   { (case "(($ac_try" in
21238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239   *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242   (eval "$ac_try") 2>&5
21243   ac_status=$?
21244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245   (exit $ac_status); }; }; then
21246   ac_cv_sizeof_size_t=`cat conftest.val`
21247 else
21248   echo "$as_me: program exited with status $ac_status" >&5
21249 echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21251
21252 ( exit $ac_status )
21253 if test "$ac_cv_type_size_t" = yes; then
21254      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
21255 See \`config.log' for more details." >&5
21256 echo "$as_me: error: cannot compute sizeof (size_t)
21257 See \`config.log' for more details." >&2;}
21258    { (exit 77); exit 77; }; }
21259    else
21260      ac_cv_sizeof_size_t=0
21261    fi
21262 fi
21263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21264 fi
21265 rm -f conftest.val
21266 fi
21267 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
21268 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
21269
21270
21271
21272 cat >>confdefs.h <<_ACEOF
21273 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21274 _ACEOF
21275
21276
21277
21278 # Decide whether float4 is passed by value: user-selectable, enabled by default
21279 { echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
21280 echo $ECHO_N "checking whether to build with float4 passed by value... $ECHO_C" >&6; }
21281
21282 pgac_args="$pgac_args enable_float4_byval"
21283
21284 # Check whether --enable-float4-byval was given.
21285 if test "${enable_float4_byval+set}" = set; then
21286   enableval=$enable_float4_byval;
21287   case $enableval in
21288     yes)
21289
21290 cat >>confdefs.h <<\_ACEOF
21291 #define USE_FLOAT4_BYVAL 1
21292 _ACEOF
21293
21294                float4passbyval=true
21295       ;;
21296     no)
21297       float4passbyval=false
21298       ;;
21299     *)
21300       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
21301 echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
21302    { (exit 1); exit 1; }; }
21303       ;;
21304   esac
21305
21306 else
21307   enable_float4_byval=yes
21308
21309 cat >>confdefs.h <<\_ACEOF
21310 #define USE_FLOAT4_BYVAL 1
21311 _ACEOF
21312
21313                float4passbyval=true
21314 fi
21315
21316
21317 { echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
21318 echo "${ECHO_T}$enable_float4_byval" >&6; }
21319
21320 cat >>confdefs.h <<_ACEOF
21321 #define FLOAT4PASSBYVAL $float4passbyval
21322 _ACEOF
21323
21324
21325 # Decide whether float8 is passed by value.
21326 # Note: this setting also controls int8 and related types such as timestamp.
21327 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
21328 # If not, trying to select it is an error.
21329 { echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
21330 echo $ECHO_N "checking whether to build with float8 passed by value... $ECHO_C" >&6; }
21331 if test $ac_cv_sizeof_unsigned_long -ge 8 ; then
21332
21333 pgac_args="$pgac_args enable_float8_byval"
21334
21335 # Check whether --enable-float8-byval was given.
21336 if test "${enable_float8_byval+set}" = set; then
21337   enableval=$enable_float8_byval;
21338   case $enableval in
21339     yes)
21340       :
21341       ;;
21342     no)
21343       :
21344       ;;
21345     *)
21346       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21347 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21348    { (exit 1); exit 1; }; }
21349       ;;
21350   esac
21351
21352 else
21353   enable_float8_byval=yes
21354
21355 fi
21356
21357
21358 else
21359
21360 pgac_args="$pgac_args enable_float8_byval"
21361
21362 # Check whether --enable-float8-byval was given.
21363 if test "${enable_float8_byval+set}" = set; then
21364   enableval=$enable_float8_byval;
21365   case $enableval in
21366     yes)
21367       :
21368       ;;
21369     no)
21370       :
21371       ;;
21372     *)
21373       { { echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
21374 echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
21375    { (exit 1); exit 1; }; }
21376       ;;
21377   esac
21378
21379 else
21380   enable_float8_byval=no
21381
21382 fi
21383
21384
21385   if test "$enable_float8_byval" = yes ; then
21386     { { echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
21387 echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
21388    { (exit 1); exit 1; }; }
21389   fi
21390 fi
21391 if test "$enable_float8_byval" = yes ; then
21392
21393 cat >>confdefs.h <<\_ACEOF
21394 #define USE_FLOAT8_BYVAL 1
21395 _ACEOF
21396
21397   float8passbyval=true
21398 else
21399   float8passbyval=false
21400 fi
21401 { echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
21402 echo "${ECHO_T}$enable_float8_byval" >&6; }
21403
21404 cat >>confdefs.h <<_ACEOF
21405 #define FLOAT8PASSBYVAL $float8passbyval
21406 _ACEOF
21407
21408
21409 # Determine memory alignment requirements for the basic C data types.
21410
21411 { echo "$as_me:$LINENO: checking for short" >&5
21412 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21413 if test "${ac_cv_type_short+set}" = set; then
21414   echo $ECHO_N "(cached) $ECHO_C" >&6
21415 else
21416   cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422 $ac_includes_default
21423 typedef short ac__type_new_;
21424 int
21425 main ()
21426 {
21427 if ((ac__type_new_ *) 0)
21428   return 0;
21429 if (sizeof (ac__type_new_))
21430   return 0;
21431   ;
21432   return 0;
21433 }
21434 _ACEOF
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439   *) ac_try_echo=$ac_try;;
21440 esac
21441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21442   (eval "$ac_compile") 2>conftest.er1
21443   ac_status=$?
21444   grep -v '^ *+' conftest.er1 >conftest.err
21445   rm -f conftest.er1
21446   cat conftest.err >&5
21447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448   (exit $ac_status); } && {
21449          test -z "$ac_c_werror_flag" ||
21450          test ! -s conftest.err
21451        } && test -s conftest.$ac_objext; then
21452   ac_cv_type_short=yes
21453 else
21454   echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21456
21457         ac_cv_type_short=no
21458 fi
21459
21460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461 fi
21462 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21463 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21464
21465 # The cast to long int works around a bug in the HP C Compiler,
21466 # see AC_CHECK_SIZEOF for more information.
21467 { echo "$as_me:$LINENO: checking alignment of short" >&5
21468 echo $ECHO_N "checking alignment of short... $ECHO_C" >&6; }
21469 if test "${ac_cv_alignof_short+set}" = set; then
21470   echo $ECHO_N "(cached) $ECHO_C" >&6
21471 else
21472   if test "$cross_compiling" = yes; then
21473   # Depending upon the size, compute the lo and hi bounds.
21474 cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h.  */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h.  */
21480 $ac_includes_default
21481 #ifndef offsetof
21482 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21483 #endif
21484 typedef struct { char x; short y; } ac__type_alignof_;
21485 int
21486 main ()
21487 {
21488 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21489 test_array [0] = 0
21490
21491   ;
21492   return 0;
21493 }
21494 _ACEOF
21495 rm -f conftest.$ac_objext
21496 if { (ac_try="$ac_compile"
21497 case "(($ac_try" in
21498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21499   *) ac_try_echo=$ac_try;;
21500 esac
21501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21502   (eval "$ac_compile") 2>conftest.er1
21503   ac_status=$?
21504   grep -v '^ *+' conftest.er1 >conftest.err
21505   rm -f conftest.er1
21506   cat conftest.err >&5
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } && {
21509          test -z "$ac_c_werror_flag" ||
21510          test ! -s conftest.err
21511        } && test -s conftest.$ac_objext; then
21512   ac_lo=0 ac_mid=0
21513   while :; do
21514     cat >conftest.$ac_ext <<_ACEOF
21515 /* confdefs.h.  */
21516 _ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h.  */
21520 $ac_includes_default
21521 #ifndef offsetof
21522 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21523 #endif
21524 typedef struct { char x; short y; } ac__type_alignof_;
21525 int
21526 main ()
21527 {
21528 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21529 test_array [0] = 0
21530
21531   ;
21532   return 0;
21533 }
21534 _ACEOF
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539   *) ac_try_echo=$ac_try;;
21540 esac
21541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21542   (eval "$ac_compile") 2>conftest.er1
21543   ac_status=$?
21544   grep -v '^ *+' conftest.er1 >conftest.err
21545   rm -f conftest.er1
21546   cat conftest.err >&5
21547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548   (exit $ac_status); } && {
21549          test -z "$ac_c_werror_flag" ||
21550          test ! -s conftest.err
21551        } && test -s conftest.$ac_objext; then
21552   ac_hi=$ac_mid; break
21553 else
21554   echo "$as_me: failed program was:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21556
21557         ac_lo=`expr $ac_mid + 1`
21558                         if test $ac_lo -le $ac_mid; then
21559                           ac_lo= ac_hi=
21560                           break
21561                         fi
21562                         ac_mid=`expr 2 '*' $ac_mid + 1`
21563 fi
21564
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566   done
21567 else
21568   echo "$as_me: failed program was:" >&5
21569 sed 's/^/| /' conftest.$ac_ext >&5
21570
21571         cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h.  */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h.  */
21577 $ac_includes_default
21578 #ifndef offsetof
21579 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21580 #endif
21581 typedef struct { char x; short y; } ac__type_alignof_;
21582 int
21583 main ()
21584 {
21585 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
21586 test_array [0] = 0
21587
21588   ;
21589   return 0;
21590 }
21591 _ACEOF
21592 rm -f conftest.$ac_objext
21593 if { (ac_try="$ac_compile"
21594 case "(($ac_try" in
21595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596   *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599   (eval "$ac_compile") 2>conftest.er1
21600   ac_status=$?
21601   grep -v '^ *+' conftest.er1 >conftest.err
21602   rm -f conftest.er1
21603   cat conftest.err >&5
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); } && {
21606          test -z "$ac_c_werror_flag" ||
21607          test ! -s conftest.err
21608        } && test -s conftest.$ac_objext; then
21609   ac_hi=-1 ac_mid=-1
21610   while :; do
21611     cat >conftest.$ac_ext <<_ACEOF
21612 /* confdefs.h.  */
21613 _ACEOF
21614 cat confdefs.h >>conftest.$ac_ext
21615 cat >>conftest.$ac_ext <<_ACEOF
21616 /* end confdefs.h.  */
21617 $ac_includes_default
21618 #ifndef offsetof
21619 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21620 #endif
21621 typedef struct { char x; short y; } ac__type_alignof_;
21622 int
21623 main ()
21624 {
21625 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
21626 test_array [0] = 0
21627
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext
21633 if { (ac_try="$ac_compile"
21634 case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_compile") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } && {
21646          test -z "$ac_c_werror_flag" ||
21647          test ! -s conftest.err
21648        } && test -s conftest.$ac_objext; then
21649   ac_lo=$ac_mid; break
21650 else
21651   echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654         ac_hi=`expr '(' $ac_mid ')' - 1`
21655                         if test $ac_mid -le $ac_hi; then
21656                           ac_lo= ac_hi=
21657                           break
21658                         fi
21659                         ac_mid=`expr 2 '*' $ac_mid`
21660 fi
21661
21662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21663   done
21664 else
21665   echo "$as_me: failed program was:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21667
21668         ac_lo= ac_hi=
21669 fi
21670
21671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21672 fi
21673
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 # Binary search between lo and hi bounds.
21676 while test "x$ac_lo" != "x$ac_hi"; do
21677   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21678   cat >conftest.$ac_ext <<_ACEOF
21679 /* confdefs.h.  */
21680 _ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h.  */
21684 $ac_includes_default
21685 #ifndef offsetof
21686 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21687 #endif
21688 typedef struct { char x; short y; } ac__type_alignof_;
21689 int
21690 main ()
21691 {
21692 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21693 test_array [0] = 0
21694
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703   *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706   (eval "$ac_compile") 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } && {
21713          test -z "$ac_c_werror_flag" ||
21714          test ! -s conftest.err
21715        } && test -s conftest.$ac_objext; then
21716   ac_hi=$ac_mid
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721         ac_lo=`expr '(' $ac_mid ')' + 1`
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 done
21726 case $ac_lo in
21727 ?*) ac_cv_alignof_short=$ac_lo;;
21728 '') if test "$ac_cv_type_short" = yes; then
21729      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21730 See \`config.log' for more details." >&5
21731 echo "$as_me: error: cannot compute alignment of short
21732 See \`config.log' for more details." >&2;}
21733    { (exit 77); exit 77; }; }
21734    else
21735      ac_cv_alignof_short=0
21736    fi ;;
21737 esac
21738 else
21739   cat >conftest.$ac_ext <<_ACEOF
21740 /* confdefs.h.  */
21741 _ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h.  */
21745 $ac_includes_default
21746 #ifndef offsetof
21747 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21748 #endif
21749 typedef struct { char x; short y; } ac__type_alignof_;
21750 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
21751 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
21752 #include <stdio.h>
21753 #include <stdlib.h>
21754 int
21755 main ()
21756 {
21757
21758   FILE *f = fopen ("conftest.val", "w");
21759   if (! f)
21760     return 1;
21761   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
21762     {
21763       long int i = longval ();
21764       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21765         return 1;
21766       fprintf (f, "%ld\n", i);
21767     }
21768   else
21769     {
21770       unsigned long int i = ulongval ();
21771       if (i != ((long int) offsetof (ac__type_alignof_, y)))
21772         return 1;
21773       fprintf (f, "%lu\n", i);
21774     }
21775   return ferror (f) || fclose (f) != 0;
21776
21777   ;
21778   return 0;
21779 }
21780 _ACEOF
21781 rm -f conftest$ac_exeext
21782 if { (ac_try="$ac_link"
21783 case "(($ac_try" in
21784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785   *) ac_try_echo=$ac_try;;
21786 esac
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788   (eval "$ac_link") 2>&5
21789   ac_status=$?
21790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21792   { (case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_try") 2>&5
21798   ac_status=$?
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); }; }; then
21801   ac_cv_alignof_short=`cat conftest.val`
21802 else
21803   echo "$as_me: program exited with status $ac_status" >&5
21804 echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21806
21807 ( exit $ac_status )
21808 if test "$ac_cv_type_short" = yes; then
21809      { { echo "$as_me:$LINENO: error: cannot compute alignment of short
21810 See \`config.log' for more details." >&5
21811 echo "$as_me: error: cannot compute alignment of short
21812 See \`config.log' for more details." >&2;}
21813    { (exit 77); exit 77; }; }
21814    else
21815      ac_cv_alignof_short=0
21816    fi
21817 fi
21818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21819 fi
21820 rm -f conftest.val
21821 fi
21822 { echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
21823 echo "${ECHO_T}$ac_cv_alignof_short" >&6; }
21824
21825
21826
21827 cat >>confdefs.h <<_ACEOF
21828 #define ALIGNOF_SHORT $ac_cv_alignof_short
21829 _ACEOF
21830
21831
21832 { echo "$as_me:$LINENO: checking for int" >&5
21833 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
21834 if test "${ac_cv_type_int+set}" = set; then
21835   echo $ECHO_N "(cached) $ECHO_C" >&6
21836 else
21837   cat >conftest.$ac_ext <<_ACEOF
21838 /* confdefs.h.  */
21839 _ACEOF
21840 cat confdefs.h >>conftest.$ac_ext
21841 cat >>conftest.$ac_ext <<_ACEOF
21842 /* end confdefs.h.  */
21843 $ac_includes_default
21844 typedef int ac__type_new_;
21845 int
21846 main ()
21847 {
21848 if ((ac__type_new_ *) 0)
21849   return 0;
21850 if (sizeof (ac__type_new_))
21851   return 0;
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860   *) ac_try_echo=$ac_try;;
21861 esac
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863   (eval "$ac_compile") 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } && {
21870          test -z "$ac_c_werror_flag" ||
21871          test ! -s conftest.err
21872        } && test -s conftest.$ac_objext; then
21873   ac_cv_type_int=yes
21874 else
21875   echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21877
21878         ac_cv_type_int=no
21879 fi
21880
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 fi
21883 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
21884 echo "${ECHO_T}$ac_cv_type_int" >&6; }
21885
21886 # The cast to long int works around a bug in the HP C Compiler,
21887 # see AC_CHECK_SIZEOF for more information.
21888 { echo "$as_me:$LINENO: checking alignment of int" >&5
21889 echo $ECHO_N "checking alignment of int... $ECHO_C" >&6; }
21890 if test "${ac_cv_alignof_int+set}" = set; then
21891   echo $ECHO_N "(cached) $ECHO_C" >&6
21892 else
21893   if test "$cross_compiling" = yes; then
21894   # Depending upon the size, compute the lo and hi bounds.
21895 cat >conftest.$ac_ext <<_ACEOF
21896 /* confdefs.h.  */
21897 _ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h.  */
21901 $ac_includes_default
21902 #ifndef offsetof
21903 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21904 #endif
21905 typedef struct { char x; int y; } ac__type_alignof_;
21906 int
21907 main ()
21908 {
21909 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
21910 test_array [0] = 0
21911
21912   ;
21913   return 0;
21914 }
21915 _ACEOF
21916 rm -f conftest.$ac_objext
21917 if { (ac_try="$ac_compile"
21918 case "(($ac_try" in
21919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21920   *) ac_try_echo=$ac_try;;
21921 esac
21922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21923   (eval "$ac_compile") 2>conftest.er1
21924   ac_status=$?
21925   grep -v '^ *+' conftest.er1 >conftest.err
21926   rm -f conftest.er1
21927   cat conftest.err >&5
21928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21929   (exit $ac_status); } && {
21930          test -z "$ac_c_werror_flag" ||
21931          test ! -s conftest.err
21932        } && test -s conftest.$ac_objext; then
21933   ac_lo=0 ac_mid=0
21934   while :; do
21935     cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h.  */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h.  */
21941 $ac_includes_default
21942 #ifndef offsetof
21943 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
21944 #endif
21945 typedef struct { char x; int y; } ac__type_alignof_;
21946 int
21947 main ()
21948 {
21949 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
21950 test_array [0] = 0
21951
21952   ;
21953   return 0;
21954 }
21955 _ACEOF
21956 rm -f conftest.$ac_objext
21957 if { (ac_try="$ac_compile"
21958 case "(($ac_try" in
21959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21960   *) ac_try_echo=$ac_try;;
21961 esac
21962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21963   (eval "$ac_compile") 2>conftest.er1
21964   ac_status=$?
21965   grep -v '^ *+' conftest.er1 >conftest.err
21966   rm -f conftest.er1
21967   cat conftest.err >&5
21968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969   (exit $ac_status); } && {
21970          test -z "$ac_c_werror_flag" ||
21971          test ! -s conftest.err
21972        } && test -s conftest.$ac_objext; then
21973   ac_hi=$ac_mid; break
21974 else
21975   echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21977
21978         ac_lo=`expr $ac_mid + 1`
21979                         if test $ac_lo -le $ac_mid; then
21980                           ac_lo= ac_hi=
21981                           break
21982                         fi
21983                         ac_mid=`expr 2 '*' $ac_mid + 1`
21984 fi
21985
21986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21987   done
21988 else
21989   echo "$as_me: failed program was:" >&5
21990 sed 's/^/| /' conftest.$ac_ext >&5
21991
21992         cat >conftest.$ac_ext <<_ACEOF
21993 /* confdefs.h.  */
21994 _ACEOF
21995 cat confdefs.h >>conftest.$ac_ext
21996 cat >>conftest.$ac_ext <<_ACEOF
21997 /* end confdefs.h.  */
21998 $ac_includes_default
21999 #ifndef offsetof
22000 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22001 #endif
22002 typedef struct { char x; int y; } ac__type_alignof_;
22003 int
22004 main ()
22005 {
22006 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22007 test_array [0] = 0
22008
22009   ;
22010   return 0;
22011 }
22012 _ACEOF
22013 rm -f conftest.$ac_objext
22014 if { (ac_try="$ac_compile"
22015 case "(($ac_try" in
22016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22017   *) ac_try_echo=$ac_try;;
22018 esac
22019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22020   (eval "$ac_compile") 2>conftest.er1
22021   ac_status=$?
22022   grep -v '^ *+' conftest.er1 >conftest.err
22023   rm -f conftest.er1
22024   cat conftest.err >&5
22025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026   (exit $ac_status); } && {
22027          test -z "$ac_c_werror_flag" ||
22028          test ! -s conftest.err
22029        } && test -s conftest.$ac_objext; then
22030   ac_hi=-1 ac_mid=-1
22031   while :; do
22032     cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 $ac_includes_default
22039 #ifndef offsetof
22040 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22041 #endif
22042 typedef struct { char x; int y; } ac__type_alignof_;
22043 int
22044 main ()
22045 {
22046 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22047 test_array [0] = 0
22048
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 rm -f conftest.$ac_objext
22054 if { (ac_try="$ac_compile"
22055 case "(($ac_try" in
22056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057   *) ac_try_echo=$ac_try;;
22058 esac
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060   (eval "$ac_compile") 2>conftest.er1
22061   ac_status=$?
22062   grep -v '^ *+' conftest.er1 >conftest.err
22063   rm -f conftest.er1
22064   cat conftest.err >&5
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); } && {
22067          test -z "$ac_c_werror_flag" ||
22068          test ! -s conftest.err
22069        } && test -s conftest.$ac_objext; then
22070   ac_lo=$ac_mid; break
22071 else
22072   echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075         ac_hi=`expr '(' $ac_mid ')' - 1`
22076                         if test $ac_mid -le $ac_hi; then
22077                           ac_lo= ac_hi=
22078                           break
22079                         fi
22080                         ac_mid=`expr 2 '*' $ac_mid`
22081 fi
22082
22083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084   done
22085 else
22086   echo "$as_me: failed program was:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22088
22089         ac_lo= ac_hi=
22090 fi
22091
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22093 fi
22094
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 # Binary search between lo and hi bounds.
22097 while test "x$ac_lo" != "x$ac_hi"; do
22098   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22099   cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h.  */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h.  */
22105 $ac_includes_default
22106 #ifndef offsetof
22107 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22108 #endif
22109 typedef struct { char x; int y; } ac__type_alignof_;
22110 int
22111 main ()
22112 {
22113 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22114 test_array [0] = 0
22115
22116   ;
22117   return 0;
22118 }
22119 _ACEOF
22120 rm -f conftest.$ac_objext
22121 if { (ac_try="$ac_compile"
22122 case "(($ac_try" in
22123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124   *) ac_try_echo=$ac_try;;
22125 esac
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127   (eval "$ac_compile") 2>conftest.er1
22128   ac_status=$?
22129   grep -v '^ *+' conftest.er1 >conftest.err
22130   rm -f conftest.er1
22131   cat conftest.err >&5
22132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133   (exit $ac_status); } && {
22134          test -z "$ac_c_werror_flag" ||
22135          test ! -s conftest.err
22136        } && test -s conftest.$ac_objext; then
22137   ac_hi=$ac_mid
22138 else
22139   echo "$as_me: failed program was:" >&5
22140 sed 's/^/| /' conftest.$ac_ext >&5
22141
22142         ac_lo=`expr '(' $ac_mid ')' + 1`
22143 fi
22144
22145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22146 done
22147 case $ac_lo in
22148 ?*) ac_cv_alignof_int=$ac_lo;;
22149 '') if test "$ac_cv_type_int" = yes; then
22150      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22151 See \`config.log' for more details." >&5
22152 echo "$as_me: error: cannot compute alignment of int
22153 See \`config.log' for more details." >&2;}
22154    { (exit 77); exit 77; }; }
22155    else
22156      ac_cv_alignof_int=0
22157    fi ;;
22158 esac
22159 else
22160   cat >conftest.$ac_ext <<_ACEOF
22161 /* confdefs.h.  */
22162 _ACEOF
22163 cat confdefs.h >>conftest.$ac_ext
22164 cat >>conftest.$ac_ext <<_ACEOF
22165 /* end confdefs.h.  */
22166 $ac_includes_default
22167 #ifndef offsetof
22168 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22169 #endif
22170 typedef struct { char x; int y; } ac__type_alignof_;
22171 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22172 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22173 #include <stdio.h>
22174 #include <stdlib.h>
22175 int
22176 main ()
22177 {
22178
22179   FILE *f = fopen ("conftest.val", "w");
22180   if (! f)
22181     return 1;
22182   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22183     {
22184       long int i = longval ();
22185       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22186         return 1;
22187       fprintf (f, "%ld\n", i);
22188     }
22189   else
22190     {
22191       unsigned long int i = ulongval ();
22192       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22193         return 1;
22194       fprintf (f, "%lu\n", i);
22195     }
22196   return ferror (f) || fclose (f) != 0;
22197
22198   ;
22199   return 0;
22200 }
22201 _ACEOF
22202 rm -f conftest$ac_exeext
22203 if { (ac_try="$ac_link"
22204 case "(($ac_try" in
22205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22206   *) ac_try_echo=$ac_try;;
22207 esac
22208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22209   (eval "$ac_link") 2>&5
22210   ac_status=$?
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22213   { (case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218   (eval "$ac_try") 2>&5
22219   ac_status=$?
22220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22221   (exit $ac_status); }; }; then
22222   ac_cv_alignof_int=`cat conftest.val`
22223 else
22224   echo "$as_me: program exited with status $ac_status" >&5
22225 echo "$as_me: failed program was:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22227
22228 ( exit $ac_status )
22229 if test "$ac_cv_type_int" = yes; then
22230      { { echo "$as_me:$LINENO: error: cannot compute alignment of int
22231 See \`config.log' for more details." >&5
22232 echo "$as_me: error: cannot compute alignment of int
22233 See \`config.log' for more details." >&2;}
22234    { (exit 77); exit 77; }; }
22235    else
22236      ac_cv_alignof_int=0
22237    fi
22238 fi
22239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22240 fi
22241 rm -f conftest.val
22242 fi
22243 { echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
22244 echo "${ECHO_T}$ac_cv_alignof_int" >&6; }
22245
22246
22247
22248 cat >>confdefs.h <<_ACEOF
22249 #define ALIGNOF_INT $ac_cv_alignof_int
22250 _ACEOF
22251
22252
22253 { echo "$as_me:$LINENO: checking for long" >&5
22254 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
22255 if test "${ac_cv_type_long+set}" = set; then
22256   echo $ECHO_N "(cached) $ECHO_C" >&6
22257 else
22258   cat >conftest.$ac_ext <<_ACEOF
22259 /* confdefs.h.  */
22260 _ACEOF
22261 cat confdefs.h >>conftest.$ac_ext
22262 cat >>conftest.$ac_ext <<_ACEOF
22263 /* end confdefs.h.  */
22264 $ac_includes_default
22265 typedef long ac__type_new_;
22266 int
22267 main ()
22268 {
22269 if ((ac__type_new_ *) 0)
22270   return 0;
22271 if (sizeof (ac__type_new_))
22272   return 0;
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 rm -f conftest.$ac_objext
22278 if { (ac_try="$ac_compile"
22279 case "(($ac_try" in
22280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281   *) ac_try_echo=$ac_try;;
22282 esac
22283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22284   (eval "$ac_compile") 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } && {
22291          test -z "$ac_c_werror_flag" ||
22292          test ! -s conftest.err
22293        } && test -s conftest.$ac_objext; then
22294   ac_cv_type_long=yes
22295 else
22296   echo "$as_me: failed program was:" >&5
22297 sed 's/^/| /' conftest.$ac_ext >&5
22298
22299         ac_cv_type_long=no
22300 fi
22301
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303 fi
22304 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
22305 echo "${ECHO_T}$ac_cv_type_long" >&6; }
22306
22307 # The cast to long int works around a bug in the HP C Compiler,
22308 # see AC_CHECK_SIZEOF for more information.
22309 { echo "$as_me:$LINENO: checking alignment of long" >&5
22310 echo $ECHO_N "checking alignment of long... $ECHO_C" >&6; }
22311 if test "${ac_cv_alignof_long+set}" = set; then
22312   echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314   if test "$cross_compiling" = yes; then
22315   # Depending upon the size, compute the lo and hi bounds.
22316 cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h.  */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h.  */
22322 $ac_includes_default
22323 #ifndef offsetof
22324 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22325 #endif
22326 typedef struct { char x; long y; } ac__type_alignof_;
22327 int
22328 main ()
22329 {
22330 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22331 test_array [0] = 0
22332
22333   ;
22334   return 0;
22335 }
22336 _ACEOF
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341   *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344   (eval "$ac_compile") 2>conftest.er1
22345   ac_status=$?
22346   grep -v '^ *+' conftest.er1 >conftest.err
22347   rm -f conftest.er1
22348   cat conftest.err >&5
22349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350   (exit $ac_status); } && {
22351          test -z "$ac_c_werror_flag" ||
22352          test ! -s conftest.err
22353        } && test -s conftest.$ac_objext; then
22354   ac_lo=0 ac_mid=0
22355   while :; do
22356     cat >conftest.$ac_ext <<_ACEOF
22357 /* confdefs.h.  */
22358 _ACEOF
22359 cat confdefs.h >>conftest.$ac_ext
22360 cat >>conftest.$ac_ext <<_ACEOF
22361 /* end confdefs.h.  */
22362 $ac_includes_default
22363 #ifndef offsetof
22364 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22365 #endif
22366 typedef struct { char x; long y; } ac__type_alignof_;
22367 int
22368 main ()
22369 {
22370 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22371 test_array [0] = 0
22372
22373   ;
22374   return 0;
22375 }
22376 _ACEOF
22377 rm -f conftest.$ac_objext
22378 if { (ac_try="$ac_compile"
22379 case "(($ac_try" in
22380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22381   *) ac_try_echo=$ac_try;;
22382 esac
22383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22384   (eval "$ac_compile") 2>conftest.er1
22385   ac_status=$?
22386   grep -v '^ *+' conftest.er1 >conftest.err
22387   rm -f conftest.er1
22388   cat conftest.err >&5
22389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22390   (exit $ac_status); } && {
22391          test -z "$ac_c_werror_flag" ||
22392          test ! -s conftest.err
22393        } && test -s conftest.$ac_objext; then
22394   ac_hi=$ac_mid; break
22395 else
22396   echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22398
22399         ac_lo=`expr $ac_mid + 1`
22400                         if test $ac_lo -le $ac_mid; then
22401                           ac_lo= ac_hi=
22402                           break
22403                         fi
22404                         ac_mid=`expr 2 '*' $ac_mid + 1`
22405 fi
22406
22407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22408   done
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413         cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h.  */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h.  */
22419 $ac_includes_default
22420 #ifndef offsetof
22421 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22422 #endif
22423 typedef struct { char x; long y; } ac__type_alignof_;
22424 int
22425 main ()
22426 {
22427 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22428 test_array [0] = 0
22429
22430   ;
22431   return 0;
22432 }
22433 _ACEOF
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438   *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441   (eval "$ac_compile") 2>conftest.er1
22442   ac_status=$?
22443   grep -v '^ *+' conftest.er1 >conftest.err
22444   rm -f conftest.er1
22445   cat conftest.err >&5
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); } && {
22448          test -z "$ac_c_werror_flag" ||
22449          test ! -s conftest.err
22450        } && test -s conftest.$ac_objext; then
22451   ac_hi=-1 ac_mid=-1
22452   while :; do
22453     cat >conftest.$ac_ext <<_ACEOF
22454 /* confdefs.h.  */
22455 _ACEOF
22456 cat confdefs.h >>conftest.$ac_ext
22457 cat >>conftest.$ac_ext <<_ACEOF
22458 /* end confdefs.h.  */
22459 $ac_includes_default
22460 #ifndef offsetof
22461 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22462 #endif
22463 typedef struct { char x; long y; } ac__type_alignof_;
22464 int
22465 main ()
22466 {
22467 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22468 test_array [0] = 0
22469
22470   ;
22471   return 0;
22472 }
22473 _ACEOF
22474 rm -f conftest.$ac_objext
22475 if { (ac_try="$ac_compile"
22476 case "(($ac_try" in
22477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478   *) ac_try_echo=$ac_try;;
22479 esac
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481   (eval "$ac_compile") 2>conftest.er1
22482   ac_status=$?
22483   grep -v '^ *+' conftest.er1 >conftest.err
22484   rm -f conftest.er1
22485   cat conftest.err >&5
22486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } && {
22488          test -z "$ac_c_werror_flag" ||
22489          test ! -s conftest.err
22490        } && test -s conftest.$ac_objext; then
22491   ac_lo=$ac_mid; break
22492 else
22493   echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496         ac_hi=`expr '(' $ac_mid ')' - 1`
22497                         if test $ac_mid -le $ac_hi; then
22498                           ac_lo= ac_hi=
22499                           break
22500                         fi
22501                         ac_mid=`expr 2 '*' $ac_mid`
22502 fi
22503
22504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505   done
22506 else
22507   echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22509
22510         ac_lo= ac_hi=
22511 fi
22512
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22514 fi
22515
22516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 # Binary search between lo and hi bounds.
22518 while test "x$ac_lo" != "x$ac_hi"; do
22519   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22520   cat >conftest.$ac_ext <<_ACEOF
22521 /* confdefs.h.  */
22522 _ACEOF
22523 cat confdefs.h >>conftest.$ac_ext
22524 cat >>conftest.$ac_ext <<_ACEOF
22525 /* end confdefs.h.  */
22526 $ac_includes_default
22527 #ifndef offsetof
22528 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22529 #endif
22530 typedef struct { char x; long y; } ac__type_alignof_;
22531 int
22532 main ()
22533 {
22534 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22535 test_array [0] = 0
22536
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest.$ac_objext
22542 if { (ac_try="$ac_compile"
22543 case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548   (eval "$ac_compile") 2>conftest.er1
22549   ac_status=$?
22550   grep -v '^ *+' conftest.er1 >conftest.err
22551   rm -f conftest.er1
22552   cat conftest.err >&5
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); } && {
22555          test -z "$ac_c_werror_flag" ||
22556          test ! -s conftest.err
22557        } && test -s conftest.$ac_objext; then
22558   ac_hi=$ac_mid
22559 else
22560   echo "$as_me: failed program was:" >&5
22561 sed 's/^/| /' conftest.$ac_ext >&5
22562
22563         ac_lo=`expr '(' $ac_mid ')' + 1`
22564 fi
22565
22566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22567 done
22568 case $ac_lo in
22569 ?*) ac_cv_alignof_long=$ac_lo;;
22570 '') if test "$ac_cv_type_long" = yes; then
22571      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22572 See \`config.log' for more details." >&5
22573 echo "$as_me: error: cannot compute alignment of long
22574 See \`config.log' for more details." >&2;}
22575    { (exit 77); exit 77; }; }
22576    else
22577      ac_cv_alignof_long=0
22578    fi ;;
22579 esac
22580 else
22581   cat >conftest.$ac_ext <<_ACEOF
22582 /* confdefs.h.  */
22583 _ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h.  */
22587 $ac_includes_default
22588 #ifndef offsetof
22589 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22590 #endif
22591 typedef struct { char x; long y; } ac__type_alignof_;
22592 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
22593 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
22594 #include <stdio.h>
22595 #include <stdlib.h>
22596 int
22597 main ()
22598 {
22599
22600   FILE *f = fopen ("conftest.val", "w");
22601   if (! f)
22602     return 1;
22603   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
22604     {
22605       long int i = longval ();
22606       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22607         return 1;
22608       fprintf (f, "%ld\n", i);
22609     }
22610   else
22611     {
22612       unsigned long int i = ulongval ();
22613       if (i != ((long int) offsetof (ac__type_alignof_, y)))
22614         return 1;
22615       fprintf (f, "%lu\n", i);
22616     }
22617   return ferror (f) || fclose (f) != 0;
22618
22619   ;
22620   return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest$ac_exeext
22624 if { (ac_try="$ac_link"
22625 case "(($ac_try" in
22626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627   *) ac_try_echo=$ac_try;;
22628 esac
22629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630   (eval "$ac_link") 2>&5
22631   ac_status=$?
22632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22634   { (case "(($ac_try" in
22635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636   *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639   (eval "$ac_try") 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }; }; then
22643   ac_cv_alignof_long=`cat conftest.val`
22644 else
22645   echo "$as_me: program exited with status $ac_status" >&5
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22648
22649 ( exit $ac_status )
22650 if test "$ac_cv_type_long" = yes; then
22651      { { echo "$as_me:$LINENO: error: cannot compute alignment of long
22652 See \`config.log' for more details." >&5
22653 echo "$as_me: error: cannot compute alignment of long
22654 See \`config.log' for more details." >&2;}
22655    { (exit 77); exit 77; }; }
22656    else
22657      ac_cv_alignof_long=0
22658    fi
22659 fi
22660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22661 fi
22662 rm -f conftest.val
22663 fi
22664 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
22665 echo "${ECHO_T}$ac_cv_alignof_long" >&6; }
22666
22667
22668
22669 cat >>confdefs.h <<_ACEOF
22670 #define ALIGNOF_LONG $ac_cv_alignof_long
22671 _ACEOF
22672
22673
22674 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
22675   { echo "$as_me:$LINENO: checking for long long int" >&5
22676 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
22677 if test "${ac_cv_type_long_long_int+set}" = set; then
22678   echo $ECHO_N "(cached) $ECHO_C" >&6
22679 else
22680   cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h.  */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h.  */
22686 $ac_includes_default
22687 typedef long long int ac__type_new_;
22688 int
22689 main ()
22690 {
22691 if ((ac__type_new_ *) 0)
22692   return 0;
22693 if (sizeof (ac__type_new_))
22694   return 0;
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 rm -f conftest.$ac_objext
22700 if { (ac_try="$ac_compile"
22701 case "(($ac_try" in
22702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703   *) ac_try_echo=$ac_try;;
22704 esac
22705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706   (eval "$ac_compile") 2>conftest.er1
22707   ac_status=$?
22708   grep -v '^ *+' conftest.er1 >conftest.err
22709   rm -f conftest.er1
22710   cat conftest.err >&5
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); } && {
22713          test -z "$ac_c_werror_flag" ||
22714          test ! -s conftest.err
22715        } && test -s conftest.$ac_objext; then
22716   ac_cv_type_long_long_int=yes
22717 else
22718   echo "$as_me: failed program was:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22720
22721         ac_cv_type_long_long_int=no
22722 fi
22723
22724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22725 fi
22726 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
22727 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
22728
22729 # The cast to long int works around a bug in the HP C Compiler,
22730 # see AC_CHECK_SIZEOF for more information.
22731 { echo "$as_me:$LINENO: checking alignment of long long int" >&5
22732 echo $ECHO_N "checking alignment of long long int... $ECHO_C" >&6; }
22733 if test "${ac_cv_alignof_long_long_int+set}" = set; then
22734   echo $ECHO_N "(cached) $ECHO_C" >&6
22735 else
22736   if test "$cross_compiling" = yes; then
22737   # Depending upon the size, compute the lo and hi bounds.
22738 cat >conftest.$ac_ext <<_ACEOF
22739 /* confdefs.h.  */
22740 _ACEOF
22741 cat confdefs.h >>conftest.$ac_ext
22742 cat >>conftest.$ac_ext <<_ACEOF
22743 /* end confdefs.h.  */
22744 $ac_includes_default
22745 #ifndef offsetof
22746 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22747 #endif
22748 typedef struct { char x; long long int y; } ac__type_alignof_;
22749 int
22750 main ()
22751 {
22752 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
22753 test_array [0] = 0
22754
22755   ;
22756   return 0;
22757 }
22758 _ACEOF
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763   *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766   (eval "$ac_compile") 2>conftest.er1
22767   ac_status=$?
22768   grep -v '^ *+' conftest.er1 >conftest.err
22769   rm -f conftest.er1
22770   cat conftest.err >&5
22771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772   (exit $ac_status); } && {
22773          test -z "$ac_c_werror_flag" ||
22774          test ! -s conftest.err
22775        } && test -s conftest.$ac_objext; then
22776   ac_lo=0 ac_mid=0
22777   while :; do
22778     cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 $ac_includes_default
22785 #ifndef offsetof
22786 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22787 #endif
22788 typedef struct { char x; long long int y; } ac__type_alignof_;
22789 int
22790 main ()
22791 {
22792 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22793 test_array [0] = 0
22794
22795   ;
22796   return 0;
22797 }
22798 _ACEOF
22799 rm -f conftest.$ac_objext
22800 if { (ac_try="$ac_compile"
22801 case "(($ac_try" in
22802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22803   *) ac_try_echo=$ac_try;;
22804 esac
22805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22806   (eval "$ac_compile") 2>conftest.er1
22807   ac_status=$?
22808   grep -v '^ *+' conftest.er1 >conftest.err
22809   rm -f conftest.er1
22810   cat conftest.err >&5
22811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812   (exit $ac_status); } && {
22813          test -z "$ac_c_werror_flag" ||
22814          test ! -s conftest.err
22815        } && test -s conftest.$ac_objext; then
22816   ac_hi=$ac_mid; break
22817 else
22818   echo "$as_me: failed program was:" >&5
22819 sed 's/^/| /' conftest.$ac_ext >&5
22820
22821         ac_lo=`expr $ac_mid + 1`
22822                         if test $ac_lo -le $ac_mid; then
22823                           ac_lo= ac_hi=
22824                           break
22825                         fi
22826                         ac_mid=`expr 2 '*' $ac_mid + 1`
22827 fi
22828
22829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22830   done
22831 else
22832   echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835         cat >conftest.$ac_ext <<_ACEOF
22836 /* confdefs.h.  */
22837 _ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h.  */
22841 $ac_includes_default
22842 #ifndef offsetof
22843 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22844 #endif
22845 typedef struct { char x; long long int y; } ac__type_alignof_;
22846 int
22847 main ()
22848 {
22849 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
22850 test_array [0] = 0
22851
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_compile") 2>conftest.er1
22864   ac_status=$?
22865   grep -v '^ *+' conftest.er1 >conftest.err
22866   rm -f conftest.er1
22867   cat conftest.err >&5
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && {
22870          test -z "$ac_c_werror_flag" ||
22871          test ! -s conftest.err
22872        } && test -s conftest.$ac_objext; then
22873   ac_hi=-1 ac_mid=-1
22874   while :; do
22875     cat >conftest.$ac_ext <<_ACEOF
22876 /* confdefs.h.  */
22877 _ACEOF
22878 cat confdefs.h >>conftest.$ac_ext
22879 cat >>conftest.$ac_ext <<_ACEOF
22880 /* end confdefs.h.  */
22881 $ac_includes_default
22882 #ifndef offsetof
22883 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22884 #endif
22885 typedef struct { char x; long long int y; } ac__type_alignof_;
22886 int
22887 main ()
22888 {
22889 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
22890 test_array [0] = 0
22891
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900   *) ac_try_echo=$ac_try;;
22901 esac
22902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22903   (eval "$ac_compile") 2>conftest.er1
22904   ac_status=$?
22905   grep -v '^ *+' conftest.er1 >conftest.err
22906   rm -f conftest.er1
22907   cat conftest.err >&5
22908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909   (exit $ac_status); } && {
22910          test -z "$ac_c_werror_flag" ||
22911          test ! -s conftest.err
22912        } && test -s conftest.$ac_objext; then
22913   ac_lo=$ac_mid; break
22914 else
22915   echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22917
22918         ac_hi=`expr '(' $ac_mid ')' - 1`
22919                         if test $ac_mid -le $ac_hi; then
22920                           ac_lo= ac_hi=
22921                           break
22922                         fi
22923                         ac_mid=`expr 2 '*' $ac_mid`
22924 fi
22925
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927   done
22928 else
22929   echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22931
22932         ac_lo= ac_hi=
22933 fi
22934
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 fi
22937
22938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22939 # Binary search between lo and hi bounds.
22940 while test "x$ac_lo" != "x$ac_hi"; do
22941   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22942   cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h.  */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h.  */
22948 $ac_includes_default
22949 #ifndef offsetof
22950 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
22951 #endif
22952 typedef struct { char x; long long int y; } ac__type_alignof_;
22953 int
22954 main ()
22955 {
22956 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
22957 test_array [0] = 0
22958
22959   ;
22960   return 0;
22961 }
22962 _ACEOF
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967   *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970   (eval "$ac_compile") 2>conftest.er1
22971   ac_status=$?
22972   grep -v '^ *+' conftest.er1 >conftest.err
22973   rm -f conftest.er1
22974   cat conftest.err >&5
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); } && {
22977          test -z "$ac_c_werror_flag" ||
22978          test ! -s conftest.err
22979        } && test -s conftest.$ac_objext; then
22980   ac_hi=$ac_mid
22981 else
22982   echo "$as_me: failed program was:" >&5
22983 sed 's/^/| /' conftest.$ac_ext >&5
22984
22985         ac_lo=`expr '(' $ac_mid ')' + 1`
22986 fi
22987
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22989 done
22990 case $ac_lo in
22991 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
22992 '') if test "$ac_cv_type_long_long_int" = yes; then
22993      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
22994 See \`config.log' for more details." >&5
22995 echo "$as_me: error: cannot compute alignment of long long int
22996 See \`config.log' for more details." >&2;}
22997    { (exit 77); exit 77; }; }
22998    else
22999      ac_cv_alignof_long_long_int=0
23000    fi ;;
23001 esac
23002 else
23003   cat >conftest.$ac_ext <<_ACEOF
23004 /* confdefs.h.  */
23005 _ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h.  */
23009 $ac_includes_default
23010 #ifndef offsetof
23011 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23012 #endif
23013 typedef struct { char x; long long int y; } ac__type_alignof_;
23014 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23015 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23016 #include <stdio.h>
23017 #include <stdlib.h>
23018 int
23019 main ()
23020 {
23021
23022   FILE *f = fopen ("conftest.val", "w");
23023   if (! f)
23024     return 1;
23025   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23026     {
23027       long int i = longval ();
23028       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23029         return 1;
23030       fprintf (f, "%ld\n", i);
23031     }
23032   else
23033     {
23034       unsigned long int i = ulongval ();
23035       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23036         return 1;
23037       fprintf (f, "%lu\n", i);
23038     }
23039   return ferror (f) || fclose (f) != 0;
23040
23041   ;
23042   return 0;
23043 }
23044 _ACEOF
23045 rm -f conftest$ac_exeext
23046 if { (ac_try="$ac_link"
23047 case "(($ac_try" in
23048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049   *) ac_try_echo=$ac_try;;
23050 esac
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052   (eval "$ac_link") 2>&5
23053   ac_status=$?
23054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23056   { (case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_try") 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; }; then
23065   ac_cv_alignof_long_long_int=`cat conftest.val`
23066 else
23067   echo "$as_me: program exited with status $ac_status" >&5
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.$ac_ext >&5
23070
23071 ( exit $ac_status )
23072 if test "$ac_cv_type_long_long_int" = yes; then
23073      { { echo "$as_me:$LINENO: error: cannot compute alignment of long long int
23074 See \`config.log' for more details." >&5
23075 echo "$as_me: error: cannot compute alignment of long long int
23076 See \`config.log' for more details." >&2;}
23077    { (exit 77); exit 77; }; }
23078    else
23079      ac_cv_alignof_long_long_int=0
23080    fi
23081 fi
23082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23083 fi
23084 rm -f conftest.val
23085 fi
23086 { echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
23087 echo "${ECHO_T}$ac_cv_alignof_long_long_int" >&6; }
23088
23089
23090
23091 cat >>confdefs.h <<_ACEOF
23092 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
23093 _ACEOF
23094
23095
23096 fi
23097 { echo "$as_me:$LINENO: checking for double" >&5
23098 echo $ECHO_N "checking for double... $ECHO_C" >&6; }
23099 if test "${ac_cv_type_double+set}" = set; then
23100   echo $ECHO_N "(cached) $ECHO_C" >&6
23101 else
23102   cat >conftest.$ac_ext <<_ACEOF
23103 /* confdefs.h.  */
23104 _ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h.  */
23108 $ac_includes_default
23109 typedef double ac__type_new_;
23110 int
23111 main ()
23112 {
23113 if ((ac__type_new_ *) 0)
23114   return 0;
23115 if (sizeof (ac__type_new_))
23116   return 0;
23117   ;
23118   return 0;
23119 }
23120 _ACEOF
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125   *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128   (eval "$ac_compile") 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } && {
23135          test -z "$ac_c_werror_flag" ||
23136          test ! -s conftest.err
23137        } && test -s conftest.$ac_objext; then
23138   ac_cv_type_double=yes
23139 else
23140   echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143         ac_cv_type_double=no
23144 fi
23145
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 fi
23148 { echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
23149 echo "${ECHO_T}$ac_cv_type_double" >&6; }
23150
23151 # The cast to long int works around a bug in the HP C Compiler,
23152 # see AC_CHECK_SIZEOF for more information.
23153 { echo "$as_me:$LINENO: checking alignment of double" >&5
23154 echo $ECHO_N "checking alignment of double... $ECHO_C" >&6; }
23155 if test "${ac_cv_alignof_double+set}" = set; then
23156   echo $ECHO_N "(cached) $ECHO_C" >&6
23157 else
23158   if test "$cross_compiling" = yes; then
23159   # Depending upon the size, compute the lo and hi bounds.
23160 cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h.  */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h.  */
23166 $ac_includes_default
23167 #ifndef offsetof
23168 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23169 #endif
23170 typedef struct { char x; double y; } ac__type_alignof_;
23171 int
23172 main ()
23173 {
23174 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
23175 test_array [0] = 0
23176
23177   ;
23178   return 0;
23179 }
23180 _ACEOF
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185   *) ac_try_echo=$ac_try;;
23186 esac
23187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23188   (eval "$ac_compile") 2>conftest.er1
23189   ac_status=$?
23190   grep -v '^ *+' conftest.er1 >conftest.err
23191   rm -f conftest.er1
23192   cat conftest.err >&5
23193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194   (exit $ac_status); } && {
23195          test -z "$ac_c_werror_flag" ||
23196          test ! -s conftest.err
23197        } && test -s conftest.$ac_objext; then
23198   ac_lo=0 ac_mid=0
23199   while :; do
23200     cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h.  */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h.  */
23206 $ac_includes_default
23207 #ifndef offsetof
23208 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23209 #endif
23210 typedef struct { char x; double y; } ac__type_alignof_;
23211 int
23212 main ()
23213 {
23214 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23215 test_array [0] = 0
23216
23217   ;
23218   return 0;
23219 }
23220 _ACEOF
23221 rm -f conftest.$ac_objext
23222 if { (ac_try="$ac_compile"
23223 case "(($ac_try" in
23224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225   *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228   (eval "$ac_compile") 2>conftest.er1
23229   ac_status=$?
23230   grep -v '^ *+' conftest.er1 >conftest.err
23231   rm -f conftest.er1
23232   cat conftest.err >&5
23233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234   (exit $ac_status); } && {
23235          test -z "$ac_c_werror_flag" ||
23236          test ! -s conftest.err
23237        } && test -s conftest.$ac_objext; then
23238   ac_hi=$ac_mid; break
23239 else
23240   echo "$as_me: failed program was:" >&5
23241 sed 's/^/| /' conftest.$ac_ext >&5
23242
23243         ac_lo=`expr $ac_mid + 1`
23244                         if test $ac_lo -le $ac_mid; then
23245                           ac_lo= ac_hi=
23246                           break
23247                         fi
23248                         ac_mid=`expr 2 '*' $ac_mid + 1`
23249 fi
23250
23251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252   done
23253 else
23254   echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23256
23257         cat >conftest.$ac_ext <<_ACEOF
23258 /* confdefs.h.  */
23259 _ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h.  */
23263 $ac_includes_default
23264 #ifndef offsetof
23265 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23266 #endif
23267 typedef struct { char x; double y; } ac__type_alignof_;
23268 int
23269 main ()
23270 {
23271 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
23272 test_array [0] = 0
23273
23274   ;
23275   return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext
23279 if { (ac_try="$ac_compile"
23280 case "(($ac_try" in
23281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23282   *) ac_try_echo=$ac_try;;
23283 esac
23284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23285   (eval "$ac_compile") 2>conftest.er1
23286   ac_status=$?
23287   grep -v '^ *+' conftest.er1 >conftest.err
23288   rm -f conftest.er1
23289   cat conftest.err >&5
23290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23291   (exit $ac_status); } && {
23292          test -z "$ac_c_werror_flag" ||
23293          test ! -s conftest.err
23294        } && test -s conftest.$ac_objext; then
23295   ac_hi=-1 ac_mid=-1
23296   while :; do
23297     cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303 $ac_includes_default
23304 #ifndef offsetof
23305 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23306 #endif
23307 typedef struct { char x; double y; } ac__type_alignof_;
23308 int
23309 main ()
23310 {
23311 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
23312 test_array [0] = 0
23313
23314   ;
23315   return 0;
23316 }
23317 _ACEOF
23318 rm -f conftest.$ac_objext
23319 if { (ac_try="$ac_compile"
23320 case "(($ac_try" in
23321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23322   *) ac_try_echo=$ac_try;;
23323 esac
23324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23325   (eval "$ac_compile") 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } && {
23332          test -z "$ac_c_werror_flag" ||
23333          test ! -s conftest.err
23334        } && test -s conftest.$ac_objext; then
23335   ac_lo=$ac_mid; break
23336 else
23337   echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23339
23340         ac_hi=`expr '(' $ac_mid ')' - 1`
23341                         if test $ac_mid -le $ac_hi; then
23342                           ac_lo= ac_hi=
23343                           break
23344                         fi
23345                         ac_mid=`expr 2 '*' $ac_mid`
23346 fi
23347
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349   done
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354         ac_lo= ac_hi=
23355 fi
23356
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 fi
23359
23360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23361 # Binary search between lo and hi bounds.
23362 while test "x$ac_lo" != "x$ac_hi"; do
23363   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23364   cat >conftest.$ac_ext <<_ACEOF
23365 /* confdefs.h.  */
23366 _ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h.  */
23370 $ac_includes_default
23371 #ifndef offsetof
23372 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23373 #endif
23374 typedef struct { char x; double y; } ac__type_alignof_;
23375 int
23376 main ()
23377 {
23378 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
23379 test_array [0] = 0
23380
23381   ;
23382   return 0;
23383 }
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389   *) ac_try_echo=$ac_try;;
23390 esac
23391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23392   (eval "$ac_compile") 2>conftest.er1
23393   ac_status=$?
23394   grep -v '^ *+' conftest.er1 >conftest.err
23395   rm -f conftest.er1
23396   cat conftest.err >&5
23397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398   (exit $ac_status); } && {
23399          test -z "$ac_c_werror_flag" ||
23400          test ! -s conftest.err
23401        } && test -s conftest.$ac_objext; then
23402   ac_hi=$ac_mid
23403 else
23404   echo "$as_me: failed program was:" >&5
23405 sed 's/^/| /' conftest.$ac_ext >&5
23406
23407         ac_lo=`expr '(' $ac_mid ')' + 1`
23408 fi
23409
23410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23411 done
23412 case $ac_lo in
23413 ?*) ac_cv_alignof_double=$ac_lo;;
23414 '') if test "$ac_cv_type_double" = yes; then
23415      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23416 See \`config.log' for more details." >&5
23417 echo "$as_me: error: cannot compute alignment of double
23418 See \`config.log' for more details." >&2;}
23419    { (exit 77); exit 77; }; }
23420    else
23421      ac_cv_alignof_double=0
23422    fi ;;
23423 esac
23424 else
23425   cat >conftest.$ac_ext <<_ACEOF
23426 /* confdefs.h.  */
23427 _ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h.  */
23431 $ac_includes_default
23432 #ifndef offsetof
23433 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
23434 #endif
23435 typedef struct { char x; double y; } ac__type_alignof_;
23436 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
23437 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
23438 #include <stdio.h>
23439 #include <stdlib.h>
23440 int
23441 main ()
23442 {
23443
23444   FILE *f = fopen ("conftest.val", "w");
23445   if (! f)
23446     return 1;
23447   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
23448     {
23449       long int i = longval ();
23450       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23451         return 1;
23452       fprintf (f, "%ld\n", i);
23453     }
23454   else
23455     {
23456       unsigned long int i = ulongval ();
23457       if (i != ((long int) offsetof (ac__type_alignof_, y)))
23458         return 1;
23459       fprintf (f, "%lu\n", i);
23460     }
23461   return ferror (f) || fclose (f) != 0;
23462
23463   ;
23464   return 0;
23465 }
23466 _ACEOF
23467 rm -f conftest$ac_exeext
23468 if { (ac_try="$ac_link"
23469 case "(($ac_try" in
23470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23471   *) ac_try_echo=$ac_try;;
23472 esac
23473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23474   (eval "$ac_link") 2>&5
23475   ac_status=$?
23476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23478   { (case "(($ac_try" in
23479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480   *) ac_try_echo=$ac_try;;
23481 esac
23482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23483   (eval "$ac_try") 2>&5
23484   ac_status=$?
23485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); }; }; then
23487   ac_cv_alignof_double=`cat conftest.val`
23488 else
23489   echo "$as_me: program exited with status $ac_status" >&5
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23492
23493 ( exit $ac_status )
23494 if test "$ac_cv_type_double" = yes; then
23495      { { echo "$as_me:$LINENO: error: cannot compute alignment of double
23496 See \`config.log' for more details." >&5
23497 echo "$as_me: error: cannot compute alignment of double
23498 See \`config.log' for more details." >&2;}
23499    { (exit 77); exit 77; }; }
23500    else
23501      ac_cv_alignof_double=0
23502    fi
23503 fi
23504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23505 fi
23506 rm -f conftest.val
23507 fi
23508 { echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
23509 echo "${ECHO_T}$ac_cv_alignof_double" >&6; }
23510
23511
23512
23513 cat >>confdefs.h <<_ACEOF
23514 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
23515 _ACEOF
23516
23517
23518
23519 # Compute maximum alignment of any basic type.
23520 # We assume long's alignment is at least as strong as char, short, or int;
23521 # but we must check long long (if it exists) and double.
23522
23523 MAX_ALIGNOF=$ac_cv_alignof_long
23524 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
23525   MAX_ALIGNOF=$ac_cv_alignof_double
23526 fi
23527 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
23528   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
23529 fi
23530
23531 cat >>confdefs.h <<_ACEOF
23532 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
23533 _ACEOF
23534
23535
23536
23537 # Some platforms predefine the types int8, int16, etc.  Only check
23538 # a (hopefully) representative subset.
23539 { echo "$as_me:$LINENO: checking for int8" >&5
23540 echo $ECHO_N "checking for int8... $ECHO_C" >&6; }
23541 if test "${ac_cv_type_int8+set}" = set; then
23542   echo $ECHO_N "(cached) $ECHO_C" >&6
23543 else
23544   cat >conftest.$ac_ext <<_ACEOF
23545 /* confdefs.h.  */
23546 _ACEOF
23547 cat confdefs.h >>conftest.$ac_ext
23548 cat >>conftest.$ac_ext <<_ACEOF
23549 /* end confdefs.h.  */
23550 #include <stdio.h>
23551 #ifdef HAVE_SUPPORTDEFS_H
23552 #include <SupportDefs.h>
23553 #endif
23554
23555 typedef int8 ac__type_new_;
23556 int
23557 main ()
23558 {
23559 if ((ac__type_new_ *) 0)
23560   return 0;
23561 if (sizeof (ac__type_new_))
23562   return 0;
23563   ;
23564   return 0;
23565 }
23566 _ACEOF
23567 rm -f conftest.$ac_objext
23568 if { (ac_try="$ac_compile"
23569 case "(($ac_try" in
23570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571   *) ac_try_echo=$ac_try;;
23572 esac
23573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23574   (eval "$ac_compile") 2>conftest.er1
23575   ac_status=$?
23576   grep -v '^ *+' conftest.er1 >conftest.err
23577   rm -f conftest.er1
23578   cat conftest.err >&5
23579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580   (exit $ac_status); } && {
23581          test -z "$ac_c_werror_flag" ||
23582          test ! -s conftest.err
23583        } && test -s conftest.$ac_objext; then
23584   ac_cv_type_int8=yes
23585 else
23586   echo "$as_me: failed program was:" >&5
23587 sed 's/^/| /' conftest.$ac_ext >&5
23588
23589         ac_cv_type_int8=no
23590 fi
23591
23592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 fi
23594 { echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
23595 echo "${ECHO_T}$ac_cv_type_int8" >&6; }
23596 if test $ac_cv_type_int8 = yes; then
23597
23598 cat >>confdefs.h <<_ACEOF
23599 #define HAVE_INT8 1
23600 _ACEOF
23601
23602
23603 fi
23604 { echo "$as_me:$LINENO: checking for uint8" >&5
23605 echo $ECHO_N "checking for uint8... $ECHO_C" >&6; }
23606 if test "${ac_cv_type_uint8+set}" = set; then
23607   echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609   cat >conftest.$ac_ext <<_ACEOF
23610 /* confdefs.h.  */
23611 _ACEOF
23612 cat confdefs.h >>conftest.$ac_ext
23613 cat >>conftest.$ac_ext <<_ACEOF
23614 /* end confdefs.h.  */
23615 #include <stdio.h>
23616 #ifdef HAVE_SUPPORTDEFS_H
23617 #include <SupportDefs.h>
23618 #endif
23619
23620 typedef uint8 ac__type_new_;
23621 int
23622 main ()
23623 {
23624 if ((ac__type_new_ *) 0)
23625   return 0;
23626 if (sizeof (ac__type_new_))
23627   return 0;
23628   ;
23629   return 0;
23630 }
23631 _ACEOF
23632 rm -f conftest.$ac_objext
23633 if { (ac_try="$ac_compile"
23634 case "(($ac_try" in
23635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23636   *) ac_try_echo=$ac_try;;
23637 esac
23638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23639   (eval "$ac_compile") 2>conftest.er1
23640   ac_status=$?
23641   grep -v '^ *+' conftest.er1 >conftest.err
23642   rm -f conftest.er1
23643   cat conftest.err >&5
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); } && {
23646          test -z "$ac_c_werror_flag" ||
23647          test ! -s conftest.err
23648        } && test -s conftest.$ac_objext; then
23649   ac_cv_type_uint8=yes
23650 else
23651   echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23653
23654         ac_cv_type_uint8=no
23655 fi
23656
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 fi
23659 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
23660 echo "${ECHO_T}$ac_cv_type_uint8" >&6; }
23661 if test $ac_cv_type_uint8 = yes; then
23662
23663 cat >>confdefs.h <<_ACEOF
23664 #define HAVE_UINT8 1
23665 _ACEOF
23666
23667
23668 fi
23669 { echo "$as_me:$LINENO: checking for int64" >&5
23670 echo $ECHO_N "checking for int64... $ECHO_C" >&6; }
23671 if test "${ac_cv_type_int64+set}" = set; then
23672   echo $ECHO_N "(cached) $ECHO_C" >&6
23673 else
23674   cat >conftest.$ac_ext <<_ACEOF
23675 /* confdefs.h.  */
23676 _ACEOF
23677 cat confdefs.h >>conftest.$ac_ext
23678 cat >>conftest.$ac_ext <<_ACEOF
23679 /* end confdefs.h.  */
23680 #include <stdio.h>
23681 #ifdef HAVE_SUPPORTDEFS_H
23682 #include <SupportDefs.h>
23683 #endif
23684
23685 typedef int64 ac__type_new_;
23686 int
23687 main ()
23688 {
23689 if ((ac__type_new_ *) 0)
23690   return 0;
23691 if (sizeof (ac__type_new_))
23692   return 0;
23693   ;
23694   return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext
23698 if { (ac_try="$ac_compile"
23699 case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704   (eval "$ac_compile") 2>conftest.er1
23705   ac_status=$?
23706   grep -v '^ *+' conftest.er1 >conftest.err
23707   rm -f conftest.er1
23708   cat conftest.err >&5
23709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710   (exit $ac_status); } && {
23711          test -z "$ac_c_werror_flag" ||
23712          test ! -s conftest.err
23713        } && test -s conftest.$ac_objext; then
23714   ac_cv_type_int64=yes
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719         ac_cv_type_int64=no
23720 fi
23721
23722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23723 fi
23724 { echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
23725 echo "${ECHO_T}$ac_cv_type_int64" >&6; }
23726 if test $ac_cv_type_int64 = yes; then
23727
23728 cat >>confdefs.h <<_ACEOF
23729 #define HAVE_INT64 1
23730 _ACEOF
23731
23732
23733 fi
23734 { echo "$as_me:$LINENO: checking for uint64" >&5
23735 echo $ECHO_N "checking for uint64... $ECHO_C" >&6; }
23736 if test "${ac_cv_type_uint64+set}" = set; then
23737   echo $ECHO_N "(cached) $ECHO_C" >&6
23738 else
23739   cat >conftest.$ac_ext <<_ACEOF
23740 /* confdefs.h.  */
23741 _ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h.  */
23745 #include <stdio.h>
23746 #ifdef HAVE_SUPPORTDEFS_H
23747 #include <SupportDefs.h>
23748 #endif
23749
23750 typedef uint64 ac__type_new_;
23751 int
23752 main ()
23753 {
23754 if ((ac__type_new_ *) 0)
23755   return 0;
23756 if (sizeof (ac__type_new_))
23757   return 0;
23758   ;
23759   return 0;
23760 }
23761 _ACEOF
23762 rm -f conftest.$ac_objext
23763 if { (ac_try="$ac_compile"
23764 case "(($ac_try" in
23765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23766   *) ac_try_echo=$ac_try;;
23767 esac
23768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23769   (eval "$ac_compile") 2>conftest.er1
23770   ac_status=$?
23771   grep -v '^ *+' conftest.er1 >conftest.err
23772   rm -f conftest.er1
23773   cat conftest.err >&5
23774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775   (exit $ac_status); } && {
23776          test -z "$ac_c_werror_flag" ||
23777          test ! -s conftest.err
23778        } && test -s conftest.$ac_objext; then
23779   ac_cv_type_uint64=yes
23780 else
23781   echo "$as_me: failed program was:" >&5
23782 sed 's/^/| /' conftest.$ac_ext >&5
23783
23784         ac_cv_type_uint64=no
23785 fi
23786
23787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23788 fi
23789 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
23790 echo "${ECHO_T}$ac_cv_type_uint64" >&6; }
23791 if test $ac_cv_type_uint64 = yes; then
23792
23793 cat >>confdefs.h <<_ACEOF
23794 #define HAVE_UINT64 1
23795 _ACEOF
23796
23797
23798 fi
23799
23800
23801 # We also check for sig_atomic_t, which *should* be defined per ANSI
23802 # C, but is missing on some old platforms.
23803 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
23804 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
23805 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
23806   echo $ECHO_N "(cached) $ECHO_C" >&6
23807 else
23808   cat >conftest.$ac_ext <<_ACEOF
23809 /* confdefs.h.  */
23810 _ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h.  */
23814 #include <signal.h>
23815
23816 typedef sig_atomic_t ac__type_new_;
23817 int
23818 main ()
23819 {
23820 if ((ac__type_new_ *) 0)
23821   return 0;
23822 if (sizeof (ac__type_new_))
23823   return 0;
23824   ;
23825   return 0;
23826 }
23827 _ACEOF
23828 rm -f conftest.$ac_objext
23829 if { (ac_try="$ac_compile"
23830 case "(($ac_try" in
23831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23832   *) ac_try_echo=$ac_try;;
23833 esac
23834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23835   (eval "$ac_compile") 2>conftest.er1
23836   ac_status=$?
23837   grep -v '^ *+' conftest.er1 >conftest.err
23838   rm -f conftest.er1
23839   cat conftest.err >&5
23840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); } && {
23842          test -z "$ac_c_werror_flag" ||
23843          test ! -s conftest.err
23844        } && test -s conftest.$ac_objext; then
23845   ac_cv_type_sig_atomic_t=yes
23846 else
23847   echo "$as_me: failed program was:" >&5
23848 sed 's/^/| /' conftest.$ac_ext >&5
23849
23850         ac_cv_type_sig_atomic_t=no
23851 fi
23852
23853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23854 fi
23855 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
23856 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
23857 if test $ac_cv_type_sig_atomic_t = yes; then
23858
23859 cat >>confdefs.h <<_ACEOF
23860 #define HAVE_SIG_ATOMIC_T 1
23861 _ACEOF
23862
23863
23864 fi
23865
23866
23867
23868 # If the user did not disable integer datetimes, check that
23869 # there is a working 64-bit integral type to use.
23870 if test x"$USE_INTEGER_DATETIMES" = x"yes" &&
23871    test x"$HAVE_LONG_INT_64" = x"no" &&
23872    test x"$HAVE_LONG_LONG_INT_64" = x"no" &&
23873    test x"$HAVE_INT64" = x"no" ; then
23874   { { echo "$as_me:$LINENO: error:
23875 Integer-based datetime support requires a 64-bit integer type,
23876 but no such type could be found. The --disable-integer-datetimes
23877 configure option can be used to disable integer-based storage
23878 of datetime values." >&5
23879 echo "$as_me: error:
23880 Integer-based datetime support requires a 64-bit integer type,
23881 but no such type could be found. The --disable-integer-datetimes
23882 configure option can be used to disable integer-based storage
23883 of datetime values." >&2;}
23884    { (exit 1); exit 1; }; }
23885 fi
23886
23887
23888 if test "$PORTNAME" != "win32"
23889 then
23890 { echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
23891 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6; }
23892 if test "${pgac_cv_func_posix_signals+set}" = set; then
23893   echo $ECHO_N "(cached) $ECHO_C" >&6
23894 else
23895   cat >conftest.$ac_ext <<_ACEOF
23896 /* confdefs.h.  */
23897 _ACEOF
23898 cat confdefs.h >>conftest.$ac_ext
23899 cat >>conftest.$ac_ext <<_ACEOF
23900 /* end confdefs.h.  */
23901 #include <signal.h>
23902
23903 int
23904 main ()
23905 {
23906 struct sigaction act, oact;
23907 sigemptyset(&act.sa_mask);
23908 act.sa_flags = SA_RESTART;
23909 sigaction(0, &act, &oact);
23910   ;
23911   return 0;
23912 }
23913 _ACEOF
23914 rm -f conftest.$ac_objext conftest$ac_exeext
23915 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } && {
23928          test -z "$ac_c_werror_flag" ||
23929          test ! -s conftest.err
23930        } && test -s conftest$ac_exeext &&
23931        $as_test_x conftest$ac_exeext; then
23932   pgac_cv_func_posix_signals=yes
23933 else
23934   echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937         pgac_cv_func_posix_signals=no
23938 fi
23939
23940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23941       conftest$ac_exeext conftest.$ac_ext
23942 fi
23943 { echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
23944 echo "${ECHO_T}$pgac_cv_func_posix_signals" >&6; }
23945 if test x"$pgac_cv_func_posix_signals" = xyes ; then
23946
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_POSIX_SIGNALS
23949 _ACEOF
23950
23951 fi
23952 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
23953
23954 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
23955   { { echo "$as_me:$LINENO: error:
23956 Thread-safety requires POSIX signals, which are not supported by this
23957 operating system." >&5
23958 echo "$as_me: error:
23959 Thread-safety requires POSIX signals, which are not supported by this
23960 operating system." >&2;}
23961    { (exit 1); exit 1; }; }
23962 fi
23963 fi
23964
23965 if test $ac_cv_func_fseeko = yes; then
23966 # Check whether --enable-largefile was given.
23967 if test "${enable_largefile+set}" = set; then
23968   enableval=$enable_largefile;
23969 fi
23970
23971 if test "$enable_largefile" != no; then
23972
23973   { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
23974 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
23975 if test "${ac_cv_sys_largefile_CC+set}" = set; then
23976   echo $ECHO_N "(cached) $ECHO_C" >&6
23977 else
23978   ac_cv_sys_largefile_CC=no
23979      if test "$GCC" != yes; then
23980        ac_save_CC=$CC
23981        while :; do
23982          # IRIX 6.2 and later do not support large files by default,
23983          # so use the C compiler's -n32 option if that helps.
23984          cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h.  */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h.  */
23990 #include <sys/types.h>
23991  /* Check that off_t can represent 2**63 - 1 correctly.
23992     We can't simply define LARGE_OFF_T to be 9223372036854775807,
23993     since some C++ compilers masquerading as C compilers
23994     incorrectly reject 9223372036854775807.  */
23995 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
23996   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
23997                        && LARGE_OFF_T % 2147483647 == 1)
23998                       ? 1 : -1];
23999 int
24000 main ()
24001 {
24002
24003   ;
24004   return 0;
24005 }
24006 _ACEOF
24007          rm -f conftest.$ac_objext
24008 if { (ac_try="$ac_compile"
24009 case "(($ac_try" in
24010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24011   *) ac_try_echo=$ac_try;;
24012 esac
24013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24014   (eval "$ac_compile") 2>conftest.er1
24015   ac_status=$?
24016   grep -v '^ *+' conftest.er1 >conftest.err
24017   rm -f conftest.er1
24018   cat conftest.err >&5
24019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020   (exit $ac_status); } && {
24021          test -z "$ac_c_werror_flag" ||
24022          test ! -s conftest.err
24023        } && test -s conftest.$ac_objext; then
24024   break
24025 else
24026   echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24028
24029
24030 fi
24031
24032 rm -f core conftest.err conftest.$ac_objext
24033          CC="$CC -n32"
24034          rm -f conftest.$ac_objext
24035 if { (ac_try="$ac_compile"
24036 case "(($ac_try" in
24037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038   *) ac_try_echo=$ac_try;;
24039 esac
24040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24041   (eval "$ac_compile") 2>conftest.er1
24042   ac_status=$?
24043   grep -v '^ *+' conftest.er1 >conftest.err
24044   rm -f conftest.er1
24045   cat conftest.err >&5
24046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047   (exit $ac_status); } && {
24048          test -z "$ac_c_werror_flag" ||
24049          test ! -s conftest.err
24050        } && test -s conftest.$ac_objext; then
24051   ac_cv_sys_largefile_CC=' -n32'; break
24052 else
24053   echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24055
24056
24057 fi
24058
24059 rm -f core conftest.err conftest.$ac_objext
24060          break
24061        done
24062        CC=$ac_save_CC
24063        rm -f conftest.$ac_ext
24064     fi
24065 fi
24066 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
24067 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
24068   if test "$ac_cv_sys_largefile_CC" != no; then
24069     CC=$CC$ac_cv_sys_largefile_CC
24070   fi
24071
24072   { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
24073 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
24074 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
24075   echo $ECHO_N "(cached) $ECHO_C" >&6
24076 else
24077   while :; do
24078   cat >conftest.$ac_ext <<_ACEOF
24079 /* confdefs.h.  */
24080 _ACEOF
24081 cat confdefs.h >>conftest.$ac_ext
24082 cat >>conftest.$ac_ext <<_ACEOF
24083 /* end confdefs.h.  */
24084 #include <sys/types.h>
24085  /* Check that off_t can represent 2**63 - 1 correctly.
24086     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24087     since some C++ compilers masquerading as C compilers
24088     incorrectly reject 9223372036854775807.  */
24089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24090   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24091                        && LARGE_OFF_T % 2147483647 == 1)
24092                       ? 1 : -1];
24093 int
24094 main ()
24095 {
24096
24097   ;
24098   return 0;
24099 }
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (ac_try="$ac_compile"
24103 case "(($ac_try" in
24104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24105   *) ac_try_echo=$ac_try;;
24106 esac
24107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24108   (eval "$ac_compile") 2>conftest.er1
24109   ac_status=$?
24110   grep -v '^ *+' conftest.er1 >conftest.err
24111   rm -f conftest.er1
24112   cat conftest.err >&5
24113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114   (exit $ac_status); } && {
24115          test -z "$ac_c_werror_flag" ||
24116          test ! -s conftest.err
24117        } && test -s conftest.$ac_objext; then
24118   ac_cv_sys_file_offset_bits=no; break
24119 else
24120   echo "$as_me: failed program was:" >&5
24121 sed 's/^/| /' conftest.$ac_ext >&5
24122
24123
24124 fi
24125
24126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24127   cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h.  */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h.  */
24133 #define _FILE_OFFSET_BITS 64
24134 #include <sys/types.h>
24135  /* Check that off_t can represent 2**63 - 1 correctly.
24136     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24137     since some C++ compilers masquerading as C compilers
24138     incorrectly reject 9223372036854775807.  */
24139 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24140   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24141                        && LARGE_OFF_T % 2147483647 == 1)
24142                       ? 1 : -1];
24143 int
24144 main ()
24145 {
24146
24147   ;
24148   return 0;
24149 }
24150 _ACEOF
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155   *) ac_try_echo=$ac_try;;
24156 esac
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158   (eval "$ac_compile") 2>conftest.er1
24159   ac_status=$?
24160   grep -v '^ *+' conftest.er1 >conftest.err
24161   rm -f conftest.er1
24162   cat conftest.err >&5
24163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164   (exit $ac_status); } && {
24165          test -z "$ac_c_werror_flag" ||
24166          test ! -s conftest.err
24167        } && test -s conftest.$ac_objext; then
24168   ac_cv_sys_file_offset_bits=64; break
24169 else
24170   echo "$as_me: failed program was:" >&5
24171 sed 's/^/| /' conftest.$ac_ext >&5
24172
24173
24174 fi
24175
24176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24177   ac_cv_sys_file_offset_bits=unknown
24178   break
24179 done
24180 fi
24181 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
24182 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
24183 case $ac_cv_sys_file_offset_bits in #(
24184   no | unknown) ;;
24185   *)
24186 cat >>confdefs.h <<_ACEOF
24187 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24188 _ACEOF
24189 ;;
24190 esac
24191 rm -f conftest*
24192   if test $ac_cv_sys_file_offset_bits = unknown; then
24193     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
24194 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
24195 if test "${ac_cv_sys_large_files+set}" = set; then
24196   echo $ECHO_N "(cached) $ECHO_C" >&6
24197 else
24198   while :; do
24199   cat >conftest.$ac_ext <<_ACEOF
24200 /* confdefs.h.  */
24201 _ACEOF
24202 cat confdefs.h >>conftest.$ac_ext
24203 cat >>conftest.$ac_ext <<_ACEOF
24204 /* end confdefs.h.  */
24205 #include <sys/types.h>
24206  /* Check that off_t can represent 2**63 - 1 correctly.
24207     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24208     since some C++ compilers masquerading as C compilers
24209     incorrectly reject 9223372036854775807.  */
24210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24211   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24212                        && LARGE_OFF_T % 2147483647 == 1)
24213                       ? 1 : -1];
24214 int
24215 main ()
24216 {
24217
24218   ;
24219   return 0;
24220 }
24221 _ACEOF
24222 rm -f conftest.$ac_objext
24223 if { (ac_try="$ac_compile"
24224 case "(($ac_try" in
24225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24226   *) ac_try_echo=$ac_try;;
24227 esac
24228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24229   (eval "$ac_compile") 2>conftest.er1
24230   ac_status=$?
24231   grep -v '^ *+' conftest.er1 >conftest.err
24232   rm -f conftest.er1
24233   cat conftest.err >&5
24234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235   (exit $ac_status); } && {
24236          test -z "$ac_c_werror_flag" ||
24237          test ! -s conftest.err
24238        } && test -s conftest.$ac_objext; then
24239   ac_cv_sys_large_files=no; break
24240 else
24241   echo "$as_me: failed program was:" >&5
24242 sed 's/^/| /' conftest.$ac_ext >&5
24243
24244
24245 fi
24246
24247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248   cat >conftest.$ac_ext <<_ACEOF
24249 /* confdefs.h.  */
24250 _ACEOF
24251 cat confdefs.h >>conftest.$ac_ext
24252 cat >>conftest.$ac_ext <<_ACEOF
24253 /* end confdefs.h.  */
24254 #define _LARGE_FILES 1
24255 #include <sys/types.h>
24256  /* Check that off_t can represent 2**63 - 1 correctly.
24257     We can't simply define LARGE_OFF_T to be 9223372036854775807,
24258     since some C++ compilers masquerading as C compilers
24259     incorrectly reject 9223372036854775807.  */
24260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
24261   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
24262                        && LARGE_OFF_T % 2147483647 == 1)
24263                       ? 1 : -1];
24264 int
24265 main ()
24266 {
24267
24268   ;
24269   return 0;
24270 }
24271 _ACEOF
24272 rm -f conftest.$ac_objext
24273 if { (ac_try="$ac_compile"
24274 case "(($ac_try" in
24275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24276   *) ac_try_echo=$ac_try;;
24277 esac
24278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24279   (eval "$ac_compile") 2>conftest.er1
24280   ac_status=$?
24281   grep -v '^ *+' conftest.er1 >conftest.err
24282   rm -f conftest.er1
24283   cat conftest.err >&5
24284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285   (exit $ac_status); } && {
24286          test -z "$ac_c_werror_flag" ||
24287          test ! -s conftest.err
24288        } && test -s conftest.$ac_objext; then
24289   ac_cv_sys_large_files=1; break
24290 else
24291   echo "$as_me: failed program was:" >&5
24292 sed 's/^/| /' conftest.$ac_ext >&5
24293
24294
24295 fi
24296
24297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24298   ac_cv_sys_large_files=unknown
24299   break
24300 done
24301 fi
24302 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
24303 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
24304 case $ac_cv_sys_large_files in #(
24305   no | unknown) ;;
24306   *)
24307 cat >>confdefs.h <<_ACEOF
24308 #define _LARGE_FILES $ac_cv_sys_large_files
24309 _ACEOF
24310 ;;
24311 esac
24312 rm -f conftest*
24313   fi
24314 fi
24315
24316 fi
24317
24318 # Check for largefile support (must be after AC_SYS_LARGEFILE)
24319 { echo "$as_me:$LINENO: checking for off_t" >&5
24320 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24321 if test "${ac_cv_type_off_t+set}" = set; then
24322   echo $ECHO_N "(cached) $ECHO_C" >&6
24323 else
24324   cat >conftest.$ac_ext <<_ACEOF
24325 /* confdefs.h.  */
24326 _ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h.  */
24330 $ac_includes_default
24331 typedef off_t ac__type_new_;
24332 int
24333 main ()
24334 {
24335 if ((ac__type_new_ *) 0)
24336   return 0;
24337 if (sizeof (ac__type_new_))
24338   return 0;
24339   ;
24340   return 0;
24341 }
24342 _ACEOF
24343 rm -f conftest.$ac_objext
24344 if { (ac_try="$ac_compile"
24345 case "(($ac_try" in
24346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347   *) ac_try_echo=$ac_try;;
24348 esac
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350   (eval "$ac_compile") 2>conftest.er1
24351   ac_status=$?
24352   grep -v '^ *+' conftest.er1 >conftest.err
24353   rm -f conftest.er1
24354   cat conftest.err >&5
24355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356   (exit $ac_status); } && {
24357          test -z "$ac_c_werror_flag" ||
24358          test ! -s conftest.err
24359        } && test -s conftest.$ac_objext; then
24360   ac_cv_type_off_t=yes
24361 else
24362   echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365         ac_cv_type_off_t=no
24366 fi
24367
24368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24369 fi
24370 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24371 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24372
24373 # The cast to long int works around a bug in the HP C Compiler
24374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24376 # This bug is HP SR number 8606223364.
24377 { echo "$as_me:$LINENO: checking size of off_t" >&5
24378 echo $ECHO_N "checking size of off_t... $ECHO_C" >&6; }
24379 if test "${ac_cv_sizeof_off_t+set}" = set; then
24380   echo $ECHO_N "(cached) $ECHO_C" >&6
24381 else
24382   if test "$cross_compiling" = yes; then
24383   # Depending upon the size, compute the lo and hi bounds.
24384 cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h.  */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h.  */
24390 $ac_includes_default
24391    typedef off_t ac__type_sizeof_;
24392 int
24393 main ()
24394 {
24395 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24396 test_array [0] = 0
24397
24398   ;
24399   return 0;
24400 }
24401 _ACEOF
24402 rm -f conftest.$ac_objext
24403 if { (ac_try="$ac_compile"
24404 case "(($ac_try" in
24405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24406   *) ac_try_echo=$ac_try;;
24407 esac
24408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24409   (eval "$ac_compile") 2>conftest.er1
24410   ac_status=$?
24411   grep -v '^ *+' conftest.er1 >conftest.err
24412   rm -f conftest.er1
24413   cat conftest.err >&5
24414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415   (exit $ac_status); } && {
24416          test -z "$ac_c_werror_flag" ||
24417          test ! -s conftest.err
24418        } && test -s conftest.$ac_objext; then
24419   ac_lo=0 ac_mid=0
24420   while :; do
24421     cat >conftest.$ac_ext <<_ACEOF
24422 /* confdefs.h.  */
24423 _ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h.  */
24427 $ac_includes_default
24428    typedef off_t ac__type_sizeof_;
24429 int
24430 main ()
24431 {
24432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24433 test_array [0] = 0
24434
24435   ;
24436   return 0;
24437 }
24438 _ACEOF
24439 rm -f conftest.$ac_objext
24440 if { (ac_try="$ac_compile"
24441 case "(($ac_try" in
24442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443   *) ac_try_echo=$ac_try;;
24444 esac
24445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446   (eval "$ac_compile") 2>conftest.er1
24447   ac_status=$?
24448   grep -v '^ *+' conftest.er1 >conftest.err
24449   rm -f conftest.er1
24450   cat conftest.err >&5
24451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452   (exit $ac_status); } && {
24453          test -z "$ac_c_werror_flag" ||
24454          test ! -s conftest.err
24455        } && test -s conftest.$ac_objext; then
24456   ac_hi=$ac_mid; break
24457 else
24458   echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.$ac_ext >&5
24460
24461         ac_lo=`expr $ac_mid + 1`
24462                         if test $ac_lo -le $ac_mid; then
24463                           ac_lo= ac_hi=
24464                           break
24465                         fi
24466                         ac_mid=`expr 2 '*' $ac_mid + 1`
24467 fi
24468
24469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24470   done
24471 else
24472   echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24474
24475         cat >conftest.$ac_ext <<_ACEOF
24476 /* confdefs.h.  */
24477 _ACEOF
24478 cat confdefs.h >>conftest.$ac_ext
24479 cat >>conftest.$ac_ext <<_ACEOF
24480 /* end confdefs.h.  */
24481 $ac_includes_default
24482    typedef off_t ac__type_sizeof_;
24483 int
24484 main ()
24485 {
24486 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24487 test_array [0] = 0
24488
24489   ;
24490   return 0;
24491 }
24492 _ACEOF
24493 rm -f conftest.$ac_objext
24494 if { (ac_try="$ac_compile"
24495 case "(($ac_try" in
24496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24497   *) ac_try_echo=$ac_try;;
24498 esac
24499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24500   (eval "$ac_compile") 2>conftest.er1
24501   ac_status=$?
24502   grep -v '^ *+' conftest.er1 >conftest.err
24503   rm -f conftest.er1
24504   cat conftest.err >&5
24505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506   (exit $ac_status); } && {
24507          test -z "$ac_c_werror_flag" ||
24508          test ! -s conftest.err
24509        } && test -s conftest.$ac_objext; then
24510   ac_hi=-1 ac_mid=-1
24511   while :; do
24512     cat >conftest.$ac_ext <<_ACEOF
24513 /* confdefs.h.  */
24514 _ACEOF
24515 cat confdefs.h >>conftest.$ac_ext
24516 cat >>conftest.$ac_ext <<_ACEOF
24517 /* end confdefs.h.  */
24518 $ac_includes_default
24519    typedef off_t ac__type_sizeof_;
24520 int
24521 main ()
24522 {
24523 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24524 test_array [0] = 0
24525
24526   ;
24527   return 0;
24528 }
24529 _ACEOF
24530 rm -f conftest.$ac_objext
24531 if { (ac_try="$ac_compile"
24532 case "(($ac_try" in
24533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24534   *) ac_try_echo=$ac_try;;
24535 esac
24536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24537   (eval "$ac_compile") 2>conftest.er1
24538   ac_status=$?
24539   grep -v '^ *+' conftest.er1 >conftest.err
24540   rm -f conftest.er1
24541   cat conftest.err >&5
24542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543   (exit $ac_status); } && {
24544          test -z "$ac_c_werror_flag" ||
24545          test ! -s conftest.err
24546        } && test -s conftest.$ac_objext; then
24547   ac_lo=$ac_mid; break
24548 else
24549   echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552         ac_hi=`expr '(' $ac_mid ')' - 1`
24553                         if test $ac_mid -le $ac_hi; then
24554                           ac_lo= ac_hi=
24555                           break
24556                         fi
24557                         ac_mid=`expr 2 '*' $ac_mid`
24558 fi
24559
24560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24561   done
24562 else
24563   echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566         ac_lo= ac_hi=
24567 fi
24568
24569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24570 fi
24571
24572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24573 # Binary search between lo and hi bounds.
24574 while test "x$ac_lo" != "x$ac_hi"; do
24575   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24576   cat >conftest.$ac_ext <<_ACEOF
24577 /* confdefs.h.  */
24578 _ACEOF
24579 cat confdefs.h >>conftest.$ac_ext
24580 cat >>conftest.$ac_ext <<_ACEOF
24581 /* end confdefs.h.  */
24582 $ac_includes_default
24583    typedef off_t ac__type_sizeof_;
24584 int
24585 main ()
24586 {
24587 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24588 test_array [0] = 0
24589
24590   ;
24591   return 0;
24592 }
24593 _ACEOF
24594 rm -f conftest.$ac_objext
24595 if { (ac_try="$ac_compile"
24596 case "(($ac_try" in
24597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24598   *) ac_try_echo=$ac_try;;
24599 esac
24600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24601   (eval "$ac_compile") 2>conftest.er1
24602   ac_status=$?
24603   grep -v '^ *+' conftest.er1 >conftest.err
24604   rm -f conftest.er1
24605   cat conftest.err >&5
24606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24607   (exit $ac_status); } && {
24608          test -z "$ac_c_werror_flag" ||
24609          test ! -s conftest.err
24610        } && test -s conftest.$ac_objext; then
24611   ac_hi=$ac_mid
24612 else
24613   echo "$as_me: failed program was:" >&5
24614 sed 's/^/| /' conftest.$ac_ext >&5
24615
24616         ac_lo=`expr '(' $ac_mid ')' + 1`
24617 fi
24618
24619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24620 done
24621 case $ac_lo in
24622 ?*) ac_cv_sizeof_off_t=$ac_lo;;
24623 '') if test "$ac_cv_type_off_t" = yes; then
24624      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24625 See \`config.log' for more details." >&5
24626 echo "$as_me: error: cannot compute sizeof (off_t)
24627 See \`config.log' for more details." >&2;}
24628    { (exit 77); exit 77; }; }
24629    else
24630      ac_cv_sizeof_off_t=0
24631    fi ;;
24632 esac
24633 else
24634   cat >conftest.$ac_ext <<_ACEOF
24635 /* confdefs.h.  */
24636 _ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h.  */
24640 $ac_includes_default
24641    typedef off_t ac__type_sizeof_;
24642 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24643 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24644 #include <stdio.h>
24645 #include <stdlib.h>
24646 int
24647 main ()
24648 {
24649
24650   FILE *f = fopen ("conftest.val", "w");
24651   if (! f)
24652     return 1;
24653   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24654     {
24655       long int i = longval ();
24656       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24657         return 1;
24658       fprintf (f, "%ld\n", i);
24659     }
24660   else
24661     {
24662       unsigned long int i = ulongval ();
24663       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24664         return 1;
24665       fprintf (f, "%lu\n", i);
24666     }
24667   return ferror (f) || fclose (f) != 0;
24668
24669   ;
24670   return 0;
24671 }
24672 _ACEOF
24673 rm -f conftest$ac_exeext
24674 if { (ac_try="$ac_link"
24675 case "(($ac_try" in
24676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24677   *) ac_try_echo=$ac_try;;
24678 esac
24679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24680   (eval "$ac_link") 2>&5
24681   ac_status=$?
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24684   { (case "(($ac_try" in
24685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24686   *) ac_try_echo=$ac_try;;
24687 esac
24688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24689   (eval "$ac_try") 2>&5
24690   ac_status=$?
24691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692   (exit $ac_status); }; }; then
24693   ac_cv_sizeof_off_t=`cat conftest.val`
24694 else
24695   echo "$as_me: program exited with status $ac_status" >&5
24696 echo "$as_me: failed program was:" >&5
24697 sed 's/^/| /' conftest.$ac_ext >&5
24698
24699 ( exit $ac_status )
24700 if test "$ac_cv_type_off_t" = yes; then
24701      { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
24702 See \`config.log' for more details." >&5
24703 echo "$as_me: error: cannot compute sizeof (off_t)
24704 See \`config.log' for more details." >&2;}
24705    { (exit 77); exit 77; }; }
24706    else
24707      ac_cv_sizeof_off_t=0
24708    fi
24709 fi
24710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24711 fi
24712 rm -f conftest.val
24713 fi
24714 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
24715 echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6; }
24716
24717
24718
24719 cat >>confdefs.h <<_ACEOF
24720 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24721 _ACEOF
24722
24723
24724
24725 # If we don't have largefile support, can't handle segsize >= 2GB.
24726 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
24727    { { echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
24728 echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
24729    { (exit 1); exit 1; }; }
24730 fi
24731
24732 # SunOS doesn't handle negative byte comparisons properly with +/- return
24733 { echo "$as_me:$LINENO: checking for working memcmp" >&5
24734 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
24735 if test "${ac_cv_func_memcmp_working+set}" = set; then
24736   echo $ECHO_N "(cached) $ECHO_C" >&6
24737 else
24738   if test "$cross_compiling" = yes; then
24739   ac_cv_func_memcmp_working=no
24740 else
24741   cat >conftest.$ac_ext <<_ACEOF
24742 /* confdefs.h.  */
24743 _ACEOF
24744 cat confdefs.h >>conftest.$ac_ext
24745 cat >>conftest.$ac_ext <<_ACEOF
24746 /* end confdefs.h.  */
24747 $ac_includes_default
24748 int
24749 main ()
24750 {
24751
24752   /* Some versions of memcmp are not 8-bit clean.  */
24753   char c0 = '\100', c1 = '\200', c2 = '\201';
24754   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24755     return 1;
24756
24757   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24758      or more and with at least one buffer not starting on a 4-byte boundary.
24759      William Lewis provided this test program.   */
24760   {
24761     char foo[21];
24762     char bar[21];
24763     int i;
24764     for (i = 0; i < 4; i++)
24765       {
24766         char *a = foo + i;
24767         char *b = bar + i;
24768         strcpy (a, "--------01111111");
24769         strcpy (b, "--------10000000");
24770         if (memcmp (a, b, 16) >= 0)
24771           return 1;
24772       }
24773     return 0;
24774   }
24775
24776   ;
24777   return 0;
24778 }
24779 _ACEOF
24780 rm -f conftest$ac_exeext
24781 if { (ac_try="$ac_link"
24782 case "(($ac_try" in
24783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784   *) ac_try_echo=$ac_try;;
24785 esac
24786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24787   (eval "$ac_link") 2>&5
24788   ac_status=$?
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24791   { (case "(($ac_try" in
24792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793   *) ac_try_echo=$ac_try;;
24794 esac
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796   (eval "$ac_try") 2>&5
24797   ac_status=$?
24798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24799   (exit $ac_status); }; }; then
24800   ac_cv_func_memcmp_working=yes
24801 else
24802   echo "$as_me: program exited with status $ac_status" >&5
24803 echo "$as_me: failed program was:" >&5
24804 sed 's/^/| /' conftest.$ac_ext >&5
24805
24806 ( exit $ac_status )
24807 ac_cv_func_memcmp_working=no
24808 fi
24809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24810 fi
24811
24812
24813 fi
24814 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
24815 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
24816 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24817   *" memcmp.$ac_objext "* ) ;;
24818   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24819  ;;
24820 esac
24821
24822
24823
24824
24825 # Select semaphore implementation type.
24826 if test "$PORTNAME" != "win32"; then
24827   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
24828
24829 cat >>confdefs.h <<\_ACEOF
24830 #define USE_NAMED_POSIX_SEMAPHORES 1
24831 _ACEOF
24832
24833     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24834   else
24835     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
24836
24837 cat >>confdefs.h <<\_ACEOF
24838 #define USE_UNNAMED_POSIX_SEMAPHORES 1
24839 _ACEOF
24840
24841       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
24842     else
24843
24844 cat >>confdefs.h <<\_ACEOF
24845 #define USE_SYSV_SEMAPHORES 1
24846 _ACEOF
24847
24848       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
24849     fi
24850   fi
24851 else
24852
24853 cat >>confdefs.h <<\_ACEOF
24854 #define USE_WIN32_SEMAPHORES 1
24855 _ACEOF
24856
24857   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
24858 fi
24859
24860
24861 # Select shared-memory implementation type.
24862 if test "$PORTNAME" != "win32"; then
24863
24864 cat >>confdefs.h <<\_ACEOF
24865 #define USE_SYSV_SHARED_MEMORY 1
24866 _ACEOF
24867
24868   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
24869 else
24870
24871 cat >>confdefs.h <<\_ACEOF
24872 #define USE_WIN32_SHARED_MEMORY 1
24873 _ACEOF
24874
24875   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
24876 fi
24877
24878 # If not set in template file, set bytes to use libc memset()
24879 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
24880   MEMSET_LOOP_LIMIT=1024
24881 fi
24882
24883 cat >>confdefs.h <<_ACEOF
24884 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
24885 _ACEOF
24886
24887
24888
24889 if test "$enable_nls" = yes ; then
24890
24891   { echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
24892 echo $ECHO_N "checking for library containing bind_textdomain_codeset... $ECHO_C" >&6; }
24893 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24894   echo $ECHO_N "(cached) $ECHO_C" >&6
24895 else
24896   ac_func_search_save_LIBS=$LIBS
24897 cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h.  */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h.  */
24903
24904 /* Override any GCC internal prototype to avoid an error.
24905    Use char because int might match the return type of a GCC
24906    builtin and then its argument prototype would still apply.  */
24907 #ifdef __cplusplus
24908 extern "C"
24909 #endif
24910 char bind_textdomain_codeset ();
24911 int
24912 main ()
24913 {
24914 return bind_textdomain_codeset ();
24915   ;
24916   return 0;
24917 }
24918 _ACEOF
24919 for ac_lib in '' intl; do
24920   if test -z "$ac_lib"; then
24921     ac_res="none required"
24922   else
24923     ac_res=-l$ac_lib
24924     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24925   fi
24926   rm -f conftest.$ac_objext conftest$ac_exeext
24927 if { (ac_try="$ac_link"
24928 case "(($ac_try" in
24929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930   *) ac_try_echo=$ac_try;;
24931 esac
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933   (eval "$ac_link") 2>conftest.er1
24934   ac_status=$?
24935   grep -v '^ *+' conftest.er1 >conftest.err
24936   rm -f conftest.er1
24937   cat conftest.err >&5
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); } && {
24940          test -z "$ac_c_werror_flag" ||
24941          test ! -s conftest.err
24942        } && test -s conftest$ac_exeext &&
24943        $as_test_x conftest$ac_exeext; then
24944   ac_cv_search_bind_textdomain_codeset=$ac_res
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949
24950 fi
24951
24952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24953       conftest$ac_exeext
24954   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24955   break
24956 fi
24957 done
24958 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
24959   :
24960 else
24961   ac_cv_search_bind_textdomain_codeset=no
24962 fi
24963 rm conftest.$ac_ext
24964 LIBS=$ac_func_search_save_LIBS
24965 fi
24966 { echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
24967 echo "${ECHO_T}$ac_cv_search_bind_textdomain_codeset" >&6; }
24968 ac_res=$ac_cv_search_bind_textdomain_codeset
24969 if test "$ac_res" != no; then
24970   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24971
24972 else
24973   { { echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
24974 echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
24975    { (exit 1); exit 1; }; }
24976 fi
24977
24978   if test "${ac_cv_header_libintl_h+set}" = set; then
24979   { echo "$as_me:$LINENO: checking for libintl.h" >&5
24980 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
24981 if test "${ac_cv_header_libintl_h+set}" = set; then
24982   echo $ECHO_N "(cached) $ECHO_C" >&6
24983 fi
24984 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
24985 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
24986 else
24987   # Is the header compilable?
24988 { echo "$as_me:$LINENO: checking libintl.h usability" >&5
24989 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6; }
24990 cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h.  */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h.  */
24996 $ac_includes_default
24997 #include <libintl.h>
24998 _ACEOF
24999 rm -f conftest.$ac_objext
25000 if { (ac_try="$ac_compile"
25001 case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_compile") 2>conftest.er1
25007   ac_status=$?
25008   grep -v '^ *+' conftest.er1 >conftest.err
25009   rm -f conftest.er1
25010   cat conftest.err >&5
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); } && {
25013          test -z "$ac_c_werror_flag" ||
25014          test ! -s conftest.err
25015        } && test -s conftest.$ac_objext; then
25016   ac_header_compiler=yes
25017 else
25018   echo "$as_me: failed program was:" >&5
25019 sed 's/^/| /' conftest.$ac_ext >&5
25020
25021         ac_header_compiler=no
25022 fi
25023
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25026 echo "${ECHO_T}$ac_header_compiler" >&6; }
25027
25028 # Is the header present?
25029 { echo "$as_me:$LINENO: checking libintl.h presence" >&5
25030 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6; }
25031 cat >conftest.$ac_ext <<_ACEOF
25032 /* confdefs.h.  */
25033 _ACEOF
25034 cat confdefs.h >>conftest.$ac_ext
25035 cat >>conftest.$ac_ext <<_ACEOF
25036 /* end confdefs.h.  */
25037 #include <libintl.h>
25038 _ACEOF
25039 if { (ac_try="$ac_cpp conftest.$ac_ext"
25040 case "(($ac_try" in
25041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042   *) ac_try_echo=$ac_try;;
25043 esac
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } >/dev/null && {
25052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25053          test ! -s conftest.err
25054        }; then
25055   ac_header_preproc=yes
25056 else
25057   echo "$as_me: failed program was:" >&5
25058 sed 's/^/| /' conftest.$ac_ext >&5
25059
25060   ac_header_preproc=no
25061 fi
25062
25063 rm -f conftest.err conftest.$ac_ext
25064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25065 echo "${ECHO_T}$ac_header_preproc" >&6; }
25066
25067 # So?  What about this header?
25068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25069   yes:no: )
25070     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25071 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25072     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
25073 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
25074     ac_header_preproc=yes
25075     ;;
25076   no:yes:* )
25077     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
25078 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
25079     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
25080 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
25081     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
25082 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
25083     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
25084 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25085     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
25086 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
25087     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
25088 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
25089     ( cat <<\_ASBOX
25090 ## ---------------------------------------- ##
25091 ## Report this to pgsql-bugs@postgresql.org ##
25092 ## ---------------------------------------- ##
25093 _ASBOX
25094      ) | sed "s/^/$as_me: WARNING:     /" >&2
25095     ;;
25096 esac
25097 { echo "$as_me:$LINENO: checking for libintl.h" >&5
25098 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6; }
25099 if test "${ac_cv_header_libintl_h+set}" = set; then
25100   echo $ECHO_N "(cached) $ECHO_C" >&6
25101 else
25102   ac_cv_header_libintl_h=$ac_header_preproc
25103 fi
25104 { echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
25105 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6; }
25106
25107 fi
25108 if test $ac_cv_header_libintl_h = yes; then
25109   :
25110 else
25111   { { echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
25112 echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
25113    { (exit 1); exit 1; }; }
25114 fi
25115
25116
25117   for ac_prog in msgfmt
25118 do
25119   # Extract the first word of "$ac_prog", so it can be a program name with args.
25120 set dummy $ac_prog; ac_word=$2
25121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25123 if test "${ac_cv_prog_MSGFMT+set}" = set; then
25124   echo $ECHO_N "(cached) $ECHO_C" >&6
25125 else
25126   if test -n "$MSGFMT"; then
25127   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
25128 else
25129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25130 for as_dir in $PATH
25131 do
25132   IFS=$as_save_IFS
25133   test -z "$as_dir" && as_dir=.
25134   for ac_exec_ext in '' $ac_executable_extensions; do
25135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25136     ac_cv_prog_MSGFMT="$ac_prog"
25137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25138     break 2
25139   fi
25140 done
25141 done
25142 IFS=$as_save_IFS
25143
25144 fi
25145 fi
25146 MSGFMT=$ac_cv_prog_MSGFMT
25147 if test -n "$MSGFMT"; then
25148   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
25149 echo "${ECHO_T}$MSGFMT" >&6; }
25150 else
25151   { echo "$as_me:$LINENO: result: no" >&5
25152 echo "${ECHO_T}no" >&6; }
25153 fi
25154
25155
25156   test -n "$MSGFMT" && break
25157 done
25158
25159   if test -z "$MSGFMT"; then
25160     { { echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
25161 echo "$as_me: error: msgfmt is required for NLS" >&2;}
25162    { (exit 1); exit 1; }; }
25163   fi
25164   for ac_prog in msgmerge
25165 do
25166   # Extract the first word of "$ac_prog", so it can be a program name with args.
25167 set dummy $ac_prog; ac_word=$2
25168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25170 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
25171   echo $ECHO_N "(cached) $ECHO_C" >&6
25172 else
25173   if test -n "$MSGMERGE"; then
25174   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
25175 else
25176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25177 for as_dir in $PATH
25178 do
25179   IFS=$as_save_IFS
25180   test -z "$as_dir" && as_dir=.
25181   for ac_exec_ext in '' $ac_executable_extensions; do
25182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25183     ac_cv_prog_MSGMERGE="$ac_prog"
25184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25185     break 2
25186   fi
25187 done
25188 done
25189 IFS=$as_save_IFS
25190
25191 fi
25192 fi
25193 MSGMERGE=$ac_cv_prog_MSGMERGE
25194 if test -n "$MSGMERGE"; then
25195   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
25196 echo "${ECHO_T}$MSGMERGE" >&6; }
25197 else
25198   { echo "$as_me:$LINENO: result: no" >&5
25199 echo "${ECHO_T}no" >&6; }
25200 fi
25201
25202
25203   test -n "$MSGMERGE" && break
25204 done
25205
25206   for ac_prog in xgettext
25207 do
25208   # Extract the first word of "$ac_prog", so it can be a program name with args.
25209 set dummy $ac_prog; ac_word=$2
25210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25212 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
25213   echo $ECHO_N "(cached) $ECHO_C" >&6
25214 else
25215   if test -n "$XGETTEXT"; then
25216   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
25217 else
25218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25219 for as_dir in $PATH
25220 do
25221   IFS=$as_save_IFS
25222   test -z "$as_dir" && as_dir=.
25223   for ac_exec_ext in '' $ac_executable_extensions; do
25224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25225     ac_cv_prog_XGETTEXT="$ac_prog"
25226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25227     break 2
25228   fi
25229 done
25230 done
25231 IFS=$as_save_IFS
25232
25233 fi
25234 fi
25235 XGETTEXT=$ac_cv_prog_XGETTEXT
25236 if test -n "$XGETTEXT"; then
25237   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
25238 echo "${ECHO_T}$XGETTEXT" >&6; }
25239 else
25240   { echo "$as_me:$LINENO: result: no" >&5
25241 echo "${ECHO_T}no" >&6; }
25242 fi
25243
25244
25245   test -n "$XGETTEXT" && break
25246 done
25247
25248
25249 fi
25250
25251 # Check for Tcl configuration script tclConfig.sh
25252 if test "$with_tcl" = yes; then
25253     for ac_prog in tclsh tcl tclsh8.5 tclsh8.4 tclsh8.3
25254 do
25255   # Extract the first word of "$ac_prog", so it can be a program name with args.
25256 set dummy $ac_prog; ac_word=$2
25257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25259 if test "${ac_cv_path_TCLSH+set}" = set; then
25260   echo $ECHO_N "(cached) $ECHO_C" >&6
25261 else
25262   case $TCLSH in
25263   [\\/]* | ?:[\\/]*)
25264   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
25265   ;;
25266   *)
25267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25268 for as_dir in $PATH
25269 do
25270   IFS=$as_save_IFS
25271   test -z "$as_dir" && as_dir=.
25272   for ac_exec_ext in '' $ac_executable_extensions; do
25273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25274     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
25275     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25276     break 2
25277   fi
25278 done
25279 done
25280 IFS=$as_save_IFS
25281
25282   ;;
25283 esac
25284 fi
25285 TCLSH=$ac_cv_path_TCLSH
25286 if test -n "$TCLSH"; then
25287   { echo "$as_me:$LINENO: result: $TCLSH" >&5
25288 echo "${ECHO_T}$TCLSH" >&6; }
25289 else
25290   { echo "$as_me:$LINENO: result: no" >&5
25291 echo "${ECHO_T}no" >&6; }
25292 fi
25293
25294
25295   test -n "$TCLSH" && break
25296 done
25297
25298 if test x"$TCLSH" = x""; then
25299   { { echo "$as_me:$LINENO: error: Tcl shell not found" >&5
25300 echo "$as_me: error: Tcl shell not found" >&2;}
25301    { (exit 1); exit 1; }; }
25302 fi
25303
25304 { echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
25305 echo $ECHO_N "checking for tclConfig.sh... $ECHO_C" >&6; }
25306 # Let user override test
25307 if test -z "$TCL_CONFIG_SH"; then
25308     pgac_test_dirs="$with_tclconfig"
25309
25310     set X $pgac_test_dirs; shift
25311     if test $# -eq 0; then
25312         test -z "$TCLSH" && { { echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
25313 echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
25314    { (exit 1); exit 1; }; }
25315         set X `echo 'puts $auto_path' | $TCLSH`; shift
25316     fi
25317
25318     for pgac_dir do
25319         if test -r "$pgac_dir/tclConfig.sh"; then
25320             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
25321             break
25322         fi
25323     done
25324 fi
25325
25326 if test -z "$TCL_CONFIG_SH"; then
25327     { echo "$as_me:$LINENO: result: no" >&5
25328 echo "${ECHO_T}no" >&6; }
25329     { { echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
25330 echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
25331    { (exit 1); exit 1; }; }
25332 else
25333     { echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
25334 echo "${ECHO_T}$TCL_CONFIG_SH" >&6; }
25335 fi
25336
25337
25338
25339     . "$TCL_CONFIG_SH"
25340 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
25341 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
25342 eval TCL_LIBS=\"$TCL_LIBS\"
25343 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
25344 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
25345
25346         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
25347     ac_save_CPPFLAGS=$CPPFLAGS
25348     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
25349     if test "${ac_cv_header_tcl_h+set}" = set; then
25350   { echo "$as_me:$LINENO: checking for tcl.h" >&5
25351 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25352 if test "${ac_cv_header_tcl_h+set}" = set; then
25353   echo $ECHO_N "(cached) $ECHO_C" >&6
25354 fi
25355 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25356 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25357 else
25358   # Is the header compilable?
25359 { echo "$as_me:$LINENO: checking tcl.h usability" >&5
25360 echo $ECHO_N "checking tcl.h usability... $ECHO_C" >&6; }
25361 cat >conftest.$ac_ext <<_ACEOF
25362 /* confdefs.h.  */
25363 _ACEOF
25364 cat confdefs.h >>conftest.$ac_ext
25365 cat >>conftest.$ac_ext <<_ACEOF
25366 /* end confdefs.h.  */
25367 $ac_includes_default
25368 #include <tcl.h>
25369 _ACEOF
25370 rm -f conftest.$ac_objext
25371 if { (ac_try="$ac_compile"
25372 case "(($ac_try" in
25373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25374   *) ac_try_echo=$ac_try;;
25375 esac
25376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25377   (eval "$ac_compile") 2>conftest.er1
25378   ac_status=$?
25379   grep -v '^ *+' conftest.er1 >conftest.err
25380   rm -f conftest.er1
25381   cat conftest.err >&5
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); } && {
25384          test -z "$ac_c_werror_flag" ||
25385          test ! -s conftest.err
25386        } && test -s conftest.$ac_objext; then
25387   ac_header_compiler=yes
25388 else
25389   echo "$as_me: failed program was:" >&5
25390 sed 's/^/| /' conftest.$ac_ext >&5
25391
25392         ac_header_compiler=no
25393 fi
25394
25395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25397 echo "${ECHO_T}$ac_header_compiler" >&6; }
25398
25399 # Is the header present?
25400 { echo "$as_me:$LINENO: checking tcl.h presence" >&5
25401 echo $ECHO_N "checking tcl.h presence... $ECHO_C" >&6; }
25402 cat >conftest.$ac_ext <<_ACEOF
25403 /* confdefs.h.  */
25404 _ACEOF
25405 cat confdefs.h >>conftest.$ac_ext
25406 cat >>conftest.$ac_ext <<_ACEOF
25407 /* end confdefs.h.  */
25408 #include <tcl.h>
25409 _ACEOF
25410 if { (ac_try="$ac_cpp conftest.$ac_ext"
25411 case "(($ac_try" in
25412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413   *) ac_try_echo=$ac_try;;
25414 esac
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25417   ac_status=$?
25418   grep -v '^ *+' conftest.er1 >conftest.err
25419   rm -f conftest.er1
25420   cat conftest.err >&5
25421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25422   (exit $ac_status); } >/dev/null && {
25423          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25424          test ! -s conftest.err
25425        }; then
25426   ac_header_preproc=yes
25427 else
25428   echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431   ac_header_preproc=no
25432 fi
25433
25434 rm -f conftest.err conftest.$ac_ext
25435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25436 echo "${ECHO_T}$ac_header_preproc" >&6; }
25437
25438 # So?  What about this header?
25439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25440   yes:no: )
25441     { echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25442 echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25443     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
25444 echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
25445     ac_header_preproc=yes
25446     ;;
25447   no:yes:* )
25448     { echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
25449 echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
25450     { echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
25451 echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
25452     { echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
25453 echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
25454     { echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
25455 echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
25456     { echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
25457 echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
25458     { echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
25459 echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
25460     ( cat <<\_ASBOX
25461 ## ---------------------------------------- ##
25462 ## Report this to pgsql-bugs@postgresql.org ##
25463 ## ---------------------------------------- ##
25464 _ASBOX
25465      ) | sed "s/^/$as_me: WARNING:     /" >&2
25466     ;;
25467 esac
25468 { echo "$as_me:$LINENO: checking for tcl.h" >&5
25469 echo $ECHO_N "checking for tcl.h... $ECHO_C" >&6; }
25470 if test "${ac_cv_header_tcl_h+set}" = set; then
25471   echo $ECHO_N "(cached) $ECHO_C" >&6
25472 else
25473   ac_cv_header_tcl_h=$ac_header_preproc
25474 fi
25475 { echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
25476 echo "${ECHO_T}$ac_cv_header_tcl_h" >&6; }
25477
25478 fi
25479 if test $ac_cv_header_tcl_h = yes; then
25480   :
25481 else
25482   { { echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
25483 echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
25484    { (exit 1); exit 1; }; }
25485 fi
25486
25487
25488     CPPFLAGS=$ac_save_CPPFLAGS
25489 fi
25490
25491 #
25492 # Check for DocBook and tools
25493 #
25494 for ac_prog in onsgmls nsgmls
25495 do
25496   # Extract the first word of "$ac_prog", so it can be a program name with args.
25497 set dummy $ac_prog; ac_word=$2
25498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25500 if test "${ac_cv_prog_NSGMLS+set}" = set; then
25501   echo $ECHO_N "(cached) $ECHO_C" >&6
25502 else
25503   if test -n "$NSGMLS"; then
25504   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
25505 else
25506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25507 for as_dir in $PATH
25508 do
25509   IFS=$as_save_IFS
25510   test -z "$as_dir" && as_dir=.
25511   for ac_exec_ext in '' $ac_executable_extensions; do
25512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25513     ac_cv_prog_NSGMLS="$ac_prog"
25514     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25515     break 2
25516   fi
25517 done
25518 done
25519 IFS=$as_save_IFS
25520
25521 fi
25522 fi
25523 NSGMLS=$ac_cv_prog_NSGMLS
25524 if test -n "$NSGMLS"; then
25525   { echo "$as_me:$LINENO: result: $NSGMLS" >&5
25526 echo "${ECHO_T}$NSGMLS" >&6; }
25527 else
25528   { echo "$as_me:$LINENO: result: no" >&5
25529 echo "${ECHO_T}no" >&6; }
25530 fi
25531
25532
25533   test -n "$NSGMLS" && break
25534 done
25535
25536 for ac_prog in openjade jade
25537 do
25538   # Extract the first word of "$ac_prog", so it can be a program name with args.
25539 set dummy $ac_prog; ac_word=$2
25540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25542 if test "${ac_cv_prog_JADE+set}" = set; then
25543   echo $ECHO_N "(cached) $ECHO_C" >&6
25544 else
25545   if test -n "$JADE"; then
25546   ac_cv_prog_JADE="$JADE" # Let the user override the test.
25547 else
25548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25549 for as_dir in $PATH
25550 do
25551   IFS=$as_save_IFS
25552   test -z "$as_dir" && as_dir=.
25553   for ac_exec_ext in '' $ac_executable_extensions; do
25554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25555     ac_cv_prog_JADE="$ac_prog"
25556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25557     break 2
25558   fi
25559 done
25560 done
25561 IFS=$as_save_IFS
25562
25563 fi
25564 fi
25565 JADE=$ac_cv_prog_JADE
25566 if test -n "$JADE"; then
25567   { echo "$as_me:$LINENO: result: $JADE" >&5
25568 echo "${ECHO_T}$JADE" >&6; }
25569 else
25570   { echo "$as_me:$LINENO: result: no" >&5
25571 echo "${ECHO_T}no" >&6; }
25572 fi
25573
25574
25575   test -n "$JADE" && break
25576 done
25577
25578
25579 { echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
25580 echo $ECHO_N "checking for DocBook V4.2... $ECHO_C" >&6; }
25581 if test "${pgac_cv_check_docbook+set}" = set; then
25582   echo $ECHO_N "(cached) $ECHO_C" >&6
25583 else
25584   cat >conftest.sgml <<EOF
25585 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
25586 <book>
25587  <title>test</title>
25588  <chapter>
25589   <title>random</title>
25590    <sect1>
25591     <title>testsect</title>
25592     <para>text</para>
25593   </sect1>
25594  </chapter>
25595 </book>
25596 EOF
25597
25598 pgac_cv_check_docbook=no
25599
25600 if test -n "$NSGMLS"; then
25601   $NSGMLS -s conftest.sgml 1>&5 2>&1
25602   if test $? -eq 0; then
25603     pgac_cv_check_docbook=yes
25604   fi
25605 fi
25606 rm -f conftest.sgml
25607 fi
25608 { echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
25609 echo "${ECHO_T}$pgac_cv_check_docbook" >&6; }
25610
25611 have_docbook=$pgac_cv_check_docbook
25612
25613
25614 { echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
25615 echo $ECHO_N "checking for DocBook stylesheets... $ECHO_C" >&6; }
25616 if test "${pgac_cv_path_stylesheets+set}" = set; then
25617   echo $ECHO_N "(cached) $ECHO_C" >&6
25618 else
25619   if test -n "$DOCBOOKSTYLE"; then
25620   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
25621 else
25622   for pgac_prefix in /usr /usr/local /opt /sw; do
25623     for pgac_infix in share lib; do
25624       for pgac_postfix in \
25625         sgml/stylesheets/nwalsh-modular \
25626         sgml/stylesheets/docbook \
25627         sgml/stylesheets/dsssl/docbook \
25628         sgml/docbook-dsssl \
25629         sgml/docbook/dsssl/modular \
25630         sgml/docbook/stylesheet/dsssl/modular \
25631         sgml/docbook/dsssl-stylesheets \
25632         sgml/dsssl/docbook-dsssl-nwalsh
25633       do
25634         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
25635         if test -r "$pgac_candidate/html/docbook.dsl" \
25636            && test -r "$pgac_candidate/print/docbook.dsl"
25637         then
25638           pgac_cv_path_stylesheets=$pgac_candidate
25639           break 3
25640         fi
25641       done
25642     done
25643   done
25644 fi
25645 fi
25646
25647 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
25648
25649 if test -n "$DOCBOOKSTYLE"; then
25650   { echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
25651 echo "${ECHO_T}$DOCBOOKSTYLE" >&6; }
25652 else
25653   { echo "$as_me:$LINENO: result: no" >&5
25654 echo "${ECHO_T}no" >&6; }
25655 fi
25656 if test -n "$DOCBOOKSTYLE"; then
25657   for ac_prog in collateindex.pl
25658 do
25659   # Extract the first word of "$ac_prog", so it can be a program name with args.
25660 set dummy $ac_prog; ac_word=$2
25661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25663 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25664   echo $ECHO_N "(cached) $ECHO_C" >&6
25665 else
25666   case $COLLATEINDEX in
25667   [\\/]* | ?:[\\/]*)
25668   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25669   ;;
25670   *)
25671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25672 for as_dir in $DOCBOOKSTYLE/bin $PATH
25673 do
25674   IFS=$as_save_IFS
25675   test -z "$as_dir" && as_dir=.
25676   for ac_exec_ext in '' $ac_executable_extensions; do
25677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25678     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25679     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25680     break 2
25681   fi
25682 done
25683 done
25684 IFS=$as_save_IFS
25685
25686   ;;
25687 esac
25688 fi
25689 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25690 if test -n "$COLLATEINDEX"; then
25691   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25692 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25693 else
25694   { echo "$as_me:$LINENO: result: no" >&5
25695 echo "${ECHO_T}no" >&6; }
25696 fi
25697
25698
25699   test -n "$COLLATEINDEX" && break
25700 done
25701
25702 else
25703   for ac_prog in collateindex.pl
25704 do
25705   # Extract the first word of "$ac_prog", so it can be a program name with args.
25706 set dummy $ac_prog; ac_word=$2
25707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25709 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
25710   echo $ECHO_N "(cached) $ECHO_C" >&6
25711 else
25712   case $COLLATEINDEX in
25713   [\\/]* | ?:[\\/]*)
25714   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
25715   ;;
25716   *)
25717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25718 for as_dir in $PATH
25719 do
25720   IFS=$as_save_IFS
25721   test -z "$as_dir" && as_dir=.
25722   for ac_exec_ext in '' $ac_executable_extensions; do
25723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25724     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
25725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25726     break 2
25727   fi
25728 done
25729 done
25730 IFS=$as_save_IFS
25731
25732   ;;
25733 esac
25734 fi
25735 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
25736 if test -n "$COLLATEINDEX"; then
25737   { echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
25738 echo "${ECHO_T}$COLLATEINDEX" >&6; }
25739 else
25740   { echo "$as_me:$LINENO: result: no" >&5
25741 echo "${ECHO_T}no" >&6; }
25742 fi
25743
25744
25745   test -n "$COLLATEINDEX" && break
25746 done
25747
25748 fi
25749 for ac_prog in sgmlspl
25750 do
25751   # Extract the first word of "$ac_prog", so it can be a program name with args.
25752 set dummy $ac_prog; ac_word=$2
25753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
25754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
25755 if test "${ac_cv_prog_SGMLSPL+set}" = set; then
25756   echo $ECHO_N "(cached) $ECHO_C" >&6
25757 else
25758   if test -n "$SGMLSPL"; then
25759   ac_cv_prog_SGMLSPL="$SGMLSPL" # Let the user override the test.
25760 else
25761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25762 for as_dir in $PATH
25763 do
25764   IFS=$as_save_IFS
25765   test -z "$as_dir" && as_dir=.
25766   for ac_exec_ext in '' $ac_executable_extensions; do
25767   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25768     ac_cv_prog_SGMLSPL="$ac_prog"
25769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25770     break 2
25771   fi
25772 done
25773 done
25774 IFS=$as_save_IFS
25775
25776 fi
25777 fi
25778 SGMLSPL=$ac_cv_prog_SGMLSPL
25779 if test -n "$SGMLSPL"; then
25780   { echo "$as_me:$LINENO: result: $SGMLSPL" >&5
25781 echo "${ECHO_T}$SGMLSPL" >&6; }
25782 else
25783   { echo "$as_me:$LINENO: result: no" >&5
25784 echo "${ECHO_T}no" >&6; }
25785 fi
25786
25787
25788   test -n "$SGMLSPL" && break
25789 done
25790
25791
25792 # Thread testing
25793
25794 # We have to run the thread test near the end so we have all our symbols
25795 # defined.  Cross compiling throws a warning.
25796 #
25797 if test "$enable_thread_safety_force" = yes; then
25798 if test "$PORTNAME" != "win32"
25799 then
25800   { echo "$as_me:$LINENO: WARNING:
25801 *** Skipping thread test program.  --enable-thread-safety-force was used.
25802 *** Run the program in src/test/thread on the your machine and add proper
25803 *** locking function calls to your applications to guarantee thread safety.
25804 " >&5
25805 echo "$as_me: WARNING:
25806 *** Skipping thread test program.  --enable-thread-safety-force was used.
25807 *** Run the program in src/test/thread on the your machine and add proper
25808 *** locking function calls to your applications to guarantee thread safety.
25809 " >&2;}
25810 else
25811 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25812 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25813 fi
25814 elif test "$enable_thread_safety" = yes; then
25815 if test "$PORTNAME" != "win32"
25816 then
25817 { echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
25818 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6; }
25819
25820 _CFLAGS="$CFLAGS"
25821 _LIBS="$LIBS"
25822 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
25823 LIBS="$LIBS $PTHREAD_LIBS"
25824 if test "$cross_compiling" = yes; then
25825   { echo "$as_me:$LINENO: result: maybe" >&5
25826 echo "${ECHO_T}maybe" >&6; }
25827   { echo "$as_me:$LINENO: WARNING:
25828 *** Skipping thread test program because of cross-compile build.
25829 *** Run the program in src/test/thread on the target machine.
25830 " >&5
25831 echo "$as_me: WARNING:
25832 *** Skipping thread test program because of cross-compile build.
25833 *** Run the program in src/test/thread on the target machine.
25834 " >&2;}
25835 else
25836   cat >conftest.$ac_ext <<_ACEOF
25837 /* confdefs.h.  */
25838 _ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h.  */
25842 #include "$srcdir/src/test/thread/thread_test.c"
25843 _ACEOF
25844 rm -f conftest$ac_exeext
25845 if { (ac_try="$ac_link"
25846 case "(($ac_try" in
25847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25848   *) ac_try_echo=$ac_try;;
25849 esac
25850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25851   (eval "$ac_link") 2>&5
25852   ac_status=$?
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25855   { (case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_try") 2>&5
25861   ac_status=$?
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); }; }; then
25864   { echo "$as_me:$LINENO: result: yes" >&5
25865 echo "${ECHO_T}yes" >&6; }
25866 else
25867   echo "$as_me: program exited with status $ac_status" >&5
25868 echo "$as_me: failed program was:" >&5
25869 sed 's/^/| /' conftest.$ac_ext >&5
25870
25871 ( exit $ac_status )
25872 { echo "$as_me:$LINENO: result: no" >&5
25873 echo "${ECHO_T}no" >&6; }
25874   { { echo "$as_me:$LINENO: error: thread test program failed
25875 This platform is not thread-safe.  Check the file 'config.log' for the
25876 exact reason.
25877
25878 You can use the configure option --enable-thread-safety-force to force
25879 threads to be enabled.  But you must then run the program in
25880 src/test/thread and add locking function calls to your applications to
25881 guarantee thread safety." >&5
25882 echo "$as_me: error: thread test program failed
25883 This platform is not thread-safe.  Check the file 'config.log' for the
25884 exact reason.
25885
25886 You can use the configure option --enable-thread-safety-force to force
25887 threads to be enabled.  But you must then run the program in
25888 src/test/thread and add locking function calls to your applications to
25889 guarantee thread safety." >&2;}
25890    { (exit 1); exit 1; }; }
25891 fi
25892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25893 fi
25894
25895
25896 CFLAGS="$_CFLAGS"
25897 LIBS="$_LIBS"
25898 else
25899 { echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
25900 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
25901 fi
25902 fi
25903
25904 # If compiler will take -Wl,--as-needed then add that to LDFLAGS.
25905 # This is much easier than trying to filter LIBS to the minimum for each
25906 # executable.  (Note that shared library links won't use this switch, though.)
25907 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
25908 # libreadline; therefore we postpone testing it until we know what library
25909 # dependencies readline has.  The test code will try to link with $LIBS.
25910 if test "$with_readline" = yes; then
25911   link_test_func=readline
25912 else
25913   link_test_func=exit
25914 fi
25915 if test "$PORTNAME" != "darwin"; then
25916   { echo "$as_me:$LINENO: checking if $CC supports -Wl,--as-needed" >&5
25917 echo $ECHO_N "checking if $CC supports -Wl,--as-needed... $ECHO_C" >&6; }
25918 pgac_save_LDFLAGS=$LDFLAGS
25919 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
25920 if test "$cross_compiling" = yes; then
25921   LDFLAGS="$pgac_save_LDFLAGS"
25922                { echo "$as_me:$LINENO: result: assuming no" >&5
25923 echo "${ECHO_T}assuming no" >&6; }
25924 else
25925   cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h.  */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h.  */
25931 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25932 int
25933 main ()
25934 {
25935
25936   ;
25937   return 0;
25938 }
25939 _ACEOF
25940 rm -f conftest$ac_exeext
25941 if { (ac_try="$ac_link"
25942 case "(($ac_try" in
25943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25944   *) ac_try_echo=$ac_try;;
25945 esac
25946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25947   (eval "$ac_link") 2>&5
25948   ac_status=$?
25949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25951   { (case "(($ac_try" in
25952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25953   *) ac_try_echo=$ac_try;;
25954 esac
25955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25956   (eval "$ac_try") 2>&5
25957   ac_status=$?
25958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959   (exit $ac_status); }; }; then
25960   { echo "$as_me:$LINENO: result: yes" >&5
25961 echo "${ECHO_T}yes" >&6; }
25962 else
25963   echo "$as_me: program exited with status $ac_status" >&5
25964 echo "$as_me: failed program was:" >&5
25965 sed 's/^/| /' conftest.$ac_ext >&5
25966
25967 ( exit $ac_status )
25968 LDFLAGS="$pgac_save_LDFLAGS"
25969                { echo "$as_me:$LINENO: result: no" >&5
25970 echo "${ECHO_T}no" >&6; }
25971 fi
25972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25973 fi
25974
25975
25976
25977 else
25978   # On Darwin it's spelled -Wl,-dead_strip_dylibs, but don't try that elsewhere
25979   { echo "$as_me:$LINENO: checking if $CC supports -Wl,-dead_strip_dylibs" >&5
25980 echo $ECHO_N "checking if $CC supports -Wl,-dead_strip_dylibs... $ECHO_C" >&6; }
25981 pgac_save_LDFLAGS=$LDFLAGS
25982 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
25983 if test "$cross_compiling" = yes; then
25984   LDFLAGS="$pgac_save_LDFLAGS"
25985                { echo "$as_me:$LINENO: result: assuming no" >&5
25986 echo "${ECHO_T}assuming no" >&6; }
25987 else
25988   cat >conftest.$ac_ext <<_ACEOF
25989 /* confdefs.h.  */
25990 _ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h.  */
25994 extern void $link_test_func (); void (*fptr) () = $link_test_func;
25995 int
25996 main ()
25997 {
25998
25999   ;
26000   return 0;
26001 }
26002 _ACEOF
26003 rm -f conftest$ac_exeext
26004 if { (ac_try="$ac_link"
26005 case "(($ac_try" in
26006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007   *) ac_try_echo=$ac_try;;
26008 esac
26009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26010   (eval "$ac_link") 2>&5
26011   ac_status=$?
26012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26014   { (case "(($ac_try" in
26015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26016   *) ac_try_echo=$ac_try;;
26017 esac
26018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26019   (eval "$ac_try") 2>&5
26020   ac_status=$?
26021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26022   (exit $ac_status); }; }; then
26023   { echo "$as_me:$LINENO: result: yes" >&5
26024 echo "${ECHO_T}yes" >&6; }
26025 else
26026   echo "$as_me: program exited with status $ac_status" >&5
26027 echo "$as_me: failed program was:" >&5
26028 sed 's/^/| /' conftest.$ac_ext >&5
26029
26030 ( exit $ac_status )
26031 LDFLAGS="$pgac_save_LDFLAGS"
26032                { echo "$as_me:$LINENO: result: no" >&5
26033 echo "${ECHO_T}no" >&6; }
26034 fi
26035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26036 fi
26037
26038
26039
26040 fi
26041
26042
26043 # Begin output steps
26044
26045 { echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
26046 echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
26047 { echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
26048 echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
26049 { echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
26050 echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
26051
26052 # prepare build tree if outside source tree
26053 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
26054 # Note 2: /bin/pwd might be better than shell's built-in at getting
26055 #         a symlink-free name.
26056 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
26057   vpath_build=no
26058 else
26059   vpath_build=yes
26060   if test "$no_create" != yes; then
26061     echo $ECHO_N "preparing build tree... $ECHO_C" >&6
26062     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
26063     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
26064       || { { echo "$as_me:$LINENO: error: failed" >&5
26065 echo "$as_me: error: failed" >&2;}
26066    { (exit 1); exit 1; }; }
26067     { echo "$as_me:$LINENO: result: done" >&5
26068 echo "${ECHO_T}done" >&6; }
26069   fi
26070 fi
26071
26072
26073
26074 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
26075
26076
26077 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}"
26078
26079
26080 if test "$PORTNAME" = "win32"; then
26081 ac_config_commands="$ac_config_commands check_win32_symlinks"
26082
26083 fi
26084
26085 ac_config_headers="$ac_config_headers src/include/pg_config.h"
26086
26087
26088 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
26089
26090
26091 cat >confcache <<\_ACEOF
26092 # This file is a shell script that caches the results of configure
26093 # tests run on this system so they can be shared between configure
26094 # scripts and configure runs, see configure's option --config-cache.
26095 # It is not useful on other systems.  If it contains results you don't
26096 # want to keep, you may remove or edit it.
26097 #
26098 # config.status only pays attention to the cache file if you give it
26099 # the --recheck option to rerun configure.
26100 #
26101 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26102 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26103 # following values.
26104
26105 _ACEOF
26106
26107 # The following way of writing the cache mishandles newlines in values,
26108 # but we know of no workaround that is simple, portable, and efficient.
26109 # So, we kill variables containing newlines.
26110 # Ultrix sh set writes to stderr and can't be redirected directly,
26111 # and sets the high bit in the cache file unless we assign to the vars.
26112 (
26113   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26114     eval ac_val=\$$ac_var
26115     case $ac_val in #(
26116     *${as_nl}*)
26117       case $ac_var in #(
26118       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26119 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26120       esac
26121       case $ac_var in #(
26122       _ | IFS | as_nl) ;; #(
26123       *) $as_unset $ac_var ;;
26124       esac ;;
26125     esac
26126   done
26127
26128   (set) 2>&1 |
26129     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26130     *${as_nl}ac_space=\ *)
26131       # `set' does not quote correctly, so add quotes (double-quote
26132       # substitution turns \\\\ into \\, and sed turns \\ into \).
26133       sed -n \
26134         "s/'/'\\\\''/g;
26135           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26136       ;; #(
26137     *)
26138       # `set' quotes correctly as required by POSIX, so do not add quotes.
26139       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26140       ;;
26141     esac |
26142     sort
26143 ) |
26144   sed '
26145      /^ac_cv_env_/b end
26146      t clear
26147      :clear
26148      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26149      t end
26150      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26151      :end' >>confcache
26152 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26153   if test -w "$cache_file"; then
26154     test "x$cache_file" != "x/dev/null" &&
26155       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26156 echo "$as_me: updating cache $cache_file" >&6;}
26157     cat confcache >$cache_file
26158   else
26159     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26160 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26161   fi
26162 fi
26163 rm -f confcache
26164
26165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26166 # Let make expand exec_prefix.
26167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26168
26169 DEFS=-DHAVE_CONFIG_H
26170
26171 ac_libobjs=
26172 ac_ltlibobjs=
26173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26174   # 1. Remove the extension, and $U if already installed.
26175   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26176   ac_i=`echo "$ac_i" | sed "$ac_script"`
26177   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26178   #    will be set to the directory where LIBOBJS objects are built.
26179   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26180   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26181 done
26182 LIBOBJS=$ac_libobjs
26183
26184 LTLIBOBJS=$ac_ltlibobjs
26185
26186
26187
26188 : ${CONFIG_STATUS=./config.status}
26189 ac_clean_files_save=$ac_clean_files
26190 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26191 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26192 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26193 cat >$CONFIG_STATUS <<_ACEOF
26194 #! $SHELL
26195 # Generated by $as_me.
26196 # Run this file to recreate the current configuration.
26197 # Compiler output produced by configure, useful for debugging
26198 # configure, is in config.log if it exists.
26199
26200 debug=false
26201 ac_cs_recheck=false
26202 ac_cs_silent=false
26203 SHELL=\${CONFIG_SHELL-$SHELL}
26204 _ACEOF
26205
26206 cat >>$CONFIG_STATUS <<\_ACEOF
26207 ## --------------------- ##
26208 ## M4sh Initialization.  ##
26209 ## --------------------- ##
26210
26211 # Be more Bourne compatible
26212 DUALCASE=1; export DUALCASE # for MKS sh
26213 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26214   emulate sh
26215   NULLCMD=:
26216   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26217   # is contrary to our usage.  Disable this feature.
26218   alias -g '${1+"$@"}'='"$@"'
26219   setopt NO_GLOB_SUBST
26220 else
26221   case `(set -o) 2>/dev/null` in
26222   *posix*) set -o posix ;;
26223 esac
26224
26225 fi
26226
26227
26228
26229
26230 # PATH needs CR
26231 # Avoid depending upon Character Ranges.
26232 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26233 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26234 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26235 as_cr_digits='0123456789'
26236 as_cr_alnum=$as_cr_Letters$as_cr_digits
26237
26238 # The user is always right.
26239 if test "${PATH_SEPARATOR+set}" != set; then
26240   echo "#! /bin/sh" >conf$$.sh
26241   echo  "exit 0"   >>conf$$.sh
26242   chmod +x conf$$.sh
26243   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26244     PATH_SEPARATOR=';'
26245   else
26246     PATH_SEPARATOR=:
26247   fi
26248   rm -f conf$$.sh
26249 fi
26250
26251 # Support unset when possible.
26252 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26253   as_unset=unset
26254 else
26255   as_unset=false
26256 fi
26257
26258
26259 # IFS
26260 # We need space, tab and new line, in precisely that order.  Quoting is
26261 # there to prevent editors from complaining about space-tab.
26262 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26263 # splitting by setting IFS to empty value.)
26264 as_nl='
26265 '
26266 IFS=" ""        $as_nl"
26267
26268 # Find who we are.  Look in the path if we contain no directory separator.
26269 case $0 in
26270   *[\\/]* ) as_myself=$0 ;;
26271   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26272 for as_dir in $PATH
26273 do
26274   IFS=$as_save_IFS
26275   test -z "$as_dir" && as_dir=.
26276   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26277 done
26278 IFS=$as_save_IFS
26279
26280      ;;
26281 esac
26282 # We did not find ourselves, most probably we were run as `sh COMMAND'
26283 # in which case we are not to be found in the path.
26284 if test "x$as_myself" = x; then
26285   as_myself=$0
26286 fi
26287 if test ! -f "$as_myself"; then
26288   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26289   { (exit 1); exit 1; }
26290 fi
26291
26292 # Work around bugs in pre-3.0 UWIN ksh.
26293 for as_var in ENV MAIL MAILPATH
26294 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26295 done
26296 PS1='$ '
26297 PS2='> '
26298 PS4='+ '
26299
26300 # NLS nuisances.
26301 for as_var in \
26302   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26303   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26304   LC_TELEPHONE LC_TIME
26305 do
26306   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26307     eval $as_var=C; export $as_var
26308   else
26309     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26310   fi
26311 done
26312
26313 # Required to use basename.
26314 if expr a : '\(a\)' >/dev/null 2>&1 &&
26315    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26316   as_expr=expr
26317 else
26318   as_expr=false
26319 fi
26320
26321 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26322   as_basename=basename
26323 else
26324   as_basename=false
26325 fi
26326
26327
26328 # Name of the executable.
26329 as_me=`$as_basename -- "$0" ||
26330 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26331          X"$0" : 'X\(//\)$' \| \
26332          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26333 echo X/"$0" |
26334     sed '/^.*\/\([^/][^/]*\)\/*$/{
26335             s//\1/
26336             q
26337           }
26338           /^X\/\(\/\/\)$/{
26339             s//\1/
26340             q
26341           }
26342           /^X\/\(\/\).*/{
26343             s//\1/
26344             q
26345           }
26346           s/.*/./; q'`
26347
26348 # CDPATH.
26349 $as_unset CDPATH
26350
26351
26352
26353   as_lineno_1=$LINENO
26354   as_lineno_2=$LINENO
26355   test "x$as_lineno_1" != "x$as_lineno_2" &&
26356   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26357
26358   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26359   # uniformly replaced by the line number.  The first 'sed' inserts a
26360   # line-number line after each line using $LINENO; the second 'sed'
26361   # does the real work.  The second script uses 'N' to pair each
26362   # line-number line with the line containing $LINENO, and appends
26363   # trailing '-' during substitution so that $LINENO is not a special
26364   # case at line end.
26365   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26366   # scripts with optimization help from Paolo Bonzini.  Blame Lee
26367   # E. McMahon (1931-1989) for sed's syntax.  :-)
26368   sed -n '
26369     p
26370     /[$]LINENO/=
26371   ' <$as_myself |
26372     sed '
26373       s/[$]LINENO.*/&-/
26374       t lineno
26375       b
26376       :lineno
26377       N
26378       :loop
26379       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26380       t loop
26381       s/-\n.*//
26382     ' >$as_me.lineno &&
26383   chmod +x "$as_me.lineno" ||
26384     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26385    { (exit 1); exit 1; }; }
26386
26387   # Don't try to exec as it changes $[0], causing all sort of problems
26388   # (the dirname of $[0] is not the place where we might find the
26389   # original and so on.  Autoconf is especially sensitive to this).
26390   . "./$as_me.lineno"
26391   # Exit status is that of the last command.
26392   exit
26393 }
26394
26395
26396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26397   as_dirname=dirname
26398 else
26399   as_dirname=false
26400 fi
26401
26402 ECHO_C= ECHO_N= ECHO_T=
26403 case `echo -n x` in
26404 -n*)
26405   case `echo 'x\c'` in
26406   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26407   *)   ECHO_C='\c';;
26408   esac;;
26409 *)
26410   ECHO_N='-n';;
26411 esac
26412
26413 if expr a : '\(a\)' >/dev/null 2>&1 &&
26414    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26415   as_expr=expr
26416 else
26417   as_expr=false
26418 fi
26419
26420 rm -f conf$$ conf$$.exe conf$$.file
26421 if test -d conf$$.dir; then
26422   rm -f conf$$.dir/conf$$.file
26423 else
26424   rm -f conf$$.dir
26425   mkdir conf$$.dir
26426 fi
26427 echo >conf$$.file
26428 if ln -s conf$$.file conf$$ 2>/dev/null; then
26429   as_ln_s='ln -s'
26430   # ... but there are two gotchas:
26431   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26432   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26433   # In both cases, we have to default to `cp -p'.
26434   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26435     as_ln_s='cp -p'
26436 elif ln conf$$.file conf$$ 2>/dev/null; then
26437   as_ln_s=ln
26438 else
26439   as_ln_s='cp -p'
26440 fi
26441 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26442 rmdir conf$$.dir 2>/dev/null
26443
26444 if mkdir -p . 2>/dev/null; then
26445   as_mkdir_p=:
26446 else
26447   test -d ./-p && rmdir ./-p
26448   as_mkdir_p=false
26449 fi
26450
26451 if test -x / >/dev/null 2>&1; then
26452   as_test_x='test -x'
26453 else
26454   if ls -dL / >/dev/null 2>&1; then
26455     as_ls_L_option=L
26456   else
26457     as_ls_L_option=
26458   fi
26459   as_test_x='
26460     eval sh -c '\''
26461       if test -d "$1"; then
26462         test -d "$1/.";
26463       else
26464         case $1 in
26465         -*)set "./$1";;
26466         esac;
26467         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26468         ???[sx]*):;;*)false;;esac;fi
26469     '\'' sh
26470   '
26471 fi
26472 as_executable_p=$as_test_x
26473
26474 # Sed expression to map a string onto a valid CPP name.
26475 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26476
26477 # Sed expression to map a string onto a valid variable name.
26478 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26479
26480
26481 exec 6>&1
26482
26483 # Save the log message, to keep $[0] and so on meaningful, and to
26484 # report actual input values of CONFIG_FILES etc. instead of their
26485 # values after options handling.
26486 ac_log="
26487 This file was extended by PostgreSQL $as_me 8.4devel, which was
26488 generated by GNU Autoconf 2.61.  Invocation command line was
26489
26490   CONFIG_FILES    = $CONFIG_FILES
26491   CONFIG_HEADERS  = $CONFIG_HEADERS
26492   CONFIG_LINKS    = $CONFIG_LINKS
26493   CONFIG_COMMANDS = $CONFIG_COMMANDS
26494   $ $0 $@
26495
26496 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26497 "
26498
26499 _ACEOF
26500
26501 cat >>$CONFIG_STATUS <<_ACEOF
26502 # Files that config.status was made for.
26503 config_files="$ac_config_files"
26504 config_headers="$ac_config_headers"
26505 config_links="$ac_config_links"
26506 config_commands="$ac_config_commands"
26507
26508 _ACEOF
26509
26510 cat >>$CONFIG_STATUS <<\_ACEOF
26511 ac_cs_usage="\
26512 \`$as_me' instantiates files from templates according to the
26513 current configuration.
26514
26515 Usage: $0 [OPTIONS] [FILE]...
26516
26517   -h, --help       print this help, then exit
26518   -V, --version    print version number and configuration settings, then exit
26519   -q, --quiet      do not print progress messages
26520   -d, --debug      don't remove temporary files
26521       --recheck    update $as_me by reconfiguring in the same conditions
26522   --file=FILE[:TEMPLATE]
26523                    instantiate the configuration file FILE
26524   --header=FILE[:TEMPLATE]
26525                    instantiate the configuration header FILE
26526
26527 Configuration files:
26528 $config_files
26529
26530 Configuration headers:
26531 $config_headers
26532
26533 Configuration links:
26534 $config_links
26535
26536 Configuration commands:
26537 $config_commands
26538
26539 Report bugs to <bug-autoconf@gnu.org>."
26540
26541 _ACEOF
26542 cat >>$CONFIG_STATUS <<_ACEOF
26543 ac_cs_version="\\
26544 PostgreSQL config.status 8.4devel
26545 configured by $0, generated by GNU Autoconf 2.61,
26546   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26547
26548 Copyright (C) 2006 Free Software Foundation, Inc.
26549 This config.status script is free software; the Free Software Foundation
26550 gives unlimited permission to copy, distribute and modify it."
26551
26552 ac_pwd='$ac_pwd'
26553 srcdir='$srcdir'
26554 _ACEOF
26555
26556 cat >>$CONFIG_STATUS <<\_ACEOF
26557 # If no file are specified by the user, then we need to provide default
26558 # value.  By we need to know if files were specified by the user.
26559 ac_need_defaults=:
26560 while test $# != 0
26561 do
26562   case $1 in
26563   --*=*)
26564     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26565     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26566     ac_shift=:
26567     ;;
26568   *)
26569     ac_option=$1
26570     ac_optarg=$2
26571     ac_shift=shift
26572     ;;
26573   esac
26574
26575   case $ac_option in
26576   # Handling of the options.
26577   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26578     ac_cs_recheck=: ;;
26579   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26580     echo "$ac_cs_version"; exit ;;
26581   --debug | --debu | --deb | --de | --d | -d )
26582     debug=: ;;
26583   --file | --fil | --fi | --f )
26584     $ac_shift
26585     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26586     ac_need_defaults=false;;
26587   --header | --heade | --head | --hea )
26588     $ac_shift
26589     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26590     ac_need_defaults=false;;
26591   --he | --h)
26592     # Conflict between --help and --header
26593     { echo "$as_me: error: ambiguous option: $1
26594 Try \`$0 --help' for more information." >&2
26595    { (exit 1); exit 1; }; };;
26596   --help | --hel | -h )
26597     echo "$ac_cs_usage"; exit ;;
26598   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26599   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26600     ac_cs_silent=: ;;
26601
26602   # This is an error.
26603   -*) { echo "$as_me: error: unrecognized option: $1
26604 Try \`$0 --help' for more information." >&2
26605    { (exit 1); exit 1; }; } ;;
26606
26607   *) ac_config_targets="$ac_config_targets $1"
26608      ac_need_defaults=false ;;
26609
26610   esac
26611   shift
26612 done
26613
26614 ac_configure_extra_args=
26615
26616 if $ac_cs_silent; then
26617   exec 6>/dev/null
26618   ac_configure_extra_args="$ac_configure_extra_args --silent"
26619 fi
26620
26621 _ACEOF
26622 cat >>$CONFIG_STATUS <<_ACEOF
26623 if \$ac_cs_recheck; then
26624   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26625   CONFIG_SHELL=$SHELL
26626   export CONFIG_SHELL
26627   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26628 fi
26629
26630 _ACEOF
26631 cat >>$CONFIG_STATUS <<\_ACEOF
26632 exec 5>>config.log
26633 {
26634   echo
26635   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26636 ## Running $as_me. ##
26637 _ASBOX
26638   echo "$ac_log"
26639 } >&5
26640
26641 _ACEOF
26642 cat >>$CONFIG_STATUS <<_ACEOF
26643 _ACEOF
26644
26645 cat >>$CONFIG_STATUS <<\_ACEOF
26646
26647 # Handling of arguments.
26648 for ac_config_target in $ac_config_targets
26649 do
26650   case $ac_config_target in
26651     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
26652     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
26653     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
26654     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
26655     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
26656     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
26657     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
26658     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
26659     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
26660     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
26661     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
26662     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
26663
26664   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26665 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26666    { (exit 1); exit 1; }; };;
26667   esac
26668 done
26669
26670
26671 # If the user did not use the arguments to specify the items to instantiate,
26672 # then the envvar interface is used.  Set only those that are not.
26673 # We use the long form for the default assignment because of an extremely
26674 # bizarre bug on SunOS 4.1.3.
26675 if $ac_need_defaults; then
26676   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26677   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26678   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26679   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26680 fi
26681
26682 # Have a temporary directory for convenience.  Make it in the build tree
26683 # simply because there is no reason against having it here, and in addition,
26684 # creating and moving files from /tmp can sometimes cause problems.
26685 # Hook for its removal unless debugging.
26686 # Note that there is a small window in which the directory will not be cleaned:
26687 # after its creation but before its name has been assigned to `$tmp'.
26688 $debug ||
26689 {
26690   tmp=
26691   trap 'exit_status=$?
26692   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26693 ' 0
26694   trap '{ (exit 1); exit 1; }' 1 2 13 15
26695 }
26696 # Create a (secure) tmp directory for tmp files.
26697
26698 {
26699   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26700   test -n "$tmp" && test -d "$tmp"
26701 }  ||
26702 {
26703   tmp=./conf$$-$RANDOM
26704   (umask 077 && mkdir "$tmp")
26705 } ||
26706 {
26707    echo "$me: cannot create a temporary directory in ." >&2
26708    { (exit 1); exit 1; }
26709 }
26710
26711 #
26712 # Set up the sed scripts for CONFIG_FILES section.
26713 #
26714
26715 # No need to generate the scripts if there are no CONFIG_FILES.
26716 # This happens for instance when ./config.status config.h
26717 if test -n "$CONFIG_FILES"; then
26718
26719 _ACEOF
26720
26721
26722
26723 ac_delim='%!_!# '
26724 for ac_last_try in false false false false false :; do
26725   cat >conf$$subs.sed <<_ACEOF
26726 SHELL!$SHELL$ac_delim
26727 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26728 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26729 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26730 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26731 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26732 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26733 exec_prefix!$exec_prefix$ac_delim
26734 prefix!$prefix$ac_delim
26735 program_transform_name!$program_transform_name$ac_delim
26736 bindir!$bindir$ac_delim
26737 sbindir!$sbindir$ac_delim
26738 libexecdir!$libexecdir$ac_delim
26739 datarootdir!$datarootdir$ac_delim
26740 datadir!$datadir$ac_delim
26741 sysconfdir!$sysconfdir$ac_delim
26742 sharedstatedir!$sharedstatedir$ac_delim
26743 localstatedir!$localstatedir$ac_delim
26744 includedir!$includedir$ac_delim
26745 oldincludedir!$oldincludedir$ac_delim
26746 docdir!$docdir$ac_delim
26747 infodir!$infodir$ac_delim
26748 htmldir!$htmldir$ac_delim
26749 dvidir!$dvidir$ac_delim
26750 pdfdir!$pdfdir$ac_delim
26751 psdir!$psdir$ac_delim
26752 libdir!$libdir$ac_delim
26753 localedir!$localedir$ac_delim
26754 mandir!$mandir$ac_delim
26755 DEFS!$DEFS$ac_delim
26756 ECHO_C!$ECHO_C$ac_delim
26757 ECHO_N!$ECHO_N$ac_delim
26758 ECHO_T!$ECHO_T$ac_delim
26759 LIBS!$LIBS$ac_delim
26760 build_alias!$build_alias$ac_delim
26761 host_alias!$host_alias$ac_delim
26762 target_alias!$target_alias$ac_delim
26763 configure_args!$configure_args$ac_delim
26764 build!$build$ac_delim
26765 build_cpu!$build_cpu$ac_delim
26766 build_vendor!$build_vendor$ac_delim
26767 build_os!$build_os$ac_delim
26768 host!$host$ac_delim
26769 host_cpu!$host_cpu$ac_delim
26770 host_vendor!$host_vendor$ac_delim
26771 host_os!$host_os$ac_delim
26772 PORTNAME!$PORTNAME$ac_delim
26773 enable_nls!$enable_nls$ac_delim
26774 WANTED_LANGUAGES!$WANTED_LANGUAGES$ac_delim
26775 default_port!$default_port$ac_delim
26776 enable_shared!$enable_shared$ac_delim
26777 enable_rpath!$enable_rpath$ac_delim
26778 enable_debug!$enable_debug$ac_delim
26779 enable_profiling!$enable_profiling$ac_delim
26780 GCOV!$GCOV$ac_delim
26781 LCOV!$LCOV$ac_delim
26782 GENHTML!$GENHTML$ac_delim
26783 enable_coverage!$enable_coverage$ac_delim
26784 DTRACE!$DTRACE$ac_delim
26785 DTRACEFLAGS!$DTRACEFLAGS$ac_delim
26786 enable_dtrace!$enable_dtrace$ac_delim
26787 CC!$CC$ac_delim
26788 CFLAGS!$CFLAGS$ac_delim
26789 LDFLAGS!$LDFLAGS$ac_delim
26790 CPPFLAGS!$CPPFLAGS$ac_delim
26791 ac_ct_CC!$ac_ct_CC$ac_delim
26792 EXEEXT!$EXEEXT$ac_delim
26793 OBJEXT!$OBJEXT$ac_delim
26794 SUN_STUDIO_CC!$SUN_STUDIO_CC$ac_delim
26795 CPP!$CPP$ac_delim
26796 GCC!$GCC$ac_delim
26797 TAS!$TAS$ac_delim
26798 autodepend!$autodepend$ac_delim
26799 INCLUDES!$INCLUDES$ac_delim
26800 enable_thread_safety!$enable_thread_safety$ac_delim
26801 with_tcl!$with_tcl$ac_delim
26802 with_perl!$with_perl$ac_delim
26803 with_python!$with_python$ac_delim
26804 with_gssapi!$with_gssapi$ac_delim
26805 with_krb5!$with_krb5$ac_delim
26806 krb_srvtab!$krb_srvtab$ac_delim
26807 with_pam!$with_pam$ac_delim
26808 with_ldap!$with_ldap$ac_delim
26809 with_bonjour!$with_bonjour$ac_delim
26810 with_openssl!$with_openssl$ac_delim
26811 with_ossp_uuid!$with_ossp_uuid$ac_delim
26812 XML2_CONFIG!$XML2_CONFIG$ac_delim
26813 with_libxml!$with_libxml$ac_delim
26814 with_libxslt!$with_libxslt$ac_delim
26815 with_system_tzdata!$with_system_tzdata$ac_delim
26816 with_zlib!$with_zlib$ac_delim
26817 GREP!$GREP$ac_delim
26818 EGREP!$EGREP$ac_delim
26819 ELF_SYS!$ELF_SYS$ac_delim
26820 LDFLAGS_SL!$LDFLAGS_SL$ac_delim
26821 LD!$LD$ac_delim
26822 with_gnu_ld!$with_gnu_ld$ac_delim
26823 _ACEOF
26824
26825   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26826     break
26827   elif $ac_last_try; then
26828     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26829 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26830    { (exit 1); exit 1; }; }
26831   else
26832     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26833   fi
26834 done
26835
26836 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26837 if test -n "$ac_eof"; then
26838   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26839   ac_eof=`expr $ac_eof + 1`
26840 fi
26841
26842 cat >>$CONFIG_STATUS <<_ACEOF
26843 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26845 _ACEOF
26846 sed '
26847 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26848 s/^/s,@/; s/!/@,|#_!!_#|/
26849 :n
26850 t n
26851 s/'"$ac_delim"'$/,g/; t
26852 s/$/\\/; p
26853 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26854 ' >>$CONFIG_STATUS <conf$$subs.sed
26855 rm -f conf$$subs.sed
26856 cat >>$CONFIG_STATUS <<_ACEOF
26857 CEOF$ac_eof
26858 _ACEOF
26859
26860
26861 ac_delim='%!_!# '
26862 for ac_last_try in false false false false false :; do
26863   cat >conf$$subs.sed <<_ACEOF
26864 ld_R_works!$ld_R_works$ac_delim
26865 RANLIB!$RANLIB$ac_delim
26866 STRIP!$STRIP$ac_delim
26867 STRIP_STATIC_LIB!$STRIP_STATIC_LIB$ac_delim
26868 STRIP_SHARED_LIB!$STRIP_SHARED_LIB$ac_delim
26869 TAR!$TAR$ac_delim
26870 LN_S!$LN_S$ac_delim
26871 AWK!$AWK$ac_delim
26872 BISON!$BISON$ac_delim
26873 BISONFLAGS!$BISONFLAGS$ac_delim
26874 FLEX!$FLEX$ac_delim
26875 FLEXFLAGS!$FLEXFLAGS$ac_delim
26876 PERL!$PERL$ac_delim
26877 perl_archlibexp!$perl_archlibexp$ac_delim
26878 perl_privlibexp!$perl_privlibexp$ac_delim
26879 perl_useshrplib!$perl_useshrplib$ac_delim
26880 perl_embed_ldflags!$perl_embed_ldflags$ac_delim
26881 PYTHON!$PYTHON$ac_delim
26882 python_version!$python_version$ac_delim
26883 python_configdir!$python_configdir$ac_delim
26884 python_includespec!$python_includespec$ac_delim
26885 python_libdir!$python_libdir$ac_delim
26886 python_libspec!$python_libspec$ac_delim
26887 python_additional_libs!$python_additional_libs$ac_delim
26888 OSSP_UUID_LIBS!$OSSP_UUID_LIBS$ac_delim
26889 HAVE_IPV6!$HAVE_IPV6$ac_delim
26890 LIBOBJS!$LIBOBJS$ac_delim
26891 acx_pthread_config!$acx_pthread_config$ac_delim
26892 PTHREAD_CC!$PTHREAD_CC$ac_delim
26893 PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
26894 PTHREAD_CFLAGS!$PTHREAD_CFLAGS$ac_delim
26895 LDAP_LIBS_FE!$LDAP_LIBS_FE$ac_delim
26896 LDAP_LIBS_BE!$LDAP_LIBS_BE$ac_delim
26897 HAVE_POSIX_SIGNALS!$HAVE_POSIX_SIGNALS$ac_delim
26898 MSGFMT!$MSGFMT$ac_delim
26899 MSGMERGE!$MSGMERGE$ac_delim
26900 XGETTEXT!$XGETTEXT$ac_delim
26901 TCLSH!$TCLSH$ac_delim
26902 TCL_CONFIG_SH!$TCL_CONFIG_SH$ac_delim
26903 TCL_INCLUDE_SPEC!$TCL_INCLUDE_SPEC$ac_delim
26904 TCL_LIB_FILE!$TCL_LIB_FILE$ac_delim
26905 TCL_LIBS!$TCL_LIBS$ac_delim
26906 TCL_LIB_SPEC!$TCL_LIB_SPEC$ac_delim
26907 TCL_SHARED_BUILD!$TCL_SHARED_BUILD$ac_delim
26908 TCL_SHLIB_LD_LIBS!$TCL_SHLIB_LD_LIBS$ac_delim
26909 NSGMLS!$NSGMLS$ac_delim
26910 JADE!$JADE$ac_delim
26911 have_docbook!$have_docbook$ac_delim
26912 DOCBOOKSTYLE!$DOCBOOKSTYLE$ac_delim
26913 COLLATEINDEX!$COLLATEINDEX$ac_delim
26914 SGMLSPL!$SGMLSPL$ac_delim
26915 vpath_build!$vpath_build$ac_delim
26916 LTLIBOBJS!$LTLIBOBJS$ac_delim
26917 _ACEOF
26918
26919   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 53; then
26920     break
26921   elif $ac_last_try; then
26922     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26923 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26924    { (exit 1); exit 1; }; }
26925   else
26926     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26927   fi
26928 done
26929
26930 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26931 if test -n "$ac_eof"; then
26932   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26933   ac_eof=`expr $ac_eof + 1`
26934 fi
26935
26936 cat >>$CONFIG_STATUS <<_ACEOF
26937 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26939 _ACEOF
26940 sed '
26941 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26942 s/^/s,@/; s/!/@,|#_!!_#|/
26943 :n
26944 t n
26945 s/'"$ac_delim"'$/,g/; t
26946 s/$/\\/; p
26947 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26948 ' >>$CONFIG_STATUS <conf$$subs.sed
26949 rm -f conf$$subs.sed
26950 cat >>$CONFIG_STATUS <<_ACEOF
26951 :end
26952 s/|#_!!_#|//g
26953 CEOF$ac_eof
26954 _ACEOF
26955
26956
26957 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26958 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26959 # trailing colons and then remove the whole line if VPATH becomes empty
26960 # (actually we leave an empty line to preserve line numbers).
26961 if test "x$srcdir" = x.; then
26962   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26963 s/:*\$(srcdir):*/:/
26964 s/:*\${srcdir}:*/:/
26965 s/:*@srcdir@:*/:/
26966 s/^\([^=]*=[     ]*\):*/\1/
26967 s/:*$//
26968 s/^[^=]*=[       ]*$//
26969 }'
26970 fi
26971
26972 cat >>$CONFIG_STATUS <<\_ACEOF
26973 fi # test -n "$CONFIG_FILES"
26974
26975
26976 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS
26977 do
26978   case $ac_tag in
26979   :[FHLC]) ac_mode=$ac_tag; continue;;
26980   esac
26981   case $ac_mode$ac_tag in
26982   :[FHL]*:*);;
26983   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26984 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26985    { (exit 1); exit 1; }; };;
26986   :[FH]-) ac_tag=-:-;;
26987   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26988   esac
26989   ac_save_IFS=$IFS
26990   IFS=:
26991   set x $ac_tag
26992   IFS=$ac_save_IFS
26993   shift
26994   ac_file=$1
26995   shift
26996
26997   case $ac_mode in
26998   :L) ac_source=$1;;
26999   :[FH])
27000     ac_file_inputs=
27001     for ac_f
27002     do
27003       case $ac_f in
27004       -) ac_f="$tmp/stdin";;
27005       *) # Look for the file first in the build tree, then in the source tree
27006          # (if the path is not absolute).  The absolute path cannot be DOS-style,
27007          # because $ac_f cannot contain `:'.
27008          test -f "$ac_f" ||
27009            case $ac_f in
27010            [\\/$]*) false;;
27011            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27012            esac ||
27013            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27014 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27015    { (exit 1); exit 1; }; };;
27016       esac
27017       ac_file_inputs="$ac_file_inputs $ac_f"
27018     done
27019
27020     # Let's still pretend it is `configure' which instantiates (i.e., don't
27021     # use $as_me), people would be surprised to read:
27022     #    /* config.h.  Generated by config.status.  */
27023     configure_input="Generated from "`IFS=:
27024           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
27025     if test x"$ac_file" != x-; then
27026       configure_input="$ac_file.  $configure_input"
27027       { echo "$as_me:$LINENO: creating $ac_file" >&5
27028 echo "$as_me: creating $ac_file" >&6;}
27029     fi
27030
27031     case $ac_tag in
27032     *:-:* | *:-) cat >"$tmp/stdin";;
27033     esac
27034     ;;
27035   esac
27036
27037   ac_dir=`$as_dirname -- "$ac_file" ||
27038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27039          X"$ac_file" : 'X\(//\)[^/]' \| \
27040          X"$ac_file" : 'X\(//\)$' \| \
27041          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27042 echo X"$ac_file" |
27043     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27044             s//\1/
27045             q
27046           }
27047           /^X\(\/\/\)[^/].*/{
27048             s//\1/
27049             q
27050           }
27051           /^X\(\/\/\)$/{
27052             s//\1/
27053             q
27054           }
27055           /^X\(\/\).*/{
27056             s//\1/
27057             q
27058           }
27059           s/.*/./; q'`
27060   { as_dir="$ac_dir"
27061   case $as_dir in #(
27062   -*) as_dir=./$as_dir;;
27063   esac
27064   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27065     as_dirs=
27066     while :; do
27067       case $as_dir in #(
27068       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27069       *) as_qdir=$as_dir;;
27070       esac
27071       as_dirs="'$as_qdir' $as_dirs"
27072       as_dir=`$as_dirname -- "$as_dir" ||
27073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27074          X"$as_dir" : 'X\(//\)[^/]' \| \
27075          X"$as_dir" : 'X\(//\)$' \| \
27076          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27077 echo X"$as_dir" |
27078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27079             s//\1/
27080             q
27081           }
27082           /^X\(\/\/\)[^/].*/{
27083             s//\1/
27084             q
27085           }
27086           /^X\(\/\/\)$/{
27087             s//\1/
27088             q
27089           }
27090           /^X\(\/\).*/{
27091             s//\1/
27092             q
27093           }
27094           s/.*/./; q'`
27095       test -d "$as_dir" && break
27096     done
27097     test -z "$as_dirs" || eval "mkdir $as_dirs"
27098   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27099 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27100    { (exit 1); exit 1; }; }; }
27101   ac_builddir=.
27102
27103 case "$ac_dir" in
27104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27105 *)
27106   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27107   # A ".." for each directory in $ac_dir_suffix.
27108   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27109   case $ac_top_builddir_sub in
27110   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27111   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27112   esac ;;
27113 esac
27114 ac_abs_top_builddir=$ac_pwd
27115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27116 # for backward compatibility:
27117 ac_top_builddir=$ac_top_build_prefix
27118
27119 case $srcdir in
27120   .)  # We are building in place.
27121     ac_srcdir=.
27122     ac_top_srcdir=$ac_top_builddir_sub
27123     ac_abs_top_srcdir=$ac_pwd ;;
27124   [\\/]* | ?:[\\/]* )  # Absolute name.
27125     ac_srcdir=$srcdir$ac_dir_suffix;
27126     ac_top_srcdir=$srcdir
27127     ac_abs_top_srcdir=$srcdir ;;
27128   *) # Relative name.
27129     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27130     ac_top_srcdir=$ac_top_build_prefix$srcdir
27131     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27132 esac
27133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27134
27135
27136   case $ac_mode in
27137   :F)
27138   #
27139   # CONFIG_FILE
27140   #
27141
27142 _ACEOF
27143
27144 cat >>$CONFIG_STATUS <<\_ACEOF
27145 # If the template does not know about datarootdir, expand it.
27146 # FIXME: This hack should be removed a few years after 2.60.
27147 ac_datarootdir_hack=; ac_datarootdir_seen=
27148
27149 case `sed -n '/datarootdir/ {
27150   p
27151   q
27152 }
27153 /@datadir@/p
27154 /@docdir@/p
27155 /@infodir@/p
27156 /@localedir@/p
27157 /@mandir@/p
27158 ' $ac_file_inputs` in
27159 *datarootdir*) ac_datarootdir_seen=yes;;
27160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27161   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27163 _ACEOF
27164 cat >>$CONFIG_STATUS <<_ACEOF
27165   ac_datarootdir_hack='
27166   s&@datadir@&$datadir&g
27167   s&@docdir@&$docdir&g
27168   s&@infodir@&$infodir&g
27169   s&@localedir@&$localedir&g
27170   s&@mandir@&$mandir&g
27171     s&\\\${datarootdir}&$datarootdir&g' ;;
27172 esac
27173 _ACEOF
27174
27175 # Neutralize VPATH when `$srcdir' = `.'.
27176 # Shell code in configure.ac might set extrasub.
27177 # FIXME: do we really want to maintain this feature?
27178 cat >>$CONFIG_STATUS <<_ACEOF
27179   sed "$ac_vpsub
27180 $extrasub
27181 _ACEOF
27182 cat >>$CONFIG_STATUS <<\_ACEOF
27183 :t
27184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27185 s&@configure_input@&$configure_input&;t t
27186 s&@top_builddir@&$ac_top_builddir_sub&;t t
27187 s&@srcdir@&$ac_srcdir&;t t
27188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27189 s&@top_srcdir@&$ac_top_srcdir&;t t
27190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27191 s&@builddir@&$ac_builddir&;t t
27192 s&@abs_builddir@&$ac_abs_builddir&;t t
27193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27194 $ac_datarootdir_hack
27195 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
27196
27197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27198   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27199   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27200   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27201 which seems to be undefined.  Please make sure it is defined." >&5
27202 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27203 which seems to be undefined.  Please make sure it is defined." >&2;}
27204
27205   rm -f "$tmp/stdin"
27206   case $ac_file in
27207   -) cat "$tmp/out"; rm -f "$tmp/out";;
27208   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27209   esac
27210  ;;
27211   :H)
27212   #
27213   # CONFIG_HEADER
27214   #
27215 _ACEOF
27216
27217 # Transform confdefs.h into a sed script `conftest.defines', that
27218 # substitutes the proper values into config.h.in to produce config.h.
27219 rm -f conftest.defines conftest.tail
27220 # First, append a space to every undef/define line, to ease matching.
27221 echo 's/$/ /' >conftest.defines
27222 # Then, protect against being on the right side of a sed subst, or in
27223 # an unquoted here document, in config.status.  If some macros were
27224 # called several times there might be several #defines for the same
27225 # symbol, which is useless.  But do not sort them, since the last
27226 # AC_DEFINE must be honored.
27227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27228 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27229 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27230 # PARAMS is the parameter list in the macro definition--in most cases, it's
27231 # just an empty string.
27232 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
27233 ac_dB='\\)[      (].*,\\1define\\2'
27234 ac_dC=' '
27235 ac_dD=' ,'
27236
27237 uniq confdefs.h |
27238   sed -n '
27239         t rset
27240         :rset
27241         s/^[     ]*#[    ]*define[       ][      ]*//
27242         t ok
27243         d
27244         :ok
27245         s/[\\&,]/\\&/g
27246         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27247         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27248   ' >>conftest.defines
27249
27250 # Remove the space that was appended to ease matching.
27251 # Then replace #undef with comments.  This is necessary, for
27252 # example, in the case of _POSIX_SOURCE, which is predefined and required
27253 # on some systems where configure will not decide to define it.
27254 # (The regexp can be short, since the line contains either #define or #undef.)
27255 echo 's/ $//
27256 s,^[     #]*u.*,/* & */,' >>conftest.defines
27257
27258 # Break up conftest.defines:
27259 ac_max_sed_lines=50
27260
27261 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27262 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27263 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27264 # et cetera.
27265 ac_in='$ac_file_inputs'
27266 ac_out='"$tmp/out1"'
27267 ac_nxt='"$tmp/out2"'
27268
27269 while :
27270 do
27271   # Write a here document:
27272     cat >>$CONFIG_STATUS <<_ACEOF
27273     # First, check the format of the line:
27274     cat >"\$tmp/defines.sed" <<\\CEOF
27275 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
27276 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
27277 b
27278 :def
27279 _ACEOF
27280   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27281   echo 'CEOF
27282     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27283   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27284   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27285   grep . conftest.tail >/dev/null || break
27286   rm -f conftest.defines
27287   mv conftest.tail conftest.defines
27288 done
27289 rm -f conftest.defines conftest.tail
27290
27291 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27292 cat >>$CONFIG_STATUS <<\_ACEOF
27293   if test x"$ac_file" != x-; then
27294     echo "/* $configure_input  */" >"$tmp/config.h"
27295     cat "$ac_result" >>"$tmp/config.h"
27296     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27297       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27298 echo "$as_me: $ac_file is unchanged" >&6;}
27299     else
27300       rm -f $ac_file
27301       mv "$tmp/config.h" $ac_file
27302     fi
27303   else
27304     echo "/* $configure_input  */"
27305     cat "$ac_result"
27306   fi
27307   rm -f "$tmp/out12"
27308  ;;
27309   :L)
27310   #
27311   # CONFIG_LINK
27312   #
27313
27314   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_file" >&5
27315 echo "$as_me: linking $srcdir/$ac_source to $ac_file" >&6;}
27316
27317   if test ! -r "$srcdir/$ac_source"; then
27318     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
27319 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
27320    { (exit 1); exit 1; }; }
27321   fi
27322   rm -f "$ac_file"
27323
27324   # Try a relative symlink, then a hard link, then a copy.
27325   case $srcdir in
27326   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
27327       *) ac_rel_source=$ac_top_build_prefix$srcdir/$ac_source ;;
27328   esac
27329   ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27330     ln "$srcdir/$ac_source" "$ac_file" 2>/dev/null ||
27331     cp -p "$srcdir/$ac_source" "$ac_file" ||
27332     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&5
27333 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_file" >&2;}
27334    { (exit 1); exit 1; }; }
27335  ;;
27336   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27337 echo "$as_me: executing $ac_file commands" >&6;}
27338  ;;
27339   esac
27340
27341
27342   case $ac_file$ac_mode in
27343     "check_win32_symlinks":C)
27344 # Links sometimes fail undetected on Mingw -
27345 # so here we detect it and warn the user
27346 for FILE in $CONFIG_LINKS
27347  do
27348         # test -e works for symlinks in the MinGW console
27349         test -e `expr "$FILE" : '\([^:]*\)'` || { echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
27350 echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
27351  done
27352  ;;
27353     "src/include/pg_config.h":H)
27354 # Update timestamp for pg_config.h (see Makefile.global)
27355 echo >src/include/stamp-h
27356  ;;
27357
27358   esac
27359 done # for ac_tag
27360
27361
27362 { (exit 0); exit 0; }
27363 _ACEOF
27364 chmod +x $CONFIG_STATUS
27365 ac_clean_files=$ac_clean_files_save
27366
27367
27368 # configure is writing to config.log, and then calls config.status.
27369 # config.status does its own redirection, appending to config.log.
27370 # Unfortunately, on DOS this fails, as config.log is still kept open
27371 # by configure, so config.status won't be able to write to it; its
27372 # output is simply discarded.  So we exec the FD to /dev/null,
27373 # effectively closing config.log, so it can be properly (re)opened and
27374 # appended to by config.status.  When coming back to configure, we
27375 # need to make the FD available again.
27376 if test "$no_create" != yes; then
27377   ac_cs_success=:
27378   ac_config_status_args=
27379   test "$silent" = yes &&
27380     ac_config_status_args="$ac_config_status_args --quiet"
27381   exec 5>/dev/null
27382   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27383   exec 5>>config.log
27384   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27385   # would make configure fail if this is the last instruction.
27386   $ac_cs_success || { (exit 1); exit 1; }
27387 fi
27388
27389
27390 # Warn about unknown options
27391 for pgac_var in `set | sed 's/=.*//' | $EGREP 'with_|enable_'`; do
27392   for pgac_arg in $pgac_args with_gnu_ld; do
27393     if test "$pgac_var" = "$pgac_arg"; then
27394       continue 2
27395     fi
27396   done
27397   pgac_txt=`echo $pgac_var | sed 's/_/-/g'`
27398   { echo "$as_me:$LINENO: WARNING: option ignored: --$pgac_txt" >&5
27399 echo "$as_me: WARNING: option ignored: --$pgac_txt" >&2;}
27400 done