]> granicus.if.org Git - postgresql/blob - configure
Switch dependency order of libpgcommon and libpgport
[postgresql] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for PostgreSQL 9.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, 2007, 2008 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-2013, 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   # Pre-4.2 versions of Zsh do 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 as_nl='
45 '
46 export as_nl
47 # Printing a long string crashes Solaris 7 /usr/bin/printf.
48 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85 # Support unset when possible.
86 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
87   as_unset=unset
88 else
89   as_unset=false
90 fi
91
92
93 # IFS
94 # We need space, tab and new line, in precisely that order.  Quoting is
95 # there to prevent editors from complaining about space-tab.
96 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
97 # splitting by setting IFS to empty value.)
98 IFS=" ""        $as_nl"
99
100 # Find who we are.  Look in the path if we contain no directory separator.
101 case $0 in
102   *[\\/]* ) as_myself=$0 ;;
103   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 for as_dir in $PATH
105 do
106   IFS=$as_save_IFS
107   test -z "$as_dir" && as_dir=.
108   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 done
110 IFS=$as_save_IFS
111
112      ;;
113 esac
114 # We did not find ourselves, most probably we were run as `sh COMMAND'
115 # in which case we are not to be found in the path.
116 if test "x$as_myself" = x; then
117   as_myself=$0
118 fi
119 if test ! -f "$as_myself"; then
120   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121   { (exit 1); exit 1; }
122 fi
123
124 # Work around bugs in pre-3.0 UWIN ksh.
125 for as_var in ENV MAIL MAILPATH
126 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # Required to use basename.
139 if expr a : '\(a\)' >/dev/null 2>&1 &&
140    test "X`expr 00001 : '.*\(...\)'`" = X001; then
141   as_expr=expr
142 else
143   as_expr=false
144 fi
145
146 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
147   as_basename=basename
148 else
149   as_basename=false
150 fi
151
152
153 # Name of the executable.
154 as_me=`$as_basename -- "$0" ||
155 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
156          X"$0" : 'X\(//\)$' \| \
157          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
158 $as_echo X/"$0" |
159     sed '/^.*\/\([^/][^/]*\)\/*$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\/\)$/{
164             s//\1/
165             q
166           }
167           /^X\/\(\/\).*/{
168             s//\1/
169             q
170           }
171           s/.*/./; q'`
172
173 # CDPATH.
174 $as_unset CDPATH
175
176
177 if test "x$CONFIG_SHELL" = x; then
178   if (eval ":") 2>/dev/null; then
179   as_have_required=yes
180 else
181   as_have_required=no
182 fi
183
184   if test $as_have_required = yes &&     (eval ":
185 (as_func_return () {
186   (exit \$1)
187 }
188 as_func_success () {
189   as_func_return 0
190 }
191 as_func_failure () {
192   as_func_return 1
193 }
194 as_func_ret_success () {
195   return 0
196 }
197 as_func_ret_failure () {
198   return 1
199 }
200
201 exitcode=0
202 if as_func_success; then
203   :
204 else
205   exitcode=1
206   echo as_func_success failed.
207 fi
208
209 if as_func_failure; then
210   exitcode=1
211   echo as_func_failure succeeded.
212 fi
213
214 if as_func_ret_success; then
215   :
216 else
217   exitcode=1
218   echo as_func_ret_success failed.
219 fi
220
221 if as_func_ret_failure; then
222   exitcode=1
223   echo as_func_ret_failure succeeded.
224 fi
225
226 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
227   :
228 else
229   exitcode=1
230   echo positional parameters were not saved.
231 fi
232
233 test \$exitcode = 0) || { (exit 1); exit 1; }
234
235 (
236   as_lineno_1=\$LINENO
237   as_lineno_2=\$LINENO
238   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
239   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
240 ") 2> /dev/null; then
241   :
242 else
243   as_candidate_shells=
244     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
245 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246 do
247   IFS=$as_save_IFS
248   test -z "$as_dir" && as_dir=.
249   case $as_dir in
250          /*)
251            for as_base in sh bash ksh sh5; do
252              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
253            done;;
254        esac
255 done
256 IFS=$as_save_IFS
257
258
259       for as_shell in $as_candidate_shells $SHELL; do
260          # Try only shells that exist, to save several forks.
261          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
262                 { ("$as_shell") 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264   emulate sh
265   NULLCMD=:
266   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
267   # is contrary to our usage.  Disable this feature.
268   alias -g '${1+"$@"}'='"$@"'
269   setopt NO_GLOB_SUBST
270 else
271   case `(set -o) 2>/dev/null` in
272   *posix*) set -o posix ;;
273 esac
274
275 fi
276
277
278 :
279 _ASEOF
280 }; then
281   CONFIG_SHELL=$as_shell
282                as_have_required=yes
283                if { "$as_shell" 2> /dev/null <<\_ASEOF
284 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285   emulate sh
286   NULLCMD=:
287   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
288   # is contrary to our usage.  Disable this feature.
289   alias -g '${1+"$@"}'='"$@"'
290   setopt NO_GLOB_SUBST
291 else
292   case `(set -o) 2>/dev/null` in
293   *posix*) set -o posix ;;
294 esac
295
296 fi
297
298
299 :
300 (as_func_return () {
301   (exit $1)
302 }
303 as_func_success () {
304   as_func_return 0
305 }
306 as_func_failure () {
307   as_func_return 1
308 }
309 as_func_ret_success () {
310   return 0
311 }
312 as_func_ret_failure () {
313   return 1
314 }
315
316 exitcode=0
317 if as_func_success; then
318   :
319 else
320   exitcode=1
321   echo as_func_success failed.
322 fi
323
324 if as_func_failure; then
325   exitcode=1
326   echo as_func_failure succeeded.
327 fi
328
329 if as_func_ret_success; then
330   :
331 else
332   exitcode=1
333   echo as_func_ret_success failed.
334 fi
335
336 if as_func_ret_failure; then
337   exitcode=1
338   echo as_func_ret_failure succeeded.
339 fi
340
341 if ( set x; as_func_ret_success y && test x = "$1" ); then
342   :
343 else
344   exitcode=1
345   echo positional parameters were not saved.
346 fi
347
348 test $exitcode = 0) || { (exit 1); exit 1; }
349
350 (
351   as_lineno_1=$LINENO
352   as_lineno_2=$LINENO
353   test "x$as_lineno_1" != "x$as_lineno_2" &&
354   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
355
356 _ASEOF
357 }; then
358   break
359 fi
360
361 fi
362
363       done
364
365       if test "x$CONFIG_SHELL" != x; then
366   for as_var in BASH_ENV ENV
367         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
368         done
369         export CONFIG_SHELL
370         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
371 fi
372
373
374     if test $as_have_required = no; then
375   echo This script requires a shell more modern than all the
376       echo shells that I found on your system.  Please install a
377       echo modern shell, or manually run the script under such a
378       echo shell if you do have one.
379       { (exit 1); exit 1; }
380 fi
381
382
383 fi
384
385 fi
386
387
388
389 (eval "as_func_return () {
390   (exit \$1)
391 }
392 as_func_success () {
393   as_func_return 0
394 }
395 as_func_failure () {
396   as_func_return 1
397 }
398 as_func_ret_success () {
399   return 0
400 }
401 as_func_ret_failure () {
402   return 1
403 }
404
405 exitcode=0
406 if as_func_success; then
407   :
408 else
409   exitcode=1
410   echo as_func_success failed.
411 fi
412
413 if as_func_failure; then
414   exitcode=1
415   echo as_func_failure succeeded.
416 fi
417
418 if as_func_ret_success; then
419   :
420 else
421   exitcode=1
422   echo as_func_ret_success failed.
423 fi
424
425 if as_func_ret_failure; then
426   exitcode=1
427   echo as_func_ret_failure succeeded.
428 fi
429
430 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
431   :
432 else
433   exitcode=1
434   echo positional parameters were not saved.
435 fi
436
437 test \$exitcode = 0") || {
438   echo No shell found that supports shell functions.
439   echo Please tell bug-autoconf@gnu.org about your system,
440   echo including any error possibly output before this message.
441   echo This can help us improve future autoconf versions.
442   echo Configuration will now proceed without shell functions.
443 }
444
445
446
447   as_lineno_1=$LINENO
448   as_lineno_2=$LINENO
449   test "x$as_lineno_1" != "x$as_lineno_2" &&
450   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
451
452   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
453   # uniformly replaced by the line number.  The first 'sed' inserts a
454   # line-number line after each line using $LINENO; the second 'sed'
455   # does the real work.  The second script uses 'N' to pair each
456   # line-number line with the line containing $LINENO, and appends
457   # trailing '-' during substitution so that $LINENO is not a special
458   # case at line end.
459   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
460   # scripts with optimization help from Paolo Bonzini.  Blame Lee
461   # E. McMahon (1931-1989) for sed's syntax.  :-)
462   sed -n '
463     p
464     /[$]LINENO/=
465   ' <$as_myself |
466     sed '
467       s/[$]LINENO.*/&-/
468       t lineno
469       b
470       :lineno
471       N
472       :loop
473       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
474       t loop
475       s/-\n.*//
476     ' >$as_me.lineno &&
477   chmod +x "$as_me.lineno" ||
478     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
479    { (exit 1); exit 1; }; }
480
481   # Don't try to exec as it changes $[0], causing all sort of problems
482   # (the dirname of $[0] is not the place where we might find the
483   # original and so on.  Autoconf is especially sensitive to this).
484   . "./$as_me.lineno"
485   # Exit status is that of the last command.
486   exit
487 }
488
489
490 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
491   as_dirname=dirname
492 else
493   as_dirname=false
494 fi
495
496 ECHO_C= ECHO_N= ECHO_T=
497 case `echo -n x` in
498 -n*)
499   case `echo 'x\c'` in
500   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
501   *)   ECHO_C='\c';;
502   esac;;
503 *)
504   ECHO_N='-n';;
505 esac
506 if expr a : '\(a\)' >/dev/null 2>&1 &&
507    test "X`expr 00001 : '.*\(...\)'`" = X001; then
508   as_expr=expr
509 else
510   as_expr=false
511 fi
512
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515   rm -f conf$$.dir/conf$$.file
516 else
517   rm -f conf$$.dir
518   mkdir conf$$.dir 2>/dev/null
519 fi
520 if (echo >conf$$.file) 2>/dev/null; then
521   if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -p'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528       as_ln_s='cp -p'
529   elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531   else
532     as_ln_s='cp -p'
533   fi
534 else
535   as_ln_s='cp -p'
536 fi
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
539
540 if mkdir -p . 2>/dev/null; then
541   as_mkdir_p=:
542 else
543   test -d ./-p && rmdir ./-p
544   as_mkdir_p=false
545 fi
546
547 if test -x / >/dev/null 2>&1; then
548   as_test_x='test -x'
549 else
550   if ls -dL / >/dev/null 2>&1; then
551     as_ls_L_option=L
552   else
553     as_ls_L_option=
554   fi
555   as_test_x='
556     eval sh -c '\''
557       if test -d "$1"; then
558         test -d "$1/.";
559       else
560         case $1 in
561         -*)set "./$1";;
562         esac;
563         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
564         ???[sx]*):;;*)false;;esac;fi
565     '\'' sh
566   '
567 fi
568 as_executable_p=$as_test_x
569
570 # Sed expression to map a string onto a valid CPP name.
571 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
572
573 # Sed expression to map a string onto a valid variable name.
574 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
576
577
578 exec 7<&0 </dev/null 6>&1
579
580 # Name of the host.
581 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
582 # so uname gets run too.
583 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584
585 #
586 # Initializations.
587 #
588 ac_default_prefix=/usr/local
589 ac_clean_files=
590 ac_config_libobj_dir=.
591 LIBOBJS=
592 cross_compiling=no
593 subdirs=
594 MFLAGS=
595 MAKEFLAGS=
596 SHELL=${CONFIG_SHELL-/bin/sh}
597
598 # Identity of this package.
599 PACKAGE_NAME='PostgreSQL'
600 PACKAGE_TARNAME='postgresql'
601 PACKAGE_VERSION='9.4devel'
602 PACKAGE_STRING='PostgreSQL 9.4devel'
603 PACKAGE_BUGREPORT='pgsql-bugs@postgresql.org'
604
605 ac_unique_file="src/backend/access/common/heaptuple.c"
606 ac_default_prefix=/usr/local/pgsql
607 # Factoring default headers for most tests.
608 ac_includes_default="\
609 #include <stdio.h>
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
612 #endif
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
615 #endif
616 #ifdef STDC_HEADERS
617 # include <stdlib.h>
618 # include <stddef.h>
619 #else
620 # ifdef HAVE_STDLIB_H
621 #  include <stdlib.h>
622 # endif
623 #endif
624 #ifdef HAVE_STRING_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
626 #  include <memory.h>
627 # endif
628 # include <string.h>
629 #endif
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_UNISTD_H
640 # include <unistd.h>
641 #endif"
642
643 ac_subst_vars='LTLIBOBJS
644 vpath_build
645 OSX
646 XSLTPROC
647 COLLATEINDEX
648 DOCBOOKSTYLE
649 have_docbook
650 JADE
651 NSGMLS
652 TCL_SHLIB_LD_LIBS
653 TCL_SHARED_BUILD
654 TCL_LIB_SPEC
655 TCL_LIBS
656 TCL_LIB_FILE
657 TCL_INCLUDE_SPEC
658 TCL_CONFIG_SH
659 TCLSH
660 XGETTEXT
661 MSGMERGE
662 MSGFMT_FLAGS
663 MSGFMT
664 HAVE_POSIX_SIGNALS
665 LDAP_LIBS_BE
666 LDAP_LIBS_FE
667 PTHREAD_CFLAGS
668 PTHREAD_LIBS
669 PTHREAD_CC
670 acx_pthread_config
671 have_win32_dbghelp
672 HAVE_IPV6
673 LIBOBJS
674 OSSP_UUID_LIBS
675 ZIC
676 python_enable_shared
677 python_additional_libs
678 python_libspec
679 python_libdir
680 python_includespec
681 python_version
682 python_majorversion
683 PYTHON
684 perl_embed_ldflags
685 perl_useshrplib
686 perl_privlibexp
687 perl_archlibexp
688 PERL
689 FLEXFLAGS
690 FLEX
691 BISONFLAGS
692 BISON
693 MKDIR_P
694 AWK
695 LN_S
696 TAR
697 install_bin
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 WINDRES
702 DLLWRAP
703 DLLTOOL
704 AR
705 STRIP_SHARED_LIB
706 STRIP_STATIC_LIB
707 STRIP
708 RANLIB
709 ld_R_works
710 with_gnu_ld
711 LD
712 LDFLAGS_SL
713 LDFLAGS_EX
714 ELF_SYS
715 EGREP
716 GREP
717 with_zlib
718 with_system_tzdata
719 with_libxslt
720 with_libxml
721 XML2_CONFIG
722 with_ossp_uuid
723 with_selinux
724 with_openssl
725 krb_srvtab
726 with_python
727 with_perl
728 with_tcl
729 enable_thread_safety
730 INCLUDES
731 autodepend
732 TAS
733 GCC
734 CPP
735 CFLAGS_VECTOR
736 SUN_STUDIO_CC
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 enable_dtrace
745 DTRACEFLAGS
746 DTRACE
747 enable_coverage
748 GENHTML
749 LCOV
750 GCOV
751 enable_debug
752 enable_rpath
753 default_port
754 WANTED_LANGUAGES
755 enable_nls
756 PORTNAME
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 PG_MAJORVERSION
766 configure_args
767 target_alias
768 host_alias
769 build_alias
770 LIBS
771 ECHO_T
772 ECHO_N
773 ECHO_C
774 DEFS
775 mandir
776 localedir
777 libdir
778 psdir
779 pdfdir
780 dvidir
781 htmldir
782 infodir
783 docdir
784 oldincludedir
785 includedir
786 localstatedir
787 sharedstatedir
788 sysconfdir
789 datadir
790 datarootdir
791 libexecdir
792 sbindir
793 bindir
794 program_transform_name
795 prefix
796 exec_prefix
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL'
804 ac_subst_files=''
805 ac_user_opts='
806 enable_option_checking
807 with_template
808 with_includes
809 with_libraries
810 with_libs
811 enable_integer_datetimes
812 enable_nls
813 with_pgport
814 enable_rpath
815 enable_spinlocks
816 enable_debug
817 enable_profiling
818 enable_coverage
819 enable_dtrace
820 with_blocksize
821 with_segsize
822 with_wal_blocksize
823 with_wal_segsize
824 with_CC
825 enable_depend
826 enable_cassert
827 enable_thread_safety
828 with_tcl
829 with_tclconfig
830 with_perl
831 with_python
832 with_gssapi
833 with_krb5
834 with_krb_srvnam
835 with_pam
836 with_ldap
837 with_bonjour
838 with_openssl
839 with_selinux
840 with_readline
841 with_libedit_preferred
842 with_ossp_uuid
843 with_libxml
844 with_libxslt
845 with_system_tzdata
846 with_zlib
847 with_gnu_ld
848 enable_largefile
849 enable_float4_byval
850 enable_float8_byval
851 '
852       ac_precious_vars='build_alias
853 host_alias
854 target_alias
855 CC
856 CFLAGS
857 LDFLAGS
858 LIBS
859 CPPFLAGS
860 CPP
861 LDFLAGS_EX
862 LDFLAGS_SL
863 DOCBOOKSTYLE'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918   # If the previous option needs an argument, assign it.
919   if test -n "$ac_prev"; then
920     eval $ac_prev=\$ac_option
921     ac_prev=
922     continue
923   fi
924
925   case $ac_option in
926   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927   *)    ac_optarg=yes ;;
928   esac
929
930   # Accept the important Cygnus configure options, so we can diagnose typos.
931
932   case $ac_dashdash$ac_option in
933   --)
934     ac_dashdash=yes ;;
935
936   -bindir | --bindir | --bindi | --bind | --bin | --bi)
937     ac_prev=bindir ;;
938   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939     bindir=$ac_optarg ;;
940
941   -build | --build | --buil | --bui | --bu)
942     ac_prev=build_alias ;;
943   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
944     build_alias=$ac_optarg ;;
945
946   -cache-file | --cache-file | --cache-fil | --cache-fi \
947   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
948     ac_prev=cache_file ;;
949   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
950   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
951     cache_file=$ac_optarg ;;
952
953   --config-cache | -C)
954     cache_file=config.cache ;;
955
956   -datadir | --datadir | --datadi | --datad)
957     ac_prev=datadir ;;
958   -datadir=* | --datadir=* | --datadi=* | --datad=*)
959     datadir=$ac_optarg ;;
960
961   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
962   | --dataroo | --dataro | --datar)
963     ac_prev=datarootdir ;;
964   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
965   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
966     datarootdir=$ac_optarg ;;
967
968   -disable-* | --disable-*)
969     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
970     # Reject names that are not valid shell variable names.
971     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
973    { (exit 1); exit 1; }; }
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=no ;;
984
985   -docdir | --docdir | --docdi | --doc | --do)
986     ac_prev=docdir ;;
987   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988     docdir=$ac_optarg ;;
989
990   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991     ac_prev=dvidir ;;
992   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993     dvidir=$ac_optarg ;;
994
995   -enable-* | --enable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1000    { (exit 1); exit 1; }; }
1001     ac_useropt_orig=$ac_useropt
1002     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003     case $ac_user_opts in
1004       *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008          ac_unrecognized_sep=', ';;
1009     esac
1010     eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014   | --exec | --exe | --ex)
1015     ac_prev=exec_prefix ;;
1016   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018   | --exec=* | --exe=* | --ex=*)
1019     exec_prefix=$ac_optarg ;;
1020
1021   -gas | --gas | --ga | --g)
1022     # Obsolete; use --with-gas.
1023     with_gas=yes ;;
1024
1025   -help | --help | --hel | --he | -h)
1026     ac_init_help=long ;;
1027   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028     ac_init_help=recursive ;;
1029   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030     ac_init_help=short ;;
1031
1032   -host | --host | --hos | --ho)
1033     ac_prev=host_alias ;;
1034   -host=* | --host=* | --hos=* | --ho=*)
1035     host_alias=$ac_optarg ;;
1036
1037   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038     ac_prev=htmldir ;;
1039   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040   | --ht=*)
1041     htmldir=$ac_optarg ;;
1042
1043   -includedir | --includedir | --includedi | --included | --include \
1044   | --includ | --inclu | --incl | --inc)
1045     ac_prev=includedir ;;
1046   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047   | --includ=* | --inclu=* | --incl=* | --inc=*)
1048     includedir=$ac_optarg ;;
1049
1050   -infodir | --infodir | --infodi | --infod | --info | --inf)
1051     ac_prev=infodir ;;
1052   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053     infodir=$ac_optarg ;;
1054
1055   -libdir | --libdir | --libdi | --libd)
1056     ac_prev=libdir ;;
1057   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058     libdir=$ac_optarg ;;
1059
1060   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061   | --libexe | --libex | --libe)
1062     ac_prev=libexecdir ;;
1063   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064   | --libexe=* | --libex=* | --libe=*)
1065     libexecdir=$ac_optarg ;;
1066
1067   -localedir | --localedir | --localedi | --localed | --locale)
1068     ac_prev=localedir ;;
1069   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070     localedir=$ac_optarg ;;
1071
1072   -localstatedir | --localstatedir | --localstatedi | --localstated \
1073   | --localstate | --localstat | --localsta | --localst | --locals)
1074     ac_prev=localstatedir ;;
1075   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077     localstatedir=$ac_optarg ;;
1078
1079   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080     ac_prev=mandir ;;
1081   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082     mandir=$ac_optarg ;;
1083
1084   -nfp | --nfp | --nf)
1085     # Obsolete; use --without-fp.
1086     with_fp=no ;;
1087
1088   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089   | --no-cr | --no-c | -n)
1090     no_create=yes ;;
1091
1092   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094     no_recursion=yes ;;
1095
1096   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098   | --oldin | --oldi | --old | --ol | --o)
1099     ac_prev=oldincludedir ;;
1100   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103     oldincludedir=$ac_optarg ;;
1104
1105   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106     ac_prev=prefix ;;
1107   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108     prefix=$ac_optarg ;;
1109
1110   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111   | --program-pre | --program-pr | --program-p)
1112     ac_prev=program_prefix ;;
1113   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115     program_prefix=$ac_optarg ;;
1116
1117   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118   | --program-suf | --program-su | --program-s)
1119     ac_prev=program_suffix ;;
1120   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122     program_suffix=$ac_optarg ;;
1123
1124   -program-transform-name | --program-transform-name \
1125   | --program-transform-nam | --program-transform-na \
1126   | --program-transform-n | --program-transform- \
1127   | --program-transform | --program-transfor \
1128   | --program-transfo | --program-transf \
1129   | --program-trans | --program-tran \
1130   | --progr-tra | --program-tr | --program-t)
1131     ac_prev=program_transform_name ;;
1132   -program-transform-name=* | --program-transform-name=* \
1133   | --program-transform-nam=* | --program-transform-na=* \
1134   | --program-transform-n=* | --program-transform-=* \
1135   | --program-transform=* | --program-transfor=* \
1136   | --program-transfo=* | --program-transf=* \
1137   | --program-trans=* | --program-tran=* \
1138   | --progr-tra=* | --program-tr=* | --program-t=*)
1139     program_transform_name=$ac_optarg ;;
1140
1141   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142     ac_prev=pdfdir ;;
1143   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144     pdfdir=$ac_optarg ;;
1145
1146   -psdir | --psdir | --psdi | --psd | --ps)
1147     ac_prev=psdir ;;
1148   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149     psdir=$ac_optarg ;;
1150
1151   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152   | -silent | --silent | --silen | --sile | --sil)
1153     silent=yes ;;
1154
1155   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156     ac_prev=sbindir ;;
1157   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158   | --sbi=* | --sb=*)
1159     sbindir=$ac_optarg ;;
1160
1161   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163   | --sharedst | --shareds | --shared | --share | --shar \
1164   | --sha | --sh)
1165     ac_prev=sharedstatedir ;;
1166   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169   | --sha=* | --sh=*)
1170     sharedstatedir=$ac_optarg ;;
1171
1172   -site | --site | --sit)
1173     ac_prev=site ;;
1174   -site=* | --site=* | --sit=*)
1175     site=$ac_optarg ;;
1176
1177   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178     ac_prev=srcdir ;;
1179   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180     srcdir=$ac_optarg ;;
1181
1182   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183   | --syscon | --sysco | --sysc | --sys | --sy)
1184     ac_prev=sysconfdir ;;
1185   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187     sysconfdir=$ac_optarg ;;
1188
1189   -target | --target | --targe | --targ | --tar | --ta | --t)
1190     ac_prev=target_alias ;;
1191   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192     target_alias=$ac_optarg ;;
1193
1194   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195     verbose=yes ;;
1196
1197   -version | --version | --versio | --versi | --vers | -V)
1198     ac_init_version=: ;;
1199
1200   -with-* | --with-*)
1201     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202     # Reject names that are not valid shell variable names.
1203     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1205    { (exit 1); exit 1; }; }
1206     ac_useropt_orig=$ac_useropt
1207     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208     case $ac_user_opts in
1209       *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213          ac_unrecognized_sep=', ';;
1214     esac
1215     eval with_$ac_useropt=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1222    { (exit 1); exit 1; }; }
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=no ;;
1233
1234   --x)
1235     # Obsolete; use --with-x.
1236     with_x=yes ;;
1237
1238   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1239   | --x-incl | --x-inc | --x-in | --x-i)
1240     ac_prev=x_includes ;;
1241   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1242   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1243     x_includes=$ac_optarg ;;
1244
1245   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1246   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1247     ac_prev=x_libraries ;;
1248   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1249   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1250     x_libraries=$ac_optarg ;;
1251
1252   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1253 Try \`$0 --help' for more information." >&2
1254    { (exit 1); exit 1; }; }
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1261       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1262    { (exit 1); exit 1; }; }
1263     eval $ac_envvar=\$ac_optarg
1264     export $ac_envvar ;;
1265
1266   *)
1267     # FIXME: should be removed in autoconf 3.0.
1268     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1269     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1271     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1272     ;;
1273
1274   esac
1275 done
1276
1277 if test -n "$ac_prev"; then
1278   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1279   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1280    { (exit 1); exit 1; }; }
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1287    { (exit 1); exit 1; }; } ;;
1288     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1289   esac
1290 fi
1291
1292 # Check all directory arguments for consistency.
1293 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294                 datadir sysconfdir sharedstatedir localstatedir includedir \
1295                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296                 libdir localedir mandir
1297 do
1298   eval ac_val=\$$ac_var
1299   # Remove trailing slashes.
1300   case $ac_val in
1301     */ )
1302       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1303       eval $ac_var=\$ac_val;;
1304   esac
1305   # Be sure to have absolute directory names.
1306   case $ac_val in
1307     [\\/$]* | ?:[\\/]* )  continue;;
1308     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309   esac
1310   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311    { (exit 1); exit 1; }; }
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326     If a cross compiler is detected then cross compile mode will be used." >&2
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1342    { (exit 1); exit 1; }; }
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1345    { (exit 1); exit 1; }; }
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350   ac_srcdir_defaulted=yes
1351   # Try the directory containing this script, then the parent directory.
1352   ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354          X"$as_myself" : 'X\(//\)[^/]' \| \
1355          X"$as_myself" : 'X\(//\)$' \| \
1356          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)[^/].*/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\/\)$/{
1367             s//\1/
1368             q
1369           }
1370           /^X\(\/\).*/{
1371             s//\1/
1372             q
1373           }
1374           s/.*/./; q'`
1375   srcdir=$ac_confdir
1376   if test ! -r "$srcdir/$ac_unique_file"; then
1377     srcdir=..
1378   fi
1379 else
1380   ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385    { (exit 1); exit 1; }; }
1386 fi
1387 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388 ac_abs_confdir=`(
1389         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1390    { (exit 1); exit 1; }; }
1391         pwd)`
1392 # When building in place, set srcdir=.
1393 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394   srcdir=.
1395 fi
1396 # Remove unnecessary trailing slashes from srcdir.
1397 # Double slashes in file names in object file debugging info
1398 # mess up M-x gdb in Emacs.
1399 case $srcdir in
1400 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401 esac
1402 for ac_var in $ac_precious_vars; do
1403   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404   eval ac_env_${ac_var}_value=\$${ac_var}
1405   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 done
1408
1409 #
1410 # Report the --help message.
1411 #
1412 if test "$ac_init_help" = "long"; then
1413   # Omit some internal or obsolete options to make the list less imposing.
1414   # This message is too long to be a string in the A/UX 3.1 sh.
1415   cat <<_ACEOF
1416 \`configure' configures PostgreSQL 9.4devel to adapt to many kinds of systems.
1417
1418 Usage: $0 [OPTION]... [VAR=VALUE]...
1419
1420 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421 VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
1423 Defaults for the options are specified in brackets.
1424
1425 Configuration:
1426   -h, --help              display this help and exit
1427       --help=short        display options specific to this package
1428       --help=recursive    display the short help of all the included packages
1429   -V, --version           display version information and exit
1430   -q, --quiet, --silent   do not print \`checking...' messages
1431       --cache-file=FILE   cache test results in FILE [disabled]
1432   -C, --config-cache      alias for \`--cache-file=config.cache'
1433   -n, --no-create         do not create output files
1434       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
1436 Installation directories:
1437   --prefix=PREFIX         install architecture-independent files in PREFIX
1438                           [$ac_default_prefix]
1439   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440                           [PREFIX]
1441
1442 By default, \`make install' will install all the files in
1443 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445 for instance \`--prefix=\$HOME'.
1446
1447 For better control, use the options below.
1448
1449 Fine tuning of the installation directories:
1450   --bindir=DIR            user executables [EPREFIX/bin]
1451   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1452   --libexecdir=DIR        program executables [EPREFIX/libexec]
1453   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1454   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1455   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1456   --libdir=DIR            object code libraries [EPREFIX/lib]
1457   --includedir=DIR        C header files [PREFIX/include]
1458   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1459   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1460   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1461   --infodir=DIR           info documentation [DATAROOTDIR/info]
1462   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1463   --mandir=DIR            man documentation [DATAROOTDIR/man]
1464   --docdir=DIR            documentation root [DATAROOTDIR/doc/postgresql]
1465   --htmldir=DIR           html documentation [DOCDIR]
1466   --dvidir=DIR            dvi documentation [DOCDIR]
1467   --pdfdir=DIR            pdf documentation [DOCDIR]
1468   --psdir=DIR             ps documentation [DOCDIR]
1469 _ACEOF
1470
1471   cat <<\_ACEOF
1472
1473 System types:
1474   --build=BUILD     configure for building on BUILD [guessed]
1475   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480   case $ac_init_help in
1481      short | recursive ) echo "Configuration of PostgreSQL 9.4devel:";;
1482    esac
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-option-checking  ignore unrecognized --enable/--with options
1487   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489   --disable-integer-datetimes
1490                           disable 64-bit integer date/time support
1491   --enable-nls[=LANGUAGES]
1492                           enable Native Language Support
1493   --disable-rpath         do not embed shared library search path in
1494                           executables
1495   --disable-spinlocks     do not use spinlocks
1496   --enable-debug          build with debugging symbols (-g)
1497   --enable-profiling      build with profiling enabled
1498   --enable-coverage       build with coverage testing instrumentation
1499   --enable-dtrace         build with DTrace support
1500   --enable-depend         turn on automatic dependency tracking
1501   --enable-cassert        enable assertion checks (for debugging)
1502   --disable-thread-safety disable thread-safety in client libraries
1503   --disable-largefile     omit support for large files
1504   --disable-float4-byval  disable float4 passed by value
1505   --disable-float8-byval  disable float8 passed by value
1506
1507 Optional Packages:
1508   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1509   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1510   --with-template=NAME    override operating system template
1511   --with-includes=DIRS    look for additional header files in DIRS
1512   --with-libraries=DIRS   look for additional libraries in DIRS
1513   --with-libs=DIRS        alternative spelling of --with-libraries
1514   --with-pgport=PORTNUM   set default port number [5432]
1515   --with-blocksize=BLOCKSIZE
1516                           set table block size in kB [8]
1517   --with-segsize=SEGSIZE  set table segment size in GB [1]
1518   --with-wal-blocksize=BLOCKSIZE
1519                           set WAL block size in kB [8]
1520   --with-wal-segsize=SEGSIZE
1521                           set WAL segment size in MB [16]
1522   --with-CC=CMD           set compiler (deprecated)
1523   --with-tcl              build Tcl modules (PL/Tcl)
1524   --with-tclconfig=DIR    tclConfig.sh is in DIR
1525   --with-perl             build Perl modules (PL/Perl)
1526   --with-python           build Python modules (PL/Python)
1527   --with-gssapi           build with GSSAPI support
1528   --with-krb5             build with Kerberos 5 support
1529   --with-krb-srvnam=NAME  default service principal name in Kerberos
1530                           [postgres]
1531   --with-pam              build with PAM support
1532   --with-ldap             build with LDAP support
1533   --with-bonjour          build with Bonjour support
1534   --with-openssl          build with OpenSSL support
1535   --with-selinux          build with SELinux support
1536   --without-readline      do not use GNU Readline nor BSD Libedit for editing
1537   --with-libedit-preferred
1538                           prefer BSD Libedit over GNU Readline
1539   --with-ossp-uuid        build contrib/uuid-ossp, requires OSSP UUID library
1540   --with-libxml           build with XML support
1541   --with-libxslt          use XSLT support when building contrib/xml2
1542   --with-system-tzdata=DIR
1543                           use system time zone data in DIR
1544   --without-zlib          do not use Zlib
1545   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CPP         C preprocessor
1556   LDFLAGS_EX  extra linker flags for linking executables only
1557   LDFLAGS_SL  extra linker flags for linking shared libraries only
1558   DOCBOOKSTYLE
1559               location of DocBook stylesheets
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <pgsql-bugs@postgresql.org>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 PostgreSQL configure 9.4devel
1628 generated by GNU Autoconf 2.63
1629
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634
1635 Copyright (c) 1996-2013, PostgreSQL Global Development Group
1636 _ACEOF
1637   exit
1638 fi
1639 cat >config.log <<_ACEOF
1640 This file contains any messages produced by compilers while
1641 running configure, to aid debugging if configure makes a mistake.
1642
1643 It was created by PostgreSQL $as_me 9.4devel, which was
1644 generated by GNU Autoconf 2.63.  Invocation command line was
1645
1646   $ $0 $@
1647
1648 _ACEOF
1649 exec 5>>config.log
1650 {
1651 cat <<_ASUNAME
1652 ## --------- ##
1653 ## Platform. ##
1654 ## --------- ##
1655
1656 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1657 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1658 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1659 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1660 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1661
1662 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1663 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1664
1665 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1666 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1667 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1668 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1669 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1670 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1671 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1672
1673 _ASUNAME
1674
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   $as_echo "PATH: $as_dir"
1681 done
1682 IFS=$as_save_IFS
1683
1684 } >&5
1685
1686 cat >&5 <<_ACEOF
1687
1688
1689 ## ----------- ##
1690 ## Core tests. ##
1691 ## ----------- ##
1692
1693 _ACEOF
1694
1695
1696 # Keep a trace of the command line.
1697 # Strip out --no-create and --no-recursion so they do not pile up.
1698 # Strip out --silent because we don't want to record it for future runs.
1699 # Also quote any args containing shell meta-characters.
1700 # Make two passes to allow for proper duplicate-argument suppression.
1701 ac_configure_args=
1702 ac_configure_args0=
1703 ac_configure_args1=
1704 ac_must_keep_next=false
1705 for ac_pass in 1 2
1706 do
1707   for ac_arg
1708   do
1709     case $ac_arg in
1710     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1711     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1712     | -silent | --silent | --silen | --sile | --sil)
1713       continue ;;
1714     *\'*)
1715       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1716     esac
1717     case $ac_pass in
1718     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1719     2)
1720       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1721       if test $ac_must_keep_next = true; then
1722         ac_must_keep_next=false # Got value, back to normal.
1723       else
1724         case $ac_arg in
1725           *=* | --config-cache | -C | -disable-* | --disable-* \
1726           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1727           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1728           | -with-* | --with-* | -without-* | --without-* | --x)
1729             case "$ac_configure_args0 " in
1730               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1731             esac
1732             ;;
1733           -* ) ac_must_keep_next=true ;;
1734         esac
1735       fi
1736       ac_configure_args="$ac_configure_args '$ac_arg'"
1737       ;;
1738     esac
1739   done
1740 done
1741 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1742 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1743
1744 # When interrupted or exit'd, cleanup temporary files, and complete
1745 # config.log.  We remove comments because anyway the quotes in there
1746 # would cause problems or look ugly.
1747 # WARNING: Use '\'' to represent an apostrophe within the trap.
1748 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1749 trap 'exit_status=$?
1750   # Save into config.log some information that might help in debugging.
1751   {
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ---------------- ##
1756 ## Cache variables. ##
1757 ## ---------------- ##
1758 _ASBOX
1759     echo
1760     # The following way of writing the cache mishandles newlines in values,
1761 (
1762   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1763     eval ac_val=\$$ac_var
1764     case $ac_val in #(
1765     *${as_nl}*)
1766       case $ac_var in #(
1767       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1768 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1769       esac
1770       case $ac_var in #(
1771       _ | IFS | as_nl) ;; #(
1772       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1773       *) $as_unset $ac_var ;;
1774       esac ;;
1775     esac
1776   done
1777   (set) 2>&1 |
1778     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1779     *${as_nl}ac_space=\ *)
1780       sed -n \
1781         "s/'\''/'\''\\\\'\'''\''/g;
1782           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1783       ;; #(
1784     *)
1785       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1786       ;;
1787     esac |
1788     sort
1789 )
1790     echo
1791
1792     cat <<\_ASBOX
1793 ## ----------------- ##
1794 ## Output variables. ##
1795 ## ----------------- ##
1796 _ASBOX
1797     echo
1798     for ac_var in $ac_subst_vars
1799     do
1800       eval ac_val=\$$ac_var
1801       case $ac_val in
1802       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1803       esac
1804       $as_echo "$ac_var='\''$ac_val'\''"
1805     done | sort
1806     echo
1807
1808     if test -n "$ac_subst_files"; then
1809       cat <<\_ASBOX
1810 ## ------------------- ##
1811 ## File substitutions. ##
1812 ## ------------------- ##
1813 _ASBOX
1814       echo
1815       for ac_var in $ac_subst_files
1816       do
1817         eval ac_val=\$$ac_var
1818         case $ac_val in
1819         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820         esac
1821         $as_echo "$ac_var='\''$ac_val'\''"
1822       done | sort
1823       echo
1824     fi
1825
1826     if test -s confdefs.h; then
1827       cat <<\_ASBOX
1828 ## ----------- ##
1829 ## confdefs.h. ##
1830 ## ----------- ##
1831 _ASBOX
1832       echo
1833       cat confdefs.h
1834       echo
1835     fi
1836     test "$ac_signal" != 0 &&
1837       $as_echo "$as_me: caught signal $ac_signal"
1838     $as_echo "$as_me: exit $exit_status"
1839   } >&5
1840   rm -f core *.core core.conftest.* &&
1841     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842     exit $exit_status
1843 ' 0
1844 for ac_signal in 1 2 13 15; do
1845   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1846 done
1847 ac_signal=0
1848
1849 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1850 rm -f -r conftest* confdefs.h
1851
1852 # Predefined preprocessor variables.
1853
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_NAME "$PACKAGE_NAME"
1856 _ACEOF
1857
1858
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1861 _ACEOF
1862
1863
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1866 _ACEOF
1867
1868
1869 cat >>confdefs.h <<_ACEOF
1870 #define PACKAGE_STRING "$PACKAGE_STRING"
1871 _ACEOF
1872
1873
1874 cat >>confdefs.h <<_ACEOF
1875 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1876 _ACEOF
1877
1878
1879 # Let the site file select an alternate cache file if it wants to.
1880 # Prefer an explicitly selected file to automatically selected ones.
1881 ac_site_file1=NONE
1882 ac_site_file2=NONE
1883 if test -n "$CONFIG_SITE"; then
1884   ac_site_file1=$CONFIG_SITE
1885 elif test "x$prefix" != xNONE; then
1886   ac_site_file1=$prefix/share/config.site
1887   ac_site_file2=$prefix/etc/config.site
1888 else
1889   ac_site_file1=$ac_default_prefix/share/config.site
1890   ac_site_file2=$ac_default_prefix/etc/config.site
1891 fi
1892 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1893 do
1894   test "x$ac_site_file" = xNONE && continue
1895   if test -r "$ac_site_file"; then
1896     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1897 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1898     sed 's/^/| /' "$ac_site_file" >&5
1899     . "$ac_site_file"
1900   fi
1901 done
1902
1903 if test -r "$cache_file"; then
1904   # Some versions of bash will fail to source /dev/null (special
1905   # files actually), so we avoid doing that.
1906   if test -f "$cache_file"; then
1907     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1908 $as_echo "$as_me: loading cache $cache_file" >&6;}
1909     case $cache_file in
1910       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1911       *)                      . "./$cache_file";;
1912     esac
1913   fi
1914 else
1915   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1916 $as_echo "$as_me: creating cache $cache_file" >&6;}
1917   >$cache_file
1918 fi
1919
1920 # Check that the precious variables saved in the cache have kept the same
1921 # value.
1922 ac_cache_corrupted=false
1923 for ac_var in $ac_precious_vars; do
1924   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1925   eval ac_new_set=\$ac_env_${ac_var}_set
1926   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1927   eval ac_new_val=\$ac_env_${ac_var}_value
1928   case $ac_old_set,$ac_new_set in
1929     set,)
1930       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1931 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1932       ac_cache_corrupted=: ;;
1933     ,set)
1934       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1935 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,);;
1938     *)
1939       if test "x$ac_old_val" != "x$ac_new_val"; then
1940         # differences in whitespace do not lead to failure.
1941         ac_old_val_w=`echo x $ac_old_val`
1942         ac_new_val_w=`echo x $ac_new_val`
1943         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1944           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946           ac_cache_corrupted=:
1947         else
1948           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1949 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1950           eval $ac_var=\$ac_old_val
1951         fi
1952         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1953 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1954         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1955 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1956       fi;;
1957   esac
1958   # Pass precious variables to config.status.
1959   if test "$ac_new_set" = set; then
1960     case $ac_new_val in
1961     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1962     *) ac_arg=$ac_var=$ac_new_val ;;
1963     esac
1964     case " $ac_configure_args " in
1965       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1966       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1967     esac
1968   fi
1969 done
1970 if $ac_cache_corrupted; then
1971   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1973   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1977    { (exit 1); exit 1; }; }
1978 fi
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2009
2010
2011
2012
2013
2014
2015 ac_aux_dir=
2016 for ac_dir in config "$srcdir"/config; do
2017   if test -f "$ac_dir/install-sh"; then
2018     ac_aux_dir=$ac_dir
2019     ac_install_sh="$ac_aux_dir/install-sh -c"
2020     break
2021   elif test -f "$ac_dir/install.sh"; then
2022     ac_aux_dir=$ac_dir
2023     ac_install_sh="$ac_aux_dir/install.sh -c"
2024     break
2025   elif test -f "$ac_dir/shtool"; then
2026     ac_aux_dir=$ac_dir
2027     ac_install_sh="$ac_aux_dir/shtool install -c"
2028     break
2029   fi
2030 done
2031 if test -z "$ac_aux_dir"; then
2032   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2033 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2034    { (exit 1); exit 1; }; }
2035 fi
2036
2037 # These three variables are undocumented and unsupported,
2038 # and are intended to be withdrawn in a future Autoconf release.
2039 # They can cause serious problems if a builder's source tree is in a directory
2040 # whose full name contains unusual characters.
2041 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2042 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2043 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2044
2045
2046
2047 configure_args=$ac_configure_args
2048
2049
2050
2051 cat >>confdefs.h <<_ACEOF
2052 #define PG_VERSION "$PACKAGE_VERSION"
2053 _ACEOF
2054
2055 PG_MAJORVERSION=`expr "$PACKAGE_VERSION" : '\([0-9][0-9]*\.[0-9][0-9]*\)'`
2056
2057
2058 cat >>confdefs.h <<_ACEOF
2059 #define PG_MAJORVERSION "$PG_MAJORVERSION"
2060 _ACEOF
2061
2062
2063 # Make sure we can run config.sub.
2064 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2065   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2066 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2067    { (exit 1); exit 1; }; }
2068
2069 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2070 $as_echo_n "checking build system type... " >&6; }
2071 if test "${ac_cv_build+set}" = set; then
2072   $as_echo_n "(cached) " >&6
2073 else
2074   ac_build_alias=$build_alias
2075 test "x$ac_build_alias" = x &&
2076   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2077 test "x$ac_build_alias" = x &&
2078   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2079 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2080    { (exit 1); exit 1; }; }
2081 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2082   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2083 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2084    { (exit 1); exit 1; }; }
2085
2086 fi
2087 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2088 $as_echo "$ac_cv_build" >&6; }
2089 case $ac_cv_build in
2090 *-*-*) ;;
2091 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2092 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2093    { (exit 1); exit 1; }; };;
2094 esac
2095 build=$ac_cv_build
2096 ac_save_IFS=$IFS; IFS='-'
2097 set x $ac_cv_build
2098 shift
2099 build_cpu=$1
2100 build_vendor=$2
2101 shift; shift
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2104 build_os=$*
2105 IFS=$ac_save_IFS
2106 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2107
2108
2109 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2110 $as_echo_n "checking host system type... " >&6; }
2111 if test "${ac_cv_host+set}" = set; then
2112   $as_echo_n "(cached) " >&6
2113 else
2114   if test "x$host_alias" = x; then
2115   ac_cv_host=$ac_cv_build
2116 else
2117   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2118     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2119 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2120    { (exit 1); exit 1; }; }
2121 fi
2122
2123 fi
2124 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2125 $as_echo "$ac_cv_host" >&6; }
2126 case $ac_cv_host in
2127 *-*-*) ;;
2128 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2129 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2130    { (exit 1); exit 1; }; };;
2131 esac
2132 host=$ac_cv_host
2133 ac_save_IFS=$IFS; IFS='-'
2134 set x $ac_cv_host
2135 shift
2136 host_cpu=$1
2137 host_vendor=$2
2138 shift; shift
2139 # Remember, the first character of IFS is used to create $*,
2140 # except with old shells:
2141 host_os=$*
2142 IFS=$ac_save_IFS
2143 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2144
2145
2146
2147 template=
2148 { $as_echo "$as_me:$LINENO: checking which template to use" >&5
2149 $as_echo_n "checking which template to use... " >&6; }
2150
2151
2152
2153
2154 # Check whether --with-template was given.
2155 if test "${with_template+set}" = set; then
2156   withval=$with_template;
2157   case $withval in
2158     yes)
2159       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2160 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2161    { (exit 1); exit 1; }; }
2162       ;;
2163     no)
2164       { { $as_echo "$as_me:$LINENO: error: argument required for --with-template option" >&5
2165 $as_echo "$as_me: error: argument required for --with-template option" >&2;}
2166    { (exit 1); exit 1; }; }
2167       ;;
2168     *)
2169
2170   case $withval in
2171     list)   echo; ls "$srcdir/src/template"; exit;;
2172     *)      if test -f "$srcdir/src/template/$with_template" ; then
2173               template=$withval
2174             else
2175               { { $as_echo "$as_me:$LINENO: error: '$withval' is not a valid template name. Use 'list' for a list." >&5
2176 $as_echo "$as_me: error: '$withval' is not a valid template name. Use 'list' for a list." >&2;}
2177    { (exit 1); exit 1; }; }
2178             fi;;
2179   esac
2180
2181       ;;
2182   esac
2183
2184 else
2185
2186 # --with-template not given
2187
2188 case $host_os in
2189      aix*) template=aix ;;
2190   cygwin*) template=cygwin ;;
2191   darwin*) template=darwin ;;
2192 dragonfly*) template=netbsd ;;
2193  freebsd*) template=freebsd ;;
2194     hpux*) template=hpux ;;
2195     irix*) template=irix ;;
2196  linux*|gnu*|k*bsd*-gnu)
2197            template=linux ;;
2198    mingw*) template=win32 ;;
2199   netbsd*) template=netbsd ;;
2200  openbsd*) template=openbsd ;;
2201      osf*) template=osf ;;
2202      sco*) template=sco ;;
2203  solaris*) template=solaris ;;
2204    sysv5*) template=unixware ;;
2205 esac
2206
2207   if test x"$template" = x"" ; then
2208     { { $as_echo "$as_me:$LINENO: error:
2209 *******************************************************************
2210 PostgreSQL has apparently not been ported to your platform yet.
2211 To try a manual configuration, look into the src/template directory
2212 for a similar platform and use the '--with-template=' option.
2213
2214 Please also contact <pgsql-bugs@postgresql.org> to see about
2215 rectifying this.  Include the above 'checking host system type...'
2216 line.
2217 *******************************************************************
2218 " >&5
2219 $as_echo "$as_me: error:
2220 *******************************************************************
2221 PostgreSQL has apparently not been ported to your platform yet.
2222 To try a manual configuration, look into the src/template directory
2223 for a similar platform and use the '--with-template=' option.
2224
2225 Please also contact <pgsql-bugs@postgresql.org> to see about
2226 rectifying this.  Include the above 'checking host system type...'
2227 line.
2228 *******************************************************************
2229 " >&2;}
2230    { (exit 1); exit 1; }; }
2231   fi
2232
2233
2234 fi
2235
2236
2237
2238 { $as_echo "$as_me:$LINENO: result: $template" >&5
2239 $as_echo "$template" >&6; }
2240
2241 PORTNAME=$template
2242
2243
2244 # Initialize default assumption that we do not need separate assembly code
2245 # for TAS (test-and-set).  This can be overridden by the template file
2246 # when it's executed.
2247 need_tas=no
2248 tas_file=dummy.s
2249
2250
2251
2252 ##
2253 ## Command line options
2254 ##
2255
2256 #
2257 # Add non-standard directories to the include path
2258 #
2259
2260
2261
2262 # Check whether --with-includes was given.
2263 if test "${with_includes+set}" = set; then
2264   withval=$with_includes;
2265   case $withval in
2266     yes)
2267       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2268 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2269    { (exit 1); exit 1; }; }
2270       ;;
2271     no)
2272       { { $as_echo "$as_me:$LINENO: error: argument required for --with-includes option" >&5
2273 $as_echo "$as_me: error: argument required for --with-includes option" >&2;}
2274    { (exit 1); exit 1; }; }
2275       ;;
2276     *)
2277
2278       ;;
2279   esac
2280
2281 fi
2282
2283
2284
2285
2286 #
2287 # Add non-standard directories to the library search path
2288 #
2289
2290
2291
2292 # Check whether --with-libraries was given.
2293 if test "${with_libraries+set}" = set; then
2294   withval=$with_libraries;
2295   case $withval in
2296     yes)
2297       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2298 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2299    { (exit 1); exit 1; }; }
2300       ;;
2301     no)
2302       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libraries option" >&5
2303 $as_echo "$as_me: error: argument required for --with-libraries option" >&2;}
2304    { (exit 1); exit 1; }; }
2305       ;;
2306     *)
2307       LIBRARY_DIRS=$withval
2308       ;;
2309   esac
2310
2311 fi
2312
2313
2314
2315
2316
2317
2318 # Check whether --with-libs was given.
2319 if test "${with_libs+set}" = set; then
2320   withval=$with_libs;
2321   case $withval in
2322     yes)
2323       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2324 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2325    { (exit 1); exit 1; }; }
2326       ;;
2327     no)
2328       { { $as_echo "$as_me:$LINENO: error: argument required for --with-libs option" >&5
2329 $as_echo "$as_me: error: argument required for --with-libs option" >&2;}
2330    { (exit 1); exit 1; }; }
2331       ;;
2332     *)
2333       LIBRARY_DIRS=$withval
2334       ;;
2335   esac
2336
2337 fi
2338
2339
2340
2341
2342 #
2343 # 64-bit integer date/time storage: enabled by default.
2344 #
2345 { $as_echo "$as_me:$LINENO: checking whether to build with 64-bit integer date/time support" >&5
2346 $as_echo_n "checking whether to build with 64-bit integer date/time support... " >&6; }
2347
2348
2349 # Check whether --enable-integer-datetimes was given.
2350 if test "${enable_integer_datetimes+set}" = set; then
2351   enableval=$enable_integer_datetimes;
2352   case $enableval in
2353     yes)
2354
2355 cat >>confdefs.h <<\_ACEOF
2356 #define USE_INTEGER_DATETIMES 1
2357 _ACEOF
2358
2359       ;;
2360     no)
2361       :
2362       ;;
2363     *)
2364       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-integer-datetimes option" >&5
2365 $as_echo "$as_me: error: no argument expected for --enable-integer-datetimes option" >&2;}
2366    { (exit 1); exit 1; }; }
2367       ;;
2368   esac
2369
2370 else
2371   enable_integer_datetimes=yes
2372
2373 cat >>confdefs.h <<\_ACEOF
2374 #define USE_INTEGER_DATETIMES 1
2375 _ACEOF
2376
2377 fi
2378
2379
2380 { $as_echo "$as_me:$LINENO: result: $enable_integer_datetimes" >&5
2381 $as_echo "$enable_integer_datetimes" >&6; }
2382
2383
2384 #
2385 # NLS
2386 #
2387 { $as_echo "$as_me:$LINENO: checking whether NLS is wanted" >&5
2388 $as_echo_n "checking whether NLS is wanted... " >&6; }
2389
2390
2391 # Check whether --enable-nls was given.
2392 if test "${enable_nls+set}" = set; then
2393   enableval=$enable_nls;
2394   case $enableval in
2395     yes)
2396       :
2397       ;;
2398     no)
2399       :
2400       ;;
2401     *)
2402       enable_nls=yes
2403 WANTED_LANGUAGES=$enableval
2404       ;;
2405   esac
2406
2407 else
2408   enable_nls=no
2409 fi
2410
2411
2412
2413 if test "$enable_nls" = yes; then
2414
2415 cat >>confdefs.h <<\_ACEOF
2416 #define ENABLE_NLS 1
2417 _ACEOF
2418
2419 fi
2420
2421 { $as_echo "$as_me:$LINENO: result: $enable_nls" >&5
2422 $as_echo "$enable_nls" >&6; }
2423
2424
2425
2426 #
2427 # Default port number (--with-pgport), default 5432
2428 #
2429 { $as_echo "$as_me:$LINENO: checking for default port number" >&5
2430 $as_echo_n "checking for default port number... " >&6; }
2431
2432
2433
2434 # Check whether --with-pgport was given.
2435 if test "${with_pgport+set}" = set; then
2436   withval=$with_pgport;
2437   case $withval in
2438     yes)
2439       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2440 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2441    { (exit 1); exit 1; }; }
2442       ;;
2443     no)
2444       { { $as_echo "$as_me:$LINENO: error: argument required for --with-pgport option" >&5
2445 $as_echo "$as_me: error: argument required for --with-pgport option" >&2;}
2446    { (exit 1); exit 1; }; }
2447       ;;
2448     *)
2449       default_port=$withval
2450       ;;
2451   esac
2452
2453 else
2454   default_port=5432
2455 fi
2456
2457
2458 { $as_echo "$as_me:$LINENO: result: $default_port" >&5
2459 $as_echo "$default_port" >&6; }
2460 # Need both of these because some places want an integer and some a string
2461
2462 cat >>confdefs.h <<_ACEOF
2463 #define DEF_PGPORT ${default_port}
2464 _ACEOF
2465
2466
2467 cat >>confdefs.h <<_ACEOF
2468 #define DEF_PGPORT_STR "${default_port}"
2469 _ACEOF
2470
2471
2472
2473 #
2474 # '-rpath'-like feature can be disabled
2475 #
2476
2477
2478 # Check whether --enable-rpath was given.
2479 if test "${enable_rpath+set}" = set; then
2480   enableval=$enable_rpath;
2481   case $enableval in
2482     yes)
2483       :
2484       ;;
2485     no)
2486       :
2487       ;;
2488     *)
2489       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-rpath option" >&5
2490 $as_echo "$as_me: error: no argument expected for --enable-rpath option" >&2;}
2491    { (exit 1); exit 1; }; }
2492       ;;
2493   esac
2494
2495 else
2496   enable_rpath=yes
2497
2498 fi
2499
2500
2501
2502
2503 #
2504 # Spinlocks
2505 #
2506
2507
2508 # Check whether --enable-spinlocks was given.
2509 if test "${enable_spinlocks+set}" = set; then
2510   enableval=$enable_spinlocks;
2511   case $enableval in
2512     yes)
2513       :
2514       ;;
2515     no)
2516       :
2517       ;;
2518     *)
2519       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-spinlocks option" >&5
2520 $as_echo "$as_me: error: no argument expected for --enable-spinlocks option" >&2;}
2521    { (exit 1); exit 1; }; }
2522       ;;
2523   esac
2524
2525 else
2526   enable_spinlocks=yes
2527
2528 fi
2529
2530
2531
2532 #
2533 # --enable-debug adds -g to compiler flags
2534 #
2535
2536
2537 # Check whether --enable-debug was given.
2538 if test "${enable_debug+set}" = set; then
2539   enableval=$enable_debug;
2540   case $enableval in
2541     yes)
2542       :
2543       ;;
2544     no)
2545       :
2546       ;;
2547     *)
2548       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-debug option" >&5
2549 $as_echo "$as_me: error: no argument expected for --enable-debug option" >&2;}
2550    { (exit 1); exit 1; }; }
2551       ;;
2552   esac
2553
2554 else
2555   enable_debug=no
2556
2557 fi
2558
2559
2560
2561
2562 #
2563 # --enable-profiling enables gcc profiling
2564 #
2565
2566
2567 # Check whether --enable-profiling was given.
2568 if test "${enable_profiling+set}" = set; then
2569   enableval=$enable_profiling;
2570   case $enableval in
2571     yes)
2572       :
2573       ;;
2574     no)
2575       :
2576       ;;
2577     *)
2578       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-profiling option" >&5
2579 $as_echo "$as_me: error: no argument expected for --enable-profiling option" >&2;}
2580    { (exit 1); exit 1; }; }
2581       ;;
2582   esac
2583
2584 else
2585   enable_profiling=no
2586
2587 fi
2588
2589
2590
2591 #
2592 # --enable-coverage enables generation of code coverage metrics with gcov
2593 #
2594
2595
2596 # Check whether --enable-coverage was given.
2597 if test "${enable_coverage+set}" = set; then
2598   enableval=$enable_coverage;
2599   case $enableval in
2600     yes)
2601       for ac_prog in gcov
2602 do
2603   # Extract the first word of "$ac_prog", so it can be a program name with args.
2604 set dummy $ac_prog; ac_word=$2
2605 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2606 $as_echo_n "checking for $ac_word... " >&6; }
2607 if test "${ac_cv_prog_GCOV+set}" = set; then
2608   $as_echo_n "(cached) " >&6
2609 else
2610   if test -n "$GCOV"; then
2611   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
2612 else
2613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618   for ac_exec_ext in '' $ac_executable_extensions; do
2619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2620     ac_cv_prog_GCOV="$ac_prog"
2621     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2622     break 2
2623   fi
2624 done
2625 done
2626 IFS=$as_save_IFS
2627
2628 fi
2629 fi
2630 GCOV=$ac_cv_prog_GCOV
2631 if test -n "$GCOV"; then
2632   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
2633 $as_echo "$GCOV" >&6; }
2634 else
2635   { $as_echo "$as_me:$LINENO: result: no" >&5
2636 $as_echo "no" >&6; }
2637 fi
2638
2639
2640   test -n "$GCOV" && break
2641 done
2642
2643 if test -z "$GCOV"; then
2644   { { $as_echo "$as_me:$LINENO: error: gcov not found" >&5
2645 $as_echo "$as_me: error: gcov not found" >&2;}
2646    { (exit 1); exit 1; }; }
2647 fi
2648 for ac_prog in lcov
2649 do
2650   # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy $ac_prog; ac_word=$2
2652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if test "${ac_cv_prog_LCOV+set}" = set; then
2655   $as_echo_n "(cached) " >&6
2656 else
2657   if test -n "$LCOV"; then
2658   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH
2662 do
2663   IFS=$as_save_IFS
2664   test -z "$as_dir" && as_dir=.
2665   for ac_exec_ext in '' $ac_executable_extensions; do
2666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667     ac_cv_prog_LCOV="$ac_prog"
2668     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669     break 2
2670   fi
2671 done
2672 done
2673 IFS=$as_save_IFS
2674
2675 fi
2676 fi
2677 LCOV=$ac_cv_prog_LCOV
2678 if test -n "$LCOV"; then
2679   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
2680 $as_echo "$LCOV" >&6; }
2681 else
2682   { $as_echo "$as_me:$LINENO: result: no" >&5
2683 $as_echo "no" >&6; }
2684 fi
2685
2686
2687   test -n "$LCOV" && break
2688 done
2689
2690 if test -z "$LCOV"; then
2691   { { $as_echo "$as_me:$LINENO: error: lcov not found" >&5
2692 $as_echo "$as_me: error: lcov not found" >&2;}
2693    { (exit 1); exit 1; }; }
2694 fi
2695 for ac_prog in genhtml
2696 do
2697   # Extract the first word of "$ac_prog", so it can be a program name with args.
2698 set dummy $ac_prog; ac_word=$2
2699 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2700 $as_echo_n "checking for $ac_word... " >&6; }
2701 if test "${ac_cv_prog_GENHTML+set}" = set; then
2702   $as_echo_n "(cached) " >&6
2703 else
2704   if test -n "$GENHTML"; then
2705   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
2706 else
2707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2708 for as_dir in $PATH
2709 do
2710   IFS=$as_save_IFS
2711   test -z "$as_dir" && as_dir=.
2712   for ac_exec_ext in '' $ac_executable_extensions; do
2713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2714     ac_cv_prog_GENHTML="$ac_prog"
2715     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2716     break 2
2717   fi
2718 done
2719 done
2720 IFS=$as_save_IFS
2721
2722 fi
2723 fi
2724 GENHTML=$ac_cv_prog_GENHTML
2725 if test -n "$GENHTML"; then
2726   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
2727 $as_echo "$GENHTML" >&6; }
2728 else
2729   { $as_echo "$as_me:$LINENO: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733
2734   test -n "$GENHTML" && break
2735 done
2736
2737 if test -z "$GENHTML"; then
2738   { { $as_echo "$as_me:$LINENO: error: genhtml not found" >&5
2739 $as_echo "$as_me: error: genhtml not found" >&2;}
2740    { (exit 1); exit 1; }; }
2741 fi
2742       ;;
2743     no)
2744       :
2745       ;;
2746     *)
2747       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-coverage option" >&5
2748 $as_echo "$as_me: error: no argument expected for --enable-coverage option" >&2;}
2749    { (exit 1); exit 1; }; }
2750       ;;
2751   esac
2752
2753 else
2754   enable_coverage=no
2755
2756 fi
2757
2758
2759
2760
2761 #
2762 # DTrace
2763 #
2764
2765
2766 # Check whether --enable-dtrace was given.
2767 if test "${enable_dtrace+set}" = set; then
2768   enableval=$enable_dtrace;
2769   case $enableval in
2770     yes)
2771       for ac_prog in dtrace
2772 do
2773   # Extract the first word of "$ac_prog", so it can be a program name with args.
2774 set dummy $ac_prog; ac_word=$2
2775 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2776 $as_echo_n "checking for $ac_word... " >&6; }
2777 if test "${ac_cv_prog_DTRACE+set}" = set; then
2778   $as_echo_n "(cached) " >&6
2779 else
2780   if test -n "$DTRACE"; then
2781   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
2782 else
2783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784 for as_dir in $PATH
2785 do
2786   IFS=$as_save_IFS
2787   test -z "$as_dir" && as_dir=.
2788   for ac_exec_ext in '' $ac_executable_extensions; do
2789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2790     ac_cv_prog_DTRACE="$ac_prog"
2791     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2792     break 2
2793   fi
2794 done
2795 done
2796 IFS=$as_save_IFS
2797
2798 fi
2799 fi
2800 DTRACE=$ac_cv_prog_DTRACE
2801 if test -n "$DTRACE"; then
2802   { $as_echo "$as_me:$LINENO: result: $DTRACE" >&5
2803 $as_echo "$DTRACE" >&6; }
2804 else
2805   { $as_echo "$as_me:$LINENO: result: no" >&5
2806 $as_echo "no" >&6; }
2807 fi
2808
2809
2810   test -n "$DTRACE" && break
2811 done
2812
2813 if test -z "$DTRACE"; then
2814   { { $as_echo "$as_me:$LINENO: error: dtrace not found" >&5
2815 $as_echo "$as_me: error: dtrace not found" >&2;}
2816    { (exit 1); exit 1; }; }
2817 fi
2818
2819       ;;
2820     no)
2821       :
2822       ;;
2823     *)
2824       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-dtrace option" >&5
2825 $as_echo "$as_me: error: no argument expected for --enable-dtrace option" >&2;}
2826    { (exit 1); exit 1; }; }
2827       ;;
2828   esac
2829
2830 else
2831   enable_dtrace=no
2832
2833 fi
2834
2835
2836
2837
2838 #
2839 # Block size
2840 #
2841 { $as_echo "$as_me:$LINENO: checking for block size" >&5
2842 $as_echo_n "checking for block size... " >&6; }
2843
2844
2845
2846 # Check whether --with-blocksize was given.
2847 if test "${with_blocksize+set}" = set; then
2848   withval=$with_blocksize;
2849   case $withval in
2850     yes)
2851       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2852 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2853    { (exit 1); exit 1; }; }
2854       ;;
2855     no)
2856       { { $as_echo "$as_me:$LINENO: error: argument required for --with-blocksize option" >&5
2857 $as_echo "$as_me: error: argument required for --with-blocksize option" >&2;}
2858    { (exit 1); exit 1; }; }
2859       ;;
2860     *)
2861       blocksize=$withval
2862       ;;
2863   esac
2864
2865 else
2866   blocksize=8
2867 fi
2868
2869
2870 case ${blocksize} in
2871   1) BLCKSZ=1024;;
2872   2) BLCKSZ=2048;;
2873   4) BLCKSZ=4096;;
2874   8) BLCKSZ=8192;;
2875  16) BLCKSZ=16384;;
2876  32) BLCKSZ=32768;;
2877   *) { { $as_echo "$as_me:$LINENO: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&5
2878 $as_echo "$as_me: error: Invalid block size. Allowed values are 1,2,4,8,16,32." >&2;}
2879    { (exit 1); exit 1; }; }
2880 esac
2881 { $as_echo "$as_me:$LINENO: result: ${blocksize}kB" >&5
2882 $as_echo "${blocksize}kB" >&6; }
2883
2884
2885 cat >>confdefs.h <<_ACEOF
2886 #define BLCKSZ ${BLCKSZ}
2887 _ACEOF
2888
2889
2890 #
2891 # Relation segment size
2892 #
2893 { $as_echo "$as_me:$LINENO: checking for segment size" >&5
2894 $as_echo_n "checking for segment size... " >&6; }
2895
2896
2897
2898 # Check whether --with-segsize was given.
2899 if test "${with_segsize+set}" = set; then
2900   withval=$with_segsize;
2901   case $withval in
2902     yes)
2903       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2904 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2905    { (exit 1); exit 1; }; }
2906       ;;
2907     no)
2908       { { $as_echo "$as_me:$LINENO: error: argument required for --with-segsize option" >&5
2909 $as_echo "$as_me: error: argument required for --with-segsize option" >&2;}
2910    { (exit 1); exit 1; }; }
2911       ;;
2912     *)
2913       segsize=$withval
2914       ;;
2915   esac
2916
2917 else
2918   segsize=1
2919 fi
2920
2921
2922 # this expression is set up to avoid unnecessary integer overflow
2923 # blocksize is already guaranteed to be a factor of 1024
2924 RELSEG_SIZE=`expr '(' 1024 / ${blocksize} ')' '*' ${segsize} '*' 1024`
2925 test $? -eq 0 || exit 1
2926 { $as_echo "$as_me:$LINENO: result: ${segsize}GB" >&5
2927 $as_echo "${segsize}GB" >&6; }
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define RELSEG_SIZE ${RELSEG_SIZE}
2932 _ACEOF
2933
2934
2935 #
2936 # WAL block size
2937 #
2938 { $as_echo "$as_me:$LINENO: checking for WAL block size" >&5
2939 $as_echo_n "checking for WAL block size... " >&6; }
2940
2941
2942
2943 # Check whether --with-wal-blocksize was given.
2944 if test "${with_wal_blocksize+set}" = set; then
2945   withval=$with_wal_blocksize;
2946   case $withval in
2947     yes)
2948       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2949 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2950    { (exit 1); exit 1; }; }
2951       ;;
2952     no)
2953       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-blocksize option" >&5
2954 $as_echo "$as_me: error: argument required for --with-wal-blocksize option" >&2;}
2955    { (exit 1); exit 1; }; }
2956       ;;
2957     *)
2958       wal_blocksize=$withval
2959       ;;
2960   esac
2961
2962 else
2963   wal_blocksize=8
2964 fi
2965
2966
2967 case ${wal_blocksize} in
2968   1) XLOG_BLCKSZ=1024;;
2969   2) XLOG_BLCKSZ=2048;;
2970   4) XLOG_BLCKSZ=4096;;
2971   8) XLOG_BLCKSZ=8192;;
2972  16) XLOG_BLCKSZ=16384;;
2973  32) XLOG_BLCKSZ=32768;;
2974  64) XLOG_BLCKSZ=65536;;
2975   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&5
2976 $as_echo "$as_me: error: Invalid WAL block size. Allowed values are 1,2,4,8,16,32,64." >&2;}
2977    { (exit 1); exit 1; }; }
2978 esac
2979 { $as_echo "$as_me:$LINENO: result: ${wal_blocksize}kB" >&5
2980 $as_echo "${wal_blocksize}kB" >&6; }
2981
2982
2983 cat >>confdefs.h <<_ACEOF
2984 #define XLOG_BLCKSZ ${XLOG_BLCKSZ}
2985 _ACEOF
2986
2987
2988 #
2989 # WAL segment size
2990 #
2991 { $as_echo "$as_me:$LINENO: checking for WAL segment size" >&5
2992 $as_echo_n "checking for WAL segment size... " >&6; }
2993
2994
2995
2996 # Check whether --with-wal-segsize was given.
2997 if test "${with_wal_segsize+set}" = set; then
2998   withval=$with_wal_segsize;
2999   case $withval in
3000     yes)
3001       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3002 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3003    { (exit 1); exit 1; }; }
3004       ;;
3005     no)
3006       { { $as_echo "$as_me:$LINENO: error: argument required for --with-wal-segsize option" >&5
3007 $as_echo "$as_me: error: argument required for --with-wal-segsize option" >&2;}
3008    { (exit 1); exit 1; }; }
3009       ;;
3010     *)
3011       wal_segsize=$withval
3012       ;;
3013   esac
3014
3015 else
3016   wal_segsize=16
3017 fi
3018
3019
3020 case ${wal_segsize} in
3021   1) ;;
3022   2) ;;
3023   4) ;;
3024   8) ;;
3025  16) ;;
3026  32) ;;
3027  64) ;;
3028   *) { { $as_echo "$as_me:$LINENO: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&5
3029 $as_echo "$as_me: error: Invalid WAL segment size. Allowed values are 1,2,4,8,16,32,64." >&2;}
3030    { (exit 1); exit 1; }; }
3031 esac
3032 { $as_echo "$as_me:$LINENO: result: ${wal_segsize}MB" >&5
3033 $as_echo "${wal_segsize}MB" >&6; }
3034
3035
3036 cat >>confdefs.h <<_ACEOF
3037 #define XLOG_SEG_SIZE (${wal_segsize} * 1024 * 1024)
3038 _ACEOF
3039
3040
3041 #
3042 # C compiler
3043 #
3044
3045 # For historical reasons you can also use --with-CC to specify the C compiler
3046 # to use, although the standard way to do this is to set the CC environment
3047 # variable.
3048
3049
3050
3051 # Check whether --with-CC was given.
3052 if test "${with_CC+set}" = set; then
3053   withval=$with_CC;
3054   case $withval in
3055     yes)
3056       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3057 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3058    { (exit 1); exit 1; }; }
3059       ;;
3060     no)
3061       { { $as_echo "$as_me:$LINENO: error: argument required for --with-CC option" >&5
3062 $as_echo "$as_me: error: argument required for --with-CC option" >&2;}
3063    { (exit 1); exit 1; }; }
3064       ;;
3065     *)
3066       CC=$with_CC
3067       ;;
3068   esac
3069
3070 fi
3071
3072
3073
3074 case $template in
3075   aix) pgac_cc_list="gcc xlc";;
3076  irix) pgac_cc_list="cc";; # no gcc
3077     *) pgac_cc_list="gcc cc";;
3078 esac
3079
3080 ac_ext=c
3081 ac_cpp='$CPP $CPPFLAGS'
3082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3085 if test -n "$ac_tool_prefix"; then
3086   for ac_prog in $pgac_cc_list
3087   do
3088     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 $as_echo_n "checking for $ac_word... " >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093   $as_echo_n "(cached) " >&6
3094 else
3095   if test -n "$CC"; then
3096   ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3100 do
3101   IFS=$as_save_IFS
3102   test -z "$as_dir" && as_dir=.
3103   for ac_exec_ext in '' $ac_executable_extensions; do
3104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107     break 2
3108   fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120   { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125     test -n "$CC" && break
3126   done
3127 fi
3128 if test -z "$CC"; then
3129   ac_ct_CC=$CC
3130   for ac_prog in $pgac_cc_list
3131 do
3132   # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 $as_echo_n "checking for $ac_word... " >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137   $as_echo_n "(cached) " >&6
3138 else
3139   if test -n "$ac_ct_CC"; then
3140   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3144 do
3145   IFS=$as_save_IFS
3146   test -z "$as_dir" && as_dir=.
3147   for ac_exec_ext in '' $ac_executable_extensions; do
3148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149     ac_cv_prog_ac_ct_CC="$ac_prog"
3150     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151     break 2
3152   fi
3153 done
3154 done
3155 IFS=$as_save_IFS
3156
3157 fi
3158 fi
3159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3162 $as_echo "$ac_ct_CC" >&6; }
3163 else
3164   { $as_echo "$as_me:$LINENO: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169   test -n "$ac_ct_CC" && break
3170 done
3171
3172   if test "x$ac_ct_CC" = x; then
3173     CC=""
3174   else
3175     case $cross_compiling:$ac_tool_warned in
3176 yes:)
3177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3179 ac_tool_warned=yes ;;
3180 esac
3181     CC=$ac_ct_CC
3182   fi
3183 fi
3184
3185
3186 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details." >&5
3190 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3191 See \`config.log' for more details." >&2;}
3192    { (exit 1); exit 1; }; }; }
3193
3194 # Provide some information about the compiler.
3195 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3196 set X $ac_compile
3197 ac_compiler=$2
3198 { (ac_try="$ac_compiler --version >&5"
3199 case "(($ac_try" in
3200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201   *) ac_try_echo=$ac_try;;
3202 esac
3203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3204 $as_echo "$ac_try_echo") >&5
3205   (eval "$ac_compiler --version >&5") 2>&5
3206   ac_status=$?
3207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }
3209 { (ac_try="$ac_compiler -v >&5"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3215 $as_echo "$ac_try_echo") >&5
3216   (eval "$ac_compiler -v >&5") 2>&5
3217   ac_status=$?
3218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219   (exit $ac_status); }
3220 { (ac_try="$ac_compiler -V >&5"
3221 case "(($ac_try" in
3222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223   *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3226 $as_echo "$ac_try_echo") >&5
3227   (eval "$ac_compiler -V >&5") 2>&5
3228   ac_status=$?
3229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }
3231
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238
3239 int
3240 main ()
3241 {
3242
3243   ;
3244   return 0;
3245 }
3246 _ACEOF
3247 ac_clean_files_save=$ac_clean_files
3248 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3249 # Try to create an executable without -o first, disregard a.out.
3250 # It will help us diagnose broken compilers, and finding out an intuition
3251 # of exeext.
3252 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3253 $as_echo_n "checking for C compiler default output file name... " >&6; }
3254 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3255
3256 # The possible output files:
3257 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3258
3259 ac_rmfiles=
3260 for ac_file in $ac_files
3261 do
3262   case $ac_file in
3263     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3264     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3265   esac
3266 done
3267 rm -f $ac_rmfiles
3268
3269 if { (ac_try="$ac_link_default"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3275 $as_echo "$ac_try_echo") >&5
3276   (eval "$ac_link_default") 2>&5
3277   ac_status=$?
3278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); }; then
3280   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3281 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3282 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3283 # so that the user can short-circuit this test for compilers unknown to
3284 # Autoconf.
3285 for ac_file in $ac_files ''
3286 do
3287   test -f "$ac_file" || continue
3288   case $ac_file in
3289     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3290         ;;
3291     [ab].out )
3292         # We found the default executable, but exeext='' is most
3293         # certainly right.
3294         break;;
3295     *.* )
3296         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3297         then :; else
3298            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3299         fi
3300         # We set ac_cv_exeext here because the later test for it is not
3301         # safe: cross compilers may not add the suffix if given an `-o'
3302         # argument, so we may need to know it at that point already.
3303         # Even if this section looks crufty: it has the advantage of
3304         # actually working.
3305         break;;
3306     * )
3307         break;;
3308   esac
3309 done
3310 test "$ac_cv_exeext" = no && ac_cv_exeext=
3311
3312 else
3313   ac_file=''
3314 fi
3315
3316 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3317 $as_echo "$ac_file" >&6; }
3318 if test -z "$ac_file"; then
3319   $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3323 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3325 See \`config.log' for more details." >&5
3326 $as_echo "$as_me: error: C compiler cannot create executables
3327 See \`config.log' for more details." >&2;}
3328    { (exit 77); exit 77; }; }; }
3329 fi
3330
3331 ac_exeext=$ac_cv_exeext
3332
3333 # Check that the compiler produces executables we can run.  If not, either
3334 # the compiler is broken, or we cross compile.
3335 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3336 $as_echo_n "checking whether the C compiler works... " >&6; }
3337 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3338 # If not cross compiling, check that we can run a simple program.
3339 if test "$cross_compiling" != yes; then
3340   if { ac_try='./$ac_file'
3341   { (case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3346 $as_echo "$ac_try_echo") >&5
3347   (eval "$ac_try") 2>&5
3348   ac_status=$?
3349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); }; }; then
3351     cross_compiling=no
3352   else
3353     if test "$cross_compiling" = maybe; then
3354         cross_compiling=yes
3355     else
3356         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details." >&5
3361 $as_echo "$as_me: error: cannot run C compiled programs.
3362 If you meant to cross compile, use \`--host'.
3363 See \`config.log' for more details." >&2;}
3364    { (exit 1); exit 1; }; }; }
3365     fi
3366   fi
3367 fi
3368 { $as_echo "$as_me:$LINENO: result: yes" >&5
3369 $as_echo "yes" >&6; }
3370
3371 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3372 ac_clean_files=$ac_clean_files_save
3373 # Check that the compiler produces executables we can run.  If not, either
3374 # the compiler is broken, or we cross compile.
3375 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3376 $as_echo_n "checking whether we are cross compiling... " >&6; }
3377 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3378 $as_echo "$cross_compiling" >&6; }
3379
3380 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3381 $as_echo_n "checking for suffix of executables... " >&6; }
3382 if { (ac_try="$ac_link"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3388 $as_echo "$ac_try_echo") >&5
3389   (eval "$ac_link") 2>&5
3390   ac_status=$?
3391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392   (exit $ac_status); }; then
3393   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3394 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3395 # work properly (i.e., refer to `conftest.exe'), while it won't with
3396 # `rm'.
3397 for ac_file in conftest.exe conftest conftest.*; do
3398   test -f "$ac_file" || continue
3399   case $ac_file in
3400     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402           break;;
3403     * ) break;;
3404   esac
3405 done
3406 else
3407   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3410 See \`config.log' for more details." >&5
3411 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3412 See \`config.log' for more details." >&2;}
3413    { (exit 1); exit 1; }; }; }
3414 fi
3415
3416 rm -f conftest$ac_cv_exeext
3417 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3418 $as_echo "$ac_cv_exeext" >&6; }
3419
3420 rm -f conftest.$ac_ext
3421 EXEEXT=$ac_cv_exeext
3422 ac_exeext=$EXEEXT
3423 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3424 $as_echo_n "checking for suffix of object files... " >&6; }
3425 if test "${ac_cv_objext+set}" = set; then
3426   $as_echo_n "(cached) " >&6
3427 else
3428   cat >conftest.$ac_ext <<_ACEOF
3429 /* confdefs.h.  */
3430 _ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h.  */
3434
3435 int
3436 main ()
3437 {
3438
3439   ;
3440   return 0;
3441 }
3442 _ACEOF
3443 rm -f conftest.o conftest.obj
3444 if { (ac_try="$ac_compile"
3445 case "(($ac_try" in
3446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447   *) ac_try_echo=$ac_try;;
3448 esac
3449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3450 $as_echo "$ac_try_echo") >&5
3451   (eval "$ac_compile") 2>&5
3452   ac_status=$?
3453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; then
3455   for ac_file in conftest.o conftest.obj conftest.*; do
3456   test -f "$ac_file" || continue;
3457   case $ac_file in
3458     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3459     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3460        break;;
3461   esac
3462 done
3463 else
3464   $as_echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3466
3467 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3469 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3470 See \`config.log' for more details." >&5
3471 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3472 See \`config.log' for more details." >&2;}
3473    { (exit 1); exit 1; }; }; }
3474 fi
3475
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477 fi
3478 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3479 $as_echo "$ac_cv_objext" >&6; }
3480 OBJEXT=$ac_cv_objext
3481 ac_objext=$OBJEXT
3482 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3484 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3485   $as_echo_n "(cached) " >&6
3486 else
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 #ifndef __GNUC__
3498        choke me
3499 #endif
3500
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (ac_try="$ac_compile"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3512 $as_echo "$ac_try_echo") >&5
3513   (eval "$ac_compile") 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } && {
3520          test -z "$ac_c_werror_flag" ||
3521          test ! -s conftest.err
3522        } && test -s conftest.$ac_objext; then
3523   ac_compiler_gnu=yes
3524 else
3525   $as_echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528         ac_compiler_gnu=no
3529 fi
3530
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3533
3534 fi
3535 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3536 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3537 if test $ac_compiler_gnu = yes; then
3538   GCC=yes
3539 else
3540   GCC=
3541 fi
3542 ac_test_CFLAGS=${CFLAGS+set}
3543 ac_save_CFLAGS=$CFLAGS
3544 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3545 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3546 if test "${ac_cv_prog_cc_g+set}" = set; then
3547   $as_echo_n "(cached) " >&6
3548 else
3549   ac_save_c_werror_flag=$ac_c_werror_flag
3550    ac_c_werror_flag=yes
3551    ac_cv_prog_cc_g=no
3552    CFLAGS="-g"
3553    cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h.  */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h.  */
3559
3560 int
3561 main ()
3562 {
3563
3564   ;
3565   return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3570 case "(($ac_try" in
3571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572   *) ac_try_echo=$ac_try;;
3573 esac
3574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3575 $as_echo "$ac_try_echo") >&5
3576   (eval "$ac_compile") 2>conftest.er1
3577   ac_status=$?
3578   grep -v '^ *+' conftest.er1 >conftest.err
3579   rm -f conftest.er1
3580   cat conftest.err >&5
3581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582   (exit $ac_status); } && {
3583          test -z "$ac_c_werror_flag" ||
3584          test ! -s conftest.err
3585        } && test -s conftest.$ac_objext; then
3586   ac_cv_prog_cc_g=yes
3587 else
3588   $as_echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591         CFLAGS=""
3592       cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h.  */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h.  */
3598
3599 int
3600 main ()
3601 {
3602
3603   ;
3604   return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615   (eval "$ac_compile") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && {
3622          test -z "$ac_c_werror_flag" ||
3623          test ! -s conftest.err
3624        } && test -s conftest.$ac_objext; then
3625   :
3626 else
3627   $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630         ac_c_werror_flag=$ac_save_c_werror_flag
3631          CFLAGS="-g"
3632          cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h.  */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h.  */
3638
3639 int
3640 main ()
3641 {
3642
3643   ;
3644   return 0;
3645 }
3646 _ACEOF
3647 rm -f conftest.$ac_objext
3648 if { (ac_try="$ac_compile"
3649 case "(($ac_try" in
3650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651   *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3654 $as_echo "$ac_try_echo") >&5
3655   (eval "$ac_compile") 2>conftest.er1
3656   ac_status=$?
3657   grep -v '^ *+' conftest.er1 >conftest.err
3658   rm -f conftest.er1
3659   cat conftest.err >&5
3660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661   (exit $ac_status); } && {
3662          test -z "$ac_c_werror_flag" ||
3663          test ! -s conftest.err
3664        } && test -s conftest.$ac_objext; then
3665   ac_cv_prog_cc_g=yes
3666 else
3667   $as_echo "$as_me: failed program was:" >&5
3668 sed 's/^/| /' conftest.$ac_ext >&5
3669
3670
3671 fi
3672
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674 fi
3675
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 fi
3678
3679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3680    ac_c_werror_flag=$ac_save_c_werror_flag
3681 fi
3682 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3683 $as_echo "$ac_cv_prog_cc_g" >&6; }
3684 if test "$ac_test_CFLAGS" = set; then
3685   CFLAGS=$ac_save_CFLAGS
3686 elif test $ac_cv_prog_cc_g = yes; then
3687   if test "$GCC" = yes; then
3688     CFLAGS="-g -O2"
3689   else
3690     CFLAGS="-g"
3691   fi
3692 else
3693   if test "$GCC" = yes; then
3694     CFLAGS="-O2"
3695   else
3696     CFLAGS=
3697   fi
3698 fi
3699 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3700 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3701 if test "${ac_cv_prog_cc_c89+set}" = set; then
3702   $as_echo_n "(cached) " >&6
3703 else
3704   ac_cv_prog_cc_c89=no
3705 ac_save_CC=$CC
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 #include <stdarg.h>
3713 #include <stdio.h>
3714 #include <sys/types.h>
3715 #include <sys/stat.h>
3716 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3717 struct buf { int x; };
3718 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3719 static char *e (p, i)
3720      char **p;
3721      int i;
3722 {
3723   return p[i];
3724 }
3725 static char *f (char * (*g) (char **, int), char **p, ...)
3726 {
3727   char *s;
3728   va_list v;
3729   va_start (v,p);
3730   s = g (p, va_arg (v,int));
3731   va_end (v);
3732   return s;
3733 }
3734
3735 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3736    function prototypes and stuff, but not '\xHH' hex character constants.
3737    These don't provoke an error unfortunately, instead are silently treated
3738    as 'x'.  The following induces an error, until -std is added to get
3739    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3740    array size at least.  It's necessary to write '\x00'==0 to get something
3741    that's true only with -std.  */
3742 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3743
3744 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3745    inside strings and character constants.  */
3746 #define FOO(x) 'x'
3747 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3748
3749 int test (int i, double x);
3750 struct s1 {int (*f) (int a);};
3751 struct s2 {int (*f) (double a);};
3752 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3753 int argc;
3754 char **argv;
3755 int
3756 main ()
3757 {
3758 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3759   ;
3760   return 0;
3761 }
3762 _ACEOF
3763 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3764         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3765 do
3766   CC="$ac_save_CC $ac_arg"
3767   rm -f conftest.$ac_objext
3768 if { (ac_try="$ac_compile"
3769 case "(($ac_try" in
3770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771   *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3774 $as_echo "$ac_try_echo") >&5
3775   (eval "$ac_compile") 2>conftest.er1
3776   ac_status=$?
3777   grep -v '^ *+' conftest.er1 >conftest.err
3778   rm -f conftest.er1
3779   cat conftest.err >&5
3780   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781   (exit $ac_status); } && {
3782          test -z "$ac_c_werror_flag" ||
3783          test ! -s conftest.err
3784        } && test -s conftest.$ac_objext; then
3785   ac_cv_prog_cc_c89=$ac_arg
3786 else
3787   $as_echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3789
3790
3791 fi
3792
3793 rm -f core conftest.err conftest.$ac_objext
3794   test "x$ac_cv_prog_cc_c89" != "xno" && break
3795 done
3796 rm -f conftest.$ac_ext
3797 CC=$ac_save_CC
3798
3799 fi
3800 # AC_CACHE_VAL
3801 case "x$ac_cv_prog_cc_c89" in
3802   x)
3803     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3804 $as_echo "none needed" >&6; } ;;
3805   xno)
3806     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3807 $as_echo "unsupported" >&6; } ;;
3808   *)
3809     CC="$CC $ac_cv_prog_cc_c89"
3810     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3811 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3812 esac
3813
3814
3815 ac_ext=c
3816 ac_cpp='$CPP $CPPFLAGS'
3817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3820
3821
3822 # Check if it's Intel's compiler, which (usually) pretends to be gcc,
3823 # but has idiosyncrasies of its own.  We assume icc will define
3824 # __INTEL_COMPILER regardless of CFLAGS.
3825
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h.  */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836 #ifndef __INTEL_COMPILER
3837 choke me
3838 #endif
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 rm -f conftest.$ac_objext
3844 if { (ac_try="$ac_compile"
3845 case "(($ac_try" in
3846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847   *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3850 $as_echo "$ac_try_echo") >&5
3851   (eval "$ac_compile") 2>conftest.er1
3852   ac_status=$?
3853   grep -v '^ *+' conftest.er1 >conftest.err
3854   rm -f conftest.er1
3855   cat conftest.err >&5
3856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857   (exit $ac_status); } && {
3858          test -z "$ac_c_werror_flag" ||
3859          test ! -s conftest.err
3860        } && test -s conftest.$ac_objext; then
3861   ICC=yes
3862 else
3863   $as_echo "$as_me: failed program was:" >&5
3864 sed 's/^/| /' conftest.$ac_ext >&5
3865
3866         ICC=no
3867 fi
3868
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870
3871 # Check if it's Sun Studio compiler. We assume that
3872 # __SUNPRO_C will be defined for Sun Studio compilers
3873 cat >conftest.$ac_ext <<_ACEOF
3874 /* confdefs.h.  */
3875 _ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883 #ifndef __SUNPRO_C
3884 choke me
3885 #endif
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 rm -f conftest.$ac_objext
3891 if { (ac_try="$ac_compile"
3892 case "(($ac_try" in
3893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894   *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898   (eval "$ac_compile") 2>conftest.er1
3899   ac_status=$?
3900   grep -v '^ *+' conftest.er1 >conftest.err
3901   rm -f conftest.er1
3902   cat conftest.err >&5
3903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904   (exit $ac_status); } && {
3905          test -z "$ac_c_werror_flag" ||
3906          test ! -s conftest.err
3907        } && test -s conftest.$ac_objext; then
3908   SUN_STUDIO_CC=yes
3909 else
3910   $as_echo "$as_me: failed program was:" >&5
3911 sed 's/^/| /' conftest.$ac_ext >&5
3912
3913         SUN_STUDIO_CC=no
3914 fi
3915
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917
3918
3919
3920 unset CFLAGS
3921
3922 #
3923 # Read the template
3924 #
3925 . "$srcdir/src/template/$template" || exit
3926
3927 # CFLAGS are selected so:
3928 # If the user specifies something in the environment, that is used.
3929 # else:  If the template file set something, that is used.
3930 # else:  If coverage was enabled, don't set anything.
3931 # else:  If the compiler is GCC, then we use -O2.
3932 # else:  If the compiler is something else, then we use -O, unless debugging.
3933
3934 if test "$ac_env_CFLAGS_set" = set; then
3935   CFLAGS=$ac_env_CFLAGS_value
3936 elif test "${CFLAGS+set}" = set; then
3937   : # (keep what template set)
3938 elif test "$enable_coverage" = yes; then
3939   : # no optimization by default
3940 elif test "$GCC" = yes; then
3941   CFLAGS="-O2"
3942 else
3943   # if the user selected debug mode, don't use -O
3944   if test "$enable_debug" != yes; then
3945     CFLAGS="-O"
3946   fi
3947 fi
3948
3949 # set CFLAGS_VECTOR from the environment, if available
3950 if test "$ac_env_CFLAGS_VECTOR_set" = set; then
3951   CFLAGS_VECTOR=$ac_env_CFLAGS_VECTOR_value
3952 fi
3953
3954 # Some versions of GCC support some additional useful warning flags.
3955 # Check whether they are supported, and add them to CFLAGS if so.
3956 # ICC pretends to be GCC but it's lying; it doesn't support these flags,
3957 # but has its own.  Also check other compiler-specific flags here.
3958
3959 if test "$GCC" = yes -a "$ICC" = no; then
3960   CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith"
3961   # These work in some but not all gcc versions
3962   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wdeclaration-after-statement" >&5
3963 $as_echo_n "checking whether $CC supports -Wdeclaration-after-statement... " >&6; }
3964 if test "${pgac_cv_prog_cc_cflags__Wdeclaration_after_statement+set}" = set; then
3965   $as_echo_n "(cached) " >&6
3966 else
3967   pgac_save_CFLAGS=$CFLAGS
3968 CFLAGS="$pgac_save_CFLAGS -Wdeclaration-after-statement"
3969 ac_save_c_werror_flag=$ac_c_werror_flag
3970 ac_c_werror_flag=yes
3971 cat >conftest.$ac_ext <<_ACEOF
3972 /* confdefs.h.  */
3973 _ACEOF
3974 cat confdefs.h >>conftest.$ac_ext
3975 cat >>conftest.$ac_ext <<_ACEOF
3976 /* end confdefs.h.  */
3977
3978 int
3979 main ()
3980 {
3981
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext
3987 if { (ac_try="$ac_compile"
3988 case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3993 $as_echo "$ac_try_echo") >&5
3994   (eval "$ac_compile") 2>conftest.er1
3995   ac_status=$?
3996   grep -v '^ *+' conftest.er1 >conftest.err
3997   rm -f conftest.er1
3998   cat conftest.err >&5
3999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); } && {
4001          test -z "$ac_c_werror_flag" ||
4002          test ! -s conftest.err
4003        } && test -s conftest.$ac_objext; then
4004   pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=yes
4005 else
4006   $as_echo "$as_me: failed program was:" >&5
4007 sed 's/^/| /' conftest.$ac_ext >&5
4008
4009         pgac_cv_prog_cc_cflags__Wdeclaration_after_statement=no
4010 fi
4011
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_c_werror_flag=$ac_save_c_werror_flag
4014 CFLAGS="$pgac_save_CFLAGS"
4015 fi
4016 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&5
4017 $as_echo "$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" >&6; }
4018 if test x"$pgac_cv_prog_cc_cflags__Wdeclaration_after_statement" = x"yes"; then
4019   CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4020 fi
4021
4022   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wendif-labels" >&5
4023 $as_echo_n "checking whether $CC supports -Wendif-labels... " >&6; }
4024 if test "${pgac_cv_prog_cc_cflags__Wendif_labels+set}" = set; then
4025   $as_echo_n "(cached) " >&6
4026 else
4027   pgac_save_CFLAGS=$CFLAGS
4028 CFLAGS="$pgac_save_CFLAGS -Wendif-labels"
4029 ac_save_c_werror_flag=$ac_c_werror_flag
4030 ac_c_werror_flag=yes
4031 cat >conftest.$ac_ext <<_ACEOF
4032 /* confdefs.h.  */
4033 _ACEOF
4034 cat confdefs.h >>conftest.$ac_ext
4035 cat >>conftest.$ac_ext <<_ACEOF
4036 /* end confdefs.h.  */
4037
4038 int
4039 main ()
4040 {
4041
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 rm -f conftest.$ac_objext
4047 if { (ac_try="$ac_compile"
4048 case "(($ac_try" in
4049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050   *) ac_try_echo=$ac_try;;
4051 esac
4052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4053 $as_echo "$ac_try_echo") >&5
4054   (eval "$ac_compile") 2>conftest.er1
4055   ac_status=$?
4056   grep -v '^ *+' conftest.er1 >conftest.err
4057   rm -f conftest.er1
4058   cat conftest.err >&5
4059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060   (exit $ac_status); } && {
4061          test -z "$ac_c_werror_flag" ||
4062          test ! -s conftest.err
4063        } && test -s conftest.$ac_objext; then
4064   pgac_cv_prog_cc_cflags__Wendif_labels=yes
4065 else
4066   $as_echo "$as_me: failed program was:" >&5
4067 sed 's/^/| /' conftest.$ac_ext >&5
4068
4069         pgac_cv_prog_cc_cflags__Wendif_labels=no
4070 fi
4071
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4074 CFLAGS="$pgac_save_CFLAGS"
4075 fi
4076 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wendif_labels" >&5
4077 $as_echo "$pgac_cv_prog_cc_cflags__Wendif_labels" >&6; }
4078 if test x"$pgac_cv_prog_cc_cflags__Wendif_labels" = x"yes"; then
4079   CFLAGS="$CFLAGS -Wendif-labels"
4080 fi
4081
4082   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
4083 $as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
4084 if test "${pgac_cv_prog_cc_cflags__Wmissing_format_attribute+set}" = set; then
4085   $as_echo_n "(cached) " >&6
4086 else
4087   pgac_save_CFLAGS=$CFLAGS
4088 CFLAGS="$pgac_save_CFLAGS -Wmissing-format-attribute"
4089 ac_save_c_werror_flag=$ac_c_werror_flag
4090 ac_c_werror_flag=yes
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h.  */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h.  */
4097
4098 int
4099 main ()
4100 {
4101
4102   ;
4103   return 0;
4104 }
4105 _ACEOF
4106 rm -f conftest.$ac_objext
4107 if { (ac_try="$ac_compile"
4108 case "(($ac_try" in
4109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4110   *) ac_try_echo=$ac_try;;
4111 esac
4112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4113 $as_echo "$ac_try_echo") >&5
4114   (eval "$ac_compile") 2>conftest.er1
4115   ac_status=$?
4116   grep -v '^ *+' conftest.er1 >conftest.err
4117   rm -f conftest.er1
4118   cat conftest.err >&5
4119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120   (exit $ac_status); } && {
4121          test -z "$ac_c_werror_flag" ||
4122          test ! -s conftest.err
4123        } && test -s conftest.$ac_objext; then
4124   pgac_cv_prog_cc_cflags__Wmissing_format_attribute=yes
4125 else
4126   $as_echo "$as_me: failed program was:" >&5
4127 sed 's/^/| /' conftest.$ac_ext >&5
4128
4129         pgac_cv_prog_cc_cflags__Wmissing_format_attribute=no
4130 fi
4131
4132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 ac_c_werror_flag=$ac_save_c_werror_flag
4134 CFLAGS="$pgac_save_CFLAGS"
4135 fi
4136 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&5
4137 $as_echo "$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" >&6; }
4138 if test x"$pgac_cv_prog_cc_cflags__Wmissing_format_attribute" = x"yes"; then
4139   CFLAGS="$CFLAGS -Wmissing-format-attribute"
4140 fi
4141
4142   # This was included in -Wall/-Wformat in older GCC versions
4143   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wformat-security" >&5
4144 $as_echo_n "checking whether $CC supports -Wformat-security... " >&6; }
4145 if test "${pgac_cv_prog_cc_cflags__Wformat_security+set}" = set; then
4146   $as_echo_n "(cached) " >&6
4147 else
4148   pgac_save_CFLAGS=$CFLAGS
4149 CFLAGS="$pgac_save_CFLAGS -Wformat-security"
4150 ac_save_c_werror_flag=$ac_c_werror_flag
4151 ac_c_werror_flag=yes
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4174 $as_echo "$ac_try_echo") >&5
4175   (eval "$ac_compile") 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } && {
4182          test -z "$ac_c_werror_flag" ||
4183          test ! -s conftest.err
4184        } && test -s conftest.$ac_objext; then
4185   pgac_cv_prog_cc_cflags__Wformat_security=yes
4186 else
4187   $as_echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190         pgac_cv_prog_cc_cflags__Wformat_security=no
4191 fi
4192
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 ac_c_werror_flag=$ac_save_c_werror_flag
4195 CFLAGS="$pgac_save_CFLAGS"
4196 fi
4197 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__Wformat_security" >&5
4198 $as_echo "$pgac_cv_prog_cc_cflags__Wformat_security" >&6; }
4199 if test x"$pgac_cv_prog_cc_cflags__Wformat_security" = x"yes"; then
4200   CFLAGS="$CFLAGS -Wformat-security"
4201 fi
4202
4203   # Disable strict-aliasing rules; needed for gcc 3.3+
4204   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4205 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4206 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4207   $as_echo_n "(cached) " >&6
4208 else
4209   pgac_save_CFLAGS=$CFLAGS
4210 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4211 ac_save_c_werror_flag=$ac_c_werror_flag
4212 ac_c_werror_flag=yes
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219
4220 int
4221 main ()
4222 {
4223
4224   ;
4225   return 0;
4226 }
4227 _ACEOF
4228 rm -f conftest.$ac_objext
4229 if { (ac_try="$ac_compile"
4230 case "(($ac_try" in
4231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232   *) ac_try_echo=$ac_try;;
4233 esac
4234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4235 $as_echo "$ac_try_echo") >&5
4236   (eval "$ac_compile") 2>conftest.er1
4237   ac_status=$?
4238   grep -v '^ *+' conftest.er1 >conftest.err
4239   rm -f conftest.er1
4240   cat conftest.err >&5
4241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); } && {
4243          test -z "$ac_c_werror_flag" ||
4244          test ! -s conftest.err
4245        } && test -s conftest.$ac_objext; then
4246   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4247 else
4248   $as_echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4250
4251         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4252 fi
4253
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4255 ac_c_werror_flag=$ac_save_c_werror_flag
4256 CFLAGS="$pgac_save_CFLAGS"
4257 fi
4258 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4259 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4260 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4261   CFLAGS="$CFLAGS -fno-strict-aliasing"
4262 fi
4263
4264   # Disable optimizations that assume no overflow; needed for gcc 4.3+
4265   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fwrapv" >&5
4266 $as_echo_n "checking whether $CC supports -fwrapv... " >&6; }
4267 if test "${pgac_cv_prog_cc_cflags__fwrapv+set}" = set; then
4268   $as_echo_n "(cached) " >&6
4269 else
4270   pgac_save_CFLAGS=$CFLAGS
4271 CFLAGS="$pgac_save_CFLAGS -fwrapv"
4272 ac_save_c_werror_flag=$ac_c_werror_flag
4273 ac_c_werror_flag=yes
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h.  */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h.  */
4280
4281 int
4282 main ()
4283 {
4284
4285   ;
4286   return 0;
4287 }
4288 _ACEOF
4289 rm -f conftest.$ac_objext
4290 if { (ac_try="$ac_compile"
4291 case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4296 $as_echo "$ac_try_echo") >&5
4297   (eval "$ac_compile") 2>conftest.er1
4298   ac_status=$?
4299   grep -v '^ *+' conftest.er1 >conftest.err
4300   rm -f conftest.er1
4301   cat conftest.err >&5
4302   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303   (exit $ac_status); } && {
4304          test -z "$ac_c_werror_flag" ||
4305          test ! -s conftest.err
4306        } && test -s conftest.$ac_objext; then
4307   pgac_cv_prog_cc_cflags__fwrapv=yes
4308 else
4309   $as_echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4311
4312         pgac_cv_prog_cc_cflags__fwrapv=no
4313 fi
4314
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316 ac_c_werror_flag=$ac_save_c_werror_flag
4317 CFLAGS="$pgac_save_CFLAGS"
4318 fi
4319 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fwrapv" >&5
4320 $as_echo "$pgac_cv_prog_cc_cflags__fwrapv" >&6; }
4321 if test x"$pgac_cv_prog_cc_cflags__fwrapv" = x"yes"; then
4322   CFLAGS="$CFLAGS -fwrapv"
4323 fi
4324
4325   # Disable FP optimizations that cause various errors on gcc 4.5+ or maybe 4.6+
4326   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fexcess-precision=standard" >&5
4327 $as_echo_n "checking whether $CC supports -fexcess-precision=standard... " >&6; }
4328 if test "${pgac_cv_prog_cc_cflags__fexcess_precision_standard+set}" = set; then
4329   $as_echo_n "(cached) " >&6
4330 else
4331   pgac_save_CFLAGS=$CFLAGS
4332 CFLAGS="$pgac_save_CFLAGS -fexcess-precision=standard"
4333 ac_save_c_werror_flag=$ac_c_werror_flag
4334 ac_c_werror_flag=yes
4335 cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341
4342 int
4343 main ()
4344 {
4345
4346   ;
4347   return 0;
4348 }
4349 _ACEOF
4350 rm -f conftest.$ac_objext
4351 if { (ac_try="$ac_compile"
4352 case "(($ac_try" in
4353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4354   *) ac_try_echo=$ac_try;;
4355 esac
4356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4357 $as_echo "$ac_try_echo") >&5
4358   (eval "$ac_compile") 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } && {
4365          test -z "$ac_c_werror_flag" ||
4366          test ! -s conftest.err
4367        } && test -s conftest.$ac_objext; then
4368   pgac_cv_prog_cc_cflags__fexcess_precision_standard=yes
4369 else
4370   $as_echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4372
4373         pgac_cv_prog_cc_cflags__fexcess_precision_standard=no
4374 fi
4375
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4377 ac_c_werror_flag=$ac_save_c_werror_flag
4378 CFLAGS="$pgac_save_CFLAGS"
4379 fi
4380 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&5
4381 $as_echo "$pgac_cv_prog_cc_cflags__fexcess_precision_standard" >&6; }
4382 if test x"$pgac_cv_prog_cc_cflags__fexcess_precision_standard" = x"yes"; then
4383   CFLAGS="$CFLAGS -fexcess-precision=standard"
4384 fi
4385
4386   # Optimization flags for specific files that benefit from vectorization
4387   { $as_echo "$as_me:$LINENO: checking whether $CC supports -funroll-loops" >&5
4388 $as_echo_n "checking whether $CC supports -funroll-loops... " >&6; }
4389 if test "${pgac_cv_prog_cc_cflags__funroll_loops+set}" = set; then
4390   $as_echo_n "(cached) " >&6
4391 else
4392   pgac_save_CFLAGS=$CFLAGS
4393 CFLAGS="$pgac_save_CFLAGS -funroll-loops"
4394 ac_save_c_werror_flag=$ac_c_werror_flag
4395 ac_c_werror_flag=yes
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402
4403 int
4404 main ()
4405 {
4406
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext
4412 if { (ac_try="$ac_compile"
4413 case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419   (eval "$ac_compile") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } && {
4426          test -z "$ac_c_werror_flag" ||
4427          test ! -s conftest.err
4428        } && test -s conftest.$ac_objext; then
4429   pgac_cv_prog_cc_cflags__funroll_loops=yes
4430 else
4431   $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434         pgac_cv_prog_cc_cflags__funroll_loops=no
4435 fi
4436
4437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4438 ac_c_werror_flag=$ac_save_c_werror_flag
4439 CFLAGS="$pgac_save_CFLAGS"
4440 fi
4441 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__funroll_loops" >&5
4442 $as_echo "$pgac_cv_prog_cc_cflags__funroll_loops" >&6; }
4443 if test x"$pgac_cv_prog_cc_cflags__funroll_loops" = x"yes"; then
4444   CFLAGS_VECTOR="${CFLAGS_VECTOR} -funroll-loops"
4445 fi
4446
4447   { $as_echo "$as_me:$LINENO: checking whether $CC supports -ftree-vectorize" >&5
4448 $as_echo_n "checking whether $CC supports -ftree-vectorize... " >&6; }
4449 if test "${pgac_cv_prog_cc_cflags__ftree_vectorize+set}" = set; then
4450   $as_echo_n "(cached) " >&6
4451 else
4452   pgac_save_CFLAGS=$CFLAGS
4453 CFLAGS="$pgac_save_CFLAGS -ftree-vectorize"
4454 ac_save_c_werror_flag=$ac_c_werror_flag
4455 ac_c_werror_flag=yes
4456 cat >conftest.$ac_ext <<_ACEOF
4457 /* confdefs.h.  */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h.  */
4462
4463 int
4464 main ()
4465 {
4466
4467   ;
4468   return 0;
4469 }
4470 _ACEOF
4471 rm -f conftest.$ac_objext
4472 if { (ac_try="$ac_compile"
4473 case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479   (eval "$ac_compile") 2>conftest.er1
4480   ac_status=$?
4481   grep -v '^ *+' conftest.er1 >conftest.err
4482   rm -f conftest.er1
4483   cat conftest.err >&5
4484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485   (exit $ac_status); } && {
4486          test -z "$ac_c_werror_flag" ||
4487          test ! -s conftest.err
4488        } && test -s conftest.$ac_objext; then
4489   pgac_cv_prog_cc_cflags__ftree_vectorize=yes
4490 else
4491   $as_echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4493
4494         pgac_cv_prog_cc_cflags__ftree_vectorize=no
4495 fi
4496
4497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4498 ac_c_werror_flag=$ac_save_c_werror_flag
4499 CFLAGS="$pgac_save_CFLAGS"
4500 fi
4501 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__ftree_vectorize" >&5
4502 $as_echo "$pgac_cv_prog_cc_cflags__ftree_vectorize" >&6; }
4503 if test x"$pgac_cv_prog_cc_cflags__ftree_vectorize" = x"yes"; then
4504   CFLAGS_VECTOR="${CFLAGS_VECTOR} -ftree-vectorize"
4505 fi
4506
4507 elif test "$ICC" = yes; then
4508   # Intel's compiler has a bug/misoptimization in checking for
4509   # division by NAN (NaN == 0), -mp1 fixes it, so add it to the CFLAGS.
4510   { $as_echo "$as_me:$LINENO: checking whether $CC supports -mp1" >&5
4511 $as_echo_n "checking whether $CC supports -mp1... " >&6; }
4512 if test "${pgac_cv_prog_cc_cflags__mp1+set}" = set; then
4513   $as_echo_n "(cached) " >&6
4514 else
4515   pgac_save_CFLAGS=$CFLAGS
4516 CFLAGS="$pgac_save_CFLAGS -mp1"
4517 ac_save_c_werror_flag=$ac_c_werror_flag
4518 ac_c_werror_flag=yes
4519 cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525
4526 int
4527 main ()
4528 {
4529
4530   ;
4531   return 0;
4532 }
4533 _ACEOF
4534 rm -f conftest.$ac_objext
4535 if { (ac_try="$ac_compile"
4536 case "(($ac_try" in
4537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538   *) ac_try_echo=$ac_try;;
4539 esac
4540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4541 $as_echo "$ac_try_echo") >&5
4542   (eval "$ac_compile") 2>conftest.er1
4543   ac_status=$?
4544   grep -v '^ *+' conftest.er1 >conftest.err
4545   rm -f conftest.er1
4546   cat conftest.err >&5
4547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); } && {
4549          test -z "$ac_c_werror_flag" ||
4550          test ! -s conftest.err
4551        } && test -s conftest.$ac_objext; then
4552   pgac_cv_prog_cc_cflags__mp1=yes
4553 else
4554   $as_echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557         pgac_cv_prog_cc_cflags__mp1=no
4558 fi
4559
4560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 ac_c_werror_flag=$ac_save_c_werror_flag
4562 CFLAGS="$pgac_save_CFLAGS"
4563 fi
4564 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__mp1" >&5
4565 $as_echo "$pgac_cv_prog_cc_cflags__mp1" >&6; }
4566 if test x"$pgac_cv_prog_cc_cflags__mp1" = x"yes"; then
4567   CFLAGS="$CFLAGS -mp1"
4568 fi
4569
4570   # Make sure strict aliasing is off (though this is said to be the default)
4571   { $as_echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
4572 $as_echo_n "checking whether $CC supports -fno-strict-aliasing... " >&6; }
4573 if test "${pgac_cv_prog_cc_cflags__fno_strict_aliasing+set}" = set; then
4574   $as_echo_n "(cached) " >&6
4575 else
4576   pgac_save_CFLAGS=$CFLAGS
4577 CFLAGS="$pgac_save_CFLAGS -fno-strict-aliasing"
4578 ac_save_c_werror_flag=$ac_c_werror_flag
4579 ac_c_werror_flag=yes
4580 cat >conftest.$ac_ext <<_ACEOF
4581 /* confdefs.h.  */
4582 _ACEOF
4583 cat confdefs.h >>conftest.$ac_ext
4584 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h.  */
4586
4587 int
4588 main ()
4589 {
4590
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (ac_try="$ac_compile"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4602 $as_echo "$ac_try_echo") >&5
4603   (eval "$ac_compile") 2>conftest.er1
4604   ac_status=$?
4605   grep -v '^ *+' conftest.er1 >conftest.err
4606   rm -f conftest.er1
4607   cat conftest.err >&5
4608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609   (exit $ac_status); } && {
4610          test -z "$ac_c_werror_flag" ||
4611          test ! -s conftest.err
4612        } && test -s conftest.$ac_objext; then
4613   pgac_cv_prog_cc_cflags__fno_strict_aliasing=yes
4614 else
4615   $as_echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618         pgac_cv_prog_cc_cflags__fno_strict_aliasing=no
4619 fi
4620
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 ac_c_werror_flag=$ac_save_c_werror_flag
4623 CFLAGS="$pgac_save_CFLAGS"
4624 fi
4625 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&5
4626 $as_echo "$pgac_cv_prog_cc_cflags__fno_strict_aliasing" >&6; }
4627 if test x"$pgac_cv_prog_cc_cflags__fno_strict_aliasing" = x"yes"; then
4628   CFLAGS="$CFLAGS -fno-strict-aliasing"
4629 fi
4630
4631 elif test "$PORTNAME" = "aix"; then
4632   # AIX's xlc has to have strict aliasing turned off too
4633   { $as_echo "$as_me:$LINENO: checking whether $CC supports -qnoansialias" >&5
4634 $as_echo_n "checking whether $CC supports -qnoansialias... " >&6; }
4635 if test "${pgac_cv_prog_cc_cflags__qnoansialias+set}" = set; then
4636   $as_echo_n "(cached) " >&6
4637 else
4638   pgac_save_CFLAGS=$CFLAGS
4639 CFLAGS="$pgac_save_CFLAGS -qnoansialias"
4640 ac_save_c_werror_flag=$ac_c_werror_flag
4641 ac_c_werror_flag=yes
4642 cat >conftest.$ac_ext <<_ACEOF
4643 /* confdefs.h.  */
4644 _ACEOF
4645 cat confdefs.h >>conftest.$ac_ext
4646 cat >>conftest.$ac_ext <<_ACEOF
4647 /* end confdefs.h.  */
4648
4649 int
4650 main ()
4651 {
4652
4653   ;
4654   return 0;
4655 }
4656 _ACEOF
4657 rm -f conftest.$ac_objext
4658 if { (ac_try="$ac_compile"
4659 case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665   (eval "$ac_compile") 2>conftest.er1
4666   ac_status=$?
4667   grep -v '^ *+' conftest.er1 >conftest.err
4668   rm -f conftest.er1
4669   cat conftest.err >&5
4670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671   (exit $ac_status); } && {
4672          test -z "$ac_c_werror_flag" ||
4673          test ! -s conftest.err
4674        } && test -s conftest.$ac_objext; then
4675   pgac_cv_prog_cc_cflags__qnoansialias=yes
4676 else
4677   $as_echo "$as_me: failed program was:" >&5
4678 sed 's/^/| /' conftest.$ac_ext >&5
4679
4680         pgac_cv_prog_cc_cflags__qnoansialias=no
4681 fi
4682
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_c_werror_flag=$ac_save_c_werror_flag
4685 CFLAGS="$pgac_save_CFLAGS"
4686 fi
4687 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags__qnoansialias" >&5
4688 $as_echo "$pgac_cv_prog_cc_cflags__qnoansialias" >&6; }
4689 if test x"$pgac_cv_prog_cc_cflags__qnoansialias" = x"yes"; then
4690   CFLAGS="$CFLAGS -qnoansialias"
4691 fi
4692
4693 elif test "$PORTNAME" = "hpux"; then
4694   # On some versions of HP-UX, libm functions do not set errno by default.
4695   # Fix that by using +Olibmerrno if the compiler recognizes it.
4696   { $as_echo "$as_me:$LINENO: checking whether $CC supports +Olibmerrno" >&5
4697 $as_echo_n "checking whether $CC supports +Olibmerrno... " >&6; }
4698 if test "${pgac_cv_prog_cc_cflags_pOlibmerrno+set}" = set; then
4699   $as_echo_n "(cached) " >&6
4700 else
4701   pgac_save_CFLAGS=$CFLAGS
4702 CFLAGS="$pgac_save_CFLAGS +Olibmerrno"
4703 ac_save_c_werror_flag=$ac_c_werror_flag
4704 ac_c_werror_flag=yes
4705 cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h.  */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h.  */
4711
4712 int
4713 main ()
4714 {
4715
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (ac_try="$ac_compile"
4722 case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4727 $as_echo "$ac_try_echo") >&5
4728   (eval "$ac_compile") 2>conftest.er1
4729   ac_status=$?
4730   grep -v '^ *+' conftest.er1 >conftest.err
4731   rm -f conftest.er1
4732   cat conftest.err >&5
4733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); } && {
4735          test -z "$ac_c_werror_flag" ||
4736          test ! -s conftest.err
4737        } && test -s conftest.$ac_objext; then
4738   pgac_cv_prog_cc_cflags_pOlibmerrno=yes
4739 else
4740   $as_echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4742
4743         pgac_cv_prog_cc_cflags_pOlibmerrno=no
4744 fi
4745
4746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4747 ac_c_werror_flag=$ac_save_c_werror_flag
4748 CFLAGS="$pgac_save_CFLAGS"
4749 fi
4750 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_cflags_pOlibmerrno" >&5
4751 $as_echo "$pgac_cv_prog_cc_cflags_pOlibmerrno" >&6; }
4752 if test x"$pgac_cv_prog_cc_cflags_pOlibmerrno" = x"yes"; then
4753   CFLAGS="$CFLAGS +Olibmerrno"
4754 fi
4755
4756 fi
4757
4758 CFLAGS_VECTOR=$CFLAGS_VECTOR
4759
4760
4761 # supply -g if --enable-debug
4762 if test "$enable_debug" = yes && test "$ac_cv_prog_cc_g" = yes; then
4763   CFLAGS="$CFLAGS -g"
4764 fi
4765
4766 # enable code coverage if --enable-coverage
4767 if test "$enable_coverage" = yes; then
4768   if test "$GCC" = yes; then
4769     CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage"
4770   else
4771     { { $as_echo "$as_me:$LINENO: error: --enable-coverage is supported only when using GCC" >&5
4772 $as_echo "$as_me: error: --enable-coverage is supported only when using GCC" >&2;}
4773    { (exit 1); exit 1; }; }
4774   fi
4775 fi
4776
4777 # enable profiling if --enable-profiling
4778 if test "$enable_profiling" = yes && test "$ac_cv_prog_cc_g" = yes; then
4779   if test "$GCC" = yes; then
4780
4781 cat >>confdefs.h <<\_ACEOF
4782 #define PROFILE_PID_DIR 1
4783 _ACEOF
4784
4785     CFLAGS="$CFLAGS -pg $PLATFORM_PROFILE_FLAGS"
4786   else
4787     { { $as_echo "$as_me:$LINENO: error: --enable-profiling is supported only when using GCC" >&5
4788 $as_echo "$as_me: error: --enable-profiling is supported only when using GCC" >&2;}
4789    { (exit 1); exit 1; }; }
4790   fi
4791 fi
4792
4793 # We already have this in Makefile.win32, but configure needs it too
4794 if test "$PORTNAME" = "win32"; then
4795   CPPFLAGS="$CPPFLAGS -I$srcdir/src/include/port/win32 -DEXEC_BACKEND"
4796 fi
4797
4798 # Check if the compiler still works with the template settings
4799 { $as_echo "$as_me:$LINENO: checking whether the C compiler still works" >&5
4800 $as_echo_n "checking whether the C compiler still works... " >&6; }
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h.  */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h.  */
4807
4808 int
4809 main ()
4810 {
4811 return 0;
4812   ;
4813   return 0;
4814 }
4815 _ACEOF
4816 rm -f conftest.$ac_objext conftest$ac_exeext
4817 if { (ac_try="$ac_link"
4818 case "(($ac_try" in
4819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4820   *) ac_try_echo=$ac_try;;
4821 esac
4822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4823 $as_echo "$ac_try_echo") >&5
4824   (eval "$ac_link") 2>conftest.er1
4825   ac_status=$?
4826   grep -v '^ *+' conftest.er1 >conftest.err
4827   rm -f conftest.er1
4828   cat conftest.err >&5
4829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830   (exit $ac_status); } && {
4831          test -z "$ac_c_werror_flag" ||
4832          test ! -s conftest.err
4833        } && test -s conftest$ac_exeext && {
4834          test "$cross_compiling" = yes ||
4835          $as_test_x conftest$ac_exeext
4836        }; then
4837   { $as_echo "$as_me:$LINENO: result: yes" >&5
4838 $as_echo "yes" >&6; }
4839 else
4840   $as_echo "$as_me: failed program was:" >&5
4841 sed 's/^/| /' conftest.$ac_ext >&5
4842
4843         { $as_echo "$as_me:$LINENO: result: no" >&5
4844 $as_echo "no" >&6; }
4845    { { $as_echo "$as_me:$LINENO: error: cannot proceed" >&5
4846 $as_echo "$as_me: error: cannot proceed" >&2;}
4847    { (exit 1); exit 1; }; }
4848 fi
4849
4850 rm -rf conftest.dSYM
4851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4852       conftest$ac_exeext conftest.$ac_ext
4853
4854 # Defend against gcc -ffast-math
4855 if test "$GCC" = yes; then
4856 cat >conftest.$ac_ext <<_ACEOF
4857 /* confdefs.h.  */
4858 _ACEOF
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h.  */
4862
4863 int
4864 main ()
4865 {
4866 #ifdef __FAST_MATH__
4867 choke me
4868 #endif
4869   ;
4870   return 0;
4871 }
4872 _ACEOF
4873 rm -f conftest.$ac_objext
4874 if { (ac_try="$ac_compile"
4875 case "(($ac_try" in
4876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877   *) ac_try_echo=$ac_try;;
4878 esac
4879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4880 $as_echo "$ac_try_echo") >&5
4881   (eval "$ac_compile") 2>conftest.er1
4882   ac_status=$?
4883   grep -v '^ *+' conftest.er1 >conftest.err
4884   rm -f conftest.er1
4885   cat conftest.err >&5
4886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887   (exit $ac_status); } && {
4888          test -z "$ac_c_werror_flag" ||
4889          test ! -s conftest.err
4890        } && test -s conftest.$ac_objext; then
4891   :
4892 else
4893   $as_echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896         { { $as_echo "$as_me:$LINENO: error: do not put -ffast-math in CFLAGS" >&5
4897 $as_echo "$as_me: error: do not put -ffast-math in CFLAGS" >&2;}
4898    { (exit 1); exit 1; }; }
4899 fi
4900
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903
4904 ac_ext=c
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4909 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4910 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4911 # On Suns, sometimes $CPP names a directory.
4912 if test -n "$CPP" && test -d "$CPP"; then
4913   CPP=
4914 fi
4915 if test -z "$CPP"; then
4916   if test "${ac_cv_prog_CPP+set}" = set; then
4917   $as_echo_n "(cached) " >&6
4918 else
4919       # Double quotes because CPP needs to be expanded
4920     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4921     do
4922       ac_preproc_ok=false
4923 for ac_c_preproc_warn_flag in '' yes
4924 do
4925   # Use a header file that comes with gcc, so configuring glibc
4926   # with a fresh cross-compiler works.
4927   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4928   # <limits.h> exists even on freestanding compilers.
4929   # On the NeXT, cc -E runs the code through the compiler's parser,
4930   # not just through cpp. "Syntax error" is here to catch this case.
4931   cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h.  */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h.  */
4937 #ifdef __STDC__
4938 # include <limits.h>
4939 #else
4940 # include <assert.h>
4941 #endif
4942                      Syntax error
4943 _ACEOF
4944 if { (ac_try="$ac_cpp conftest.$ac_ext"
4945 case "(($ac_try" in
4946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947   *) ac_try_echo=$ac_try;;
4948 esac
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4952   ac_status=$?
4953   grep -v '^ *+' conftest.er1 >conftest.err
4954   rm -f conftest.er1
4955   cat conftest.err >&5
4956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957   (exit $ac_status); } >/dev/null && {
4958          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4959          test ! -s conftest.err
4960        }; then
4961   :
4962 else
4963   $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966   # Broken: fails on valid input.
4967 continue
4968 fi
4969
4970 rm -f conftest.err conftest.$ac_ext
4971
4972   # OK, works on sane cases.  Now check whether nonexistent headers
4973   # can be detected and how.
4974   cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h.  */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h.  */
4980 #include <ac_nonexistent.h>
4981 _ACEOF
4982 if { (ac_try="$ac_cpp conftest.$ac_ext"
4983 case "(($ac_try" in
4984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985   *) ac_try_echo=$ac_try;;
4986 esac
4987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4988 $as_echo "$ac_try_echo") >&5
4989   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990   ac_status=$?
4991   grep -v '^ *+' conftest.er1 >conftest.err
4992   rm -f conftest.er1
4993   cat conftest.err >&5
4994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); } >/dev/null && {
4996          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4997          test ! -s conftest.err
4998        }; then
4999   # Broken: success on invalid input.
5000 continue
5001 else
5002   $as_echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005   # Passes both tests.
5006 ac_preproc_ok=:
5007 break
5008 fi
5009
5010 rm -f conftest.err conftest.$ac_ext
5011
5012 done
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then
5016   break
5017 fi
5018
5019     done
5020     ac_cv_prog_CPP=$CPP
5021
5022 fi
5023   CPP=$ac_cv_prog_CPP
5024 else
5025   ac_cv_prog_CPP=$CPP
5026 fi
5027 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5028 $as_echo "$CPP" >&6; }
5029 ac_preproc_ok=false
5030 for ac_c_preproc_warn_flag in '' yes
5031 do
5032   # Use a header file that comes with gcc, so configuring glibc
5033   # with a fresh cross-compiler works.
5034   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035   # <limits.h> exists even on freestanding compilers.
5036   # On the NeXT, cc -E runs the code through the compiler's parser,
5037   # not just through cpp. "Syntax error" is here to catch this case.
5038   cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h.  */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h.  */
5044 #ifdef __STDC__
5045 # include <limits.h>
5046 #else
5047 # include <assert.h>
5048 #endif
5049                      Syntax error
5050 _ACEOF
5051 if { (ac_try="$ac_cpp conftest.$ac_ext"
5052 case "(($ac_try" in
5053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054   *) ac_try_echo=$ac_try;;
5055 esac
5056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5057 $as_echo "$ac_try_echo") >&5
5058   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } >/dev/null && {
5065          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5066          test ! -s conftest.err
5067        }; then
5068   :
5069 else
5070   $as_echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073   # Broken: fails on valid input.
5074 continue
5075 fi
5076
5077 rm -f conftest.err conftest.$ac_ext
5078
5079   # OK, works on sane cases.  Now check whether nonexistent headers
5080   # can be detected and how.
5081   cat >conftest.$ac_ext <<_ACEOF
5082 /* confdefs.h.  */
5083 _ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h.  */
5087 #include <ac_nonexistent.h>
5088 _ACEOF
5089 if { (ac_try="$ac_cpp conftest.$ac_ext"
5090 case "(($ac_try" in
5091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092   *) ac_try_echo=$ac_try;;
5093 esac
5094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5095 $as_echo "$ac_try_echo") >&5
5096   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5097   ac_status=$?
5098   grep -v '^ *+' conftest.er1 >conftest.err
5099   rm -f conftest.er1
5100   cat conftest.err >&5
5101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102   (exit $ac_status); } >/dev/null && {
5103          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5104          test ! -s conftest.err
5105        }; then
5106   # Broken: success on invalid input.
5107 continue
5108 else
5109   $as_echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112   # Passes both tests.
5113 ac_preproc_ok=:
5114 break
5115 fi
5116
5117 rm -f conftest.err conftest.$ac_ext
5118
5119 done
5120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5121 rm -f conftest.err conftest.$ac_ext
5122 if $ac_preproc_ok; then
5123   :
5124 else
5125   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5127 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5128 See \`config.log' for more details." >&5
5129 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5130 See \`config.log' for more details." >&2;}
5131    { (exit 1); exit 1; }; }; }
5132 fi
5133
5134 ac_ext=c
5135 ac_cpp='$CPP $CPPFLAGS'
5136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140
5141
5142
5143 #
5144 # Set up TAS assembly code if needed; the template file has now had its
5145 # chance to request this.
5146 #
5147 ac_config_links="$ac_config_links src/backend/port/tas.s:src/backend/port/tas/${tas_file}"
5148
5149
5150 if test "$need_tas" = yes ; then
5151   TAS=tas.o
5152 else
5153   TAS=""
5154 fi
5155
5156
5157
5158 #
5159 # Automatic dependency tracking
5160 #
5161
5162
5163 # Check whether --enable-depend was given.
5164 if test "${enable_depend+set}" = set; then
5165   enableval=$enable_depend;
5166   case $enableval in
5167     yes)
5168       autodepend=yes
5169       ;;
5170     no)
5171       :
5172       ;;
5173     *)
5174       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-depend option" >&5
5175 $as_echo "$as_me: error: no argument expected for --enable-depend option" >&2;}
5176    { (exit 1); exit 1; }; }
5177       ;;
5178   esac
5179
5180 else
5181   enable_depend=no
5182
5183 fi
5184
5185
5186
5187
5188
5189 #
5190 # Enable assert checks
5191 #
5192
5193
5194 # Check whether --enable-cassert was given.
5195 if test "${enable_cassert+set}" = set; then
5196   enableval=$enable_cassert;
5197   case $enableval in
5198     yes)
5199
5200 cat >>confdefs.h <<\_ACEOF
5201 #define USE_ASSERT_CHECKING 1
5202 _ACEOF
5203
5204       ;;
5205     no)
5206       :
5207       ;;
5208     *)
5209       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-cassert option" >&5
5210 $as_echo "$as_me: error: no argument expected for --enable-cassert option" >&2;}
5211    { (exit 1); exit 1; }; }
5212       ;;
5213   esac
5214
5215 else
5216   enable_cassert=no
5217
5218 fi
5219
5220
5221
5222
5223 #
5224 # Include directories
5225 #
5226 ac_save_IFS=$IFS
5227 IFS="${IFS}${PATH_SEPARATOR}"
5228 # SRCH_INC comes from the template file
5229 for dir in $with_includes $SRCH_INC; do
5230   if test -d "$dir"; then
5231     INCLUDES="$INCLUDES -I$dir"
5232   else
5233     { $as_echo "$as_me:$LINENO: WARNING: *** Include directory $dir does not exist." >&5
5234 $as_echo "$as_me: WARNING: *** Include directory $dir does not exist." >&2;}
5235   fi
5236 done
5237 IFS=$ac_save_IFS
5238
5239
5240
5241 #
5242 # Library directories
5243 #
5244 ac_save_IFS=$IFS
5245 IFS="${IFS}${PATH_SEPARATOR}"
5246 # LIBRARY_DIRS comes from command line, SRCH_LIB from template file.
5247 for dir in $LIBRARY_DIRS $SRCH_LIB; do
5248   if test -d "$dir"; then
5249     LIBDIRS="$LIBDIRS -L$dir"
5250   else
5251     { $as_echo "$as_me:$LINENO: WARNING: *** Library directory $dir does not exist." >&5
5252 $as_echo "$as_me: WARNING: *** Library directory $dir does not exist." >&2;}
5253   fi
5254 done
5255 IFS=$ac_save_IFS
5256
5257 #
5258 # Enable thread-safe client libraries
5259 #
5260 { $as_echo "$as_me:$LINENO: checking allow thread-safe client libraries" >&5
5261 $as_echo_n "checking allow thread-safe client libraries... " >&6; }
5262
5263
5264 # Check whether --enable-thread-safety was given.
5265 if test "${enable_thread_safety+set}" = set; then
5266   enableval=$enable_thread_safety;
5267   case $enableval in
5268     yes)
5269       :
5270       ;;
5271     no)
5272       :
5273       ;;
5274     *)
5275       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-thread-safety option" >&5
5276 $as_echo "$as_me: error: no argument expected for --enable-thread-safety option" >&2;}
5277    { (exit 1); exit 1; }; }
5278       ;;
5279   esac
5280
5281 else
5282   enable_thread_safety=yes
5283
5284 fi
5285
5286
5287 if test "$enable_thread_safety" = yes; then
5288
5289 cat >>confdefs.h <<\_ACEOF
5290 #define ENABLE_THREAD_SAFETY 1
5291 _ACEOF
5292
5293 fi
5294 { $as_echo "$as_me:$LINENO: result: $enable_thread_safety" >&5
5295 $as_echo "$enable_thread_safety" >&6; }
5296
5297
5298 #
5299 # Optionally build Tcl modules (PL/Tcl)
5300 #
5301 { $as_echo "$as_me:$LINENO: checking whether to build with Tcl" >&5
5302 $as_echo_n "checking whether to build with Tcl... " >&6; }
5303
5304
5305
5306 # Check whether --with-tcl was given.
5307 if test "${with_tcl+set}" = set; then
5308   withval=$with_tcl;
5309   case $withval in
5310     yes)
5311       :
5312       ;;
5313     no)
5314       :
5315       ;;
5316     *)
5317       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-tcl option" >&5
5318 $as_echo "$as_me: error: no argument expected for --with-tcl option" >&2;}
5319    { (exit 1); exit 1; }; }
5320       ;;
5321   esac
5322
5323 else
5324   with_tcl=no
5325
5326 fi
5327
5328
5329 { $as_echo "$as_me:$LINENO: result: $with_tcl" >&5
5330 $as_echo "$with_tcl" >&6; }
5331
5332
5333 # We see if the path to the Tcl/Tk configuration scripts is specified.
5334 # This will override the use of tclsh to find the paths to search.
5335
5336
5337
5338
5339 # Check whether --with-tclconfig was given.
5340 if test "${with_tclconfig+set}" = set; then
5341   withval=$with_tclconfig;
5342   case $withval in
5343     yes)
5344       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5345 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5346    { (exit 1); exit 1; }; }
5347       ;;
5348     no)
5349       { { $as_echo "$as_me:$LINENO: error: argument required for --with-tclconfig option" >&5
5350 $as_echo "$as_me: error: argument required for --with-tclconfig option" >&2;}
5351    { (exit 1); exit 1; }; }
5352       ;;
5353     *)
5354
5355       ;;
5356   esac
5357
5358 fi
5359
5360
5361
5362 #
5363 # Optionally build Perl modules (PL/Perl)
5364 #
5365 { $as_echo "$as_me:$LINENO: checking whether to build Perl modules" >&5
5366 $as_echo_n "checking whether to build Perl modules... " >&6; }
5367
5368
5369
5370 # Check whether --with-perl was given.
5371 if test "${with_perl+set}" = set; then
5372   withval=$with_perl;
5373   case $withval in
5374     yes)
5375       :
5376       ;;
5377     no)
5378       :
5379       ;;
5380     *)
5381       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-perl option" >&5
5382 $as_echo "$as_me: error: no argument expected for --with-perl option" >&2;}
5383    { (exit 1); exit 1; }; }
5384       ;;
5385   esac
5386
5387 else
5388   with_perl=no
5389
5390 fi
5391
5392
5393 { $as_echo "$as_me:$LINENO: result: $with_perl" >&5
5394 $as_echo "$with_perl" >&6; }
5395
5396
5397 #
5398 # Optionally build Python modules (PL/Python)
5399 #
5400 { $as_echo "$as_me:$LINENO: checking whether to build Python modules" >&5
5401 $as_echo_n "checking whether to build Python modules... " >&6; }
5402
5403
5404
5405 # Check whether --with-python was given.
5406 if test "${with_python+set}" = set; then
5407   withval=$with_python;
5408   case $withval in
5409     yes)
5410       :
5411       ;;
5412     no)
5413       :
5414       ;;
5415     *)
5416       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-python option" >&5
5417 $as_echo "$as_me: error: no argument expected for --with-python option" >&2;}
5418    { (exit 1); exit 1; }; }
5419       ;;
5420   esac
5421
5422 else
5423   with_python=no
5424
5425 fi
5426
5427
5428 { $as_echo "$as_me:$LINENO: result: $with_python" >&5
5429 $as_echo "$with_python" >&6; }
5430
5431
5432 #
5433 # GSSAPI
5434 #
5435 { $as_echo "$as_me:$LINENO: checking whether to build with GSSAPI support" >&5
5436 $as_echo_n "checking whether to build with GSSAPI support... " >&6; }
5437
5438
5439
5440 # Check whether --with-gssapi was given.
5441 if test "${with_gssapi+set}" = set; then
5442   withval=$with_gssapi;
5443   case $withval in
5444     yes)
5445
5446
5447 cat >>confdefs.h <<\_ACEOF
5448 #define ENABLE_GSS 1
5449 _ACEOF
5450
5451   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5452
5453       ;;
5454     no)
5455       :
5456       ;;
5457     *)
5458       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-gssapi option" >&5
5459 $as_echo "$as_me: error: no argument expected for --with-gssapi option" >&2;}
5460    { (exit 1); exit 1; }; }
5461       ;;
5462   esac
5463
5464 else
5465   with_gssapi=no
5466
5467 fi
5468
5469
5470 { $as_echo "$as_me:$LINENO: result: $with_gssapi" >&5
5471 $as_echo "$with_gssapi" >&6; }
5472
5473 #
5474 # Kerberos 5
5475 #
5476 { $as_echo "$as_me:$LINENO: checking whether to build with Kerberos 5 support" >&5
5477 $as_echo_n "checking whether to build with Kerberos 5 support... " >&6; }
5478
5479
5480
5481 # Check whether --with-krb5 was given.
5482 if test "${with_krb5+set}" = set; then
5483   withval=$with_krb5;
5484   case $withval in
5485     yes)
5486
5487
5488 cat >>confdefs.h <<\_ACEOF
5489 #define KRB5 1
5490 _ACEOF
5491
5492   krb_srvtab="FILE:\$(sysconfdir)/krb5.keytab"
5493
5494       ;;
5495     no)
5496       :
5497       ;;
5498     *)
5499       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-krb5 option" >&5
5500 $as_echo "$as_me: error: no argument expected for --with-krb5 option" >&2;}
5501    { (exit 1); exit 1; }; }
5502       ;;
5503   esac
5504
5505 else
5506   with_krb5=no
5507
5508 fi
5509
5510
5511 { $as_echo "$as_me:$LINENO: result: $with_krb5" >&5
5512 $as_echo "$with_krb5" >&6; }
5513
5514
5515
5516
5517
5518 #
5519 # Kerberos configuration parameters
5520 #
5521
5522
5523
5524 # Check whether --with-krb-srvnam was given.
5525 if test "${with_krb_srvnam+set}" = set; then
5526   withval=$with_krb_srvnam;
5527   case $withval in
5528     yes)
5529       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5530 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5531    { (exit 1); exit 1; }; }
5532       ;;
5533     no)
5534       { { $as_echo "$as_me:$LINENO: error: argument required for --with-krb-srvnam option" >&5
5535 $as_echo "$as_me: error: argument required for --with-krb-srvnam option" >&2;}
5536    { (exit 1); exit 1; }; }
5537       ;;
5538     *)
5539
5540       ;;
5541   esac
5542
5543 else
5544   with_krb_srvnam="postgres"
5545 fi
5546
5547
5548
5549 cat >>confdefs.h <<_ACEOF
5550 #define PG_KRB_SRVNAM "$with_krb_srvnam"
5551 _ACEOF
5552
5553
5554
5555 #
5556 # PAM
5557 #
5558 { $as_echo "$as_me:$LINENO: checking whether to build with PAM support" >&5
5559 $as_echo_n "checking whether to build with PAM support... " >&6; }
5560
5561
5562
5563 # Check whether --with-pam was given.
5564 if test "${with_pam+set}" = set; then
5565   withval=$with_pam;
5566   case $withval in
5567     yes)
5568
5569 cat >>confdefs.h <<\_ACEOF
5570 #define USE_PAM 1
5571 _ACEOF
5572
5573       ;;
5574     no)
5575       :
5576       ;;
5577     *)
5578       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-pam option" >&5
5579 $as_echo "$as_me: error: no argument expected for --with-pam option" >&2;}
5580    { (exit 1); exit 1; }; }
5581       ;;
5582   esac
5583
5584 else
5585   with_pam=no
5586
5587 fi
5588
5589
5590 { $as_echo "$as_me:$LINENO: result: $with_pam" >&5
5591 $as_echo "$with_pam" >&6; }
5592
5593
5594 #
5595 # LDAP
5596 #
5597 { $as_echo "$as_me:$LINENO: checking whether to build with LDAP support" >&5
5598 $as_echo_n "checking whether to build with LDAP support... " >&6; }
5599
5600
5601
5602 # Check whether --with-ldap was given.
5603 if test "${with_ldap+set}" = set; then
5604   withval=$with_ldap;
5605   case $withval in
5606     yes)
5607
5608 cat >>confdefs.h <<\_ACEOF
5609 #define USE_LDAP 1
5610 _ACEOF
5611
5612       ;;
5613     no)
5614       :
5615       ;;
5616     *)
5617       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ldap option" >&5
5618 $as_echo "$as_me: error: no argument expected for --with-ldap option" >&2;}
5619    { (exit 1); exit 1; }; }
5620       ;;
5621   esac
5622
5623 else
5624   with_ldap=no
5625
5626 fi
5627
5628
5629 { $as_echo "$as_me:$LINENO: result: $with_ldap" >&5
5630 $as_echo "$with_ldap" >&6; }
5631
5632
5633 #
5634 # Bonjour
5635 #
5636 { $as_echo "$as_me:$LINENO: checking whether to build with Bonjour support" >&5
5637 $as_echo_n "checking whether to build with Bonjour support... " >&6; }
5638
5639
5640
5641 # Check whether --with-bonjour was given.
5642 if test "${with_bonjour+set}" = set; then
5643   withval=$with_bonjour;
5644   case $withval in
5645     yes)
5646
5647 cat >>confdefs.h <<\_ACEOF
5648 #define USE_BONJOUR 1
5649 _ACEOF
5650
5651       ;;
5652     no)
5653       :
5654       ;;
5655     *)
5656       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-bonjour option" >&5
5657 $as_echo "$as_me: error: no argument expected for --with-bonjour option" >&2;}
5658    { (exit 1); exit 1; }; }
5659       ;;
5660   esac
5661
5662 else
5663   with_bonjour=no
5664
5665 fi
5666
5667
5668 { $as_echo "$as_me:$LINENO: result: $with_bonjour" >&5
5669 $as_echo "$with_bonjour" >&6; }
5670
5671
5672 #
5673 # OpenSSL
5674 #
5675 { $as_echo "$as_me:$LINENO: checking whether to build with OpenSSL support" >&5
5676 $as_echo_n "checking whether to build with OpenSSL support... " >&6; }
5677
5678
5679
5680 # Check whether --with-openssl was given.
5681 if test "${with_openssl+set}" = set; then
5682   withval=$with_openssl;
5683   case $withval in
5684     yes)
5685
5686 cat >>confdefs.h <<\_ACEOF
5687 #define USE_SSL 1
5688 _ACEOF
5689
5690       ;;
5691     no)
5692       :
5693       ;;
5694     *)
5695       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-openssl option" >&5
5696 $as_echo "$as_me: error: no argument expected for --with-openssl option" >&2;}
5697    { (exit 1); exit 1; }; }
5698       ;;
5699   esac
5700
5701 else
5702   with_openssl=no
5703
5704 fi
5705
5706
5707 { $as_echo "$as_me:$LINENO: result: $with_openssl" >&5
5708 $as_echo "$with_openssl" >&6; }
5709
5710
5711 #
5712 # SELinux
5713 #
5714 { $as_echo "$as_me:$LINENO: checking whether to build with SELinux support" >&5
5715 $as_echo_n "checking whether to build with SELinux support... " >&6; }
5716
5717
5718
5719 # Check whether --with-selinux was given.
5720 if test "${with_selinux+set}" = set; then
5721   withval=$with_selinux;
5722   case $withval in
5723     yes)
5724       :
5725       ;;
5726     no)
5727       :
5728       ;;
5729     *)
5730       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-selinux option" >&5
5731 $as_echo "$as_me: error: no argument expected for --with-selinux option" >&2;}
5732    { (exit 1); exit 1; }; }
5733       ;;
5734   esac
5735
5736 else
5737   with_selinux=no
5738
5739 fi
5740
5741
5742
5743 { $as_echo "$as_me:$LINENO: result: $with_selinux" >&5
5744 $as_echo "$with_selinux" >&6; }
5745
5746 #
5747 # Readline
5748 #
5749
5750
5751
5752 # Check whether --with-readline was given.
5753 if test "${with_readline+set}" = set; then
5754   withval=$with_readline;
5755   case $withval in
5756     yes)
5757       :
5758       ;;
5759     no)
5760       :
5761       ;;
5762     *)
5763       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-readline option" >&5
5764 $as_echo "$as_me: error: no argument expected for --with-readline option" >&2;}
5765    { (exit 1); exit 1; }; }
5766       ;;
5767   esac
5768
5769 else
5770   with_readline=yes
5771
5772 fi
5773
5774
5775 # readline on MinGW has problems with backslashes in psql and other bugs.
5776 # This is particularly a problem with non-US code pages.
5777 # Therefore disable its use until we understand the cause. 2004-07-20
5778 if test "$PORTNAME" = "win32"; then
5779   if test "$with_readline" = yes; then
5780     { $as_echo "$as_me:$LINENO: WARNING: *** Readline does not work on MinGW --- disabling" >&5
5781 $as_echo "$as_me: WARNING: *** Readline does not work on MinGW --- disabling" >&2;}
5782     with_readline=no
5783   fi
5784 fi
5785
5786
5787 #
5788 # Prefer libedit
5789 #
5790
5791
5792
5793 # Check whether --with-libedit-preferred was given.
5794 if test "${with_libedit_preferred+set}" = set; then
5795   withval=$with_libedit_preferred;
5796   case $withval in
5797     yes)
5798       :
5799       ;;
5800     no)
5801       :
5802       ;;
5803     *)
5804       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libedit-preferred option" >&5
5805 $as_echo "$as_me: error: no argument expected for --with-libedit-preferred option" >&2;}
5806    { (exit 1); exit 1; }; }
5807       ;;
5808   esac
5809
5810 else
5811   with_libedit_preferred=no
5812
5813 fi
5814
5815
5816
5817
5818 #
5819 # OSSP UUID library
5820 #
5821
5822
5823
5824 # Check whether --with-ossp-uuid was given.
5825 if test "${with_ossp_uuid+set}" = set; then
5826   withval=$with_ossp_uuid;
5827   case $withval in
5828     yes)
5829       :
5830       ;;
5831     no)
5832       :
5833       ;;
5834     *)
5835       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-ossp-uuid option" >&5
5836 $as_echo "$as_me: error: no argument expected for --with-ossp-uuid option" >&2;}
5837    { (exit 1); exit 1; }; }
5838       ;;
5839   esac
5840
5841 else
5842   with_ossp_uuid=no
5843
5844 fi
5845
5846
5847
5848
5849
5850 #
5851 # XML
5852 #
5853
5854
5855
5856 # Check whether --with-libxml was given.
5857 if test "${with_libxml+set}" = set; then
5858   withval=$with_libxml;
5859   case $withval in
5860     yes)
5861
5862 cat >>confdefs.h <<\_ACEOF
5863 #define USE_LIBXML 1
5864 _ACEOF
5865
5866       ;;
5867     no)
5868       :
5869       ;;
5870     *)
5871       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxml option" >&5
5872 $as_echo "$as_me: error: no argument expected for --with-libxml option" >&2;}
5873    { (exit 1); exit 1; }; }
5874       ;;
5875   esac
5876
5877 else
5878   with_libxml=no
5879
5880 fi
5881
5882
5883
5884 if test "$with_libxml" = yes ; then
5885   for ac_prog in xml2-config
5886 do
5887   # Extract the first word of "$ac_prog", so it can be a program name with args.
5888 set dummy $ac_prog; ac_word=$2
5889 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5890 $as_echo_n "checking for $ac_word... " >&6; }
5891 if test "${ac_cv_prog_XML2_CONFIG+set}" = set; then
5892   $as_echo_n "(cached) " >&6
5893 else
5894   if test -n "$XML2_CONFIG"; then
5895   ac_cv_prog_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test.
5896 else
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 for as_dir in $PATH
5899 do
5900   IFS=$as_save_IFS
5901   test -z "$as_dir" && as_dir=.
5902   for ac_exec_ext in '' $ac_executable_extensions; do
5903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5904     ac_cv_prog_XML2_CONFIG="$ac_prog"
5905     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5906     break 2
5907   fi
5908 done
5909 done
5910 IFS=$as_save_IFS
5911
5912 fi
5913 fi
5914 XML2_CONFIG=$ac_cv_prog_XML2_CONFIG
5915 if test -n "$XML2_CONFIG"; then
5916   { $as_echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
5917 $as_echo "$XML2_CONFIG" >&6; }
5918 else
5919   { $as_echo "$as_me:$LINENO: result: no" >&5
5920 $as_echo "no" >&6; }
5921 fi
5922
5923
5924   test -n "$XML2_CONFIG" && break
5925 done
5926
5927   if test -n "$XML2_CONFIG"; then
5928     for pgac_option in `$XML2_CONFIG --cflags`; do
5929       case $pgac_option in
5930         -I*|-D*) CPPFLAGS="$CPPFLAGS $pgac_option";;
5931       esac
5932     done
5933     for pgac_option in `$XML2_CONFIG --libs`; do
5934       case $pgac_option in
5935         -L*) LDFLAGS="$LDFLAGS $pgac_option";;
5936       esac
5937     done
5938   fi
5939 fi
5940
5941
5942
5943 #
5944 # XSLT
5945 #
5946
5947
5948
5949 # Check whether --with-libxslt was given.
5950 if test "${with_libxslt+set}" = set; then
5951   withval=$with_libxslt;
5952   case $withval in
5953     yes)
5954
5955 cat >>confdefs.h <<\_ACEOF
5956 #define USE_LIBXSLT 1
5957 _ACEOF
5958
5959       ;;
5960     no)
5961       :
5962       ;;
5963     *)
5964       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-libxslt option" >&5
5965 $as_echo "$as_me: error: no argument expected for --with-libxslt option" >&2;}
5966    { (exit 1); exit 1; }; }
5967       ;;
5968   esac
5969
5970 else
5971   with_libxslt=no
5972
5973 fi
5974
5975
5976
5977
5978
5979
5980 #
5981 # tzdata
5982 #
5983
5984
5985
5986 # Check whether --with-system-tzdata was given.
5987 if test "${with_system_tzdata+set}" = set; then
5988   withval=$with_system_tzdata;
5989   case $withval in
5990     yes)
5991       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5992 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5993    { (exit 1); exit 1; }; }
5994       ;;
5995     no)
5996       { { $as_echo "$as_me:$LINENO: error: argument required for --with-system-tzdata option" >&5
5997 $as_echo "$as_me: error: argument required for --with-system-tzdata option" >&2;}
5998    { (exit 1); exit 1; }; }
5999       ;;
6000     *)
6001
6002       ;;
6003   esac
6004
6005 fi
6006
6007
6008
6009
6010 #
6011 # Zlib
6012 #
6013
6014
6015
6016 # Check whether --with-zlib was given.
6017 if test "${with_zlib+set}" = set; then
6018   withval=$with_zlib;
6019   case $withval in
6020     yes)
6021       :
6022       ;;
6023     no)
6024       :
6025       ;;
6026     *)
6027       { { $as_echo "$as_me:$LINENO: error: no argument expected for --with-zlib option" >&5
6028 $as_echo "$as_me: error: no argument expected for --with-zlib option" >&2;}
6029    { (exit 1); exit 1; }; }
6030       ;;
6031   esac
6032
6033 else
6034   with_zlib=yes
6035
6036 fi
6037
6038
6039
6040
6041 #
6042 # Elf
6043 #
6044
6045 # Assume system is ELF if it predefines __ELF__ as 1,
6046 # otherwise believe host_os based default.
6047 case $host_os in
6048     freebsd1*|freebsd2*) elf=no;;
6049     freebsd3*|freebsd4*) elf=yes;;
6050 esac
6051
6052
6053 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
6054 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6055 if test "${ac_cv_path_GREP+set}" = set; then
6056   $as_echo_n "(cached) " >&6
6057 else
6058   if test -z "$GREP"; then
6059   ac_path_GREP_found=false
6060   # Loop through the user's path and test for each of PROGNAME-LIST
6061   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6063 do
6064   IFS=$as_save_IFS
6065   test -z "$as_dir" && as_dir=.
6066   for ac_prog in grep ggrep; do
6067     for ac_exec_ext in '' $ac_executable_extensions; do
6068       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6069       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6070 # Check for GNU ac_path_GREP and select it if it is found.
6071   # Check for GNU $ac_path_GREP
6072 case `"$ac_path_GREP" --version 2>&1` in
6073 *GNU*)
6074   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6075 *)
6076   ac_count=0
6077   $as_echo_n 0123456789 >"conftest.in"
6078   while :
6079   do
6080     cat "conftest.in" "conftest.in" >"conftest.tmp"
6081     mv "conftest.tmp" "conftest.in"
6082     cp "conftest.in" "conftest.nl"
6083     $as_echo 'GREP' >> "conftest.nl"
6084     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6085     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6086     ac_count=`expr $ac_count + 1`
6087     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6088       # Best one so far, save it but keep looking for a better one
6089       ac_cv_path_GREP="$ac_path_GREP"
6090       ac_path_GREP_max=$ac_count
6091     fi
6092     # 10*(2^10) chars as input seems more than enough
6093     test $ac_count -gt 10 && break
6094   done
6095   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6096 esac
6097
6098       $ac_path_GREP_found && break 3
6099     done
6100   done
6101 done
6102 IFS=$as_save_IFS
6103   if test -z "$ac_cv_path_GREP"; then
6104     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6105 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6106    { (exit 1); exit 1; }; }
6107   fi
6108 else
6109   ac_cv_path_GREP=$GREP
6110 fi
6111
6112 fi
6113 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
6114 $as_echo "$ac_cv_path_GREP" >&6; }
6115  GREP="$ac_cv_path_GREP"
6116
6117
6118 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
6119 $as_echo_n "checking for egrep... " >&6; }
6120 if test "${ac_cv_path_EGREP+set}" = set; then
6121   $as_echo_n "(cached) " >&6
6122 else
6123   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6124    then ac_cv_path_EGREP="$GREP -E"
6125    else
6126      if test -z "$EGREP"; then
6127   ac_path_EGREP_found=false
6128   # Loop through the user's path and test for each of PROGNAME-LIST
6129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134   for ac_prog in egrep; do
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6137       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6138 # Check for GNU ac_path_EGREP and select it if it is found.
6139   # Check for GNU $ac_path_EGREP
6140 case `"$ac_path_EGREP" --version 2>&1` in
6141 *GNU*)
6142   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6143 *)
6144   ac_count=0
6145   $as_echo_n 0123456789 >"conftest.in"
6146   while :
6147   do
6148     cat "conftest.in" "conftest.in" >"conftest.tmp"
6149     mv "conftest.tmp" "conftest.in"
6150     cp "conftest.in" "conftest.nl"
6151     $as_echo 'EGREP' >> "conftest.nl"
6152     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154     ac_count=`expr $ac_count + 1`
6155     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6156       # Best one so far, save it but keep looking for a better one
6157       ac_cv_path_EGREP="$ac_path_EGREP"
6158       ac_path_EGREP_max=$ac_count
6159     fi
6160     # 10*(2^10) chars as input seems more than enough
6161     test $ac_count -gt 10 && break
6162   done
6163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 esac
6165
6166       $ac_path_EGREP_found && break 3
6167     done
6168   done
6169 done
6170 IFS=$as_save_IFS
6171   if test -z "$ac_cv_path_EGREP"; then
6172     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6173 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6174    { (exit 1); exit 1; }; }
6175   fi
6176 else
6177   ac_cv_path_EGREP=$EGREP
6178 fi
6179
6180    fi
6181 fi
6182 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6183 $as_echo "$ac_cv_path_EGREP" >&6; }
6184  EGREP="$ac_cv_path_EGREP"
6185
6186
6187 cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193 #if __ELF__
6194   yes
6195 #endif
6196
6197 _ACEOF
6198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6199   $EGREP "yes" >/dev/null 2>&1; then
6200   ELF_SYS=true
6201 else
6202   if test "X$elf" = "Xyes" ; then
6203   ELF_SYS=true
6204 else
6205   ELF_SYS=
6206 fi
6207 fi
6208 rm -f conftest*
6209
6210
6211
6212 #
6213 # Assignments
6214 #
6215
6216 CPPFLAGS="$CPPFLAGS $INCLUDES"
6217 LDFLAGS="$LDFLAGS $LIBDIRS"
6218
6219
6220
6221
6222
6223 # Check whether --with-gnu-ld was given.
6224 if test "${with_gnu_ld+set}" = set; then
6225   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6226 else
6227   with_gnu_ld=no
6228 fi
6229
6230 ac_prog=ld
6231 if test "$GCC" = yes; then
6232   # Check if gcc -print-prog-name=ld gives a path.
6233   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6234 $as_echo_n "checking for ld used by GCC... " >&6; }
6235   case $host in
6236   *-*-mingw*)
6237     # gcc leaves a trailing carriage return which upsets mingw
6238     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6239   *)
6240     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6241   esac
6242   case "$ac_prog" in
6243     # Accept absolute paths.
6244     [\\/]* | [A-Za-z]:[\\/]*)
6245       re_direlt='/[^/][^/]*/\.\./'
6246       # Canonicalize the path of ld
6247       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6248       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6249         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6250       done
6251       test -z "$LD" && LD="$ac_prog"
6252       ;;
6253   "")
6254     # If it fails, then pretend we aren't using GCC.
6255     ac_prog=ld
6256     ;;
6257   *)
6258     # If it is relative, then search for the first ld in PATH.
6259     with_gnu_ld=unknown
6260     ;;
6261   esac
6262 elif test "$with_gnu_ld" = yes; then
6263   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
6264 $as_echo_n "checking for GNU ld... " >&6; }
6265 else
6266   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6267 $as_echo_n "checking for non-GNU ld... " >&6; }
6268 fi
6269 if test "${ac_cv_path_LD+set}" = set; then
6270   $as_echo_n "(cached) " >&6
6271 else
6272   if test -z "$LD"; then
6273   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6274   for ac_dir in $PATH; do
6275     test -z "$ac_dir" && ac_dir=.
6276     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6277       ac_cv_path_LD="$ac_dir/$ac_prog"
6278       # Check to see if the program is GNU ld.  I'd rather use --version,
6279       # but apparently some GNU ld's only accept -v.
6280       # Break only if it was the GNU/non-GNU ld that we prefer.
6281       if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6282         test "$with_gnu_ld" != no && break
6283       else
6284         test "$with_gnu_ld" != yes && break
6285       fi
6286     fi
6287   done
6288   IFS="$ac_save_ifs"
6289 else
6290   ac_cv_path_LD="$LD" # Let the user override the test with a path.
6291 fi
6292 fi
6293
6294 LD="$ac_cv_path_LD"
6295 if test -n "$LD"; then
6296   { $as_echo "$as_me:$LINENO: result: $LD" >&5
6297 $as_echo "$LD" >&6; }
6298 else
6299   { $as_echo "$as_me:$LINENO: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6303 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6304    { (exit 1); exit 1; }; }
6305 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6306 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6307 if test "${ac_cv_prog_gnu_ld+set}" = set; then
6308   $as_echo_n "(cached) " >&6
6309 else
6310   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6311 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6312   ac_cv_prog_gnu_ld=yes
6313 else
6314   ac_cv_prog_gnu_ld=no
6315 fi
6316 fi
6317 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5
6318 $as_echo "$ac_cv_prog_gnu_ld" >&6; }
6319 with_gnu_ld=$ac_cv_prog_gnu_ld
6320
6321
6322
6323
6324 case $host_os in sysv5*)
6325   { $as_echo "$as_me:$LINENO: checking whether ld -R works" >&5
6326 $as_echo_n "checking whether ld -R works... " >&6; }
6327 if test "${pgac_cv_prog_ld_R+set}" = set; then
6328   $as_echo_n "(cached) " >&6
6329 else
6330
6331     pgac_save_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -Wl,-R/usr/lib"
6332     cat >conftest.$ac_ext <<_ACEOF
6333 /* confdefs.h.  */
6334 _ACEOF
6335 cat confdefs.h >>conftest.$ac_ext
6336 cat >>conftest.$ac_ext <<_ACEOF
6337 /* end confdefs.h.  */
6338
6339 int
6340 main ()
6341 {
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext conftest$ac_exeext
6348 if { (ac_try="$ac_link"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6354 $as_echo "$ac_try_echo") >&5
6355   (eval "$ac_link") 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } && {
6362          test -z "$ac_c_werror_flag" ||
6363          test ! -s conftest.err
6364        } && test -s conftest$ac_exeext && {
6365          test "$cross_compiling" = yes ||
6366          $as_test_x conftest$ac_exeext
6367        }; then
6368   pgac_cv_prog_ld_R=yes
6369 else
6370   $as_echo "$as_me: failed program was:" >&5
6371 sed 's/^/| /' conftest.$ac_ext >&5
6372
6373         pgac_cv_prog_ld_R=no
6374 fi
6375
6376 rm -rf conftest.dSYM
6377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6378       conftest$ac_exeext conftest.$ac_ext
6379     LDFLAGS=$pgac_save_LDFLAGS
6380
6381 fi
6382 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_ld_R" >&5
6383 $as_echo "$pgac_cv_prog_ld_R" >&6; }
6384   ld_R_works=$pgac_cv_prog_ld_R
6385
6386 esac
6387 if test -n "$ac_tool_prefix"; then
6388   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6390 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if test "${ac_cv_prog_RANLIB+set}" = set; then
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$RANLIB"; then
6396   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403   for ac_exec_ext in '' $ac_executable_extensions; do
6404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6406     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 RANLIB=$ac_cv_prog_RANLIB
6416 if test -n "$RANLIB"; then
6417   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6418 $as_echo "$RANLIB" >&6; }
6419 else
6420   { $as_echo "$as_me:$LINENO: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_RANLIB"; then
6427   ac_ct_RANLIB=$RANLIB
6428   # Extract the first word of "ranlib", so it can be a program name with args.
6429 set dummy ranlib; ac_word=$2
6430 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6433   $as_echo_n "(cached) " >&6
6434 else
6435   if test -n "$ac_ct_RANLIB"; then
6436   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441   IFS=$as_save_IFS
6442   test -z "$as_dir" && as_dir=.
6443   for ac_exec_ext in '' $ac_executable_extensions; do
6444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6445     ac_cv_prog_ac_ct_RANLIB="ranlib"
6446     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6447     break 2
6448   fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6456 if test -n "$ac_ct_RANLIB"; then
6457   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6458 $as_echo "$ac_ct_RANLIB" >&6; }
6459 else
6460   { $as_echo "$as_me:$LINENO: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464   if test "x$ac_ct_RANLIB" = x; then
6465     RANLIB=":"
6466   else
6467     case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473     RANLIB=$ac_ct_RANLIB
6474   fi
6475 else
6476   RANLIB="$ac_cv_prog_RANLIB"
6477 fi
6478
6479
6480   if test -n "$ac_tool_prefix"; then
6481   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6482 set dummy ${ac_tool_prefix}strip; ac_word=$2
6483 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_STRIP+set}" = set; then
6486   $as_echo_n "(cached) " >&6
6487 else
6488   if test -n "$STRIP"; then
6489   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494   IFS=$as_save_IFS
6495   test -z "$as_dir" && as_dir=.
6496   for ac_exec_ext in '' $ac_executable_extensions; do
6497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6499     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6500     break 2
6501   fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 STRIP=$ac_cv_prog_STRIP
6509 if test -n "$STRIP"; then
6510   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6511 $as_echo "$STRIP" >&6; }
6512 else
6513   { $as_echo "$as_me:$LINENO: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517
6518 fi
6519 if test -z "$ac_cv_prog_STRIP"; then
6520   ac_ct_STRIP=$STRIP
6521   # Extract the first word of "strip", so it can be a program name with args.
6522 set dummy strip; ac_word=$2
6523 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6524 $as_echo_n "checking for $ac_word... " >&6; }
6525 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6526   $as_echo_n "(cached) " >&6
6527 else
6528   if test -n "$ac_ct_STRIP"; then
6529   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6530 else
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534   IFS=$as_save_IFS
6535   test -z "$as_dir" && as_dir=.
6536   for ac_exec_ext in '' $ac_executable_extensions; do
6537   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538     ac_cv_prog_ac_ct_STRIP="strip"
6539     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6540     break 2
6541   fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 fi
6547 fi
6548 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6549 if test -n "$ac_ct_STRIP"; then
6550   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6551 $as_echo "$ac_ct_STRIP" >&6; }
6552 else
6553   { $as_echo "$as_me:$LINENO: result: no" >&5
6554 $as_echo "no" >&6; }
6555 fi
6556
6557   if test "x$ac_ct_STRIP" = x; then
6558     STRIP=":"
6559   else
6560     case $cross_compiling:$ac_tool_warned in
6561 yes:)
6562 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6564 ac_tool_warned=yes ;;
6565 esac
6566     STRIP=$ac_ct_STRIP
6567   fi
6568 else
6569   STRIP="$ac_cv_prog_STRIP"
6570 fi
6571
6572
6573   { $as_echo "$as_me:$LINENO: checking whether it is possible to strip libraries" >&5
6574 $as_echo_n "checking whether it is possible to strip libraries... " >&6; }
6575   if test x"$STRIP" != x"" && "$STRIP" -V 2>&1 | grep "GNU strip" >/dev/null; then
6576     STRIP_STATIC_LIB="$STRIP -x"
6577     STRIP_SHARED_LIB="$STRIP --strip-unneeded"
6578     { $as_echo "$as_me:$LINENO: result: yes" >&5
6579 $as_echo "yes" >&6; }
6580   else
6581     case $host_os in
6582       darwin*)
6583         STRIP="$STRIP -x"
6584         STRIP_STATIC_LIB=$STRIP
6585         STRIP_SHARED_LIB=$STRIP
6586         { $as_echo "$as_me:$LINENO: result: yes" >&5
6587 $as_echo "yes" >&6; }
6588         ;;
6589       *)
6590         STRIP_STATIC_LIB=:
6591         STRIP_SHARED_LIB=:
6592         { $as_echo "$as_me:$LINENO: result: no" >&5
6593 $as_echo "no" >&6; }
6594         ;;
6595     esac
6596   fi
6597
6598
6599
6600 if test -n "$ac_tool_prefix"; then
6601   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6602 set dummy ${ac_tool_prefix}ar; ac_word=$2
6603 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if test "${ac_cv_prog_AR+set}" = set; then
6606   $as_echo_n "(cached) " >&6
6607 else
6608   if test -n "$AR"; then
6609   ac_cv_prog_AR="$AR" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614   IFS=$as_save_IFS
6615   test -z "$as_dir" && as_dir=.
6616   for ac_exec_ext in '' $ac_executable_extensions; do
6617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6618     ac_cv_prog_AR="${ac_tool_prefix}ar"
6619     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6620     break 2
6621   fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 AR=$ac_cv_prog_AR
6629 if test -n "$AR"; then
6630   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6631 $as_echo "$AR" >&6; }
6632 else
6633   { $as_echo "$as_me:$LINENO: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637
6638 fi
6639 if test -z "$ac_cv_prog_AR"; then
6640   ac_ct_AR=$AR
6641   # Extract the first word of "ar", so it can be a program name with args.
6642 set dummy ar; ac_word=$2
6643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6644 $as_echo_n "checking for $ac_word... " >&6; }
6645 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6646   $as_echo_n "(cached) " >&6
6647 else
6648   if test -n "$ac_ct_AR"; then
6649   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6650 else
6651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6652 for as_dir in $PATH
6653 do
6654   IFS=$as_save_IFS
6655   test -z "$as_dir" && as_dir=.
6656   for ac_exec_ext in '' $ac_executable_extensions; do
6657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658     ac_cv_prog_ac_ct_AR="ar"
6659     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6660     break 2
6661   fi
6662 done
6663 done
6664 IFS=$as_save_IFS
6665
6666 fi
6667 fi
6668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6669 if test -n "$ac_ct_AR"; then
6670   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6671 $as_echo "$ac_ct_AR" >&6; }
6672 else
6673   { $as_echo "$as_me:$LINENO: result: no" >&5
6674 $as_echo "no" >&6; }
6675 fi
6676
6677   if test "x$ac_ct_AR" = x; then
6678     AR="ar"
6679   else
6680     case $cross_compiling:$ac_tool_warned in
6681 yes:)
6682 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6684 ac_tool_warned=yes ;;
6685 esac
6686     AR=$ac_ct_AR
6687   fi
6688 else
6689   AR="$ac_cv_prog_AR"
6690 fi
6691
6692 if test "$PORTNAME" = "win32"; then
6693   if test -n "$ac_tool_prefix"; then
6694   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6695 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6699   $as_echo_n "(cached) " >&6
6700 else
6701   if test -n "$DLLTOOL"; then
6702   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6703 else
6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 for as_dir in $PATH
6706 do
6707   IFS=$as_save_IFS
6708   test -z "$as_dir" && as_dir=.
6709   for ac_exec_ext in '' $ac_executable_extensions; do
6710   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6711     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6712     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6713     break 2
6714   fi
6715 done
6716 done
6717 IFS=$as_save_IFS
6718
6719 fi
6720 fi
6721 DLLTOOL=$ac_cv_prog_DLLTOOL
6722 if test -n "$DLLTOOL"; then
6723   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6724 $as_echo "$DLLTOOL" >&6; }
6725 else
6726   { $as_echo "$as_me:$LINENO: result: no" >&5
6727 $as_echo "no" >&6; }
6728 fi
6729
6730
6731 fi
6732 if test -z "$ac_cv_prog_DLLTOOL"; then
6733   ac_ct_DLLTOOL=$DLLTOOL
6734   # Extract the first word of "dlltool", so it can be a program name with args.
6735 set dummy dlltool; ac_word=$2
6736 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6737 $as_echo_n "checking for $ac_word... " >&6; }
6738 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6739   $as_echo_n "(cached) " >&6
6740 else
6741   if test -n "$ac_ct_DLLTOOL"; then
6742   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6743 else
6744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 for as_dir in $PATH
6746 do
6747   IFS=$as_save_IFS
6748   test -z "$as_dir" && as_dir=.
6749   for ac_exec_ext in '' $ac_executable_extensions; do
6750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6751     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6752     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6753     break 2
6754   fi
6755 done
6756 done
6757 IFS=$as_save_IFS
6758
6759 fi
6760 fi
6761 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6762 if test -n "$ac_ct_DLLTOOL"; then
6763   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6764 $as_echo "$ac_ct_DLLTOOL" >&6; }
6765 else
6766   { $as_echo "$as_me:$LINENO: result: no" >&5
6767 $as_echo "no" >&6; }
6768 fi
6769
6770   if test "x$ac_ct_DLLTOOL" = x; then
6771     DLLTOOL="dlltool"
6772   else
6773     case $cross_compiling:$ac_tool_warned in
6774 yes:)
6775 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6776 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779     DLLTOOL=$ac_ct_DLLTOOL
6780   fi
6781 else
6782   DLLTOOL="$ac_cv_prog_DLLTOOL"
6783 fi
6784
6785   if test -n "$ac_tool_prefix"; then
6786   # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6787 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
6788 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6789 $as_echo_n "checking for $ac_word... " >&6; }
6790 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
6791   $as_echo_n "(cached) " >&6
6792 else
6793   if test -n "$DLLWRAP"; then
6794   ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6795 else
6796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 for as_dir in $PATH
6798 do
6799   IFS=$as_save_IFS
6800   test -z "$as_dir" && as_dir=.
6801   for ac_exec_ext in '' $ac_executable_extensions; do
6802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803     ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
6804     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6805     break 2
6806   fi
6807 done
6808 done
6809 IFS=$as_save_IFS
6810
6811 fi
6812 fi
6813 DLLWRAP=$ac_cv_prog_DLLWRAP
6814 if test -n "$DLLWRAP"; then
6815   { $as_echo "$as_me:$LINENO: result: $DLLWRAP" >&5
6816 $as_echo "$DLLWRAP" >&6; }
6817 else
6818   { $as_echo "$as_me:$LINENO: result: no" >&5
6819 $as_echo "no" >&6; }
6820 fi
6821
6822
6823 fi
6824 if test -z "$ac_cv_prog_DLLWRAP"; then
6825   ac_ct_DLLWRAP=$DLLWRAP
6826   # Extract the first word of "dllwrap", so it can be a program name with args.
6827 set dummy dllwrap; ac_word=$2
6828 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
6831   $as_echo_n "(cached) " >&6
6832 else
6833   if test -n "$ac_ct_DLLWRAP"; then
6834   ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6835 else
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 for as_dir in $PATH
6838 do
6839   IFS=$as_save_IFS
6840   test -z "$as_dir" && as_dir=.
6841   for ac_exec_ext in '' $ac_executable_extensions; do
6842   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6843     ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
6844     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6845     break 2
6846   fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi
6852 fi
6853 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6854 if test -n "$ac_ct_DLLWRAP"; then
6855   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
6856 $as_echo "$ac_ct_DLLWRAP" >&6; }
6857 else
6858   { $as_echo "$as_me:$LINENO: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861
6862   if test "x$ac_ct_DLLWRAP" = x; then
6863     DLLWRAP="dllwrap"
6864   else
6865     case $cross_compiling:$ac_tool_warned in
6866 yes:)
6867 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6869 ac_tool_warned=yes ;;
6870 esac
6871     DLLWRAP=$ac_ct_DLLWRAP
6872   fi
6873 else
6874   DLLWRAP="$ac_cv_prog_DLLWRAP"
6875 fi
6876
6877   if test -n "$ac_tool_prefix"; then
6878   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}windres; ac_word=$2
6880 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 $as_echo_n "checking for $ac_word... " >&6; }
6882 if test "${ac_cv_prog_WINDRES+set}" = set; then
6883   $as_echo_n "(cached) " >&6
6884 else
6885   if test -n "$WINDRES"; then
6886   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6887 else
6888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6889 for as_dir in $PATH
6890 do
6891   IFS=$as_save_IFS
6892   test -z "$as_dir" && as_dir=.
6893   for ac_exec_ext in '' $ac_executable_extensions; do
6894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6895     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6896     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6897     break 2
6898   fi
6899 done
6900 done
6901 IFS=$as_save_IFS
6902
6903 fi
6904 fi
6905 WINDRES=$ac_cv_prog_WINDRES
6906 if test -n "$WINDRES"; then
6907   { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
6908 $as_echo "$WINDRES" >&6; }
6909 else
6910   { $as_echo "$as_me:$LINENO: result: no" >&5
6911 $as_echo "no" >&6; }
6912 fi
6913
6914
6915 fi
6916 if test -z "$ac_cv_prog_WINDRES"; then
6917   ac_ct_WINDRES=$WINDRES
6918   # Extract the first word of "windres", so it can be a program name with args.
6919 set dummy windres; ac_word=$2
6920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6923   $as_echo_n "(cached) " >&6
6924 else
6925   if test -n "$ac_ct_WINDRES"; then
6926   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6927 else
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6929 for as_dir in $PATH
6930 do
6931   IFS=$as_save_IFS
6932   test -z "$as_dir" && as_dir=.
6933   for ac_exec_ext in '' $ac_executable_extensions; do
6934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6935     ac_cv_prog_ac_ct_WINDRES="windres"
6936     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937     break 2
6938   fi
6939 done
6940 done
6941 IFS=$as_save_IFS
6942
6943 fi
6944 fi
6945 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6946 if test -n "$ac_ct_WINDRES"; then
6947   { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6948 $as_echo "$ac_ct_WINDRES" >&6; }
6949 else
6950   { $as_echo "$as_me:$LINENO: result: no" >&5
6951 $as_echo "no" >&6; }
6952 fi
6953
6954   if test "x$ac_ct_WINDRES" = x; then
6955     WINDRES="windres"
6956   else
6957     case $cross_compiling:$ac_tool_warned in
6958 yes:)
6959 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6961 ac_tool_warned=yes ;;
6962 esac
6963     WINDRES=$ac_ct_WINDRES
6964   fi
6965 else
6966   WINDRES="$ac_cv_prog_WINDRES"
6967 fi
6968
6969 fi
6970
6971 # Find a good install program.  We prefer a C program (faster),
6972 # so one script is as good as another.  But avoid the broken or
6973 # incompatible versions:
6974 # SysV /etc/install, /usr/sbin/install
6975 # SunOS /usr/etc/install
6976 # IRIX /sbin/install
6977 # AIX /bin/install
6978 # AmigaOS /C/install, which installs bootblocks on floppy discs
6979 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6982 # OS/2's system install, which has a completely different semantic
6983 # ./install, which can be erroneously created by make from ./install.sh.
6984 # Reject install programs that cannot install multiple files.
6985 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6986 $as_echo_n "checking for a BSD-compatible install... " >&6; }
6987 if test -z "$INSTALL"; then
6988 if test "${ac_cv_path_install+set}" = set; then
6989   $as_echo_n "(cached) " >&6
6990 else
6991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6993 do
6994   IFS=$as_save_IFS
6995   test -z "$as_dir" && as_dir=.
6996   # Account for people who put trailing slashes in PATH elements.
6997 case $as_dir/ in
6998   ./ | .// | /cC/* | \
6999   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7000   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7001   /usr/ucb/* ) ;;
7002   *)
7003     # OSF1 and SCO ODT 3.0 have their own names for install.
7004     # Don't use installbsd from OSF since it installs stuff as root
7005     # by default.
7006     for ac_prog in ginstall scoinst install; do
7007       for ac_exec_ext in '' $ac_executable_extensions; do
7008         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7009           if test $ac_prog = install &&
7010             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7011             # AIX install.  It has an incompatible calling convention.
7012             :
7013           elif test $ac_prog = install &&
7014             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015             # program-specific install script used by HP pwplus--don't use.
7016             :
7017           else
7018             rm -rf conftest.one conftest.two conftest.dir
7019             echo one > conftest.one
7020             echo two > conftest.two
7021             mkdir conftest.dir
7022             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
7023               test -s conftest.one && test -s conftest.two &&
7024               test -s conftest.dir/conftest.one &&
7025               test -s conftest.dir/conftest.two
7026             then
7027               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7028               break 3
7029             fi
7030           fi
7031         fi
7032       done
7033     done
7034     ;;
7035 esac
7036
7037 done
7038 IFS=$as_save_IFS
7039
7040 rm -rf conftest.one conftest.two conftest.dir
7041
7042 fi
7043   if test "${ac_cv_path_install+set}" = set; then
7044     INSTALL=$ac_cv_path_install
7045   else
7046     # As a last resort, use the slow shell script.  Don't cache a
7047     # value for INSTALL within a source directory, because that will
7048     # break other packages using the cache if that directory is
7049     # removed, or if the value is a relative name.
7050     INSTALL=$ac_install_sh
7051   fi
7052 fi
7053 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
7054 $as_echo "$INSTALL" >&6; }
7055
7056 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7057 # It thinks the first close brace ends the variable substitution.
7058 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7059
7060 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7061
7062 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7063
7064 # When Autoconf chooses install-sh as install program it tries to generate
7065 # a relative path to it in each makefile where it subsitutes it. This clashes
7066 # with our Makefile.global concept. This workaround helps.
7067 case $INSTALL in
7068   *install-sh*) install_bin='';;
7069   *) install_bin=$INSTALL;;
7070 esac
7071
7072
7073 # Extract the first word of "tar", so it can be a program name with args.
7074 set dummy tar; ac_word=$2
7075 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7076 $as_echo_n "checking for $ac_word... " >&6; }
7077 if test "${ac_cv_path_TAR+set}" = set; then
7078   $as_echo_n "(cached) " >&6
7079 else
7080   case $TAR in
7081   [\\/]* | ?:[\\/]*)
7082   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7083   ;;
7084   *)
7085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088   IFS=$as_save_IFS
7089   test -z "$as_dir" && as_dir=.
7090   for ac_exec_ext in '' $ac_executable_extensions; do
7091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7093     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7094     break 2
7095   fi
7096 done
7097 done
7098 IFS=$as_save_IFS
7099
7100   ;;
7101 esac
7102 fi
7103 TAR=$ac_cv_path_TAR
7104 if test -n "$TAR"; then
7105   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
7106 $as_echo "$TAR" >&6; }
7107 else
7108   { $as_echo "$as_me:$LINENO: result: no" >&5
7109 $as_echo "no" >&6; }
7110 fi
7111
7112
7113 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
7114 $as_echo_n "checking whether ln -s works... " >&6; }
7115 LN_S=$as_ln_s
7116 if test "$LN_S" = "ln -s"; then
7117   { $as_echo "$as_me:$LINENO: result: yes" >&5
7118 $as_echo "yes" >&6; }
7119 else
7120   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
7121 $as_echo "no, using $LN_S" >&6; }
7122 fi
7123
7124 for ac_prog in gawk mawk nawk awk
7125 do
7126   # Extract the first word of "$ac_prog", so it can be a program name with args.
7127 set dummy $ac_prog; ac_word=$2
7128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7129 $as_echo_n "checking for $ac_word... " >&6; }
7130 if test "${ac_cv_prog_AWK+set}" = set; then
7131   $as_echo_n "(cached) " >&6
7132 else
7133   if test -n "$AWK"; then
7134   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7135 else
7136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7137 for as_dir in $PATH
7138 do
7139   IFS=$as_save_IFS
7140   test -z "$as_dir" && as_dir=.
7141   for ac_exec_ext in '' $ac_executable_extensions; do
7142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7143     ac_cv_prog_AWK="$ac_prog"
7144     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7145     break 2
7146   fi
7147 done
7148 done
7149 IFS=$as_save_IFS
7150
7151 fi
7152 fi
7153 AWK=$ac_cv_prog_AWK
7154 if test -n "$AWK"; then
7155   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
7156 $as_echo "$AWK" >&6; }
7157 else
7158   { $as_echo "$as_me:$LINENO: result: no" >&5
7159 $as_echo "no" >&6; }
7160 fi
7161
7162
7163   test -n "$AWK" && break
7164 done
7165
7166 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
7167 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
7168 if test -z "$MKDIR_P"; then
7169   if test "${ac_cv_path_mkdir+set}" = set; then
7170   $as_echo_n "(cached) " >&6
7171 else
7172   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177   for ac_prog in mkdir gmkdir; do
7178          for ac_exec_ext in '' $ac_executable_extensions; do
7179            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
7180            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
7181              'mkdir (GNU coreutils) '* | \
7182              'mkdir (coreutils) '* | \
7183              'mkdir (fileutils) '4.1*)
7184                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
7185                break 3;;
7186            esac
7187          done
7188        done
7189 done
7190 IFS=$as_save_IFS
7191
7192 fi
7193
7194   if test "${ac_cv_path_mkdir+set}" = set; then
7195     MKDIR_P="$ac_cv_path_mkdir -p"
7196   else
7197     # As a last resort, use the slow shell script.  Don't cache a
7198     # value for MKDIR_P within a source directory, because that will
7199     # break other packages using the cache if that directory is
7200     # removed, or if the value is a relative name.
7201     test -d ./--version && rmdir ./--version
7202     MKDIR_P="$ac_install_sh -d"
7203   fi
7204 fi
7205 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
7206 $as_echo "$MKDIR_P" >&6; }
7207
7208 # When Autoconf chooses install-sh as mkdir -p program it tries to generate
7209 # a relative path to it in each makefile where it subsitutes it. This clashes
7210 # with our Makefile.global concept. This workaround helps.
7211 case $MKDIR_P in
7212   *install-sh*) MKDIR_P='\${SHELL} \${top_srcdir}/config/install-sh -c -d';;
7213 esac
7214
7215 # Let the user override the search
7216 if test -z "$BISON"; then
7217   for ac_prog in bison
7218 do
7219   # Extract the first word of "$ac_prog", so it can be a program name with args.
7220 set dummy $ac_prog; ac_word=$2
7221 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if test "${ac_cv_path_BISON+set}" = set; then
7224   $as_echo_n "(cached) " >&6
7225 else
7226   case $BISON in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236   for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
7239     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246   ;;
7247 esac
7248 fi
7249 BISON=$ac_cv_path_BISON
7250 if test -n "$BISON"; then
7251   { $as_echo "$as_me:$LINENO: result: $BISON" >&5
7252 $as_echo "$BISON" >&6; }
7253 else
7254   { $as_echo "$as_me:$LINENO: result: no" >&5
7255 $as_echo "no" >&6; }
7256 fi
7257
7258
7259   test -n "$BISON" && break
7260 done
7261
7262 fi
7263
7264 if test "$BISON"; then
7265   pgac_bison_version=`$BISON --version 2>/dev/null | sed q`
7266   { $as_echo "$as_me:$LINENO: using $pgac_bison_version" >&5
7267 $as_echo "$as_me: using $pgac_bison_version" >&6;}
7268   if echo "$pgac_bison_version" | $AWK '{ if ($4 < 1.875) exit 0; else exit 1;}'
7269   then
7270     { $as_echo "$as_me:$LINENO: WARNING:
7271 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7272 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&5
7273 $as_echo "$as_me: WARNING:
7274 *** The installed version of Bison, $BISON, is too old to use with PostgreSQL.
7275 *** Bison version 1.875 or later is required, but this is $pgac_bison_version." >&2;}
7276     BISON=""
7277   fi
7278 fi
7279
7280 if test -z "$BISON"; then
7281   { $as_echo "$as_me:$LINENO: WARNING:
7282 *** Without Bison you will not be able to build PostgreSQL from Git nor
7283 *** change any of the parser definition files.  You can obtain Bison from
7284 *** a GNU mirror site.  (If you are using the official distribution of
7285 *** PostgreSQL then you do not need to worry about this, because the Bison
7286 *** output is pre-generated.)" >&5
7287 $as_echo "$as_me: WARNING:
7288 *** Without Bison you will not be able to build PostgreSQL from Git nor
7289 *** change any of the parser definition files.  You can obtain Bison from
7290 *** a GNU mirror site.  (If you are using the official distribution of
7291 *** PostgreSQL then you do not need to worry about this, because the Bison
7292 *** output is pre-generated.)" >&2;}
7293 fi
7294 # We don't need AC_SUBST(BISON) because AC_PATH_PROG did it
7295
7296
7297 { $as_echo "$as_me:$LINENO: checking for flex" >&5
7298 $as_echo_n "checking for flex... " >&6; }
7299 if test "${pgac_cv_path_flex+set}" = set; then
7300   $as_echo_n "(cached) " >&6
7301 else
7302   # Let the user override the test
7303 if test -n "$FLEX"; then
7304   pgac_cv_path_flex=$FLEX
7305 else
7306   pgac_save_IFS=$IFS
7307   IFS=$PATH_SEPARATOR
7308   for pgac_dir in $PATH; do
7309     IFS=$pgac_save_IFS
7310     if test -z "$pgac_dir" || test x"$pgac_dir" = x"."; then
7311       pgac_dir=`pwd`
7312     fi
7313     for pgac_prog in flex lex; do
7314       pgac_candidate="$pgac_dir/$pgac_prog"
7315       if test -f "$pgac_candidate" \
7316         && $pgac_candidate --version </dev/null >/dev/null 2>&1
7317       then
7318         echo '%%'  > conftest.l
7319         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
7320           pgac_flex_version=`$pgac_candidate --version 2>/dev/null`
7321           if echo "$pgac_flex_version" | sed 's/[.a-z]/ /g' | $AWK '{ if ($1 = 2 && $2 = 5 && $3 >= 31) exit 0; else exit 1;}'
7322           then
7323             pgac_cv_path_flex=$pgac_candidate
7324             break 2
7325           else
7326             { $as_echo "$as_me:$LINENO: WARNING:
7327 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7328 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&5
7329 $as_echo "$as_me: WARNING:
7330 *** The installed version of Flex, $pgac_candidate, is too old to use with PostgreSQL.
7331 *** Flex version 2.5.31 or later is required, but this is $pgac_flex_version." >&2;}
7332           fi
7333         fi
7334       fi
7335     done
7336   done
7337   rm -f conftest.l lex.yy.c
7338   : ${pgac_cv_path_flex=no}
7339 fi
7340
7341 fi
7342 { $as_echo "$as_me:$LINENO: result: $pgac_cv_path_flex" >&5
7343 $as_echo "$pgac_cv_path_flex" >&6; }
7344 if test x"$pgac_cv_path_flex" = x"no"; then
7345   { $as_echo "$as_me:$LINENO: WARNING:
7346 *** Without Flex you will not be able to build PostgreSQL from Git nor
7347 *** change any of the scanner definition files.  You can obtain Flex from
7348 *** a GNU mirror site.  (If you are using the official distribution of
7349 *** PostgreSQL then you do not need to worry about this because the Flex
7350 *** output is pre-generated.)" >&5
7351 $as_echo "$as_me: WARNING:
7352 *** Without Flex you will not be able to build PostgreSQL from Git nor
7353 *** change any of the scanner definition files.  You can obtain Flex from
7354 *** a GNU mirror site.  (If you are using the official distribution of
7355 *** PostgreSQL then you do not need to worry about this because the Flex
7356 *** output is pre-generated.)" >&2;}
7357
7358   FLEX=
7359 else
7360   FLEX=$pgac_cv_path_flex
7361   pgac_flex_version=`$FLEX --version 2>/dev/null`
7362   { $as_echo "$as_me:$LINENO: using $pgac_flex_version" >&5
7363 $as_echo "$as_me: using $pgac_flex_version" >&6;}
7364 fi
7365
7366
7367
7368
7369
7370 # Let the user override the search
7371 if test -z "$PERL"; then
7372   # Extract the first word of "perl", so it can be a program name with args.
7373 set dummy perl; ac_word=$2
7374 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if test "${ac_cv_path_PERL+set}" = set; then
7377   $as_echo_n "(cached) " >&6
7378 else
7379   case $PERL in
7380   [\\/]* | ?:[\\/]*)
7381   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7382   ;;
7383   *)
7384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389   for ac_exec_ext in '' $ac_executable_extensions; do
7390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7392     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396 done
7397 IFS=$as_save_IFS
7398
7399   ;;
7400 esac
7401 fi
7402 PERL=$ac_cv_path_PERL
7403 if test -n "$PERL"; then
7404   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
7405 $as_echo "$PERL" >&6; }
7406 else
7407   { $as_echo "$as_me:$LINENO: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411
7412 fi
7413
7414 if test "$PERL"; then
7415   pgac_perl_version=`$PERL -v 2>/dev/null | sed -n 's/This is perl.*v[a-z ]*\([0-9]\.[0-9][0-9.]*\).*$/\1/p'`
7416   { $as_echo "$as_me:$LINENO: using perl $pgac_perl_version" >&5
7417 $as_echo "$as_me: using perl $pgac_perl_version" >&6;}
7418   if echo "$pgac_perl_version" | sed 's/[.a-z_]/ /g' | \
7419     $AWK '{ if ($1 = 5 && $2 >= 8) exit 1; else exit 0;}'
7420   then
7421     { $as_echo "$as_me:$LINENO: WARNING:
7422 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7423 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&5
7424 $as_echo "$as_me: WARNING:
7425 *** The installed version of Perl, $PERL, is too old to use with PostgreSQL.
7426 *** Perl version 5.8 or later is required, but this is $pgac_perl_version." >&2;}
7427     PERL=""
7428   fi
7429 fi
7430
7431 if test -z "$PERL"; then
7432   { $as_echo "$as_me:$LINENO: WARNING:
7433 *** Without Perl you will not be able to build PostgreSQL from Git.
7434 *** You can obtain Perl from any CPAN mirror site.
7435 *** (If you are using the official distribution of PostgreSQL then you do not
7436 *** need to worry about this, because the Perl output is pre-generated.)" >&5
7437 $as_echo "$as_me: WARNING:
7438 *** Without Perl you will not be able to build PostgreSQL from Git.
7439 *** You can obtain Perl from any CPAN mirror site.
7440 *** (If you are using the official distribution of PostgreSQL then you do not
7441 *** need to worry about this, because the Perl output is pre-generated.)" >&2;}
7442 fi
7443
7444 if test "$with_perl" = yes; then
7445   if test -z "$PERL"; then
7446     { { $as_echo "$as_me:$LINENO: error: Perl not found" >&5
7447 $as_echo "$as_me: error: Perl not found" >&2;}
7448    { (exit 1); exit 1; }; }
7449   fi
7450
7451 { $as_echo "$as_me:$LINENO: checking for Perl archlibexp" >&5
7452 $as_echo_n "checking for Perl archlibexp... " >&6; }
7453 perl_archlibexp=`$PERL -MConfig -e 'print $Config{archlibexp}'`
7454 test "$PORTNAME" = "win32" && perl_archlibexp=`echo $perl_archlibexp | sed 's,\\\\,/,g'`
7455 { $as_echo "$as_me:$LINENO: result: $perl_archlibexp" >&5
7456 $as_echo "$perl_archlibexp" >&6; }
7457 { $as_echo "$as_me:$LINENO: checking for Perl privlibexp" >&5
7458 $as_echo_n "checking for Perl privlibexp... " >&6; }
7459 perl_privlibexp=`$PERL -MConfig -e 'print $Config{privlibexp}'`
7460 test "$PORTNAME" = "win32" && perl_privlibexp=`echo $perl_privlibexp | sed 's,\\\\,/,g'`
7461 { $as_echo "$as_me:$LINENO: result: $perl_privlibexp" >&5
7462 $as_echo "$perl_privlibexp" >&6; }
7463 { $as_echo "$as_me:$LINENO: checking for Perl useshrplib" >&5
7464 $as_echo_n "checking for Perl useshrplib... " >&6; }
7465 perl_useshrplib=`$PERL -MConfig -e 'print $Config{useshrplib}'`
7466 test "$PORTNAME" = "win32" && perl_useshrplib=`echo $perl_useshrplib | sed 's,\\\\,/,g'`
7467 { $as_echo "$as_me:$LINENO: result: $perl_useshrplib" >&5
7468 $as_echo "$perl_useshrplib" >&6; }
7469
7470 { $as_echo "$as_me:$LINENO: checking for flags to link embedded Perl" >&5
7471 $as_echo_n "checking for flags to link embedded Perl... " >&6; }
7472 if test "$PORTNAME" = "win32" ; then
7473 perl_lib=`basename $perl_archlibexp/CORE/perl[5-9]*.lib .lib`
7474 test -e "$perl_archlibexp/CORE/$perl_lib.lib" && perl_embed_ldflags="-L$perl_archlibexp/CORE -l$perl_lib"
7475 else
7476 pgac_tmp1=`$PERL -MExtUtils::Embed -e ldopts`
7477 pgac_tmp2=`$PERL -MConfig -e 'print $Config{ccdlflags}'`
7478 perl_embed_ldflags=`echo X"$pgac_tmp1" | sed -e "s/^X//" -e "s%$pgac_tmp2%%" -e "s/ -arch [-a-zA-Z0-9_]*//g"`
7479 fi
7480 if test -z "$perl_embed_ldflags" ; then
7481         { $as_echo "$as_me:$LINENO: result: no" >&5
7482 $as_echo "no" >&6; }
7483         { { $as_echo "$as_me:$LINENO: error: could not determine flags for linking embedded Perl.
7484 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7485 installed." >&5
7486 $as_echo "$as_me: error: could not determine flags for linking embedded Perl.
7487 This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not
7488 installed." >&2;}
7489    { (exit 1); exit 1; }; }
7490 else
7491         { $as_echo "$as_me:$LINENO: result: $perl_embed_ldflags" >&5
7492 $as_echo "$perl_embed_ldflags" >&6; }
7493 fi
7494
7495 fi
7496
7497 if test "$with_python" = yes; then
7498   # Extract the first word of "python", so it can be a program name with args.
7499 set dummy python; ac_word=$2
7500 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if test "${ac_cv_path_PYTHON+set}" = set; then
7503   $as_echo_n "(cached) " >&6
7504 else
7505   case $PYTHON in
7506   [\\/]* | ?:[\\/]*)
7507   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7508   ;;
7509   *)
7510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515   for ac_exec_ext in '' $ac_executable_extensions; do
7516   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7517     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7518     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522 done
7523 IFS=$as_save_IFS
7524
7525   ;;
7526 esac
7527 fi
7528 PYTHON=$ac_cv_path_PYTHON
7529 if test -n "$PYTHON"; then
7530   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
7531 $as_echo "$PYTHON" >&6; }
7532 else
7533   { $as_echo "$as_me:$LINENO: result: no" >&5
7534 $as_echo "no" >&6; }
7535 fi
7536
7537
7538 if test x"$PYTHON" = x""; then
7539   { { $as_echo "$as_me:$LINENO: error: Python not found" >&5
7540 $as_echo "$as_me: error: Python not found" >&2;}
7541    { (exit 1); exit 1; }; }
7542 fi
7543
7544
7545 { $as_echo "$as_me:$LINENO: checking for Python distutils module" >&5
7546 $as_echo_n "checking for Python distutils module... " >&6; }
7547 if "${PYTHON}" -c 'import distutils' 2>&5
7548 then
7549     { $as_echo "$as_me:$LINENO: result: yes" >&5
7550 $as_echo "yes" >&6; }
7551 else
7552     { $as_echo "$as_me:$LINENO: result: no" >&5
7553 $as_echo "no" >&6; }
7554     { { $as_echo "$as_me:$LINENO: error: distutils module not found" >&5
7555 $as_echo "$as_me: error: distutils module not found" >&2;}
7556    { (exit 1); exit 1; }; }
7557 fi
7558 { $as_echo "$as_me:$LINENO: checking Python configuration directory" >&5
7559 $as_echo_n "checking Python configuration directory... " >&6; }
7560 python_majorversion=`${PYTHON} -c "import sys; print(sys.version[0])"`
7561 python_version=`${PYTHON} -c "import sys; print(sys.version[:3])"`
7562 python_configdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBPL'))))"`
7563 { $as_echo "$as_me:$LINENO: result: $python_configdir" >&5
7564 $as_echo "$python_configdir" >&6; }
7565
7566 { $as_echo "$as_me:$LINENO: checking Python include directories" >&5
7567 $as_echo_n "checking Python include directories... " >&6; }
7568 python_includespec=`${PYTHON} -c "
7569 import distutils.sysconfig
7570 a = '-I' + distutils.sysconfig.get_python_inc(False)
7571 b = '-I' + distutils.sysconfig.get_python_inc(True)
7572 if a == b:
7573     print(a)
7574 else:
7575     print(a + ' ' + b)"`
7576 { $as_echo "$as_me:$LINENO: result: $python_includespec" >&5
7577 $as_echo "$python_includespec" >&6; }
7578
7579
7580
7581 { $as_echo "$as_me:$LINENO: checking how to link an embedded Python application" >&5
7582 $as_echo_n "checking how to link an embedded Python application... " >&6; }
7583
7584 python_libdir=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBDIR'))))"`
7585 python_ldlibrary=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDLIBRARY'))))"`
7586 python_so=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('SO'))))"`
7587 ldlibrary=`echo "${python_ldlibrary}" | sed "s/${python_so}$//"`
7588 python_framework=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORK'))))"`
7589 python_enable_shared=`${PYTHON} -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars().get('Py_ENABLE_SHARED',0))"`
7590
7591 if test -n "$python_framework"; then
7592         python_frameworkprefix=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('PYTHONFRAMEWORKPREFIX'))))"`
7593         python_libspec="-F${python_frameworkprefix} -framework $python_framework"
7594         python_enable_shared=1
7595 elif test x"${python_libdir}" != x"" -a x"${python_ldlibrary}" != x"" -a x"${python_ldlibrary}" != x"${ldlibrary}"
7596 then
7597         # New way: use the official shared library
7598         ldlibrary=`echo "${ldlibrary}" | sed "s/^lib//"`
7599         python_libspec="-L${python_libdir} -l${ldlibrary}"
7600 else
7601         # Old way: use libpython from python_configdir
7602         python_libdir="${python_configdir}"
7603         # LDVERSION was introduced in Python 3.2.
7604         python_ldversion=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LDVERSION'))))"`
7605         if test x"${python_ldversion}" = x""; then
7606                 python_ldversion=$python_version
7607         fi
7608         python_libspec="-L${python_libdir} -lpython${python_ldversion}"
7609 fi
7610
7611 if test -z "$python_framework"; then
7612         python_additional_libs=`${PYTHON} -c "import distutils.sysconfig; print(' '.join(filter(None,distutils.sysconfig.get_config_vars('LIBS','LIBC','LIBM','BASEMODLIBS'))))"`
7613 fi
7614
7615 { $as_echo "$as_me:$LINENO: result: ${python_libspec} ${python_additional_libs}" >&5
7616 $as_echo "${python_libspec} ${python_additional_libs}" >&6; }
7617
7618
7619 # threaded python is not supported on OpenBSD
7620 { $as_echo "$as_me:$LINENO: checking whether Python is compiled with thread support" >&5
7621 $as_echo_n "checking whether Python is compiled with thread support... " >&6; }
7622 pythreads=`${PYTHON} -c "import sys; print(int('thread' in sys.builtin_module_names))"`
7623 if test "$pythreads" = "1"; then
7624   { $as_echo "$as_me:$LINENO: result: yes" >&5
7625 $as_echo "yes" >&6; }
7626   case $host_os in
7627   openbsd*)
7628     { { $as_echo "$as_me:$LINENO: error: threaded Python not supported on this platform" >&5
7629 $as_echo "$as_me: error: threaded Python not supported on this platform" >&2;}
7630    { (exit 1); exit 1; }; }
7631     ;;
7632   esac
7633 else
7634   { $as_echo "$as_me:$LINENO: result: no" >&5
7635 $as_echo "no" >&6; }
7636 fi
7637
7638
7639 fi
7640
7641 if test "$cross_compiling" = yes && test -z "$with_system_tzdata"; then
7642   # Extract the first word of "zic", so it can be a program name with args.
7643 set dummy zic; ac_word=$2
7644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7645 $as_echo_n "checking for $ac_word... " >&6; }
7646 if test "${ac_cv_path_ZIC+set}" = set; then
7647   $as_echo_n "(cached) " >&6
7648 else
7649   case $ZIC in
7650   [\\/]* | ?:[\\/]*)
7651   ac_cv_path_ZIC="$ZIC" # Let the user override the test with a path.
7652   ;;
7653   *)
7654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7655 for as_dir in $PATH
7656 do
7657   IFS=$as_save_IFS
7658   test -z "$as_dir" && as_dir=.
7659   for ac_exec_ext in '' $ac_executable_extensions; do
7660   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661     ac_cv_path_ZIC="$as_dir/$ac_word$ac_exec_ext"
7662     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7663     break 2
7664   fi
7665 done
7666 done
7667 IFS=$as_save_IFS
7668
7669   ;;
7670 esac
7671 fi
7672 ZIC=$ac_cv_path_ZIC
7673 if test -n "$ZIC"; then
7674   { $as_echo "$as_me:$LINENO: result: $ZIC" >&5
7675 $as_echo "$ZIC" >&6; }
7676 else
7677   { $as_echo "$as_me:$LINENO: result: no" >&5
7678 $as_echo "no" >&6; }
7679 fi
7680
7681
7682   if test -z "$ZIC"; then
7683     { { $as_echo "$as_me:$LINENO: error:
7684 When cross-compiling, either use the option --with-system-tzdata to use
7685 existing time-zone data, or set the environment variable ZIC to a zic
7686 program to use during the build." >&5
7687 $as_echo "$as_me: error:
7688 When cross-compiling, either use the option --with-system-tzdata to use
7689 existing time-zone data, or set the environment variable ZIC to a zic
7690 program to use during the build." >&2;}
7691    { (exit 1); exit 1; }; }
7692   fi
7693 fi
7694
7695
7696 ##
7697 ## Libraries
7698 ##
7699 ## Most libraries are included only if they demonstrably provide a function
7700 ## we need, but libm is an exception: always include it, because there are
7701 ## too many compilers that play cute optimization games that will break
7702 ## probes for standard functions such as pow().
7703 ##
7704
7705
7706 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
7707 $as_echo_n "checking for main in -lm... " >&6; }
7708 if test "${ac_cv_lib_m_main+set}" = set; then
7709   $as_echo_n "(cached) " >&6
7710 else
7711   ac_check_lib_save_LIBS=$LIBS
7712 LIBS="-lm  $LIBS"
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h.  */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h.  */
7719
7720
7721 int
7722 main ()
7723 {
7724 return main ();
7725   ;
7726   return 0;
7727 }
7728 _ACEOF
7729 rm -f conftest.$ac_objext conftest$ac_exeext
7730 if { (ac_try="$ac_link"
7731 case "(($ac_try" in
7732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733   *) ac_try_echo=$ac_try;;
7734 esac
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737   (eval "$ac_link") 2>conftest.er1
7738   ac_status=$?
7739   grep -v '^ *+' conftest.er1 >conftest.err
7740   rm -f conftest.er1
7741   cat conftest.err >&5
7742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743   (exit $ac_status); } && {
7744          test -z "$ac_c_werror_flag" ||
7745          test ! -s conftest.err
7746        } && test -s conftest$ac_exeext && {
7747          test "$cross_compiling" = yes ||
7748          $as_test_x conftest$ac_exeext
7749        }; then
7750   ac_cv_lib_m_main=yes
7751 else
7752   $as_echo "$as_me: failed program was:" >&5
7753 sed 's/^/| /' conftest.$ac_ext >&5
7754
7755         ac_cv_lib_m_main=no
7756 fi
7757
7758 rm -rf conftest.dSYM
7759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7760       conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7762 fi
7763 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
7764 $as_echo "$ac_cv_lib_m_main" >&6; }
7765 if test "x$ac_cv_lib_m_main" = x""yes; then
7766   cat >>confdefs.h <<_ACEOF
7767 #define HAVE_LIBM 1
7768 _ACEOF
7769
7770   LIBS="-lm $LIBS"
7771
7772 fi
7773
7774 { $as_echo "$as_me:$LINENO: checking for library containing setproctitle" >&5
7775 $as_echo_n "checking for library containing setproctitle... " >&6; }
7776 if test "${ac_cv_search_setproctitle+set}" = set; then
7777   $as_echo_n "(cached) " >&6
7778 else
7779   ac_func_search_save_LIBS=$LIBS
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h.  */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h.  */
7786
7787 /* Override any GCC internal prototype to avoid an error.
7788    Use char because int might match the return type of a GCC
7789    builtin and then its argument prototype would still apply.  */
7790 #ifdef __cplusplus
7791 extern "C"
7792 #endif
7793 char setproctitle ();
7794 int
7795 main ()
7796 {
7797 return setproctitle ();
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 for ac_lib in '' util; do
7803   if test -z "$ac_lib"; then
7804     ac_res="none required"
7805   else
7806     ac_res=-l$ac_lib
7807     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7808   fi
7809   rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (ac_try="$ac_link"
7811 case "(($ac_try" in
7812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813   *) ac_try_echo=$ac_try;;
7814 esac
7815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816 $as_echo "$ac_try_echo") >&5
7817   (eval "$ac_link") 2>conftest.er1
7818   ac_status=$?
7819   grep -v '^ *+' conftest.er1 >conftest.err
7820   rm -f conftest.er1
7821   cat conftest.err >&5
7822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } && {
7824          test -z "$ac_c_werror_flag" ||
7825          test ! -s conftest.err
7826        } && test -s conftest$ac_exeext && {
7827          test "$cross_compiling" = yes ||
7828          $as_test_x conftest$ac_exeext
7829        }; then
7830   ac_cv_search_setproctitle=$ac_res
7831 else
7832   $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835
7836 fi
7837
7838 rm -rf conftest.dSYM
7839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7840       conftest$ac_exeext
7841   if test "${ac_cv_search_setproctitle+set}" = set; then
7842   break
7843 fi
7844 done
7845 if test "${ac_cv_search_setproctitle+set}" = set; then
7846   :
7847 else
7848   ac_cv_search_setproctitle=no
7849 fi
7850 rm conftest.$ac_ext
7851 LIBS=$ac_func_search_save_LIBS
7852 fi
7853 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setproctitle" >&5
7854 $as_echo "$ac_cv_search_setproctitle" >&6; }
7855 ac_res=$ac_cv_search_setproctitle
7856 if test "$ac_res" != no; then
7857   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7858
7859 fi
7860
7861 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
7862 $as_echo_n "checking for library containing dlopen... " >&6; }
7863 if test "${ac_cv_search_dlopen+set}" = set; then
7864   $as_echo_n "(cached) " >&6
7865 else
7866   ac_func_search_save_LIBS=$LIBS
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873
7874 /* Override any GCC internal prototype to avoid an error.
7875    Use char because int might match the return type of a GCC
7876    builtin and then its argument prototype would still apply.  */
7877 #ifdef __cplusplus
7878 extern "C"
7879 #endif
7880 char dlopen ();
7881 int
7882 main ()
7883 {
7884 return dlopen ();
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 for ac_lib in '' dl; do
7890   if test -z "$ac_lib"; then
7891     ac_res="none required"
7892   else
7893     ac_res=-l$ac_lib
7894     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7895   fi
7896   rm -f conftest.$ac_objext conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7898 case "(($ac_try" in
7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900   *) ac_try_echo=$ac_try;;
7901 esac
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904   (eval "$ac_link") 2>conftest.er1
7905   ac_status=$?
7906   grep -v '^ *+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } && {
7911          test -z "$ac_c_werror_flag" ||
7912          test ! -s conftest.err
7913        } && test -s conftest$ac_exeext && {
7914          test "$cross_compiling" = yes ||
7915          $as_test_x conftest$ac_exeext
7916        }; then
7917   ac_cv_search_dlopen=$ac_res
7918 else
7919   $as_echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7921
7922
7923 fi
7924
7925 rm -rf conftest.dSYM
7926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7927       conftest$ac_exeext
7928   if test "${ac_cv_search_dlopen+set}" = set; then
7929   break
7930 fi
7931 done
7932 if test "${ac_cv_search_dlopen+set}" = set; then
7933   :
7934 else
7935   ac_cv_search_dlopen=no
7936 fi
7937 rm conftest.$ac_ext
7938 LIBS=$ac_func_search_save_LIBS
7939 fi
7940 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
7941 $as_echo "$ac_cv_search_dlopen" >&6; }
7942 ac_res=$ac_cv_search_dlopen
7943 if test "$ac_res" != no; then
7944   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7945
7946 fi
7947
7948 { $as_echo "$as_me:$LINENO: checking for library containing socket" >&5
7949 $as_echo_n "checking for library containing socket... " >&6; }
7950 if test "${ac_cv_search_socket+set}" = set; then
7951   $as_echo_n "(cached) " >&6
7952 else
7953   ac_func_search_save_LIBS=$LIBS
7954 cat >conftest.$ac_ext <<_ACEOF
7955 /* confdefs.h.  */
7956 _ACEOF
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h.  */
7960
7961 /* Override any GCC internal prototype to avoid an error.
7962    Use char because int might match the return type of a GCC
7963    builtin and then its argument prototype would still apply.  */
7964 #ifdef __cplusplus
7965 extern "C"
7966 #endif
7967 char socket ();
7968 int
7969 main ()
7970 {
7971 return socket ();
7972   ;
7973   return 0;
7974 }
7975 _ACEOF
7976 for ac_lib in '' socket wsock32; do
7977   if test -z "$ac_lib"; then
7978     ac_res="none required"
7979   else
7980     ac_res=-l$ac_lib
7981     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7982   fi
7983   rm -f conftest.$ac_objext conftest$ac_exeext
7984 if { (ac_try="$ac_link"
7985 case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7990 $as_echo "$ac_try_echo") >&5
7991   (eval "$ac_link") 2>conftest.er1
7992   ac_status=$?
7993   grep -v '^ *+' conftest.er1 >conftest.err
7994   rm -f conftest.er1
7995   cat conftest.err >&5
7996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); } && {
7998          test -z "$ac_c_werror_flag" ||
7999          test ! -s conftest.err
8000        } && test -s conftest$ac_exeext && {
8001          test "$cross_compiling" = yes ||
8002          $as_test_x conftest$ac_exeext
8003        }; then
8004   ac_cv_search_socket=$ac_res
8005 else
8006   $as_echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8008
8009
8010 fi
8011
8012 rm -rf conftest.dSYM
8013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8014       conftest$ac_exeext
8015   if test "${ac_cv_search_socket+set}" = set; then
8016   break
8017 fi
8018 done
8019 if test "${ac_cv_search_socket+set}" = set; then
8020   :
8021 else
8022   ac_cv_search_socket=no
8023 fi
8024 rm conftest.$ac_ext
8025 LIBS=$ac_func_search_save_LIBS
8026 fi
8027 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
8028 $as_echo "$ac_cv_search_socket" >&6; }
8029 ac_res=$ac_cv_search_socket
8030 if test "$ac_res" != no; then
8031   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8032
8033 fi
8034
8035 { $as_echo "$as_me:$LINENO: checking for library containing shl_load" >&5
8036 $as_echo_n "checking for library containing shl_load... " >&6; }
8037 if test "${ac_cv_search_shl_load+set}" = set; then
8038   $as_echo_n "(cached) " >&6
8039 else
8040   ac_func_search_save_LIBS=$LIBS
8041 cat >conftest.$ac_ext <<_ACEOF
8042 /* confdefs.h.  */
8043 _ACEOF
8044 cat confdefs.h >>conftest.$ac_ext
8045 cat >>conftest.$ac_ext <<_ACEOF
8046 /* end confdefs.h.  */
8047
8048 /* Override any GCC internal prototype to avoid an error.
8049    Use char because int might match the return type of a GCC
8050    builtin and then its argument prototype would still apply.  */
8051 #ifdef __cplusplus
8052 extern "C"
8053 #endif
8054 char shl_load ();
8055 int
8056 main ()
8057 {
8058 return shl_load ();
8059   ;
8060   return 0;
8061 }
8062 _ACEOF
8063 for ac_lib in '' dld; do
8064   if test -z "$ac_lib"; then
8065     ac_res="none required"
8066   else
8067     ac_res=-l$ac_lib
8068     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8069   fi
8070   rm -f conftest.$ac_objext conftest$ac_exeext
8071 if { (ac_try="$ac_link"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8077 $as_echo "$ac_try_echo") >&5
8078   (eval "$ac_link") 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } && {
8085          test -z "$ac_c_werror_flag" ||
8086          test ! -s conftest.err
8087        } && test -s conftest$ac_exeext && {
8088          test "$cross_compiling" = yes ||
8089          $as_test_x conftest$ac_exeext
8090        }; then
8091   ac_cv_search_shl_load=$ac_res
8092 else
8093   $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096
8097 fi
8098
8099 rm -rf conftest.dSYM
8100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8101       conftest$ac_exeext
8102   if test "${ac_cv_search_shl_load+set}" = set; then
8103   break
8104 fi
8105 done
8106 if test "${ac_cv_search_shl_load+set}" = set; then
8107   :
8108 else
8109   ac_cv_search_shl_load=no
8110 fi
8111 rm conftest.$ac_ext
8112 LIBS=$ac_func_search_save_LIBS
8113 fi
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shl_load" >&5
8115 $as_echo "$ac_cv_search_shl_load" >&6; }
8116 ac_res=$ac_cv_search_shl_load
8117 if test "$ac_res" != no; then
8118   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8119
8120 fi
8121
8122 # We only use libld in port/dynloader/aix.c
8123 case $host_os in
8124      aix*)
8125         { $as_echo "$as_me:$LINENO: checking for library containing ldopen" >&5
8126 $as_echo_n "checking for library containing ldopen... " >&6; }
8127 if test "${ac_cv_search_ldopen+set}" = set; then
8128   $as_echo_n "(cached) " >&6
8129 else
8130   ac_func_search_save_LIBS=$LIBS
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137
8138 /* Override any GCC internal prototype to avoid an error.
8139    Use char because int might match the return type of a GCC
8140    builtin and then its argument prototype would still apply.  */
8141 #ifdef __cplusplus
8142 extern "C"
8143 #endif
8144 char ldopen ();
8145 int
8146 main ()
8147 {
8148 return ldopen ();
8149   ;
8150   return 0;
8151 }
8152 _ACEOF
8153 for ac_lib in '' ld; do
8154   if test -z "$ac_lib"; then
8155     ac_res="none required"
8156   else
8157     ac_res=-l$ac_lib
8158     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8159   fi
8160   rm -f conftest.$ac_objext conftest$ac_exeext
8161 if { (ac_try="$ac_link"
8162 case "(($ac_try" in
8163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164   *) ac_try_echo=$ac_try;;
8165 esac
8166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8167 $as_echo "$ac_try_echo") >&5
8168   (eval "$ac_link") 2>conftest.er1
8169   ac_status=$?
8170   grep -v '^ *+' conftest.er1 >conftest.err
8171   rm -f conftest.er1
8172   cat conftest.err >&5
8173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } && {
8175          test -z "$ac_c_werror_flag" ||
8176          test ! -s conftest.err
8177        } && test -s conftest$ac_exeext && {
8178          test "$cross_compiling" = yes ||
8179          $as_test_x conftest$ac_exeext
8180        }; then
8181   ac_cv_search_ldopen=$ac_res
8182 else
8183   $as_echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186
8187 fi
8188
8189 rm -rf conftest.dSYM
8190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8191       conftest$ac_exeext
8192   if test "${ac_cv_search_ldopen+set}" = set; then
8193   break
8194 fi
8195 done
8196 if test "${ac_cv_search_ldopen+set}" = set; then
8197   :
8198 else
8199   ac_cv_search_ldopen=no
8200 fi
8201 rm conftest.$ac_ext
8202 LIBS=$ac_func_search_save_LIBS
8203 fi
8204 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_ldopen" >&5
8205 $as_echo "$ac_cv_search_ldopen" >&6; }
8206 ac_res=$ac_cv_search_ldopen
8207 if test "$ac_res" != no; then
8208   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8209
8210 fi
8211
8212         ;;
8213 esac
8214 { $as_echo "$as_me:$LINENO: checking for library containing getopt_long" >&5
8215 $as_echo_n "checking for library containing getopt_long... " >&6; }
8216 if test "${ac_cv_search_getopt_long+set}" = set; then
8217   $as_echo_n "(cached) " >&6
8218 else
8219   ac_func_search_save_LIBS=$LIBS
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h.  */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h.  */
8226
8227 /* Override any GCC internal prototype to avoid an error.
8228    Use char because int might match the return type of a GCC
8229    builtin and then its argument prototype would still apply.  */
8230 #ifdef __cplusplus
8231 extern "C"
8232 #endif
8233 char getopt_long ();
8234 int
8235 main ()
8236 {
8237 return getopt_long ();
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 for ac_lib in '' getopt gnugetopt; do
8243   if test -z "$ac_lib"; then
8244     ac_res="none required"
8245   else
8246     ac_res=-l$ac_lib
8247     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8248   fi
8249   rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (ac_try="$ac_link"
8251 case "(($ac_try" in
8252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8253   *) ac_try_echo=$ac_try;;
8254 esac
8255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8256 $as_echo "$ac_try_echo") >&5
8257   (eval "$ac_link") 2>conftest.er1
8258   ac_status=$?
8259   grep -v '^ *+' conftest.er1 >conftest.err
8260   rm -f conftest.er1
8261   cat conftest.err >&5
8262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8263   (exit $ac_status); } && {
8264          test -z "$ac_c_werror_flag" ||
8265          test ! -s conftest.err
8266        } && test -s conftest$ac_exeext && {
8267          test "$cross_compiling" = yes ||
8268          $as_test_x conftest$ac_exeext
8269        }; then
8270   ac_cv_search_getopt_long=$ac_res
8271 else
8272   $as_echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275
8276 fi
8277
8278 rm -rf conftest.dSYM
8279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8280       conftest$ac_exeext
8281   if test "${ac_cv_search_getopt_long+set}" = set; then
8282   break
8283 fi
8284 done
8285 if test "${ac_cv_search_getopt_long+set}" = set; then
8286   :
8287 else
8288   ac_cv_search_getopt_long=no
8289 fi
8290 rm conftest.$ac_ext
8291 LIBS=$ac_func_search_save_LIBS
8292 fi
8293 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getopt_long" >&5
8294 $as_echo "$ac_cv_search_getopt_long" >&6; }
8295 ac_res=$ac_cv_search_getopt_long
8296 if test "$ac_res" != no; then
8297   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8298
8299 fi
8300
8301 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
8302 $as_echo_n "checking for library containing crypt... " >&6; }
8303 if test "${ac_cv_search_crypt+set}" = set; then
8304   $as_echo_n "(cached) " >&6
8305 else
8306   ac_func_search_save_LIBS=$LIBS
8307 cat >conftest.$ac_ext <<_ACEOF
8308 /* confdefs.h.  */
8309 _ACEOF
8310 cat confdefs.h >>conftest.$ac_ext
8311 cat >>conftest.$ac_ext <<_ACEOF
8312 /* end confdefs.h.  */
8313
8314 /* Override any GCC internal prototype to avoid an error.
8315    Use char because int might match the return type of a GCC
8316    builtin and then its argument prototype would still apply.  */
8317 #ifdef __cplusplus
8318 extern "C"
8319 #endif
8320 char crypt ();
8321 int
8322 main ()
8323 {
8324 return crypt ();
8325   ;
8326   return 0;
8327 }
8328 _ACEOF
8329 for ac_lib in '' crypt; do
8330   if test -z "$ac_lib"; then
8331     ac_res="none required"
8332   else
8333     ac_res=-l$ac_lib
8334     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8335   fi
8336   rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8338 case "(($ac_try" in
8339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340   *) ac_try_echo=$ac_try;;
8341 esac
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344   (eval "$ac_link") 2>conftest.er1
8345   ac_status=$?
8346   grep -v '^ *+' conftest.er1 >conftest.err
8347   rm -f conftest.er1
8348   cat conftest.err >&5
8349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350   (exit $ac_status); } && {
8351          test -z "$ac_c_werror_flag" ||
8352          test ! -s conftest.err
8353        } && test -s conftest$ac_exeext && {
8354          test "$cross_compiling" = yes ||
8355          $as_test_x conftest$ac_exeext
8356        }; then
8357   ac_cv_search_crypt=$ac_res
8358 else
8359   $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8361
8362
8363 fi
8364
8365 rm -rf conftest.dSYM
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367       conftest$ac_exeext
8368   if test "${ac_cv_search_crypt+set}" = set; then
8369   break
8370 fi
8371 done
8372 if test "${ac_cv_search_crypt+set}" = set; then
8373   :
8374 else
8375   ac_cv_search_crypt=no
8376 fi
8377 rm conftest.$ac_ext
8378 LIBS=$ac_func_search_save_LIBS
8379 fi
8380 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
8381 $as_echo "$ac_cv_search_crypt" >&6; }
8382 ac_res=$ac_cv_search_crypt
8383 if test "$ac_res" != no; then
8384   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8385
8386 fi
8387
8388 { $as_echo "$as_me:$LINENO: checking for library containing shm_open" >&5
8389 $as_echo_n "checking for library containing shm_open... " >&6; }
8390 if test "${ac_cv_search_shm_open+set}" = set; then
8391   $as_echo_n "(cached) " >&6
8392 else
8393   ac_func_search_save_LIBS=$LIBS
8394 cat >conftest.$ac_ext <<_ACEOF
8395 /* confdefs.h.  */
8396 _ACEOF
8397 cat confdefs.h >>conftest.$ac_ext
8398 cat >>conftest.$ac_ext <<_ACEOF
8399 /* end confdefs.h.  */
8400
8401 /* Override any GCC internal prototype to avoid an error.
8402    Use char because int might match the return type of a GCC
8403    builtin and then its argument prototype would still apply.  */
8404 #ifdef __cplusplus
8405 extern "C"
8406 #endif
8407 char shm_open ();
8408 int
8409 main ()
8410 {
8411 return shm_open ();
8412   ;
8413   return 0;
8414 }
8415 _ACEOF
8416 for ac_lib in '' rt; do
8417   if test -z "$ac_lib"; then
8418     ac_res="none required"
8419   else
8420     ac_res=-l$ac_lib
8421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8422   fi
8423   rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (ac_try="$ac_link"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8430 $as_echo "$ac_try_echo") >&5
8431   (eval "$ac_link") 2>conftest.er1
8432   ac_status=$?
8433   grep -v '^ *+' conftest.er1 >conftest.err
8434   rm -f conftest.er1
8435   cat conftest.err >&5
8436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } && {
8438          test -z "$ac_c_werror_flag" ||
8439          test ! -s conftest.err
8440        } && test -s conftest$ac_exeext && {
8441          test "$cross_compiling" = yes ||
8442          $as_test_x conftest$ac_exeext
8443        }; then
8444   ac_cv_search_shm_open=$ac_res
8445 else
8446   $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449
8450 fi
8451
8452 rm -rf conftest.dSYM
8453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8454       conftest$ac_exeext
8455   if test "${ac_cv_search_shm_open+set}" = set; then
8456   break
8457 fi
8458 done
8459 if test "${ac_cv_search_shm_open+set}" = set; then
8460   :
8461 else
8462   ac_cv_search_shm_open=no
8463 fi
8464 rm conftest.$ac_ext
8465 LIBS=$ac_func_search_save_LIBS
8466 fi
8467 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
8468 $as_echo "$ac_cv_search_shm_open" >&6; }
8469 ac_res=$ac_cv_search_shm_open
8470 if test "$ac_res" != no; then
8471   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8472
8473 fi
8474
8475 { $as_echo "$as_me:$LINENO: checking for library containing shm_unlink" >&5
8476 $as_echo_n "checking for library containing shm_unlink... " >&6; }
8477 if test "${ac_cv_search_shm_unlink+set}" = set; then
8478   $as_echo_n "(cached) " >&6
8479 else
8480   ac_func_search_save_LIBS=$LIBS
8481 cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487
8488 /* Override any GCC internal prototype to avoid an error.
8489    Use char because int might match the return type of a GCC
8490    builtin and then its argument prototype would still apply.  */
8491 #ifdef __cplusplus
8492 extern "C"
8493 #endif
8494 char shm_unlink ();
8495 int
8496 main ()
8497 {
8498 return shm_unlink ();
8499   ;
8500   return 0;
8501 }
8502 _ACEOF
8503 for ac_lib in '' rt; do
8504   if test -z "$ac_lib"; then
8505     ac_res="none required"
8506   else
8507     ac_res=-l$ac_lib
8508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8509   fi
8510   rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8517 $as_echo "$ac_try_echo") >&5
8518   (eval "$ac_link") 2>conftest.er1
8519   ac_status=$?
8520   grep -v '^ *+' conftest.er1 >conftest.err
8521   rm -f conftest.er1
8522   cat conftest.err >&5
8523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524   (exit $ac_status); } && {
8525          test -z "$ac_c_werror_flag" ||
8526          test ! -s conftest.err
8527        } && test -s conftest$ac_exeext && {
8528          test "$cross_compiling" = yes ||
8529          $as_test_x conftest$ac_exeext
8530        }; then
8531   ac_cv_search_shm_unlink=$ac_res
8532 else
8533   $as_echo "$as_me: failed program was:" >&5
8534 sed 's/^/| /' conftest.$ac_ext >&5
8535
8536
8537 fi
8538
8539 rm -rf conftest.dSYM
8540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8541       conftest$ac_exeext
8542   if test "${ac_cv_search_shm_unlink+set}" = set; then
8543   break
8544 fi
8545 done
8546 if test "${ac_cv_search_shm_unlink+set}" = set; then
8547   :
8548 else
8549   ac_cv_search_shm_unlink=no
8550 fi
8551 rm conftest.$ac_ext
8552 LIBS=$ac_func_search_save_LIBS
8553 fi
8554 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shm_unlink" >&5
8555 $as_echo "$ac_cv_search_shm_unlink" >&6; }
8556 ac_res=$ac_cv_search_shm_unlink
8557 if test "$ac_res" != no; then
8558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8559
8560 fi
8561
8562 # Solaris:
8563 { $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
8564 $as_echo_n "checking for library containing fdatasync... " >&6; }
8565 if test "${ac_cv_search_fdatasync+set}" = set; then
8566   $as_echo_n "(cached) " >&6
8567 else
8568   ac_func_search_save_LIBS=$LIBS
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h.  */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h.  */
8575
8576 /* Override any GCC internal prototype to avoid an error.
8577    Use char because int might match the return type of a GCC
8578    builtin and then its argument prototype would still apply.  */
8579 #ifdef __cplusplus
8580 extern "C"
8581 #endif
8582 char fdatasync ();
8583 int
8584 main ()
8585 {
8586 return fdatasync ();
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 for ac_lib in '' rt posix4; do
8592   if test -z "$ac_lib"; then
8593     ac_res="none required"
8594   else
8595     ac_res=-l$ac_lib
8596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8597   fi
8598   rm -f conftest.$ac_objext conftest$ac_exeext
8599 if { (ac_try="$ac_link"
8600 case "(($ac_try" in
8601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602   *) ac_try_echo=$ac_try;;
8603 esac
8604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8605 $as_echo "$ac_try_echo") >&5
8606   (eval "$ac_link") 2>conftest.er1
8607   ac_status=$?
8608   grep -v '^ *+' conftest.er1 >conftest.err
8609   rm -f conftest.er1
8610   cat conftest.err >&5
8611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } && {
8613          test -z "$ac_c_werror_flag" ||
8614          test ! -s conftest.err
8615        } && test -s conftest$ac_exeext && {
8616          test "$cross_compiling" = yes ||
8617          $as_test_x conftest$ac_exeext
8618        }; then
8619   ac_cv_search_fdatasync=$ac_res
8620 else
8621   $as_echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624
8625 fi
8626
8627 rm -rf conftest.dSYM
8628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8629       conftest$ac_exeext
8630   if test "${ac_cv_search_fdatasync+set}" = set; then
8631   break
8632 fi
8633 done
8634 if test "${ac_cv_search_fdatasync+set}" = set; then
8635   :
8636 else
8637   ac_cv_search_fdatasync=no
8638 fi
8639 rm conftest.$ac_ext
8640 LIBS=$ac_func_search_save_LIBS
8641 fi
8642 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
8643 $as_echo "$ac_cv_search_fdatasync" >&6; }
8644 ac_res=$ac_cv_search_fdatasync
8645 if test "$ac_res" != no; then
8646   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8647
8648 fi
8649
8650 # Required for thread_test.c on Solaris 2.5:
8651 # Other ports use it too (HP-UX) so test unconditionally
8652 { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname_r" >&5
8653 $as_echo_n "checking for library containing gethostbyname_r... " >&6; }
8654 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8655   $as_echo_n "(cached) " >&6
8656 else
8657   ac_func_search_save_LIBS=$LIBS
8658 cat >conftest.$ac_ext <<_ACEOF
8659 /* confdefs.h.  */
8660 _ACEOF
8661 cat confdefs.h >>conftest.$ac_ext
8662 cat >>conftest.$ac_ext <<_ACEOF
8663 /* end confdefs.h.  */
8664
8665 /* Override any GCC internal prototype to avoid an error.
8666    Use char because int might match the return type of a GCC
8667    builtin and then its argument prototype would still apply.  */
8668 #ifdef __cplusplus
8669 extern "C"
8670 #endif
8671 char gethostbyname_r ();
8672 int
8673 main ()
8674 {
8675 return gethostbyname_r ();
8676   ;
8677   return 0;
8678 }
8679 _ACEOF
8680 for ac_lib in '' nsl; do
8681   if test -z "$ac_lib"; then
8682     ac_res="none required"
8683   else
8684     ac_res=-l$ac_lib
8685     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8686   fi
8687   rm -f conftest.$ac_objext conftest$ac_exeext
8688 if { (ac_try="$ac_link"
8689 case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8694 $as_echo "$ac_try_echo") >&5
8695   (eval "$ac_link") 2>conftest.er1
8696   ac_status=$?
8697   grep -v '^ *+' conftest.er1 >conftest.err
8698   rm -f conftest.er1
8699   cat conftest.err >&5
8700   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); } && {
8702          test -z "$ac_c_werror_flag" ||
8703          test ! -s conftest.err
8704        } && test -s conftest$ac_exeext && {
8705          test "$cross_compiling" = yes ||
8706          $as_test_x conftest$ac_exeext
8707        }; then
8708   ac_cv_search_gethostbyname_r=$ac_res
8709 else
8710   $as_echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8712
8713
8714 fi
8715
8716 rm -rf conftest.dSYM
8717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8718       conftest$ac_exeext
8719   if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8720   break
8721 fi
8722 done
8723 if test "${ac_cv_search_gethostbyname_r+set}" = set; then
8724   :
8725 else
8726   ac_cv_search_gethostbyname_r=no
8727 fi
8728 rm conftest.$ac_ext
8729 LIBS=$ac_func_search_save_LIBS
8730 fi
8731 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname_r" >&5
8732 $as_echo "$ac_cv_search_gethostbyname_r" >&6; }
8733 ac_res=$ac_cv_search_gethostbyname_r
8734 if test "$ac_res" != no; then
8735   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8736
8737 fi
8738
8739 # Cygwin:
8740 { $as_echo "$as_me:$LINENO: checking for library containing shmget" >&5
8741 $as_echo_n "checking for library containing shmget... " >&6; }
8742 if test "${ac_cv_search_shmget+set}" = set; then
8743   $as_echo_n "(cached) " >&6
8744 else
8745   ac_func_search_save_LIBS=$LIBS
8746 cat >conftest.$ac_ext <<_ACEOF
8747 /* confdefs.h.  */
8748 _ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h.  */
8752
8753 /* Override any GCC internal prototype to avoid an error.
8754    Use char because int might match the return type of a GCC
8755    builtin and then its argument prototype would still apply.  */
8756 #ifdef __cplusplus
8757 extern "C"
8758 #endif
8759 char shmget ();
8760 int
8761 main ()
8762 {
8763 return shmget ();
8764   ;
8765   return 0;
8766 }
8767 _ACEOF
8768 for ac_lib in '' cygipc; do
8769   if test -z "$ac_lib"; then
8770     ac_res="none required"
8771   else
8772     ac_res=-l$ac_lib
8773     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8774   fi
8775   rm -f conftest.$ac_objext conftest$ac_exeext
8776 if { (ac_try="$ac_link"
8777 case "(($ac_try" in
8778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779   *) ac_try_echo=$ac_try;;
8780 esac
8781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8782 $as_echo "$ac_try_echo") >&5
8783   (eval "$ac_link") 2>conftest.er1
8784   ac_status=$?
8785   grep -v '^ *+' conftest.er1 >conftest.err
8786   rm -f conftest.er1
8787   cat conftest.err >&5
8788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789   (exit $ac_status); } && {
8790          test -z "$ac_c_werror_flag" ||
8791          test ! -s conftest.err
8792        } && test -s conftest$ac_exeext && {
8793          test "$cross_compiling" = yes ||
8794          $as_test_x conftest$ac_exeext
8795        }; then
8796   ac_cv_search_shmget=$ac_res
8797 else
8798   $as_echo "$as_me: failed program was:" >&5
8799 sed 's/^/| /' conftest.$ac_ext >&5
8800
8801
8802 fi
8803
8804 rm -rf conftest.dSYM
8805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8806       conftest$ac_exeext
8807   if test "${ac_cv_search_shmget+set}" = set; then
8808   break
8809 fi
8810 done
8811 if test "${ac_cv_search_shmget+set}" = set; then
8812   :
8813 else
8814   ac_cv_search_shmget=no
8815 fi
8816 rm conftest.$ac_ext
8817 LIBS=$ac_func_search_save_LIBS
8818 fi
8819 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_shmget" >&5
8820 $as_echo "$ac_cv_search_shmget" >&6; }
8821 ac_res=$ac_cv_search_shmget
8822 if test "$ac_res" != no; then
8823   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8824
8825 fi
8826
8827
8828 if test "$with_readline" = yes; then
8829
8830
8831 { $as_echo "$as_me:$LINENO: checking for library containing readline" >&5
8832 $as_echo_n "checking for library containing readline... " >&6; }
8833 if test "${pgac_cv_check_readline+set}" = set; then
8834   $as_echo_n "(cached) " >&6
8835 else
8836   pgac_cv_check_readline=no
8837 pgac_save_LIBS=$LIBS
8838 if test x"$with_libedit_preferred" != x"yes"
8839 then    READLINE_ORDER="-lreadline -ledit"
8840 else    READLINE_ORDER="-ledit -lreadline"
8841 fi
8842 for pgac_rllib in $READLINE_ORDER ; do
8843   for pgac_lib in "" " -ltermcap" " -lncurses" " -lcurses" ; do
8844     LIBS="${pgac_rllib}${pgac_lib} $pgac_save_LIBS"
8845     cat >conftest.$ac_ext <<_ACEOF
8846 /* confdefs.h.  */
8847 _ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h.  */
8851
8852 /* Override any GCC internal prototype to avoid an error.
8853    Use char because int might match the return type of a GCC
8854    builtin and then its argument prototype would still apply.  */
8855 #ifdef __cplusplus
8856 extern "C"
8857 #endif
8858 char readline ();
8859 int
8860 main ()
8861 {
8862 return readline ();
8863   ;
8864   return 0;
8865 }
8866 _ACEOF
8867 rm -f conftest.$ac_objext conftest$ac_exeext
8868 if { (ac_try="$ac_link"
8869 case "(($ac_try" in
8870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871   *) ac_try_echo=$ac_try;;
8872 esac
8873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8874 $as_echo "$ac_try_echo") >&5
8875   (eval "$ac_link") 2>conftest.er1
8876   ac_status=$?
8877   grep -v '^ *+' conftest.er1 >conftest.err
8878   rm -f conftest.er1
8879   cat conftest.err >&5
8880   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881   (exit $ac_status); } && {
8882          test -z "$ac_c_werror_flag" ||
8883          test ! -s conftest.err
8884        } && test -s conftest$ac_exeext && {
8885          test "$cross_compiling" = yes ||
8886          $as_test_x conftest$ac_exeext
8887        }; then
8888
8889       # Older NetBSD, OpenBSD, and Irix have a broken linker that does not
8890       # recognize dependent libraries; assume curses is needed if we didn't
8891       # find any dependency.
8892       case $host_os in
8893         netbsd* | openbsd* | irix*)
8894           if test x"$pgac_lib" = x"" ; then
8895             pgac_lib=" -lcurses"
8896           fi ;;
8897       esac
8898
8899       pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"
8900       break
8901
8902 else
8903   $as_echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906
8907 fi
8908
8909 rm -rf conftest.dSYM
8910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8911       conftest$ac_exeext conftest.$ac_ext
8912   done
8913   if test "$pgac_cv_check_readline" != no ; then
8914     break
8915   fi
8916 done
8917 LIBS=$pgac_save_LIBS
8918
8919 fi
8920 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_readline" >&5
8921 $as_echo "$pgac_cv_check_readline" >&6; }
8922 if test "$pgac_cv_check_readline" != no ; then
8923   LIBS="$pgac_cv_check_readline $LIBS"
8924
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_LIBREADLINE 1
8927 _ACEOF
8928
8929 fi
8930
8931
8932   if test x"$pgac_cv_check_readline" = x"no"; then
8933     { { $as_echo "$as_me:$LINENO: error: readline library not found
8934 If you have readline already installed, see config.log for details on the
8935 failure.  It is possible the compiler isn't looking in the proper directory.
8936 Use --without-readline to disable readline support." >&5
8937 $as_echo "$as_me: error: readline library not found
8938 If you have readline already installed, see config.log for details on the
8939 failure.  It is possible the compiler isn't looking in the proper directory.
8940 Use --without-readline to disable readline support." >&2;}
8941    { (exit 1); exit 1; }; }
8942   fi
8943 fi
8944
8945 if test "$with_zlib" = yes; then
8946
8947 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
8948 $as_echo_n "checking for inflate in -lz... " >&6; }
8949 if test "${ac_cv_lib_z_inflate+set}" = set; then
8950   $as_echo_n "(cached) " >&6
8951 else
8952   ac_check_lib_save_LIBS=$LIBS
8953 LIBS="-lz  $LIBS"
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h.  */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h.  */
8960
8961 /* Override any GCC internal prototype to avoid an error.
8962    Use char because int might match the return type of a GCC
8963    builtin and then its argument prototype would still apply.  */
8964 #ifdef __cplusplus
8965 extern "C"
8966 #endif
8967 char inflate ();
8968 int
8969 main ()
8970 {
8971 return inflate ();
8972   ;
8973   return 0;
8974 }
8975 _ACEOF
8976 rm -f conftest.$ac_objext conftest$ac_exeext
8977 if { (ac_try="$ac_link"
8978 case "(($ac_try" in
8979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980   *) ac_try_echo=$ac_try;;
8981 esac
8982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8983 $as_echo "$ac_try_echo") >&5
8984   (eval "$ac_link") 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && {
8991          test -z "$ac_c_werror_flag" ||
8992          test ! -s conftest.err
8993        } && test -s conftest$ac_exeext && {
8994          test "$cross_compiling" = yes ||
8995          $as_test_x conftest$ac_exeext
8996        }; then
8997   ac_cv_lib_z_inflate=yes
8998 else
8999   $as_echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002         ac_cv_lib_z_inflate=no
9003 fi
9004
9005 rm -rf conftest.dSYM
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007       conftest$ac_exeext conftest.$ac_ext
9008 LIBS=$ac_check_lib_save_LIBS
9009 fi
9010 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
9011 $as_echo "$ac_cv_lib_z_inflate" >&6; }
9012 if test "x$ac_cv_lib_z_inflate" = x""yes; then
9013   cat >>confdefs.h <<_ACEOF
9014 #define HAVE_LIBZ 1
9015 _ACEOF
9016
9017   LIBS="-lz $LIBS"
9018
9019 else
9020   { { $as_echo "$as_me:$LINENO: error: zlib library not found
9021 If you have zlib already installed, see config.log for details on the
9022 failure.  It is possible the compiler isn't looking in the proper directory.
9023 Use --without-zlib to disable zlib support." >&5
9024 $as_echo "$as_me: error: zlib library not found
9025 If you have zlib already installed, see config.log for details on the
9026 failure.  It is possible the compiler isn't looking in the proper directory.
9027 Use --without-zlib to disable zlib support." >&2;}
9028    { (exit 1); exit 1; }; }
9029 fi
9030
9031 fi
9032
9033 if test "$enable_spinlocks" = yes; then
9034
9035 cat >>confdefs.h <<\_ACEOF
9036 #define HAVE_SPINLOCKS 1
9037 _ACEOF
9038
9039 else
9040   { $as_echo "$as_me:$LINENO: WARNING:
9041 *** Not using spinlocks will cause poor performance." >&5
9042 $as_echo "$as_me: WARNING:
9043 *** Not using spinlocks will cause poor performance." >&2;}
9044 fi
9045
9046 if test "$with_gssapi" = yes ; then
9047   if test "$PORTNAME" != "win32"; then
9048     { $as_echo "$as_me:$LINENO: checking for library containing gss_init_sec_context" >&5
9049 $as_echo_n "checking for library containing gss_init_sec_context... " >&6; }
9050 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9051   $as_echo_n "(cached) " >&6
9052 else
9053   ac_func_search_save_LIBS=$LIBS
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060
9061 /* Override any GCC internal prototype to avoid an error.
9062    Use char because int might match the return type of a GCC
9063    builtin and then its argument prototype would still apply.  */
9064 #ifdef __cplusplus
9065 extern "C"
9066 #endif
9067 char gss_init_sec_context ();
9068 int
9069 main ()
9070 {
9071 return gss_init_sec_context ();
9072   ;
9073   return 0;
9074 }
9075 _ACEOF
9076 for ac_lib in '' gssapi_krb5 gss 'gssapi -lkrb5 -lcrypto'; do
9077   if test -z "$ac_lib"; then
9078     ac_res="none required"
9079   else
9080     ac_res=-l$ac_lib
9081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9082   fi
9083   rm -f conftest.$ac_objext conftest$ac_exeext
9084 if { (ac_try="$ac_link"
9085 case "(($ac_try" in
9086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087   *) ac_try_echo=$ac_try;;
9088 esac
9089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9090 $as_echo "$ac_try_echo") >&5
9091   (eval "$ac_link") 2>conftest.er1
9092   ac_status=$?
9093   grep -v '^ *+' conftest.er1 >conftest.err
9094   rm -f conftest.er1
9095   cat conftest.err >&5
9096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); } && {
9098          test -z "$ac_c_werror_flag" ||
9099          test ! -s conftest.err
9100        } && test -s conftest$ac_exeext && {
9101          test "$cross_compiling" = yes ||
9102          $as_test_x conftest$ac_exeext
9103        }; then
9104   ac_cv_search_gss_init_sec_context=$ac_res
9105 else
9106   $as_echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109
9110 fi
9111
9112 rm -rf conftest.dSYM
9113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9114       conftest$ac_exeext
9115   if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9116   break
9117 fi
9118 done
9119 if test "${ac_cv_search_gss_init_sec_context+set}" = set; then
9120   :
9121 else
9122   ac_cv_search_gss_init_sec_context=no
9123 fi
9124 rm conftest.$ac_ext
9125 LIBS=$ac_func_search_save_LIBS
9126 fi
9127 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gss_init_sec_context" >&5
9128 $as_echo "$ac_cv_search_gss_init_sec_context" >&6; }
9129 ac_res=$ac_cv_search_gss_init_sec_context
9130 if test "$ac_res" != no; then
9131   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9132
9133 else
9134   { { $as_echo "$as_me:$LINENO: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&5
9135 $as_echo "$as_me: error: could not find function 'gss_init_sec_context' required for GSSAPI" >&2;}
9136    { (exit 1); exit 1; }; }
9137 fi
9138
9139   else
9140     LIBS="$LIBS -lgssapi32"
9141   fi
9142 fi
9143
9144 if test "$with_krb5" = yes ; then
9145   if test "$PORTNAME" != "win32"; then
9146      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9147 $as_echo_n "checking for library containing com_err... " >&6; }
9148 if test "${ac_cv_search_com_err+set}" = set; then
9149   $as_echo_n "(cached) " >&6
9150 else
9151   ac_func_search_save_LIBS=$LIBS
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h.  */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h.  */
9158
9159 /* Override any GCC internal prototype to avoid an error.
9160    Use char because int might match the return type of a GCC
9161    builtin and then its argument prototype would still apply.  */
9162 #ifdef __cplusplus
9163 extern "C"
9164 #endif
9165 char com_err ();
9166 int
9167 main ()
9168 {
9169 return com_err ();
9170   ;
9171   return 0;
9172 }
9173 _ACEOF
9174 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken' com_err 'com_err -lssl -lcrypto'; do
9175   if test -z "$ac_lib"; then
9176     ac_res="none required"
9177   else
9178     ac_res=-l$ac_lib
9179     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9180   fi
9181   rm -f conftest.$ac_objext conftest$ac_exeext
9182 if { (ac_try="$ac_link"
9183 case "(($ac_try" in
9184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185   *) ac_try_echo=$ac_try;;
9186 esac
9187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9188 $as_echo "$ac_try_echo") >&5
9189   (eval "$ac_link") 2>conftest.er1
9190   ac_status=$?
9191   grep -v '^ *+' conftest.er1 >conftest.err
9192   rm -f conftest.er1
9193   cat conftest.err >&5
9194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); } && {
9196          test -z "$ac_c_werror_flag" ||
9197          test ! -s conftest.err
9198        } && test -s conftest$ac_exeext && {
9199          test "$cross_compiling" = yes ||
9200          $as_test_x conftest$ac_exeext
9201        }; then
9202   ac_cv_search_com_err=$ac_res
9203 else
9204   $as_echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9206
9207
9208 fi
9209
9210 rm -rf conftest.dSYM
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212       conftest$ac_exeext
9213   if test "${ac_cv_search_com_err+set}" = set; then
9214   break
9215 fi
9216 done
9217 if test "${ac_cv_search_com_err+set}" = set; then
9218   :
9219 else
9220   ac_cv_search_com_err=no
9221 fi
9222 rm conftest.$ac_ext
9223 LIBS=$ac_func_search_save_LIBS
9224 fi
9225 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9226 $as_echo "$ac_cv_search_com_err" >&6; }
9227 ac_res=$ac_cv_search_com_err
9228 if test "$ac_res" != no; then
9229   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9230
9231 else
9232   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9233 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9234    { (exit 1); exit 1; }; }
9235 fi
9236
9237      { $as_echo "$as_me:$LINENO: checking for library containing krb5_sendauth" >&5
9238 $as_echo_n "checking for library containing krb5_sendauth... " >&6; }
9239 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9240   $as_echo_n "(cached) " >&6
9241 else
9242   ac_func_search_save_LIBS=$LIBS
9243 cat >conftest.$ac_ext <<_ACEOF
9244 /* confdefs.h.  */
9245 _ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h.  */
9249
9250 /* Override any GCC internal prototype to avoid an error.
9251    Use char because int might match the return type of a GCC
9252    builtin and then its argument prototype would still apply.  */
9253 #ifdef __cplusplus
9254 extern "C"
9255 #endif
9256 char krb5_sendauth ();
9257 int
9258 main ()
9259 {
9260 return krb5_sendauth ();
9261   ;
9262   return 0;
9263 }
9264 _ACEOF
9265 for ac_lib in '' krb5 'krb5 -lcrypto -ldes -lasn1 -lroken'; do
9266   if test -z "$ac_lib"; then
9267     ac_res="none required"
9268   else
9269     ac_res=-l$ac_lib
9270     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9271   fi
9272   rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9274 case "(($ac_try" in
9275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276   *) ac_try_echo=$ac_try;;
9277 esac
9278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9279 $as_echo "$ac_try_echo") >&5
9280   (eval "$ac_link") 2>conftest.er1
9281   ac_status=$?
9282   grep -v '^ *+' conftest.er1 >conftest.err
9283   rm -f conftest.er1
9284   cat conftest.err >&5
9285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } && {
9287          test -z "$ac_c_werror_flag" ||
9288          test ! -s conftest.err
9289        } && test -s conftest$ac_exeext && {
9290          test "$cross_compiling" = yes ||
9291          $as_test_x conftest$ac_exeext
9292        }; then
9293   ac_cv_search_krb5_sendauth=$ac_res
9294 else
9295   $as_echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9297
9298
9299 fi
9300
9301 rm -rf conftest.dSYM
9302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9303       conftest$ac_exeext
9304   if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9305   break
9306 fi
9307 done
9308 if test "${ac_cv_search_krb5_sendauth+set}" = set; then
9309   :
9310 else
9311   ac_cv_search_krb5_sendauth=no
9312 fi
9313 rm conftest.$ac_ext
9314 LIBS=$ac_func_search_save_LIBS
9315 fi
9316 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_krb5_sendauth" >&5
9317 $as_echo "$ac_cv_search_krb5_sendauth" >&6; }
9318 ac_res=$ac_cv_search_krb5_sendauth
9319 if test "$ac_res" != no; then
9320   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9321
9322 else
9323   { { $as_echo "$as_me:$LINENO: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&5
9324 $as_echo "$as_me: error: could not find function 'krb5_sendauth' required for Kerberos 5" >&2;}
9325    { (exit 1); exit 1; }; }
9326 fi
9327
9328   else
9329      { $as_echo "$as_me:$LINENO: checking for library containing com_err" >&5
9330 $as_echo_n "checking for library containing com_err... " >&6; }
9331 if test "${ac_cv_search_com_err+set}" = set; then
9332   $as_echo_n "(cached) " >&6
9333 else
9334   ac_func_search_save_LIBS=$LIBS
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341
9342 /* Override any GCC internal prototype to avoid an error.
9343    Use char because int might match the return type of a GCC
9344    builtin and then its argument prototype would still apply.  */
9345 #ifdef __cplusplus
9346 extern "C"
9347 #endif
9348 char com_err ();
9349 int
9350 main ()
9351 {
9352 return com_err ();
9353   ;
9354   return 0;
9355 }
9356 _ACEOF
9357 for ac_lib in '' 'comerr32 -lkrb5_32'; do
9358   if test -z "$ac_lib"; then
9359     ac_res="none required"
9360   else
9361     ac_res=-l$ac_lib
9362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9363   fi
9364   rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (ac_try="$ac_link"
9366 case "(($ac_try" in
9367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9368   *) ac_try_echo=$ac_try;;
9369 esac
9370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9371 $as_echo "$ac_try_echo") >&5
9372   (eval "$ac_link") 2>conftest.er1
9373   ac_status=$?
9374   grep -v '^ *+' conftest.er1 >conftest.err
9375   rm -f conftest.er1
9376   cat conftest.err >&5
9377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); } && {
9379          test -z "$ac_c_werror_flag" ||
9380          test ! -s conftest.err
9381        } && test -s conftest$ac_exeext && {
9382          test "$cross_compiling" = yes ||
9383          $as_test_x conftest$ac_exeext
9384        }; then
9385   ac_cv_search_com_err=$ac_res
9386 else
9387   $as_echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390
9391 fi
9392
9393 rm -rf conftest.dSYM
9394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9395       conftest$ac_exeext
9396   if test "${ac_cv_search_com_err+set}" = set; then
9397   break
9398 fi
9399 done
9400 if test "${ac_cv_search_com_err+set}" = set; then
9401   :
9402 else
9403   ac_cv_search_com_err=no
9404 fi
9405 rm conftest.$ac_ext
9406 LIBS=$ac_func_search_save_LIBS
9407 fi
9408 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_com_err" >&5
9409 $as_echo "$ac_cv_search_com_err" >&6; }
9410 ac_res=$ac_cv_search_com_err
9411 if test "$ac_res" != no; then
9412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9413
9414 else
9415   { { $as_echo "$as_me:$LINENO: error: could not find function 'com_err' required for Kerberos 5" >&5
9416 $as_echo "$as_me: error: could not find function 'com_err' required for Kerberos 5" >&2;}
9417    { (exit 1); exit 1; }; }
9418 fi
9419
9420   fi
9421 fi
9422
9423 if test "$with_openssl" = yes ; then
9424     if test "$PORTNAME" != "win32"; then
9425
9426 { $as_echo "$as_me:$LINENO: checking for CRYPTO_new_ex_data in -lcrypto" >&5
9427 $as_echo_n "checking for CRYPTO_new_ex_data in -lcrypto... " >&6; }
9428 if test "${ac_cv_lib_crypto_CRYPTO_new_ex_data+set}" = set; then
9429   $as_echo_n "(cached) " >&6
9430 else
9431   ac_check_lib_save_LIBS=$LIBS
9432 LIBS="-lcrypto  $LIBS"
9433 cat >conftest.$ac_ext <<_ACEOF
9434 /* confdefs.h.  */
9435 _ACEOF
9436 cat confdefs.h >>conftest.$ac_ext
9437 cat >>conftest.$ac_ext <<_ACEOF
9438 /* end confdefs.h.  */
9439
9440 /* Override any GCC internal prototype to avoid an error.
9441    Use char because int might match the return type of a GCC
9442    builtin and then its argument prototype would still apply.  */
9443 #ifdef __cplusplus
9444 extern "C"
9445 #endif
9446 char CRYPTO_new_ex_data ();
9447 int
9448 main ()
9449 {
9450 return CRYPTO_new_ex_data ();
9451   ;
9452   return 0;
9453 }
9454 _ACEOF
9455 rm -f conftest.$ac_objext conftest$ac_exeext
9456 if { (ac_try="$ac_link"
9457 case "(($ac_try" in
9458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9459   *) ac_try_echo=$ac_try;;
9460 esac
9461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9462 $as_echo "$ac_try_echo") >&5
9463   (eval "$ac_link") 2>conftest.er1
9464   ac_status=$?
9465   grep -v '^ *+' conftest.er1 >conftest.err
9466   rm -f conftest.er1
9467   cat conftest.err >&5
9468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469   (exit $ac_status); } && {
9470          test -z "$ac_c_werror_flag" ||
9471          test ! -s conftest.err
9472        } && test -s conftest$ac_exeext && {
9473          test "$cross_compiling" = yes ||
9474          $as_test_x conftest$ac_exeext
9475        }; then
9476   ac_cv_lib_crypto_CRYPTO_new_ex_data=yes
9477 else
9478   $as_echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9480
9481         ac_cv_lib_crypto_CRYPTO_new_ex_data=no
9482 fi
9483
9484 rm -rf conftest.dSYM
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486       conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9488 fi
9489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_new_ex_data" >&5
9490 $as_echo "$ac_cv_lib_crypto_CRYPTO_new_ex_data" >&6; }
9491 if test "x$ac_cv_lib_crypto_CRYPTO_new_ex_data" = x""yes; then
9492   cat >>confdefs.h <<_ACEOF
9493 #define HAVE_LIBCRYPTO 1
9494 _ACEOF
9495
9496   LIBS="-lcrypto $LIBS"
9497
9498 else
9499   { { $as_echo "$as_me:$LINENO: error: library 'crypto' is required for OpenSSL" >&5
9500 $as_echo "$as_me: error: library 'crypto' is required for OpenSSL" >&2;}
9501    { (exit 1); exit 1; }; }
9502 fi
9503
9504
9505 { $as_echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
9506 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
9507 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
9508   $as_echo_n "(cached) " >&6
9509 else
9510   ac_check_lib_save_LIBS=$LIBS
9511 LIBS="-lssl  $LIBS"
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h.  */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h.  */
9518
9519 /* Override any GCC internal prototype to avoid an error.
9520    Use char because int might match the return type of a GCC
9521    builtin and then its argument prototype would still apply.  */
9522 #ifdef __cplusplus
9523 extern "C"
9524 #endif
9525 char SSL_library_init ();
9526 int
9527 main ()
9528 {
9529 return SSL_library_init ();
9530   ;
9531   return 0;
9532 }
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (ac_try="$ac_link"
9536 case "(($ac_try" in
9537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9538   *) ac_try_echo=$ac_try;;
9539 esac
9540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9541 $as_echo "$ac_try_echo") >&5
9542   (eval "$ac_link") 2>conftest.er1
9543   ac_status=$?
9544   grep -v '^ *+' conftest.er1 >conftest.err
9545   rm -f conftest.er1
9546   cat conftest.err >&5
9547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); } && {
9549          test -z "$ac_c_werror_flag" ||
9550          test ! -s conftest.err
9551        } && test -s conftest$ac_exeext && {
9552          test "$cross_compiling" = yes ||
9553          $as_test_x conftest$ac_exeext
9554        }; then
9555   ac_cv_lib_ssl_SSL_library_init=yes
9556 else
9557   $as_echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560         ac_cv_lib_ssl_SSL_library_init=no
9561 fi
9562
9563 rm -rf conftest.dSYM
9564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9565       conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS
9567 fi
9568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
9569 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
9570 if test "x$ac_cv_lib_ssl_SSL_library_init" = x""yes; then
9571   cat >>confdefs.h <<_ACEOF
9572 #define HAVE_LIBSSL 1
9573 _ACEOF
9574
9575   LIBS="-lssl $LIBS"
9576
9577 else
9578   { { $as_echo "$as_me:$LINENO: error: library 'ssl' is required for OpenSSL" >&5
9579 $as_echo "$as_me: error: library 'ssl' is required for OpenSSL" >&2;}
9580    { (exit 1); exit 1; }; }
9581 fi
9582
9583   else
9584      { $as_echo "$as_me:$LINENO: checking for library containing CRYPTO_new_ex_data" >&5
9585 $as_echo_n "checking for library containing CRYPTO_new_ex_data... " >&6; }
9586 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9587   $as_echo_n "(cached) " >&6
9588 else
9589   ac_func_search_save_LIBS=$LIBS
9590 cat >conftest.$ac_ext <<_ACEOF
9591 /* confdefs.h.  */
9592 _ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h.  */
9596
9597 /* Override any GCC internal prototype to avoid an error.
9598    Use char because int might match the return type of a GCC
9599    builtin and then its argument prototype would still apply.  */
9600 #ifdef __cplusplus
9601 extern "C"
9602 #endif
9603 char CRYPTO_new_ex_data ();
9604 int
9605 main ()
9606 {
9607 return CRYPTO_new_ex_data ();
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 for ac_lib in '' eay32 crypto; do
9613   if test -z "$ac_lib"; then
9614     ac_res="none required"
9615   else
9616     ac_res=-l$ac_lib
9617     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9618   fi
9619   rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9621 case "(($ac_try" in
9622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623   *) ac_try_echo=$ac_try;;
9624 esac
9625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9626 $as_echo "$ac_try_echo") >&5
9627   (eval "$ac_link") 2>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } && {
9634          test -z "$ac_c_werror_flag" ||
9635          test ! -s conftest.err
9636        } && test -s conftest$ac_exeext && {
9637          test "$cross_compiling" = yes ||
9638          $as_test_x conftest$ac_exeext
9639        }; then
9640   ac_cv_search_CRYPTO_new_ex_data=$ac_res
9641 else
9642   $as_echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645
9646 fi
9647
9648 rm -rf conftest.dSYM
9649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9650       conftest$ac_exeext
9651   if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9652   break
9653 fi
9654 done
9655 if test "${ac_cv_search_CRYPTO_new_ex_data+set}" = set; then
9656   :
9657 else
9658   ac_cv_search_CRYPTO_new_ex_data=no
9659 fi
9660 rm conftest.$ac_ext
9661 LIBS=$ac_func_search_save_LIBS
9662 fi
9663 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_CRYPTO_new_ex_data" >&5
9664 $as_echo "$ac_cv_search_CRYPTO_new_ex_data" >&6; }
9665 ac_res=$ac_cv_search_CRYPTO_new_ex_data
9666 if test "$ac_res" != no; then
9667   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9668
9669 else
9670   { { $as_echo "$as_me:$LINENO: error: library 'eay32' or 'crypto' is required for OpenSSL" >&5
9671 $as_echo "$as_me: error: library 'eay32' or 'crypto' is required for OpenSSL" >&2;}
9672    { (exit 1); exit 1; }; }
9673 fi
9674
9675      { $as_echo "$as_me:$LINENO: checking for library containing SSL_library_init" >&5
9676 $as_echo_n "checking for library containing SSL_library_init... " >&6; }
9677 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9678   $as_echo_n "(cached) " >&6
9679 else
9680   ac_func_search_save_LIBS=$LIBS
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h.  */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h.  */
9687
9688 /* Override any GCC internal prototype to avoid an error.
9689    Use char because int might match the return type of a GCC
9690    builtin and then its argument prototype would still apply.  */
9691 #ifdef __cplusplus
9692 extern "C"
9693 #endif
9694 char SSL_library_init ();
9695 int
9696 main ()
9697 {
9698 return SSL_library_init ();
9699   ;
9700   return 0;
9701 }
9702 _ACEOF
9703 for ac_lib in '' ssleay32 ssl; do
9704   if test -z "$ac_lib"; then
9705     ac_res="none required"
9706   else
9707     ac_res=-l$ac_lib
9708     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9709   fi
9710   rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9712 case "(($ac_try" in
9713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714   *) ac_try_echo=$ac_try;;
9715 esac
9716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718   (eval "$ac_link") 2>conftest.er1
9719   ac_status=$?
9720   grep -v '^ *+' conftest.er1 >conftest.err
9721   rm -f conftest.er1
9722   cat conftest.err >&5
9723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724   (exit $ac_status); } && {
9725          test -z "$ac_c_werror_flag" ||
9726          test ! -s conftest.err
9727        } && test -s conftest$ac_exeext && {
9728          test "$cross_compiling" = yes ||
9729          $as_test_x conftest$ac_exeext
9730        }; then
9731   ac_cv_search_SSL_library_init=$ac_res
9732 else
9733   $as_echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9735
9736
9737 fi
9738
9739 rm -rf conftest.dSYM
9740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9741       conftest$ac_exeext
9742   if test "${ac_cv_search_SSL_library_init+set}" = set; then
9743   break
9744 fi
9745 done
9746 if test "${ac_cv_search_SSL_library_init+set}" = set; then
9747   :
9748 else
9749   ac_cv_search_SSL_library_init=no
9750 fi
9751 rm conftest.$ac_ext
9752 LIBS=$ac_func_search_save_LIBS
9753 fi
9754 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_SSL_library_init" >&5
9755 $as_echo "$ac_cv_search_SSL_library_init" >&6; }
9756 ac_res=$ac_cv_search_SSL_library_init
9757 if test "$ac_res" != no; then
9758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9759
9760 else
9761   { { $as_echo "$as_me:$LINENO: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&5
9762 $as_echo "$as_me: error: library 'ssleay32' or 'ssl' is required for OpenSSL" >&2;}
9763    { (exit 1); exit 1; }; }
9764 fi
9765
9766   fi
9767 fi
9768
9769 if test "$with_pam" = yes ; then
9770
9771 { $as_echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
9772 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9773 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
9774   $as_echo_n "(cached) " >&6
9775 else
9776   ac_check_lib_save_LIBS=$LIBS
9777 LIBS="-lpam  $LIBS"
9778 cat >conftest.$ac_ext <<_ACEOF
9779 /* confdefs.h.  */
9780 _ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h.  */
9784
9785 /* Override any GCC internal prototype to avoid an error.
9786    Use char because int might match the return type of a GCC
9787    builtin and then its argument prototype would still apply.  */
9788 #ifdef __cplusplus
9789 extern "C"
9790 #endif
9791 char pam_start ();
9792 int
9793 main ()
9794 {
9795 return pam_start ();
9796   ;
9797   return 0;
9798 }
9799 _ACEOF
9800 rm -f conftest.$ac_objext conftest$ac_exeext
9801 if { (ac_try="$ac_link"
9802 case "(($ac_try" in
9803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9804   *) ac_try_echo=$ac_try;;
9805 esac
9806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9807 $as_echo "$ac_try_echo") >&5
9808   (eval "$ac_link") 2>conftest.er1
9809   ac_status=$?
9810   grep -v '^ *+' conftest.er1 >conftest.err
9811   rm -f conftest.er1
9812   cat conftest.err >&5
9813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814   (exit $ac_status); } && {
9815          test -z "$ac_c_werror_flag" ||
9816          test ! -s conftest.err
9817        } && test -s conftest$ac_exeext && {
9818          test "$cross_compiling" = yes ||
9819          $as_test_x conftest$ac_exeext
9820        }; then
9821   ac_cv_lib_pam_pam_start=yes
9822 else
9823   $as_echo "$as_me: failed program was:" >&5
9824 sed 's/^/| /' conftest.$ac_ext >&5
9825
9826         ac_cv_lib_pam_pam_start=no
9827 fi
9828
9829 rm -rf conftest.dSYM
9830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9831       conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9833 fi
9834 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
9835 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9836 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then
9837   cat >>confdefs.h <<_ACEOF
9838 #define HAVE_LIBPAM 1
9839 _ACEOF
9840
9841   LIBS="-lpam $LIBS"
9842
9843 else
9844   { { $as_echo "$as_me:$LINENO: error: library 'pam' is required for PAM" >&5
9845 $as_echo "$as_me: error: library 'pam' is required for PAM" >&2;}
9846    { (exit 1); exit 1; }; }
9847 fi
9848
9849 fi
9850
9851 if test "$with_libxml" = yes ; then
9852
9853 { $as_echo "$as_me:$LINENO: checking for xmlSaveToBuffer in -lxml2" >&5
9854 $as_echo_n "checking for xmlSaveToBuffer in -lxml2... " >&6; }
9855 if test "${ac_cv_lib_xml2_xmlSaveToBuffer+set}" = set; then
9856   $as_echo_n "(cached) " >&6
9857 else
9858   ac_check_lib_save_LIBS=$LIBS
9859 LIBS="-lxml2  $LIBS"
9860 cat >conftest.$ac_ext <<_ACEOF
9861 /* confdefs.h.  */
9862 _ACEOF
9863 cat confdefs.h >>conftest.$ac_ext
9864 cat >>conftest.$ac_ext <<_ACEOF
9865 /* end confdefs.h.  */
9866
9867 /* Override any GCC internal prototype to avoid an error.
9868    Use char because int might match the return type of a GCC
9869    builtin and then its argument prototype would still apply.  */
9870 #ifdef __cplusplus
9871 extern "C"
9872 #endif
9873 char xmlSaveToBuffer ();
9874 int
9875 main ()
9876 {
9877 return xmlSaveToBuffer ();
9878   ;
9879   return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9884 case "(($ac_try" in
9885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886   *) ac_try_echo=$ac_try;;
9887 esac
9888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9889 $as_echo "$ac_try_echo") >&5
9890   (eval "$ac_link") 2>conftest.er1
9891   ac_status=$?
9892   grep -v '^ *+' conftest.er1 >conftest.err
9893   rm -f conftest.er1
9894   cat conftest.err >&5
9895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896   (exit $ac_status); } && {
9897          test -z "$ac_c_werror_flag" ||
9898          test ! -s conftest.err
9899        } && test -s conftest$ac_exeext && {
9900          test "$cross_compiling" = yes ||
9901          $as_test_x conftest$ac_exeext
9902        }; then
9903   ac_cv_lib_xml2_xmlSaveToBuffer=yes
9904 else
9905   $as_echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9907
9908         ac_cv_lib_xml2_xmlSaveToBuffer=no
9909 fi
9910
9911 rm -rf conftest.dSYM
9912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9913       conftest$ac_exeext conftest.$ac_ext
9914 LIBS=$ac_check_lib_save_LIBS
9915 fi
9916 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSaveToBuffer" >&5
9917 $as_echo "$ac_cv_lib_xml2_xmlSaveToBuffer" >&6; }
9918 if test "x$ac_cv_lib_xml2_xmlSaveToBuffer" = x""yes; then
9919   cat >>confdefs.h <<_ACEOF
9920 #define HAVE_LIBXML2 1
9921 _ACEOF
9922
9923   LIBS="-lxml2 $LIBS"
9924
9925 else
9926   { { $as_echo "$as_me:$LINENO: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&5
9927 $as_echo "$as_me: error: library 'xml2' (version >= 2.6.23) is required for XML support" >&2;}
9928    { (exit 1); exit 1; }; }
9929 fi
9930
9931 fi
9932
9933 if test "$with_libxslt" = yes ; then
9934
9935 { $as_echo "$as_me:$LINENO: checking for xsltCleanupGlobals in -lxslt" >&5
9936 $as_echo_n "checking for xsltCleanupGlobals in -lxslt... " >&6; }
9937 if test "${ac_cv_lib_xslt_xsltCleanupGlobals+set}" = set; then
9938   $as_echo_n "(cached) " >&6
9939 else
9940   ac_check_lib_save_LIBS=$LIBS
9941 LIBS="-lxslt  $LIBS"
9942 cat >conftest.$ac_ext <<_ACEOF
9943 /* confdefs.h.  */
9944 _ACEOF
9945 cat confdefs.h >>conftest.$ac_ext
9946 cat >>conftest.$ac_ext <<_ACEOF
9947 /* end confdefs.h.  */
9948
9949 /* Override any GCC internal prototype to avoid an error.
9950    Use char because int might match the return type of a GCC
9951    builtin and then its argument prototype would still apply.  */
9952 #ifdef __cplusplus
9953 extern "C"
9954 #endif
9955 char xsltCleanupGlobals ();
9956 int
9957 main ()
9958 {
9959 return xsltCleanupGlobals ();
9960   ;
9961   return 0;
9962 }
9963 _ACEOF
9964 rm -f conftest.$ac_objext conftest$ac_exeext
9965 if { (ac_try="$ac_link"
9966 case "(($ac_try" in
9967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968   *) ac_try_echo=$ac_try;;
9969 esac
9970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971 $as_echo "$ac_try_echo") >&5
9972   (eval "$ac_link") 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } && {
9979          test -z "$ac_c_werror_flag" ||
9980          test ! -s conftest.err
9981        } && test -s conftest$ac_exeext && {
9982          test "$cross_compiling" = yes ||
9983          $as_test_x conftest$ac_exeext
9984        }; then
9985   ac_cv_lib_xslt_xsltCleanupGlobals=yes
9986 else
9987   $as_echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9989
9990         ac_cv_lib_xslt_xsltCleanupGlobals=no
9991 fi
9992
9993 rm -rf conftest.dSYM
9994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9995       conftest$ac_exeext conftest.$ac_ext
9996 LIBS=$ac_check_lib_save_LIBS
9997 fi
9998 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xslt_xsltCleanupGlobals" >&5
9999 $as_echo "$ac_cv_lib_xslt_xsltCleanupGlobals" >&6; }
10000 if test "x$ac_cv_lib_xslt_xsltCleanupGlobals" = x""yes; then
10001   cat >>confdefs.h <<_ACEOF
10002 #define HAVE_LIBXSLT 1
10003 _ACEOF
10004
10005   LIBS="-lxslt $LIBS"
10006
10007 else
10008   { { $as_echo "$as_me:$LINENO: error: library 'xslt' is required for XSLT support" >&5
10009 $as_echo "$as_me: error: library 'xslt' is required for XSLT support" >&2;}
10010    { (exit 1); exit 1; }; }
10011 fi
10012
10013 fi
10014
10015 # for contrib/sepgsql
10016 if test "$with_selinux" = yes; then
10017
10018 { $as_echo "$as_me:$LINENO: checking for security_compute_create_name in -lselinux" >&5
10019 $as_echo_n "checking for security_compute_create_name in -lselinux... " >&6; }
10020 if test "${ac_cv_lib_selinux_security_compute_create_name+set}" = set; then
10021   $as_echo_n "(cached) " >&6
10022 else
10023   ac_check_lib_save_LIBS=$LIBS
10024 LIBS="-lselinux  $LIBS"
10025 cat >conftest.$ac_ext <<_ACEOF
10026 /* confdefs.h.  */
10027 _ACEOF
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h.  */
10031
10032 /* Override any GCC internal prototype to avoid an error.
10033    Use char because int might match the return type of a GCC
10034    builtin and then its argument prototype would still apply.  */
10035 #ifdef __cplusplus
10036 extern "C"
10037 #endif
10038 char security_compute_create_name ();
10039 int
10040 main ()
10041 {
10042 return security_compute_create_name ();
10043   ;
10044   return 0;
10045 }
10046 _ACEOF
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (ac_try="$ac_link"
10049 case "(($ac_try" in
10050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051   *) ac_try_echo=$ac_try;;
10052 esac
10053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10054 $as_echo "$ac_try_echo") >&5
10055   (eval "$ac_link") 2>conftest.er1
10056   ac_status=$?
10057   grep -v '^ *+' conftest.er1 >conftest.err
10058   rm -f conftest.er1
10059   cat conftest.err >&5
10060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); } && {
10062          test -z "$ac_c_werror_flag" ||
10063          test ! -s conftest.err
10064        } && test -s conftest$ac_exeext && {
10065          test "$cross_compiling" = yes ||
10066          $as_test_x conftest$ac_exeext
10067        }; then
10068   ac_cv_lib_selinux_security_compute_create_name=yes
10069 else
10070   $as_echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073         ac_cv_lib_selinux_security_compute_create_name=no
10074 fi
10075
10076 rm -rf conftest.dSYM
10077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10078       conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10080 fi
10081 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_security_compute_create_name" >&5
10082 $as_echo "$ac_cv_lib_selinux_security_compute_create_name" >&6; }
10083 if test "x$ac_cv_lib_selinux_security_compute_create_name" = x""yes; then
10084   cat >>confdefs.h <<_ACEOF
10085 #define HAVE_LIBSELINUX 1
10086 _ACEOF
10087
10088   LIBS="-lselinux $LIBS"
10089
10090 else
10091   { { $as_echo "$as_me:$LINENO: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&5
10092 $as_echo "$as_me: error: library 'libselinux', version 2.1.10 or newer, is required for SELinux support" >&2;}
10093    { (exit 1); exit 1; }; }
10094 fi
10095
10096 fi
10097
10098 # for contrib/uuid-ossp
10099 if test "$with_ossp_uuid" = yes ; then
10100   { $as_echo "$as_me:$LINENO: checking for uuid_export in -lossp-uuid" >&5
10101 $as_echo_n "checking for uuid_export in -lossp-uuid... " >&6; }
10102 if test "${ac_cv_lib_ossp_uuid_uuid_export+set}" = set; then
10103   $as_echo_n "(cached) " >&6
10104 else
10105   ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-lossp-uuid  $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h.  */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h.  */
10113
10114 /* Override any GCC internal prototype to avoid an error.
10115    Use char because int might match the return type of a GCC
10116    builtin and then its argument prototype would still apply.  */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char uuid_export ();
10121 int
10122 main ()
10123 {
10124 return uuid_export ();
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133   *) ac_try_echo=$ac_try;;
10134 esac
10135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10136 $as_echo "$ac_try_echo") >&5
10137   (eval "$ac_link") 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } && {
10144          test -z "$ac_c_werror_flag" ||
10145          test ! -s conftest.err
10146        } && test -s conftest$ac_exeext && {
10147          test "$cross_compiling" = yes ||
10148          $as_test_x conftest$ac_exeext
10149        }; then
10150   ac_cv_lib_ossp_uuid_uuid_export=yes
10151 else
10152   $as_echo "$as_me: failed program was:" >&5
10153 sed 's/^/| /' conftest.$ac_ext >&5
10154
10155         ac_cv_lib_ossp_uuid_uuid_export=no
10156 fi
10157
10158 rm -rf conftest.dSYM
10159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10160       conftest$ac_exeext conftest.$ac_ext
10161 LIBS=$ac_check_lib_save_LIBS
10162 fi
10163 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossp_uuid_uuid_export" >&5
10164 $as_echo "$ac_cv_lib_ossp_uuid_uuid_export" >&6; }
10165 if test "x$ac_cv_lib_ossp_uuid_uuid_export" = x""yes; then
10166   OSSP_UUID_LIBS="-lossp-uuid"
10167 else
10168   { $as_echo "$as_me:$LINENO: checking for uuid_export in -luuid" >&5
10169 $as_echo_n "checking for uuid_export in -luuid... " >&6; }
10170 if test "${ac_cv_lib_uuid_uuid_export+set}" = set; then
10171   $as_echo_n "(cached) " >&6
10172 else
10173   ac_check_lib_save_LIBS=$LIBS
10174 LIBS="-luuid  $LIBS"
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181
10182 /* Override any GCC internal prototype to avoid an error.
10183    Use char because int might match the return type of a GCC
10184    builtin and then its argument prototype would still apply.  */
10185 #ifdef __cplusplus
10186 extern "C"
10187 #endif
10188 char uuid_export ();
10189 int
10190 main ()
10191 {
10192 return uuid_export ();
10193   ;
10194   return 0;
10195 }
10196 _ACEOF
10197 rm -f conftest.$ac_objext conftest$ac_exeext
10198 if { (ac_try="$ac_link"
10199 case "(($ac_try" in
10200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10201   *) ac_try_echo=$ac_try;;
10202 esac
10203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10204 $as_echo "$ac_try_echo") >&5
10205   (eval "$ac_link") 2>conftest.er1
10206   ac_status=$?
10207   grep -v '^ *+' conftest.er1 >conftest.err
10208   rm -f conftest.er1
10209   cat conftest.err >&5
10210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } && {
10212          test -z "$ac_c_werror_flag" ||
10213          test ! -s conftest.err
10214        } && test -s conftest$ac_exeext && {
10215          test "$cross_compiling" = yes ||
10216          $as_test_x conftest$ac_exeext
10217        }; then
10218   ac_cv_lib_uuid_uuid_export=yes
10219 else
10220   $as_echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223         ac_cv_lib_uuid_uuid_export=no
10224 fi
10225
10226 rm -rf conftest.dSYM
10227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10228       conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10230 fi
10231 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_export" >&5
10232 $as_echo "$ac_cv_lib_uuid_uuid_export" >&6; }
10233 if test "x$ac_cv_lib_uuid_uuid_export" = x""yes; then
10234   OSSP_UUID_LIBS="-luuid"
10235 else
10236   { { $as_echo "$as_me:$LINENO: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&5
10237 $as_echo "$as_me: error: library 'ossp-uuid' or 'uuid' is required for OSSP-UUID" >&2;}
10238    { (exit 1); exit 1; }; }
10239 fi
10240
10241 fi
10242
10243 fi
10244
10245
10246
10247 ##
10248 ## Header files
10249 ##
10250
10251 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10252 $as_echo_n "checking for ANSI C header files... " >&6; }
10253 if test "${ac_cv_header_stdc+set}" = set; then
10254   $as_echo_n "(cached) " >&6
10255 else
10256   cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262 #include <stdlib.h>
10263 #include <stdarg.h>
10264 #include <string.h>
10265 #include <float.h>
10266
10267 int
10268 main ()
10269 {
10270
10271   ;
10272   return 0;
10273 }
10274 _ACEOF
10275 rm -f conftest.$ac_objext
10276 if { (ac_try="$ac_compile"
10277 case "(($ac_try" in
10278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10279   *) ac_try_echo=$ac_try;;
10280 esac
10281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10282 $as_echo "$ac_try_echo") >&5
10283   (eval "$ac_compile") 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } && {
10290          test -z "$ac_c_werror_flag" ||
10291          test ! -s conftest.err
10292        } && test -s conftest.$ac_objext; then
10293   ac_cv_header_stdc=yes
10294 else
10295   $as_echo "$as_me: failed program was:" >&5
10296 sed 's/^/| /' conftest.$ac_ext >&5
10297
10298         ac_cv_header_stdc=no
10299 fi
10300
10301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10302
10303 if test $ac_cv_header_stdc = yes; then
10304   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10305   cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311 #include <string.h>
10312
10313 _ACEOF
10314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10315   $EGREP "memchr" >/dev/null 2>&1; then
10316   :
10317 else
10318   ac_cv_header_stdc=no
10319 fi
10320 rm -f conftest*
10321
10322 fi
10323
10324 if test $ac_cv_header_stdc = yes; then
10325   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10326   cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h.  */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h.  */
10332 #include <stdlib.h>
10333
10334 _ACEOF
10335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10336   $EGREP "free" >/dev/null 2>&1; then
10337   :
10338 else
10339   ac_cv_header_stdc=no
10340 fi
10341 rm -f conftest*
10342
10343 fi
10344
10345 if test $ac_cv_header_stdc = yes; then
10346   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10347   if test "$cross_compiling" = yes; then
10348   :
10349 else
10350   cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356 #include <ctype.h>
10357 #include <stdlib.h>
10358 #if ((' ' & 0x0FF) == 0x020)
10359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10361 #else
10362 # define ISLOWER(c) \
10363                    (('a' <= (c) && (c) <= 'i') \
10364                      || ('j' <= (c) && (c) <= 'r') \
10365                      || ('s' <= (c) && (c) <= 'z'))
10366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10367 #endif
10368
10369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10370 int
10371 main ()
10372 {
10373   int i;
10374   for (i = 0; i < 256; i++)
10375     if (XOR (islower (i), ISLOWER (i))
10376         || toupper (i) != TOUPPER (i))
10377       return 2;
10378   return 0;
10379 }
10380 _ACEOF
10381 rm -f conftest$ac_exeext
10382 if { (ac_try="$ac_link"
10383 case "(($ac_try" in
10384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10385   *) ac_try_echo=$ac_try;;
10386 esac
10387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10388 $as_echo "$ac_try_echo") >&5
10389   (eval "$ac_link") 2>&5
10390   ac_status=$?
10391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10393   { (case "(($ac_try" in
10394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10395   *) ac_try_echo=$ac_try;;
10396 esac
10397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10398 $as_echo "$ac_try_echo") >&5
10399   (eval "$ac_try") 2>&5
10400   ac_status=$?
10401   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402   (exit $ac_status); }; }; then
10403   :
10404 else
10405   $as_echo "$as_me: program exited with status $ac_status" >&5
10406 $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409 ( exit $ac_status )
10410 ac_cv_header_stdc=no
10411 fi
10412 rm -rf conftest.dSYM
10413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10414 fi
10415
10416
10417 fi
10418 fi
10419 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10420 $as_echo "$ac_cv_header_stdc" >&6; }
10421 if test $ac_cv_header_stdc = yes; then
10422
10423 cat >>confdefs.h <<\_ACEOF
10424 #define STDC_HEADERS 1
10425 _ACEOF
10426
10427 fi
10428
10429 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10440                   inttypes.h stdint.h unistd.h
10441 do
10442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10444 $as_echo_n "checking for $ac_header... " >&6; }
10445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10446   $as_echo_n "(cached) " >&6
10447 else
10448   cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h.  */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h.  */
10454 $ac_includes_default
10455
10456 #include <$ac_header>
10457 _ACEOF
10458 rm -f conftest.$ac_objext
10459 if { (ac_try="$ac_compile"
10460 case "(($ac_try" in
10461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10462   *) ac_try_echo=$ac_try;;
10463 esac
10464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10465 $as_echo "$ac_try_echo") >&5
10466   (eval "$ac_compile") 2>conftest.er1
10467   ac_status=$?
10468   grep -v '^ *+' conftest.er1 >conftest.err
10469   rm -f conftest.er1
10470   cat conftest.err >&5
10471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472   (exit $ac_status); } && {
10473          test -z "$ac_c_werror_flag" ||
10474          test ! -s conftest.err
10475        } && test -s conftest.$ac_objext; then
10476   eval "$as_ac_Header=yes"
10477 else
10478   $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10480
10481         eval "$as_ac_Header=no"
10482 fi
10483
10484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10485 fi
10486 ac_res=`eval 'as_val=${'$as_ac_Header'}
10487                  $as_echo "$as_val"'`
10488                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10489 $as_echo "$ac_res" >&6; }
10490 as_val=`eval 'as_val=${'$as_ac_Header'}
10491                  $as_echo "$as_val"'`
10492    if test "x$as_val" = x""yes; then
10493   cat >>confdefs.h <<_ACEOF
10494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10495 _ACEOF
10496
10497 fi
10498
10499 done
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529 for ac_header in crypt.h dld.h fp_class.h getopt.h ieeefp.h ifaddrs.h langinfo.h poll.h pwd.h sys/ioctl.h sys/ipc.h sys/poll.h sys/pstat.h sys/resource.h sys/select.h sys/sem.h sys/shm.h sys/socket.h sys/sockio.h sys/tas.h sys/time.h sys/un.h termios.h ucred.h utime.h wchar.h wctype.h
10530 do
10531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10533   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10534 $as_echo_n "checking for $ac_header... " >&6; }
10535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10536   $as_echo_n "(cached) " >&6
10537 fi
10538 ac_res=`eval 'as_val=${'$as_ac_Header'}
10539                  $as_echo "$as_val"'`
10540                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10541 $as_echo "$ac_res" >&6; }
10542 else
10543   # Is the header compilable?
10544 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10545 $as_echo_n "checking $ac_header usability... " >&6; }
10546 cat >conftest.$ac_ext <<_ACEOF
10547 /* confdefs.h.  */
10548 _ACEOF
10549 cat confdefs.h >>conftest.$ac_ext
10550 cat >>conftest.$ac_ext <<_ACEOF
10551 /* end confdefs.h.  */
10552 $ac_includes_default
10553 #include <$ac_header>
10554 _ACEOF
10555 rm -f conftest.$ac_objext
10556 if { (ac_try="$ac_compile"
10557 case "(($ac_try" in
10558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559   *) ac_try_echo=$ac_try;;
10560 esac
10561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10562 $as_echo "$ac_try_echo") >&5
10563   (eval "$ac_compile") 2>conftest.er1
10564   ac_status=$?
10565   grep -v '^ *+' conftest.er1 >conftest.err
10566   rm -f conftest.er1
10567   cat conftest.err >&5
10568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); } && {
10570          test -z "$ac_c_werror_flag" ||
10571          test ! -s conftest.err
10572        } && test -s conftest.$ac_objext; then
10573   ac_header_compiler=yes
10574 else
10575   $as_echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578         ac_header_compiler=no
10579 fi
10580
10581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10582 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10583 $as_echo "$ac_header_compiler" >&6; }
10584
10585 # Is the header present?
10586 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10587 $as_echo_n "checking $ac_header presence... " >&6; }
10588 cat >conftest.$ac_ext <<_ACEOF
10589 /* confdefs.h.  */
10590 _ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h.  */
10594 #include <$ac_header>
10595 _ACEOF
10596 if { (ac_try="$ac_cpp conftest.$ac_ext"
10597 case "(($ac_try" in
10598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599   *) ac_try_echo=$ac_try;;
10600 esac
10601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10602 $as_echo "$ac_try_echo") >&5
10603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10604   ac_status=$?
10605   grep -v '^ *+' conftest.er1 >conftest.err
10606   rm -f conftest.er1
10607   cat conftest.err >&5
10608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609   (exit $ac_status); } >/dev/null && {
10610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10611          test ! -s conftest.err
10612        }; then
10613   ac_header_preproc=yes
10614 else
10615   $as_echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10617
10618   ac_header_preproc=no
10619 fi
10620
10621 rm -f conftest.err conftest.$ac_ext
10622 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10623 $as_echo "$ac_header_preproc" >&6; }
10624
10625 # So?  What about this header?
10626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10627   yes:no: )
10628     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10629 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10630     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10632     ac_header_preproc=yes
10633     ;;
10634   no:yes:* )
10635     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10636 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10637     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10638 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10639     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10640 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10642 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10646 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10647     ( cat <<\_ASBOX
10648 ## ---------------------------------------- ##
10649 ## Report this to pgsql-bugs@postgresql.org ##
10650 ## ---------------------------------------- ##
10651 _ASBOX
10652      ) | sed "s/^/$as_me: WARNING:     /" >&2
10653     ;;
10654 esac
10655 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10656 $as_echo_n "checking for $ac_header... " >&6; }
10657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10658   $as_echo_n "(cached) " >&6
10659 else
10660   eval "$as_ac_Header=\$ac_header_preproc"
10661 fi
10662 ac_res=`eval 'as_val=${'$as_ac_Header'}
10663                  $as_echo "$as_val"'`
10664                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10665 $as_echo "$ac_res" >&6; }
10666
10667 fi
10668 as_val=`eval 'as_val=${'$as_ac_Header'}
10669                  $as_echo "$as_val"'`
10670    if test "x$as_val" = x""yes; then
10671   cat >>confdefs.h <<_ACEOF
10672 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10673 _ACEOF
10674
10675 fi
10676
10677 done
10678
10679
10680 # On BSD, test for net/if.h will fail unless sys/socket.h
10681 # is included first.
10682
10683 for ac_header in net/if.h
10684 do
10685 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10686 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10687 $as_echo_n "checking for $ac_header... " >&6; }
10688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10689   $as_echo_n "(cached) " >&6
10690 else
10691   cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697 $ac_includes_default
10698 #ifdef HAVE_SYS_SOCKET_H
10699 #include <sys/socket.h>
10700 #endif
10701
10702
10703 #include <$ac_header>
10704 _ACEOF
10705 rm -f conftest.$ac_objext
10706 if { (ac_try="$ac_compile"
10707 case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10712 $as_echo "$ac_try_echo") >&5
10713   (eval "$ac_compile") 2>conftest.er1
10714   ac_status=$?
10715   grep -v '^ *+' conftest.er1 >conftest.err
10716   rm -f conftest.er1
10717   cat conftest.err >&5
10718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); } && {
10720          test -z "$ac_c_werror_flag" ||
10721          test ! -s conftest.err
10722        } && test -s conftest.$ac_objext; then
10723   eval "$as_ac_Header=yes"
10724 else
10725   $as_echo "$as_me: failed program was:" >&5
10726 sed 's/^/| /' conftest.$ac_ext >&5
10727
10728         eval "$as_ac_Header=no"
10729 fi
10730
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732 fi
10733 ac_res=`eval 'as_val=${'$as_ac_Header'}
10734                  $as_echo "$as_val"'`
10735                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10736 $as_echo "$ac_res" >&6; }
10737 as_val=`eval 'as_val=${'$as_ac_Header'}
10738                  $as_echo "$as_val"'`
10739    if test "x$as_val" = x""yes; then
10740   cat >>confdefs.h <<_ACEOF
10741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10742 _ACEOF
10743
10744 fi
10745
10746 done
10747
10748
10749 # On OpenBSD, test for sys/ucred.h will fail unless sys/param.h
10750 # is included first.
10751
10752 for ac_header in sys/ucred.h
10753 do
10754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10756 $as_echo_n "checking for $ac_header... " >&6; }
10757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10758   $as_echo_n "(cached) " >&6
10759 else
10760   cat >conftest.$ac_ext <<_ACEOF
10761 /* confdefs.h.  */
10762 _ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h.  */
10766 $ac_includes_default
10767 #include <sys/param.h>
10768
10769
10770 #include <$ac_header>
10771 _ACEOF
10772 rm -f conftest.$ac_objext
10773 if { (ac_try="$ac_compile"
10774 case "(($ac_try" in
10775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776   *) ac_try_echo=$ac_try;;
10777 esac
10778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10779 $as_echo "$ac_try_echo") >&5
10780   (eval "$ac_compile") 2>conftest.er1
10781   ac_status=$?
10782   grep -v '^ *+' conftest.er1 >conftest.err
10783   rm -f conftest.er1
10784   cat conftest.err >&5
10785   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } && {
10787          test -z "$ac_c_werror_flag" ||
10788          test ! -s conftest.err
10789        } && test -s conftest.$ac_objext; then
10790   eval "$as_ac_Header=yes"
10791 else
10792   $as_echo "$as_me: failed program was:" >&5
10793 sed 's/^/| /' conftest.$ac_ext >&5
10794
10795         eval "$as_ac_Header=no"
10796 fi
10797
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 fi
10800 ac_res=`eval 'as_val=${'$as_ac_Header'}
10801                  $as_echo "$as_val"'`
10802                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10803 $as_echo "$ac_res" >&6; }
10804 as_val=`eval 'as_val=${'$as_ac_Header'}
10805                  $as_echo "$as_val"'`
10806    if test "x$as_val" = x""yes; then
10807   cat >>confdefs.h <<_ACEOF
10808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10809 _ACEOF
10810
10811 fi
10812
10813 done
10814
10815
10816 # At least on IRIX, test for netinet/tcp.h will fail unless
10817 # netinet/in.h is included first.
10818
10819 for ac_header in netinet/in.h
10820 do
10821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10823   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 $as_echo_n "checking for $ac_header... " >&6; }
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826   $as_echo_n "(cached) " >&6
10827 fi
10828 ac_res=`eval 'as_val=${'$as_ac_Header'}
10829                  $as_echo "$as_val"'`
10830                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10831 $as_echo "$ac_res" >&6; }
10832 else
10833   # Is the header compilable?
10834 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10835 $as_echo_n "checking $ac_header usability... " >&6; }
10836 cat >conftest.$ac_ext <<_ACEOF
10837 /* confdefs.h.  */
10838 _ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h.  */
10842 $ac_includes_default
10843 #include <$ac_header>
10844 _ACEOF
10845 rm -f conftest.$ac_objext
10846 if { (ac_try="$ac_compile"
10847 case "(($ac_try" in
10848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849   *) ac_try_echo=$ac_try;;
10850 esac
10851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10852 $as_echo "$ac_try_echo") >&5
10853   (eval "$ac_compile") 2>conftest.er1
10854   ac_status=$?
10855   grep -v '^ *+' conftest.er1 >conftest.err
10856   rm -f conftest.er1
10857   cat conftest.err >&5
10858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859   (exit $ac_status); } && {
10860          test -z "$ac_c_werror_flag" ||
10861          test ! -s conftest.err
10862        } && test -s conftest.$ac_objext; then
10863   ac_header_compiler=yes
10864 else
10865   $as_echo "$as_me: failed program was:" >&5
10866 sed 's/^/| /' conftest.$ac_ext >&5
10867
10868         ac_header_compiler=no
10869 fi
10870
10871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10873 $as_echo "$ac_header_compiler" >&6; }
10874
10875 # Is the header present?
10876 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10877 $as_echo_n "checking $ac_header presence... " >&6; }
10878 cat >conftest.$ac_ext <<_ACEOF
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884 #include <$ac_header>
10885 _ACEOF
10886 if { (ac_try="$ac_cpp conftest.$ac_ext"
10887 case "(($ac_try" in
10888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10889   *) ac_try_echo=$ac_try;;
10890 esac
10891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10892 $as_echo "$ac_try_echo") >&5
10893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10894   ac_status=$?
10895   grep -v '^ *+' conftest.er1 >conftest.err
10896   rm -f conftest.er1
10897   cat conftest.err >&5
10898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); } >/dev/null && {
10900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10901          test ! -s conftest.err
10902        }; then
10903   ac_header_preproc=yes
10904 else
10905   $as_echo "$as_me: failed program was:" >&5
10906 sed 's/^/| /' conftest.$ac_ext >&5
10907
10908   ac_header_preproc=no
10909 fi
10910
10911 rm -f conftest.err conftest.$ac_ext
10912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10913 $as_echo "$ac_header_preproc" >&6; }
10914
10915 # So?  What about this header?
10916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10917   yes:no: )
10918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10919 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10921 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10922     ac_header_preproc=yes
10923     ;;
10924   no:yes:* )
10925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10926 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10928 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10930 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10932 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10936 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10937     ( cat <<\_ASBOX
10938 ## ---------------------------------------- ##
10939 ## Report this to pgsql-bugs@postgresql.org ##
10940 ## ---------------------------------------- ##
10941 _ASBOX
10942      ) | sed "s/^/$as_me: WARNING:     /" >&2
10943     ;;
10944 esac
10945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10946 $as_echo_n "checking for $ac_header... " >&6; }
10947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10948   $as_echo_n "(cached) " >&6
10949 else
10950   eval "$as_ac_Header=\$ac_header_preproc"
10951 fi
10952 ac_res=`eval 'as_val=${'$as_ac_Header'}
10953                  $as_echo "$as_val"'`
10954                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10955 $as_echo "$ac_res" >&6; }
10956
10957 fi
10958 as_val=`eval 'as_val=${'$as_ac_Header'}
10959                  $as_echo "$as_val"'`
10960    if test "x$as_val" = x""yes; then
10961   cat >>confdefs.h <<_ACEOF
10962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10963 _ACEOF
10964
10965 fi
10966
10967 done
10968
10969
10970 for ac_header in netinet/tcp.h
10971 do
10972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10973 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10974 $as_echo_n "checking for $ac_header... " >&6; }
10975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10976   $as_echo_n "(cached) " >&6
10977 else
10978   cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h.  */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h.  */
10984 $ac_includes_default
10985 #ifdef HAVE_NETINET_IN_H
10986 #include <netinet/in.h>
10987 #endif
10988
10989
10990 #include <$ac_header>
10991 _ACEOF
10992 rm -f conftest.$ac_objext
10993 if { (ac_try="$ac_compile"
10994 case "(($ac_try" in
10995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996   *) ac_try_echo=$ac_try;;
10997 esac
10998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10999 $as_echo "$ac_try_echo") >&5
11000   (eval "$ac_compile") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } && {
11007          test -z "$ac_c_werror_flag" ||
11008          test ! -s conftest.err
11009        } && test -s conftest.$ac_objext; then
11010   eval "$as_ac_Header=yes"
11011 else
11012   $as_echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11014
11015         eval "$as_ac_Header=no"
11016 fi
11017
11018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11019 fi
11020 ac_res=`eval 'as_val=${'$as_ac_Header'}
11021                  $as_echo "$as_val"'`
11022                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11023 $as_echo "$ac_res" >&6; }
11024 as_val=`eval 'as_val=${'$as_ac_Header'}
11025                  $as_echo "$as_val"'`
11026    if test "x$as_val" = x""yes; then
11027   cat >>confdefs.h <<_ACEOF
11028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11029 _ACEOF
11030
11031 fi
11032
11033 done
11034
11035
11036 if expr x"$pgac_cv_check_readline" : 'x-lreadline' >/dev/null ; then
11037
11038 for ac_header in readline/readline.h
11039 do
11040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11043 $as_echo_n "checking for $ac_header... " >&6; }
11044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11045   $as_echo_n "(cached) " >&6
11046 fi
11047 ac_res=`eval 'as_val=${'$as_ac_Header'}
11048                  $as_echo "$as_val"'`
11049                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11050 $as_echo "$ac_res" >&6; }
11051 else
11052   # Is the header compilable?
11053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11054 $as_echo_n "checking $ac_header usability... " >&6; }
11055 cat >conftest.$ac_ext <<_ACEOF
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061 $ac_includes_default
11062 #include <$ac_header>
11063 _ACEOF
11064 rm -f conftest.$ac_objext
11065 if { (ac_try="$ac_compile"
11066 case "(($ac_try" in
11067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068   *) ac_try_echo=$ac_try;;
11069 esac
11070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11071 $as_echo "$ac_try_echo") >&5
11072   (eval "$ac_compile") 2>conftest.er1
11073   ac_status=$?
11074   grep -v '^ *+' conftest.er1 >conftest.err
11075   rm -f conftest.er1
11076   cat conftest.err >&5
11077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078   (exit $ac_status); } && {
11079          test -z "$ac_c_werror_flag" ||
11080          test ! -s conftest.err
11081        } && test -s conftest.$ac_objext; then
11082   ac_header_compiler=yes
11083 else
11084   $as_echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087         ac_header_compiler=no
11088 fi
11089
11090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11092 $as_echo "$ac_header_compiler" >&6; }
11093
11094 # Is the header present?
11095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11096 $as_echo_n "checking $ac_header presence... " >&6; }
11097 cat >conftest.$ac_ext <<_ACEOF
11098 /* confdefs.h.  */
11099 _ACEOF
11100 cat confdefs.h >>conftest.$ac_ext
11101 cat >>conftest.$ac_ext <<_ACEOF
11102 /* end confdefs.h.  */
11103 #include <$ac_header>
11104 _ACEOF
11105 if { (ac_try="$ac_cpp conftest.$ac_ext"
11106 case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11111 $as_echo "$ac_try_echo") >&5
11112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11113   ac_status=$?
11114   grep -v '^ *+' conftest.er1 >conftest.err
11115   rm -f conftest.er1
11116   cat conftest.err >&5
11117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118   (exit $ac_status); } >/dev/null && {
11119          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11120          test ! -s conftest.err
11121        }; then
11122   ac_header_preproc=yes
11123 else
11124   $as_echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11126
11127   ac_header_preproc=no
11128 fi
11129
11130 rm -f conftest.err conftest.$ac_ext
11131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11132 $as_echo "$ac_header_preproc" >&6; }
11133
11134 # So?  What about this header?
11135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11136   yes:no: )
11137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11141     ac_header_preproc=yes
11142     ;;
11143   no:yes:* )
11144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11146     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11147 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11148     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11150     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11151 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11156     ( cat <<\_ASBOX
11157 ## ---------------------------------------- ##
11158 ## Report this to pgsql-bugs@postgresql.org ##
11159 ## ---------------------------------------- ##
11160 _ASBOX
11161      ) | sed "s/^/$as_me: WARNING:     /" >&2
11162     ;;
11163 esac
11164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11165 $as_echo_n "checking for $ac_header... " >&6; }
11166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11167   $as_echo_n "(cached) " >&6
11168 else
11169   eval "$as_ac_Header=\$ac_header_preproc"
11170 fi
11171 ac_res=`eval 'as_val=${'$as_ac_Header'}
11172                  $as_echo "$as_val"'`
11173                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11174 $as_echo "$ac_res" >&6; }
11175
11176 fi
11177 as_val=`eval 'as_val=${'$as_ac_Header'}
11178                  $as_echo "$as_val"'`
11179    if test "x$as_val" = x""yes; then
11180   cat >>confdefs.h <<_ACEOF
11181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11182 _ACEOF
11183
11184 else
11185
11186 for ac_header in readline.h
11187 do
11188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11190   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11191 $as_echo_n "checking for $ac_header... " >&6; }
11192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193   $as_echo_n "(cached) " >&6
11194 fi
11195 ac_res=`eval 'as_val=${'$as_ac_Header'}
11196                  $as_echo "$as_val"'`
11197                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11198 $as_echo "$ac_res" >&6; }
11199 else
11200   # Is the header compilable?
11201 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11202 $as_echo_n "checking $ac_header usability... " >&6; }
11203 cat >conftest.$ac_ext <<_ACEOF
11204 /* confdefs.h.  */
11205 _ACEOF
11206 cat confdefs.h >>conftest.$ac_ext
11207 cat >>conftest.$ac_ext <<_ACEOF
11208 /* end confdefs.h.  */
11209 $ac_includes_default
11210 #include <$ac_header>
11211 _ACEOF
11212 rm -f conftest.$ac_objext
11213 if { (ac_try="$ac_compile"
11214 case "(($ac_try" in
11215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11216   *) ac_try_echo=$ac_try;;
11217 esac
11218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11219 $as_echo "$ac_try_echo") >&5
11220   (eval "$ac_compile") 2>conftest.er1
11221   ac_status=$?
11222   grep -v '^ *+' conftest.er1 >conftest.err
11223   rm -f conftest.er1
11224   cat conftest.err >&5
11225   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); } && {
11227          test -z "$ac_c_werror_flag" ||
11228          test ! -s conftest.err
11229        } && test -s conftest.$ac_objext; then
11230   ac_header_compiler=yes
11231 else
11232   $as_echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235         ac_header_compiler=no
11236 fi
11237
11238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11239 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11240 $as_echo "$ac_header_compiler" >&6; }
11241
11242 # Is the header present?
11243 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11244 $as_echo_n "checking $ac_header presence... " >&6; }
11245 cat >conftest.$ac_ext <<_ACEOF
11246 /* confdefs.h.  */
11247 _ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h.  */
11251 #include <$ac_header>
11252 _ACEOF
11253 if { (ac_try="$ac_cpp conftest.$ac_ext"
11254 case "(($ac_try" in
11255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256   *) ac_try_echo=$ac_try;;
11257 esac
11258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11259 $as_echo "$ac_try_echo") >&5
11260   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11261   ac_status=$?
11262   grep -v '^ *+' conftest.er1 >conftest.err
11263   rm -f conftest.er1
11264   cat conftest.err >&5
11265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11266   (exit $ac_status); } >/dev/null && {
11267          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11268          test ! -s conftest.err
11269        }; then
11270   ac_header_preproc=yes
11271 else
11272   $as_echo "$as_me: failed program was:" >&5
11273 sed 's/^/| /' conftest.$ac_ext >&5
11274
11275   ac_header_preproc=no
11276 fi
11277
11278 rm -f conftest.err conftest.$ac_ext
11279 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11280 $as_echo "$ac_header_preproc" >&6; }
11281
11282 # So?  What about this header?
11283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11284   yes:no: )
11285     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11287     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11288 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11289     ac_header_preproc=yes
11290     ;;
11291   no:yes:* )
11292     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11293 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11294     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11295 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11296     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11297 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11298     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11299 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11300     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11301 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11302     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11303 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11304     ( cat <<\_ASBOX
11305 ## ---------------------------------------- ##
11306 ## Report this to pgsql-bugs@postgresql.org ##
11307 ## ---------------------------------------- ##
11308 _ASBOX
11309      ) | sed "s/^/$as_me: WARNING:     /" >&2
11310     ;;
11311 esac
11312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11313 $as_echo_n "checking for $ac_header... " >&6; }
11314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11315   $as_echo_n "(cached) " >&6
11316 else
11317   eval "$as_ac_Header=\$ac_header_preproc"
11318 fi
11319 ac_res=`eval 'as_val=${'$as_ac_Header'}
11320                  $as_echo "$as_val"'`
11321                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11322 $as_echo "$ac_res" >&6; }
11323
11324 fi
11325 as_val=`eval 'as_val=${'$as_ac_Header'}
11326                  $as_echo "$as_val"'`
11327    if test "x$as_val" = x""yes; then
11328   cat >>confdefs.h <<_ACEOF
11329 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11330 _ACEOF
11331
11332 else
11333   { { $as_echo "$as_me:$LINENO: error: readline header not found
11334 If you have readline already installed, see config.log for details on the
11335 failure.  It is possible the compiler isn't looking in the proper directory.
11336 Use --without-readline to disable readline support." >&5
11337 $as_echo "$as_me: error: readline header not found
11338 If you have readline already installed, see config.log for details on the
11339 failure.  It is possible the compiler isn't looking in the proper directory.
11340 Use --without-readline to disable readline support." >&2;}
11341    { (exit 1); exit 1; }; }
11342 fi
11343
11344 done
11345
11346 fi
11347
11348 done
11349
11350
11351 for ac_header in readline/history.h
11352 do
11353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11355   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11356 $as_echo_n "checking for $ac_header... " >&6; }
11357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11358   $as_echo_n "(cached) " >&6
11359 fi
11360 ac_res=`eval 'as_val=${'$as_ac_Header'}
11361                  $as_echo "$as_val"'`
11362                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11363 $as_echo "$ac_res" >&6; }
11364 else
11365   # Is the header compilable?
11366 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11367 $as_echo_n "checking $ac_header usability... " >&6; }
11368 cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h.  */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h.  */
11374 $ac_includes_default
11375 #include <$ac_header>
11376 _ACEOF
11377 rm -f conftest.$ac_objext
11378 if { (ac_try="$ac_compile"
11379 case "(($ac_try" in
11380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11381   *) ac_try_echo=$ac_try;;
11382 esac
11383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11384 $as_echo "$ac_try_echo") >&5
11385   (eval "$ac_compile") 2>conftest.er1
11386   ac_status=$?
11387   grep -v '^ *+' conftest.er1 >conftest.err
11388   rm -f conftest.er1
11389   cat conftest.err >&5
11390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391   (exit $ac_status); } && {
11392          test -z "$ac_c_werror_flag" ||
11393          test ! -s conftest.err
11394        } && test -s conftest.$ac_objext; then
11395   ac_header_compiler=yes
11396 else
11397   $as_echo "$as_me: failed program was:" >&5
11398 sed 's/^/| /' conftest.$ac_ext >&5
11399
11400         ac_header_compiler=no
11401 fi
11402
11403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11404 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11405 $as_echo "$ac_header_compiler" >&6; }
11406
11407 # Is the header present?
11408 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11409 $as_echo_n "checking $ac_header presence... " >&6; }
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 #include <$ac_header>
11417 _ACEOF
11418 if { (ac_try="$ac_cpp conftest.$ac_ext"
11419 case "(($ac_try" in
11420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421   *) ac_try_echo=$ac_try;;
11422 esac
11423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11424 $as_echo "$ac_try_echo") >&5
11425   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11426   ac_status=$?
11427   grep -v '^ *+' conftest.er1 >conftest.err
11428   rm -f conftest.er1
11429   cat conftest.err >&5
11430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431   (exit $ac_status); } >/dev/null && {
11432          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11433          test ! -s conftest.err
11434        }; then
11435   ac_header_preproc=yes
11436 else
11437   $as_echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11439
11440   ac_header_preproc=no
11441 fi
11442
11443 rm -f conftest.err conftest.$ac_ext
11444 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11445 $as_echo "$ac_header_preproc" >&6; }
11446
11447 # So?  What about this header?
11448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11449   yes:no: )
11450     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11451 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11452     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11453 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11454     ac_header_preproc=yes
11455     ;;
11456   no:yes:* )
11457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11458 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11460 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11462 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11463     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11464 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11465     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11467     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11468 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11469     ( cat <<\_ASBOX
11470 ## ---------------------------------------- ##
11471 ## Report this to pgsql-bugs@postgresql.org ##
11472 ## ---------------------------------------- ##
11473 _ASBOX
11474      ) | sed "s/^/$as_me: WARNING:     /" >&2
11475     ;;
11476 esac
11477 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11478 $as_echo_n "checking for $ac_header... " >&6; }
11479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480   $as_echo_n "(cached) " >&6
11481 else
11482   eval "$as_ac_Header=\$ac_header_preproc"
11483 fi
11484 ac_res=`eval 'as_val=${'$as_ac_Header'}
11485                  $as_echo "$as_val"'`
11486                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11487 $as_echo "$ac_res" >&6; }
11488
11489 fi
11490 as_val=`eval 'as_val=${'$as_ac_Header'}
11491                  $as_echo "$as_val"'`
11492    if test "x$as_val" = x""yes; then
11493   cat >>confdefs.h <<_ACEOF
11494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11495 _ACEOF
11496
11497 else
11498
11499 for ac_header in history.h
11500 do
11501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11503   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11504 $as_echo_n "checking for $ac_header... " >&6; }
11505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11506   $as_echo_n "(cached) " >&6
11507 fi
11508 ac_res=`eval 'as_val=${'$as_ac_Header'}
11509                  $as_echo "$as_val"'`
11510                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11511 $as_echo "$ac_res" >&6; }
11512 else
11513   # Is the header compilable?
11514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11515 $as_echo_n "checking $ac_header usability... " >&6; }
11516 cat >conftest.$ac_ext <<_ACEOF
11517 /* confdefs.h.  */
11518 _ACEOF
11519 cat confdefs.h >>conftest.$ac_ext
11520 cat >>conftest.$ac_ext <<_ACEOF
11521 /* end confdefs.h.  */
11522 $ac_includes_default
11523 #include <$ac_header>
11524 _ACEOF
11525 rm -f conftest.$ac_objext
11526 if { (ac_try="$ac_compile"
11527 case "(($ac_try" in
11528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529   *) ac_try_echo=$ac_try;;
11530 esac
11531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11532 $as_echo "$ac_try_echo") >&5
11533   (eval "$ac_compile") 2>conftest.er1
11534   ac_status=$?
11535   grep -v '^ *+' conftest.er1 >conftest.err
11536   rm -f conftest.er1
11537   cat conftest.err >&5
11538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); } && {
11540          test -z "$ac_c_werror_flag" ||
11541          test ! -s conftest.err
11542        } && test -s conftest.$ac_objext; then
11543   ac_header_compiler=yes
11544 else
11545   $as_echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11547
11548         ac_header_compiler=no
11549 fi
11550
11551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11553 $as_echo "$ac_header_compiler" >&6; }
11554
11555 # Is the header present?
11556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11557 $as_echo_n "checking $ac_header presence... " >&6; }
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h.  */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h.  */
11564 #include <$ac_header>
11565 _ACEOF
11566 if { (ac_try="$ac_cpp conftest.$ac_ext"
11567 case "(($ac_try" in
11568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11569   *) ac_try_echo=$ac_try;;
11570 esac
11571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11572 $as_echo "$ac_try_echo") >&5
11573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11574   ac_status=$?
11575   grep -v '^ *+' conftest.er1 >conftest.err
11576   rm -f conftest.er1
11577   cat conftest.err >&5
11578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579   (exit $ac_status); } >/dev/null && {
11580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11581          test ! -s conftest.err
11582        }; then
11583   ac_header_preproc=yes
11584 else
11585   $as_echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11587
11588   ac_header_preproc=no
11589 fi
11590
11591 rm -f conftest.err conftest.$ac_ext
11592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11593 $as_echo "$ac_header_preproc" >&6; }
11594
11595 # So?  What about this header?
11596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11597   yes:no: )
11598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11602     ac_header_preproc=yes
11603     ;;
11604   no:yes:* )
11605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11608 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11612 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11615     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11617     ( cat <<\_ASBOX
11618 ## ---------------------------------------- ##
11619 ## Report this to pgsql-bugs@postgresql.org ##
11620 ## ---------------------------------------- ##
11621 _ASBOX
11622      ) | sed "s/^/$as_me: WARNING:     /" >&2
11623     ;;
11624 esac
11625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11626 $as_echo_n "checking for $ac_header... " >&6; }
11627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11628   $as_echo_n "(cached) " >&6
11629 else
11630   eval "$as_ac_Header=\$ac_header_preproc"
11631 fi
11632 ac_res=`eval 'as_val=${'$as_ac_Header'}
11633                  $as_echo "$as_val"'`
11634                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11635 $as_echo "$ac_res" >&6; }
11636
11637 fi
11638 as_val=`eval 'as_val=${'$as_ac_Header'}
11639                  $as_echo "$as_val"'`
11640    if test "x$as_val" = x""yes; then
11641   cat >>confdefs.h <<_ACEOF
11642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 _ACEOF
11644
11645 else
11646   { { $as_echo "$as_me:$LINENO: error: history header not found
11647 If you have readline already installed, see config.log for details on the
11648 failure.  It is possible the compiler isn't looking in the proper directory.
11649 Use --without-readline to disable readline support." >&5
11650 $as_echo "$as_me: error: history header not found
11651 If you have readline already installed, see config.log for details on the
11652 failure.  It is possible the compiler isn't looking in the proper directory.
11653 Use --without-readline to disable readline support." >&2;}
11654    { (exit 1); exit 1; }; }
11655 fi
11656
11657 done
11658
11659 fi
11660
11661 done
11662
11663 fi
11664
11665 if expr x"$pgac_cv_check_readline" : 'x-ledit' >/dev/null ; then
11666 # Some installations of libedit usurp /usr/include/readline/, which seems
11667 # bad practice, since in combined installations readline will have its headers
11668 # there.  We might have to resort to AC_EGREP checks to make sure we found
11669 # the proper header...
11670
11671 for ac_header in editline/readline.h
11672 do
11673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11675   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11676 $as_echo_n "checking for $ac_header... " >&6; }
11677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11678   $as_echo_n "(cached) " >&6
11679 fi
11680 ac_res=`eval 'as_val=${'$as_ac_Header'}
11681                  $as_echo "$as_val"'`
11682                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11683 $as_echo "$ac_res" >&6; }
11684 else
11685   # Is the header compilable?
11686 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11687 $as_echo_n "checking $ac_header usability... " >&6; }
11688 cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 $ac_includes_default
11695 #include <$ac_header>
11696 _ACEOF
11697 rm -f conftest.$ac_objext
11698 if { (ac_try="$ac_compile"
11699 case "(($ac_try" in
11700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11701   *) ac_try_echo=$ac_try;;
11702 esac
11703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11704 $as_echo "$ac_try_echo") >&5
11705   (eval "$ac_compile") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } && {
11712          test -z "$ac_c_werror_flag" ||
11713          test ! -s conftest.err
11714        } && test -s conftest.$ac_objext; then
11715   ac_header_compiler=yes
11716 else
11717   $as_echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720         ac_header_compiler=no
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11724 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11725 $as_echo "$ac_header_compiler" >&6; }
11726
11727 # Is the header present?
11728 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11729 $as_echo_n "checking $ac_header presence... " >&6; }
11730 cat >conftest.$ac_ext <<_ACEOF
11731 /* confdefs.h.  */
11732 _ACEOF
11733 cat confdefs.h >>conftest.$ac_ext
11734 cat >>conftest.$ac_ext <<_ACEOF
11735 /* end confdefs.h.  */
11736 #include <$ac_header>
11737 _ACEOF
11738 if { (ac_try="$ac_cpp conftest.$ac_ext"
11739 case "(($ac_try" in
11740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741   *) ac_try_echo=$ac_try;;
11742 esac
11743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11744 $as_echo "$ac_try_echo") >&5
11745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11746   ac_status=$?
11747   grep -v '^ *+' conftest.er1 >conftest.err
11748   rm -f conftest.er1
11749   cat conftest.err >&5
11750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } >/dev/null && {
11752          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11753          test ! -s conftest.err
11754        }; then
11755   ac_header_preproc=yes
11756 else
11757   $as_echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760   ac_header_preproc=no
11761 fi
11762
11763 rm -f conftest.err conftest.$ac_ext
11764 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11765 $as_echo "$ac_header_preproc" >&6; }
11766
11767 # So?  What about this header?
11768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11769   yes:no: )
11770     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11771 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11772     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11774     ac_header_preproc=yes
11775     ;;
11776   no:yes:* )
11777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11778 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11780 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11781     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11782 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11784 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11788 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11789     ( cat <<\_ASBOX
11790 ## ---------------------------------------- ##
11791 ## Report this to pgsql-bugs@postgresql.org ##
11792 ## ---------------------------------------- ##
11793 _ASBOX
11794      ) | sed "s/^/$as_me: WARNING:     /" >&2
11795     ;;
11796 esac
11797 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 $as_echo_n "checking for $ac_header... " >&6; }
11799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800   $as_echo_n "(cached) " >&6
11801 else
11802   eval "$as_ac_Header=\$ac_header_preproc"
11803 fi
11804 ac_res=`eval 'as_val=${'$as_ac_Header'}
11805                  $as_echo "$as_val"'`
11806                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11807 $as_echo "$ac_res" >&6; }
11808
11809 fi
11810 as_val=`eval 'as_val=${'$as_ac_Header'}
11811                  $as_echo "$as_val"'`
11812    if test "x$as_val" = x""yes; then
11813   cat >>confdefs.h <<_ACEOF
11814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11815 _ACEOF
11816
11817 else
11818
11819 for ac_header in readline.h
11820 do
11821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11823   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11824 $as_echo_n "checking for $ac_header... " >&6; }
11825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11826   $as_echo_n "(cached) " >&6
11827 fi
11828 ac_res=`eval 'as_val=${'$as_ac_Header'}
11829                  $as_echo "$as_val"'`
11830                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11831 $as_echo "$ac_res" >&6; }
11832 else
11833   # Is the header compilable?
11834 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11835 $as_echo_n "checking $ac_header usability... " >&6; }
11836 cat >conftest.$ac_ext <<_ACEOF
11837 /* confdefs.h.  */
11838 _ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h.  */
11842 $ac_includes_default
11843 #include <$ac_header>
11844 _ACEOF
11845 rm -f conftest.$ac_objext
11846 if { (ac_try="$ac_compile"
11847 case "(($ac_try" in
11848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849   *) ac_try_echo=$ac_try;;
11850 esac
11851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11852 $as_echo "$ac_try_echo") >&5
11853   (eval "$ac_compile") 2>conftest.er1
11854   ac_status=$?
11855   grep -v '^ *+' conftest.er1 >conftest.err
11856   rm -f conftest.er1
11857   cat conftest.err >&5
11858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859   (exit $ac_status); } && {
11860          test -z "$ac_c_werror_flag" ||
11861          test ! -s conftest.err
11862        } && test -s conftest.$ac_objext; then
11863   ac_header_compiler=yes
11864 else
11865   $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868         ac_header_compiler=no
11869 fi
11870
11871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11873 $as_echo "$ac_header_compiler" >&6; }
11874
11875 # Is the header present?
11876 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11877 $as_echo_n "checking $ac_header presence... " >&6; }
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h.  */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h.  */
11884 #include <$ac_header>
11885 _ACEOF
11886 if { (ac_try="$ac_cpp conftest.$ac_ext"
11887 case "(($ac_try" in
11888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889   *) ac_try_echo=$ac_try;;
11890 esac
11891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11892 $as_echo "$ac_try_echo") >&5
11893   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11894   ac_status=$?
11895   grep -v '^ *+' conftest.er1 >conftest.err
11896   rm -f conftest.er1
11897   cat conftest.err >&5
11898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899   (exit $ac_status); } >/dev/null && {
11900          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11901          test ! -s conftest.err
11902        }; then
11903   ac_header_preproc=yes
11904 else
11905   $as_echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908   ac_header_preproc=no
11909 fi
11910
11911 rm -f conftest.err conftest.$ac_ext
11912 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11913 $as_echo "$ac_header_preproc" >&6; }
11914
11915 # So?  What about this header?
11916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11917   yes:no: )
11918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11919 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11921 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11922     ac_header_preproc=yes
11923     ;;
11924   no:yes:* )
11925     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11926 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11927     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11928 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11929     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11930 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11931     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11932 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11934 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11936 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11937     ( cat <<\_ASBOX
11938 ## ---------------------------------------- ##
11939 ## Report this to pgsql-bugs@postgresql.org ##
11940 ## ---------------------------------------- ##
11941 _ASBOX
11942      ) | sed "s/^/$as_me: WARNING:     /" >&2
11943     ;;
11944 esac
11945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11946 $as_echo_n "checking for $ac_header... " >&6; }
11947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11948   $as_echo_n "(cached) " >&6
11949 else
11950   eval "$as_ac_Header=\$ac_header_preproc"
11951 fi
11952 ac_res=`eval 'as_val=${'$as_ac_Header'}
11953                  $as_echo "$as_val"'`
11954                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11955 $as_echo "$ac_res" >&6; }
11956
11957 fi
11958 as_val=`eval 'as_val=${'$as_ac_Header'}
11959                  $as_echo "$as_val"'`
11960    if test "x$as_val" = x""yes; then
11961   cat >>confdefs.h <<_ACEOF
11962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11963 _ACEOF
11964
11965 else
11966
11967 for ac_header in readline/readline.h
11968 do
11969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11970 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11971   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11972 $as_echo_n "checking for $ac_header... " >&6; }
11973 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11974   $as_echo_n "(cached) " >&6
11975 fi
11976 ac_res=`eval 'as_val=${'$as_ac_Header'}
11977                  $as_echo "$as_val"'`
11978                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11979 $as_echo "$ac_res" >&6; }
11980 else
11981   # Is the header compilable?
11982 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11983 $as_echo_n "checking $ac_header usability... " >&6; }
11984 cat >conftest.$ac_ext <<_ACEOF
11985 /* confdefs.h.  */
11986 _ACEOF
11987 cat confdefs.h >>conftest.$ac_ext
11988 cat >>conftest.$ac_ext <<_ACEOF
11989 /* end confdefs.h.  */
11990 $ac_includes_default
11991 #include <$ac_header>
11992 _ACEOF
11993 rm -f conftest.$ac_objext
11994 if { (ac_try="$ac_compile"
11995 case "(($ac_try" in
11996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11997   *) ac_try_echo=$ac_try;;
11998 esac
11999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12000 $as_echo "$ac_try_echo") >&5
12001   (eval "$ac_compile") 2>conftest.er1
12002   ac_status=$?
12003   grep -v '^ *+' conftest.er1 >conftest.err
12004   rm -f conftest.er1
12005   cat conftest.err >&5
12006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } && {
12008          test -z "$ac_c_werror_flag" ||
12009          test ! -s conftest.err
12010        } && test -s conftest.$ac_objext; then
12011   ac_header_compiler=yes
12012 else
12013   $as_echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016         ac_header_compiler=no
12017 fi
12018
12019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12020 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12021 $as_echo "$ac_header_compiler" >&6; }
12022
12023 # Is the header present?
12024 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12025 $as_echo_n "checking $ac_header presence... " >&6; }
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h.  */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h.  */
12032 #include <$ac_header>
12033 _ACEOF
12034 if { (ac_try="$ac_cpp conftest.$ac_ext"
12035 case "(($ac_try" in
12036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12037   *) ac_try_echo=$ac_try;;
12038 esac
12039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12040 $as_echo "$ac_try_echo") >&5
12041   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12042   ac_status=$?
12043   grep -v '^ *+' conftest.er1 >conftest.err
12044   rm -f conftest.er1
12045   cat conftest.err >&5
12046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); } >/dev/null && {
12048          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12049          test ! -s conftest.err
12050        }; then
12051   ac_header_preproc=yes
12052 else
12053   $as_echo "$as_me: failed program was:" >&5
12054 sed 's/^/| /' conftest.$ac_ext >&5
12055
12056   ac_header_preproc=no
12057 fi
12058
12059 rm -f conftest.err conftest.$ac_ext
12060 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12061 $as_echo "$ac_header_preproc" >&6; }
12062
12063 # So?  What about this header?
12064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12065   yes:no: )
12066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12067 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12070     ac_header_preproc=yes
12071     ;;
12072   no:yes:* )
12073     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12074 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12075     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12076 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12077     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12078 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12080 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12083     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12084 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12085     ( cat <<\_ASBOX
12086 ## ---------------------------------------- ##
12087 ## Report this to pgsql-bugs@postgresql.org ##
12088 ## ---------------------------------------- ##
12089 _ASBOX
12090      ) | sed "s/^/$as_me: WARNING:     /" >&2
12091     ;;
12092 esac
12093 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12094 $as_echo_n "checking for $ac_header... " >&6; }
12095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096   $as_echo_n "(cached) " >&6
12097 else
12098   eval "$as_ac_Header=\$ac_header_preproc"
12099 fi
12100 ac_res=`eval 'as_val=${'$as_ac_Header'}
12101                  $as_echo "$as_val"'`
12102                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12103 $as_echo "$ac_res" >&6; }
12104
12105 fi
12106 as_val=`eval 'as_val=${'$as_ac_Header'}
12107                  $as_echo "$as_val"'`
12108    if test "x$as_val" = x""yes; then
12109   cat >>confdefs.h <<_ACEOF
12110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12111 _ACEOF
12112
12113 else
12114   { { $as_echo "$as_me:$LINENO: error: readline header not found
12115 If you have libedit already installed, see config.log for details on the
12116 failure.  It is possible the compiler isn't looking in the proper directory.
12117 Use --without-readline to disable libedit support." >&5
12118 $as_echo "$as_me: error: readline header not found
12119 If you have libedit already installed, see config.log for details on the
12120 failure.  It is possible the compiler isn't looking in the proper directory.
12121 Use --without-readline to disable libedit support." >&2;}
12122    { (exit 1); exit 1; }; }
12123 fi
12124
12125 done
12126
12127 fi
12128
12129 done
12130
12131 fi
12132
12133 done
12134
12135 # Note: in a libedit installation, history.h is sometimes a dummy, and may
12136 # not be there at all.  Hence, don't complain if not found.  We must check
12137 # though, since in yet other versions it is an independent header.
12138
12139 for ac_header in editline/history.h
12140 do
12141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12143   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12144 $as_echo_n "checking for $ac_header... " >&6; }
12145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12146   $as_echo_n "(cached) " >&6
12147 fi
12148 ac_res=`eval 'as_val=${'$as_ac_Header'}
12149                  $as_echo "$as_val"'`
12150                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12151 $as_echo "$ac_res" >&6; }
12152 else
12153   # Is the header compilable?
12154 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12155 $as_echo_n "checking $ac_header usability... " >&6; }
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12162 $ac_includes_default
12163 #include <$ac_header>
12164 _ACEOF
12165 rm -f conftest.$ac_objext
12166 if { (ac_try="$ac_compile"
12167 case "(($ac_try" in
12168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12169   *) ac_try_echo=$ac_try;;
12170 esac
12171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12172 $as_echo "$ac_try_echo") >&5
12173   (eval "$ac_compile") 2>conftest.er1
12174   ac_status=$?
12175   grep -v '^ *+' conftest.er1 >conftest.err
12176   rm -f conftest.er1
12177   cat conftest.err >&5
12178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); } && {
12180          test -z "$ac_c_werror_flag" ||
12181          test ! -s conftest.err
12182        } && test -s conftest.$ac_objext; then
12183   ac_header_compiler=yes
12184 else
12185   $as_echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         ac_header_compiler=no
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 $as_echo "$ac_header_compiler" >&6; }
12194
12195 # Is the header present?
12196 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197 $as_echo_n "checking $ac_header presence... " >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 #include <$ac_header>
12205 _ACEOF
12206 if { (ac_try="$ac_cpp conftest.$ac_ext"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12212 $as_echo "$ac_try_echo") >&5
12213   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } >/dev/null && {
12220          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12221          test ! -s conftest.err
12222        }; then
12223   ac_header_preproc=yes
12224 else
12225   $as_echo "$as_me: failed program was:" >&5
12226 sed 's/^/| /' conftest.$ac_ext >&5
12227
12228   ac_header_preproc=no
12229 fi
12230
12231 rm -f conftest.err conftest.$ac_ext
12232 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12233 $as_echo "$ac_header_preproc" >&6; }
12234
12235 # So?  What about this header?
12236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12237   yes:no: )
12238     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12239 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12241 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12242     ac_header_preproc=yes
12243     ;;
12244   no:yes:* )
12245     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12246 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12247     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12248 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12249     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12250 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12251     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12252 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12253     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12255     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12257     ( cat <<\_ASBOX
12258 ## ---------------------------------------- ##
12259 ## Report this to pgsql-bugs@postgresql.org ##
12260 ## ---------------------------------------- ##
12261 _ASBOX
12262      ) | sed "s/^/$as_me: WARNING:     /" >&2
12263     ;;
12264 esac
12265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12266 $as_echo_n "checking for $ac_header... " >&6; }
12267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12268   $as_echo_n "(cached) " >&6
12269 else
12270   eval "$as_ac_Header=\$ac_header_preproc"
12271 fi
12272 ac_res=`eval 'as_val=${'$as_ac_Header'}
12273                  $as_echo "$as_val"'`
12274                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12275 $as_echo "$ac_res" >&6; }
12276
12277 fi
12278 as_val=`eval 'as_val=${'$as_ac_Header'}
12279                  $as_echo "$as_val"'`
12280    if test "x$as_val" = x""yes; then
12281   cat >>confdefs.h <<_ACEOF
12282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12283 _ACEOF
12284
12285 else
12286
12287 for ac_header in history.h
12288 do
12289 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12291   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12292 $as_echo_n "checking for $ac_header... " >&6; }
12293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12294   $as_echo_n "(cached) " >&6
12295 fi
12296 ac_res=`eval 'as_val=${'$as_ac_Header'}
12297                  $as_echo "$as_val"'`
12298                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12299 $as_echo "$ac_res" >&6; }
12300 else
12301   # Is the header compilable?
12302 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12303 $as_echo_n "checking $ac_header usability... " >&6; }
12304 cat >conftest.$ac_ext <<_ACEOF
12305 /* confdefs.h.  */
12306 _ACEOF
12307 cat confdefs.h >>conftest.$ac_ext
12308 cat >>conftest.$ac_ext <<_ACEOF
12309 /* end confdefs.h.  */
12310 $ac_includes_default
12311 #include <$ac_header>
12312 _ACEOF
12313 rm -f conftest.$ac_objext
12314 if { (ac_try="$ac_compile"
12315 case "(($ac_try" in
12316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12317   *) ac_try_echo=$ac_try;;
12318 esac
12319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12320 $as_echo "$ac_try_echo") >&5
12321   (eval "$ac_compile") 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } && {
12328          test -z "$ac_c_werror_flag" ||
12329          test ! -s conftest.err
12330        } && test -s conftest.$ac_objext; then
12331   ac_header_compiler=yes
12332 else
12333   $as_echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12335
12336         ac_header_compiler=no
12337 fi
12338
12339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12340 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12341 $as_echo "$ac_header_compiler" >&6; }
12342
12343 # Is the header present?
12344 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12345 $as_echo_n "checking $ac_header presence... " >&6; }
12346 cat >conftest.$ac_ext <<_ACEOF
12347 /* confdefs.h.  */
12348 _ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h.  */
12352 #include <$ac_header>
12353 _ACEOF
12354 if { (ac_try="$ac_cpp conftest.$ac_ext"
12355 case "(($ac_try" in
12356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12357   *) ac_try_echo=$ac_try;;
12358 esac
12359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12360 $as_echo "$ac_try_echo") >&5
12361   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12362   ac_status=$?
12363   grep -v '^ *+' conftest.er1 >conftest.err
12364   rm -f conftest.er1
12365   cat conftest.err >&5
12366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367   (exit $ac_status); } >/dev/null && {
12368          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12369          test ! -s conftest.err
12370        }; then
12371   ac_header_preproc=yes
12372 else
12373   $as_echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375
12376   ac_header_preproc=no
12377 fi
12378
12379 rm -f conftest.err conftest.$ac_ext
12380 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12381 $as_echo "$ac_header_preproc" >&6; }
12382
12383 # So?  What about this header?
12384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12385   yes:no: )
12386     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12387 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12388     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12389 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12390     ac_header_preproc=yes
12391     ;;
12392   no:yes:* )
12393     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12394 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12395     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12396 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12397     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12398 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12400 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12401     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12402 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12403     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12404 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12405     ( cat <<\_ASBOX
12406 ## ---------------------------------------- ##
12407 ## Report this to pgsql-bugs@postgresql.org ##
12408 ## ---------------------------------------- ##
12409 _ASBOX
12410      ) | sed "s/^/$as_me: WARNING:     /" >&2
12411     ;;
12412 esac
12413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12414 $as_echo_n "checking for $ac_header... " >&6; }
12415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12416   $as_echo_n "(cached) " >&6
12417 else
12418   eval "$as_ac_Header=\$ac_header_preproc"
12419 fi
12420 ac_res=`eval 'as_val=${'$as_ac_Header'}
12421                  $as_echo "$as_val"'`
12422                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12423 $as_echo "$ac_res" >&6; }
12424
12425 fi
12426 as_val=`eval 'as_val=${'$as_ac_Header'}
12427                  $as_echo "$as_val"'`
12428    if test "x$as_val" = x""yes; then
12429   cat >>confdefs.h <<_ACEOF
12430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12431 _ACEOF
12432
12433 else
12434
12435 for ac_header in readline/history.h
12436 do
12437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12439   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12440 $as_echo_n "checking for $ac_header... " >&6; }
12441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12442   $as_echo_n "(cached) " >&6
12443 fi
12444 ac_res=`eval 'as_val=${'$as_ac_Header'}
12445                  $as_echo "$as_val"'`
12446                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12447 $as_echo "$ac_res" >&6; }
12448 else
12449   # Is the header compilable?
12450 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12451 $as_echo_n "checking $ac_header usability... " >&6; }
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458 $ac_includes_default
12459 #include <$ac_header>
12460 _ACEOF
12461 rm -f conftest.$ac_objext
12462 if { (ac_try="$ac_compile"
12463 case "(($ac_try" in
12464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465   *) ac_try_echo=$ac_try;;
12466 esac
12467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12468 $as_echo "$ac_try_echo") >&5
12469   (eval "$ac_compile") 2>conftest.er1
12470   ac_status=$?
12471   grep -v '^ *+' conftest.er1 >conftest.err
12472   rm -f conftest.er1
12473   cat conftest.err >&5
12474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475   (exit $ac_status); } && {
12476          test -z "$ac_c_werror_flag" ||
12477          test ! -s conftest.err
12478        } && test -s conftest.$ac_objext; then
12479   ac_header_compiler=yes
12480 else
12481   $as_echo "$as_me: failed program was:" >&5
12482 sed 's/^/| /' conftest.$ac_ext >&5
12483
12484         ac_header_compiler=no
12485 fi
12486
12487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12489 $as_echo "$ac_header_compiler" >&6; }
12490
12491 # Is the header present?
12492 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12493 $as_echo_n "checking $ac_header presence... " >&6; }
12494 cat >conftest.$ac_ext <<_ACEOF
12495 /* confdefs.h.  */
12496 _ACEOF
12497 cat confdefs.h >>conftest.$ac_ext
12498 cat >>conftest.$ac_ext <<_ACEOF
12499 /* end confdefs.h.  */
12500 #include <$ac_header>
12501 _ACEOF
12502 if { (ac_try="$ac_cpp conftest.$ac_ext"
12503 case "(($ac_try" in
12504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12505   *) ac_try_echo=$ac_try;;
12506 esac
12507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12508 $as_echo "$ac_try_echo") >&5
12509   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12510   ac_status=$?
12511   grep -v '^ *+' conftest.er1 >conftest.err
12512   rm -f conftest.er1
12513   cat conftest.err >&5
12514   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } >/dev/null && {
12516          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12517          test ! -s conftest.err
12518        }; then
12519   ac_header_preproc=yes
12520 else
12521   $as_echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12523
12524   ac_header_preproc=no
12525 fi
12526
12527 rm -f conftest.err conftest.$ac_ext
12528 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12529 $as_echo "$ac_header_preproc" >&6; }
12530
12531 # So?  What about this header?
12532 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12533   yes:no: )
12534     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12535 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12536     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12538     ac_header_preproc=yes
12539     ;;
12540   no:yes:* )
12541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12542 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12543     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12544 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12545     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12546 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12547     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12548 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12549     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12550 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12552 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12553     ( cat <<\_ASBOX
12554 ## ---------------------------------------- ##
12555 ## Report this to pgsql-bugs@postgresql.org ##
12556 ## ---------------------------------------- ##
12557 _ASBOX
12558      ) | sed "s/^/$as_me: WARNING:     /" >&2
12559     ;;
12560 esac
12561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12562 $as_echo_n "checking for $ac_header... " >&6; }
12563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12564   $as_echo_n "(cached) " >&6
12565 else
12566   eval "$as_ac_Header=\$ac_header_preproc"
12567 fi
12568 ac_res=`eval 'as_val=${'$as_ac_Header'}
12569                  $as_echo "$as_val"'`
12570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12571 $as_echo "$ac_res" >&6; }
12572
12573 fi
12574 as_val=`eval 'as_val=${'$as_ac_Header'}
12575                  $as_echo "$as_val"'`
12576    if test "x$as_val" = x""yes; then
12577   cat >>confdefs.h <<_ACEOF
12578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12579 _ACEOF
12580
12581 fi
12582
12583 done
12584
12585 fi
12586
12587 done
12588
12589 fi
12590
12591 done
12592
12593 fi
12594
12595 if test "$with_zlib" = yes; then
12596   if test "${ac_cv_header_zlib_h+set}" = set; then
12597   { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12598 $as_echo_n "checking for zlib.h... " >&6; }
12599 if test "${ac_cv_header_zlib_h+set}" = set; then
12600   $as_echo_n "(cached) " >&6
12601 fi
12602 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12603 $as_echo "$ac_cv_header_zlib_h" >&6; }
12604 else
12605   # Is the header compilable?
12606 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
12607 $as_echo_n "checking zlib.h usability... " >&6; }
12608 cat >conftest.$ac_ext <<_ACEOF
12609 /* confdefs.h.  */
12610 _ACEOF
12611 cat confdefs.h >>conftest.$ac_ext
12612 cat >>conftest.$ac_ext <<_ACEOF
12613 /* end confdefs.h.  */
12614 $ac_includes_default
12615 #include <zlib.h>
12616 _ACEOF
12617 rm -f conftest.$ac_objext
12618 if { (ac_try="$ac_compile"
12619 case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12624 $as_echo "$ac_try_echo") >&5
12625   (eval "$ac_compile") 2>conftest.er1
12626   ac_status=$?
12627   grep -v '^ *+' conftest.er1 >conftest.err
12628   rm -f conftest.er1
12629   cat conftest.err >&5
12630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } && {
12632          test -z "$ac_c_werror_flag" ||
12633          test ! -s conftest.err
12634        } && test -s conftest.$ac_objext; then
12635   ac_header_compiler=yes
12636 else
12637   $as_echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640         ac_header_compiler=no
12641 fi
12642
12643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12645 $as_echo "$ac_header_compiler" >&6; }
12646
12647 # Is the header present?
12648 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
12649 $as_echo_n "checking zlib.h presence... " >&6; }
12650 cat >conftest.$ac_ext <<_ACEOF
12651 /* confdefs.h.  */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h.  */
12656 #include <zlib.h>
12657 _ACEOF
12658 if { (ac_try="$ac_cpp conftest.$ac_ext"
12659 case "(($ac_try" in
12660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661   *) ac_try_echo=$ac_try;;
12662 esac
12663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12664 $as_echo "$ac_try_echo") >&5
12665   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12666   ac_status=$?
12667   grep -v '^ *+' conftest.er1 >conftest.err
12668   rm -f conftest.er1
12669   cat conftest.err >&5
12670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671   (exit $ac_status); } >/dev/null && {
12672          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12673          test ! -s conftest.err
12674        }; then
12675   ac_header_preproc=yes
12676 else
12677   $as_echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12679
12680   ac_header_preproc=no
12681 fi
12682
12683 rm -f conftest.err conftest.$ac_ext
12684 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12685 $as_echo "$ac_header_preproc" >&6; }
12686
12687 # So?  What about this header?
12688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12689   yes:no: )
12690     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
12691 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12692     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
12693 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
12694     ac_header_preproc=yes
12695     ;;
12696   no:yes:* )
12697     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
12698 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
12699     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     check for missing prerequisite headers?" >&5
12700 $as_echo "$as_me: WARNING: zlib.h:     check for missing prerequisite headers?" >&2;}
12701     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
12702 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
12703     { $as_echo "$as_me:$LINENO: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&5
12704 $as_echo "$as_me: WARNING: zlib.h:     section \"Present But Cannot Be Compiled\"" >&2;}
12705     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
12706 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
12707     { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
12708 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
12709     ( cat <<\_ASBOX
12710 ## ---------------------------------------- ##
12711 ## Report this to pgsql-bugs@postgresql.org ##
12712 ## ---------------------------------------- ##
12713 _ASBOX
12714      ) | sed "s/^/$as_me: WARNING:     /" >&2
12715     ;;
12716 esac
12717 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
12718 $as_echo_n "checking for zlib.h... " >&6; }
12719 if test "${ac_cv_header_zlib_h+set}" = set; then
12720   $as_echo_n "(cached) " >&6
12721 else
12722   ac_cv_header_zlib_h=$ac_header_preproc
12723 fi
12724 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12725 $as_echo "$ac_cv_header_zlib_h" >&6; }
12726
12727 fi
12728 if test "x$ac_cv_header_zlib_h" = x""yes; then
12729   :
12730 else
12731   { { $as_echo "$as_me:$LINENO: error: zlib header not found
12732 If you have zlib already installed, see config.log for details on the
12733 failure.  It is possible the compiler isn't looking in the proper directory.
12734 Use --without-zlib to disable zlib support." >&5
12735 $as_echo "$as_me: error: zlib header not found
12736 If you have zlib already installed, see config.log for details on the
12737 failure.  It is possible the compiler isn't looking in the proper directory.
12738 Use --without-zlib to disable zlib support." >&2;}
12739    { (exit 1); exit 1; }; }
12740 fi
12741
12742
12743 fi
12744
12745 if test "$with_gssapi" = yes ; then
12746
12747 for ac_header in gssapi/gssapi.h
12748 do
12749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12751   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12752 $as_echo_n "checking for $ac_header... " >&6; }
12753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12754   $as_echo_n "(cached) " >&6
12755 fi
12756 ac_res=`eval 'as_val=${'$as_ac_Header'}
12757                  $as_echo "$as_val"'`
12758                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12759 $as_echo "$ac_res" >&6; }
12760 else
12761   # Is the header compilable?
12762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12763 $as_echo_n "checking $ac_header usability... " >&6; }
12764 cat >conftest.$ac_ext <<_ACEOF
12765 /* confdefs.h.  */
12766 _ACEOF
12767 cat confdefs.h >>conftest.$ac_ext
12768 cat >>conftest.$ac_ext <<_ACEOF
12769 /* end confdefs.h.  */
12770 $ac_includes_default
12771 #include <$ac_header>
12772 _ACEOF
12773 rm -f conftest.$ac_objext
12774 if { (ac_try="$ac_compile"
12775 case "(($ac_try" in
12776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777   *) ac_try_echo=$ac_try;;
12778 esac
12779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12780 $as_echo "$ac_try_echo") >&5
12781   (eval "$ac_compile") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } && {
12788          test -z "$ac_c_werror_flag" ||
12789          test ! -s conftest.err
12790        } && test -s conftest.$ac_objext; then
12791   ac_header_compiler=yes
12792 else
12793   $as_echo "$as_me: failed program was:" >&5
12794 sed 's/^/| /' conftest.$ac_ext >&5
12795
12796         ac_header_compiler=no
12797 fi
12798
12799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12801 $as_echo "$ac_header_compiler" >&6; }
12802
12803 # Is the header present?
12804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12805 $as_echo_n "checking $ac_header presence... " >&6; }
12806 cat >conftest.$ac_ext <<_ACEOF
12807 /* confdefs.h.  */
12808 _ACEOF
12809 cat confdefs.h >>conftest.$ac_ext
12810 cat >>conftest.$ac_ext <<_ACEOF
12811 /* end confdefs.h.  */
12812 #include <$ac_header>
12813 _ACEOF
12814 if { (ac_try="$ac_cpp conftest.$ac_ext"
12815 case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12820 $as_echo "$ac_try_echo") >&5
12821   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12822   ac_status=$?
12823   grep -v '^ *+' conftest.er1 >conftest.err
12824   rm -f conftest.er1
12825   cat conftest.err >&5
12826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827   (exit $ac_status); } >/dev/null && {
12828          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12829          test ! -s conftest.err
12830        }; then
12831   ac_header_preproc=yes
12832 else
12833   $as_echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836   ac_header_preproc=no
12837 fi
12838
12839 rm -f conftest.err conftest.$ac_ext
12840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12841 $as_echo "$ac_header_preproc" >&6; }
12842
12843 # So?  What about this header?
12844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12845   yes:no: )
12846     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12848     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12850     ac_header_preproc=yes
12851     ;;
12852   no:yes:* )
12853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12856 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12860 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12863     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12865     ( cat <<\_ASBOX
12866 ## ---------------------------------------- ##
12867 ## Report this to pgsql-bugs@postgresql.org ##
12868 ## ---------------------------------------- ##
12869 _ASBOX
12870      ) | sed "s/^/$as_me: WARNING:     /" >&2
12871     ;;
12872 esac
12873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12874 $as_echo_n "checking for $ac_header... " >&6; }
12875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12876   $as_echo_n "(cached) " >&6
12877 else
12878   eval "$as_ac_Header=\$ac_header_preproc"
12879 fi
12880 ac_res=`eval 'as_val=${'$as_ac_Header'}
12881                  $as_echo "$as_val"'`
12882                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12883 $as_echo "$ac_res" >&6; }
12884
12885 fi
12886 as_val=`eval 'as_val=${'$as_ac_Header'}
12887                  $as_echo "$as_val"'`
12888    if test "x$as_val" = x""yes; then
12889   cat >>confdefs.h <<_ACEOF
12890 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12891 _ACEOF
12892
12893 else
12894
12895 for ac_header in gssapi.h
12896 do
12897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12899   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12900 $as_echo_n "checking for $ac_header... " >&6; }
12901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12902   $as_echo_n "(cached) " >&6
12903 fi
12904 ac_res=`eval 'as_val=${'$as_ac_Header'}
12905                  $as_echo "$as_val"'`
12906                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12907 $as_echo "$ac_res" >&6; }
12908 else
12909   # Is the header compilable?
12910 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12911 $as_echo_n "checking $ac_header usability... " >&6; }
12912 cat >conftest.$ac_ext <<_ACEOF
12913 /* confdefs.h.  */
12914 _ACEOF
12915 cat confdefs.h >>conftest.$ac_ext
12916 cat >>conftest.$ac_ext <<_ACEOF
12917 /* end confdefs.h.  */
12918 $ac_includes_default
12919 #include <$ac_header>
12920 _ACEOF
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925   *) ac_try_echo=$ac_try;;
12926 esac
12927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12928 $as_echo "$ac_try_echo") >&5
12929   (eval "$ac_compile") 2>conftest.er1
12930   ac_status=$?
12931   grep -v '^ *+' conftest.er1 >conftest.err
12932   rm -f conftest.er1
12933   cat conftest.err >&5
12934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935   (exit $ac_status); } && {
12936          test -z "$ac_c_werror_flag" ||
12937          test ! -s conftest.err
12938        } && test -s conftest.$ac_objext; then
12939   ac_header_compiler=yes
12940 else
12941   $as_echo "$as_me: failed program was:" >&5
12942 sed 's/^/| /' conftest.$ac_ext >&5
12943
12944         ac_header_compiler=no
12945 fi
12946
12947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12949 $as_echo "$ac_header_compiler" >&6; }
12950
12951 # Is the header present?
12952 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12953 $as_echo_n "checking $ac_header presence... " >&6; }
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h.  */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h.  */
12960 #include <$ac_header>
12961 _ACEOF
12962 if { (ac_try="$ac_cpp conftest.$ac_ext"
12963 case "(($ac_try" in
12964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965   *) ac_try_echo=$ac_try;;
12966 esac
12967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12968 $as_echo "$ac_try_echo") >&5
12969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12970   ac_status=$?
12971   grep -v '^ *+' conftest.er1 >conftest.err
12972   rm -f conftest.er1
12973   cat conftest.err >&5
12974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12975   (exit $ac_status); } >/dev/null && {
12976          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12977          test ! -s conftest.err
12978        }; then
12979   ac_header_preproc=yes
12980 else
12981   $as_echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12983
12984   ac_header_preproc=no
12985 fi
12986
12987 rm -f conftest.err conftest.$ac_ext
12988 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12989 $as_echo "$ac_header_preproc" >&6; }
12990
12991 # So?  What about this header?
12992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12993   yes:no: )
12994     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12995 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12996     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12997 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12998     ac_header_preproc=yes
12999     ;;
13000   no:yes:* )
13001     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13002 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13003     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13004 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13005     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13006 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13007     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13008 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13009     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13010 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13011     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13012 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13013     ( cat <<\_ASBOX
13014 ## ---------------------------------------- ##
13015 ## Report this to pgsql-bugs@postgresql.org ##
13016 ## ---------------------------------------- ##
13017 _ASBOX
13018      ) | sed "s/^/$as_me: WARNING:     /" >&2
13019     ;;
13020 esac
13021 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13022 $as_echo_n "checking for $ac_header... " >&6; }
13023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13024   $as_echo_n "(cached) " >&6
13025 else
13026   eval "$as_ac_Header=\$ac_header_preproc"
13027 fi
13028 ac_res=`eval 'as_val=${'$as_ac_Header'}
13029                  $as_echo "$as_val"'`
13030                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13031 $as_echo "$ac_res" >&6; }
13032
13033 fi
13034 as_val=`eval 'as_val=${'$as_ac_Header'}
13035                  $as_echo "$as_val"'`
13036    if test "x$as_val" = x""yes; then
13037   cat >>confdefs.h <<_ACEOF
13038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13039 _ACEOF
13040
13041 else
13042   { { $as_echo "$as_me:$LINENO: error: gssapi.h header file is required for GSSAPI" >&5
13043 $as_echo "$as_me: error: gssapi.h header file is required for GSSAPI" >&2;}
13044    { (exit 1); exit 1; }; }
13045 fi
13046
13047 done
13048
13049 fi
13050
13051 done
13052
13053 fi
13054
13055 if test "$with_krb5" = yes ; then
13056   if test "${ac_cv_header_krb5_h+set}" = set; then
13057   { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13058 $as_echo_n "checking for krb5.h... " >&6; }
13059 if test "${ac_cv_header_krb5_h+set}" = set; then
13060   $as_echo_n "(cached) " >&6
13061 fi
13062 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13063 $as_echo "$ac_cv_header_krb5_h" >&6; }
13064 else
13065   # Is the header compilable?
13066 { $as_echo "$as_me:$LINENO: checking krb5.h usability" >&5
13067 $as_echo_n "checking krb5.h usability... " >&6; }
13068 cat >conftest.$ac_ext <<_ACEOF
13069 /* confdefs.h.  */
13070 _ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h.  */
13074 $ac_includes_default
13075 #include <krb5.h>
13076 _ACEOF
13077 rm -f conftest.$ac_objext
13078 if { (ac_try="$ac_compile"
13079 case "(($ac_try" in
13080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13081   *) ac_try_echo=$ac_try;;
13082 esac
13083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13084 $as_echo "$ac_try_echo") >&5
13085   (eval "$ac_compile") 2>conftest.er1
13086   ac_status=$?
13087   grep -v '^ *+' conftest.er1 >conftest.err
13088   rm -f conftest.er1
13089   cat conftest.err >&5
13090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } && {
13092          test -z "$ac_c_werror_flag" ||
13093          test ! -s conftest.err
13094        } && test -s conftest.$ac_objext; then
13095   ac_header_compiler=yes
13096 else
13097   $as_echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100         ac_header_compiler=no
13101 fi
13102
13103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13104 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13105 $as_echo "$ac_header_compiler" >&6; }
13106
13107 # Is the header present?
13108 { $as_echo "$as_me:$LINENO: checking krb5.h presence" >&5
13109 $as_echo_n "checking krb5.h presence... " >&6; }
13110 cat >conftest.$ac_ext <<_ACEOF
13111 /* confdefs.h.  */
13112 _ACEOF
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h.  */
13116 #include <krb5.h>
13117 _ACEOF
13118 if { (ac_try="$ac_cpp conftest.$ac_ext"
13119 case "(($ac_try" in
13120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121   *) ac_try_echo=$ac_try;;
13122 esac
13123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13124 $as_echo "$ac_try_echo") >&5
13125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13126   ac_status=$?
13127   grep -v '^ *+' conftest.er1 >conftest.err
13128   rm -f conftest.er1
13129   cat conftest.err >&5
13130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131   (exit $ac_status); } >/dev/null && {
13132          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13133          test ! -s conftest.err
13134        }; then
13135   ac_header_preproc=yes
13136 else
13137   $as_echo "$as_me: failed program was:" >&5
13138 sed 's/^/| /' conftest.$ac_ext >&5
13139
13140   ac_header_preproc=no
13141 fi
13142
13143 rm -f conftest.err conftest.$ac_ext
13144 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13145 $as_echo "$ac_header_preproc" >&6; }
13146
13147 # So?  What about this header?
13148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13149   yes:no: )
13150     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&5
13151 $as_echo "$as_me: WARNING: krb5.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13152     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the compiler's result" >&5
13153 $as_echo "$as_me: WARNING: krb5.h: proceeding with the compiler's result" >&2;}
13154     ac_header_preproc=yes
13155     ;;
13156   no:yes:* )
13157     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: present but cannot be compiled" >&5
13158 $as_echo "$as_me: WARNING: krb5.h: present but cannot be compiled" >&2;}
13159     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     check for missing prerequisite headers?" >&5
13160 $as_echo "$as_me: WARNING: krb5.h:     check for missing prerequisite headers?" >&2;}
13161     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: see the Autoconf documentation" >&5
13162 $as_echo "$as_me: WARNING: krb5.h: see the Autoconf documentation" >&2;}
13163     { $as_echo "$as_me:$LINENO: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&5
13164 $as_echo "$as_me: WARNING: krb5.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13165     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: proceeding with the preprocessor's result" >&5
13166 $as_echo "$as_me: WARNING: krb5.h: proceeding with the preprocessor's result" >&2;}
13167     { $as_echo "$as_me:$LINENO: WARNING: krb5.h: in the future, the compiler will take precedence" >&5
13168 $as_echo "$as_me: WARNING: krb5.h: in the future, the compiler will take precedence" >&2;}
13169     ( cat <<\_ASBOX
13170 ## ---------------------------------------- ##
13171 ## Report this to pgsql-bugs@postgresql.org ##
13172 ## ---------------------------------------- ##
13173 _ASBOX
13174      ) | sed "s/^/$as_me: WARNING:     /" >&2
13175     ;;
13176 esac
13177 { $as_echo "$as_me:$LINENO: checking for krb5.h" >&5
13178 $as_echo_n "checking for krb5.h... " >&6; }
13179 if test "${ac_cv_header_krb5_h+set}" = set; then
13180   $as_echo_n "(cached) " >&6
13181 else
13182   ac_cv_header_krb5_h=$ac_header_preproc
13183 fi
13184 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_krb5_h" >&5
13185 $as_echo "$ac_cv_header_krb5_h" >&6; }
13186
13187 fi
13188 if test "x$ac_cv_header_krb5_h" = x""yes; then
13189   :
13190 else
13191   { { $as_echo "$as_me:$LINENO: error: header file <krb5.h> is required for Kerberos 5" >&5
13192 $as_echo "$as_me: error: header file <krb5.h> is required for Kerberos 5" >&2;}
13193    { (exit 1); exit 1; }; }
13194 fi
13195
13196
13197 fi
13198
13199 if test "$with_openssl" = yes ; then
13200   if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13201   { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13202 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13203 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13204   $as_echo_n "(cached) " >&6
13205 fi
13206 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13207 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13208 else
13209   # Is the header compilable?
13210 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h usability" >&5
13211 $as_echo_n "checking openssl/ssl.h usability... " >&6; }
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 $ac_includes_default
13219 #include <openssl/ssl.h>
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (ac_try="$ac_compile"
13223 case "(($ac_try" in
13224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225   *) ac_try_echo=$ac_try;;
13226 esac
13227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13228 $as_echo "$ac_try_echo") >&5
13229   (eval "$ac_compile") 2>conftest.er1
13230   ac_status=$?
13231   grep -v '^ *+' conftest.er1 >conftest.err
13232   rm -f conftest.er1
13233   cat conftest.err >&5
13234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } && {
13236          test -z "$ac_c_werror_flag" ||
13237          test ! -s conftest.err
13238        } && test -s conftest.$ac_objext; then
13239   ac_header_compiler=yes
13240 else
13241   $as_echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244         ac_header_compiler=no
13245 fi
13246
13247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13249 $as_echo "$ac_header_compiler" >&6; }
13250
13251 # Is the header present?
13252 { $as_echo "$as_me:$LINENO: checking openssl/ssl.h presence" >&5
13253 $as_echo_n "checking openssl/ssl.h presence... " >&6; }
13254 cat >conftest.$ac_ext <<_ACEOF
13255 /* confdefs.h.  */
13256 _ACEOF
13257 cat confdefs.h >>conftest.$ac_ext
13258 cat >>conftest.$ac_ext <<_ACEOF
13259 /* end confdefs.h.  */
13260 #include <openssl/ssl.h>
13261 _ACEOF
13262 if { (ac_try="$ac_cpp conftest.$ac_ext"
13263 case "(($ac_try" in
13264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265   *) ac_try_echo=$ac_try;;
13266 esac
13267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13268 $as_echo "$ac_try_echo") >&5
13269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13270   ac_status=$?
13271   grep -v '^ *+' conftest.er1 >conftest.err
13272   rm -f conftest.er1
13273   cat conftest.err >&5
13274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); } >/dev/null && {
13276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13277          test ! -s conftest.err
13278        }; then
13279   ac_header_preproc=yes
13280 else
13281   $as_echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284   ac_header_preproc=no
13285 fi
13286
13287 rm -f conftest.err conftest.$ac_ext
13288 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13289 $as_echo "$ac_header_preproc" >&6; }
13290
13291 # So?  What about this header?
13292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13293   yes:no: )
13294     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13295 $as_echo "$as_me: WARNING: openssl/ssl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13296     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&5
13297 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the compiler's result" >&2;}
13298     ac_header_preproc=yes
13299     ;;
13300   no:yes:* )
13301     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: present but cannot be compiled" >&5
13302 $as_echo "$as_me: WARNING: openssl/ssl.h: present but cannot be compiled" >&2;}
13303     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&5
13304 $as_echo "$as_me: WARNING: openssl/ssl.h:     check for missing prerequisite headers?" >&2;}
13305     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: see the Autoconf documentation" >&5
13306 $as_echo "$as_me: WARNING: openssl/ssl.h: see the Autoconf documentation" >&2;}
13307     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&5
13308 $as_echo "$as_me: WARNING: openssl/ssl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13309     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&5
13310 $as_echo "$as_me: WARNING: openssl/ssl.h: proceeding with the preprocessor's result" >&2;}
13311     { $as_echo "$as_me:$LINENO: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&5
13312 $as_echo "$as_me: WARNING: openssl/ssl.h: in the future, the compiler will take precedence" >&2;}
13313     ( cat <<\_ASBOX
13314 ## ---------------------------------------- ##
13315 ## Report this to pgsql-bugs@postgresql.org ##
13316 ## ---------------------------------------- ##
13317 _ASBOX
13318      ) | sed "s/^/$as_me: WARNING:     /" >&2
13319     ;;
13320 esac
13321 { $as_echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
13322 $as_echo_n "checking for openssl/ssl.h... " >&6; }
13323 if test "${ac_cv_header_openssl_ssl_h+set}" = set; then
13324   $as_echo_n "(cached) " >&6
13325 else
13326   ac_cv_header_openssl_ssl_h=$ac_header_preproc
13327 fi
13328 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_ssl_h" >&5
13329 $as_echo "$ac_cv_header_openssl_ssl_h" >&6; }
13330
13331 fi
13332 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then
13333   :
13334 else
13335   { { $as_echo "$as_me:$LINENO: error: header file <openssl/ssl.h> is required for OpenSSL" >&5
13336 $as_echo "$as_me: error: header file <openssl/ssl.h> is required for OpenSSL" >&2;}
13337    { (exit 1); exit 1; }; }
13338 fi
13339
13340
13341   if test "${ac_cv_header_openssl_err_h+set}" = set; then
13342   { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13343 $as_echo_n "checking for openssl/err.h... " >&6; }
13344 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13345   $as_echo_n "(cached) " >&6
13346 fi
13347 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13348 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13349 else
13350   # Is the header compilable?
13351 { $as_echo "$as_me:$LINENO: checking openssl/err.h usability" >&5
13352 $as_echo_n "checking openssl/err.h usability... " >&6; }
13353 cat >conftest.$ac_ext <<_ACEOF
13354 /* confdefs.h.  */
13355 _ACEOF
13356 cat confdefs.h >>conftest.$ac_ext
13357 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h.  */
13359 $ac_includes_default
13360 #include <openssl/err.h>
13361 _ACEOF
13362 rm -f conftest.$ac_objext
13363 if { (ac_try="$ac_compile"
13364 case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13369 $as_echo "$ac_try_echo") >&5
13370   (eval "$ac_compile") 2>conftest.er1
13371   ac_status=$?
13372   grep -v '^ *+' conftest.er1 >conftest.err
13373   rm -f conftest.er1
13374   cat conftest.err >&5
13375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); } && {
13377          test -z "$ac_c_werror_flag" ||
13378          test ! -s conftest.err
13379        } && test -s conftest.$ac_objext; then
13380   ac_header_compiler=yes
13381 else
13382   $as_echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385         ac_header_compiler=no
13386 fi
13387
13388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13389 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13390 $as_echo "$ac_header_compiler" >&6; }
13391
13392 # Is the header present?
13393 { $as_echo "$as_me:$LINENO: checking openssl/err.h presence" >&5
13394 $as_echo_n "checking openssl/err.h presence... " >&6; }
13395 cat >conftest.$ac_ext <<_ACEOF
13396 /* confdefs.h.  */
13397 _ACEOF
13398 cat confdefs.h >>conftest.$ac_ext
13399 cat >>conftest.$ac_ext <<_ACEOF
13400 /* end confdefs.h.  */
13401 #include <openssl/err.h>
13402 _ACEOF
13403 if { (ac_try="$ac_cpp conftest.$ac_ext"
13404 case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13409 $as_echo "$ac_try_echo") >&5
13410   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } >/dev/null && {
13417          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13418          test ! -s conftest.err
13419        }; then
13420   ac_header_preproc=yes
13421 else
13422   $as_echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425   ac_header_preproc=no
13426 fi
13427
13428 rm -f conftest.err conftest.$ac_ext
13429 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13430 $as_echo "$ac_header_preproc" >&6; }
13431
13432 # So?  What about this header?
13433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13434   yes:no: )
13435     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&5
13436 $as_echo "$as_me: WARNING: openssl/err.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13437     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the compiler's result" >&5
13438 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the compiler's result" >&2;}
13439     ac_header_preproc=yes
13440     ;;
13441   no:yes:* )
13442     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: present but cannot be compiled" >&5
13443 $as_echo "$as_me: WARNING: openssl/err.h: present but cannot be compiled" >&2;}
13444     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&5
13445 $as_echo "$as_me: WARNING: openssl/err.h:     check for missing prerequisite headers?" >&2;}
13446     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: see the Autoconf documentation" >&5
13447 $as_echo "$as_me: WARNING: openssl/err.h: see the Autoconf documentation" >&2;}
13448     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&5
13449 $as_echo "$as_me: WARNING: openssl/err.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13450     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&5
13451 $as_echo "$as_me: WARNING: openssl/err.h: proceeding with the preprocessor's result" >&2;}
13452     { $as_echo "$as_me:$LINENO: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&5
13453 $as_echo "$as_me: WARNING: openssl/err.h: in the future, the compiler will take precedence" >&2;}
13454     ( cat <<\_ASBOX
13455 ## ---------------------------------------- ##
13456 ## Report this to pgsql-bugs@postgresql.org ##
13457 ## ---------------------------------------- ##
13458 _ASBOX
13459      ) | sed "s/^/$as_me: WARNING:     /" >&2
13460     ;;
13461 esac
13462 { $as_echo "$as_me:$LINENO: checking for openssl/err.h" >&5
13463 $as_echo_n "checking for openssl/err.h... " >&6; }
13464 if test "${ac_cv_header_openssl_err_h+set}" = set; then
13465   $as_echo_n "(cached) " >&6
13466 else
13467   ac_cv_header_openssl_err_h=$ac_header_preproc
13468 fi
13469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_openssl_err_h" >&5
13470 $as_echo "$ac_cv_header_openssl_err_h" >&6; }
13471
13472 fi
13473 if test "x$ac_cv_header_openssl_err_h" = x""yes; then
13474   :
13475 else
13476   { { $as_echo "$as_me:$LINENO: error: header file <openssl/err.h> is required for OpenSSL" >&5
13477 $as_echo "$as_me: error: header file <openssl/err.h> is required for OpenSSL" >&2;}
13478    { (exit 1); exit 1; }; }
13479 fi
13480
13481
13482 fi
13483
13484 if test "$with_pam" = yes ; then
13485
13486 for ac_header in security/pam_appl.h
13487 do
13488 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13490   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13491 $as_echo_n "checking for $ac_header... " >&6; }
13492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13493   $as_echo_n "(cached) " >&6
13494 fi
13495 ac_res=`eval 'as_val=${'$as_ac_Header'}
13496                  $as_echo "$as_val"'`
13497                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13498 $as_echo "$ac_res" >&6; }
13499 else
13500   # Is the header compilable?
13501 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13502 $as_echo_n "checking $ac_header usability... " >&6; }
13503 cat >conftest.$ac_ext <<_ACEOF
13504 /* confdefs.h.  */
13505 _ACEOF
13506 cat confdefs.h >>conftest.$ac_ext
13507 cat >>conftest.$ac_ext <<_ACEOF
13508 /* end confdefs.h.  */
13509 $ac_includes_default
13510 #include <$ac_header>
13511 _ACEOF
13512 rm -f conftest.$ac_objext
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516   *) ac_try_echo=$ac_try;;
13517 esac
13518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13519 $as_echo "$ac_try_echo") >&5
13520   (eval "$ac_compile") 2>conftest.er1
13521   ac_status=$?
13522   grep -v '^ *+' conftest.er1 >conftest.err
13523   rm -f conftest.er1
13524   cat conftest.err >&5
13525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526   (exit $ac_status); } && {
13527          test -z "$ac_c_werror_flag" ||
13528          test ! -s conftest.err
13529        } && test -s conftest.$ac_objext; then
13530   ac_header_compiler=yes
13531 else
13532   $as_echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535         ac_header_compiler=no
13536 fi
13537
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540 $as_echo "$ac_header_compiler" >&6; }
13541
13542 # Is the header present?
13543 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544 $as_echo_n "checking $ac_header presence... " >&6; }
13545 cat >conftest.$ac_ext <<_ACEOF
13546 /* confdefs.h.  */
13547 _ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h.  */
13551 #include <$ac_header>
13552 _ACEOF
13553 if { (ac_try="$ac_cpp conftest.$ac_ext"
13554 case "(($ac_try" in
13555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13556   *) ac_try_echo=$ac_try;;
13557 esac
13558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13559 $as_echo "$ac_try_echo") >&5
13560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13561   ac_status=$?
13562   grep -v '^ *+' conftest.er1 >conftest.err
13563   rm -f conftest.er1
13564   cat conftest.err >&5
13565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); } >/dev/null && {
13567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13568          test ! -s conftest.err
13569        }; then
13570   ac_header_preproc=yes
13571 else
13572   $as_echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13574
13575   ac_header_preproc=no
13576 fi
13577
13578 rm -f conftest.err conftest.$ac_ext
13579 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 $as_echo "$ac_header_preproc" >&6; }
13581
13582 # So?  What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13584   yes:no: )
13585     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13588 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13589     ac_header_preproc=yes
13590     ;;
13591   no:yes:* )
13592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13593 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13595 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13597 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13599 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13603 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13604     ( cat <<\_ASBOX
13605 ## ---------------------------------------- ##
13606 ## Report this to pgsql-bugs@postgresql.org ##
13607 ## ---------------------------------------- ##
13608 _ASBOX
13609      ) | sed "s/^/$as_me: WARNING:     /" >&2
13610     ;;
13611 esac
13612 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13613 $as_echo_n "checking for $ac_header... " >&6; }
13614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13615   $as_echo_n "(cached) " >&6
13616 else
13617   eval "$as_ac_Header=\$ac_header_preproc"
13618 fi
13619 ac_res=`eval 'as_val=${'$as_ac_Header'}
13620                  $as_echo "$as_val"'`
13621                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13622 $as_echo "$ac_res" >&6; }
13623
13624 fi
13625 as_val=`eval 'as_val=${'$as_ac_Header'}
13626                  $as_echo "$as_val"'`
13627    if test "x$as_val" = x""yes; then
13628   cat >>confdefs.h <<_ACEOF
13629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13630 _ACEOF
13631
13632 else
13633
13634 for ac_header in pam/pam_appl.h
13635 do
13636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13638   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13639 $as_echo_n "checking for $ac_header... " >&6; }
13640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13641   $as_echo_n "(cached) " >&6
13642 fi
13643 ac_res=`eval 'as_val=${'$as_ac_Header'}
13644                  $as_echo "$as_val"'`
13645                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13646 $as_echo "$ac_res" >&6; }
13647 else
13648   # Is the header compilable?
13649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13650 $as_echo_n "checking $ac_header usability... " >&6; }
13651 cat >conftest.$ac_ext <<_ACEOF
13652 /* confdefs.h.  */
13653 _ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h.  */
13657 $ac_includes_default
13658 #include <$ac_header>
13659 _ACEOF
13660 rm -f conftest.$ac_objext
13661 if { (ac_try="$ac_compile"
13662 case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13667 $as_echo "$ac_try_echo") >&5
13668   (eval "$ac_compile") 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } && {
13675          test -z "$ac_c_werror_flag" ||
13676          test ! -s conftest.err
13677        } && test -s conftest.$ac_objext; then
13678   ac_header_compiler=yes
13679 else
13680   $as_echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13682
13683         ac_header_compiler=no
13684 fi
13685
13686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13688 $as_echo "$ac_header_compiler" >&6; }
13689
13690 # Is the header present?
13691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13692 $as_echo_n "checking $ac_header presence... " >&6; }
13693 cat >conftest.$ac_ext <<_ACEOF
13694 /* confdefs.h.  */
13695 _ACEOF
13696 cat confdefs.h >>conftest.$ac_ext
13697 cat >>conftest.$ac_ext <<_ACEOF
13698 /* end confdefs.h.  */
13699 #include <$ac_header>
13700 _ACEOF
13701 if { (ac_try="$ac_cpp conftest.$ac_ext"
13702 case "(($ac_try" in
13703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13704   *) ac_try_echo=$ac_try;;
13705 esac
13706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13707 $as_echo "$ac_try_echo") >&5
13708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13709   ac_status=$?
13710   grep -v '^ *+' conftest.er1 >conftest.err
13711   rm -f conftest.er1
13712   cat conftest.err >&5
13713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714   (exit $ac_status); } >/dev/null && {
13715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13716          test ! -s conftest.err
13717        }; then
13718   ac_header_preproc=yes
13719 else
13720   $as_echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13722
13723   ac_header_preproc=no
13724 fi
13725
13726 rm -f conftest.err conftest.$ac_ext
13727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13728 $as_echo "$ac_header_preproc" >&6; }
13729
13730 # So?  What about this header?
13731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13732   yes:no: )
13733     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13735     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13737     ac_header_preproc=yes
13738     ;;
13739   no:yes:* )
13740     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13742     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13743 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13744     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13746     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13747 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13748     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13750     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13752     ( cat <<\_ASBOX
13753 ## ---------------------------------------- ##
13754 ## Report this to pgsql-bugs@postgresql.org ##
13755 ## ---------------------------------------- ##
13756 _ASBOX
13757      ) | sed "s/^/$as_me: WARNING:     /" >&2
13758     ;;
13759 esac
13760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13761 $as_echo_n "checking for $ac_header... " >&6; }
13762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13763   $as_echo_n "(cached) " >&6
13764 else
13765   eval "$as_ac_Header=\$ac_header_preproc"
13766 fi
13767 ac_res=`eval 'as_val=${'$as_ac_Header'}
13768                  $as_echo "$as_val"'`
13769                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13770 $as_echo "$ac_res" >&6; }
13771
13772 fi
13773 as_val=`eval 'as_val=${'$as_ac_Header'}
13774                  $as_echo "$as_val"'`
13775    if test "x$as_val" = x""yes; then
13776   cat >>confdefs.h <<_ACEOF
13777 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13778 _ACEOF
13779
13780 else
13781   { { $as_echo "$as_me:$LINENO: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&5
13782 $as_echo "$as_me: error: header file <security/pam_appl.h> or <pam/pam_appl.h> is required for PAM." >&2;}
13783    { (exit 1); exit 1; }; }
13784 fi
13785
13786 done
13787
13788 fi
13789
13790 done
13791
13792 fi
13793
13794 if test "$with_libxml" = yes ; then
13795   if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13796   { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13797 $as_echo_n "checking for libxml/parser.h... " >&6; }
13798 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13799   $as_echo_n "(cached) " >&6
13800 fi
13801 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13802 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13803 else
13804   # Is the header compilable?
13805 { $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
13806 $as_echo_n "checking libxml/parser.h usability... " >&6; }
13807 cat >conftest.$ac_ext <<_ACEOF
13808 /* confdefs.h.  */
13809 _ACEOF
13810 cat confdefs.h >>conftest.$ac_ext
13811 cat >>conftest.$ac_ext <<_ACEOF
13812 /* end confdefs.h.  */
13813 $ac_includes_default
13814 #include <libxml/parser.h>
13815 _ACEOF
13816 rm -f conftest.$ac_objext
13817 if { (ac_try="$ac_compile"
13818 case "(($ac_try" in
13819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13820   *) ac_try_echo=$ac_try;;
13821 esac
13822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13823 $as_echo "$ac_try_echo") >&5
13824   (eval "$ac_compile") 2>conftest.er1
13825   ac_status=$?
13826   grep -v '^ *+' conftest.er1 >conftest.err
13827   rm -f conftest.er1
13828   cat conftest.err >&5
13829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830   (exit $ac_status); } && {
13831          test -z "$ac_c_werror_flag" ||
13832          test ! -s conftest.err
13833        } && test -s conftest.$ac_objext; then
13834   ac_header_compiler=yes
13835 else
13836   $as_echo "$as_me: failed program was:" >&5
13837 sed 's/^/| /' conftest.$ac_ext >&5
13838
13839         ac_header_compiler=no
13840 fi
13841
13842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13844 $as_echo "$ac_header_compiler" >&6; }
13845
13846 # Is the header present?
13847 { $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
13848 $as_echo_n "checking libxml/parser.h presence... " >&6; }
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 <libxml/parser.h>
13856 _ACEOF
13857 if { (ac_try="$ac_cpp conftest.$ac_ext"
13858 case "(($ac_try" in
13859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860   *) ac_try_echo=$ac_try;;
13861 esac
13862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13863 $as_echo "$ac_try_echo") >&5
13864   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13865   ac_status=$?
13866   grep -v '^ *+' conftest.er1 >conftest.err
13867   rm -f conftest.er1
13868   cat conftest.err >&5
13869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); } >/dev/null && {
13871          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13872          test ! -s conftest.err
13873        }; then
13874   ac_header_preproc=yes
13875 else
13876   $as_echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13878
13879   ac_header_preproc=no
13880 fi
13881
13882 rm -f conftest.err conftest.$ac_ext
13883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13884 $as_echo "$ac_header_preproc" >&6; }
13885
13886 # So?  What about this header?
13887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13888   yes:no: )
13889     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
13890 $as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13891     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
13892 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
13893     ac_header_preproc=yes
13894     ;;
13895   no:yes:* )
13896     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
13897 $as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
13898     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
13899 $as_echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
13900     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
13901 $as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
13902     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
13903 $as_echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13904     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
13905 $as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
13906     { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
13907 $as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
13908     ( cat <<\_ASBOX
13909 ## ---------------------------------------- ##
13910 ## Report this to pgsql-bugs@postgresql.org ##
13911 ## ---------------------------------------- ##
13912 _ASBOX
13913      ) | sed "s/^/$as_me: WARNING:     /" >&2
13914     ;;
13915 esac
13916 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
13917 $as_echo_n "checking for libxml/parser.h... " >&6; }
13918 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
13919   $as_echo_n "(cached) " >&6
13920 else
13921   ac_cv_header_libxml_parser_h=$ac_header_preproc
13922 fi
13923 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
13924 $as_echo "$ac_cv_header_libxml_parser_h" >&6; }
13925
13926 fi
13927 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
13928   :
13929 else
13930   { { $as_echo "$as_me:$LINENO: error: header file <libxml/parser.h> is required for XML support" >&5
13931 $as_echo "$as_me: error: header file <libxml/parser.h> is required for XML support" >&2;}
13932    { (exit 1); exit 1; }; }
13933 fi
13934
13935
13936 fi
13937
13938 if test "$with_libxslt" = yes ; then
13939   if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13940   { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
13941 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
13942 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
13943   $as_echo_n "(cached) " >&6
13944 fi
13945 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
13946 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
13947 else
13948   # Is the header compilable?
13949 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h usability" >&5
13950 $as_echo_n "checking libxslt/xslt.h usability... " >&6; }
13951 cat >conftest.$ac_ext <<_ACEOF
13952 /* confdefs.h.  */
13953 _ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h.  */
13957 $ac_includes_default
13958 #include <libxslt/xslt.h>
13959 _ACEOF
13960 rm -f conftest.$ac_objext
13961 if { (ac_try="$ac_compile"
13962 case "(($ac_try" in
13963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964   *) ac_try_echo=$ac_try;;
13965 esac
13966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13967 $as_echo "$ac_try_echo") >&5
13968   (eval "$ac_compile") 2>conftest.er1
13969   ac_status=$?
13970   grep -v '^ *+' conftest.er1 >conftest.err
13971   rm -f conftest.er1
13972   cat conftest.err >&5
13973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); } && {
13975          test -z "$ac_c_werror_flag" ||
13976          test ! -s conftest.err
13977        } && test -s conftest.$ac_objext; then
13978   ac_header_compiler=yes
13979 else
13980   $as_echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.$ac_ext >&5
13982
13983         ac_header_compiler=no
13984 fi
13985
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13988 $as_echo "$ac_header_compiler" >&6; }
13989
13990 # Is the header present?
13991 { $as_echo "$as_me:$LINENO: checking libxslt/xslt.h presence" >&5
13992 $as_echo_n "checking libxslt/xslt.h presence... " >&6; }
13993 cat >conftest.$ac_ext <<_ACEOF
13994 /* confdefs.h.  */
13995 _ACEOF
13996 cat confdefs.h >>conftest.$ac_ext
13997 cat >>conftest.$ac_ext <<_ACEOF
13998 /* end confdefs.h.  */
13999 #include <libxslt/xslt.h>
14000 _ACEOF
14001 if { (ac_try="$ac_cpp conftest.$ac_ext"
14002 case "(($ac_try" in
14003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004   *) ac_try_echo=$ac_try;;
14005 esac
14006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14007 $as_echo "$ac_try_echo") >&5
14008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14009   ac_status=$?
14010   grep -v '^ *+' conftest.er1 >conftest.err
14011   rm -f conftest.er1
14012   cat conftest.err >&5
14013   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014   (exit $ac_status); } >/dev/null && {
14015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14016          test ! -s conftest.err
14017        }; then
14018   ac_header_preproc=yes
14019 else
14020   $as_echo "$as_me: failed program was:" >&5
14021 sed 's/^/| /' conftest.$ac_ext >&5
14022
14023   ac_header_preproc=no
14024 fi
14025
14026 rm -f conftest.err conftest.$ac_ext
14027 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14028 $as_echo "$ac_header_preproc" >&6; }
14029
14030 # So?  What about this header?
14031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14032   yes:no: )
14033     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&5
14034 $as_echo "$as_me: WARNING: libxslt/xslt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14035     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&5
14036 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the compiler's result" >&2;}
14037     ac_header_preproc=yes
14038     ;;
14039   no:yes:* )
14040     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: present but cannot be compiled" >&5
14041 $as_echo "$as_me: WARNING: libxslt/xslt.h: present but cannot be compiled" >&2;}
14042     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&5
14043 $as_echo "$as_me: WARNING: libxslt/xslt.h:     check for missing prerequisite headers?" >&2;}
14044     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&5
14045 $as_echo "$as_me: WARNING: libxslt/xslt.h: see the Autoconf documentation" >&2;}
14046     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&5
14047 $as_echo "$as_me: WARNING: libxslt/xslt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14048     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&5
14049 $as_echo "$as_me: WARNING: libxslt/xslt.h: proceeding with the preprocessor's result" >&2;}
14050     { $as_echo "$as_me:$LINENO: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&5
14051 $as_echo "$as_me: WARNING: libxslt/xslt.h: in the future, the compiler will take precedence" >&2;}
14052     ( cat <<\_ASBOX
14053 ## ---------------------------------------- ##
14054 ## Report this to pgsql-bugs@postgresql.org ##
14055 ## ---------------------------------------- ##
14056 _ASBOX
14057      ) | sed "s/^/$as_me: WARNING:     /" >&2
14058     ;;
14059 esac
14060 { $as_echo "$as_me:$LINENO: checking for libxslt/xslt.h" >&5
14061 $as_echo_n "checking for libxslt/xslt.h... " >&6; }
14062 if test "${ac_cv_header_libxslt_xslt_h+set}" = set; then
14063   $as_echo_n "(cached) " >&6
14064 else
14065   ac_cv_header_libxslt_xslt_h=$ac_header_preproc
14066 fi
14067 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxslt_xslt_h" >&5
14068 $as_echo "$ac_cv_header_libxslt_xslt_h" >&6; }
14069
14070 fi
14071 if test "x$ac_cv_header_libxslt_xslt_h" = x""yes; then
14072   :
14073 else
14074   { { $as_echo "$as_me:$LINENO: error: header file <libxslt/xslt.h> is required for XSLT support" >&5
14075 $as_echo "$as_me: error: header file <libxslt/xslt.h> is required for XSLT support" >&2;}
14076    { (exit 1); exit 1; }; }
14077 fi
14078
14079
14080 fi
14081
14082 if test "$with_ldap" = yes ; then
14083   if test "$PORTNAME" != "win32"; then
14084
14085 for ac_header in ldap.h
14086 do
14087 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14089   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 $as_echo_n "checking for $ac_header... " >&6; }
14091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14092   $as_echo_n "(cached) " >&6
14093 fi
14094 ac_res=`eval 'as_val=${'$as_ac_Header'}
14095                  $as_echo "$as_val"'`
14096                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14097 $as_echo "$ac_res" >&6; }
14098 else
14099   # Is the header compilable?
14100 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14101 $as_echo_n "checking $ac_header usability... " >&6; }
14102 cat >conftest.$ac_ext <<_ACEOF
14103 /* confdefs.h.  */
14104 _ACEOF
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h.  */
14108 $ac_includes_default
14109 #include <$ac_header>
14110 _ACEOF
14111 rm -f conftest.$ac_objext
14112 if { (ac_try="$ac_compile"
14113 case "(($ac_try" in
14114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115   *) ac_try_echo=$ac_try;;
14116 esac
14117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14118 $as_echo "$ac_try_echo") >&5
14119   (eval "$ac_compile") 2>conftest.er1
14120   ac_status=$?
14121   grep -v '^ *+' conftest.er1 >conftest.err
14122   rm -f conftest.er1
14123   cat conftest.err >&5
14124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125   (exit $ac_status); } && {
14126          test -z "$ac_c_werror_flag" ||
14127          test ! -s conftest.err
14128        } && test -s conftest.$ac_objext; then
14129   ac_header_compiler=yes
14130 else
14131   $as_echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134         ac_header_compiler=no
14135 fi
14136
14137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14138 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14139 $as_echo "$ac_header_compiler" >&6; }
14140
14141 # Is the header present?
14142 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14143 $as_echo_n "checking $ac_header presence... " >&6; }
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h.  */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h.  */
14150 #include <$ac_header>
14151 _ACEOF
14152 if { (ac_try="$ac_cpp conftest.$ac_ext"
14153 case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14158 $as_echo "$ac_try_echo") >&5
14159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14160   ac_status=$?
14161   grep -v '^ *+' conftest.er1 >conftest.err
14162   rm -f conftest.er1
14163   cat conftest.err >&5
14164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } >/dev/null && {
14166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14167          test ! -s conftest.err
14168        }; then
14169   ac_header_preproc=yes
14170 else
14171   $as_echo "$as_me: failed program was:" >&5
14172 sed 's/^/| /' conftest.$ac_ext >&5
14173
14174   ac_header_preproc=no
14175 fi
14176
14177 rm -f conftest.err conftest.$ac_ext
14178 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14179 $as_echo "$ac_header_preproc" >&6; }
14180
14181 # So?  What about this header?
14182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14183   yes:no: )
14184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14185 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14187 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14188     ac_header_preproc=yes
14189     ;;
14190   no:yes:* )
14191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14192 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14194 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14196 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14198 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14199     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14200 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14201     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14202 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14203     ( cat <<\_ASBOX
14204 ## ---------------------------------------- ##
14205 ## Report this to pgsql-bugs@postgresql.org ##
14206 ## ---------------------------------------- ##
14207 _ASBOX
14208      ) | sed "s/^/$as_me: WARNING:     /" >&2
14209     ;;
14210 esac
14211 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14212 $as_echo_n "checking for $ac_header... " >&6; }
14213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14214   $as_echo_n "(cached) " >&6
14215 else
14216   eval "$as_ac_Header=\$ac_header_preproc"
14217 fi
14218 ac_res=`eval 'as_val=${'$as_ac_Header'}
14219                  $as_echo "$as_val"'`
14220                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14221 $as_echo "$ac_res" >&6; }
14222
14223 fi
14224 as_val=`eval 'as_val=${'$as_ac_Header'}
14225                  $as_echo "$as_val"'`
14226    if test "x$as_val" = x""yes; then
14227   cat >>confdefs.h <<_ACEOF
14228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14229 _ACEOF
14230
14231 else
14232   { { $as_echo "$as_me:$LINENO: error: header file <ldap.h> is required for LDAP" >&5
14233 $as_echo "$as_me: error: header file <ldap.h> is required for LDAP" >&2;}
14234    { (exit 1); exit 1; }; }
14235 fi
14236
14237 done
14238
14239   else
14240
14241 for ac_header in winldap.h
14242 do
14243 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14244 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14245 $as_echo_n "checking for $ac_header... " >&6; }
14246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14247   $as_echo_n "(cached) " >&6
14248 else
14249   cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255 $ac_includes_default
14256 #include <windows.h>
14257
14258
14259 #include <$ac_header>
14260 _ACEOF
14261 rm -f conftest.$ac_objext
14262 if { (ac_try="$ac_compile"
14263 case "(($ac_try" in
14264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265   *) ac_try_echo=$ac_try;;
14266 esac
14267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14268 $as_echo "$ac_try_echo") >&5
14269   (eval "$ac_compile") 2>conftest.er1
14270   ac_status=$?
14271   grep -v '^ *+' conftest.er1 >conftest.err
14272   rm -f conftest.er1
14273   cat conftest.err >&5
14274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275   (exit $ac_status); } && {
14276          test -z "$ac_c_werror_flag" ||
14277          test ! -s conftest.err
14278        } && test -s conftest.$ac_objext; then
14279   eval "$as_ac_Header=yes"
14280 else
14281   $as_echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284         eval "$as_ac_Header=no"
14285 fi
14286
14287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 fi
14289 ac_res=`eval 'as_val=${'$as_ac_Header'}
14290                  $as_echo "$as_val"'`
14291                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14292 $as_echo "$ac_res" >&6; }
14293 as_val=`eval 'as_val=${'$as_ac_Header'}
14294                  $as_echo "$as_val"'`
14295    if test "x$as_val" = x""yes; then
14296   cat >>confdefs.h <<_ACEOF
14297 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14298 _ACEOF
14299
14300 else
14301   { { $as_echo "$as_me:$LINENO: error: header file <winldap.h> is required for LDAP" >&5
14302 $as_echo "$as_me: error: header file <winldap.h> is required for LDAP" >&2;}
14303    { (exit 1); exit 1; }; }
14304 fi
14305
14306 done
14307
14308   fi
14309 fi
14310
14311 if test "$with_bonjour" = yes ; then
14312   if test "${ac_cv_header_dns_sd_h+set}" = set; then
14313   { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14314 $as_echo_n "checking for dns_sd.h... " >&6; }
14315 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14316   $as_echo_n "(cached) " >&6
14317 fi
14318 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14319 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14320 else
14321   # Is the header compilable?
14322 { $as_echo "$as_me:$LINENO: checking dns_sd.h usability" >&5
14323 $as_echo_n "checking dns_sd.h usability... " >&6; }
14324 cat >conftest.$ac_ext <<_ACEOF
14325 /* confdefs.h.  */
14326 _ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h.  */
14330 $ac_includes_default
14331 #include <dns_sd.h>
14332 _ACEOF
14333 rm -f conftest.$ac_objext
14334 if { (ac_try="$ac_compile"
14335 case "(($ac_try" in
14336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337   *) ac_try_echo=$ac_try;;
14338 esac
14339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14340 $as_echo "$ac_try_echo") >&5
14341   (eval "$ac_compile") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } && {
14348          test -z "$ac_c_werror_flag" ||
14349          test ! -s conftest.err
14350        } && test -s conftest.$ac_objext; then
14351   ac_header_compiler=yes
14352 else
14353   $as_echo "$as_me: failed program was:" >&5
14354 sed 's/^/| /' conftest.$ac_ext >&5
14355
14356         ac_header_compiler=no
14357 fi
14358
14359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14361 $as_echo "$ac_header_compiler" >&6; }
14362
14363 # Is the header present?
14364 { $as_echo "$as_me:$LINENO: checking dns_sd.h presence" >&5
14365 $as_echo_n "checking dns_sd.h presence... " >&6; }
14366 cat >conftest.$ac_ext <<_ACEOF
14367 /* confdefs.h.  */
14368 _ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h.  */
14372 #include <dns_sd.h>
14373 _ACEOF
14374 if { (ac_try="$ac_cpp conftest.$ac_ext"
14375 case "(($ac_try" in
14376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14377   *) ac_try_echo=$ac_try;;
14378 esac
14379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14380 $as_echo "$ac_try_echo") >&5
14381   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14382   ac_status=$?
14383   grep -v '^ *+' conftest.er1 >conftest.err
14384   rm -f conftest.er1
14385   cat conftest.err >&5
14386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); } >/dev/null && {
14388          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14389          test ! -s conftest.err
14390        }; then
14391   ac_header_preproc=yes
14392 else
14393   $as_echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396   ac_header_preproc=no
14397 fi
14398
14399 rm -f conftest.err conftest.$ac_ext
14400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14401 $as_echo "$ac_header_preproc" >&6; }
14402
14403 # So?  What about this header?
14404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14405   yes:no: )
14406     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&5
14407 $as_echo "$as_me: WARNING: dns_sd.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14408     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the compiler's result" >&5
14409 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the compiler's result" >&2;}
14410     ac_header_preproc=yes
14411     ;;
14412   no:yes:* )
14413     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: present but cannot be compiled" >&5
14414 $as_echo "$as_me: WARNING: dns_sd.h: present but cannot be compiled" >&2;}
14415     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&5
14416 $as_echo "$as_me: WARNING: dns_sd.h:     check for missing prerequisite headers?" >&2;}
14417     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: see the Autoconf documentation" >&5
14418 $as_echo "$as_me: WARNING: dns_sd.h: see the Autoconf documentation" >&2;}
14419     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&5
14420 $as_echo "$as_me: WARNING: dns_sd.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14421     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&5
14422 $as_echo "$as_me: WARNING: dns_sd.h: proceeding with the preprocessor's result" >&2;}
14423     { $as_echo "$as_me:$LINENO: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&5
14424 $as_echo "$as_me: WARNING: dns_sd.h: in the future, the compiler will take precedence" >&2;}
14425     ( cat <<\_ASBOX
14426 ## ---------------------------------------- ##
14427 ## Report this to pgsql-bugs@postgresql.org ##
14428 ## ---------------------------------------- ##
14429 _ASBOX
14430      ) | sed "s/^/$as_me: WARNING:     /" >&2
14431     ;;
14432 esac
14433 { $as_echo "$as_me:$LINENO: checking for dns_sd.h" >&5
14434 $as_echo_n "checking for dns_sd.h... " >&6; }
14435 if test "${ac_cv_header_dns_sd_h+set}" = set; then
14436   $as_echo_n "(cached) " >&6
14437 else
14438   ac_cv_header_dns_sd_h=$ac_header_preproc
14439 fi
14440 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dns_sd_h" >&5
14441 $as_echo "$ac_cv_header_dns_sd_h" >&6; }
14442
14443 fi
14444 if test "x$ac_cv_header_dns_sd_h" = x""yes; then
14445   :
14446 else
14447   { { $as_echo "$as_me:$LINENO: error: header file <dns_sd.h> is required for Bonjour" >&5
14448 $as_echo "$as_me: error: header file <dns_sd.h> is required for Bonjour" >&2;}
14449    { (exit 1); exit 1; }; }
14450 fi
14451
14452
14453 fi
14454
14455 # for contrib/uuid-ossp
14456 if test "$with_ossp_uuid" = yes ; then
14457
14458 for ac_header in ossp/uuid.h
14459 do
14460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14462   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14463 $as_echo_n "checking for $ac_header... " >&6; }
14464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14465   $as_echo_n "(cached) " >&6
14466 fi
14467 ac_res=`eval 'as_val=${'$as_ac_Header'}
14468                  $as_echo "$as_val"'`
14469                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14470 $as_echo "$ac_res" >&6; }
14471 else
14472   # Is the header compilable?
14473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14474 $as_echo_n "checking $ac_header usability... " >&6; }
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h.  */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h.  */
14481 $ac_includes_default
14482 #include <$ac_header>
14483 _ACEOF
14484 rm -f conftest.$ac_objext
14485 if { (ac_try="$ac_compile"
14486 case "(($ac_try" in
14487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488   *) ac_try_echo=$ac_try;;
14489 esac
14490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14491 $as_echo "$ac_try_echo") >&5
14492   (eval "$ac_compile") 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } && {
14499          test -z "$ac_c_werror_flag" ||
14500          test ! -s conftest.err
14501        } && test -s conftest.$ac_objext; then
14502   ac_header_compiler=yes
14503 else
14504   $as_echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507         ac_header_compiler=no
14508 fi
14509
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14512 $as_echo "$ac_header_compiler" >&6; }
14513
14514 # Is the header present?
14515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14516 $as_echo_n "checking $ac_header presence... " >&6; }
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h.  */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h.  */
14523 #include <$ac_header>
14524 _ACEOF
14525 if { (ac_try="$ac_cpp conftest.$ac_ext"
14526 case "(($ac_try" in
14527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528   *) ac_try_echo=$ac_try;;
14529 esac
14530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14531 $as_echo "$ac_try_echo") >&5
14532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14533   ac_status=$?
14534   grep -v '^ *+' conftest.er1 >conftest.err
14535   rm -f conftest.er1
14536   cat conftest.err >&5
14537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538   (exit $ac_status); } >/dev/null && {
14539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14540          test ! -s conftest.err
14541        }; then
14542   ac_header_preproc=yes
14543 else
14544   $as_echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547   ac_header_preproc=no
14548 fi
14549
14550 rm -f conftest.err conftest.$ac_ext
14551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14552 $as_echo "$ac_header_preproc" >&6; }
14553
14554 # So?  What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14556   yes:no: )
14557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14559     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14561     ac_header_preproc=yes
14562     ;;
14563   no:yes:* )
14564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14567 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14568     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14570     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14571 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14574     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14576     ( cat <<\_ASBOX
14577 ## ---------------------------------------- ##
14578 ## Report this to pgsql-bugs@postgresql.org ##
14579 ## ---------------------------------------- ##
14580 _ASBOX
14581      ) | sed "s/^/$as_me: WARNING:     /" >&2
14582     ;;
14583 esac
14584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14585 $as_echo_n "checking for $ac_header... " >&6; }
14586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14587   $as_echo_n "(cached) " >&6
14588 else
14589   eval "$as_ac_Header=\$ac_header_preproc"
14590 fi
14591 ac_res=`eval 'as_val=${'$as_ac_Header'}
14592                  $as_echo "$as_val"'`
14593                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14594 $as_echo "$ac_res" >&6; }
14595
14596 fi
14597 as_val=`eval 'as_val=${'$as_ac_Header'}
14598                  $as_echo "$as_val"'`
14599    if test "x$as_val" = x""yes; then
14600   cat >>confdefs.h <<_ACEOF
14601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14602 _ACEOF
14603
14604 else
14605
14606
14607 for ac_header in uuid.h
14608 do
14609 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14611   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14612 $as_echo_n "checking for $ac_header... " >&6; }
14613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614   $as_echo_n "(cached) " >&6
14615 fi
14616 ac_res=`eval 'as_val=${'$as_ac_Header'}
14617                  $as_echo "$as_val"'`
14618                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14619 $as_echo "$ac_res" >&6; }
14620 else
14621   # Is the header compilable?
14622 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14623 $as_echo_n "checking $ac_header usability... " >&6; }
14624 cat >conftest.$ac_ext <<_ACEOF
14625 /* confdefs.h.  */
14626 _ACEOF
14627 cat confdefs.h >>conftest.$ac_ext
14628 cat >>conftest.$ac_ext <<_ACEOF
14629 /* end confdefs.h.  */
14630 $ac_includes_default
14631 #include <$ac_header>
14632 _ACEOF
14633 rm -f conftest.$ac_objext
14634 if { (ac_try="$ac_compile"
14635 case "(($ac_try" in
14636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637   *) ac_try_echo=$ac_try;;
14638 esac
14639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14640 $as_echo "$ac_try_echo") >&5
14641   (eval "$ac_compile") 2>conftest.er1
14642   ac_status=$?
14643   grep -v '^ *+' conftest.er1 >conftest.err
14644   rm -f conftest.er1
14645   cat conftest.err >&5
14646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647   (exit $ac_status); } && {
14648          test -z "$ac_c_werror_flag" ||
14649          test ! -s conftest.err
14650        } && test -s conftest.$ac_objext; then
14651   ac_header_compiler=yes
14652 else
14653   $as_echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656         ac_header_compiler=no
14657 fi
14658
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14661 $as_echo "$ac_header_compiler" >&6; }
14662
14663 # Is the header present?
14664 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14665 $as_echo_n "checking $ac_header presence... " >&6; }
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672 #include <$ac_header>
14673 _ACEOF
14674 if { (ac_try="$ac_cpp conftest.$ac_ext"
14675 case "(($ac_try" in
14676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677   *) ac_try_echo=$ac_try;;
14678 esac
14679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14680 $as_echo "$ac_try_echo") >&5
14681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14682   ac_status=$?
14683   grep -v '^ *+' conftest.er1 >conftest.err
14684   rm -f conftest.er1
14685   cat conftest.err >&5
14686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687   (exit $ac_status); } >/dev/null && {
14688          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14689          test ! -s conftest.err
14690        }; then
14691   ac_header_preproc=yes
14692 else
14693   $as_echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.$ac_ext >&5
14695
14696   ac_header_preproc=no
14697 fi
14698
14699 rm -f conftest.err conftest.$ac_ext
14700 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14701 $as_echo "$ac_header_preproc" >&6; }
14702
14703 # So?  What about this header?
14704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14705   yes:no: )
14706     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14707 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14708     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14709 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14710     ac_header_preproc=yes
14711     ;;
14712   no:yes:* )
14713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14714 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14715     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14716 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14717     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14718 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14719     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14720 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14721     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14722 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14723     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14724 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14725     ( cat <<\_ASBOX
14726 ## ---------------------------------------- ##
14727 ## Report this to pgsql-bugs@postgresql.org ##
14728 ## ---------------------------------------- ##
14729 _ASBOX
14730      ) | sed "s/^/$as_me: WARNING:     /" >&2
14731     ;;
14732 esac
14733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14734 $as_echo_n "checking for $ac_header... " >&6; }
14735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14736   $as_echo_n "(cached) " >&6
14737 else
14738   eval "$as_ac_Header=\$ac_header_preproc"
14739 fi
14740 ac_res=`eval 'as_val=${'$as_ac_Header'}
14741                  $as_echo "$as_val"'`
14742                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14743 $as_echo "$ac_res" >&6; }
14744
14745 fi
14746 as_val=`eval 'as_val=${'$as_ac_Header'}
14747                  $as_echo "$as_val"'`
14748    if test "x$as_val" = x""yes; then
14749   cat >>confdefs.h <<_ACEOF
14750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14751 _ACEOF
14752
14753 else
14754   { { $as_echo "$as_me:$LINENO: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&5
14755 $as_echo "$as_me: error: header file <ossp/uuid.h> or <uuid.h> is required for OSSP-UUID" >&2;}
14756    { (exit 1); exit 1; }; }
14757 fi
14758
14759 done
14760
14761 fi
14762
14763 done
14764
14765 fi
14766
14767 if test "$PORTNAME" = "win32" ; then
14768
14769 for ac_header in crtdefs.h
14770 do
14771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14773   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14774 $as_echo_n "checking for $ac_header... " >&6; }
14775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14776   $as_echo_n "(cached) " >&6
14777 fi
14778 ac_res=`eval 'as_val=${'$as_ac_Header'}
14779                  $as_echo "$as_val"'`
14780                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14781 $as_echo "$ac_res" >&6; }
14782 else
14783   # Is the header compilable?
14784 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14785 $as_echo_n "checking $ac_header usability... " >&6; }
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h.  */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h.  */
14792 $ac_includes_default
14793 #include <$ac_header>
14794 _ACEOF
14795 rm -f conftest.$ac_objext
14796 if { (ac_try="$ac_compile"
14797 case "(($ac_try" in
14798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799   *) ac_try_echo=$ac_try;;
14800 esac
14801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14802 $as_echo "$ac_try_echo") >&5
14803   (eval "$ac_compile") 2>conftest.er1
14804   ac_status=$?
14805   grep -v '^ *+' conftest.er1 >conftest.err
14806   rm -f conftest.er1
14807   cat conftest.err >&5
14808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809   (exit $ac_status); } && {
14810          test -z "$ac_c_werror_flag" ||
14811          test ! -s conftest.err
14812        } && test -s conftest.$ac_objext; then
14813   ac_header_compiler=yes
14814 else
14815   $as_echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14817
14818         ac_header_compiler=no
14819 fi
14820
14821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14823 $as_echo "$ac_header_compiler" >&6; }
14824
14825 # Is the header present?
14826 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14827 $as_echo_n "checking $ac_header presence... " >&6; }
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834 #include <$ac_header>
14835 _ACEOF
14836 if { (ac_try="$ac_cpp conftest.$ac_ext"
14837 case "(($ac_try" in
14838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839   *) ac_try_echo=$ac_try;;
14840 esac
14841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14842 $as_echo "$ac_try_echo") >&5
14843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14844   ac_status=$?
14845   grep -v '^ *+' conftest.er1 >conftest.err
14846   rm -f conftest.er1
14847   cat conftest.err >&5
14848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849   (exit $ac_status); } >/dev/null && {
14850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14851          test ! -s conftest.err
14852        }; then
14853   ac_header_preproc=yes
14854 else
14855   $as_echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858   ac_header_preproc=no
14859 fi
14860
14861 rm -f conftest.err conftest.$ac_ext
14862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14863 $as_echo "$ac_header_preproc" >&6; }
14864
14865 # So?  What about this header?
14866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14867   yes:no: )
14868     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14869 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14870     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14872     ac_header_preproc=yes
14873     ;;
14874   no:yes:* )
14875     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14876 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14877     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14878 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14879     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14880 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14881     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14882 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14883     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14884 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14885     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14886 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14887     ( cat <<\_ASBOX
14888 ## ---------------------------------------- ##
14889 ## Report this to pgsql-bugs@postgresql.org ##
14890 ## ---------------------------------------- ##
14891 _ASBOX
14892      ) | sed "s/^/$as_me: WARNING:     /" >&2
14893     ;;
14894 esac
14895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14896 $as_echo_n "checking for $ac_header... " >&6; }
14897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14898   $as_echo_n "(cached) " >&6
14899 else
14900   eval "$as_ac_Header=\$ac_header_preproc"
14901 fi
14902 ac_res=`eval 'as_val=${'$as_ac_Header'}
14903                  $as_echo "$as_val"'`
14904                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14905 $as_echo "$ac_res" >&6; }
14906
14907 fi
14908 as_val=`eval 'as_val=${'$as_ac_Header'}
14909                  $as_echo "$as_val"'`
14910    if test "x$as_val" = x""yes; then
14911   cat >>confdefs.h <<_ACEOF
14912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14913 _ACEOF
14914
14915 fi
14916
14917 done
14918
14919 fi
14920
14921 ##
14922 ## Types, structures, compiler characteristics
14923 ##
14924
14925
14926  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14927 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14928 if test "${ac_cv_c_bigendian+set}" = set; then
14929   $as_echo_n "(cached) " >&6
14930 else
14931   ac_cv_c_bigendian=unknown
14932     # See if we're dealing with a universal compiler.
14933     cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h.  */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h.  */
14939 #ifndef __APPLE_CC__
14940                not a universal capable compiler
14941              #endif
14942              typedef int dummy;
14943
14944 _ACEOF
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949   *) ac_try_echo=$ac_try;;
14950 esac
14951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14952 $as_echo "$ac_try_echo") >&5
14953   (eval "$ac_compile") 2>conftest.er1
14954   ac_status=$?
14955   grep -v '^ *+' conftest.er1 >conftest.err
14956   rm -f conftest.er1
14957   cat conftest.err >&5
14958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959   (exit $ac_status); } && {
14960          test -z "$ac_c_werror_flag" ||
14961          test ! -s conftest.err
14962        } && test -s conftest.$ac_objext; then
14963
14964         # Check for potential -arch flags.  It is not universal unless
14965         # there are some -arch flags.  Note that *ppc* also matches
14966         # ppc64.  This check is also rather less than ideal.
14967         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
14968           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14969         esac
14970 else
14971   $as_echo "$as_me: failed program was:" >&5
14972 sed 's/^/| /' conftest.$ac_ext >&5
14973
14974
14975 fi
14976
14977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14978     if test $ac_cv_c_bigendian = unknown; then
14979       # See if sys/param.h defines the BYTE_ORDER macro.
14980       cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h.  */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h.  */
14986 #include <sys/types.h>
14987              #include <sys/param.h>
14988
14989 int
14990 main ()
14991 {
14992 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14993                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14994                      && LITTLE_ENDIAN)
14995               bogus endian macros
14996              #endif
14997
14998   ;
14999   return 0;
15000 }
15001 _ACEOF
15002 rm -f conftest.$ac_objext
15003 if { (ac_try="$ac_compile"
15004 case "(($ac_try" in
15005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006   *) ac_try_echo=$ac_try;;
15007 esac
15008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15009 $as_echo "$ac_try_echo") >&5
15010   (eval "$ac_compile") 2>conftest.er1
15011   ac_status=$?
15012   grep -v '^ *+' conftest.er1 >conftest.err
15013   rm -f conftest.er1
15014   cat conftest.err >&5
15015   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); } && {
15017          test -z "$ac_c_werror_flag" ||
15018          test ! -s conftest.err
15019        } && test -s conftest.$ac_objext; then
15020   # It does; now see whether it defined to BIG_ENDIAN or not.
15021          cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h.  */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h.  */
15027 #include <sys/types.h>
15028                 #include <sys/param.h>
15029
15030 int
15031 main ()
15032 {
15033 #if BYTE_ORDER != BIG_ENDIAN
15034                  not big endian
15035                 #endif
15036
15037   ;
15038   return 0;
15039 }
15040 _ACEOF
15041 rm -f conftest.$ac_objext
15042 if { (ac_try="$ac_compile"
15043 case "(($ac_try" in
15044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15045   *) ac_try_echo=$ac_try;;
15046 esac
15047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15048 $as_echo "$ac_try_echo") >&5
15049   (eval "$ac_compile") 2>conftest.er1
15050   ac_status=$?
15051   grep -v '^ *+' conftest.er1 >conftest.err
15052   rm -f conftest.er1
15053   cat conftest.err >&5
15054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15055   (exit $ac_status); } && {
15056          test -z "$ac_c_werror_flag" ||
15057          test ! -s conftest.err
15058        } && test -s conftest.$ac_objext; then
15059   ac_cv_c_bigendian=yes
15060 else
15061   $as_echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.$ac_ext >&5
15063
15064         ac_cv_c_bigendian=no
15065 fi
15066
15067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15068 else
15069   $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072
15073 fi
15074
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076     fi
15077     if test $ac_cv_c_bigendian = unknown; then
15078       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15079       cat >conftest.$ac_ext <<_ACEOF
15080 /* confdefs.h.  */
15081 _ACEOF
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h.  */
15085 #include <limits.h>
15086
15087 int
15088 main ()
15089 {
15090 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15091               bogus endian macros
15092              #endif
15093
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102   *) ac_try_echo=$ac_try;;
15103 esac
15104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15105 $as_echo "$ac_try_echo") >&5
15106   (eval "$ac_compile") 2>conftest.er1
15107   ac_status=$?
15108   grep -v '^ *+' conftest.er1 >conftest.err
15109   rm -f conftest.er1
15110   cat conftest.err >&5
15111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } && {
15113          test -z "$ac_c_werror_flag" ||
15114          test ! -s conftest.err
15115        } && test -s conftest.$ac_objext; then
15116   # It does; now see whether it defined to _BIG_ENDIAN or not.
15117          cat >conftest.$ac_ext <<_ACEOF
15118 /* confdefs.h.  */
15119 _ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h.  */
15123 #include <limits.h>
15124
15125 int
15126 main ()
15127 {
15128 #ifndef _BIG_ENDIAN
15129                  not big endian
15130                 #endif
15131
15132   ;
15133   return 0;
15134 }
15135 _ACEOF
15136 rm -f conftest.$ac_objext
15137 if { (ac_try="$ac_compile"
15138 case "(($ac_try" in
15139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15140   *) ac_try_echo=$ac_try;;
15141 esac
15142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15143 $as_echo "$ac_try_echo") >&5
15144   (eval "$ac_compile") 2>conftest.er1
15145   ac_status=$?
15146   grep -v '^ *+' conftest.er1 >conftest.err
15147   rm -f conftest.er1
15148   cat conftest.err >&5
15149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150   (exit $ac_status); } && {
15151          test -z "$ac_c_werror_flag" ||
15152          test ! -s conftest.err
15153        } && test -s conftest.$ac_objext; then
15154   ac_cv_c_bigendian=yes
15155 else
15156   $as_echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159         ac_cv_c_bigendian=no
15160 fi
15161
15162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15163 else
15164   $as_echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167
15168 fi
15169
15170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15171     fi
15172     if test $ac_cv_c_bigendian = unknown; then
15173       # Compile a test program.
15174       if test "$cross_compiling" = yes; then
15175   # Try to guess by grepping values from an object file.
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 short int ascii_mm[] =
15183                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15184                 short int ascii_ii[] =
15185                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15186                 int use_ascii (int i) {
15187                   return ascii_mm[i] + ascii_ii[i];
15188                 }
15189                 short int ebcdic_ii[] =
15190                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15191                 short int ebcdic_mm[] =
15192                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15193                 int use_ebcdic (int i) {
15194                   return ebcdic_mm[i] + ebcdic_ii[i];
15195                 }
15196                 extern int foo;
15197
15198 int
15199 main ()
15200 {
15201 return use_ascii (foo) == use_ebcdic (foo);
15202   ;
15203   return 0;
15204 }
15205 _ACEOF
15206 rm -f conftest.$ac_objext
15207 if { (ac_try="$ac_compile"
15208 case "(($ac_try" in
15209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15210   *) ac_try_echo=$ac_try;;
15211 esac
15212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15213 $as_echo "$ac_try_echo") >&5
15214   (eval "$ac_compile") 2>conftest.er1
15215   ac_status=$?
15216   grep -v '^ *+' conftest.er1 >conftest.err
15217   rm -f conftest.er1
15218   cat conftest.err >&5
15219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } && {
15221          test -z "$ac_c_werror_flag" ||
15222          test ! -s conftest.err
15223        } && test -s conftest.$ac_objext; then
15224   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15225               ac_cv_c_bigendian=yes
15226             fi
15227             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15228               if test "$ac_cv_c_bigendian" = unknown; then
15229                 ac_cv_c_bigendian=no
15230               else
15231                 # finding both strings is unlikely to happen, but who knows?
15232                 ac_cv_c_bigendian=unknown
15233               fi
15234             fi
15235 else
15236   $as_echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239
15240 fi
15241
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243 else
15244   cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h.  */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h.  */
15250 $ac_includes_default
15251 int
15252 main ()
15253 {
15254
15255              /* Are we little or big endian?  From Harbison&Steele.  */
15256              union
15257              {
15258                long int l;
15259                char c[sizeof (long int)];
15260              } u;
15261              u.l = 1;
15262              return u.c[sizeof (long int) - 1] == 1;
15263
15264   ;
15265   return 0;
15266 }
15267 _ACEOF
15268 rm -f conftest$ac_exeext
15269 if { (ac_try="$ac_link"
15270 case "(($ac_try" in
15271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272   *) ac_try_echo=$ac_try;;
15273 esac
15274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15275 $as_echo "$ac_try_echo") >&5
15276   (eval "$ac_link") 2>&5
15277   ac_status=$?
15278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15280   { (case "(($ac_try" in
15281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282   *) ac_try_echo=$ac_try;;
15283 esac
15284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15285 $as_echo "$ac_try_echo") >&5
15286   (eval "$ac_try") 2>&5
15287   ac_status=$?
15288   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289   (exit $ac_status); }; }; then
15290   ac_cv_c_bigendian=no
15291 else
15292   $as_echo "$as_me: program exited with status $ac_status" >&5
15293 $as_echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.$ac_ext >&5
15295
15296 ( exit $ac_status )
15297 ac_cv_c_bigendian=yes
15298 fi
15299 rm -rf conftest.dSYM
15300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15301 fi
15302
15303
15304     fi
15305 fi
15306 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15307 $as_echo "$ac_cv_c_bigendian" >&6; }
15308  case $ac_cv_c_bigendian in #(
15309    yes)
15310      cat >>confdefs.h <<\_ACEOF
15311 #define WORDS_BIGENDIAN 1
15312 _ACEOF
15313 ;; #(
15314    no)
15315       ;; #(
15316    universal)
15317
15318 cat >>confdefs.h <<\_ACEOF
15319 #define AC_APPLE_UNIVERSAL_BUILD 1
15320 _ACEOF
15321
15322      ;; #(
15323    *)
15324      { { $as_echo "$as_me:$LINENO: error: unknown endianness
15325  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15326 $as_echo "$as_me: error: unknown endianness
15327  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15328    { (exit 1); exit 1; }; } ;;
15329  esac
15330
15331 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15332 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15333 if test "${ac_cv_c_const+set}" = set; then
15334   $as_echo_n "(cached) " >&6
15335 else
15336   cat >conftest.$ac_ext <<_ACEOF
15337 /* confdefs.h.  */
15338 _ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h.  */
15342
15343 int
15344 main ()
15345 {
15346 /* FIXME: Include the comments suggested by Paul. */
15347 #ifndef __cplusplus
15348   /* Ultrix mips cc rejects this.  */
15349   typedef int charset[2];
15350   const charset cs;
15351   /* SunOS 4.1.1 cc rejects this.  */
15352   char const *const *pcpcc;
15353   char **ppc;
15354   /* NEC SVR4.0.2 mips cc rejects this.  */
15355   struct point {int x, y;};
15356   static struct point const zero = {0,0};
15357   /* AIX XL C 1.02.0.0 rejects this.
15358      It does not let you subtract one const X* pointer from another in
15359      an arm of an if-expression whose if-part is not a constant
15360      expression */
15361   const char *g = "string";
15362   pcpcc = &g + (g ? g-g : 0);
15363   /* HPUX 7.0 cc rejects these. */
15364   ++pcpcc;
15365   ppc = (char**) pcpcc;
15366   pcpcc = (char const *const *) ppc;
15367   { /* SCO 3.2v4 cc rejects this.  */
15368     char *t;
15369     char const *s = 0 ? (char *) 0 : (char const *) 0;
15370
15371     *t++ = 0;
15372     if (s) return 0;
15373   }
15374   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15375     int x[] = {25, 17};
15376     const int *foo = &x[0];
15377     ++foo;
15378   }
15379   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15380     typedef const int *iptr;
15381     iptr p = 0;
15382     ++p;
15383   }
15384   { /* AIX XL C 1.02.0.0 rejects this saying
15385        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15386     struct s { int j; const int *ap[3]; };
15387     struct s *b; b->j = 5;
15388   }
15389   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15390     const int foo = 10;
15391     if (!foo) return 0;
15392   }
15393   return !cs[0] && !zero.x;
15394 #endif
15395
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext
15401 if { (ac_try="$ac_compile"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15407 $as_echo "$ac_try_echo") >&5
15408   (eval "$ac_compile") 2>conftest.er1
15409   ac_status=$?
15410   grep -v '^ *+' conftest.er1 >conftest.err
15411   rm -f conftest.er1
15412   cat conftest.err >&5
15413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); } && {
15415          test -z "$ac_c_werror_flag" ||
15416          test ! -s conftest.err
15417        } && test -s conftest.$ac_objext; then
15418   ac_cv_c_const=yes
15419 else
15420   $as_echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423         ac_cv_c_const=no
15424 fi
15425
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427 fi
15428 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15429 $as_echo "$ac_cv_c_const" >&6; }
15430 if test $ac_cv_c_const = no; then
15431
15432 cat >>confdefs.h <<\_ACEOF
15433 #define const /**/
15434 _ACEOF
15435
15436 fi
15437
15438 { $as_echo "$as_me:$LINENO: checking for inline" >&5
15439 $as_echo_n "checking for inline... " >&6; }
15440 if test "${ac_cv_c_inline+set}" = set; then
15441   $as_echo_n "(cached) " >&6
15442 else
15443   ac_cv_c_inline=no
15444 for ac_kw in inline __inline__ __inline; do
15445   cat >conftest.$ac_ext <<_ACEOF
15446 /* confdefs.h.  */
15447 _ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h.  */
15451 #ifndef __cplusplus
15452 typedef int foo_t;
15453 static $ac_kw foo_t static_foo () {return 0; }
15454 $ac_kw foo_t foo () {return 0; }
15455 #endif
15456
15457 _ACEOF
15458 rm -f conftest.$ac_objext
15459 if { (ac_try="$ac_compile"
15460 case "(($ac_try" in
15461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15462   *) ac_try_echo=$ac_try;;
15463 esac
15464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15465 $as_echo "$ac_try_echo") >&5
15466   (eval "$ac_compile") 2>conftest.er1
15467   ac_status=$?
15468   grep -v '^ *+' conftest.er1 >conftest.err
15469   rm -f conftest.er1
15470   cat conftest.err >&5
15471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472   (exit $ac_status); } && {
15473          test -z "$ac_c_werror_flag" ||
15474          test ! -s conftest.err
15475        } && test -s conftest.$ac_objext; then
15476   ac_cv_c_inline=$ac_kw
15477 else
15478   $as_echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15480
15481
15482 fi
15483
15484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15485   test "$ac_cv_c_inline" != no && break
15486 done
15487
15488 fi
15489 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15490 $as_echo "$ac_cv_c_inline" >&6; }
15491
15492
15493 case $ac_cv_c_inline in
15494   inline | yes) ;;
15495   *)
15496     case $ac_cv_c_inline in
15497       no) ac_val=;;
15498       *) ac_val=$ac_cv_c_inline;;
15499     esac
15500     cat >>confdefs.h <<_ACEOF
15501 #ifndef __cplusplus
15502 #define inline $ac_val
15503 #endif
15504 _ACEOF
15505     ;;
15506 esac
15507
15508 { $as_echo "$as_me:$LINENO: checking for quiet inline (no complaint if unreferenced)" >&5
15509 $as_echo_n "checking for quiet inline (no complaint if unreferenced)... " >&6; }
15510 if test "${pgac_cv_c_inline_quietly+set}" = set; then
15511   $as_echo_n "(cached) " >&6
15512 else
15513   pgac_cv_c_inline_quietly=no
15514   if test "$ac_cv_c_inline" != no; then
15515     pgac_c_inline_save_werror=$ac_c_werror_flag
15516     ac_c_werror_flag=yes
15517     cat >conftest.$ac_ext <<_ACEOF
15518 /* confdefs.h.  */
15519 _ACEOF
15520 cat confdefs.h >>conftest.$ac_ext
15521 cat >>conftest.$ac_ext <<_ACEOF
15522 /* end confdefs.h.  */
15523 static inline int fun () {return 0;}
15524 int
15525 main ()
15526 {
15527
15528   ;
15529   return 0;
15530 }
15531 _ACEOF
15532 rm -f conftest.$ac_objext conftest$ac_exeext
15533 if { (ac_try="$ac_link"
15534 case "(($ac_try" in
15535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536   *) ac_try_echo=$ac_try;;
15537 esac
15538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15539 $as_echo "$ac_try_echo") >&5
15540   (eval "$ac_link") 2>conftest.er1
15541   ac_status=$?
15542   grep -v '^ *+' conftest.er1 >conftest.err
15543   rm -f conftest.er1
15544   cat conftest.err >&5
15545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); } && {
15547          test -z "$ac_c_werror_flag" ||
15548          test ! -s conftest.err
15549        } && test -s conftest$ac_exeext && {
15550          test "$cross_compiling" = yes ||
15551          $as_test_x conftest$ac_exeext
15552        }; then
15553   pgac_cv_c_inline_quietly=yes
15554 else
15555   $as_echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15557
15558
15559 fi
15560
15561 rm -rf conftest.dSYM
15562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15563       conftest$ac_exeext conftest.$ac_ext
15564     ac_c_werror_flag=$pgac_c_inline_save_werror
15565   fi
15566 fi
15567 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_inline_quietly" >&5
15568 $as_echo "$pgac_cv_c_inline_quietly" >&6; }
15569 if test "$pgac_cv_c_inline_quietly" != no; then
15570
15571 cat >>confdefs.h <<_ACEOF
15572 #define PG_USE_INLINE 1
15573 _ACEOF
15574
15575 fi
15576
15577 { $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
15578 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
15579 if test "${ac_cv_c_stringize+set}" = set; then
15580   $as_echo_n "(cached) " >&6
15581 else
15582   cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h.  */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h.  */
15588 #define x(y) #y
15589
15590 char *s = x(teststring);
15591 _ACEOF
15592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15593   $EGREP "#teststring" >/dev/null 2>&1; then
15594   ac_cv_c_stringize=no
15595 else
15596   ac_cv_c_stringize=yes
15597 fi
15598 rm -f conftest*
15599
15600 fi
15601 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
15602 $as_echo "$ac_cv_c_stringize" >&6; }
15603 if test $ac_cv_c_stringize = yes; then
15604
15605 cat >>confdefs.h <<\_ACEOF
15606 #define HAVE_STRINGIZE 1
15607 _ACEOF
15608
15609 fi
15610
15611
15612   { $as_echo "$as_me:$LINENO: checking for flexible array members" >&5
15613 $as_echo_n "checking for flexible array members... " >&6; }
15614 if test "${ac_cv_c_flexmember+set}" = set; then
15615   $as_echo_n "(cached) " >&6
15616 else
15617   cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623 #include <stdlib.h>
15624             #include <stdio.h>
15625             #include <stddef.h>
15626             struct s { int n; double d[]; };
15627 int
15628 main ()
15629 {
15630 int m = getchar ();
15631             struct s *p = malloc (offsetof (struct s, d)
15632                                   + m * sizeof (double));
15633             p->d[0] = 0.0;
15634             return p->d != (double *) NULL;
15635   ;
15636   return 0;
15637 }
15638 _ACEOF
15639 rm -f conftest.$ac_objext
15640 if { (ac_try="$ac_compile"
15641 case "(($ac_try" in
15642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15643   *) ac_try_echo=$ac_try;;
15644 esac
15645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15646 $as_echo "$ac_try_echo") >&5
15647   (eval "$ac_compile") 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } && {
15654          test -z "$ac_c_werror_flag" ||
15655          test ! -s conftest.err
15656        } && test -s conftest.$ac_objext; then
15657   ac_cv_c_flexmember=yes
15658 else
15659   $as_echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662         ac_cv_c_flexmember=no
15663 fi
15664
15665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15666 fi
15667 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_flexmember" >&5
15668 $as_echo "$ac_cv_c_flexmember" >&6; }
15669   if test $ac_cv_c_flexmember = yes; then
15670
15671 cat >>confdefs.h <<\_ACEOF
15672 #define FLEXIBLE_ARRAY_MEMBER /**/
15673 _ACEOF
15674
15675   else
15676     cat >>confdefs.h <<\_ACEOF
15677 #define FLEXIBLE_ARRAY_MEMBER 1
15678 _ACEOF
15679
15680   fi
15681
15682 { $as_echo "$as_me:$LINENO: checking for signed types" >&5
15683 $as_echo_n "checking for signed types... " >&6; }
15684 if test "${pgac_cv_c_signed+set}" = set; then
15685   $as_echo_n "(cached) " >&6
15686 else
15687   cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h.  */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h.  */
15693
15694 int
15695 main ()
15696 {
15697 signed char c; signed short s; signed int i;
15698   ;
15699   return 0;
15700 }
15701 _ACEOF
15702 rm -f conftest.$ac_objext
15703 if { (ac_try="$ac_compile"
15704 case "(($ac_try" in
15705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706   *) ac_try_echo=$ac_try;;
15707 esac
15708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15709 $as_echo "$ac_try_echo") >&5
15710   (eval "$ac_compile") 2>conftest.er1
15711   ac_status=$?
15712   grep -v '^ *+' conftest.er1 >conftest.err
15713   rm -f conftest.er1
15714   cat conftest.err >&5
15715   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); } && {
15717          test -z "$ac_c_werror_flag" ||
15718          test ! -s conftest.err
15719        } && test -s conftest.$ac_objext; then
15720   pgac_cv_c_signed=yes
15721 else
15722   $as_echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15724
15725         pgac_cv_c_signed=no
15726 fi
15727
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15729 fi
15730 { $as_echo "$as_me:$LINENO: result: $pgac_cv_c_signed" >&5
15731 $as_echo "$pgac_cv_c_signed" >&6; }
15732 if test x"$pgac_cv_c_signed" = xno ; then
15733
15734 cat >>confdefs.h <<\_ACEOF
15735 #define signed /**/
15736 _ACEOF
15737
15738 fi
15739 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
15740 $as_echo_n "checking for working volatile... " >&6; }
15741 if test "${ac_cv_c_volatile+set}" = set; then
15742   $as_echo_n "(cached) " >&6
15743 else
15744   cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h.  */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h.  */
15750
15751 int
15752 main ()
15753 {
15754
15755 volatile int x;
15756 int * volatile y = (int *) 0;
15757 return !x && !y;
15758   ;
15759   return 0;
15760 }
15761 _ACEOF
15762 rm -f conftest.$ac_objext
15763 if { (ac_try="$ac_compile"
15764 case "(($ac_try" in
15765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766   *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770   (eval "$ac_compile") 2>conftest.er1
15771   ac_status=$?
15772   grep -v '^ *+' conftest.er1 >conftest.err
15773   rm -f conftest.er1
15774   cat conftest.err >&5
15775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776   (exit $ac_status); } && {
15777          test -z "$ac_c_werror_flag" ||
15778          test ! -s conftest.err
15779        } && test -s conftest.$ac_objext; then
15780   ac_cv_c_volatile=yes
15781 else
15782   $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785         ac_cv_c_volatile=no
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 fi
15790 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
15791 $as_echo "$ac_cv_c_volatile" >&6; }
15792 if test $ac_cv_c_volatile = no; then
15793
15794 cat >>confdefs.h <<\_ACEOF
15795 #define volatile /**/
15796 _ACEOF
15797
15798 fi
15799
15800 { $as_echo "$as_me:$LINENO: checking for __func__" >&5
15801 $as_echo_n "checking for __func__... " >&6; }
15802 if test "${pgac_cv_funcname_func_support+set}" = set; then
15803   $as_echo_n "(cached) " >&6
15804 else
15805   cat >conftest.$ac_ext <<_ACEOF
15806 /* confdefs.h.  */
15807 _ACEOF
15808 cat confdefs.h >>conftest.$ac_ext
15809 cat >>conftest.$ac_ext <<_ACEOF
15810 /* end confdefs.h.  */
15811 #include <stdio.h>
15812 int
15813 main ()
15814 {
15815 printf("%s\n", __func__);
15816   ;
15817   return 0;
15818 }
15819 _ACEOF
15820 rm -f conftest.$ac_objext
15821 if { (ac_try="$ac_compile"
15822 case "(($ac_try" in
15823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824   *) ac_try_echo=$ac_try;;
15825 esac
15826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15827 $as_echo "$ac_try_echo") >&5
15828   (eval "$ac_compile") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } && {
15835          test -z "$ac_c_werror_flag" ||
15836          test ! -s conftest.err
15837        } && test -s conftest.$ac_objext; then
15838   pgac_cv_funcname_func_support=yes
15839 else
15840   $as_echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15842
15843         pgac_cv_funcname_func_support=no
15844 fi
15845
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 fi
15848 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_func_support" >&5
15849 $as_echo "$pgac_cv_funcname_func_support" >&6; }
15850 if test x"$pgac_cv_funcname_func_support" = xyes ; then
15851
15852 cat >>confdefs.h <<\_ACEOF
15853 #define HAVE_FUNCNAME__FUNC 1
15854 _ACEOF
15855
15856 else
15857 { $as_echo "$as_me:$LINENO: checking for __FUNCTION__" >&5
15858 $as_echo_n "checking for __FUNCTION__... " >&6; }
15859 if test "${pgac_cv_funcname_function_support+set}" = set; then
15860   $as_echo_n "(cached) " >&6
15861 else
15862   cat >conftest.$ac_ext <<_ACEOF
15863 /* confdefs.h.  */
15864 _ACEOF
15865 cat confdefs.h >>conftest.$ac_ext
15866 cat >>conftest.$ac_ext <<_ACEOF
15867 /* end confdefs.h.  */
15868 #include <stdio.h>
15869 int
15870 main ()
15871 {
15872 printf("%s\n", __FUNCTION__);
15873   ;
15874   return 0;
15875 }
15876 _ACEOF
15877 rm -f conftest.$ac_objext
15878 if { (ac_try="$ac_compile"
15879 case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15884 $as_echo "$ac_try_echo") >&5
15885   (eval "$ac_compile") 2>conftest.er1
15886   ac_status=$?
15887   grep -v '^ *+' conftest.er1 >conftest.err
15888   rm -f conftest.er1
15889   cat conftest.err >&5
15890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); } && {
15892          test -z "$ac_c_werror_flag" ||
15893          test ! -s conftest.err
15894        } && test -s conftest.$ac_objext; then
15895   pgac_cv_funcname_function_support=yes
15896 else
15897   $as_echo "$as_me: failed program was:" >&5
15898 sed 's/^/| /' conftest.$ac_ext >&5
15899
15900         pgac_cv_funcname_function_support=no
15901 fi
15902
15903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15904 fi
15905 { $as_echo "$as_me:$LINENO: result: $pgac_cv_funcname_function_support" >&5
15906 $as_echo "$pgac_cv_funcname_function_support" >&6; }
15907 if test x"$pgac_cv_funcname_function_support" = xyes ; then
15908
15909 cat >>confdefs.h <<\_ACEOF
15910 #define HAVE_FUNCNAME__FUNCTION 1
15911 _ACEOF
15912
15913 fi
15914 fi
15915 { $as_echo "$as_me:$LINENO: checking for _Static_assert" >&5
15916 $as_echo_n "checking for _Static_assert... " >&6; }
15917 if test "${pgac_cv__static_assert+set}" = set; then
15918   $as_echo_n "(cached) " >&6
15919 else
15920   cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h.  */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h.  */
15926
15927 int
15928 main ()
15929 {
15930 ({ _Static_assert(1, "foo"); })
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939   *) ac_try_echo=$ac_try;;
15940 esac
15941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15942 $as_echo "$ac_try_echo") >&5
15943   (eval "$ac_link") 2>conftest.er1
15944   ac_status=$?
15945   grep -v '^ *+' conftest.er1 >conftest.err
15946   rm -f conftest.er1
15947   cat conftest.err >&5
15948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949   (exit $ac_status); } && {
15950          test -z "$ac_c_werror_flag" ||
15951          test ! -s conftest.err
15952        } && test -s conftest$ac_exeext && {
15953          test "$cross_compiling" = yes ||
15954          $as_test_x conftest$ac_exeext
15955        }; then
15956   pgac_cv__static_assert=yes
15957 else
15958   $as_echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961         pgac_cv__static_assert=no
15962 fi
15963
15964 rm -rf conftest.dSYM
15965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15966       conftest$ac_exeext conftest.$ac_ext
15967 fi
15968 { $as_echo "$as_me:$LINENO: result: $pgac_cv__static_assert" >&5
15969 $as_echo "$pgac_cv__static_assert" >&6; }
15970 if test x"$pgac_cv__static_assert" = xyes ; then
15971
15972 cat >>confdefs.h <<\_ACEOF
15973 #define HAVE__STATIC_ASSERT 1
15974 _ACEOF
15975
15976 fi
15977 { $as_echo "$as_me:$LINENO: checking for __builtin_types_compatible_p" >&5
15978 $as_echo_n "checking for __builtin_types_compatible_p... " >&6; }
15979 if test "${pgac_cv__types_compatible+set}" = set; then
15980   $as_echo_n "(cached) " >&6
15981 else
15982   cat >conftest.$ac_ext <<_ACEOF
15983 /* confdefs.h.  */
15984 _ACEOF
15985 cat confdefs.h >>conftest.$ac_ext
15986 cat >>conftest.$ac_ext <<_ACEOF
15987 /* end confdefs.h.  */
15988
15989 int
15990 main ()
15991 {
15992  int x; static int y[__builtin_types_compatible_p(__typeof__(x), int)];
15993   ;
15994   return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001   *) ac_try_echo=$ac_try;;
16002 esac
16003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16004 $as_echo "$ac_try_echo") >&5
16005   (eval "$ac_compile") 2>conftest.er1
16006   ac_status=$?
16007   grep -v '^ *+' conftest.er1 >conftest.err
16008   rm -f conftest.er1
16009   cat conftest.err >&5
16010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011   (exit $ac_status); } && {
16012          test -z "$ac_c_werror_flag" ||
16013          test ! -s conftest.err
16014        } && test -s conftest.$ac_objext; then
16015   pgac_cv__types_compatible=yes
16016 else
16017   $as_echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020         pgac_cv__types_compatible=no
16021 fi
16022
16023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16024 fi
16025 { $as_echo "$as_me:$LINENO: result: $pgac_cv__types_compatible" >&5
16026 $as_echo "$pgac_cv__types_compatible" >&6; }
16027 if test x"$pgac_cv__types_compatible" = xyes ; then
16028
16029 cat >>confdefs.h <<\_ACEOF
16030 #define HAVE__BUILTIN_TYPES_COMPATIBLE_P 1
16031 _ACEOF
16032
16033 fi
16034 { $as_echo "$as_me:$LINENO: checking for __builtin_constant_p" >&5
16035 $as_echo_n "checking for __builtin_constant_p... " >&6; }
16036 if test "${pgac_cv__builtin_constant_p+set}" = set; then
16037   $as_echo_n "(cached) " >&6
16038 else
16039   cat >conftest.$ac_ext <<_ACEOF
16040 /* confdefs.h.  */
16041 _ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h.  */
16045 static int x; static int y[__builtin_constant_p(x) ? x : 1];
16046 int
16047 main ()
16048 {
16049
16050   ;
16051   return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest.$ac_objext
16055 if { (ac_try="$ac_compile"
16056 case "(($ac_try" in
16057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058   *) ac_try_echo=$ac_try;;
16059 esac
16060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16061 $as_echo "$ac_try_echo") >&5
16062   (eval "$ac_compile") 2>conftest.er1
16063   ac_status=$?
16064   grep -v '^ *+' conftest.er1 >conftest.err
16065   rm -f conftest.er1
16066   cat conftest.err >&5
16067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068   (exit $ac_status); } && {
16069          test -z "$ac_c_werror_flag" ||
16070          test ! -s conftest.err
16071        } && test -s conftest.$ac_objext; then
16072   pgac_cv__builtin_constant_p=yes
16073 else
16074   $as_echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077         pgac_cv__builtin_constant_p=no
16078 fi
16079
16080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16081 fi
16082 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_constant_p" >&5
16083 $as_echo "$pgac_cv__builtin_constant_p" >&6; }
16084 if test x"$pgac_cv__builtin_constant_p" = xyes ; then
16085
16086 cat >>confdefs.h <<\_ACEOF
16087 #define HAVE__BUILTIN_CONSTANT_P 1
16088 _ACEOF
16089
16090 fi
16091 { $as_echo "$as_me:$LINENO: checking for __builtin_unreachable" >&5
16092 $as_echo_n "checking for __builtin_unreachable... " >&6; }
16093 if test "${pgac_cv__builtin_unreachable+set}" = set; then
16094   $as_echo_n "(cached) " >&6
16095 else
16096   cat >conftest.$ac_ext <<_ACEOF
16097 /* confdefs.h.  */
16098 _ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h.  */
16102
16103 int
16104 main ()
16105 {
16106 __builtin_unreachable();
16107   ;
16108   return 0;
16109 }
16110 _ACEOF
16111 rm -f conftest.$ac_objext conftest$ac_exeext
16112 if { (ac_try="$ac_link"
16113 case "(($ac_try" in
16114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115   *) ac_try_echo=$ac_try;;
16116 esac
16117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16118 $as_echo "$ac_try_echo") >&5
16119   (eval "$ac_link") 2>conftest.er1
16120   ac_status=$?
16121   grep -v '^ *+' conftest.er1 >conftest.err
16122   rm -f conftest.er1
16123   cat conftest.err >&5
16124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); } && {
16126          test -z "$ac_c_werror_flag" ||
16127          test ! -s conftest.err
16128        } && test -s conftest$ac_exeext && {
16129          test "$cross_compiling" = yes ||
16130          $as_test_x conftest$ac_exeext
16131        }; then
16132   pgac_cv__builtin_unreachable=yes
16133 else
16134   $as_echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137         pgac_cv__builtin_unreachable=no
16138 fi
16139
16140 rm -rf conftest.dSYM
16141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16142       conftest$ac_exeext conftest.$ac_ext
16143 fi
16144 { $as_echo "$as_me:$LINENO: result: $pgac_cv__builtin_unreachable" >&5
16145 $as_echo "$pgac_cv__builtin_unreachable" >&6; }
16146 if test x"$pgac_cv__builtin_unreachable" = xyes ; then
16147
16148 cat >>confdefs.h <<\_ACEOF
16149 #define HAVE__BUILTIN_UNREACHABLE 1
16150 _ACEOF
16151
16152 fi
16153 { $as_echo "$as_me:$LINENO: checking for __VA_ARGS__" >&5
16154 $as_echo_n "checking for __VA_ARGS__... " >&6; }
16155 if test "${pgac_cv__va_args+set}" = set; then
16156   $as_echo_n "(cached) " >&6
16157 else
16158   cat >conftest.$ac_ext <<_ACEOF
16159 /* confdefs.h.  */
16160 _ACEOF
16161 cat confdefs.h >>conftest.$ac_ext
16162 cat >>conftest.$ac_ext <<_ACEOF
16163 /* end confdefs.h.  */
16164 #include <stdio.h>
16165 int
16166 main ()
16167 {
16168 #define debug(...) fprintf(stderr, __VA_ARGS__)
16169 debug("%s", "blarg");
16170
16171   ;
16172   return 0;
16173 }
16174 _ACEOF
16175 rm -f conftest.$ac_objext
16176 if { (ac_try="$ac_compile"
16177 case "(($ac_try" in
16178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179   *) ac_try_echo=$ac_try;;
16180 esac
16181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16182 $as_echo "$ac_try_echo") >&5
16183   (eval "$ac_compile") 2>conftest.er1
16184   ac_status=$?
16185   grep -v '^ *+' conftest.er1 >conftest.err
16186   rm -f conftest.er1
16187   cat conftest.err >&5
16188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); } && {
16190          test -z "$ac_c_werror_flag" ||
16191          test ! -s conftest.err
16192        } && test -s conftest.$ac_objext; then
16193   pgac_cv__va_args=yes
16194 else
16195   $as_echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198         pgac_cv__va_args=no
16199 fi
16200
16201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16202 fi
16203 { $as_echo "$as_me:$LINENO: result: $pgac_cv__va_args" >&5
16204 $as_echo "$pgac_cv__va_args" >&6; }
16205 if test x"$pgac_cv__va_args" = xyes ; then
16206
16207 cat >>confdefs.h <<\_ACEOF
16208 #define HAVE__VA_ARGS 1
16209 _ACEOF
16210
16211 fi
16212 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16213 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16214 if test "${ac_cv_struct_tm+set}" = set; then
16215   $as_echo_n "(cached) " >&6
16216 else
16217   cat >conftest.$ac_ext <<_ACEOF
16218 /* confdefs.h.  */
16219 _ACEOF
16220 cat confdefs.h >>conftest.$ac_ext
16221 cat >>conftest.$ac_ext <<_ACEOF
16222 /* end confdefs.h.  */
16223 #include <sys/types.h>
16224 #include <time.h>
16225
16226 int
16227 main ()
16228 {
16229 struct tm tm;
16230                                      int *p = &tm.tm_sec;
16231                                      return !p;
16232   ;
16233   return 0;
16234 }
16235 _ACEOF
16236 rm -f conftest.$ac_objext
16237 if { (ac_try="$ac_compile"
16238 case "(($ac_try" in
16239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16240   *) ac_try_echo=$ac_try;;
16241 esac
16242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16243 $as_echo "$ac_try_echo") >&5
16244   (eval "$ac_compile") 2>conftest.er1
16245   ac_status=$?
16246   grep -v '^ *+' conftest.er1 >conftest.err
16247   rm -f conftest.er1
16248   cat conftest.err >&5
16249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250   (exit $ac_status); } && {
16251          test -z "$ac_c_werror_flag" ||
16252          test ! -s conftest.err
16253        } && test -s conftest.$ac_objext; then
16254   ac_cv_struct_tm=time.h
16255 else
16256   $as_echo "$as_me: failed program was:" >&5
16257 sed 's/^/| /' conftest.$ac_ext >&5
16258
16259         ac_cv_struct_tm=sys/time.h
16260 fi
16261
16262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16263 fi
16264 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16265 $as_echo "$ac_cv_struct_tm" >&6; }
16266 if test $ac_cv_struct_tm = sys/time.h; then
16267
16268 cat >>confdefs.h <<\_ACEOF
16269 #define TM_IN_SYS_TIME 1
16270 _ACEOF
16271
16272 fi
16273
16274 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
16275 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
16276 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
16277   $as_echo_n "(cached) " >&6
16278 else
16279   cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285 #include <sys/types.h>
16286 #include <$ac_cv_struct_tm>
16287
16288
16289 int
16290 main ()
16291 {
16292 static struct tm ac_aggr;
16293 if (ac_aggr.tm_zone)
16294 return 0;
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext
16300 if { (ac_try="$ac_compile"
16301 case "(($ac_try" in
16302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303   *) ac_try_echo=$ac_try;;
16304 esac
16305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16306 $as_echo "$ac_try_echo") >&5
16307   (eval "$ac_compile") 2>conftest.er1
16308   ac_status=$?
16309   grep -v '^ *+' conftest.er1 >conftest.err
16310   rm -f conftest.er1
16311   cat conftest.err >&5
16312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); } && {
16314          test -z "$ac_c_werror_flag" ||
16315          test ! -s conftest.err
16316        } && test -s conftest.$ac_objext; then
16317   ac_cv_member_struct_tm_tm_zone=yes
16318 else
16319   $as_echo "$as_me: failed program was:" >&5
16320 sed 's/^/| /' conftest.$ac_ext >&5
16321
16322         cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328 #include <sys/types.h>
16329 #include <$ac_cv_struct_tm>
16330
16331
16332 int
16333 main ()
16334 {
16335 static struct tm ac_aggr;
16336 if (sizeof ac_aggr.tm_zone)
16337 return 0;
16338   ;
16339   return 0;
16340 }
16341 _ACEOF
16342 rm -f conftest.$ac_objext
16343 if { (ac_try="$ac_compile"
16344 case "(($ac_try" in
16345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346   *) ac_try_echo=$ac_try;;
16347 esac
16348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16349 $as_echo "$ac_try_echo") >&5
16350   (eval "$ac_compile") 2>conftest.er1
16351   ac_status=$?
16352   grep -v '^ *+' conftest.er1 >conftest.err
16353   rm -f conftest.er1
16354   cat conftest.err >&5
16355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356   (exit $ac_status); } && {
16357          test -z "$ac_c_werror_flag" ||
16358          test ! -s conftest.err
16359        } && test -s conftest.$ac_objext; then
16360   ac_cv_member_struct_tm_tm_zone=yes
16361 else
16362   $as_echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16364
16365         ac_cv_member_struct_tm_tm_zone=no
16366 fi
16367
16368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 fi
16370
16371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16372 fi
16373 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
16374 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
16375 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
16376
16377 cat >>confdefs.h <<_ACEOF
16378 #define HAVE_STRUCT_TM_TM_ZONE 1
16379 _ACEOF
16380
16381
16382 fi
16383
16384 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
16385
16386 cat >>confdefs.h <<\_ACEOF
16387 #define HAVE_TM_ZONE 1
16388 _ACEOF
16389
16390 fi
16391 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
16392 $as_echo_n "checking for tzname... " >&6; }
16393 if test "${ac_cv_var_tzname+set}" = set; then
16394   $as_echo_n "(cached) " >&6
16395 else
16396   cat >conftest.$ac_ext <<_ACEOF
16397 /* confdefs.h.  */
16398 _ACEOF
16399 cat confdefs.h >>conftest.$ac_ext
16400 cat >>conftest.$ac_ext <<_ACEOF
16401 /* end confdefs.h.  */
16402 #include <time.h>
16403 #ifndef tzname /* For SGI.  */
16404 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
16405 #endif
16406
16407 int
16408 main ()
16409 {
16410 atoi(*tzname);
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext conftest$ac_exeext
16416 if { (ac_try="$ac_link"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16422 $as_echo "$ac_try_echo") >&5
16423   (eval "$ac_link") 2>conftest.er1
16424   ac_status=$?
16425   grep -v '^ *+' conftest.er1 >conftest.err
16426   rm -f conftest.er1
16427   cat conftest.err >&5
16428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429   (exit $ac_status); } && {
16430          test -z "$ac_c_werror_flag" ||
16431          test ! -s conftest.err
16432        } && test -s conftest$ac_exeext && {
16433          test "$cross_compiling" = yes ||
16434          $as_test_x conftest$ac_exeext
16435        }; then
16436   ac_cv_var_tzname=yes
16437 else
16438   $as_echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16440
16441         ac_cv_var_tzname=no
16442 fi
16443
16444 rm -rf conftest.dSYM
16445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16446       conftest$ac_exeext conftest.$ac_ext
16447 fi
16448 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
16449 $as_echo "$ac_cv_var_tzname" >&6; }
16450 if test $ac_cv_var_tzname = yes; then
16451
16452 cat >>confdefs.h <<\_ACEOF
16453 #define HAVE_TZNAME 1
16454 _ACEOF
16455
16456 fi
16457
16458 { $as_echo "$as_me:$LINENO: checking for union semun" >&5
16459 $as_echo_n "checking for union semun... " >&6; }
16460 if test "${ac_cv_type_union_semun+set}" = set; then
16461   $as_echo_n "(cached) " >&6
16462 else
16463   ac_cv_type_union_semun=no
16464 cat >conftest.$ac_ext <<_ACEOF
16465 /* confdefs.h.  */
16466 _ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h.  */
16470 #include <sys/types.h>
16471 #include <sys/ipc.h>
16472 #include <sys/sem.h>
16473
16474 int
16475 main ()
16476 {
16477 if (sizeof (union semun))
16478        return 0;
16479   ;
16480   return 0;
16481 }
16482 _ACEOF
16483 rm -f conftest.$ac_objext
16484 if { (ac_try="$ac_compile"
16485 case "(($ac_try" in
16486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487   *) ac_try_echo=$ac_try;;
16488 esac
16489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16490 $as_echo "$ac_try_echo") >&5
16491   (eval "$ac_compile") 2>conftest.er1
16492   ac_status=$?
16493   grep -v '^ *+' conftest.er1 >conftest.err
16494   rm -f conftest.er1
16495   cat conftest.err >&5
16496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497   (exit $ac_status); } && {
16498          test -z "$ac_c_werror_flag" ||
16499          test ! -s conftest.err
16500        } && test -s conftest.$ac_objext; then
16501   cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h.  */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h.  */
16507 #include <sys/types.h>
16508 #include <sys/ipc.h>
16509 #include <sys/sem.h>
16510
16511 int
16512 main ()
16513 {
16514 if (sizeof ((union semun)))
16515           return 0;
16516   ;
16517   return 0;
16518 }
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (ac_try="$ac_compile"
16522 case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16527 $as_echo "$ac_try_echo") >&5
16528   (eval "$ac_compile") 2>conftest.er1
16529   ac_status=$?
16530   grep -v '^ *+' conftest.er1 >conftest.err
16531   rm -f conftest.er1
16532   cat conftest.err >&5
16533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); } && {
16535          test -z "$ac_c_werror_flag" ||
16536          test ! -s conftest.err
16537        } && test -s conftest.$ac_objext; then
16538   :
16539 else
16540   $as_echo "$as_me: failed program was:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16542
16543         ac_cv_type_union_semun=yes
16544 fi
16545
16546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16547 else
16548   $as_echo "$as_me: failed program was:" >&5
16549 sed 's/^/| /' conftest.$ac_ext >&5
16550
16551
16552 fi
16553
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 fi
16556 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_union_semun" >&5
16557 $as_echo "$ac_cv_type_union_semun" >&6; }
16558 if test "x$ac_cv_type_union_semun" = x""yes; then
16559
16560 cat >>confdefs.h <<_ACEOF
16561 #define HAVE_UNION_SEMUN 1
16562 _ACEOF
16563
16564
16565 fi
16566
16567 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_un" >&5
16568 $as_echo_n "checking for struct sockaddr_un... " >&6; }
16569 if test "${ac_cv_type_struct_sockaddr_un+set}" = set; then
16570   $as_echo_n "(cached) " >&6
16571 else
16572   ac_cv_type_struct_sockaddr_un=no
16573 cat >conftest.$ac_ext <<_ACEOF
16574 /* confdefs.h.  */
16575 _ACEOF
16576 cat confdefs.h >>conftest.$ac_ext
16577 cat >>conftest.$ac_ext <<_ACEOF
16578 /* end confdefs.h.  */
16579 #include <sys/types.h>
16580 #ifdef HAVE_SYS_UN_H
16581 #include <sys/un.h>
16582 #endif
16583
16584
16585 int
16586 main ()
16587 {
16588 if (sizeof (struct sockaddr_un))
16589        return 0;
16590   ;
16591   return 0;
16592 }
16593 _ACEOF
16594 rm -f conftest.$ac_objext
16595 if { (ac_try="$ac_compile"
16596 case "(($ac_try" in
16597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598   *) ac_try_echo=$ac_try;;
16599 esac
16600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16601 $as_echo "$ac_try_echo") >&5
16602   (eval "$ac_compile") 2>conftest.er1
16603   ac_status=$?
16604   grep -v '^ *+' conftest.er1 >conftest.err
16605   rm -f conftest.er1
16606   cat conftest.err >&5
16607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } && {
16609          test -z "$ac_c_werror_flag" ||
16610          test ! -s conftest.err
16611        } && test -s conftest.$ac_objext; then
16612   cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h.  */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h.  */
16618 #include <sys/types.h>
16619 #ifdef HAVE_SYS_UN_H
16620 #include <sys/un.h>
16621 #endif
16622
16623
16624 int
16625 main ()
16626 {
16627 if (sizeof ((struct sockaddr_un)))
16628           return 0;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16640 $as_echo "$ac_try_echo") >&5
16641   (eval "$ac_compile") 2>conftest.er1
16642   ac_status=$?
16643   grep -v '^ *+' conftest.er1 >conftest.err
16644   rm -f conftest.er1
16645   cat conftest.err >&5
16646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); } && {
16648          test -z "$ac_c_werror_flag" ||
16649          test ! -s conftest.err
16650        } && test -s conftest.$ac_objext; then
16651   :
16652 else
16653   $as_echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656         ac_cv_type_struct_sockaddr_un=yes
16657 fi
16658
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 else
16661   $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664
16665 fi
16666
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_un" >&5
16670 $as_echo "$ac_cv_type_struct_sockaddr_un" >&6; }
16671 if test "x$ac_cv_type_struct_sockaddr_un" = x""yes; then
16672
16673 cat >>confdefs.h <<\_ACEOF
16674 #define HAVE_UNIX_SOCKETS 1
16675 _ACEOF
16676
16677 fi
16678
16679 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
16680 $as_echo_n "checking for struct sockaddr_storage... " >&6; }
16681 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
16682   $as_echo_n "(cached) " >&6
16683 else
16684   ac_cv_type_struct_sockaddr_storage=no
16685 cat >conftest.$ac_ext <<_ACEOF
16686 /* confdefs.h.  */
16687 _ACEOF
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h.  */
16691 #include <sys/types.h>
16692 #ifdef HAVE_SYS_SOCKET_H
16693 #include <sys/socket.h>
16694 #endif
16695
16696
16697 int
16698 main ()
16699 {
16700 if (sizeof (struct sockaddr_storage))
16701        return 0;
16702   ;
16703   return 0;
16704 }
16705 _ACEOF
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16713 $as_echo "$ac_try_echo") >&5
16714   (eval "$ac_compile") 2>conftest.er1
16715   ac_status=$?
16716   grep -v '^ *+' conftest.er1 >conftest.err
16717   rm -f conftest.er1
16718   cat conftest.err >&5
16719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); } && {
16721          test -z "$ac_c_werror_flag" ||
16722          test ! -s conftest.err
16723        } && test -s conftest.$ac_objext; then
16724   cat >conftest.$ac_ext <<_ACEOF
16725 /* confdefs.h.  */
16726 _ACEOF
16727 cat confdefs.h >>conftest.$ac_ext
16728 cat >>conftest.$ac_ext <<_ACEOF
16729 /* end confdefs.h.  */
16730 #include <sys/types.h>
16731 #ifdef HAVE_SYS_SOCKET_H
16732 #include <sys/socket.h>
16733 #endif
16734
16735
16736 int
16737 main ()
16738 {
16739 if (sizeof ((struct sockaddr_storage)))
16740           return 0;
16741   ;
16742   return 0;
16743 }
16744 _ACEOF
16745 rm -f conftest.$ac_objext
16746 if { (ac_try="$ac_compile"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16752 $as_echo "$ac_try_echo") >&5
16753   (eval "$ac_compile") 2>conftest.er1
16754   ac_status=$?
16755   grep -v '^ *+' conftest.er1 >conftest.err
16756   rm -f conftest.er1
16757   cat conftest.err >&5
16758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16759   (exit $ac_status); } && {
16760          test -z "$ac_c_werror_flag" ||
16761          test ! -s conftest.err
16762        } && test -s conftest.$ac_objext; then
16763   :
16764 else
16765   $as_echo "$as_me: failed program was:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16767
16768         ac_cv_type_struct_sockaddr_storage=yes
16769 fi
16770
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 else
16773   $as_echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 fi
16781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
16782 $as_echo "$ac_cv_type_struct_sockaddr_storage" >&6; }
16783 if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then
16784
16785 cat >>confdefs.h <<_ACEOF
16786 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
16787 _ACEOF
16788
16789
16790 fi
16791
16792 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
16793 $as_echo_n "checking for struct sockaddr_storage.ss_family... " >&6; }
16794 if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
16795   $as_echo_n "(cached) " >&6
16796 else
16797   cat >conftest.$ac_ext <<_ACEOF
16798 /* confdefs.h.  */
16799 _ACEOF
16800 cat confdefs.h >>conftest.$ac_ext
16801 cat >>conftest.$ac_ext <<_ACEOF
16802 /* end confdefs.h.  */
16803 #include <sys/types.h>
16804 #ifdef HAVE_SYS_SOCKET_H
16805 #include <sys/socket.h>
16806 #endif
16807
16808
16809 int
16810 main ()
16811 {
16812 static struct sockaddr_storage ac_aggr;
16813 if (ac_aggr.ss_family)
16814 return 0;
16815   ;
16816   return 0;
16817 }
16818 _ACEOF
16819 rm -f conftest.$ac_objext
16820 if { (ac_try="$ac_compile"
16821 case "(($ac_try" in
16822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823   *) ac_try_echo=$ac_try;;
16824 esac
16825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16826 $as_echo "$ac_try_echo") >&5
16827   (eval "$ac_compile") 2>conftest.er1
16828   ac_status=$?
16829   grep -v '^ *+' conftest.er1 >conftest.err
16830   rm -f conftest.er1
16831   cat conftest.err >&5
16832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833   (exit $ac_status); } && {
16834          test -z "$ac_c_werror_flag" ||
16835          test ! -s conftest.err
16836        } && test -s conftest.$ac_objext; then
16837   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16838 else
16839   $as_echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.$ac_ext >&5
16841
16842         cat >conftest.$ac_ext <<_ACEOF
16843 /* confdefs.h.  */
16844 _ACEOF
16845 cat confdefs.h >>conftest.$ac_ext
16846 cat >>conftest.$ac_ext <<_ACEOF
16847 /* end confdefs.h.  */
16848 #include <sys/types.h>
16849 #ifdef HAVE_SYS_SOCKET_H
16850 #include <sys/socket.h>
16851 #endif
16852
16853
16854 int
16855 main ()
16856 {
16857 static struct sockaddr_storage ac_aggr;
16858 if (sizeof ac_aggr.ss_family)
16859 return 0;
16860   ;
16861   return 0;
16862 }
16863 _ACEOF
16864 rm -f conftest.$ac_objext
16865 if { (ac_try="$ac_compile"
16866 case "(($ac_try" in
16867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16868   *) ac_try_echo=$ac_try;;
16869 esac
16870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16871 $as_echo "$ac_try_echo") >&5
16872   (eval "$ac_compile") 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } && {
16879          test -z "$ac_c_werror_flag" ||
16880          test ! -s conftest.err
16881        } && test -s conftest.$ac_objext; then
16882   ac_cv_member_struct_sockaddr_storage_ss_family=yes
16883 else
16884   $as_echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16886
16887         ac_cv_member_struct_sockaddr_storage_ss_family=no
16888 fi
16889
16890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16891 fi
16892
16893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16894 fi
16895 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
16896 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_family" >&6; }
16897 if test "x$ac_cv_member_struct_sockaddr_storage_ss_family" = x""yes; then
16898
16899 cat >>confdefs.h <<_ACEOF
16900 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY 1
16901 _ACEOF
16902
16903
16904 fi
16905 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
16906 $as_echo_n "checking for struct sockaddr_storage.__ss_family... " >&6; }
16907 if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
16908   $as_echo_n "(cached) " >&6
16909 else
16910   cat >conftest.$ac_ext <<_ACEOF
16911 /* confdefs.h.  */
16912 _ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h.  */
16916 #include <sys/types.h>
16917 #ifdef HAVE_SYS_SOCKET_H
16918 #include <sys/socket.h>
16919 #endif
16920
16921
16922 int
16923 main ()
16924 {
16925 static struct sockaddr_storage ac_aggr;
16926 if (ac_aggr.__ss_family)
16927 return 0;
16928   ;
16929   return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940   (eval "$ac_compile") 2>conftest.er1
16941   ac_status=$?
16942   grep -v '^ *+' conftest.er1 >conftest.err
16943   rm -f conftest.er1
16944   cat conftest.err >&5
16945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); } && {
16947          test -z "$ac_c_werror_flag" ||
16948          test ! -s conftest.err
16949        } && test -s conftest.$ac_objext; then
16950   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16951 else
16952   $as_echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16954
16955         cat >conftest.$ac_ext <<_ACEOF
16956 /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961 #include <sys/types.h>
16962 #ifdef HAVE_SYS_SOCKET_H
16963 #include <sys/socket.h>
16964 #endif
16965
16966
16967 int
16968 main ()
16969 {
16970 static struct sockaddr_storage ac_aggr;
16971 if (sizeof ac_aggr.__ss_family)
16972 return 0;
16973   ;
16974   return 0;
16975 }
16976 _ACEOF
16977 rm -f conftest.$ac_objext
16978 if { (ac_try="$ac_compile"
16979 case "(($ac_try" in
16980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16981   *) ac_try_echo=$ac_try;;
16982 esac
16983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16984 $as_echo "$ac_try_echo") >&5
16985   (eval "$ac_compile") 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } && {
16992          test -z "$ac_c_werror_flag" ||
16993          test ! -s conftest.err
16994        } && test -s conftest.$ac_objext; then
16995   ac_cv_member_struct_sockaddr_storage___ss_family=yes
16996 else
16997   $as_echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000         ac_cv_member_struct_sockaddr_storage___ss_family=no
17001 fi
17002
17003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17004 fi
17005
17006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17007 fi
17008 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
17009 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_family" >&6; }
17010 if test "x$ac_cv_member_struct_sockaddr_storage___ss_family" = x""yes; then
17011
17012 cat >>confdefs.h <<_ACEOF
17013 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_FAMILY 1
17014 _ACEOF
17015
17016
17017 fi
17018 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_len" >&5
17019 $as_echo_n "checking for struct sockaddr_storage.ss_len... " >&6; }
17020 if test "${ac_cv_member_struct_sockaddr_storage_ss_len+set}" = set; then
17021   $as_echo_n "(cached) " >&6
17022 else
17023   cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h.  */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h.  */
17029 #include <sys/types.h>
17030 #ifdef HAVE_SYS_SOCKET_H
17031 #include <sys/socket.h>
17032 #endif
17033
17034
17035 int
17036 main ()
17037 {
17038 static struct sockaddr_storage ac_aggr;
17039 if (ac_aggr.ss_len)
17040 return 0;
17041   ;
17042   return 0;
17043 }
17044 _ACEOF
17045 rm -f conftest.$ac_objext
17046 if { (ac_try="$ac_compile"
17047 case "(($ac_try" in
17048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049   *) ac_try_echo=$ac_try;;
17050 esac
17051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17052 $as_echo "$ac_try_echo") >&5
17053   (eval "$ac_compile") 2>conftest.er1
17054   ac_status=$?
17055   grep -v '^ *+' conftest.er1 >conftest.err
17056   rm -f conftest.er1
17057   cat conftest.err >&5
17058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } && {
17060          test -z "$ac_c_werror_flag" ||
17061          test ! -s conftest.err
17062        } && test -s conftest.$ac_objext; then
17063   ac_cv_member_struct_sockaddr_storage_ss_len=yes
17064 else
17065   $as_echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17067
17068         cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074 #include <sys/types.h>
17075 #ifdef HAVE_SYS_SOCKET_H
17076 #include <sys/socket.h>
17077 #endif
17078
17079
17080 int
17081 main ()
17082 {
17083 static struct sockaddr_storage ac_aggr;
17084 if (sizeof ac_aggr.ss_len)
17085 return 0;
17086   ;
17087   return 0;
17088 }
17089 _ACEOF
17090 rm -f conftest.$ac_objext
17091 if { (ac_try="$ac_compile"
17092 case "(($ac_try" in
17093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094   *) ac_try_echo=$ac_try;;
17095 esac
17096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17097 $as_echo "$ac_try_echo") >&5
17098   (eval "$ac_compile") 2>conftest.er1
17099   ac_status=$?
17100   grep -v '^ *+' conftest.er1 >conftest.err
17101   rm -f conftest.er1
17102   cat conftest.err >&5
17103   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104   (exit $ac_status); } && {
17105          test -z "$ac_c_werror_flag" ||
17106          test ! -s conftest.err
17107        } && test -s conftest.$ac_objext; then
17108   ac_cv_member_struct_sockaddr_storage_ss_len=yes
17109 else
17110   $as_echo "$as_me: failed program was:" >&5
17111 sed 's/^/| /' conftest.$ac_ext >&5
17112
17113         ac_cv_member_struct_sockaddr_storage_ss_len=no
17114 fi
17115
17116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17117 fi
17118
17119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17120 fi
17121 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_len" >&5
17122 $as_echo "$ac_cv_member_struct_sockaddr_storage_ss_len" >&6; }
17123 if test "x$ac_cv_member_struct_sockaddr_storage_ss_len" = x""yes; then
17124
17125 cat >>confdefs.h <<_ACEOF
17126 #define HAVE_STRUCT_SOCKADDR_STORAGE_SS_LEN 1
17127 _ACEOF
17128
17129
17130 fi
17131 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_len" >&5
17132 $as_echo_n "checking for struct sockaddr_storage.__ss_len... " >&6; }
17133 if test "${ac_cv_member_struct_sockaddr_storage___ss_len+set}" = set; then
17134   $as_echo_n "(cached) " >&6
17135 else
17136   cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h.  */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h.  */
17142 #include <sys/types.h>
17143 #ifdef HAVE_SYS_SOCKET_H
17144 #include <sys/socket.h>
17145 #endif
17146
17147
17148 int
17149 main ()
17150 {
17151 static struct sockaddr_storage ac_aggr;
17152 if (ac_aggr.__ss_len)
17153 return 0;
17154   ;
17155   return 0;
17156 }
17157 _ACEOF
17158 rm -f conftest.$ac_objext
17159 if { (ac_try="$ac_compile"
17160 case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17165 $as_echo "$ac_try_echo") >&5
17166   (eval "$ac_compile") 2>conftest.er1
17167   ac_status=$?
17168   grep -v '^ *+' conftest.er1 >conftest.err
17169   rm -f conftest.er1
17170   cat conftest.err >&5
17171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172   (exit $ac_status); } && {
17173          test -z "$ac_c_werror_flag" ||
17174          test ! -s conftest.err
17175        } && test -s conftest.$ac_objext; then
17176   ac_cv_member_struct_sockaddr_storage___ss_len=yes
17177 else
17178   $as_echo "$as_me: failed program was:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17180
17181         cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h.  */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h.  */
17187 #include <sys/types.h>
17188 #ifdef HAVE_SYS_SOCKET_H
17189 #include <sys/socket.h>
17190 #endif
17191
17192
17193 int
17194 main ()
17195 {
17196 static struct sockaddr_storage ac_aggr;
17197 if (sizeof ac_aggr.__ss_len)
17198 return 0;
17199   ;
17200   return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext
17204 if { (ac_try="$ac_compile"
17205 case "(($ac_try" in
17206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207   *) ac_try_echo=$ac_try;;
17208 esac
17209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17210 $as_echo "$ac_try_echo") >&5
17211   (eval "$ac_compile") 2>conftest.er1
17212   ac_status=$?
17213   grep -v '^ *+' conftest.er1 >conftest.err
17214   rm -f conftest.er1
17215   cat conftest.err >&5
17216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } && {
17218          test -z "$ac_c_werror_flag" ||
17219          test ! -s conftest.err
17220        } && test -s conftest.$ac_objext; then
17221   ac_cv_member_struct_sockaddr_storage___ss_len=yes
17222 else
17223   $as_echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226         ac_cv_member_struct_sockaddr_storage___ss_len=no
17227 fi
17228
17229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17230 fi
17231
17232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17233 fi
17234 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_len" >&5
17235 $as_echo "$ac_cv_member_struct_sockaddr_storage___ss_len" >&6; }
17236 if test "x$ac_cv_member_struct_sockaddr_storage___ss_len" = x""yes; then
17237
17238 cat >>confdefs.h <<_ACEOF
17239 #define HAVE_STRUCT_SOCKADDR_STORAGE___SS_LEN 1
17240 _ACEOF
17241
17242
17243 fi
17244 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
17245 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
17246 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
17247   $as_echo_n "(cached) " >&6
17248 else
17249   cat >conftest.$ac_ext <<_ACEOF
17250 /* confdefs.h.  */
17251 _ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h.  */
17255 #include <sys/types.h>
17256 #ifdef HAVE_SYS_SOCKET_H
17257 #include <sys/socket.h>
17258 #endif
17259
17260
17261 int
17262 main ()
17263 {
17264 static struct sockaddr ac_aggr;
17265 if (ac_aggr.sa_len)
17266 return 0;
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (ac_try="$ac_compile"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17278 $as_echo "$ac_try_echo") >&5
17279   (eval "$ac_compile") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } && {
17286          test -z "$ac_c_werror_flag" ||
17287          test ! -s conftest.err
17288        } && test -s conftest.$ac_objext; then
17289   ac_cv_member_struct_sockaddr_sa_len=yes
17290 else
17291   $as_echo "$as_me: failed program was:" >&5
17292 sed 's/^/| /' conftest.$ac_ext >&5
17293
17294         cat >conftest.$ac_ext <<_ACEOF
17295 /* confdefs.h.  */
17296 _ACEOF
17297 cat confdefs.h >>conftest.$ac_ext
17298 cat >>conftest.$ac_ext <<_ACEOF
17299 /* end confdefs.h.  */
17300 #include <sys/types.h>
17301 #ifdef HAVE_SYS_SOCKET_H
17302 #include <sys/socket.h>
17303 #endif
17304
17305
17306 int
17307 main ()
17308 {
17309 static struct sockaddr ac_aggr;
17310 if (sizeof ac_aggr.sa_len)
17311 return 0;
17312   ;
17313   return 0;
17314 }
17315 _ACEOF
17316 rm -f conftest.$ac_objext
17317 if { (ac_try="$ac_compile"
17318 case "(($ac_try" in
17319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17320   *) ac_try_echo=$ac_try;;
17321 esac
17322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17323 $as_echo "$ac_try_echo") >&5
17324   (eval "$ac_compile") 2>conftest.er1
17325   ac_status=$?
17326   grep -v '^ *+' conftest.er1 >conftest.err
17327   rm -f conftest.er1
17328   cat conftest.err >&5
17329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330   (exit $ac_status); } && {
17331          test -z "$ac_c_werror_flag" ||
17332          test ! -s conftest.err
17333        } && test -s conftest.$ac_objext; then
17334   ac_cv_member_struct_sockaddr_sa_len=yes
17335 else
17336   $as_echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17338
17339         ac_cv_member_struct_sockaddr_sa_len=no
17340 fi
17341
17342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 fi
17344
17345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17346 fi
17347 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
17348 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
17349 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
17350
17351 cat >>confdefs.h <<_ACEOF
17352 #define HAVE_STRUCT_SOCKADDR_SA_LEN 1
17353 _ACEOF
17354
17355
17356 fi
17357
17358 { $as_echo "$as_me:$LINENO: checking for struct addrinfo" >&5
17359 $as_echo_n "checking for struct addrinfo... " >&6; }
17360 if test "${ac_cv_type_struct_addrinfo+set}" = set; then
17361   $as_echo_n "(cached) " >&6
17362 else
17363   ac_cv_type_struct_addrinfo=no
17364 cat >conftest.$ac_ext <<_ACEOF
17365 /* confdefs.h.  */
17366 _ACEOF
17367 cat confdefs.h >>conftest.$ac_ext
17368 cat >>conftest.$ac_ext <<_ACEOF
17369 /* end confdefs.h.  */
17370 #include <sys/types.h>
17371 #include <sys/socket.h>
17372 #include <netdb.h>
17373
17374
17375 int
17376 main ()
17377 {
17378 if (sizeof (struct addrinfo))
17379        return 0;
17380   ;
17381   return 0;
17382 }
17383 _ACEOF
17384 rm -f conftest.$ac_objext
17385 if { (ac_try="$ac_compile"
17386 case "(($ac_try" in
17387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388   *) ac_try_echo=$ac_try;;
17389 esac
17390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17391 $as_echo "$ac_try_echo") >&5
17392   (eval "$ac_compile") 2>conftest.er1
17393   ac_status=$?
17394   grep -v '^ *+' conftest.er1 >conftest.err
17395   rm -f conftest.er1
17396   cat conftest.err >&5
17397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); } && {
17399          test -z "$ac_c_werror_flag" ||
17400          test ! -s conftest.err
17401        } && test -s conftest.$ac_objext; then
17402   cat >conftest.$ac_ext <<_ACEOF
17403 /* confdefs.h.  */
17404 _ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h.  */
17408 #include <sys/types.h>
17409 #include <sys/socket.h>
17410 #include <netdb.h>
17411
17412
17413 int
17414 main ()
17415 {
17416 if (sizeof ((struct addrinfo)))
17417           return 0;
17418   ;
17419   return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext
17423 if { (ac_try="$ac_compile"
17424 case "(($ac_try" in
17425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426   *) ac_try_echo=$ac_try;;
17427 esac
17428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17429 $as_echo "$ac_try_echo") >&5
17430   (eval "$ac_compile") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } && {
17437          test -z "$ac_c_werror_flag" ||
17438          test ! -s conftest.err
17439        } && test -s conftest.$ac_objext; then
17440   :
17441 else
17442   $as_echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         ac_cv_type_struct_addrinfo=yes
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 else
17450   $as_echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453
17454 fi
17455
17456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17457 fi
17458 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
17459 $as_echo "$ac_cv_type_struct_addrinfo" >&6; }
17460 if test "x$ac_cv_type_struct_addrinfo" = x""yes; then
17461
17462 cat >>confdefs.h <<_ACEOF
17463 #define HAVE_STRUCT_ADDRINFO 1
17464 _ACEOF
17465
17466
17467 fi
17468
17469
17470   { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
17471 $as_echo_n "checking for intptr_t... " >&6; }
17472 if test "${ac_cv_type_intptr_t+set}" = set; then
17473   $as_echo_n "(cached) " >&6
17474 else
17475   ac_cv_type_intptr_t=no
17476 cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482 $ac_includes_default
17483 int
17484 main ()
17485 {
17486 if (sizeof (intptr_t))
17487        return 0;
17488   ;
17489   return 0;
17490 }
17491 _ACEOF
17492 rm -f conftest.$ac_objext
17493 if { (ac_try="$ac_compile"
17494 case "(($ac_try" in
17495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496   *) ac_try_echo=$ac_try;;
17497 esac
17498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17499 $as_echo "$ac_try_echo") >&5
17500   (eval "$ac_compile") 2>conftest.er1
17501   ac_status=$?
17502   grep -v '^ *+' conftest.er1 >conftest.err
17503   rm -f conftest.er1
17504   cat conftest.err >&5
17505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } && {
17507          test -z "$ac_c_werror_flag" ||
17508          test ! -s conftest.err
17509        } && test -s conftest.$ac_objext; then
17510   cat >conftest.$ac_ext <<_ACEOF
17511 /* confdefs.h.  */
17512 _ACEOF
17513 cat confdefs.h >>conftest.$ac_ext
17514 cat >>conftest.$ac_ext <<_ACEOF
17515 /* end confdefs.h.  */
17516 $ac_includes_default
17517 int
17518 main ()
17519 {
17520 if (sizeof ((intptr_t)))
17521           return 0;
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext
17527 if { (ac_try="$ac_compile"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17533 $as_echo "$ac_try_echo") >&5
17534   (eval "$ac_compile") 2>conftest.er1
17535   ac_status=$?
17536   grep -v '^ *+' conftest.er1 >conftest.err
17537   rm -f conftest.er1
17538   cat conftest.err >&5
17539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540   (exit $ac_status); } && {
17541          test -z "$ac_c_werror_flag" ||
17542          test ! -s conftest.err
17543        } && test -s conftest.$ac_objext; then
17544   :
17545 else
17546   $as_echo "$as_me: failed program was:" >&5
17547 sed 's/^/| /' conftest.$ac_ext >&5
17548
17549         ac_cv_type_intptr_t=yes
17550 fi
17551
17552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17553 else
17554   $as_echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557
17558 fi
17559
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 fi
17562 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
17563 $as_echo "$ac_cv_type_intptr_t" >&6; }
17564 if test "x$ac_cv_type_intptr_t" = x""yes; then
17565
17566 cat >>confdefs.h <<\_ACEOF
17567 #define HAVE_INTPTR_T 1
17568 _ACEOF
17569
17570 else
17571   for ac_type in 'int' 'long int' 'long long int'; do
17572        cat >conftest.$ac_ext <<_ACEOF
17573 /* confdefs.h.  */
17574 _ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h.  */
17578 $ac_includes_default
17579 int
17580 main ()
17581 {
17582 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17583 test_array [0] = 0
17584
17585   ;
17586   return 0;
17587 }
17588 _ACEOF
17589 rm -f conftest.$ac_objext
17590 if { (ac_try="$ac_compile"
17591 case "(($ac_try" in
17592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17593   *) ac_try_echo=$ac_try;;
17594 esac
17595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17596 $as_echo "$ac_try_echo") >&5
17597   (eval "$ac_compile") 2>conftest.er1
17598   ac_status=$?
17599   grep -v '^ *+' conftest.er1 >conftest.err
17600   rm -f conftest.er1
17601   cat conftest.err >&5
17602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); } && {
17604          test -z "$ac_c_werror_flag" ||
17605          test ! -s conftest.err
17606        } && test -s conftest.$ac_objext; then
17607
17608 cat >>confdefs.h <<_ACEOF
17609 #define intptr_t $ac_type
17610 _ACEOF
17611
17612           ac_type=
17613 else
17614   $as_echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17616
17617
17618 fi
17619
17620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17621        test -z "$ac_type" && break
17622      done
17623 fi
17624
17625
17626
17627   { $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
17628 $as_echo_n "checking for uintptr_t... " >&6; }
17629 if test "${ac_cv_type_uintptr_t+set}" = set; then
17630   $as_echo_n "(cached) " >&6
17631 else
17632   ac_cv_type_uintptr_t=no
17633 cat >conftest.$ac_ext <<_ACEOF
17634 /* confdefs.h.  */
17635 _ACEOF
17636 cat confdefs.h >>conftest.$ac_ext
17637 cat >>conftest.$ac_ext <<_ACEOF
17638 /* end confdefs.h.  */
17639 $ac_includes_default
17640 int
17641 main ()
17642 {
17643 if (sizeof (uintptr_t))
17644        return 0;
17645   ;
17646   return 0;
17647 }
17648 _ACEOF
17649 rm -f conftest.$ac_objext
17650 if { (ac_try="$ac_compile"
17651 case "(($ac_try" in
17652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653   *) ac_try_echo=$ac_try;;
17654 esac
17655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17656 $as_echo "$ac_try_echo") >&5
17657   (eval "$ac_compile") 2>conftest.er1
17658   ac_status=$?
17659   grep -v '^ *+' conftest.er1 >conftest.err
17660   rm -f conftest.er1
17661   cat conftest.err >&5
17662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); } && {
17664          test -z "$ac_c_werror_flag" ||
17665          test ! -s conftest.err
17666        } && test -s conftest.$ac_objext; then
17667   cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h.  */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h.  */
17673 $ac_includes_default
17674 int
17675 main ()
17676 {
17677 if (sizeof ((uintptr_t)))
17678           return 0;
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 rm -f conftest.$ac_objext
17684 if { (ac_try="$ac_compile"
17685 case "(($ac_try" in
17686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687   *) ac_try_echo=$ac_try;;
17688 esac
17689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17690 $as_echo "$ac_try_echo") >&5
17691   (eval "$ac_compile") 2>conftest.er1
17692   ac_status=$?
17693   grep -v '^ *+' conftest.er1 >conftest.err
17694   rm -f conftest.er1
17695   cat conftest.err >&5
17696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); } && {
17698          test -z "$ac_c_werror_flag" ||
17699          test ! -s conftest.err
17700        } && test -s conftest.$ac_objext; then
17701   :
17702 else
17703   $as_echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17705
17706         ac_cv_type_uintptr_t=yes
17707 fi
17708
17709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17710 else
17711   $as_echo "$as_me: failed program was:" >&5
17712 sed 's/^/| /' conftest.$ac_ext >&5
17713
17714
17715 fi
17716
17717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17718 fi
17719 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
17720 $as_echo "$ac_cv_type_uintptr_t" >&6; }
17721 if test "x$ac_cv_type_uintptr_t" = x""yes; then
17722
17723 cat >>confdefs.h <<\_ACEOF
17724 #define HAVE_UINTPTR_T 1
17725 _ACEOF
17726
17727 else
17728   for ac_type in 'unsigned int' 'unsigned long int' \
17729         'unsigned long long int'; do
17730        cat >conftest.$ac_ext <<_ACEOF
17731 /* confdefs.h.  */
17732 _ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h.  */
17736 $ac_includes_default
17737 int
17738 main ()
17739 {
17740 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
17741 test_array [0] = 0
17742
17743   ;
17744   return 0;
17745 }
17746 _ACEOF
17747 rm -f conftest.$ac_objext
17748 if { (ac_try="$ac_compile"
17749 case "(($ac_try" in
17750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751   *) ac_try_echo=$ac_try;;
17752 esac
17753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17754 $as_echo "$ac_try_echo") >&5
17755   (eval "$ac_compile") 2>conftest.er1
17756   ac_status=$?
17757   grep -v '^ *+' conftest.er1 >conftest.err
17758   rm -f conftest.er1
17759   cat conftest.err >&5
17760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761   (exit $ac_status); } && {
17762          test -z "$ac_c_werror_flag" ||
17763          test ! -s conftest.err
17764        } && test -s conftest.$ac_objext; then
17765
17766 cat >>confdefs.h <<_ACEOF
17767 #define uintptr_t $ac_type
17768 _ACEOF
17769
17770           ac_type=
17771 else
17772   $as_echo "$as_me: failed program was:" >&5
17773 sed 's/^/| /' conftest.$ac_ext >&5
17774
17775
17776 fi
17777
17778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17779        test -z "$ac_type" && break
17780      done
17781 fi
17782
17783
17784
17785   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
17786 $as_echo_n "checking for long long int... " >&6; }
17787 if test "${ac_cv_type_long_long_int+set}" = set; then
17788   $as_echo_n "(cached) " >&6
17789 else
17790   cat >conftest.$ac_ext <<_ACEOF
17791
17792   /* confdefs.h.  */
17793 _ACEOF
17794 cat confdefs.h >>conftest.$ac_ext
17795 cat >>conftest.$ac_ext <<_ACEOF
17796 /* end confdefs.h.  */
17797 /* For now, do not test the preprocessor; as of 2007 there are too many
17798          implementations with broken preprocessors.  Perhaps this can
17799          be revisited in 2012.  In the meantime, code should not expect
17800          #if to work with literals wider than 32 bits.  */
17801       /* Test literals.  */
17802       long long int ll = 9223372036854775807ll;
17803       long long int nll = -9223372036854775807LL;
17804       unsigned long long int ull = 18446744073709551615ULL;
17805       /* Test constant expressions.   */
17806       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
17807                      ? 1 : -1)];
17808       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
17809                      ? 1 : -1)];
17810       int i = 63;
17811 int
17812 main ()
17813 {
17814 /* Test availability of runtime routines for shift and division.  */
17815       long long int llmax = 9223372036854775807ll;
17816       unsigned long long int ullmax = 18446744073709551615ull;
17817       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
17818               | (llmax / ll) | (llmax % ll)
17819               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
17820               | (ullmax / ull) | (ullmax % ull));
17821   ;
17822   return 0;
17823 }
17824
17825 _ACEOF
17826 rm -f conftest.$ac_objext conftest$ac_exeext
17827 if { (ac_try="$ac_link"
17828 case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17833 $as_echo "$ac_try_echo") >&5
17834   (eval "$ac_link") 2>conftest.er1
17835   ac_status=$?
17836   grep -v '^ *+' conftest.er1 >conftest.err
17837   rm -f conftest.er1
17838   cat conftest.err >&5
17839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840   (exit $ac_status); } && {
17841          test -z "$ac_c_werror_flag" ||
17842          test ! -s conftest.err
17843        } && test -s conftest$ac_exeext && {
17844          test "$cross_compiling" = yes ||
17845          $as_test_x conftest$ac_exeext
17846        }; then
17847                         if test "$cross_compiling" = yes; then
17848   ac_cv_type_long_long_int=yes
17849 else
17850   cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h.  */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h.  */
17856 #include <limits.h>
17857                #ifndef LLONG_MAX
17858                # define HALF \
17859                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
17860                # define LLONG_MAX (HALF - 1 + HALF)
17861                #endif
17862 int
17863 main ()
17864 {
17865 long long int n = 1;
17866                int i;
17867                for (i = 0; ; i++)
17868                  {
17869                    long long int m = n << i;
17870                    if (m >> i != n)
17871                      return 1;
17872                    if (LLONG_MAX / 2 < m)
17873                      break;
17874                  }
17875                return 0;
17876   ;
17877   return 0;
17878 }
17879 _ACEOF
17880 rm -f conftest$ac_exeext
17881 if { (ac_try="$ac_link"
17882 case "(($ac_try" in
17883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884   *) ac_try_echo=$ac_try;;
17885 esac
17886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17887 $as_echo "$ac_try_echo") >&5
17888   (eval "$ac_link") 2>&5
17889   ac_status=$?
17890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17892   { (case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17897 $as_echo "$ac_try_echo") >&5
17898   (eval "$ac_try") 2>&5
17899   ac_status=$?
17900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901   (exit $ac_status); }; }; then
17902   ac_cv_type_long_long_int=yes
17903 else
17904   $as_echo "$as_me: program exited with status $ac_status" >&5
17905 $as_echo "$as_me: failed program was:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17907
17908 ( exit $ac_status )
17909 ac_cv_type_long_long_int=no
17910 fi
17911 rm -rf conftest.dSYM
17912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17913 fi
17914
17915
17916 else
17917   $as_echo "$as_me: failed program was:" >&5
17918 sed 's/^/| /' conftest.$ac_ext >&5
17919
17920         ac_cv_type_long_long_int=no
17921 fi
17922
17923 rm -rf conftest.dSYM
17924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17925       conftest$ac_exeext conftest.$ac_ext
17926 fi
17927 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
17928 $as_echo "$ac_cv_type_long_long_int" >&6; }
17929   if test $ac_cv_type_long_long_int = yes; then
17930
17931 cat >>confdefs.h <<\_ACEOF
17932 #define HAVE_LONG_LONG_INT 1
17933 _ACEOF
17934
17935   fi
17936
17937
17938 { $as_echo "$as_me:$LINENO: checking for locale_t" >&5
17939 $as_echo_n "checking for locale_t... " >&6; }
17940 if test "${pgac_cv_type_locale_t+set}" = set; then
17941   $as_echo_n "(cached) " >&6
17942 else
17943   cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h.  */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h.  */
17949 #include <locale.h>
17950 locale_t x;
17951 int
17952 main ()
17953 {
17954
17955   ;
17956   return 0;
17957 }
17958 _ACEOF
17959 rm -f conftest.$ac_objext
17960 if { (ac_try="$ac_compile"
17961 case "(($ac_try" in
17962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17963   *) ac_try_echo=$ac_try;;
17964 esac
17965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17966 $as_echo "$ac_try_echo") >&5
17967   (eval "$ac_compile") 2>conftest.er1
17968   ac_status=$?
17969   grep -v '^ *+' conftest.er1 >conftest.err
17970   rm -f conftest.er1
17971   cat conftest.err >&5
17972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); } && {
17974          test -z "$ac_c_werror_flag" ||
17975          test ! -s conftest.err
17976        } && test -s conftest.$ac_objext; then
17977   pgac_cv_type_locale_t=yes
17978 else
17979   $as_echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.$ac_ext >&5
17981
17982         cat >conftest.$ac_ext <<_ACEOF
17983 /* confdefs.h.  */
17984 _ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h.  */
17988 #include <xlocale.h>
17989 locale_t x;
17990 int
17991 main ()
17992 {
17993
17994   ;
17995   return 0;
17996 }
17997 _ACEOF
17998 rm -f conftest.$ac_objext
17999 if { (ac_try="$ac_compile"
18000 case "(($ac_try" in
18001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002   *) ac_try_echo=$ac_try;;
18003 esac
18004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18005 $as_echo "$ac_try_echo") >&5
18006   (eval "$ac_compile") 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && {
18013          test -z "$ac_c_werror_flag" ||
18014          test ! -s conftest.err
18015        } && test -s conftest.$ac_objext; then
18016   pgac_cv_type_locale_t='yes (in xlocale.h)'
18017 else
18018   $as_echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021         pgac_cv_type_locale_t=no
18022 fi
18023
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 fi
18026
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 fi
18029 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_locale_t" >&5
18030 $as_echo "$pgac_cv_type_locale_t" >&6; }
18031 if test "$pgac_cv_type_locale_t" != no; then
18032
18033 cat >>confdefs.h <<\_ACEOF
18034 #define HAVE_LOCALE_T 1
18035 _ACEOF
18036
18037 fi
18038 if test "$pgac_cv_type_locale_t" = 'yes (in xlocale.h)'; then
18039
18040 cat >>confdefs.h <<\_ACEOF
18041 #define LOCALE_T_IN_XLOCALE 1
18042 _ACEOF
18043
18044 fi
18045
18046 { $as_echo "$as_me:$LINENO: checking for struct cmsgcred" >&5
18047 $as_echo_n "checking for struct cmsgcred... " >&6; }
18048 if test "${ac_cv_type_struct_cmsgcred+set}" = set; then
18049   $as_echo_n "(cached) " >&6
18050 else
18051   ac_cv_type_struct_cmsgcred=no
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h.  */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h.  */
18058 #include <sys/socket.h>
18059 #include <sys/param.h>
18060 #ifdef HAVE_SYS_UCRED_H
18061 #include <sys/ucred.h>
18062 #endif
18063
18064 int
18065 main ()
18066 {
18067 if (sizeof (struct cmsgcred))
18068        return 0;
18069   ;
18070   return 0;
18071 }
18072 _ACEOF
18073 rm -f conftest.$ac_objext
18074 if { (ac_try="$ac_compile"
18075 case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18080 $as_echo "$ac_try_echo") >&5
18081   (eval "$ac_compile") 2>conftest.er1
18082   ac_status=$?
18083   grep -v '^ *+' conftest.er1 >conftest.err
18084   rm -f conftest.er1
18085   cat conftest.err >&5
18086   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087   (exit $ac_status); } && {
18088          test -z "$ac_c_werror_flag" ||
18089          test ! -s conftest.err
18090        } && test -s conftest.$ac_objext; then
18091   cat >conftest.$ac_ext <<_ACEOF
18092 /* confdefs.h.  */
18093 _ACEOF
18094 cat confdefs.h >>conftest.$ac_ext
18095 cat >>conftest.$ac_ext <<_ACEOF
18096 /* end confdefs.h.  */
18097 #include <sys/socket.h>
18098 #include <sys/param.h>
18099 #ifdef HAVE_SYS_UCRED_H
18100 #include <sys/ucred.h>
18101 #endif
18102
18103 int
18104 main ()
18105 {
18106 if (sizeof ((struct cmsgcred)))
18107           return 0;
18108   ;
18109   return 0;
18110 }
18111 _ACEOF
18112 rm -f conftest.$ac_objext
18113 if { (ac_try="$ac_compile"
18114 case "(($ac_try" in
18115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116   *) ac_try_echo=$ac_try;;
18117 esac
18118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18119 $as_echo "$ac_try_echo") >&5
18120   (eval "$ac_compile") 2>conftest.er1
18121   ac_status=$?
18122   grep -v '^ *+' conftest.er1 >conftest.err
18123   rm -f conftest.er1
18124   cat conftest.err >&5
18125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); } && {
18127          test -z "$ac_c_werror_flag" ||
18128          test ! -s conftest.err
18129        } && test -s conftest.$ac_objext; then
18130   :
18131 else
18132   $as_echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135         ac_cv_type_struct_cmsgcred=yes
18136 fi
18137
18138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18139 else
18140   $as_echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.$ac_ext >&5
18142
18143
18144 fi
18145
18146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18147 fi
18148 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_cmsgcred" >&5
18149 $as_echo "$ac_cv_type_struct_cmsgcred" >&6; }
18150 if test "x$ac_cv_type_struct_cmsgcred" = x""yes; then
18151
18152 cat >>confdefs.h <<_ACEOF
18153 #define HAVE_STRUCT_CMSGCRED 1
18154 _ACEOF
18155
18156
18157 fi
18158
18159
18160 { $as_echo "$as_me:$LINENO: checking for struct option" >&5
18161 $as_echo_n "checking for struct option... " >&6; }
18162 if test "${ac_cv_type_struct_option+set}" = set; then
18163   $as_echo_n "(cached) " >&6
18164 else
18165   ac_cv_type_struct_option=no
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h.  */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h.  */
18172 #ifdef HAVE_GETOPT_H
18173 #include <getopt.h>
18174 #endif
18175
18176 int
18177 main ()
18178 {
18179 if (sizeof (struct option))
18180        return 0;
18181   ;
18182   return 0;
18183 }
18184 _ACEOF
18185 rm -f conftest.$ac_objext
18186 if { (ac_try="$ac_compile"
18187 case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18192 $as_echo "$ac_try_echo") >&5
18193   (eval "$ac_compile") 2>conftest.er1
18194   ac_status=$?
18195   grep -v '^ *+' conftest.er1 >conftest.err
18196   rm -f conftest.er1
18197   cat conftest.err >&5
18198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); } && {
18200          test -z "$ac_c_werror_flag" ||
18201          test ! -s conftest.err
18202        } && test -s conftest.$ac_objext; then
18203   cat >conftest.$ac_ext <<_ACEOF
18204 /* confdefs.h.  */
18205 _ACEOF
18206 cat confdefs.h >>conftest.$ac_ext
18207 cat >>conftest.$ac_ext <<_ACEOF
18208 /* end confdefs.h.  */
18209 #ifdef HAVE_GETOPT_H
18210 #include <getopt.h>
18211 #endif
18212
18213 int
18214 main ()
18215 {
18216 if (sizeof ((struct option)))
18217           return 0;
18218   ;
18219   return 0;
18220 }
18221 _ACEOF
18222 rm -f conftest.$ac_objext
18223 if { (ac_try="$ac_compile"
18224 case "(($ac_try" in
18225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18226   *) ac_try_echo=$ac_try;;
18227 esac
18228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18229 $as_echo "$ac_try_echo") >&5
18230   (eval "$ac_compile") 2>conftest.er1
18231   ac_status=$?
18232   grep -v '^ *+' conftest.er1 >conftest.err
18233   rm -f conftest.er1
18234   cat conftest.err >&5
18235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); } && {
18237          test -z "$ac_c_werror_flag" ||
18238          test ! -s conftest.err
18239        } && test -s conftest.$ac_objext; then
18240   :
18241 else
18242   $as_echo "$as_me: failed program was:" >&5
18243 sed 's/^/| /' conftest.$ac_ext >&5
18244
18245         ac_cv_type_struct_option=yes
18246 fi
18247
18248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18249 else
18250   $as_echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.$ac_ext >&5
18252
18253
18254 fi
18255
18256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18257 fi
18258 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_option" >&5
18259 $as_echo "$ac_cv_type_struct_option" >&6; }
18260 if test "x$ac_cv_type_struct_option" = x""yes; then
18261
18262 cat >>confdefs.h <<_ACEOF
18263 #define HAVE_STRUCT_OPTION 1
18264 _ACEOF
18265
18266
18267 fi
18268
18269
18270 if test "$with_zlib" = yes; then
18271   # Check that <zlib.h> defines z_streamp (versions before about 1.0.4
18272   # did not).  While we could work around the lack of z_streamp, it
18273   # seems unwise to encourage people to use such old zlib versions...
18274   { $as_echo "$as_me:$LINENO: checking for z_streamp" >&5
18275 $as_echo_n "checking for z_streamp... " >&6; }
18276 if test "${ac_cv_type_z_streamp+set}" = set; then
18277   $as_echo_n "(cached) " >&6
18278 else
18279   ac_cv_type_z_streamp=no
18280 cat >conftest.$ac_ext <<_ACEOF
18281 /* confdefs.h.  */
18282 _ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h.  */
18286 #include <zlib.h>
18287
18288 int
18289 main ()
18290 {
18291 if (sizeof (z_streamp))
18292        return 0;
18293   ;
18294   return 0;
18295 }
18296 _ACEOF
18297 rm -f conftest.$ac_objext
18298 if { (ac_try="$ac_compile"
18299 case "(($ac_try" in
18300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301   *) ac_try_echo=$ac_try;;
18302 esac
18303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18304 $as_echo "$ac_try_echo") >&5
18305   (eval "$ac_compile") 2>conftest.er1
18306   ac_status=$?
18307   grep -v '^ *+' conftest.er1 >conftest.err
18308   rm -f conftest.er1
18309   cat conftest.err >&5
18310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311   (exit $ac_status); } && {
18312          test -z "$ac_c_werror_flag" ||
18313          test ! -s conftest.err
18314        } && test -s conftest.$ac_objext; then
18315   cat >conftest.$ac_ext <<_ACEOF
18316 /* confdefs.h.  */
18317 _ACEOF
18318 cat confdefs.h >>conftest.$ac_ext
18319 cat >>conftest.$ac_ext <<_ACEOF
18320 /* end confdefs.h.  */
18321 #include <zlib.h>
18322
18323 int
18324 main ()
18325 {
18326 if (sizeof ((z_streamp)))
18327           return 0;
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 rm -f conftest.$ac_objext
18333 if { (ac_try="$ac_compile"
18334 case "(($ac_try" in
18335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336   *) ac_try_echo=$ac_try;;
18337 esac
18338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18339 $as_echo "$ac_try_echo") >&5
18340   (eval "$ac_compile") 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } && {
18347          test -z "$ac_c_werror_flag" ||
18348          test ! -s conftest.err
18349        } && test -s conftest.$ac_objext; then
18350   :
18351 else
18352   $as_echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355         ac_cv_type_z_streamp=yes
18356 fi
18357
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 else
18360   $as_echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363
18364 fi
18365
18366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18367 fi
18368 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_z_streamp" >&5
18369 $as_echo "$ac_cv_type_z_streamp" >&6; }
18370 if test "x$ac_cv_type_z_streamp" = x""yes; then
18371   :
18372 else
18373   { { $as_echo "$as_me:$LINENO: error: zlib version is too old
18374 Use --without-zlib to disable zlib support." >&5
18375 $as_echo "$as_me: error: zlib version is too old
18376 Use --without-zlib to disable zlib support." >&2;}
18377    { (exit 1); exit 1; }; }
18378 fi
18379
18380 fi
18381
18382 if test "$with_krb5" = yes; then
18383 # Check for differences between MIT and Heimdal (KTH) releases
18384   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.enc_part2" >&5
18385 $as_echo_n "checking for krb5_ticket.enc_part2... " >&6; }
18386 if test "${ac_cv_member_krb5_ticket_enc_part2+set}" = set; then
18387   $as_echo_n "(cached) " >&6
18388 else
18389   cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395 #include <krb5.h>
18396
18397 int
18398 main ()
18399 {
18400 static krb5_ticket ac_aggr;
18401 if (ac_aggr.enc_part2)
18402 return 0;
18403   ;
18404   return 0;
18405 }
18406 _ACEOF
18407 rm -f conftest.$ac_objext
18408 if { (ac_try="$ac_compile"
18409 case "(($ac_try" in
18410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411   *) ac_try_echo=$ac_try;;
18412 esac
18413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18414 $as_echo "$ac_try_echo") >&5
18415   (eval "$ac_compile") 2>conftest.er1
18416   ac_status=$?
18417   grep -v '^ *+' conftest.er1 >conftest.err
18418   rm -f conftest.er1
18419   cat conftest.err >&5
18420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); } && {
18422          test -z "$ac_c_werror_flag" ||
18423          test ! -s conftest.err
18424        } && test -s conftest.$ac_objext; then
18425   ac_cv_member_krb5_ticket_enc_part2=yes
18426 else
18427   $as_echo "$as_me: failed program was:" >&5
18428 sed 's/^/| /' conftest.$ac_ext >&5
18429
18430         cat >conftest.$ac_ext <<_ACEOF
18431 /* confdefs.h.  */
18432 _ACEOF
18433 cat confdefs.h >>conftest.$ac_ext
18434 cat >>conftest.$ac_ext <<_ACEOF
18435 /* end confdefs.h.  */
18436 #include <krb5.h>
18437
18438 int
18439 main ()
18440 {
18441 static krb5_ticket ac_aggr;
18442 if (sizeof ac_aggr.enc_part2)
18443 return 0;
18444   ;
18445   return 0;
18446 }
18447 _ACEOF
18448 rm -f conftest.$ac_objext
18449 if { (ac_try="$ac_compile"
18450 case "(($ac_try" in
18451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18452   *) ac_try_echo=$ac_try;;
18453 esac
18454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18455 $as_echo "$ac_try_echo") >&5
18456   (eval "$ac_compile") 2>conftest.er1
18457   ac_status=$?
18458   grep -v '^ *+' conftest.er1 >conftest.err
18459   rm -f conftest.er1
18460   cat conftest.err >&5
18461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); } && {
18463          test -z "$ac_c_werror_flag" ||
18464          test ! -s conftest.err
18465        } && test -s conftest.$ac_objext; then
18466   ac_cv_member_krb5_ticket_enc_part2=yes
18467 else
18468   $as_echo "$as_me: failed program was:" >&5
18469 sed 's/^/| /' conftest.$ac_ext >&5
18470
18471         ac_cv_member_krb5_ticket_enc_part2=no
18472 fi
18473
18474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18475 fi
18476
18477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18478 fi
18479 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_enc_part2" >&5
18480 $as_echo "$ac_cv_member_krb5_ticket_enc_part2" >&6; }
18481 if test "x$ac_cv_member_krb5_ticket_enc_part2" = x""yes; then
18482
18483 cat >>confdefs.h <<_ACEOF
18484 #define HAVE_KRB5_TICKET_ENC_PART2 1
18485 _ACEOF
18486
18487
18488 else
18489   { $as_echo "$as_me:$LINENO: checking for krb5_ticket.client" >&5
18490 $as_echo_n "checking for krb5_ticket.client... " >&6; }
18491 if test "${ac_cv_member_krb5_ticket_client+set}" = set; then
18492   $as_echo_n "(cached) " >&6
18493 else
18494   cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500 #include <krb5.h>
18501
18502 int
18503 main ()
18504 {
18505 static krb5_ticket ac_aggr;
18506 if (ac_aggr.client)
18507 return 0;
18508   ;
18509   return 0;
18510 }
18511 _ACEOF
18512 rm -f conftest.$ac_objext
18513 if { (ac_try="$ac_compile"
18514 case "(($ac_try" in
18515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516   *) ac_try_echo=$ac_try;;
18517 esac
18518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18519 $as_echo "$ac_try_echo") >&5
18520   (eval "$ac_compile") 2>conftest.er1
18521   ac_status=$?
18522   grep -v '^ *+' conftest.er1 >conftest.err
18523   rm -f conftest.er1
18524   cat conftest.err >&5
18525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); } && {
18527          test -z "$ac_c_werror_flag" ||
18528          test ! -s conftest.err
18529        } && test -s conftest.$ac_objext; then
18530   ac_cv_member_krb5_ticket_client=yes
18531 else
18532   $as_echo "$as_me: failed program was:" >&5
18533 sed 's/^/| /' conftest.$ac_ext >&5
18534
18535         cat >conftest.$ac_ext <<_ACEOF
18536 /* confdefs.h.  */
18537 _ACEOF
18538 cat confdefs.h >>conftest.$ac_ext
18539 cat >>conftest.$ac_ext <<_ACEOF
18540 /* end confdefs.h.  */
18541 #include <krb5.h>
18542
18543 int
18544 main ()
18545 {
18546 static krb5_ticket ac_aggr;
18547 if (sizeof ac_aggr.client)
18548 return 0;
18549   ;
18550   return 0;
18551 }
18552 _ACEOF
18553 rm -f conftest.$ac_objext
18554 if { (ac_try="$ac_compile"
18555 case "(($ac_try" in
18556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18557   *) ac_try_echo=$ac_try;;
18558 esac
18559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18560 $as_echo "$ac_try_echo") >&5
18561   (eval "$ac_compile") 2>conftest.er1
18562   ac_status=$?
18563   grep -v '^ *+' conftest.er1 >conftest.err
18564   rm -f conftest.er1
18565   cat conftest.err >&5
18566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567   (exit $ac_status); } && {
18568          test -z "$ac_c_werror_flag" ||
18569          test ! -s conftest.err
18570        } && test -s conftest.$ac_objext; then
18571   ac_cv_member_krb5_ticket_client=yes
18572 else
18573   $as_echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18575
18576         ac_cv_member_krb5_ticket_client=no
18577 fi
18578
18579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18580 fi
18581
18582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18583 fi
18584 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_ticket_client" >&5
18585 $as_echo "$ac_cv_member_krb5_ticket_client" >&6; }
18586 if test "x$ac_cv_member_krb5_ticket_client" = x""yes; then
18587
18588 cat >>confdefs.h <<_ACEOF
18589 #define HAVE_KRB5_TICKET_CLIENT 1
18590 _ACEOF
18591
18592
18593 else
18594   { { $as_echo "$as_me:$LINENO: error: could not determine how to get client name from Kerberos 5 ticket" >&5
18595 $as_echo "$as_me: error: could not determine how to get client name from Kerberos 5 ticket" >&2;}
18596    { (exit 1); exit 1; }; }
18597 fi
18598
18599 fi
18600
18601   { $as_echo "$as_me:$LINENO: checking for krb5_error.text.data" >&5
18602 $as_echo_n "checking for krb5_error.text.data... " >&6; }
18603 if test "${ac_cv_member_krb5_error_text_data+set}" = set; then
18604   $as_echo_n "(cached) " >&6
18605 else
18606   cat >conftest.$ac_ext <<_ACEOF
18607 /* confdefs.h.  */
18608 _ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h.  */
18612 #include <krb5.h>
18613
18614 int
18615 main ()
18616 {
18617 static krb5_error ac_aggr;
18618 if (ac_aggr.text.data)
18619 return 0;
18620   ;
18621   return 0;
18622 }
18623 _ACEOF
18624 rm -f conftest.$ac_objext
18625 if { (ac_try="$ac_compile"
18626 case "(($ac_try" in
18627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18628   *) ac_try_echo=$ac_try;;
18629 esac
18630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18631 $as_echo "$ac_try_echo") >&5
18632   (eval "$ac_compile") 2>conftest.er1
18633   ac_status=$?
18634   grep -v '^ *+' conftest.er1 >conftest.err
18635   rm -f conftest.er1
18636   cat conftest.err >&5
18637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } && {
18639          test -z "$ac_c_werror_flag" ||
18640          test ! -s conftest.err
18641        } && test -s conftest.$ac_objext; then
18642   ac_cv_member_krb5_error_text_data=yes
18643 else
18644   $as_echo "$as_me: failed program was:" >&5
18645 sed 's/^/| /' conftest.$ac_ext >&5
18646
18647         cat >conftest.$ac_ext <<_ACEOF
18648 /* confdefs.h.  */
18649 _ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h.  */
18653 #include <krb5.h>
18654
18655 int
18656 main ()
18657 {
18658 static krb5_error ac_aggr;
18659 if (sizeof ac_aggr.text.data)
18660 return 0;
18661   ;
18662   return 0;
18663 }
18664 _ACEOF
18665 rm -f conftest.$ac_objext
18666 if { (ac_try="$ac_compile"
18667 case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18672 $as_echo "$ac_try_echo") >&5
18673   (eval "$ac_compile") 2>conftest.er1
18674   ac_status=$?
18675   grep -v '^ *+' conftest.er1 >conftest.err
18676   rm -f conftest.er1
18677   cat conftest.err >&5
18678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679   (exit $ac_status); } && {
18680          test -z "$ac_c_werror_flag" ||
18681          test ! -s conftest.err
18682        } && test -s conftest.$ac_objext; then
18683   ac_cv_member_krb5_error_text_data=yes
18684 else
18685   $as_echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18687
18688         ac_cv_member_krb5_error_text_data=no
18689 fi
18690
18691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18692 fi
18693
18694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18695 fi
18696 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text_data" >&5
18697 $as_echo "$ac_cv_member_krb5_error_text_data" >&6; }
18698 if test "x$ac_cv_member_krb5_error_text_data" = x""yes; then
18699
18700 cat >>confdefs.h <<_ACEOF
18701 #define HAVE_KRB5_ERROR_TEXT_DATA 1
18702 _ACEOF
18703
18704
18705 else
18706   { $as_echo "$as_me:$LINENO: checking for krb5_error.e_data" >&5
18707 $as_echo_n "checking for krb5_error.e_data... " >&6; }
18708 if test "${ac_cv_member_krb5_error_e_data+set}" = set; then
18709   $as_echo_n "(cached) " >&6
18710 else
18711   cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 #include <krb5.h>
18718
18719 int
18720 main ()
18721 {
18722 static krb5_error ac_aggr;
18723 if (ac_aggr.e_data)
18724 return 0;
18725   ;
18726   return 0;
18727 }
18728 _ACEOF
18729 rm -f conftest.$ac_objext
18730 if { (ac_try="$ac_compile"
18731 case "(($ac_try" in
18732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733   *) ac_try_echo=$ac_try;;
18734 esac
18735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18736 $as_echo "$ac_try_echo") >&5
18737   (eval "$ac_compile") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && {
18744          test -z "$ac_c_werror_flag" ||
18745          test ! -s conftest.err
18746        } && test -s conftest.$ac_objext; then
18747   ac_cv_member_krb5_error_e_data=yes
18748 else
18749   $as_echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752         cat >conftest.$ac_ext <<_ACEOF
18753 /* confdefs.h.  */
18754 _ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h.  */
18758 #include <krb5.h>
18759
18760 int
18761 main ()
18762 {
18763 static krb5_error ac_aggr;
18764 if (sizeof ac_aggr.e_data)
18765 return 0;
18766   ;
18767   return 0;
18768 }
18769 _ACEOF
18770 rm -f conftest.$ac_objext
18771 if { (ac_try="$ac_compile"
18772 case "(($ac_try" in
18773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774   *) ac_try_echo=$ac_try;;
18775 esac
18776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18777 $as_echo "$ac_try_echo") >&5
18778   (eval "$ac_compile") 2>conftest.er1
18779   ac_status=$?
18780   grep -v '^ *+' conftest.er1 >conftest.err
18781   rm -f conftest.er1
18782   cat conftest.err >&5
18783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } && {
18785          test -z "$ac_c_werror_flag" ||
18786          test ! -s conftest.err
18787        } && test -s conftest.$ac_objext; then
18788   ac_cv_member_krb5_error_e_data=yes
18789 else
18790   $as_echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18792
18793         ac_cv_member_krb5_error_e_data=no
18794 fi
18795
18796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18797 fi
18798
18799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18800 fi
18801 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_data" >&5
18802 $as_echo "$ac_cv_member_krb5_error_e_data" >&6; }
18803 if test "x$ac_cv_member_krb5_error_e_data" = x""yes; then
18804
18805 cat >>confdefs.h <<_ACEOF
18806 #define HAVE_KRB5_ERROR_E_DATA 1
18807 _ACEOF
18808
18809
18810 else
18811   { { $as_echo "$as_me:$LINENO: error: could not determine how to extract Kerberos 5 error messages" >&5
18812 $as_echo "$as_me: error: could not determine how to extract Kerberos 5 error messages" >&2;}
18813    { (exit 1); exit 1; }; }
18814 fi
18815
18816 fi
18817
18818
18819 # Win32 requires headers to be loaded for __stdcall, so can't use
18820 # AC_CHECK_FUNCS here.
18821   { $as_echo "$as_me:$LINENO: checking for krb5_free_unparsed_name" >&5
18822 $as_echo_n "checking for krb5_free_unparsed_name... " >&6; }
18823   cat >conftest.$ac_ext <<_ACEOF
18824 /* confdefs.h.  */
18825 _ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h.  */
18829 #include <krb5.h>
18830 int
18831 main ()
18832 {
18833 krb5_free_unparsed_name(NULL,NULL);
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext conftest$ac_exeext
18839 if { (ac_try="$ac_link"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846   (eval "$ac_link") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && {
18853          test -z "$ac_c_werror_flag" ||
18854          test ! -s conftest.err
18855        } && test -s conftest$ac_exeext && {
18856          test "$cross_compiling" = yes ||
18857          $as_test_x conftest$ac_exeext
18858        }; then
18859
18860 cat >>confdefs.h <<\_ACEOF
18861 #define HAVE_KRB5_FREE_UNPARSED_NAME 1
18862 _ACEOF
18863
18864 { $as_echo "$as_me:$LINENO: result: yes" >&5
18865 $as_echo "yes" >&6; }
18866 else
18867   $as_echo "$as_me: failed program was:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18869
18870         { $as_echo "$as_me:$LINENO: result: no" >&5
18871 $as_echo "no" >&6; }
18872 fi
18873
18874 rm -rf conftest.dSYM
18875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18876       conftest$ac_exeext conftest.$ac_ext
18877 fi
18878
18879 # On PPC, check if assembler supports LWARX instruction's mutex hint bit
18880 case $host_cpu in
18881   ppc*|powerpc*)
18882     { $as_echo "$as_me:$LINENO: checking whether assembler supports lwarx hint bit" >&5
18883 $as_echo_n "checking whether assembler supports lwarx hint bit... " >&6; }
18884     cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h.  */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h.  */
18890
18891 int
18892 main ()
18893 {
18894 int a = 0; int *p = &a; int r;
18895          __asm__ __volatile__ (" lwarx %0,0,%1,1\n" : "=&r"(r) : "r"(p));
18896   ;
18897   return 0;
18898 }
18899 _ACEOF
18900 rm -f conftest.$ac_objext
18901 if { (ac_try="$ac_compile"
18902 case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18907 $as_echo "$ac_try_echo") >&5
18908   (eval "$ac_compile") 2>conftest.er1
18909   ac_status=$?
18910   grep -v '^ *+' conftest.er1 >conftest.err
18911   rm -f conftest.er1
18912   cat conftest.err >&5
18913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); } && {
18915          test -z "$ac_c_werror_flag" ||
18916          test ! -s conftest.err
18917        } && test -s conftest.$ac_objext; then
18918   pgac_cv_have_ppc_mutex_hint=yes
18919 else
18920   $as_echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923         pgac_cv_have_ppc_mutex_hint=no
18924 fi
18925
18926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927     { $as_echo "$as_me:$LINENO: result: $pgac_cv_have_ppc_mutex_hint" >&5
18928 $as_echo "$pgac_cv_have_ppc_mutex_hint" >&6; }
18929     if test x"$pgac_cv_have_ppc_mutex_hint" = xyes ; then
18930
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_PPC_LWARX_MUTEX_HINT 1
18933 _ACEOF
18934
18935     fi
18936   ;;
18937 esac
18938
18939 # Check largefile support.  You might think this is a system service not a
18940 # compiler characteristic, but you'd be wrong.  We must check this before
18941 # probing existence of related functions such as fseeko, since the largefile
18942 # defines can affect what is generated for that.
18943 if test "$PORTNAME" != "win32"; then
18944    # Check whether --enable-largefile was given.
18945 if test "${enable_largefile+set}" = set; then
18946   enableval=$enable_largefile;
18947 fi
18948
18949 if test "$enable_largefile" != no; then
18950
18951   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18952 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
18953 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18954   $as_echo_n "(cached) " >&6
18955 else
18956   ac_cv_sys_largefile_CC=no
18957      if test "$GCC" != yes; then
18958        ac_save_CC=$CC
18959        while :; do
18960          # IRIX 6.2 and later do not support large files by default,
18961          # so use the C compiler's -n32 option if that helps.
18962          cat >conftest.$ac_ext <<_ACEOF
18963 /* confdefs.h.  */
18964 _ACEOF
18965 cat confdefs.h >>conftest.$ac_ext
18966 cat >>conftest.$ac_ext <<_ACEOF
18967 /* end confdefs.h.  */
18968 #include <sys/types.h>
18969  /* Check that off_t can represent 2**63 - 1 correctly.
18970     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18971     since some C++ compilers masquerading as C compilers
18972     incorrectly reject 9223372036854775807.  */
18973 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18974   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18975                        && LARGE_OFF_T % 2147483647 == 1)
18976                       ? 1 : -1];
18977 int
18978 main ()
18979 {
18980
18981   ;
18982   return 0;
18983 }
18984 _ACEOF
18985          rm -f conftest.$ac_objext
18986 if { (ac_try="$ac_compile"
18987 case "(($ac_try" in
18988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989   *) ac_try_echo=$ac_try;;
18990 esac
18991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18992 $as_echo "$ac_try_echo") >&5
18993   (eval "$ac_compile") 2>conftest.er1
18994   ac_status=$?
18995   grep -v '^ *+' conftest.er1 >conftest.err
18996   rm -f conftest.er1
18997   cat conftest.err >&5
18998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18999   (exit $ac_status); } && {
19000          test -z "$ac_c_werror_flag" ||
19001          test ! -s conftest.err
19002        } && test -s conftest.$ac_objext; then
19003   break
19004 else
19005   $as_echo "$as_me: failed program was:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19007
19008
19009 fi
19010
19011 rm -f core conftest.err conftest.$ac_objext
19012          CC="$CC -n32"
19013          rm -f conftest.$ac_objext
19014 if { (ac_try="$ac_compile"
19015 case "(($ac_try" in
19016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017   *) ac_try_echo=$ac_try;;
19018 esac
19019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19020 $as_echo "$ac_try_echo") >&5
19021   (eval "$ac_compile") 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } && {
19028          test -z "$ac_c_werror_flag" ||
19029          test ! -s conftest.err
19030        } && test -s conftest.$ac_objext; then
19031   ac_cv_sys_largefile_CC=' -n32'; break
19032 else
19033   $as_echo "$as_me: failed program was:" >&5
19034 sed 's/^/| /' conftest.$ac_ext >&5
19035
19036
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext
19040          break
19041        done
19042        CC=$ac_save_CC
19043        rm -f conftest.$ac_ext
19044     fi
19045 fi
19046 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
19047 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
19048   if test "$ac_cv_sys_largefile_CC" != no; then
19049     CC=$CC$ac_cv_sys_largefile_CC
19050   fi
19051
19052   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19053 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19054 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19055   $as_echo_n "(cached) " >&6
19056 else
19057   while :; do
19058   cat >conftest.$ac_ext <<_ACEOF
19059 /* confdefs.h.  */
19060 _ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h.  */
19064 #include <sys/types.h>
19065  /* Check that off_t can represent 2**63 - 1 correctly.
19066     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19067     since some C++ compilers masquerading as C compilers
19068     incorrectly reject 9223372036854775807.  */
19069 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19070   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19071                        && LARGE_OFF_T % 2147483647 == 1)
19072                       ? 1 : -1];
19073 int
19074 main ()
19075 {
19076
19077   ;
19078   return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest.$ac_objext
19082 if { (ac_try="$ac_compile"
19083 case "(($ac_try" in
19084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085   *) ac_try_echo=$ac_try;;
19086 esac
19087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19088 $as_echo "$ac_try_echo") >&5
19089   (eval "$ac_compile") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } && {
19096          test -z "$ac_c_werror_flag" ||
19097          test ! -s conftest.err
19098        } && test -s conftest.$ac_objext; then
19099   ac_cv_sys_file_offset_bits=no; break
19100 else
19101   $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104
19105 fi
19106
19107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19108   cat >conftest.$ac_ext <<_ACEOF
19109 /* confdefs.h.  */
19110 _ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h.  */
19114 #define _FILE_OFFSET_BITS 64
19115 #include <sys/types.h>
19116  /* Check that off_t can represent 2**63 - 1 correctly.
19117     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19118     since some C++ compilers masquerading as C compilers
19119     incorrectly reject 9223372036854775807.  */
19120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19121   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19122                        && LARGE_OFF_T % 2147483647 == 1)
19123                       ? 1 : -1];
19124 int
19125 main ()
19126 {
19127
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19139 $as_echo "$ac_try_echo") >&5
19140   (eval "$ac_compile") 2>conftest.er1
19141   ac_status=$?
19142   grep -v '^ *+' conftest.er1 >conftest.err
19143   rm -f conftest.er1
19144   cat conftest.err >&5
19145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19146   (exit $ac_status); } && {
19147          test -z "$ac_c_werror_flag" ||
19148          test ! -s conftest.err
19149        } && test -s conftest.$ac_objext; then
19150   ac_cv_sys_file_offset_bits=64; break
19151 else
19152   $as_echo "$as_me: failed program was:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19154
19155
19156 fi
19157
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159   ac_cv_sys_file_offset_bits=unknown
19160   break
19161 done
19162 fi
19163 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19164 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19165 case $ac_cv_sys_file_offset_bits in #(
19166   no | unknown) ;;
19167   *)
19168 cat >>confdefs.h <<_ACEOF
19169 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19170 _ACEOF
19171 ;;
19172 esac
19173 rm -rf conftest*
19174   if test $ac_cv_sys_file_offset_bits = unknown; then
19175     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19176 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19177 if test "${ac_cv_sys_large_files+set}" = set; then
19178   $as_echo_n "(cached) " >&6
19179 else
19180   while :; do
19181   cat >conftest.$ac_ext <<_ACEOF
19182 /* confdefs.h.  */
19183 _ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h.  */
19187 #include <sys/types.h>
19188  /* Check that off_t can represent 2**63 - 1 correctly.
19189     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19190     since some C++ compilers masquerading as C compilers
19191     incorrectly reject 9223372036854775807.  */
19192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19193   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19194                        && LARGE_OFF_T % 2147483647 == 1)
19195                       ? 1 : -1];
19196 int
19197 main ()
19198 {
19199
19200   ;
19201   return 0;
19202 }
19203 _ACEOF
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208   *) ac_try_echo=$ac_try;;
19209 esac
19210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19211 $as_echo "$ac_try_echo") >&5
19212   (eval "$ac_compile") 2>conftest.er1
19213   ac_status=$?
19214   grep -v '^ *+' conftest.er1 >conftest.err
19215   rm -f conftest.er1
19216   cat conftest.err >&5
19217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); } && {
19219          test -z "$ac_c_werror_flag" ||
19220          test ! -s conftest.err
19221        } && test -s conftest.$ac_objext; then
19222   ac_cv_sys_large_files=no; break
19223 else
19224   $as_echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231   cat >conftest.$ac_ext <<_ACEOF
19232 /* confdefs.h.  */
19233 _ACEOF
19234 cat confdefs.h >>conftest.$ac_ext
19235 cat >>conftest.$ac_ext <<_ACEOF
19236 /* end confdefs.h.  */
19237 #define _LARGE_FILES 1
19238 #include <sys/types.h>
19239  /* Check that off_t can represent 2**63 - 1 correctly.
19240     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19241     since some C++ compilers masquerading as C compilers
19242     incorrectly reject 9223372036854775807.  */
19243 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19244   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19245                        && LARGE_OFF_T % 2147483647 == 1)
19246                       ? 1 : -1];
19247 int
19248 main ()
19249 {
19250
19251   ;
19252   return 0;
19253 }
19254 _ACEOF
19255 rm -f conftest.$ac_objext
19256 if { (ac_try="$ac_compile"
19257 case "(($ac_try" in
19258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259   *) ac_try_echo=$ac_try;;
19260 esac
19261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19262 $as_echo "$ac_try_echo") >&5
19263   (eval "$ac_compile") 2>conftest.er1
19264   ac_status=$?
19265   grep -v '^ *+' conftest.er1 >conftest.err
19266   rm -f conftest.er1
19267   cat conftest.err >&5
19268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); } && {
19270          test -z "$ac_c_werror_flag" ||
19271          test ! -s conftest.err
19272        } && test -s conftest.$ac_objext; then
19273   ac_cv_sys_large_files=1; break
19274 else
19275   $as_echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278
19279 fi
19280
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282   ac_cv_sys_large_files=unknown
19283   break
19284 done
19285 fi
19286 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19287 $as_echo "$ac_cv_sys_large_files" >&6; }
19288 case $ac_cv_sys_large_files in #(
19289   no | unknown) ;;
19290   *)
19291 cat >>confdefs.h <<_ACEOF
19292 #define _LARGE_FILES $ac_cv_sys_large_files
19293 _ACEOF
19294 ;;
19295 esac
19296 rm -rf conftest*
19297   fi
19298 fi
19299
19300 fi
19301
19302 # Check for largefile support (must be after AC_SYS_LARGEFILE)
19303 # The cast to long int works around a bug in the HP C Compiler
19304 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19305 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19306 # This bug is HP SR number 8606223364.
19307 { $as_echo "$as_me:$LINENO: checking size of off_t" >&5
19308 $as_echo_n "checking size of off_t... " >&6; }
19309 if test "${ac_cv_sizeof_off_t+set}" = set; then
19310   $as_echo_n "(cached) " >&6
19311 else
19312   if test "$cross_compiling" = yes; then
19313   # Depending upon the size, compute the lo and hi bounds.
19314 cat >conftest.$ac_ext <<_ACEOF
19315 /* confdefs.h.  */
19316 _ACEOF
19317 cat confdefs.h >>conftest.$ac_ext
19318 cat >>conftest.$ac_ext <<_ACEOF
19319 /* end confdefs.h.  */
19320 $ac_includes_default
19321 int
19322 main ()
19323 {
19324 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
19325 test_array [0] = 0
19326
19327   ;
19328   return 0;
19329 }
19330 _ACEOF
19331 rm -f conftest.$ac_objext
19332 if { (ac_try="$ac_compile"
19333 case "(($ac_try" in
19334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19335   *) ac_try_echo=$ac_try;;
19336 esac
19337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19338 $as_echo "$ac_try_echo") >&5
19339   (eval "$ac_compile") 2>conftest.er1
19340   ac_status=$?
19341   grep -v '^ *+' conftest.er1 >conftest.err
19342   rm -f conftest.er1
19343   cat conftest.err >&5
19344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345   (exit $ac_status); } && {
19346          test -z "$ac_c_werror_flag" ||
19347          test ! -s conftest.err
19348        } && test -s conftest.$ac_objext; then
19349   ac_lo=0 ac_mid=0
19350   while :; do
19351     cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h.  */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h.  */
19357 $ac_includes_default
19358 int
19359 main ()
19360 {
19361 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19362 test_array [0] = 0
19363
19364   ;
19365   return 0;
19366 }
19367 _ACEOF
19368 rm -f conftest.$ac_objext
19369 if { (ac_try="$ac_compile"
19370 case "(($ac_try" in
19371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372   *) ac_try_echo=$ac_try;;
19373 esac
19374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19375 $as_echo "$ac_try_echo") >&5
19376   (eval "$ac_compile") 2>conftest.er1
19377   ac_status=$?
19378   grep -v '^ *+' conftest.er1 >conftest.err
19379   rm -f conftest.er1
19380   cat conftest.err >&5
19381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382   (exit $ac_status); } && {
19383          test -z "$ac_c_werror_flag" ||
19384          test ! -s conftest.err
19385        } && test -s conftest.$ac_objext; then
19386   ac_hi=$ac_mid; break
19387 else
19388   $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391         ac_lo=`expr $ac_mid + 1`
19392                         if test $ac_lo -le $ac_mid; then
19393                           ac_lo= ac_hi=
19394                           break
19395                         fi
19396                         ac_mid=`expr 2 '*' $ac_mid + 1`
19397 fi
19398
19399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19400   done
19401 else
19402   $as_echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19404
19405         cat >conftest.$ac_ext <<_ACEOF
19406 /* confdefs.h.  */
19407 _ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h.  */
19411 $ac_includes_default
19412 int
19413 main ()
19414 {
19415 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
19416 test_array [0] = 0
19417
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest.$ac_objext
19423 if { (ac_try="$ac_compile"
19424 case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19429 $as_echo "$ac_try_echo") >&5
19430   (eval "$ac_compile") 2>conftest.er1
19431   ac_status=$?
19432   grep -v '^ *+' conftest.er1 >conftest.err
19433   rm -f conftest.er1
19434   cat conftest.err >&5
19435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); } && {
19437          test -z "$ac_c_werror_flag" ||
19438          test ! -s conftest.err
19439        } && test -s conftest.$ac_objext; then
19440   ac_hi=-1 ac_mid=-1
19441   while :; do
19442     cat >conftest.$ac_ext <<_ACEOF
19443 /* confdefs.h.  */
19444 _ACEOF
19445 cat confdefs.h >>conftest.$ac_ext
19446 cat >>conftest.$ac_ext <<_ACEOF
19447 /* end confdefs.h.  */
19448 $ac_includes_default
19449 int
19450 main ()
19451 {
19452 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
19453 test_array [0] = 0
19454
19455   ;
19456   return 0;
19457 }
19458 _ACEOF
19459 rm -f conftest.$ac_objext
19460 if { (ac_try="$ac_compile"
19461 case "(($ac_try" in
19462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463   *) ac_try_echo=$ac_try;;
19464 esac
19465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19466 $as_echo "$ac_try_echo") >&5
19467   (eval "$ac_compile") 2>conftest.er1
19468   ac_status=$?
19469   grep -v '^ *+' conftest.er1 >conftest.err
19470   rm -f conftest.er1
19471   cat conftest.err >&5
19472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473   (exit $ac_status); } && {
19474          test -z "$ac_c_werror_flag" ||
19475          test ! -s conftest.err
19476        } && test -s conftest.$ac_objext; then
19477   ac_lo=$ac_mid; break
19478 else
19479   $as_echo "$as_me: failed program was:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19481
19482         ac_hi=`expr '(' $ac_mid ')' - 1`
19483                         if test $ac_mid -le $ac_hi; then
19484                           ac_lo= ac_hi=
19485                           break
19486                         fi
19487                         ac_mid=`expr 2 '*' $ac_mid`
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491   done
19492 else
19493   $as_echo "$as_me: failed program was:" >&5
19494 sed 's/^/| /' conftest.$ac_ext >&5
19495
19496         ac_lo= ac_hi=
19497 fi
19498
19499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19500 fi
19501
19502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 # Binary search between lo and hi bounds.
19504 while test "x$ac_lo" != "x$ac_hi"; do
19505   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19506   cat >conftest.$ac_ext <<_ACEOF
19507 /* confdefs.h.  */
19508 _ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h.  */
19512 $ac_includes_default
19513 int
19514 main ()
19515 {
19516 static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
19517 test_array [0] = 0
19518
19519   ;
19520   return 0;
19521 }
19522 _ACEOF
19523 rm -f conftest.$ac_objext
19524 if { (ac_try="$ac_compile"
19525 case "(($ac_try" in
19526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527   *) ac_try_echo=$ac_try;;
19528 esac
19529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19530 $as_echo "$ac_try_echo") >&5
19531   (eval "$ac_compile") 2>conftest.er1
19532   ac_status=$?
19533   grep -v '^ *+' conftest.er1 >conftest.err
19534   rm -f conftest.er1
19535   cat conftest.err >&5
19536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537   (exit $ac_status); } && {
19538          test -z "$ac_c_werror_flag" ||
19539          test ! -s conftest.err
19540        } && test -s conftest.$ac_objext; then
19541   ac_hi=$ac_mid
19542 else
19543   $as_echo "$as_me: failed program was:" >&5
19544 sed 's/^/| /' conftest.$ac_ext >&5
19545
19546         ac_lo=`expr '(' $ac_mid ')' + 1`
19547 fi
19548
19549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19550 done
19551 case $ac_lo in
19552 ?*) ac_cv_sizeof_off_t=$ac_lo;;
19553 '') if test "$ac_cv_type_off_t" = yes; then
19554      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19556 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19557 See \`config.log' for more details." >&5
19558 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19559 See \`config.log' for more details." >&2;}
19560    { (exit 77); exit 77; }; }; }
19561    else
19562      ac_cv_sizeof_off_t=0
19563    fi ;;
19564 esac
19565 else
19566   cat >conftest.$ac_ext <<_ACEOF
19567 /* confdefs.h.  */
19568 _ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h.  */
19572 $ac_includes_default
19573 static long int longval () { return (long int) (sizeof (off_t)); }
19574 static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
19575 #include <stdio.h>
19576 #include <stdlib.h>
19577 int
19578 main ()
19579 {
19580
19581   FILE *f = fopen ("conftest.val", "w");
19582   if (! f)
19583     return 1;
19584   if (((long int) (sizeof (off_t))) < 0)
19585     {
19586       long int i = longval ();
19587       if (i != ((long int) (sizeof (off_t))))
19588         return 1;
19589       fprintf (f, "%ld", i);
19590     }
19591   else
19592     {
19593       unsigned long int i = ulongval ();
19594       if (i != ((long int) (sizeof (off_t))))
19595         return 1;
19596       fprintf (f, "%lu", i);
19597     }
19598   /* Do not output a trailing newline, as this causes \r\n confusion
19599      on some platforms.  */
19600   return ferror (f) || fclose (f) != 0;
19601
19602   ;
19603   return 0;
19604 }
19605 _ACEOF
19606 rm -f conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610   *) ac_try_echo=$ac_try;;
19611 esac
19612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19613 $as_echo "$ac_try_echo") >&5
19614   (eval "$ac_link") 2>&5
19615   ac_status=$?
19616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19618   { (case "(($ac_try" in
19619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620   *) ac_try_echo=$ac_try;;
19621 esac
19622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19623 $as_echo "$ac_try_echo") >&5
19624   (eval "$ac_try") 2>&5
19625   ac_status=$?
19626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627   (exit $ac_status); }; }; then
19628   ac_cv_sizeof_off_t=`cat conftest.val`
19629 else
19630   $as_echo "$as_me: program exited with status $ac_status" >&5
19631 $as_echo "$as_me: failed program was:" >&5
19632 sed 's/^/| /' conftest.$ac_ext >&5
19633
19634 ( exit $ac_status )
19635 if test "$ac_cv_type_off_t" = yes; then
19636      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
19637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19638 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
19639 See \`config.log' for more details." >&5
19640 $as_echo "$as_me: error: cannot compute sizeof (off_t)
19641 See \`config.log' for more details." >&2;}
19642    { (exit 77); exit 77; }; }; }
19643    else
19644      ac_cv_sizeof_off_t=0
19645    fi
19646 fi
19647 rm -rf conftest.dSYM
19648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19649 fi
19650 rm -f conftest.val
19651 fi
19652 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
19653 $as_echo "$ac_cv_sizeof_off_t" >&6; }
19654
19655
19656
19657 cat >>confdefs.h <<_ACEOF
19658 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
19659 _ACEOF
19660
19661
19662
19663 # If we don't have largefile support, can't handle segsize >= 2GB.
19664 if test "$ac_cv_sizeof_off_t" -lt 8 -a "$segsize" != "1"; then
19665    { { $as_echo "$as_me:$LINENO: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&5
19666 $as_echo "$as_me: error: Large file support is not enabled. Segment size cannot be larger than 1GB." >&2;}
19667    { (exit 1); exit 1; }; }
19668 fi
19669
19670
19671 ##
19672 ## Functions, global variables
19673 ##
19674
19675 { $as_echo "$as_me:$LINENO: checking for int timezone" >&5
19676 $as_echo_n "checking for int timezone... " >&6; }
19677 if test "${pgac_cv_var_int_timezone+set}" = set; then
19678   $as_echo_n "(cached) " >&6
19679 else
19680   cat >conftest.$ac_ext <<_ACEOF
19681 /* confdefs.h.  */
19682 _ACEOF
19683 cat confdefs.h >>conftest.$ac_ext
19684 cat >>conftest.$ac_ext <<_ACEOF
19685 /* end confdefs.h.  */
19686 #include <time.h>
19687 int res;
19688 int
19689 main ()
19690 {
19691 #ifndef __CYGWIN__
19692 res = timezone / 60;
19693 #else
19694 res = _timezone / 60;
19695 #endif
19696   ;
19697   return 0;
19698 }
19699 _ACEOF
19700 rm -f conftest.$ac_objext conftest$ac_exeext
19701 if { (ac_try="$ac_link"
19702 case "(($ac_try" in
19703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19704   *) ac_try_echo=$ac_try;;
19705 esac
19706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19707 $as_echo "$ac_try_echo") >&5
19708   (eval "$ac_link") 2>conftest.er1
19709   ac_status=$?
19710   grep -v '^ *+' conftest.er1 >conftest.err
19711   rm -f conftest.er1
19712   cat conftest.err >&5
19713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); } && {
19715          test -z "$ac_c_werror_flag" ||
19716          test ! -s conftest.err
19717        } && test -s conftest$ac_exeext && {
19718          test "$cross_compiling" = yes ||
19719          $as_test_x conftest$ac_exeext
19720        }; then
19721   pgac_cv_var_int_timezone=yes
19722 else
19723   $as_echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726         pgac_cv_var_int_timezone=no
19727 fi
19728
19729 rm -rf conftest.dSYM
19730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19731       conftest$ac_exeext conftest.$ac_ext
19732 fi
19733 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_timezone" >&5
19734 $as_echo "$pgac_cv_var_int_timezone" >&6; }
19735 if test x"$pgac_cv_var_int_timezone" = xyes ; then
19736
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_INT_TIMEZONE 1
19739 _ACEOF
19740
19741 fi
19742 { $as_echo "$as_me:$LINENO: checking types of arguments for accept()" >&5
19743 $as_echo_n "checking types of arguments for accept()... " >&6; }
19744  if test "${ac_cv_func_accept_return+set}" = set; then
19745   $as_echo_n "(cached) " >&6
19746 else
19747    if test "${ac_cv_func_accept_arg1+set}" = set; then
19748   $as_echo_n "(cached) " >&6
19749 else
19750     if test "${ac_cv_func_accept_arg2+set}" = set; then
19751   $as_echo_n "(cached) " >&6
19752 else
19753      if test "${ac_cv_func_accept_arg3+set}" = set; then
19754   $as_echo_n "(cached) " >&6
19755 else
19756       for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL' 'SOCKET WSAAPI'; do
19757       for ac_cv_func_accept_arg1 in 'int' 'unsigned int' 'SOCKET'; do
19758        for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
19759         for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
19760          cat >conftest.$ac_ext <<_ACEOF
19761 /* confdefs.h.  */
19762 _ACEOF
19763 cat confdefs.h >>conftest.$ac_ext
19764 cat >>conftest.$ac_ext <<_ACEOF
19765 /* end confdefs.h.  */
19766 #ifdef HAVE_SYS_TYPES_H
19767 #include <sys/types.h>
19768 #endif
19769 #ifdef HAVE_SYS_SOCKET_H
19770 #include <sys/socket.h>
19771 #endif
19772 extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
19773 int
19774 main ()
19775 {
19776
19777   ;
19778   return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext
19782 if { (ac_try="$ac_compile"
19783 case "(($ac_try" in
19784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785   *) ac_try_echo=$ac_try;;
19786 esac
19787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788 $as_echo "$ac_try_echo") >&5
19789   (eval "$ac_compile") 2>conftest.er1
19790   ac_status=$?
19791   grep -v '^ *+' conftest.er1 >conftest.err
19792   rm -f conftest.er1
19793   cat conftest.err >&5
19794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795   (exit $ac_status); } && {
19796          test -z "$ac_c_werror_flag" ||
19797          test ! -s conftest.err
19798        } && test -s conftest.$ac_objext; then
19799   ac_not_found=no; break 4
19800 else
19801   $as_echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804         ac_not_found=yes
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19808        done
19809       done
19810      done
19811     done
19812     if test "$ac_not_found" = yes; then
19813       { { $as_echo "$as_me:$LINENO: error: could not determine argument types" >&5
19814 $as_echo "$as_me: error: could not determine argument types" >&2;}
19815    { (exit 1); exit 1; }; }
19816     fi
19817     if test "$ac_cv_func_accept_arg3" = "void"; then
19818       ac_cv_func_accept_arg3=int
19819     fi
19820
19821 fi
19822
19823 fi
19824
19825 fi
19826
19827 fi
19828  { $as_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
19829 $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
19830
19831 cat >>confdefs.h <<_ACEOF
19832 #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
19833 _ACEOF
19834
19835
19836 cat >>confdefs.h <<_ACEOF
19837 #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
19838 _ACEOF
19839
19840
19841 cat >>confdefs.h <<_ACEOF
19842 #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
19843 _ACEOF
19844
19845
19846 cat >>confdefs.h <<_ACEOF
19847 #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
19848 _ACEOF
19849
19850
19851 { $as_echo "$as_me:$LINENO: checking whether gettimeofday takes only one argument" >&5
19852 $as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
19853 if test "${pgac_cv_func_gettimeofday_1arg+set}" = set; then
19854   $as_echo_n "(cached) " >&6
19855 else
19856   cat >conftest.$ac_ext <<_ACEOF
19857 /* confdefs.h.  */
19858 _ACEOF
19859 cat confdefs.h >>conftest.$ac_ext
19860 cat >>conftest.$ac_ext <<_ACEOF
19861 /* end confdefs.h.  */
19862 #include <sys/time.h>
19863 int
19864 main ()
19865 {
19866 struct timeval *tp;
19867 struct timezone *tzp;
19868 gettimeofday(tp,tzp);
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext
19874 if { (ac_try="$ac_compile"
19875 case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19880 $as_echo "$ac_try_echo") >&5
19881   (eval "$ac_compile") 2>conftest.er1
19882   ac_status=$?
19883   grep -v '^ *+' conftest.er1 >conftest.err
19884   rm -f conftest.er1
19885   cat conftest.err >&5
19886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); } && {
19888          test -z "$ac_c_werror_flag" ||
19889          test ! -s conftest.err
19890        } && test -s conftest.$ac_objext; then
19891   pgac_cv_func_gettimeofday_1arg=no
19892 else
19893   $as_echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896         pgac_cv_func_gettimeofday_1arg=yes
19897 fi
19898
19899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900 fi
19901 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_gettimeofday_1arg" >&5
19902 $as_echo "$pgac_cv_func_gettimeofday_1arg" >&6; }
19903 if test x"$pgac_cv_func_gettimeofday_1arg" = xyes ; then
19904
19905 cat >>confdefs.h <<\_ACEOF
19906 #define GETTIMEOFDAY_1ARG 1
19907 _ACEOF
19908
19909 fi
19910
19911
19912
19913 # Some versions of libedit contain strlcpy(), setproctitle(), and other
19914 # symbols that that library has no business exposing to the world.  Pending
19915 # acquisition of a clue by those developers, ignore libedit (including its
19916 # possible alias of libreadline) while checking for everything else.
19917 LIBS_including_readline="$LIBS"
19918 LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
19919
19920
19921
19922
19923
19924
19925
19926
19927
19928
19929
19930
19931
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942 for ac_func in cbrt dlopen fdatasync getifaddrs getpeerucred getrlimit mbstowcs_l memmove poll pstat readlink setproctitle setsid shm_open sigprocmask symlink sync_file_range towlower utime utimes wcstombs wcstombs_l
19943 do
19944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19945 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19946 $as_echo_n "checking for $ac_func... " >&6; }
19947 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19948   $as_echo_n "(cached) " >&6
19949 else
19950   cat >conftest.$ac_ext <<_ACEOF
19951 /* confdefs.h.  */
19952 _ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h.  */
19956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19957    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19958 #define $ac_func innocuous_$ac_func
19959
19960 /* System header to define __stub macros and hopefully few prototypes,
19961     which can conflict with char $ac_func (); below.
19962     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19963     <limits.h> exists even on freestanding compilers.  */
19964
19965 #ifdef __STDC__
19966 # include <limits.h>
19967 #else
19968 # include <assert.h>
19969 #endif
19970
19971 #undef $ac_func
19972
19973 /* Override any GCC internal prototype to avoid an error.
19974    Use char because int might match the return type of a GCC
19975    builtin and then its argument prototype would still apply.  */
19976 #ifdef __cplusplus
19977 extern "C"
19978 #endif
19979 char $ac_func ();
19980 /* The GNU C library defines this for functions which it implements
19981     to always fail with ENOSYS.  Some functions are actually named
19982     something starting with __ and the normal name is an alias.  */
19983 #if defined __stub_$ac_func || defined __stub___$ac_func
19984 choke me
19985 #endif
19986
19987 int
19988 main ()
19989 {
19990 return $ac_func ();
19991   ;
19992   return 0;
19993 }
19994 _ACEOF
19995 rm -f conftest.$ac_objext conftest$ac_exeext
19996 if { (ac_try="$ac_link"
19997 case "(($ac_try" in
19998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19999   *) ac_try_echo=$ac_try;;
20000 esac
20001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20002 $as_echo "$ac_try_echo") >&5
20003   (eval "$ac_link") 2>conftest.er1
20004   ac_status=$?
20005   grep -v '^ *+' conftest.er1 >conftest.err
20006   rm -f conftest.er1
20007   cat conftest.err >&5
20008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009   (exit $ac_status); } && {
20010          test -z "$ac_c_werror_flag" ||
20011          test ! -s conftest.err
20012        } && test -s conftest$ac_exeext && {
20013          test "$cross_compiling" = yes ||
20014          $as_test_x conftest$ac_exeext
20015        }; then
20016   eval "$as_ac_var=yes"
20017 else
20018   $as_echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20020
20021         eval "$as_ac_var=no"
20022 fi
20023
20024 rm -rf conftest.dSYM
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026       conftest$ac_exeext conftest.$ac_ext
20027 fi
20028 ac_res=`eval 'as_val=${'$as_ac_var'}
20029                  $as_echo "$as_val"'`
20030                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20031 $as_echo "$ac_res" >&6; }
20032 as_val=`eval 'as_val=${'$as_ac_var'}
20033                  $as_echo "$as_val"'`
20034    if test "x$as_val" = x""yes; then
20035   cat >>confdefs.h <<_ACEOF
20036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20037 _ACEOF
20038
20039 fi
20040 done
20041
20042
20043
20044 for ac_func in fseeko
20045 do
20046 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20047 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20048 $as_echo_n "checking for $ac_func... " >&6; }
20049 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20050   $as_echo_n "(cached) " >&6
20051 else
20052   cat >conftest.$ac_ext <<_ACEOF
20053 /* confdefs.h.  */
20054 _ACEOF
20055 cat confdefs.h >>conftest.$ac_ext
20056 cat >>conftest.$ac_ext <<_ACEOF
20057 /* end confdefs.h.  */
20058 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20059    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20060 #define $ac_func innocuous_$ac_func
20061
20062 /* System header to define __stub macros and hopefully few prototypes,
20063     which can conflict with char $ac_func (); below.
20064     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20065     <limits.h> exists even on freestanding compilers.  */
20066
20067 #ifdef __STDC__
20068 # include <limits.h>
20069 #else
20070 # include <assert.h>
20071 #endif
20072
20073 #undef $ac_func
20074
20075 /* Override any GCC internal prototype to avoid an error.
20076    Use char because int might match the return type of a GCC
20077    builtin and then its argument prototype would still apply.  */
20078 #ifdef __cplusplus
20079 extern "C"
20080 #endif
20081 char $ac_func ();
20082 /* The GNU C library defines this for functions which it implements
20083     to always fail with ENOSYS.  Some functions are actually named
20084     something starting with __ and the normal name is an alias.  */
20085 #if defined __stub_$ac_func || defined __stub___$ac_func
20086 choke me
20087 #endif
20088
20089 int
20090 main ()
20091 {
20092 return $ac_func ();
20093   ;
20094   return 0;
20095 }
20096 _ACEOF
20097 rm -f conftest.$ac_objext conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101   *) ac_try_echo=$ac_try;;
20102 esac
20103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20104 $as_echo "$ac_try_echo") >&5
20105   (eval "$ac_link") 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } && {
20112          test -z "$ac_c_werror_flag" ||
20113          test ! -s conftest.err
20114        } && test -s conftest$ac_exeext && {
20115          test "$cross_compiling" = yes ||
20116          $as_test_x conftest$ac_exeext
20117        }; then
20118   eval "$as_ac_var=yes"
20119 else
20120   $as_echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123         eval "$as_ac_var=no"
20124 fi
20125
20126 rm -rf conftest.dSYM
20127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20128       conftest$ac_exeext conftest.$ac_ext
20129 fi
20130 ac_res=`eval 'as_val=${'$as_ac_var'}
20131                  $as_echo "$as_val"'`
20132                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20133 $as_echo "$ac_res" >&6; }
20134 as_val=`eval 'as_val=${'$as_ac_var'}
20135                  $as_echo "$as_val"'`
20136    if test "x$as_val" = x""yes; then
20137   cat >>confdefs.h <<_ACEOF
20138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20139 _ACEOF
20140
20141 else
20142   case " $LIBOBJS " in
20143   *" $ac_func.$ac_objext "* ) ;;
20144   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
20145  ;;
20146 esac
20147
20148 fi
20149 done
20150
20151
20152 case $host_os in
20153         # NetBSD uses a custom fseeko/ftello built on fsetpos/fgetpos
20154         # Mingw uses macros to access Win32 API calls
20155         netbsd*|mingw*)
20156
20157 cat >>confdefs.h <<\_ACEOF
20158 #define HAVE_FSEEKO 1
20159 _ACEOF
20160
20161                 ac_cv_func_fseeko=yes;;
20162         *)
20163                 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20164 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20165 if test "${ac_cv_sys_largefile_source+set}" = set; then
20166   $as_echo_n "(cached) " >&6
20167 else
20168   while :; do
20169   cat >conftest.$ac_ext <<_ACEOF
20170 /* confdefs.h.  */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h.  */
20175 #include <sys/types.h> /* for off_t */
20176      #include <stdio.h>
20177 int
20178 main ()
20179 {
20180 int (*fp) (FILE *, off_t, int) = fseeko;
20181      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20182   ;
20183   return 0;
20184 }
20185 _ACEOF
20186 rm -f conftest.$ac_objext conftest$ac_exeext
20187 if { (ac_try="$ac_link"
20188 case "(($ac_try" in
20189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190   *) ac_try_echo=$ac_try;;
20191 esac
20192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20193 $as_echo "$ac_try_echo") >&5
20194   (eval "$ac_link") 2>conftest.er1
20195   ac_status=$?
20196   grep -v '^ *+' conftest.er1 >conftest.err
20197   rm -f conftest.er1
20198   cat conftest.err >&5
20199   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); } && {
20201          test -z "$ac_c_werror_flag" ||
20202          test ! -s conftest.err
20203        } && test -s conftest$ac_exeext && {
20204          test "$cross_compiling" = yes ||
20205          $as_test_x conftest$ac_exeext
20206        }; then
20207   ac_cv_sys_largefile_source=no; break
20208 else
20209   $as_echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212
20213 fi
20214
20215 rm -rf conftest.dSYM
20216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20217       conftest$ac_exeext conftest.$ac_ext
20218   cat >conftest.$ac_ext <<_ACEOF
20219 /* confdefs.h.  */
20220 _ACEOF
20221 cat confdefs.h >>conftest.$ac_ext
20222 cat >>conftest.$ac_ext <<_ACEOF
20223 /* end confdefs.h.  */
20224 #define _LARGEFILE_SOURCE 1
20225 #include <sys/types.h> /* for off_t */
20226      #include <stdio.h>
20227 int
20228 main ()
20229 {
20230 int (*fp) (FILE *, off_t, int) = fseeko;
20231      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20232   ;
20233   return 0;
20234 }
20235 _ACEOF
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240   *) ac_try_echo=$ac_try;;
20241 esac
20242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20243 $as_echo "$ac_try_echo") >&5
20244   (eval "$ac_link") 2>conftest.er1
20245   ac_status=$?
20246   grep -v '^ *+' conftest.er1 >conftest.err
20247   rm -f conftest.er1
20248   cat conftest.err >&5
20249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250   (exit $ac_status); } && {
20251          test -z "$ac_c_werror_flag" ||
20252          test ! -s conftest.err
20253        } && test -s conftest$ac_exeext && {
20254          test "$cross_compiling" = yes ||
20255          $as_test_x conftest$ac_exeext
20256        }; then
20257   ac_cv_sys_largefile_source=1; break
20258 else
20259   $as_echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20261
20262
20263 fi
20264
20265 rm -rf conftest.dSYM
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267       conftest$ac_exeext conftest.$ac_ext
20268   ac_cv_sys_largefile_source=unknown
20269   break
20270 done
20271 fi
20272 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20273 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20274 case $ac_cv_sys_largefile_source in #(
20275   no | unknown) ;;
20276   *)
20277 cat >>confdefs.h <<_ACEOF
20278 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20279 _ACEOF
20280 ;;
20281 esac
20282 rm -rf conftest*
20283
20284 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20285 # in glibc 2.1.3, but that breaks too many other things.
20286 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20287 if test $ac_cv_sys_largefile_source != unknown; then
20288
20289 cat >>confdefs.h <<\_ACEOF
20290 #define HAVE_FSEEKO 1
20291 _ACEOF
20292
20293 fi
20294 ;;
20295 esac
20296
20297 # posix_fadvise() is a no-op on Solaris, so don't incur function overhead
20298 # by calling it, 2009-04-02
20299 # http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/libc/port/gen/posix_fadvise.c
20300 if test "$PORTNAME" != "solaris"; then
20301
20302 for ac_func in posix_fadvise
20303 do
20304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20305 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20306 $as_echo_n "checking for $ac_func... " >&6; }
20307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20308   $as_echo_n "(cached) " >&6
20309 else
20310   cat >conftest.$ac_ext <<_ACEOF
20311 /* confdefs.h.  */
20312 _ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h.  */
20316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20318 #define $ac_func innocuous_$ac_func
20319
20320 /* System header to define __stub macros and hopefully few prototypes,
20321     which can conflict with char $ac_func (); below.
20322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20323     <limits.h> exists even on freestanding compilers.  */
20324
20325 #ifdef __STDC__
20326 # include <limits.h>
20327 #else
20328 # include <assert.h>
20329 #endif
20330
20331 #undef $ac_func
20332
20333 /* Override any GCC internal prototype to avoid an error.
20334    Use char because int might match the return type of a GCC
20335    builtin and then its argument prototype would still apply.  */
20336 #ifdef __cplusplus
20337 extern "C"
20338 #endif
20339 char $ac_func ();
20340 /* The GNU C library defines this for functions which it implements
20341     to always fail with ENOSYS.  Some functions are actually named
20342     something starting with __ and the normal name is an alias.  */
20343 #if defined __stub_$ac_func || defined __stub___$ac_func
20344 choke me
20345 #endif
20346
20347 int
20348 main ()
20349 {
20350 return $ac_func ();
20351   ;
20352   return 0;
20353 }
20354 _ACEOF
20355 rm -f conftest.$ac_objext conftest$ac_exeext
20356 if { (ac_try="$ac_link"
20357 case "(($ac_try" in
20358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359   *) ac_try_echo=$ac_try;;
20360 esac
20361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20362 $as_echo "$ac_try_echo") >&5
20363   (eval "$ac_link") 2>conftest.er1
20364   ac_status=$?
20365   grep -v '^ *+' conftest.er1 >conftest.err
20366   rm -f conftest.er1
20367   cat conftest.err >&5
20368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); } && {
20370          test -z "$ac_c_werror_flag" ||
20371          test ! -s conftest.err
20372        } && test -s conftest$ac_exeext && {
20373          test "$cross_compiling" = yes ||
20374          $as_test_x conftest$ac_exeext
20375        }; then
20376   eval "$as_ac_var=yes"
20377 else
20378   $as_echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381         eval "$as_ac_var=no"
20382 fi
20383
20384 rm -rf conftest.dSYM
20385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20386       conftest$ac_exeext conftest.$ac_ext
20387 fi
20388 ac_res=`eval 'as_val=${'$as_ac_var'}
20389                  $as_echo "$as_val"'`
20390                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20391 $as_echo "$ac_res" >&6; }
20392 as_val=`eval 'as_val=${'$as_ac_var'}
20393                  $as_echo "$as_val"'`
20394    if test "x$as_val" = x""yes; then
20395   cat >>confdefs.h <<_ACEOF
20396 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20397 _ACEOF
20398
20399 fi
20400 done
20401
20402 { $as_echo "$as_me:$LINENO: checking whether posix_fadvise is declared" >&5
20403 $as_echo_n "checking whether posix_fadvise is declared... " >&6; }
20404 if test "${ac_cv_have_decl_posix_fadvise+set}" = set; then
20405   $as_echo_n "(cached) " >&6
20406 else
20407   cat >conftest.$ac_ext <<_ACEOF
20408 /* confdefs.h.  */
20409 _ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h.  */
20413 #include <fcntl.h>
20414
20415 int
20416 main ()
20417 {
20418 #ifndef posix_fadvise
20419   (void) posix_fadvise;
20420 #endif
20421
20422   ;
20423   return 0;
20424 }
20425 _ACEOF
20426 rm -f conftest.$ac_objext
20427 if { (ac_try="$ac_compile"
20428 case "(($ac_try" in
20429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430   *) ac_try_echo=$ac_try;;
20431 esac
20432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20433 $as_echo "$ac_try_echo") >&5
20434   (eval "$ac_compile") 2>conftest.er1
20435   ac_status=$?
20436   grep -v '^ *+' conftest.er1 >conftest.err
20437   rm -f conftest.er1
20438   cat conftest.err >&5
20439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); } && {
20441          test -z "$ac_c_werror_flag" ||
20442          test ! -s conftest.err
20443        } && test -s conftest.$ac_objext; then
20444   ac_cv_have_decl_posix_fadvise=yes
20445 else
20446   $as_echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20448
20449         ac_cv_have_decl_posix_fadvise=no
20450 fi
20451
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453 fi
20454 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_posix_fadvise" >&5
20455 $as_echo "$ac_cv_have_decl_posix_fadvise" >&6; }
20456 if test "x$ac_cv_have_decl_posix_fadvise" = x""yes; then
20457
20458 cat >>confdefs.h <<_ACEOF
20459 #define HAVE_DECL_POSIX_FADVISE 1
20460 _ACEOF
20461
20462
20463 else
20464   cat >>confdefs.h <<_ACEOF
20465 #define HAVE_DECL_POSIX_FADVISE 0
20466 _ACEOF
20467
20468
20469 fi
20470
20471
20472 fi
20473
20474 { $as_echo "$as_me:$LINENO: checking whether fdatasync is declared" >&5
20475 $as_echo_n "checking whether fdatasync is declared... " >&6; }
20476 if test "${ac_cv_have_decl_fdatasync+set}" = set; then
20477   $as_echo_n "(cached) " >&6
20478 else
20479   cat >conftest.$ac_ext <<_ACEOF
20480 /* confdefs.h.  */
20481 _ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h.  */
20485 #include <unistd.h>
20486
20487 int
20488 main ()
20489 {
20490 #ifndef fdatasync
20491   (void) fdatasync;
20492 #endif
20493
20494   ;
20495   return 0;
20496 }
20497 _ACEOF
20498 rm -f conftest.$ac_objext
20499 if { (ac_try="$ac_compile"
20500 case "(($ac_try" in
20501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502   *) ac_try_echo=$ac_try;;
20503 esac
20504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20505 $as_echo "$ac_try_echo") >&5
20506   (eval "$ac_compile") 2>conftest.er1
20507   ac_status=$?
20508   grep -v '^ *+' conftest.er1 >conftest.err
20509   rm -f conftest.er1
20510   cat conftest.err >&5
20511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); } && {
20513          test -z "$ac_c_werror_flag" ||
20514          test ! -s conftest.err
20515        } && test -s conftest.$ac_objext; then
20516   ac_cv_have_decl_fdatasync=yes
20517 else
20518   $as_echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521         ac_cv_have_decl_fdatasync=no
20522 fi
20523
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdatasync" >&5
20527 $as_echo "$ac_cv_have_decl_fdatasync" >&6; }
20528 if test "x$ac_cv_have_decl_fdatasync" = x""yes; then
20529
20530 cat >>confdefs.h <<_ACEOF
20531 #define HAVE_DECL_FDATASYNC 1
20532 _ACEOF
20533
20534
20535 else
20536   cat >>confdefs.h <<_ACEOF
20537 #define HAVE_DECL_FDATASYNC 0
20538 _ACEOF
20539
20540
20541 fi
20542
20543
20544 { $as_echo "$as_me:$LINENO: checking whether strlcat is declared" >&5
20545 $as_echo_n "checking whether strlcat is declared... " >&6; }
20546 if test "${ac_cv_have_decl_strlcat+set}" = set; then
20547   $as_echo_n "(cached) " >&6
20548 else
20549   cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555 $ac_includes_default
20556 int
20557 main ()
20558 {
20559 #ifndef strlcat
20560   (void) strlcat;
20561 #endif
20562
20563   ;
20564   return 0;
20565 }
20566 _ACEOF
20567 rm -f conftest.$ac_objext
20568 if { (ac_try="$ac_compile"
20569 case "(($ac_try" in
20570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571   *) ac_try_echo=$ac_try;;
20572 esac
20573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20574 $as_echo "$ac_try_echo") >&5
20575   (eval "$ac_compile") 2>conftest.er1
20576   ac_status=$?
20577   grep -v '^ *+' conftest.er1 >conftest.err
20578   rm -f conftest.er1
20579   cat conftest.err >&5
20580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } && {
20582          test -z "$ac_c_werror_flag" ||
20583          test ! -s conftest.err
20584        } && test -s conftest.$ac_objext; then
20585   ac_cv_have_decl_strlcat=yes
20586 else
20587   $as_echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590         ac_cv_have_decl_strlcat=no
20591 fi
20592
20593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20594 fi
20595 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcat" >&5
20596 $as_echo "$ac_cv_have_decl_strlcat" >&6; }
20597 if test "x$ac_cv_have_decl_strlcat" = x""yes; then
20598
20599 cat >>confdefs.h <<_ACEOF
20600 #define HAVE_DECL_STRLCAT 1
20601 _ACEOF
20602
20603
20604 else
20605   cat >>confdefs.h <<_ACEOF
20606 #define HAVE_DECL_STRLCAT 0
20607 _ACEOF
20608
20609
20610 fi
20611 { $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
20612 $as_echo_n "checking whether strlcpy is declared... " >&6; }
20613 if test "${ac_cv_have_decl_strlcpy+set}" = set; then
20614   $as_echo_n "(cached) " >&6
20615 else
20616   cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h.  */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h.  */
20622 $ac_includes_default
20623 int
20624 main ()
20625 {
20626 #ifndef strlcpy
20627   (void) strlcpy;
20628 #endif
20629
20630   ;
20631   return 0;
20632 }
20633 _ACEOF
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638   *) ac_try_echo=$ac_try;;
20639 esac
20640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20641 $as_echo "$ac_try_echo") >&5
20642   (eval "$ac_compile") 2>conftest.er1
20643   ac_status=$?
20644   grep -v '^ *+' conftest.er1 >conftest.err
20645   rm -f conftest.er1
20646   cat conftest.err >&5
20647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } && {
20649          test -z "$ac_c_werror_flag" ||
20650          test ! -s conftest.err
20651        } && test -s conftest.$ac_objext; then
20652   ac_cv_have_decl_strlcpy=yes
20653 else
20654   $as_echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657         ac_cv_have_decl_strlcpy=no
20658 fi
20659
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 fi
20662 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
20663 $as_echo "$ac_cv_have_decl_strlcpy" >&6; }
20664 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
20665
20666 cat >>confdefs.h <<_ACEOF
20667 #define HAVE_DECL_STRLCPY 1
20668 _ACEOF
20669
20670
20671 else
20672   cat >>confdefs.h <<_ACEOF
20673 #define HAVE_DECL_STRLCPY 0
20674 _ACEOF
20675
20676
20677 fi
20678
20679
20680 # This is probably only present on Darwin, but may as well check always
20681 { $as_echo "$as_me:$LINENO: checking whether F_FULLFSYNC is declared" >&5
20682 $as_echo_n "checking whether F_FULLFSYNC is declared... " >&6; }
20683 if test "${ac_cv_have_decl_F_FULLFSYNC+set}" = set; then
20684   $as_echo_n "(cached) " >&6
20685 else
20686   cat >conftest.$ac_ext <<_ACEOF
20687 /* confdefs.h.  */
20688 _ACEOF
20689 cat confdefs.h >>conftest.$ac_ext
20690 cat >>conftest.$ac_ext <<_ACEOF
20691 /* end confdefs.h.  */
20692 #include <fcntl.h>
20693
20694 int
20695 main ()
20696 {
20697 #ifndef F_FULLFSYNC
20698   (void) F_FULLFSYNC;
20699 #endif
20700
20701   ;
20702   return 0;
20703 }
20704 _ACEOF
20705 rm -f conftest.$ac_objext
20706 if { (ac_try="$ac_compile"
20707 case "(($ac_try" in
20708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20709   *) ac_try_echo=$ac_try;;
20710 esac
20711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20712 $as_echo "$ac_try_echo") >&5
20713   (eval "$ac_compile") 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } && {
20720          test -z "$ac_c_werror_flag" ||
20721          test ! -s conftest.err
20722        } && test -s conftest.$ac_objext; then
20723   ac_cv_have_decl_F_FULLFSYNC=yes
20724 else
20725   $as_echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20727
20728         ac_cv_have_decl_F_FULLFSYNC=no
20729 fi
20730
20731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732 fi
20733 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_FULLFSYNC" >&5
20734 $as_echo "$ac_cv_have_decl_F_FULLFSYNC" >&6; }
20735 if test "x$ac_cv_have_decl_F_FULLFSYNC" = x""yes; then
20736
20737 cat >>confdefs.h <<_ACEOF
20738 #define HAVE_DECL_F_FULLFSYNC 1
20739 _ACEOF
20740
20741
20742 else
20743   cat >>confdefs.h <<_ACEOF
20744 #define HAVE_DECL_F_FULLFSYNC 0
20745 _ACEOF
20746
20747
20748 fi
20749
20750
20751
20752 HAVE_IPV6=no
20753 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
20754 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
20755 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
20756   $as_echo_n "(cached) " >&6
20757 else
20758   ac_cv_type_struct_sockaddr_in6=no
20759 cat >conftest.$ac_ext <<_ACEOF
20760 /* confdefs.h.  */
20761 _ACEOF
20762 cat confdefs.h >>conftest.$ac_ext
20763 cat >>conftest.$ac_ext <<_ACEOF
20764 /* end confdefs.h.  */
20765 $ac_includes_default
20766 #include <netinet/in.h>
20767
20768 int
20769 main ()
20770 {
20771 if (sizeof (struct sockaddr_in6))
20772        return 0;
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 rm -f conftest.$ac_objext
20778 if { (ac_try="$ac_compile"
20779 case "(($ac_try" in
20780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20781   *) ac_try_echo=$ac_try;;
20782 esac
20783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20784 $as_echo "$ac_try_echo") >&5
20785   (eval "$ac_compile") 2>conftest.er1
20786   ac_status=$?
20787   grep -v '^ *+' conftest.er1 >conftest.err
20788   rm -f conftest.er1
20789   cat conftest.err >&5
20790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791   (exit $ac_status); } && {
20792          test -z "$ac_c_werror_flag" ||
20793          test ! -s conftest.err
20794        } && test -s conftest.$ac_objext; then
20795   cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 $ac_includes_default
20802 #include <netinet/in.h>
20803
20804 int
20805 main ()
20806 {
20807 if (sizeof ((struct sockaddr_in6)))
20808           return 0;
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817   *) ac_try_echo=$ac_try;;
20818 esac
20819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20820 $as_echo "$ac_try_echo") >&5
20821   (eval "$ac_compile") 2>conftest.er1
20822   ac_status=$?
20823   grep -v '^ *+' conftest.er1 >conftest.err
20824   rm -f conftest.er1
20825   cat conftest.err >&5
20826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); } && {
20828          test -z "$ac_c_werror_flag" ||
20829          test ! -s conftest.err
20830        } && test -s conftest.$ac_objext; then
20831   :
20832 else
20833   $as_echo "$as_me: failed program was:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20835
20836         ac_cv_type_struct_sockaddr_in6=yes
20837 fi
20838
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840 else
20841   $as_echo "$as_me: failed program was:" >&5
20842 sed 's/^/| /' conftest.$ac_ext >&5
20843
20844
20845 fi
20846
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848 fi
20849 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
20850 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
20851 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
20852
20853 cat >>confdefs.h <<\_ACEOF
20854 #define HAVE_IPV6 1
20855 _ACEOF
20856
20857          HAVE_IPV6=yes
20858 fi
20859
20860
20861
20862 { $as_echo "$as_me:$LINENO: checking for PS_STRINGS" >&5
20863 $as_echo_n "checking for PS_STRINGS... " >&6; }
20864 if test "${pgac_cv_var_PS_STRINGS+set}" = set; then
20865   $as_echo_n "(cached) " >&6
20866 else
20867   cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h.  */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h.  */
20873 #include <machine/vmparam.h>
20874 #include <sys/exec.h>
20875
20876 int
20877 main ()
20878 {
20879 PS_STRINGS->ps_nargvstr = 1;
20880 PS_STRINGS->ps_argvstr = "foo";
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 rm -f conftest.$ac_objext conftest$ac_exeext
20886 if { (ac_try="$ac_link"
20887 case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20892 $as_echo "$ac_try_echo") >&5
20893   (eval "$ac_link") 2>conftest.er1
20894   ac_status=$?
20895   grep -v '^ *+' conftest.er1 >conftest.err
20896   rm -f conftest.er1
20897   cat conftest.err >&5
20898   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); } && {
20900          test -z "$ac_c_werror_flag" ||
20901          test ! -s conftest.err
20902        } && test -s conftest$ac_exeext && {
20903          test "$cross_compiling" = yes ||
20904          $as_test_x conftest$ac_exeext
20905        }; then
20906   pgac_cv_var_PS_STRINGS=yes
20907 else
20908   $as_echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911         pgac_cv_var_PS_STRINGS=no
20912 fi
20913
20914 rm -rf conftest.dSYM
20915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20916       conftest$ac_exeext conftest.$ac_ext
20917 fi
20918 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_PS_STRINGS" >&5
20919 $as_echo "$pgac_cv_var_PS_STRINGS" >&6; }
20920 if test "$pgac_cv_var_PS_STRINGS" = yes ; then
20921
20922 cat >>confdefs.h <<\_ACEOF
20923 #define HAVE_PS_STRINGS 1
20924 _ACEOF
20925
20926 fi
20927
20928
20929 # We use our snprintf.c emulation if either snprintf() or vsnprintf()
20930 # is missing.  Yes, there are machines that have only one.  We may
20931 # also decide to use snprintf.c if snprintf() is present but does not
20932 # have all the features we need --- see below.
20933
20934 if test "$PORTNAME" = "win32"; then
20935   # Win32 gets snprintf.c built unconditionally.
20936   #
20937   # To properly translate all NLS languages strings, we must support the
20938   # *printf() %$ format, which allows *printf() arguments to be selected
20939   # by position in the translated string.
20940   #
20941   # libintl versions < 0.13 use the native *printf() functions, and Win32
20942   # *printf() doesn't understand %$, so we must use our /port versions,
20943   # which do understand %$. libintl versions >= 0.13 include their own
20944   # *printf versions on Win32.  The libintl 0.13 release note text is:
20945   #
20946   #   C format strings with positions, as they arise when a translator
20947   #   needs to reorder a sentence, are now supported on all platforms.
20948   #   On those few platforms (NetBSD and Woe32) for which the native
20949   #   printf()/fprintf()/... functions don't support such format
20950   #   strings, replacements are provided through <libintl.h>.
20951   #
20952   # We could use libintl >= 0.13's *printf() if we were sure that we had
20953   # a litint >= 0.13 at runtime, but seeing that there is no clean way
20954   # to guarantee that, it is best to just use our own, so we are sure to
20955   # get %$ support. In include/port.h we disable the *printf() macros
20956   # that might have been defined by libintl.
20957   #
20958   # We do this unconditionally whether NLS is used or not so we are sure
20959   # that all Win32 libraries and binaries behave the same.
20960   pgac_need_repl_snprintf=yes
20961 else
20962   pgac_need_repl_snprintf=no
20963
20964 for ac_func in snprintf
20965 do
20966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20967 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20968 $as_echo_n "checking for $ac_func... " >&6; }
20969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20970   $as_echo_n "(cached) " >&6
20971 else
20972   cat >conftest.$ac_ext <<_ACEOF
20973 /* confdefs.h.  */
20974 _ACEOF
20975 cat confdefs.h >>conftest.$ac_ext
20976 cat >>conftest.$ac_ext <<_ACEOF
20977 /* end confdefs.h.  */
20978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20980 #define $ac_func innocuous_$ac_func
20981
20982 /* System header to define __stub macros and hopefully few prototypes,
20983     which can conflict with char $ac_func (); below.
20984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20985     <limits.h> exists even on freestanding compilers.  */
20986
20987 #ifdef __STDC__
20988 # include <limits.h>
20989 #else
20990 # include <assert.h>
20991 #endif
20992
20993 #undef $ac_func
20994
20995 /* Override any GCC internal prototype to avoid an error.
20996    Use char because int might match the return type of a GCC
20997    builtin and then its argument prototype would still apply.  */
20998 #ifdef __cplusplus
20999 extern "C"
21000 #endif
21001 char $ac_func ();
21002 /* The GNU C library defines this for functions which it implements
21003     to always fail with ENOSYS.  Some functions are actually named
21004     something starting with __ and the normal name is an alias.  */
21005 #if defined __stub_$ac_func || defined __stub___$ac_func
21006 choke me
21007 #endif
21008
21009 int
21010 main ()
21011 {
21012 return $ac_func ();
21013   ;
21014   return 0;
21015 }
21016 _ACEOF
21017 rm -f conftest.$ac_objext conftest$ac_exeext
21018 if { (ac_try="$ac_link"
21019 case "(($ac_try" in
21020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21021   *) ac_try_echo=$ac_try;;
21022 esac
21023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21024 $as_echo "$ac_try_echo") >&5
21025   (eval "$ac_link") 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } && {
21032          test -z "$ac_c_werror_flag" ||
21033          test ! -s conftest.err
21034        } && test -s conftest$ac_exeext && {
21035          test "$cross_compiling" = yes ||
21036          $as_test_x conftest$ac_exeext
21037        }; then
21038   eval "$as_ac_var=yes"
21039 else
21040   $as_echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.$ac_ext >&5
21042
21043         eval "$as_ac_var=no"
21044 fi
21045
21046 rm -rf conftest.dSYM
21047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21048       conftest$ac_exeext conftest.$ac_ext
21049 fi
21050 ac_res=`eval 'as_val=${'$as_ac_var'}
21051                  $as_echo "$as_val"'`
21052                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21053 $as_echo "$ac_res" >&6; }
21054 as_val=`eval 'as_val=${'$as_ac_var'}
21055                  $as_echo "$as_val"'`
21056    if test "x$as_val" = x""yes; then
21057   cat >>confdefs.h <<_ACEOF
21058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21059 _ACEOF
21060
21061 else
21062   pgac_need_repl_snprintf=yes
21063 fi
21064 done
21065
21066
21067 for ac_func in vsnprintf
21068 do
21069 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21071 $as_echo_n "checking for $ac_func... " >&6; }
21072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21073   $as_echo_n "(cached) " >&6
21074 else
21075   cat >conftest.$ac_ext <<_ACEOF
21076 /* confdefs.h.  */
21077 _ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h.  */
21081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21083 #define $ac_func innocuous_$ac_func
21084
21085 /* System header to define __stub macros and hopefully few prototypes,
21086     which can conflict with char $ac_func (); below.
21087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21088     <limits.h> exists even on freestanding compilers.  */
21089
21090 #ifdef __STDC__
21091 # include <limits.h>
21092 #else
21093 # include <assert.h>
21094 #endif
21095
21096 #undef $ac_func
21097
21098 /* Override any GCC internal prototype to avoid an error.
21099    Use char because int might match the return type of a GCC
21100    builtin and then its argument prototype would still apply.  */
21101 #ifdef __cplusplus
21102 extern "C"
21103 #endif
21104 char $ac_func ();
21105 /* The GNU C library defines this for functions which it implements
21106     to always fail with ENOSYS.  Some functions are actually named
21107     something starting with __ and the normal name is an alias.  */
21108 #if defined __stub_$ac_func || defined __stub___$ac_func
21109 choke me
21110 #endif
21111
21112 int
21113 main ()
21114 {
21115 return $ac_func ();
21116   ;
21117   return 0;
21118 }
21119 _ACEOF
21120 rm -f conftest.$ac_objext conftest$ac_exeext
21121 if { (ac_try="$ac_link"
21122 case "(($ac_try" in
21123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21124   *) ac_try_echo=$ac_try;;
21125 esac
21126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21127 $as_echo "$ac_try_echo") >&5
21128   (eval "$ac_link") 2>conftest.er1
21129   ac_status=$?
21130   grep -v '^ *+' conftest.er1 >conftest.err
21131   rm -f conftest.er1
21132   cat conftest.err >&5
21133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); } && {
21135          test -z "$ac_c_werror_flag" ||
21136          test ! -s conftest.err
21137        } && test -s conftest$ac_exeext && {
21138          test "$cross_compiling" = yes ||
21139          $as_test_x conftest$ac_exeext
21140        }; then
21141   eval "$as_ac_var=yes"
21142 else
21143   $as_echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.$ac_ext >&5
21145
21146         eval "$as_ac_var=no"
21147 fi
21148
21149 rm -rf conftest.dSYM
21150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21151       conftest$ac_exeext conftest.$ac_ext
21152 fi
21153 ac_res=`eval 'as_val=${'$as_ac_var'}
21154                  $as_echo "$as_val"'`
21155                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21156 $as_echo "$ac_res" >&6; }
21157 as_val=`eval 'as_val=${'$as_ac_var'}
21158                  $as_echo "$as_val"'`
21159    if test "x$as_val" = x""yes; then
21160   cat >>confdefs.h <<_ACEOF
21161 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21162 _ACEOF
21163
21164 else
21165   pgac_need_repl_snprintf=yes
21166 fi
21167 done
21168
21169 fi
21170
21171
21172 # Check whether <stdio.h> declares snprintf() and vsnprintf(); if not,
21173 # include/c.h will provide declarations.  Note this is a separate test
21174 # from whether the functions exist in the C library --- there are
21175 # systems that have the functions but don't bother to declare them :-(
21176
21177 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
21178 $as_echo_n "checking whether snprintf is declared... " >&6; }
21179 if test "${ac_cv_have_decl_snprintf+set}" = set; then
21180   $as_echo_n "(cached) " >&6
21181 else
21182   cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 $ac_includes_default
21189 int
21190 main ()
21191 {
21192 #ifndef snprintf
21193   (void) snprintf;
21194 #endif
21195
21196   ;
21197   return 0;
21198 }
21199 _ACEOF
21200 rm -f conftest.$ac_objext
21201 if { (ac_try="$ac_compile"
21202 case "(($ac_try" in
21203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204   *) ac_try_echo=$ac_try;;
21205 esac
21206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21207 $as_echo "$ac_try_echo") >&5
21208   (eval "$ac_compile") 2>conftest.er1
21209   ac_status=$?
21210   grep -v '^ *+' conftest.er1 >conftest.err
21211   rm -f conftest.er1
21212   cat conftest.err >&5
21213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); } && {
21215          test -z "$ac_c_werror_flag" ||
21216          test ! -s conftest.err
21217        } && test -s conftest.$ac_objext; then
21218   ac_cv_have_decl_snprintf=yes
21219 else
21220   $as_echo "$as_me: failed program was:" >&5
21221 sed 's/^/| /' conftest.$ac_ext >&5
21222
21223         ac_cv_have_decl_snprintf=no
21224 fi
21225
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21227 fi
21228 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
21229 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
21230 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
21231
21232 cat >>confdefs.h <<_ACEOF
21233 #define HAVE_DECL_SNPRINTF 1
21234 _ACEOF
21235
21236
21237 else
21238   cat >>confdefs.h <<_ACEOF
21239 #define HAVE_DECL_SNPRINTF 0
21240 _ACEOF
21241
21242
21243 fi
21244 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
21245 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
21246 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
21247   $as_echo_n "(cached) " >&6
21248 else
21249   cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 $ac_includes_default
21256 int
21257 main ()
21258 {
21259 #ifndef vsnprintf
21260   (void) vsnprintf;
21261 #endif
21262
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext
21268 if { (ac_try="$ac_compile"
21269 case "(($ac_try" in
21270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271   *) ac_try_echo=$ac_try;;
21272 esac
21273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21274 $as_echo "$ac_try_echo") >&5
21275   (eval "$ac_compile") 2>conftest.er1
21276   ac_status=$?
21277   grep -v '^ *+' conftest.er1 >conftest.err
21278   rm -f conftest.er1
21279   cat conftest.err >&5
21280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21281   (exit $ac_status); } && {
21282          test -z "$ac_c_werror_flag" ||
21283          test ! -s conftest.err
21284        } && test -s conftest.$ac_objext; then
21285   ac_cv_have_decl_vsnprintf=yes
21286 else
21287   $as_echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290         ac_cv_have_decl_vsnprintf=no
21291 fi
21292
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21294 fi
21295 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
21296 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
21297 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
21298
21299 cat >>confdefs.h <<_ACEOF
21300 #define HAVE_DECL_VSNPRINTF 1
21301 _ACEOF
21302
21303
21304 else
21305   cat >>confdefs.h <<_ACEOF
21306 #define HAVE_DECL_VSNPRINTF 0
21307 _ACEOF
21308
21309
21310 fi
21311
21312
21313
21314
21315 { $as_echo "$as_me:$LINENO: checking for isinf" >&5
21316 $as_echo_n "checking for isinf... " >&6; }
21317 if test "${ac_cv_func_isinf+set}" = set; then
21318   $as_echo_n "(cached) " >&6
21319 else
21320   cat >conftest.$ac_ext <<_ACEOF
21321 /* confdefs.h.  */
21322 _ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h.  */
21326
21327 #include <math.h>
21328 double glob_double;
21329
21330 int
21331 main ()
21332 {
21333 return isinf(glob_double) ? 0 : 1;
21334   ;
21335   return 0;
21336 }
21337 _ACEOF
21338 rm -f conftest.$ac_objext conftest$ac_exeext
21339 if { (ac_try="$ac_link"
21340 case "(($ac_try" in
21341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21342   *) ac_try_echo=$ac_try;;
21343 esac
21344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21345 $as_echo "$ac_try_echo") >&5
21346   (eval "$ac_link") 2>conftest.er1
21347   ac_status=$?
21348   grep -v '^ *+' conftest.er1 >conftest.err
21349   rm -f conftest.er1
21350   cat conftest.err >&5
21351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352   (exit $ac_status); } && {
21353          test -z "$ac_c_werror_flag" ||
21354          test ! -s conftest.err
21355        } && test -s conftest$ac_exeext && {
21356          test "$cross_compiling" = yes ||
21357          $as_test_x conftest$ac_exeext
21358        }; then
21359   ac_cv_func_isinf=yes
21360 else
21361   $as_echo "$as_me: failed program was:" >&5
21362 sed 's/^/| /' conftest.$ac_ext >&5
21363
21364         ac_cv_func_isinf=no
21365 fi
21366
21367 rm -rf conftest.dSYM
21368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21369       conftest$ac_exeext conftest.$ac_ext
21370 fi
21371 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_isinf" >&5
21372 $as_echo "$ac_cv_func_isinf" >&6; }
21373
21374 if test $ac_cv_func_isinf = yes ; then
21375
21376 cat >>confdefs.h <<\_ACEOF
21377 #define HAVE_ISINF 1
21378 _ACEOF
21379
21380 else
21381   case " $LIBOBJS " in
21382   *" isinf.$ac_objext "* ) ;;
21383   *) LIBOBJS="$LIBOBJS isinf.$ac_objext"
21384  ;;
21385 esac
21386
21387   # Look for a way to implement a substitute for isinf()
21388
21389
21390
21391
21392 for ac_func in fpclass fp_class fp_class_d class
21393 do
21394 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21395 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21396 $as_echo_n "checking for $ac_func... " >&6; }
21397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21398   $as_echo_n "(cached) " >&6
21399 else
21400   cat >conftest.$ac_ext <<_ACEOF
21401 /* confdefs.h.  */
21402 _ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h.  */
21406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21408 #define $ac_func innocuous_$ac_func
21409
21410 /* System header to define __stub macros and hopefully few prototypes,
21411     which can conflict with char $ac_func (); below.
21412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21413     <limits.h> exists even on freestanding compilers.  */
21414
21415 #ifdef __STDC__
21416 # include <limits.h>
21417 #else
21418 # include <assert.h>
21419 #endif
21420
21421 #undef $ac_func
21422
21423 /* Override any GCC internal prototype to avoid an error.
21424    Use char because int might match the return type of a GCC
21425    builtin and then its argument prototype would still apply.  */
21426 #ifdef __cplusplus
21427 extern "C"
21428 #endif
21429 char $ac_func ();
21430 /* The GNU C library defines this for functions which it implements
21431     to always fail with ENOSYS.  Some functions are actually named
21432     something starting with __ and the normal name is an alias.  */
21433 #if defined __stub_$ac_func || defined __stub___$ac_func
21434 choke me
21435 #endif
21436
21437 int
21438 main ()
21439 {
21440 return $ac_func ();
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext conftest$ac_exeext
21446 if { (ac_try="$ac_link"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21452 $as_echo "$ac_try_echo") >&5
21453   (eval "$ac_link") 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } && {
21460          test -z "$ac_c_werror_flag" ||
21461          test ! -s conftest.err
21462        } && test -s conftest$ac_exeext && {
21463          test "$cross_compiling" = yes ||
21464          $as_test_x conftest$ac_exeext
21465        }; then
21466   eval "$as_ac_var=yes"
21467 else
21468   $as_echo "$as_me: failed program was:" >&5
21469 sed 's/^/| /' conftest.$ac_ext >&5
21470
21471         eval "$as_ac_var=no"
21472 fi
21473
21474 rm -rf conftest.dSYM
21475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21476       conftest$ac_exeext conftest.$ac_ext
21477 fi
21478 ac_res=`eval 'as_val=${'$as_ac_var'}
21479                  $as_echo "$as_val"'`
21480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21481 $as_echo "$ac_res" >&6; }
21482 as_val=`eval 'as_val=${'$as_ac_var'}
21483                  $as_echo "$as_val"'`
21484    if test "x$as_val" = x""yes; then
21485   cat >>confdefs.h <<_ACEOF
21486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21487 _ACEOF
21488  break
21489 fi
21490 done
21491
21492 fi
21493
21494
21495
21496
21497
21498
21499
21500
21501
21502
21503
21504
21505
21506 for ac_func in asprintf crypt fls getopt getrusage inet_aton random rint srandom strerror strlcat strlcpy
21507 do
21508 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21509 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21510 $as_echo_n "checking for $ac_func... " >&6; }
21511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21512   $as_echo_n "(cached) " >&6
21513 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21522 #define $ac_func innocuous_$ac_func
21523
21524 /* System header to define __stub macros and hopefully few prototypes,
21525     which can conflict with char $ac_func (); below.
21526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21527     <limits.h> exists even on freestanding compilers.  */
21528
21529 #ifdef __STDC__
21530 # include <limits.h>
21531 #else
21532 # include <assert.h>
21533 #endif
21534
21535 #undef $ac_func
21536
21537 /* Override any GCC internal prototype to avoid an error.
21538    Use char because int might match the return type of a GCC
21539    builtin and then its argument prototype would still apply.  */
21540 #ifdef __cplusplus
21541 extern "C"
21542 #endif
21543 char $ac_func ();
21544 /* The GNU C library defines this for functions which it implements
21545     to always fail with ENOSYS.  Some functions are actually named
21546     something starting with __ and the normal name is an alias.  */
21547 #if defined __stub_$ac_func || defined __stub___$ac_func
21548 choke me
21549 #endif
21550
21551 int
21552 main ()
21553 {
21554 return $ac_func ();
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext conftest$ac_exeext
21560 if { (ac_try="$ac_link"
21561 case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21566 $as_echo "$ac_try_echo") >&5
21567   (eval "$ac_link") 2>conftest.er1
21568   ac_status=$?
21569   grep -v '^ *+' conftest.er1 >conftest.err
21570   rm -f conftest.er1
21571   cat conftest.err >&5
21572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); } && {
21574          test -z "$ac_c_werror_flag" ||
21575          test ! -s conftest.err
21576        } && test -s conftest$ac_exeext && {
21577          test "$cross_compiling" = yes ||
21578          $as_test_x conftest$ac_exeext
21579        }; then
21580   eval "$as_ac_var=yes"
21581 else
21582   $as_echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585         eval "$as_ac_var=no"
21586 fi
21587
21588 rm -rf conftest.dSYM
21589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21590       conftest$ac_exeext conftest.$ac_ext
21591 fi
21592 ac_res=`eval 'as_val=${'$as_ac_var'}
21593                  $as_echo "$as_val"'`
21594                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21595 $as_echo "$ac_res" >&6; }
21596 as_val=`eval 'as_val=${'$as_ac_var'}
21597                  $as_echo "$as_val"'`
21598    if test "x$as_val" = x""yes; then
21599   cat >>confdefs.h <<_ACEOF
21600 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21601 _ACEOF
21602
21603 else
21604   case " $LIBOBJS " in
21605   *" $ac_func.$ac_objext "* ) ;;
21606   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21607  ;;
21608 esac
21609
21610 fi
21611 done
21612
21613
21614
21615 case $host_os in
21616
21617         # Windows uses a specialised env handler
21618         # and doesn't need a replacement getpeereid because it doesn't use
21619         # Unix sockets.
21620         mingw*)
21621
21622 cat >>confdefs.h <<\_ACEOF
21623 #define HAVE_UNSETENV 1
21624 _ACEOF
21625
21626
21627 cat >>confdefs.h <<\_ACEOF
21628 #define HAVE_GETPEEREID 1
21629 _ACEOF
21630
21631                 ac_cv_func_unsetenv=yes
21632                 ac_cv_func_getpeereid=yes;;
21633         *)
21634
21635
21636 for ac_func in unsetenv getpeereid
21637 do
21638 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21639 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21640 $as_echo_n "checking for $ac_func... " >&6; }
21641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21642   $as_echo_n "(cached) " >&6
21643 else
21644   cat >conftest.$ac_ext <<_ACEOF
21645 /* confdefs.h.  */
21646 _ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h.  */
21650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21652 #define $ac_func innocuous_$ac_func
21653
21654 /* System header to define __stub macros and hopefully few prototypes,
21655     which can conflict with char $ac_func (); below.
21656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21657     <limits.h> exists even on freestanding compilers.  */
21658
21659 #ifdef __STDC__
21660 # include <limits.h>
21661 #else
21662 # include <assert.h>
21663 #endif
21664
21665 #undef $ac_func
21666
21667 /* Override any GCC internal prototype to avoid an error.
21668    Use char because int might match the return type of a GCC
21669    builtin and then its argument prototype would still apply.  */
21670 #ifdef __cplusplus
21671 extern "C"
21672 #endif
21673 char $ac_func ();
21674 /* The GNU C library defines this for functions which it implements
21675     to always fail with ENOSYS.  Some functions are actually named
21676     something starting with __ and the normal name is an alias.  */
21677 #if defined __stub_$ac_func || defined __stub___$ac_func
21678 choke me
21679 #endif
21680
21681 int
21682 main ()
21683 {
21684 return $ac_func ();
21685   ;
21686   return 0;
21687 }
21688 _ACEOF
21689 rm -f conftest.$ac_objext conftest$ac_exeext
21690 if { (ac_try="$ac_link"
21691 case "(($ac_try" in
21692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693   *) ac_try_echo=$ac_try;;
21694 esac
21695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21696 $as_echo "$ac_try_echo") >&5
21697   (eval "$ac_link") 2>conftest.er1
21698   ac_status=$?
21699   grep -v '^ *+' conftest.er1 >conftest.err
21700   rm -f conftest.er1
21701   cat conftest.err >&5
21702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703   (exit $ac_status); } && {
21704          test -z "$ac_c_werror_flag" ||
21705          test ! -s conftest.err
21706        } && test -s conftest$ac_exeext && {
21707          test "$cross_compiling" = yes ||
21708          $as_test_x conftest$ac_exeext
21709        }; then
21710   eval "$as_ac_var=yes"
21711 else
21712   $as_echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715         eval "$as_ac_var=no"
21716 fi
21717
21718 rm -rf conftest.dSYM
21719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21720       conftest$ac_exeext conftest.$ac_ext
21721 fi
21722 ac_res=`eval 'as_val=${'$as_ac_var'}
21723                  $as_echo "$as_val"'`
21724                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21725 $as_echo "$ac_res" >&6; }
21726 as_val=`eval 'as_val=${'$as_ac_var'}
21727                  $as_echo "$as_val"'`
21728    if test "x$as_val" = x""yes; then
21729   cat >>confdefs.h <<_ACEOF
21730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21731 _ACEOF
21732
21733 else
21734   case " $LIBOBJS " in
21735   *" $ac_func.$ac_objext "* ) ;;
21736   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21737  ;;
21738 esac
21739
21740 fi
21741 done
21742
21743
21744                 ;;
21745 esac
21746
21747 # System's version of getaddrinfo(), if any, may be used only if we found
21748 # a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
21749 # (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available
21750 # versions of getaddrinfo don't follow normal C call protocol.  This is OK
21751 # because we want to use our own getaddrinfo.c on Windows anyway.)
21752 if test x"$ac_cv_type_struct_addrinfo" = xyes ; then
21753
21754 for ac_func in getaddrinfo
21755 do
21756 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21757 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21758 $as_echo_n "checking for $ac_func... " >&6; }
21759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21760   $as_echo_n "(cached) " >&6
21761 else
21762   cat >conftest.$ac_ext <<_ACEOF
21763 /* confdefs.h.  */
21764 _ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h.  */
21768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21770 #define $ac_func innocuous_$ac_func
21771
21772 /* System header to define __stub macros and hopefully few prototypes,
21773     which can conflict with char $ac_func (); below.
21774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21775     <limits.h> exists even on freestanding compilers.  */
21776
21777 #ifdef __STDC__
21778 # include <limits.h>
21779 #else
21780 # include <assert.h>
21781 #endif
21782
21783 #undef $ac_func
21784
21785 /* Override any GCC internal prototype to avoid an error.
21786    Use char because int might match the return type of a GCC
21787    builtin and then its argument prototype would still apply.  */
21788 #ifdef __cplusplus
21789 extern "C"
21790 #endif
21791 char $ac_func ();
21792 /* The GNU C library defines this for functions which it implements
21793     to always fail with ENOSYS.  Some functions are actually named
21794     something starting with __ and the normal name is an alias.  */
21795 #if defined __stub_$ac_func || defined __stub___$ac_func
21796 choke me
21797 #endif
21798
21799 int
21800 main ()
21801 {
21802 return $ac_func ();
21803   ;
21804   return 0;
21805 }
21806 _ACEOF
21807 rm -f conftest.$ac_objext conftest$ac_exeext
21808 if { (ac_try="$ac_link"
21809 case "(($ac_try" in
21810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811   *) ac_try_echo=$ac_try;;
21812 esac
21813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21814 $as_echo "$ac_try_echo") >&5
21815   (eval "$ac_link") 2>conftest.er1
21816   ac_status=$?
21817   grep -v '^ *+' conftest.er1 >conftest.err
21818   rm -f conftest.er1
21819   cat conftest.err >&5
21820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821   (exit $ac_status); } && {
21822          test -z "$ac_c_werror_flag" ||
21823          test ! -s conftest.err
21824        } && test -s conftest$ac_exeext && {
21825          test "$cross_compiling" = yes ||
21826          $as_test_x conftest$ac_exeext
21827        }; then
21828   eval "$as_ac_var=yes"
21829 else
21830   $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.$ac_ext >&5
21832
21833         eval "$as_ac_var=no"
21834 fi
21835
21836 rm -rf conftest.dSYM
21837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21838       conftest$ac_exeext conftest.$ac_ext
21839 fi
21840 ac_res=`eval 'as_val=${'$as_ac_var'}
21841                  $as_echo "$as_val"'`
21842                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21843 $as_echo "$ac_res" >&6; }
21844 as_val=`eval 'as_val=${'$as_ac_var'}
21845                  $as_echo "$as_val"'`
21846    if test "x$as_val" = x""yes; then
21847   cat >>confdefs.h <<_ACEOF
21848 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21849 _ACEOF
21850
21851 else
21852   case " $LIBOBJS " in
21853   *" $ac_func.$ac_objext "* ) ;;
21854   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21855  ;;
21856 esac
21857
21858 fi
21859 done
21860
21861
21862 else
21863   case " $LIBOBJS " in
21864   *" getaddrinfo.$ac_objext "* ) ;;
21865   *) LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext"
21866  ;;
21867 esac
21868
21869 fi
21870
21871 # Similarly, use system's getopt_long() only if system provides struct option.
21872 if test x"$ac_cv_type_struct_option" = xyes ; then
21873
21874 for ac_func in getopt_long
21875 do
21876 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21877 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21878 $as_echo_n "checking for $ac_func... " >&6; }
21879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21880   $as_echo_n "(cached) " >&6
21881 else
21882   cat >conftest.$ac_ext <<_ACEOF
21883 /* confdefs.h.  */
21884 _ACEOF
21885 cat confdefs.h >>conftest.$ac_ext
21886 cat >>conftest.$ac_ext <<_ACEOF
21887 /* end confdefs.h.  */
21888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21889    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21890 #define $ac_func innocuous_$ac_func
21891
21892 /* System header to define __stub macros and hopefully few prototypes,
21893     which can conflict with char $ac_func (); below.
21894     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21895     <limits.h> exists even on freestanding compilers.  */
21896
21897 #ifdef __STDC__
21898 # include <limits.h>
21899 #else
21900 # include <assert.h>
21901 #endif
21902
21903 #undef $ac_func
21904
21905 /* Override any GCC internal prototype to avoid an error.
21906    Use char because int might match the return type of a GCC
21907    builtin and then its argument prototype would still apply.  */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 char $ac_func ();
21912 /* The GNU C library defines this for functions which it implements
21913     to always fail with ENOSYS.  Some functions are actually named
21914     something starting with __ and the normal name is an alias.  */
21915 #if defined __stub_$ac_func || defined __stub___$ac_func
21916 choke me
21917 #endif
21918
21919 int
21920 main ()
21921 {
21922 return $ac_func ();
21923   ;
21924   return 0;
21925 }
21926 _ACEOF
21927 rm -f conftest.$ac_objext conftest$ac_exeext
21928 if { (ac_try="$ac_link"
21929 case "(($ac_try" in
21930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931   *) ac_try_echo=$ac_try;;
21932 esac
21933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21934 $as_echo "$ac_try_echo") >&5
21935   (eval "$ac_link") 2>conftest.er1
21936   ac_status=$?
21937   grep -v '^ *+' conftest.er1 >conftest.err
21938   rm -f conftest.er1
21939   cat conftest.err >&5
21940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941   (exit $ac_status); } && {
21942          test -z "$ac_c_werror_flag" ||
21943          test ! -s conftest.err
21944        } && test -s conftest$ac_exeext && {
21945          test "$cross_compiling" = yes ||
21946          $as_test_x conftest$ac_exeext
21947        }; then
21948   eval "$as_ac_var=yes"
21949 else
21950   $as_echo "$as_me: failed program was:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21952
21953         eval "$as_ac_var=no"
21954 fi
21955
21956 rm -rf conftest.dSYM
21957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21958       conftest$ac_exeext conftest.$ac_ext
21959 fi
21960 ac_res=`eval 'as_val=${'$as_ac_var'}
21961                  $as_echo "$as_val"'`
21962                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21963 $as_echo "$ac_res" >&6; }
21964 as_val=`eval 'as_val=${'$as_ac_var'}
21965                  $as_echo "$as_val"'`
21966    if test "x$as_val" = x""yes; then
21967   cat >>confdefs.h <<_ACEOF
21968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21969 _ACEOF
21970
21971 else
21972   case " $LIBOBJS " in
21973   *" $ac_func.$ac_objext "* ) ;;
21974   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
21975  ;;
21976 esac
21977
21978 fi
21979 done
21980
21981
21982 else
21983   case " $LIBOBJS " in
21984   *" getopt_long.$ac_objext "* ) ;;
21985   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
21986  ;;
21987 esac
21988
21989 fi
21990
21991 # Solaris' getopt() doesn't do what we want for long options, so always use
21992 # our version on that platform.
21993 if test "$PORTNAME" = "solaris"; then
21994   case " $LIBOBJS " in
21995   *" getopt.$ac_objext "* ) ;;
21996   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
21997  ;;
21998 esac
21999
22000 fi
22001
22002 # mingw has adopted a GNU-centric interpretation of optind/optreset,
22003 # so always use our version on Windows.
22004 if test "$PORTNAME" = "win32"; then
22005   case " $LIBOBJS " in
22006   *" getopt.$ac_objext "* ) ;;
22007   *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
22008  ;;
22009 esac
22010
22011   case " $LIBOBJS " in
22012   *" getopt_long.$ac_objext "* ) ;;
22013   *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
22014  ;;
22015 esac
22016
22017 fi
22018
22019 # Win32 support
22020 if test "$PORTNAME" = "win32"; then
22021
22022 for ac_func in gettimeofday
22023 do
22024 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22025 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22026 $as_echo_n "checking for $ac_func... " >&6; }
22027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22028   $as_echo_n "(cached) " >&6
22029 else
22030   cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h.  */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h.  */
22036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22037    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22038 #define $ac_func innocuous_$ac_func
22039
22040 /* System header to define __stub macros and hopefully few prototypes,
22041     which can conflict with char $ac_func (); below.
22042     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22043     <limits.h> exists even on freestanding compilers.  */
22044
22045 #ifdef __STDC__
22046 # include <limits.h>
22047 #else
22048 # include <assert.h>
22049 #endif
22050
22051 #undef $ac_func
22052
22053 /* Override any GCC internal prototype to avoid an error.
22054    Use char because int might match the return type of a GCC
22055    builtin and then its argument prototype would still apply.  */
22056 #ifdef __cplusplus
22057 extern "C"
22058 #endif
22059 char $ac_func ();
22060 /* The GNU C library defines this for functions which it implements
22061     to always fail with ENOSYS.  Some functions are actually named
22062     something starting with __ and the normal name is an alias.  */
22063 #if defined __stub_$ac_func || defined __stub___$ac_func
22064 choke me
22065 #endif
22066
22067 int
22068 main ()
22069 {
22070 return $ac_func ();
22071   ;
22072   return 0;
22073 }
22074 _ACEOF
22075 rm -f conftest.$ac_objext conftest$ac_exeext
22076 if { (ac_try="$ac_link"
22077 case "(($ac_try" in
22078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079   *) ac_try_echo=$ac_try;;
22080 esac
22081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22082 $as_echo "$ac_try_echo") >&5
22083   (eval "$ac_link") 2>conftest.er1
22084   ac_status=$?
22085   grep -v '^ *+' conftest.er1 >conftest.err
22086   rm -f conftest.er1
22087   cat conftest.err >&5
22088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089   (exit $ac_status); } && {
22090          test -z "$ac_c_werror_flag" ||
22091          test ! -s conftest.err
22092        } && test -s conftest$ac_exeext && {
22093          test "$cross_compiling" = yes ||
22094          $as_test_x conftest$ac_exeext
22095        }; then
22096   eval "$as_ac_var=yes"
22097 else
22098   $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101         eval "$as_ac_var=no"
22102 fi
22103
22104 rm -rf conftest.dSYM
22105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22106       conftest$ac_exeext conftest.$ac_ext
22107 fi
22108 ac_res=`eval 'as_val=${'$as_ac_var'}
22109                  $as_echo "$as_val"'`
22110                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22111 $as_echo "$ac_res" >&6; }
22112 as_val=`eval 'as_val=${'$as_ac_var'}
22113                  $as_echo "$as_val"'`
22114    if test "x$as_val" = x""yes; then
22115   cat >>confdefs.h <<_ACEOF
22116 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22117 _ACEOF
22118
22119 else
22120   case " $LIBOBJS " in
22121   *" $ac_func.$ac_objext "* ) ;;
22122   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
22123  ;;
22124 esac
22125
22126 fi
22127 done
22128
22129
22130   case " $LIBOBJS " in
22131   *" kill.$ac_objext "* ) ;;
22132   *) LIBOBJS="$LIBOBJS kill.$ac_objext"
22133  ;;
22134 esac
22135
22136   case " $LIBOBJS " in
22137   *" open.$ac_objext "* ) ;;
22138   *) LIBOBJS="$LIBOBJS open.$ac_objext"
22139  ;;
22140 esac
22141
22142   case " $LIBOBJS " in
22143   *" win32env.$ac_objext "* ) ;;
22144   *) LIBOBJS="$LIBOBJS win32env.$ac_objext"
22145  ;;
22146 esac
22147
22148   case " $LIBOBJS " in
22149   *" win32error.$ac_objext "* ) ;;
22150   *) LIBOBJS="$LIBOBJS win32error.$ac_objext"
22151  ;;
22152 esac
22153
22154   case " $LIBOBJS " in
22155   *" win32setlocale.$ac_objext "* ) ;;
22156   *) LIBOBJS="$LIBOBJS win32setlocale.$ac_objext"
22157  ;;
22158 esac
22159
22160
22161 cat >>confdefs.h <<\_ACEOF
22162 #define HAVE_SYMLINK 1
22163 _ACEOF
22164
22165   { $as_echo "$as_me:$LINENO: checking for MINIDUMP_TYPE" >&5
22166 $as_echo_n "checking for MINIDUMP_TYPE... " >&6; }
22167 if test "${ac_cv_type_MINIDUMP_TYPE+set}" = set; then
22168   $as_echo_n "(cached) " >&6
22169 else
22170   ac_cv_type_MINIDUMP_TYPE=no
22171 cat >conftest.$ac_ext <<_ACEOF
22172 /* confdefs.h.  */
22173 _ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h.  */
22177
22178 #define WIN32_LEAN_AND_MEAN
22179 #include <windows.h>
22180 #include <string.h>
22181 #include <dbghelp.h>
22182
22183 int
22184 main ()
22185 {
22186 if (sizeof (MINIDUMP_TYPE))
22187        return 0;
22188   ;
22189   return 0;
22190 }
22191 _ACEOF
22192 rm -f conftest.$ac_objext
22193 if { (ac_try="$ac_compile"
22194 case "(($ac_try" in
22195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22196   *) ac_try_echo=$ac_try;;
22197 esac
22198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22199 $as_echo "$ac_try_echo") >&5
22200   (eval "$ac_compile") 2>conftest.er1
22201   ac_status=$?
22202   grep -v '^ *+' conftest.er1 >conftest.err
22203   rm -f conftest.er1
22204   cat conftest.err >&5
22205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206   (exit $ac_status); } && {
22207          test -z "$ac_c_werror_flag" ||
22208          test ! -s conftest.err
22209        } && test -s conftest.$ac_objext; then
22210   cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h.  */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h.  */
22216
22217 #define WIN32_LEAN_AND_MEAN
22218 #include <windows.h>
22219 #include <string.h>
22220 #include <dbghelp.h>
22221
22222 int
22223 main ()
22224 {
22225 if (sizeof ((MINIDUMP_TYPE)))
22226           return 0;
22227   ;
22228   return 0;
22229 }
22230 _ACEOF
22231 rm -f conftest.$ac_objext
22232 if { (ac_try="$ac_compile"
22233 case "(($ac_try" in
22234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22235   *) ac_try_echo=$ac_try;;
22236 esac
22237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22238 $as_echo "$ac_try_echo") >&5
22239   (eval "$ac_compile") 2>conftest.er1
22240   ac_status=$?
22241   grep -v '^ *+' conftest.er1 >conftest.err
22242   rm -f conftest.er1
22243   cat conftest.err >&5
22244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22245   (exit $ac_status); } && {
22246          test -z "$ac_c_werror_flag" ||
22247          test ! -s conftest.err
22248        } && test -s conftest.$ac_objext; then
22249   :
22250 else
22251   $as_echo "$as_me: failed program was:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22253
22254         ac_cv_type_MINIDUMP_TYPE=yes
22255 fi
22256
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 else
22259   $as_echo "$as_me: failed program was:" >&5
22260 sed 's/^/| /' conftest.$ac_ext >&5
22261
22262
22263 fi
22264
22265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22266 fi
22267 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_MINIDUMP_TYPE" >&5
22268 $as_echo "$ac_cv_type_MINIDUMP_TYPE" >&6; }
22269 if test "x$ac_cv_type_MINIDUMP_TYPE" = x""yes; then
22270
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_MINIDUMP_TYPE 1
22273 _ACEOF
22274
22275 pgac_minidump_type=yes
22276 else
22277   pgac_minidump_type=no
22278 fi
22279
22280 fi
22281 if test x"$pgac_minidump_type" = x"yes" ; then
22282   have_win32_dbghelp=yes
22283
22284 else
22285   have_win32_dbghelp=no
22286
22287 fi
22288
22289 { $as_echo "$as_me:$LINENO: checking for sigsetjmp" >&5
22290 $as_echo_n "checking for sigsetjmp... " >&6; }
22291 if test "${pgac_cv_func_sigsetjmp+set}" = set; then
22292   $as_echo_n "(cached) " >&6
22293 else
22294   cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h.  */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h.  */
22300 #include <setjmp.h>
22301 int
22302 main ()
22303 {
22304 sigjmp_buf x; sigsetjmp(x, 1);
22305   ;
22306   return 0;
22307 }
22308 _ACEOF
22309 rm -f conftest.$ac_objext conftest$ac_exeext
22310 if { (ac_try="$ac_link"
22311 case "(($ac_try" in
22312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313   *) ac_try_echo=$ac_try;;
22314 esac
22315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22316 $as_echo "$ac_try_echo") >&5
22317   (eval "$ac_link") 2>conftest.er1
22318   ac_status=$?
22319   grep -v '^ *+' conftest.er1 >conftest.err
22320   rm -f conftest.er1
22321   cat conftest.err >&5
22322   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323   (exit $ac_status); } && {
22324          test -z "$ac_c_werror_flag" ||
22325          test ! -s conftest.err
22326        } && test -s conftest$ac_exeext && {
22327          test "$cross_compiling" = yes ||
22328          $as_test_x conftest$ac_exeext
22329        }; then
22330   pgac_cv_func_sigsetjmp=yes
22331 else
22332   $as_echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335         pgac_cv_func_sigsetjmp=no
22336 fi
22337
22338 rm -rf conftest.dSYM
22339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22340       conftest$ac_exeext conftest.$ac_ext
22341 fi
22342 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_sigsetjmp" >&5
22343 $as_echo "$pgac_cv_func_sigsetjmp" >&6; }
22344 if test x"$pgac_cv_func_sigsetjmp" = x"yes"; then
22345
22346 cat >>confdefs.h <<\_ACEOF
22347 #define HAVE_SIGSETJMP 1
22348 _ACEOF
22349
22350 fi
22351
22352 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
22353 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
22354 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
22355   $as_echo_n "(cached) " >&6
22356 else
22357   cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h.  */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h.  */
22363 #include <signal.h>
22364 /* NetBSD declares sys_siglist in unistd.h.  */
22365 #ifdef HAVE_UNISTD_H
22366 # include <unistd.h>
22367 #endif
22368
22369
22370 int
22371 main ()
22372 {
22373 #ifndef sys_siglist
22374   (void) sys_siglist;
22375 #endif
22376
22377   ;
22378   return 0;
22379 }
22380 _ACEOF
22381 rm -f conftest.$ac_objext
22382 if { (ac_try="$ac_compile"
22383 case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22388 $as_echo "$ac_try_echo") >&5
22389   (eval "$ac_compile") 2>conftest.er1
22390   ac_status=$?
22391   grep -v '^ *+' conftest.er1 >conftest.err
22392   rm -f conftest.er1
22393   cat conftest.err >&5
22394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); } && {
22396          test -z "$ac_c_werror_flag" ||
22397          test ! -s conftest.err
22398        } && test -s conftest.$ac_objext; then
22399   ac_cv_have_decl_sys_siglist=yes
22400 else
22401   $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22403
22404         ac_cv_have_decl_sys_siglist=no
22405 fi
22406
22407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22408 fi
22409 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
22410 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
22411 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
22412
22413 cat >>confdefs.h <<_ACEOF
22414 #define HAVE_DECL_SYS_SIGLIST 1
22415 _ACEOF
22416
22417
22418 else
22419   cat >>confdefs.h <<_ACEOF
22420 #define HAVE_DECL_SYS_SIGLIST 0
22421 _ACEOF
22422
22423
22424 fi
22425
22426
22427
22428
22429 { $as_echo "$as_me:$LINENO: checking for syslog" >&5
22430 $as_echo_n "checking for syslog... " >&6; }
22431 if test "${ac_cv_func_syslog+set}" = set; then
22432   $as_echo_n "(cached) " >&6
22433 else
22434   cat >conftest.$ac_ext <<_ACEOF
22435 /* confdefs.h.  */
22436 _ACEOF
22437 cat confdefs.h >>conftest.$ac_ext
22438 cat >>conftest.$ac_ext <<_ACEOF
22439 /* end confdefs.h.  */
22440 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
22441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22442 #define syslog innocuous_syslog
22443
22444 /* System header to define __stub macros and hopefully few prototypes,
22445     which can conflict with char syslog (); below.
22446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22447     <limits.h> exists even on freestanding compilers.  */
22448
22449 #ifdef __STDC__
22450 # include <limits.h>
22451 #else
22452 # include <assert.h>
22453 #endif
22454
22455 #undef syslog
22456
22457 /* Override any GCC internal prototype to avoid an error.
22458    Use char because int might match the return type of a GCC
22459    builtin and then its argument prototype would still apply.  */
22460 #ifdef __cplusplus
22461 extern "C"
22462 #endif
22463 char syslog ();
22464 /* The GNU C library defines this for functions which it implements
22465     to always fail with ENOSYS.  Some functions are actually named
22466     something starting with __ and the normal name is an alias.  */
22467 #if defined __stub_syslog || defined __stub___syslog
22468 choke me
22469 #endif
22470
22471 int
22472 main ()
22473 {
22474 return syslog ();
22475   ;
22476   return 0;
22477 }
22478 _ACEOF
22479 rm -f conftest.$ac_objext conftest$ac_exeext
22480 if { (ac_try="$ac_link"
22481 case "(($ac_try" in
22482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483   *) ac_try_echo=$ac_try;;
22484 esac
22485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22486 $as_echo "$ac_try_echo") >&5
22487   (eval "$ac_link") 2>conftest.er1
22488   ac_status=$?
22489   grep -v '^ *+' conftest.er1 >conftest.err
22490   rm -f conftest.er1
22491   cat conftest.err >&5
22492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); } && {
22494          test -z "$ac_c_werror_flag" ||
22495          test ! -s conftest.err
22496        } && test -s conftest$ac_exeext && {
22497          test "$cross_compiling" = yes ||
22498          $as_test_x conftest$ac_exeext
22499        }; then
22500   ac_cv_func_syslog=yes
22501 else
22502   $as_echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505         ac_cv_func_syslog=no
22506 fi
22507
22508 rm -rf conftest.dSYM
22509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22510       conftest$ac_exeext conftest.$ac_ext
22511 fi
22512 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
22513 $as_echo "$ac_cv_func_syslog" >&6; }
22514 if test "x$ac_cv_func_syslog" = x""yes; then
22515   if test "${ac_cv_header_syslog_h+set}" = set; then
22516   { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22517 $as_echo_n "checking for syslog.h... " >&6; }
22518 if test "${ac_cv_header_syslog_h+set}" = set; then
22519   $as_echo_n "(cached) " >&6
22520 fi
22521 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22522 $as_echo "$ac_cv_header_syslog_h" >&6; }
22523 else
22524   # Is the header compilable?
22525 { $as_echo "$as_me:$LINENO: checking syslog.h usability" >&5
22526 $as_echo_n "checking syslog.h usability... " >&6; }
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h.  */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h.  */
22533 $ac_includes_default
22534 #include <syslog.h>
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540   *) ac_try_echo=$ac_try;;
22541 esac
22542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22543 $as_echo "$ac_try_echo") >&5
22544   (eval "$ac_compile") 2>conftest.er1
22545   ac_status=$?
22546   grep -v '^ *+' conftest.er1 >conftest.err
22547   rm -f conftest.er1
22548   cat conftest.err >&5
22549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550   (exit $ac_status); } && {
22551          test -z "$ac_c_werror_flag" ||
22552          test ! -s conftest.err
22553        } && test -s conftest.$ac_objext; then
22554   ac_header_compiler=yes
22555 else
22556   $as_echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22558
22559         ac_header_compiler=no
22560 fi
22561
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22564 $as_echo "$ac_header_compiler" >&6; }
22565
22566 # Is the header present?
22567 { $as_echo "$as_me:$LINENO: checking syslog.h presence" >&5
22568 $as_echo_n "checking syslog.h presence... " >&6; }
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h.  */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h.  */
22575 #include <syslog.h>
22576 _ACEOF
22577 if { (ac_try="$ac_cpp conftest.$ac_ext"
22578 case "(($ac_try" in
22579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580   *) ac_try_echo=$ac_try;;
22581 esac
22582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22583 $as_echo "$ac_try_echo") >&5
22584   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22585   ac_status=$?
22586   grep -v '^ *+' conftest.er1 >conftest.err
22587   rm -f conftest.er1
22588   cat conftest.err >&5
22589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22590   (exit $ac_status); } >/dev/null && {
22591          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22592          test ! -s conftest.err
22593        }; then
22594   ac_header_preproc=yes
22595 else
22596   $as_echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22598
22599   ac_header_preproc=no
22600 fi
22601
22602 rm -f conftest.err conftest.$ac_ext
22603 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22604 $as_echo "$ac_header_preproc" >&6; }
22605
22606 # So?  What about this header?
22607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22608   yes:no: )
22609     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&5
22610 $as_echo "$as_me: WARNING: syslog.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22611     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the compiler's result" >&5
22612 $as_echo "$as_me: WARNING: syslog.h: proceeding with the compiler's result" >&2;}
22613     ac_header_preproc=yes
22614     ;;
22615   no:yes:* )
22616     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: present but cannot be compiled" >&5
22617 $as_echo "$as_me: WARNING: syslog.h: present but cannot be compiled" >&2;}
22618     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     check for missing prerequisite headers?" >&5
22619 $as_echo "$as_me: WARNING: syslog.h:     check for missing prerequisite headers?" >&2;}
22620     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: see the Autoconf documentation" >&5
22621 $as_echo "$as_me: WARNING: syslog.h: see the Autoconf documentation" >&2;}
22622     { $as_echo "$as_me:$LINENO: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&5
22623 $as_echo "$as_me: WARNING: syslog.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22624     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: proceeding with the preprocessor's result" >&5
22625 $as_echo "$as_me: WARNING: syslog.h: proceeding with the preprocessor's result" >&2;}
22626     { $as_echo "$as_me:$LINENO: WARNING: syslog.h: in the future, the compiler will take precedence" >&5
22627 $as_echo "$as_me: WARNING: syslog.h: in the future, the compiler will take precedence" >&2;}
22628     ( cat <<\_ASBOX
22629 ## ---------------------------------------- ##
22630 ## Report this to pgsql-bugs@postgresql.org ##
22631 ## ---------------------------------------- ##
22632 _ASBOX
22633      ) | sed "s/^/$as_me: WARNING:     /" >&2
22634     ;;
22635 esac
22636 { $as_echo "$as_me:$LINENO: checking for syslog.h" >&5
22637 $as_echo_n "checking for syslog.h... " >&6; }
22638 if test "${ac_cv_header_syslog_h+set}" = set; then
22639   $as_echo_n "(cached) " >&6
22640 else
22641   ac_cv_header_syslog_h=$ac_header_preproc
22642 fi
22643 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_syslog_h" >&5
22644 $as_echo "$ac_cv_header_syslog_h" >&6; }
22645
22646 fi
22647 if test "x$ac_cv_header_syslog_h" = x""yes; then
22648
22649 cat >>confdefs.h <<\_ACEOF
22650 #define HAVE_SYSLOG 1
22651 _ACEOF
22652
22653 fi
22654
22655
22656 fi
22657
22658
22659 { $as_echo "$as_me:$LINENO: checking for opterr" >&5
22660 $as_echo_n "checking for opterr... " >&6; }
22661 if test "${pgac_cv_var_int_opterr+set}" = set; then
22662   $as_echo_n "(cached) " >&6
22663 else
22664   cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670 #include <unistd.h>
22671 int
22672 main ()
22673 {
22674 extern int opterr; opterr = 1;
22675   ;
22676   return 0;
22677 }
22678 _ACEOF
22679 rm -f conftest.$ac_objext conftest$ac_exeext
22680 if { (ac_try="$ac_link"
22681 case "(($ac_try" in
22682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683   *) ac_try_echo=$ac_try;;
22684 esac
22685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22686 $as_echo "$ac_try_echo") >&5
22687   (eval "$ac_link") 2>conftest.er1
22688   ac_status=$?
22689   grep -v '^ *+' conftest.er1 >conftest.err
22690   rm -f conftest.er1
22691   cat conftest.err >&5
22692   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); } && {
22694          test -z "$ac_c_werror_flag" ||
22695          test ! -s conftest.err
22696        } && test -s conftest$ac_exeext && {
22697          test "$cross_compiling" = yes ||
22698          $as_test_x conftest$ac_exeext
22699        }; then
22700   pgac_cv_var_int_opterr=yes
22701 else
22702   $as_echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22704
22705         pgac_cv_var_int_opterr=no
22706 fi
22707
22708 rm -rf conftest.dSYM
22709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22710       conftest$ac_exeext conftest.$ac_ext
22711 fi
22712 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_opterr" >&5
22713 $as_echo "$pgac_cv_var_int_opterr" >&6; }
22714 if test x"$pgac_cv_var_int_opterr" = x"yes"; then
22715
22716 cat >>confdefs.h <<\_ACEOF
22717 #define HAVE_INT_OPTERR 1
22718 _ACEOF
22719
22720 fi
22721
22722 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
22723 $as_echo_n "checking for optreset... " >&6; }
22724 if test "${pgac_cv_var_int_optreset+set}" = set; then
22725   $as_echo_n "(cached) " >&6
22726 else
22727   cat >conftest.$ac_ext <<_ACEOF
22728 /* confdefs.h.  */
22729 _ACEOF
22730 cat confdefs.h >>conftest.$ac_ext
22731 cat >>conftest.$ac_ext <<_ACEOF
22732 /* end confdefs.h.  */
22733 #include <unistd.h>
22734 int
22735 main ()
22736 {
22737 extern int optreset; optreset = 1;
22738   ;
22739   return 0;
22740 }
22741 _ACEOF
22742 rm -f conftest.$ac_objext conftest$ac_exeext
22743 if { (ac_try="$ac_link"
22744 case "(($ac_try" in
22745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746   *) ac_try_echo=$ac_try;;
22747 esac
22748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22749 $as_echo "$ac_try_echo") >&5
22750   (eval "$ac_link") 2>conftest.er1
22751   ac_status=$?
22752   grep -v '^ *+' conftest.er1 >conftest.err
22753   rm -f conftest.er1
22754   cat conftest.err >&5
22755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); } && {
22757          test -z "$ac_c_werror_flag" ||
22758          test ! -s conftest.err
22759        } && test -s conftest$ac_exeext && {
22760          test "$cross_compiling" = yes ||
22761          $as_test_x conftest$ac_exeext
22762        }; then
22763   pgac_cv_var_int_optreset=yes
22764 else
22765   $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.$ac_ext >&5
22767
22768         pgac_cv_var_int_optreset=no
22769 fi
22770
22771 rm -rf conftest.dSYM
22772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22773       conftest$ac_exeext conftest.$ac_ext
22774 fi
22775 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_int_optreset" >&5
22776 $as_echo "$pgac_cv_var_int_optreset" >&6; }
22777 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
22778
22779 cat >>confdefs.h <<\_ACEOF
22780 #define HAVE_INT_OPTRESET 1
22781 _ACEOF
22782
22783 fi
22784
22785
22786
22787 for ac_func in strtoll strtoq
22788 do
22789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22790 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22791 $as_echo_n "checking for $ac_func... " >&6; }
22792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22793   $as_echo_n "(cached) " >&6
22794 else
22795   cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22803 #define $ac_func innocuous_$ac_func
22804
22805 /* System header to define __stub macros and hopefully few prototypes,
22806     which can conflict with char $ac_func (); below.
22807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22808     <limits.h> exists even on freestanding compilers.  */
22809
22810 #ifdef __STDC__
22811 # include <limits.h>
22812 #else
22813 # include <assert.h>
22814 #endif
22815
22816 #undef $ac_func
22817
22818 /* Override any GCC internal prototype to avoid an error.
22819    Use char because int might match the return type of a GCC
22820    builtin and then its argument prototype would still apply.  */
22821 #ifdef __cplusplus
22822 extern "C"
22823 #endif
22824 char $ac_func ();
22825 /* The GNU C library defines this for functions which it implements
22826     to always fail with ENOSYS.  Some functions are actually named
22827     something starting with __ and the normal name is an alias.  */
22828 #if defined __stub_$ac_func || defined __stub___$ac_func
22829 choke me
22830 #endif
22831
22832 int
22833 main ()
22834 {
22835 return $ac_func ();
22836   ;
22837   return 0;
22838 }
22839 _ACEOF
22840 rm -f conftest.$ac_objext conftest$ac_exeext
22841 if { (ac_try="$ac_link"
22842 case "(($ac_try" in
22843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22844   *) ac_try_echo=$ac_try;;
22845 esac
22846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22847 $as_echo "$ac_try_echo") >&5
22848   (eval "$ac_link") 2>conftest.er1
22849   ac_status=$?
22850   grep -v '^ *+' conftest.er1 >conftest.err
22851   rm -f conftest.er1
22852   cat conftest.err >&5
22853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22854   (exit $ac_status); } && {
22855          test -z "$ac_c_werror_flag" ||
22856          test ! -s conftest.err
22857        } && test -s conftest$ac_exeext && {
22858          test "$cross_compiling" = yes ||
22859          $as_test_x conftest$ac_exeext
22860        }; then
22861   eval "$as_ac_var=yes"
22862 else
22863   $as_echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22865
22866         eval "$as_ac_var=no"
22867 fi
22868
22869 rm -rf conftest.dSYM
22870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22871       conftest$ac_exeext conftest.$ac_ext
22872 fi
22873 ac_res=`eval 'as_val=${'$as_ac_var'}
22874                  $as_echo "$as_val"'`
22875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22876 $as_echo "$ac_res" >&6; }
22877 as_val=`eval 'as_val=${'$as_ac_var'}
22878                  $as_echo "$as_val"'`
22879    if test "x$as_val" = x""yes; then
22880   cat >>confdefs.h <<_ACEOF
22881 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22882 _ACEOF
22883  break
22884 fi
22885 done
22886
22887
22888
22889 for ac_func in strtoull strtouq
22890 do
22891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22893 $as_echo_n "checking for $ac_func... " >&6; }
22894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22895   $as_echo_n "(cached) " >&6
22896 else
22897   cat >conftest.$ac_ext <<_ACEOF
22898 /* confdefs.h.  */
22899 _ACEOF
22900 cat confdefs.h >>conftest.$ac_ext
22901 cat >>conftest.$ac_ext <<_ACEOF
22902 /* end confdefs.h.  */
22903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22904    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22905 #define $ac_func innocuous_$ac_func
22906
22907 /* System header to define __stub macros and hopefully few prototypes,
22908     which can conflict with char $ac_func (); below.
22909     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22910     <limits.h> exists even on freestanding compilers.  */
22911
22912 #ifdef __STDC__
22913 # include <limits.h>
22914 #else
22915 # include <assert.h>
22916 #endif
22917
22918 #undef $ac_func
22919
22920 /* Override any GCC internal prototype to avoid an error.
22921    Use char because int might match the return type of a GCC
22922    builtin and then its argument prototype would still apply.  */
22923 #ifdef __cplusplus
22924 extern "C"
22925 #endif
22926 char $ac_func ();
22927 /* The GNU C library defines this for functions which it implements
22928     to always fail with ENOSYS.  Some functions are actually named
22929     something starting with __ and the normal name is an alias.  */
22930 #if defined __stub_$ac_func || defined __stub___$ac_func
22931 choke me
22932 #endif
22933
22934 int
22935 main ()
22936 {
22937 return $ac_func ();
22938   ;
22939   return 0;
22940 }
22941 _ACEOF
22942 rm -f conftest.$ac_objext conftest$ac_exeext
22943 if { (ac_try="$ac_link"
22944 case "(($ac_try" in
22945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22946   *) ac_try_echo=$ac_try;;
22947 esac
22948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22949 $as_echo "$ac_try_echo") >&5
22950   (eval "$ac_link") 2>conftest.er1
22951   ac_status=$?
22952   grep -v '^ *+' conftest.er1 >conftest.err
22953   rm -f conftest.er1
22954   cat conftest.err >&5
22955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22956   (exit $ac_status); } && {
22957          test -z "$ac_c_werror_flag" ||
22958          test ! -s conftest.err
22959        } && test -s conftest$ac_exeext && {
22960          test "$cross_compiling" = yes ||
22961          $as_test_x conftest$ac_exeext
22962        }; then
22963   eval "$as_ac_var=yes"
22964 else
22965   $as_echo "$as_me: failed program was:" >&5
22966 sed 's/^/| /' conftest.$ac_ext >&5
22967
22968         eval "$as_ac_var=no"
22969 fi
22970
22971 rm -rf conftest.dSYM
22972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22973       conftest$ac_exeext conftest.$ac_ext
22974 fi
22975 ac_res=`eval 'as_val=${'$as_ac_var'}
22976                  $as_echo "$as_val"'`
22977                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22978 $as_echo "$ac_res" >&6; }
22979 as_val=`eval 'as_val=${'$as_ac_var'}
22980                  $as_echo "$as_val"'`
22981    if test "x$as_val" = x""yes; then
22982   cat >>confdefs.h <<_ACEOF
22983 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22984 _ACEOF
22985  break
22986 fi
22987 done
22988
22989
22990 { $as_echo "$as_me:$LINENO: checking for builtin locking functions" >&5
22991 $as_echo_n "checking for builtin locking functions... " >&6; }
22992 if test "${pgac_cv_gcc_int_atomics+set}" = set; then
22993   $as_echo_n "(cached) " >&6
22994 else
22995   cat >conftest.$ac_ext <<_ACEOF
22996 /* confdefs.h.  */
22997 _ACEOF
22998 cat confdefs.h >>conftest.$ac_ext
22999 cat >>conftest.$ac_ext <<_ACEOF
23000 /* end confdefs.h.  */
23001
23002 int
23003 main ()
23004 {
23005 int lock = 0;
23006    __sync_lock_test_and_set(&lock, 1);
23007    __sync_lock_release(&lock);
23008   ;
23009   return 0;
23010 }
23011 _ACEOF
23012 rm -f conftest.$ac_objext conftest$ac_exeext
23013 if { (ac_try="$ac_link"
23014 case "(($ac_try" in
23015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016   *) ac_try_echo=$ac_try;;
23017 esac
23018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23019 $as_echo "$ac_try_echo") >&5
23020   (eval "$ac_link") 2>conftest.er1
23021   ac_status=$?
23022   grep -v '^ *+' conftest.er1 >conftest.err
23023   rm -f conftest.er1
23024   cat conftest.err >&5
23025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026   (exit $ac_status); } && {
23027          test -z "$ac_c_werror_flag" ||
23028          test ! -s conftest.err
23029        } && test -s conftest$ac_exeext && {
23030          test "$cross_compiling" = yes ||
23031          $as_test_x conftest$ac_exeext
23032        }; then
23033   pgac_cv_gcc_int_atomics="yes"
23034 else
23035   $as_echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038         pgac_cv_gcc_int_atomics="no"
23039 fi
23040
23041 rm -rf conftest.dSYM
23042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23043       conftest$ac_exeext conftest.$ac_ext
23044 fi
23045 { $as_echo "$as_me:$LINENO: result: $pgac_cv_gcc_int_atomics" >&5
23046 $as_echo "$pgac_cv_gcc_int_atomics" >&6; }
23047 if test x"$pgac_cv_gcc_int_atomics" = x"yes"; then
23048
23049 cat >>confdefs.h <<\_ACEOF
23050 #define HAVE_GCC_INT_ATOMICS 1
23051 _ACEOF
23052
23053 fi
23054
23055 # Lastly, restore full LIBS list and check for readline/libedit symbols
23056 LIBS="$LIBS_including_readline"
23057
23058 if test "$with_readline" = yes; then
23059   { $as_echo "$as_me:$LINENO: checking for rl_completion_append_character" >&5
23060 $as_echo_n "checking for rl_completion_append_character... " >&6; }
23061 if test "${pgac_cv_var_rl_completion_append_character+set}" = set; then
23062   $as_echo_n "(cached) " >&6
23063 else
23064   cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070 #include <stdio.h>
23071 #ifdef HAVE_READLINE_READLINE_H
23072 # include <readline/readline.h>
23073 #elif defined(HAVE_READLINE_H)
23074 # include <readline.h>
23075 #endif
23076
23077 int
23078 main ()
23079 {
23080 rl_completion_append_character = 'x';
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (ac_try="$ac_link"
23087 case "(($ac_try" in
23088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089   *) ac_try_echo=$ac_try;;
23090 esac
23091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23092 $as_echo "$ac_try_echo") >&5
23093   (eval "$ac_link") 2>conftest.er1
23094   ac_status=$?
23095   grep -v '^ *+' conftest.er1 >conftest.err
23096   rm -f conftest.er1
23097   cat conftest.err >&5
23098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099   (exit $ac_status); } && {
23100          test -z "$ac_c_werror_flag" ||
23101          test ! -s conftest.err
23102        } && test -s conftest$ac_exeext && {
23103          test "$cross_compiling" = yes ||
23104          $as_test_x conftest$ac_exeext
23105        }; then
23106   pgac_cv_var_rl_completion_append_character=yes
23107 else
23108   $as_echo "$as_me: failed program was:" >&5
23109 sed 's/^/| /' conftest.$ac_ext >&5
23110
23111         pgac_cv_var_rl_completion_append_character=no
23112 fi
23113
23114 rm -rf conftest.dSYM
23115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23116       conftest$ac_exeext conftest.$ac_ext
23117 fi
23118 { $as_echo "$as_me:$LINENO: result: $pgac_cv_var_rl_completion_append_character" >&5
23119 $as_echo "$pgac_cv_var_rl_completion_append_character" >&6; }
23120 if test x"$pgac_cv_var_rl_completion_append_character" = x"yes"; then
23121
23122 cat >>confdefs.h <<\_ACEOF
23123 #define HAVE_RL_COMPLETION_APPEND_CHARACTER 1
23124 _ACEOF
23125
23126 fi
23127
23128
23129 for ac_func in rl_completion_matches rl_filename_completion_function
23130 do
23131 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23132 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23133 $as_echo_n "checking for $ac_func... " >&6; }
23134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23135   $as_echo_n "(cached) " >&6
23136 else
23137   cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h.  */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h.  */
23143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23145 #define $ac_func innocuous_$ac_func
23146
23147 /* System header to define __stub macros and hopefully few prototypes,
23148     which can conflict with char $ac_func (); below.
23149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23150     <limits.h> exists even on freestanding compilers.  */
23151
23152 #ifdef __STDC__
23153 # include <limits.h>
23154 #else
23155 # include <assert.h>
23156 #endif
23157
23158 #undef $ac_func
23159
23160 /* Override any GCC internal prototype to avoid an error.
23161    Use char because int might match the return type of a GCC
23162    builtin and then its argument prototype would still apply.  */
23163 #ifdef __cplusplus
23164 extern "C"
23165 #endif
23166 char $ac_func ();
23167 /* The GNU C library defines this for functions which it implements
23168     to always fail with ENOSYS.  Some functions are actually named
23169     something starting with __ and the normal name is an alias.  */
23170 #if defined __stub_$ac_func || defined __stub___$ac_func
23171 choke me
23172 #endif
23173
23174 int
23175 main ()
23176 {
23177 return $ac_func ();
23178   ;
23179   return 0;
23180 }
23181 _ACEOF
23182 rm -f conftest.$ac_objext conftest$ac_exeext
23183 if { (ac_try="$ac_link"
23184 case "(($ac_try" in
23185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186   *) ac_try_echo=$ac_try;;
23187 esac
23188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23189 $as_echo "$ac_try_echo") >&5
23190   (eval "$ac_link") 2>conftest.er1
23191   ac_status=$?
23192   grep -v '^ *+' conftest.er1 >conftest.err
23193   rm -f conftest.er1
23194   cat conftest.err >&5
23195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196   (exit $ac_status); } && {
23197          test -z "$ac_c_werror_flag" ||
23198          test ! -s conftest.err
23199        } && test -s conftest$ac_exeext && {
23200          test "$cross_compiling" = yes ||
23201          $as_test_x conftest$ac_exeext
23202        }; then
23203   eval "$as_ac_var=yes"
23204 else
23205   $as_echo "$as_me: failed program was:" >&5
23206 sed 's/^/| /' conftest.$ac_ext >&5
23207
23208         eval "$as_ac_var=no"
23209 fi
23210
23211 rm -rf conftest.dSYM
23212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23213       conftest$ac_exeext conftest.$ac_ext
23214 fi
23215 ac_res=`eval 'as_val=${'$as_ac_var'}
23216                  $as_echo "$as_val"'`
23217                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23218 $as_echo "$ac_res" >&6; }
23219 as_val=`eval 'as_val=${'$as_ac_var'}
23220                  $as_echo "$as_val"'`
23221    if test "x$as_val" = x""yes; then
23222   cat >>confdefs.h <<_ACEOF
23223 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23224 _ACEOF
23225
23226 fi
23227 done
23228
23229
23230
23231 for ac_func in append_history history_truncate_file
23232 do
23233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23235 $as_echo_n "checking for $ac_func... " >&6; }
23236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23237   $as_echo_n "(cached) " >&6
23238 else
23239   cat >conftest.$ac_ext <<_ACEOF
23240 /* confdefs.h.  */
23241 _ACEOF
23242 cat confdefs.h >>conftest.$ac_ext
23243 cat >>conftest.$ac_ext <<_ACEOF
23244 /* end confdefs.h.  */
23245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23247 #define $ac_func innocuous_$ac_func
23248
23249 /* System header to define __stub macros and hopefully few prototypes,
23250     which can conflict with char $ac_func (); below.
23251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23252     <limits.h> exists even on freestanding compilers.  */
23253
23254 #ifdef __STDC__
23255 # include <limits.h>
23256 #else
23257 # include <assert.h>
23258 #endif
23259
23260 #undef $ac_func
23261
23262 /* Override any GCC internal prototype to avoid an error.
23263    Use char because int might match the return type of a GCC
23264    builtin and then its argument prototype would still apply.  */
23265 #ifdef __cplusplus
23266 extern "C"
23267 #endif
23268 char $ac_func ();
23269 /* The GNU C library defines this for functions which it implements
23270     to always fail with ENOSYS.  Some functions are actually named
23271     something starting with __ and the normal name is an alias.  */
23272 #if defined __stub_$ac_func || defined __stub___$ac_func
23273 choke me
23274 #endif
23275
23276 int
23277 main ()
23278 {
23279 return $ac_func ();
23280   ;
23281   return 0;
23282 }
23283 _ACEOF
23284 rm -f conftest.$ac_objext conftest$ac_exeext
23285 if { (ac_try="$ac_link"
23286 case "(($ac_try" in
23287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288   *) ac_try_echo=$ac_try;;
23289 esac
23290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23291 $as_echo "$ac_try_echo") >&5
23292   (eval "$ac_link") 2>conftest.er1
23293   ac_status=$?
23294   grep -v '^ *+' conftest.er1 >conftest.err
23295   rm -f conftest.er1
23296   cat conftest.err >&5
23297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298   (exit $ac_status); } && {
23299          test -z "$ac_c_werror_flag" ||
23300          test ! -s conftest.err
23301        } && test -s conftest$ac_exeext && {
23302          test "$cross_compiling" = yes ||
23303          $as_test_x conftest$ac_exeext
23304        }; then
23305   eval "$as_ac_var=yes"
23306 else
23307   $as_echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23309
23310         eval "$as_ac_var=no"
23311 fi
23312
23313 rm -rf conftest.dSYM
23314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23315       conftest$ac_exeext conftest.$ac_ext
23316 fi
23317 ac_res=`eval 'as_val=${'$as_ac_var'}
23318                  $as_echo "$as_val"'`
23319                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23320 $as_echo "$ac_res" >&6; }
23321 as_val=`eval 'as_val=${'$as_ac_var'}
23322                  $as_echo "$as_val"'`
23323    if test "x$as_val" = x""yes; then
23324   cat >>confdefs.h <<_ACEOF
23325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23326 _ACEOF
23327
23328 fi
23329 done
23330
23331 fi
23332
23333
23334 #
23335 # Pthreads
23336 #
23337 # For each platform, we need to know about any special compile and link
23338 # libraries, and whether the normal C function names are thread-safe.
23339 # See the comment at the top of src/port/thread.c for more information.
23340 # WIN32 doesn't need the pthread tests;  it always uses threads
23341 if test "$enable_thread_safety" = yes -a "$PORTNAME" != "win32"; then
23342
23343
23344
23345 ac_ext=c
23346 ac_cpp='$CPP $CPPFLAGS'
23347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23350
23351 acx_pthread_ok=no
23352
23353 # We used to check for pthread.h first, but this fails if pthread.h
23354 # requires special compiler flags (e.g. on True64 or Sequent).
23355 # It gets checked for in the link test anyway.
23356
23357 # First of all, check if the user has set any of the PTHREAD_LIBS,
23358 # etcetera environment variables, and if threads linking works using
23359 # them:
23360 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
23361         save_CFLAGS="$CFLAGS"
23362         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23363         save_LIBS="$LIBS"
23364         LIBS="$PTHREAD_LIBS $LIBS"
23365         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
23366 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
23367         cat >conftest.$ac_ext <<_ACEOF
23368 /* confdefs.h.  */
23369 _ACEOF
23370 cat confdefs.h >>conftest.$ac_ext
23371 cat >>conftest.$ac_ext <<_ACEOF
23372 /* end confdefs.h.  */
23373
23374 /* Override any GCC internal prototype to avoid an error.
23375    Use char because int might match the return type of a GCC
23376    builtin and then its argument prototype would still apply.  */
23377 #ifdef __cplusplus
23378 extern "C"
23379 #endif
23380 char pthread_join ();
23381 int
23382 main ()
23383 {
23384 return pthread_join ();
23385   ;
23386   return 0;
23387 }
23388 _ACEOF
23389 rm -f conftest.$ac_objext conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393   *) ac_try_echo=$ac_try;;
23394 esac
23395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396 $as_echo "$ac_try_echo") >&5
23397   (eval "$ac_link") 2>conftest.er1
23398   ac_status=$?
23399   grep -v '^ *+' conftest.er1 >conftest.err
23400   rm -f conftest.er1
23401   cat conftest.err >&5
23402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403   (exit $ac_status); } && {
23404          test -z "$ac_c_werror_flag" ||
23405          test ! -s conftest.err
23406        } && test -s conftest$ac_exeext && {
23407          test "$cross_compiling" = yes ||
23408          $as_test_x conftest$ac_exeext
23409        }; then
23410   acx_pthread_ok=yes
23411 else
23412   $as_echo "$as_me: failed program was:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23414
23415
23416 fi
23417
23418 rm -rf conftest.dSYM
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23420       conftest$ac_exeext conftest.$ac_ext
23421         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23422 $as_echo "$acx_pthread_ok" >&6; }
23423         if test x"$acx_pthread_ok" = xno; then
23424                 PTHREAD_LIBS=""
23425                 PTHREAD_CFLAGS=""
23426         fi
23427         LIBS="$save_LIBS"
23428         CFLAGS="$save_CFLAGS"
23429 fi
23430
23431 # We must check for the threads library under a number of different
23432 # names; the ordering is very important because some systems
23433 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
23434 # libraries is broken (non-POSIX).
23435
23436 # Create a list of thread flags to try.  Items starting with a "-" are
23437 # C compiler flags, and other items are library names, except for "none"
23438 # which indicates that we try without any flags at all, and "pthread-config"
23439 # which is a program returning the flags for the Pth emulation library.
23440
23441 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config pthreadGC2"
23442
23443 # The ordering *is* (sometimes) important.  Some notes on the
23444 # individual items follow:
23445
23446 # pthreads: AIX (must check this before -lpthread)
23447 # none: in case threads are in libc; should be tried before -Kthread and
23448 #       other compiler flags to prevent continual compiler warnings
23449 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
23450 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
23451 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
23452 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
23453 # -pthreads: Solaris/gcc
23454 # -mthreads: Mingw32/gcc, Lynx/gcc
23455 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
23456 #      doesn't hurt to check since this sometimes defines pthreads too;
23457 #      also defines -D_REENTRANT)
23458 # pthread: Linux, etcetera
23459 # --thread-safe: KAI C++
23460 # pthread-config: use pthread-config program (for GNU Pth library)
23461
23462 case "${host_cpu}-${host_os}" in
23463         *solaris*)
23464
23465         # On Solaris (at least, for some versions), libc contains stubbed
23466         # (non-functional) versions of the pthreads routines, so link-based
23467         # tests will erroneously succeed.  (We need to link with -pthread or
23468         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
23469         # a function called by this macro, so we could check for that, but
23470         # who knows whether they'll stub that too in a future libc.)  So,
23471         # we'll just look for -pthreads and -lpthread first:
23472
23473         acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
23474         ;;
23475 esac
23476
23477 if test x"$acx_pthread_ok" = xno; then
23478 for flag in $acx_pthread_flags; do
23479
23480         tryPTHREAD_CFLAGS=""
23481         tryPTHREAD_LIBS=""
23482         case $flag in
23483                 none)
23484                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
23485 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
23486                 ;;
23487
23488                 -*)
23489                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
23490 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
23491                 tryPTHREAD_CFLAGS="$flag"
23492                 ;;
23493
23494                 pthread-config)
23495                 # skip this if we already have flags defined, for PostgreSQL
23496                 if test x"$PTHREAD_CFLAGS" != x -o x"$PTHREAD_LIBS" != x; then continue; fi
23497                 # Extract the first word of "pthread-config", so it can be a program name with args.
23498 set dummy pthread-config; ac_word=$2
23499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23500 $as_echo_n "checking for $ac_word... " >&6; }
23501 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
23502   $as_echo_n "(cached) " >&6
23503 else
23504   if test -n "$acx_pthread_config"; then
23505   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
23506 else
23507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23508 for as_dir in $PATH
23509 do
23510   IFS=$as_save_IFS
23511   test -z "$as_dir" && as_dir=.
23512   for ac_exec_ext in '' $ac_executable_extensions; do
23513   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23514     ac_cv_prog_acx_pthread_config="yes"
23515     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23516     break 2
23517   fi
23518 done
23519 done
23520 IFS=$as_save_IFS
23521
23522   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
23523 fi
23524 fi
23525 acx_pthread_config=$ac_cv_prog_acx_pthread_config
23526 if test -n "$acx_pthread_config"; then
23527   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
23528 $as_echo "$acx_pthread_config" >&6; }
23529 else
23530   { $as_echo "$as_me:$LINENO: result: no" >&5
23531 $as_echo "no" >&6; }
23532 fi
23533
23534
23535                 if test x"$acx_pthread_config" = xno; then continue; fi
23536                 tryPTHREAD_CFLAGS="`pthread-config --cflags`"
23537                 tryPTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
23538                 ;;
23539
23540                 *)
23541                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
23542 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
23543                 tryPTHREAD_LIBS="-l$flag"
23544                 ;;
23545         esac
23546
23547         save_LIBS="$LIBS"
23548         save_CFLAGS="$CFLAGS"
23549         LIBS="$tryPTHREAD_LIBS $PTHREAD_LIBS $LIBS"
23550         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23551
23552         # Check for various functions.  We must include pthread.h,
23553         # since some functions may be macros.  (On the Sequent, we
23554         # need a special flag -Kthread to make this header compile.)
23555         # We check for pthread_join because it is in -lpthread on IRIX
23556         # while pthread_create is in libc.  We check for pthread_attr_init
23557         # due to DEC craziness with -lpthreads.  We check for
23558         # pthread_cleanup_push because it is one of the few pthread
23559         # functions on Solaris that doesn't have a non-functional libc stub.
23560         # We try pthread_create on general principles.
23561         cat >conftest.$ac_ext <<_ACEOF
23562 /* confdefs.h.  */
23563 _ACEOF
23564 cat confdefs.h >>conftest.$ac_ext
23565 cat >>conftest.$ac_ext <<_ACEOF
23566 /* end confdefs.h.  */
23567 #include <pthread.h>
23568 int
23569 main ()
23570 {
23571 pthread_t th; pthread_join(th, 0);
23572                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
23573                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
23574   ;
23575   return 0;
23576 }
23577 _ACEOF
23578 rm -f conftest.$ac_objext conftest$ac_exeext
23579 if { (ac_try="$ac_link"
23580 case "(($ac_try" in
23581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582   *) ac_try_echo=$ac_try;;
23583 esac
23584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23585 $as_echo "$ac_try_echo") >&5
23586   (eval "$ac_link") 2>conftest.er1
23587   ac_status=$?
23588   grep -v '^ *+' conftest.er1 >conftest.err
23589   rm -f conftest.er1
23590   cat conftest.err >&5
23591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592   (exit $ac_status); } && {
23593          test -z "$ac_c_werror_flag" ||
23594          test ! -s conftest.err
23595        } && test -s conftest$ac_exeext && {
23596          test "$cross_compiling" = yes ||
23597          $as_test_x conftest$ac_exeext
23598        }; then
23599   acx_pthread_ok=yes
23600 else
23601   $as_echo "$as_me: failed program was:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23603
23604         acx_pthread_ok=no
23605 fi
23606
23607 rm -rf conftest.dSYM
23608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23609       conftest$ac_exeext conftest.$ac_ext
23610
23611         if test "x$acx_pthread_ok" = xyes; then
23612             # Don't use options that are ignored by the compiler.
23613             # We find them by checking stderror.
23614             cat >conftest.$ac_ext <<_ACEOF
23615 int
23616 main (int argc, char **argv)
23617 {
23618   (void) argc;
23619   (void) argv;
23620   return 0;
23621 }
23622 _ACEOF
23623             rm -f conftest.$ac_objext conftest$ac_exeext
23624             # Check both linking and compiling, because they might tolerate different options.
23625             if test "`(eval $ac_link 2>&1 1>&5)`" = "" && test "`(eval $ac_compile 2>&1 1>&5)`" = ""; then
23626                 # we continue with more flags because Linux needs -lpthread
23627                 # for libpq builds on PostgreSQL.  The test above only
23628                 # tests for building binaries, not shared libraries.
23629                 PTHREAD_LIBS=" $tryPTHREAD_LIBS $PTHREAD_LIBS"
23630                 PTHREAD_CFLAGS="$PTHREAD_CFLAGS $tryPTHREAD_CFLAGS"
23631             else   acx_pthread_ok=no
23632             fi
23633         fi
23634
23635         LIBS="$save_LIBS"
23636         CFLAGS="$save_CFLAGS"
23637
23638         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
23639 $as_echo "$acx_pthread_ok" >&6; }
23640 done
23641 fi
23642
23643 # Various other checks:
23644 if test "x$acx_pthread_ok" = xyes; then
23645         save_LIBS="$LIBS"
23646         LIBS="$PTHREAD_LIBS $LIBS"
23647         save_CFLAGS="$CFLAGS"
23648         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23649
23650         # Detect AIX lossage: threads are created detached by default
23651         # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
23652         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
23653 $as_echo_n "checking for joinable pthread attribute... " >&6; }
23654         cat >conftest.$ac_ext <<_ACEOF
23655 /* confdefs.h.  */
23656 _ACEOF
23657 cat confdefs.h >>conftest.$ac_ext
23658 cat >>conftest.$ac_ext <<_ACEOF
23659 /* end confdefs.h.  */
23660 #include <pthread.h>
23661 int
23662 main ()
23663 {
23664 int attr=PTHREAD_CREATE_JOINABLE;
23665   ;
23666   return 0;
23667 }
23668 _ACEOF
23669 rm -f conftest.$ac_objext conftest$ac_exeext
23670 if { (ac_try="$ac_link"
23671 case "(($ac_try" in
23672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673   *) ac_try_echo=$ac_try;;
23674 esac
23675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23676 $as_echo "$ac_try_echo") >&5
23677   (eval "$ac_link") 2>conftest.er1
23678   ac_status=$?
23679   grep -v '^ *+' conftest.er1 >conftest.err
23680   rm -f conftest.er1
23681   cat conftest.err >&5
23682   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683   (exit $ac_status); } && {
23684          test -z "$ac_c_werror_flag" ||
23685          test ! -s conftest.err
23686        } && test -s conftest$ac_exeext && {
23687          test "$cross_compiling" = yes ||
23688          $as_test_x conftest$ac_exeext
23689        }; then
23690   ok=PTHREAD_CREATE_JOINABLE
23691 else
23692   $as_echo "$as_me: failed program was:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23694
23695         ok=unknown
23696 fi
23697
23698 rm -rf conftest.dSYM
23699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23700       conftest$ac_exeext conftest.$ac_ext
23701         if test x"$ok" = xunknown; then
23702                 cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h.  */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h.  */
23708 #include <pthread.h>
23709 int
23710 main ()
23711 {
23712 int attr=PTHREAD_CREATE_UNDETACHED;
23713   ;
23714   return 0;
23715 }
23716 _ACEOF
23717 rm -f conftest.$ac_objext conftest$ac_exeext
23718 if { (ac_try="$ac_link"
23719 case "(($ac_try" in
23720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721   *) ac_try_echo=$ac_try;;
23722 esac
23723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23724 $as_echo "$ac_try_echo") >&5
23725   (eval "$ac_link") 2>conftest.er1
23726   ac_status=$?
23727   grep -v '^ *+' conftest.er1 >conftest.err
23728   rm -f conftest.er1
23729   cat conftest.err >&5
23730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731   (exit $ac_status); } && {
23732          test -z "$ac_c_werror_flag" ||
23733          test ! -s conftest.err
23734        } && test -s conftest$ac_exeext && {
23735          test "$cross_compiling" = yes ||
23736          $as_test_x conftest$ac_exeext
23737        }; then
23738   ok=PTHREAD_CREATE_UNDETACHED
23739 else
23740   $as_echo "$as_me: failed program was:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23742
23743         ok=unknown
23744 fi
23745
23746 rm -rf conftest.dSYM
23747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23748       conftest$ac_exeext conftest.$ac_ext
23749         fi
23750         if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
23751
23752 cat >>confdefs.h <<\_ACEOF
23753 #define PTHREAD_CREATE_JOINABLE $ok
23754 _ACEOF
23755
23756         fi
23757         { $as_echo "$as_me:$LINENO: result: ${ok}" >&5
23758 $as_echo "${ok}" >&6; }
23759         if test x"$ok" = xunknown; then
23760                 { $as_echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
23761 $as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
23762         fi
23763
23764         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
23765 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
23766         flag=no
23767 # We always add these in PostgreSQL
23768 #       case "${host_cpu}-${host_os}" in
23769 #               *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
23770 #               *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
23771 #       esac
23772         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
23773 $as_echo "${flag}" >&6; }
23774         if test "x$flag" != xno; then
23775                 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
23776         fi
23777
23778         LIBS="$save_LIBS"
23779         CFLAGS="$save_CFLAGS"
23780
23781 # Supporting cc_r would require a special CC in all places that
23782 # use libpq, and that is ugly, so we don't do it.  Users can still
23783 # define their compiler as cc_r to do thread builds of everything.
23784         # More AIX lossage: must compile with cc_r
23785         # Extract the first word of "cc_r", so it can be a program name with args.
23786 set dummy cc_r; ac_word=$2
23787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23788 $as_echo_n "checking for $ac_word... " >&6; }
23789 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
23790   $as_echo_n "(cached) " >&6
23791 else
23792   if test -n "$PTHREAD_CC"; then
23793   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
23794 else
23795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23796 for as_dir in $PATH
23797 do
23798   IFS=$as_save_IFS
23799   test -z "$as_dir" && as_dir=.
23800   for ac_exec_ext in '' $ac_executable_extensions; do
23801   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23802     ac_cv_prog_PTHREAD_CC="cc_r"
23803     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23804     break 2
23805   fi
23806 done
23807 done
23808 IFS=$as_save_IFS
23809
23810   test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
23811 fi
23812 fi
23813 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
23814 if test -n "$PTHREAD_CC"; then
23815   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
23816 $as_echo "$PTHREAD_CC" >&6; }
23817 else
23818   { $as_echo "$as_me:$LINENO: result: no" >&5
23819 $as_echo "no" >&6; }
23820 fi
23821
23822
23823 else
23824         PTHREAD_CC="$CC"
23825 fi
23826
23827
23828
23829
23830
23831 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
23832 if test x"$acx_pthread_ok" = xyes; then
23833
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_PTHREAD 1
23836 _ACEOF
23837
23838         :
23839 else
23840         acx_pthread_ok=no
23841
23842 fi
23843 ac_ext=c
23844 ac_cpp='$CPP $CPPFLAGS'
23845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23848
23849         # set thread flags
23850
23851 # Some platforms use these, so just define them.  They can't hurt if they
23852 # are not supported.  For example, on Solaris -D_POSIX_PTHREAD_SEMANTICS
23853 # enables 5-arg getpwuid_r, among other things.
23854 PTHREAD_CFLAGS="$PTHREAD_CFLAGS -D_REENTRANT -D_THREAD_SAFE -D_POSIX_PTHREAD_SEMANTICS"
23855
23856
23857 # At this point, we don't want to muck with the compiler name for threading.
23858 # Let's see who fails, perhaps AIX.  2004-04-23
23859 if test "$PTHREAD_CC" != "$CC"; then
23860 { { $as_echo "$as_me:$LINENO: error:
23861 PostgreSQL does not support platforms that require a special compiler
23862 for thread safety;  use --disable-thread-safety to disable thread safety." >&5
23863 $as_echo "$as_me: error:
23864 PostgreSQL does not support platforms that require a special compiler
23865 for thread safety;  use --disable-thread-safety to disable thread safety." >&2;}
23866    { (exit 1); exit 1; }; }
23867 fi
23868
23869 # Check for *_r functions
23870 _CFLAGS="$CFLAGS"
23871 _LIBS="$LIBS"
23872 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
23873 LIBS="$LIBS $PTHREAD_LIBS"
23874
23875 if test "$PORTNAME" != "win32"; then
23876 if test "${ac_cv_header_pthread_h+set}" = set; then
23877   { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23878 $as_echo_n "checking for pthread.h... " >&6; }
23879 if test "${ac_cv_header_pthread_h+set}" = set; then
23880   $as_echo_n "(cached) " >&6
23881 fi
23882 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23883 $as_echo "$ac_cv_header_pthread_h" >&6; }
23884 else
23885   # Is the header compilable?
23886 { $as_echo "$as_me:$LINENO: checking pthread.h usability" >&5
23887 $as_echo_n "checking pthread.h usability... " >&6; }
23888 cat >conftest.$ac_ext <<_ACEOF
23889 /* confdefs.h.  */
23890 _ACEOF
23891 cat confdefs.h >>conftest.$ac_ext
23892 cat >>conftest.$ac_ext <<_ACEOF
23893 /* end confdefs.h.  */
23894 $ac_includes_default
23895 #include <pthread.h>
23896 _ACEOF
23897 rm -f conftest.$ac_objext
23898 if { (ac_try="$ac_compile"
23899 case "(($ac_try" in
23900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23901   *) ac_try_echo=$ac_try;;
23902 esac
23903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23904 $as_echo "$ac_try_echo") >&5
23905   (eval "$ac_compile") 2>conftest.er1
23906   ac_status=$?
23907   grep -v '^ *+' conftest.er1 >conftest.err
23908   rm -f conftest.er1
23909   cat conftest.err >&5
23910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911   (exit $ac_status); } && {
23912          test -z "$ac_c_werror_flag" ||
23913          test ! -s conftest.err
23914        } && test -s conftest.$ac_objext; then
23915   ac_header_compiler=yes
23916 else
23917   $as_echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23919
23920         ac_header_compiler=no
23921 fi
23922
23923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23925 $as_echo "$ac_header_compiler" >&6; }
23926
23927 # Is the header present?
23928 { $as_echo "$as_me:$LINENO: checking pthread.h presence" >&5
23929 $as_echo_n "checking pthread.h presence... " >&6; }
23930 cat >conftest.$ac_ext <<_ACEOF
23931 /* confdefs.h.  */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h.  */
23936 #include <pthread.h>
23937 _ACEOF
23938 if { (ac_try="$ac_cpp conftest.$ac_ext"
23939 case "(($ac_try" in
23940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23941   *) ac_try_echo=$ac_try;;
23942 esac
23943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23944 $as_echo "$ac_try_echo") >&5
23945   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23946   ac_status=$?
23947   grep -v '^ *+' conftest.er1 >conftest.err
23948   rm -f conftest.er1
23949   cat conftest.err >&5
23950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); } >/dev/null && {
23952          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23953          test ! -s conftest.err
23954        }; then
23955   ac_header_preproc=yes
23956 else
23957   $as_echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960   ac_header_preproc=no
23961 fi
23962
23963 rm -f conftest.err conftest.$ac_ext
23964 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23965 $as_echo "$ac_header_preproc" >&6; }
23966
23967 # So?  What about this header?
23968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23969   yes:no: )
23970     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23971 $as_echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23972     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23973 $as_echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23974     ac_header_preproc=yes
23975     ;;
23976   no:yes:* )
23977     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23978 $as_echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23979     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
23980 $as_echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
23981     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23982 $as_echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23983     { $as_echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
23984 $as_echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23985     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23986 $as_echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23987     { $as_echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23988 $as_echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23989     ( cat <<\_ASBOX
23990 ## ---------------------------------------- ##
23991 ## Report this to pgsql-bugs@postgresql.org ##
23992 ## ---------------------------------------- ##
23993 _ASBOX
23994      ) | sed "s/^/$as_me: WARNING:     /" >&2
23995     ;;
23996 esac
23997 { $as_echo "$as_me:$LINENO: checking for pthread.h" >&5
23998 $as_echo_n "checking for pthread.h... " >&6; }
23999 if test "${ac_cv_header_pthread_h+set}" = set; then
24000   $as_echo_n "(cached) " >&6
24001 else
24002   ac_cv_header_pthread_h=$ac_header_preproc
24003 fi
24004 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
24005 $as_echo "$ac_cv_header_pthread_h" >&6; }
24006
24007 fi
24008 if test "x$ac_cv_header_pthread_h" = x""yes; then
24009   :
24010 else
24011   { { $as_echo "$as_me:$LINENO: error:
24012 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&5
24013 $as_echo "$as_me: error:
24014 pthread.h not found;  use --disable-thread-safety to disable thread safety" >&2;}
24015    { (exit 1); exit 1; }; }
24016 fi
24017
24018
24019 fi
24020
24021
24022
24023
24024 for ac_func in strerror_r getpwuid_r gethostbyname_r
24025 do
24026 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24027 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24028 $as_echo_n "checking for $ac_func... " >&6; }
24029 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24030   $as_echo_n "(cached) " >&6
24031 else
24032   cat >conftest.$ac_ext <<_ACEOF
24033 /* confdefs.h.  */
24034 _ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h.  */
24038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24040 #define $ac_func innocuous_$ac_func
24041
24042 /* System header to define __stub macros and hopefully few prototypes,
24043     which can conflict with char $ac_func (); below.
24044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24045     <limits.h> exists even on freestanding compilers.  */
24046
24047 #ifdef __STDC__
24048 # include <limits.h>
24049 #else
24050 # include <assert.h>
24051 #endif
24052
24053 #undef $ac_func
24054
24055 /* Override any GCC internal prototype to avoid an error.
24056    Use char because int might match the return type of a GCC
24057    builtin and then its argument prototype would still apply.  */
24058 #ifdef __cplusplus
24059 extern "C"
24060 #endif
24061 char $ac_func ();
24062 /* The GNU C library defines this for functions which it implements
24063     to always fail with ENOSYS.  Some functions are actually named
24064     something starting with __ and the normal name is an alias.  */
24065 #if defined __stub_$ac_func || defined __stub___$ac_func
24066 choke me
24067 #endif
24068
24069 int
24070 main ()
24071 {
24072 return $ac_func ();
24073   ;
24074   return 0;
24075 }
24076 _ACEOF
24077 rm -f conftest.$ac_objext conftest$ac_exeext
24078 if { (ac_try="$ac_link"
24079 case "(($ac_try" in
24080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24081   *) ac_try_echo=$ac_try;;
24082 esac
24083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24084 $as_echo "$ac_try_echo") >&5
24085   (eval "$ac_link") 2>conftest.er1
24086   ac_status=$?
24087   grep -v '^ *+' conftest.er1 >conftest.err
24088   rm -f conftest.er1
24089   cat conftest.err >&5
24090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091   (exit $ac_status); } && {
24092          test -z "$ac_c_werror_flag" ||
24093          test ! -s conftest.err
24094        } && test -s conftest$ac_exeext && {
24095          test "$cross_compiling" = yes ||
24096          $as_test_x conftest$ac_exeext
24097        }; then
24098   eval "$as_ac_var=yes"
24099 else
24100   $as_echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103         eval "$as_ac_var=no"
24104 fi
24105
24106 rm -rf conftest.dSYM
24107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24108       conftest$ac_exeext conftest.$ac_ext
24109 fi
24110 ac_res=`eval 'as_val=${'$as_ac_var'}
24111                  $as_echo "$as_val"'`
24112                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24113 $as_echo "$ac_res" >&6; }
24114 as_val=`eval 'as_val=${'$as_ac_var'}
24115                  $as_echo "$as_val"'`
24116    if test "x$as_val" = x""yes; then
24117   cat >>confdefs.h <<_ACEOF
24118 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24119 _ACEOF
24120
24121 fi
24122 done
24123
24124
24125 # Do test here with the proper thread flags
24126 { $as_echo "$as_me:$LINENO: checking whether getpwuid_r takes a fifth argument" >&5
24127 $as_echo_n "checking whether getpwuid_r takes a fifth argument... " >&6; }
24128 if test "${pgac_cv_func_getpwuid_r_5arg+set}" = set; then
24129   $as_echo_n "(cached) " >&6
24130 else
24131   cat >conftest.$ac_ext <<_ACEOF
24132 /* confdefs.h.  */
24133 _ACEOF
24134 cat confdefs.h >>conftest.$ac_ext
24135 cat >>conftest.$ac_ext <<_ACEOF
24136 /* end confdefs.h.  */
24137 #include <sys/types.h>
24138 #include <pwd.h>
24139 int
24140 main ()
24141 {
24142 uid_t uid;
24143 struct passwd *space;
24144 char *buf;
24145 size_t bufsize;
24146 struct passwd **result;
24147 getpwuid_r(uid, space, buf, bufsize, result);
24148   ;
24149   return 0;
24150 }
24151 _ACEOF
24152 rm -f conftest.$ac_objext
24153 if { (ac_try="$ac_compile"
24154 case "(($ac_try" in
24155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24156   *) ac_try_echo=$ac_try;;
24157 esac
24158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24159 $as_echo "$ac_try_echo") >&5
24160   (eval "$ac_compile") 2>conftest.er1
24161   ac_status=$?
24162   grep -v '^ *+' conftest.er1 >conftest.err
24163   rm -f conftest.er1
24164   cat conftest.err >&5
24165   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); } && {
24167          test -z "$ac_c_werror_flag" ||
24168          test ! -s conftest.err
24169        } && test -s conftest.$ac_objext; then
24170   pgac_cv_func_getpwuid_r_5arg=yes
24171 else
24172   $as_echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24174
24175         pgac_cv_func_getpwuid_r_5arg=no
24176 fi
24177
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24179 fi
24180 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_getpwuid_r_5arg" >&5
24181 $as_echo "$pgac_cv_func_getpwuid_r_5arg" >&6; }
24182 if test x"$pgac_cv_func_getpwuid_r_5arg" = xyes ; then
24183
24184 cat >>confdefs.h <<\_ACEOF
24185 #define GETPWUID_R_5ARG 1
24186 _ACEOF
24187
24188 fi
24189
24190 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns int" >&5
24191 $as_echo_n "checking whether strerror_r returns int... " >&6; }
24192 if test "${pgac_cv_func_strerror_r_int+set}" = set; then
24193   $as_echo_n "(cached) " >&6
24194 else
24195   cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h.  */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h.  */
24201 #include <string.h>
24202 int
24203 main ()
24204 {
24205 #ifndef _AIX
24206 int strerror_r(int, char *, size_t);
24207 #else
24208 /* Older AIX has 'int' for the third argument so we don't test the args. */
24209 int strerror_r();
24210 #endif
24211   ;
24212   return 0;
24213 }
24214 _ACEOF
24215 rm -f conftest.$ac_objext
24216 if { (ac_try="$ac_compile"
24217 case "(($ac_try" in
24218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24219   *) ac_try_echo=$ac_try;;
24220 esac
24221 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24222 $as_echo "$ac_try_echo") >&5
24223   (eval "$ac_compile") 2>conftest.er1
24224   ac_status=$?
24225   grep -v '^ *+' conftest.er1 >conftest.err
24226   rm -f conftest.er1
24227   cat conftest.err >&5
24228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); } && {
24230          test -z "$ac_c_werror_flag" ||
24231          test ! -s conftest.err
24232        } && test -s conftest.$ac_objext; then
24233   pgac_cv_func_strerror_r_int=yes
24234 else
24235   $as_echo "$as_me: failed program was:" >&5
24236 sed 's/^/| /' conftest.$ac_ext >&5
24237
24238         pgac_cv_func_strerror_r_int=no
24239 fi
24240
24241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24242 fi
24243 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_strerror_r_int" >&5
24244 $as_echo "$pgac_cv_func_strerror_r_int" >&6; }
24245 if test x"$pgac_cv_func_strerror_r_int" = xyes ; then
24246
24247 cat >>confdefs.h <<\_ACEOF
24248 #define STRERROR_R_INT 1
24249 _ACEOF
24250
24251 fi
24252
24253
24254 CFLAGS="$_CFLAGS"
24255 LIBS="$_LIBS"
24256
24257 else
24258 # do not use values from template file
24259 PTHREAD_CFLAGS=
24260 PTHREAD_LIBS=
24261 fi
24262
24263
24264
24265
24266
24267 # We can test for libldap_r only after we know PTHREAD_LIBS
24268 if test "$with_ldap" = yes ; then
24269   _LIBS="$LIBS"
24270   if test "$PORTNAME" != "win32"; then
24271
24272 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lldap" >&5
24273 $as_echo_n "checking for ldap_bind in -lldap... " >&6; }
24274 if test "${ac_cv_lib_ldap_ldap_bind+set}" = set; then
24275   $as_echo_n "(cached) " >&6
24276 else
24277   ac_check_lib_save_LIBS=$LIBS
24278 LIBS="-lldap $EXTRA_LDAP_LIBS $LIBS"
24279 cat >conftest.$ac_ext <<_ACEOF
24280 /* confdefs.h.  */
24281 _ACEOF
24282 cat confdefs.h >>conftest.$ac_ext
24283 cat >>conftest.$ac_ext <<_ACEOF
24284 /* end confdefs.h.  */
24285
24286 /* Override any GCC internal prototype to avoid an error.
24287    Use char because int might match the return type of a GCC
24288    builtin and then its argument prototype would still apply.  */
24289 #ifdef __cplusplus
24290 extern "C"
24291 #endif
24292 char ldap_bind ();
24293 int
24294 main ()
24295 {
24296 return ldap_bind ();
24297   ;
24298   return 0;
24299 }
24300 _ACEOF
24301 rm -f conftest.$ac_objext conftest$ac_exeext
24302 if { (ac_try="$ac_link"
24303 case "(($ac_try" in
24304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305   *) ac_try_echo=$ac_try;;
24306 esac
24307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309   (eval "$ac_link") 2>conftest.er1
24310   ac_status=$?
24311   grep -v '^ *+' conftest.er1 >conftest.err
24312   rm -f conftest.er1
24313   cat conftest.err >&5
24314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); } && {
24316          test -z "$ac_c_werror_flag" ||
24317          test ! -s conftest.err
24318        } && test -s conftest$ac_exeext && {
24319          test "$cross_compiling" = yes ||
24320          $as_test_x conftest$ac_exeext
24321        }; then
24322   ac_cv_lib_ldap_ldap_bind=yes
24323 else
24324   $as_echo "$as_me: failed program was:" >&5
24325 sed 's/^/| /' conftest.$ac_ext >&5
24326
24327         ac_cv_lib_ldap_ldap_bind=no
24328 fi
24329
24330 rm -rf conftest.dSYM
24331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24332       conftest$ac_exeext conftest.$ac_ext
24333 LIBS=$ac_check_lib_save_LIBS
24334 fi
24335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_bind" >&5
24336 $as_echo "$ac_cv_lib_ldap_ldap_bind" >&6; }
24337 if test "x$ac_cv_lib_ldap_ldap_bind" = x""yes; then
24338   cat >>confdefs.h <<_ACEOF
24339 #define HAVE_LIBLDAP 1
24340 _ACEOF
24341
24342   LIBS="-lldap $LIBS"
24343
24344 else
24345   { { $as_echo "$as_me:$LINENO: error: library 'ldap' is required for LDAP" >&5
24346 $as_echo "$as_me: error: library 'ldap' is required for LDAP" >&2;}
24347    { (exit 1); exit 1; }; }
24348 fi
24349
24350     LDAP_LIBS_BE="-lldap $EXTRA_LDAP_LIBS"
24351     if test "$enable_thread_safety" = yes; then
24352       # on some platforms ldap_r fails to link without PTHREAD_LIBS
24353
24354 { $as_echo "$as_me:$LINENO: checking for ldap_simple_bind in -lldap_r" >&5
24355 $as_echo_n "checking for ldap_simple_bind in -lldap_r... " >&6; }
24356 if test "${ac_cv_lib_ldap_r_ldap_simple_bind+set}" = set; then
24357   $as_echo_n "(cached) " >&6
24358 else
24359   ac_check_lib_save_LIBS=$LIBS
24360 LIBS="-lldap_r $PTHREAD_CFLAGS $PTHREAD_LIBS $EXTRA_LDAP_LIBS $LIBS"
24361 cat >conftest.$ac_ext <<_ACEOF
24362 /* confdefs.h.  */
24363 _ACEOF
24364 cat confdefs.h >>conftest.$ac_ext
24365 cat >>conftest.$ac_ext <<_ACEOF
24366 /* end confdefs.h.  */
24367
24368 /* Override any GCC internal prototype to avoid an error.
24369    Use char because int might match the return type of a GCC
24370    builtin and then its argument prototype would still apply.  */
24371 #ifdef __cplusplus
24372 extern "C"
24373 #endif
24374 char ldap_simple_bind ();
24375 int
24376 main ()
24377 {
24378 return ldap_simple_bind ();
24379   ;
24380   return 0;
24381 }
24382 _ACEOF
24383 rm -f conftest.$ac_objext conftest$ac_exeext
24384 if { (ac_try="$ac_link"
24385 case "(($ac_try" in
24386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24387   *) ac_try_echo=$ac_try;;
24388 esac
24389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24390 $as_echo "$ac_try_echo") >&5
24391   (eval "$ac_link") 2>conftest.er1
24392   ac_status=$?
24393   grep -v '^ *+' conftest.er1 >conftest.err
24394   rm -f conftest.er1
24395   cat conftest.err >&5
24396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24397   (exit $ac_status); } && {
24398          test -z "$ac_c_werror_flag" ||
24399          test ! -s conftest.err
24400        } && test -s conftest$ac_exeext && {
24401          test "$cross_compiling" = yes ||
24402          $as_test_x conftest$ac_exeext
24403        }; then
24404   ac_cv_lib_ldap_r_ldap_simple_bind=yes
24405 else
24406   $as_echo "$as_me: failed program was:" >&5
24407 sed 's/^/| /' conftest.$ac_ext >&5
24408
24409         ac_cv_lib_ldap_r_ldap_simple_bind=no
24410 fi
24411
24412 rm -rf conftest.dSYM
24413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24414       conftest$ac_exeext conftest.$ac_ext
24415 LIBS=$ac_check_lib_save_LIBS
24416 fi
24417 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_r_ldap_simple_bind" >&5
24418 $as_echo "$ac_cv_lib_ldap_r_ldap_simple_bind" >&6; }
24419 if test "x$ac_cv_lib_ldap_r_ldap_simple_bind" = x""yes; then
24420   cat >>confdefs.h <<_ACEOF
24421 #define HAVE_LIBLDAP_R 1
24422 _ACEOF
24423
24424   LIBS="-lldap_r $LIBS"
24425
24426 else
24427   { { $as_echo "$as_me:$LINENO: error: library 'ldap_r' is required for LDAP" >&5
24428 $as_echo "$as_me: error: library 'ldap_r' is required for LDAP" >&2;}
24429    { (exit 1); exit 1; }; }
24430 fi
24431
24432       LDAP_LIBS_FE="-lldap_r $EXTRA_LDAP_LIBS"
24433     else
24434       LDAP_LIBS_FE="-lldap $EXTRA_LDAP_LIBS"
24435     fi
24436   else
24437
24438 { $as_echo "$as_me:$LINENO: checking for ldap_bind in -lwldap32" >&5
24439 $as_echo_n "checking for ldap_bind in -lwldap32... " >&6; }
24440 if test "${ac_cv_lib_wldap32_ldap_bind+set}" = set; then
24441   $as_echo_n "(cached) " >&6
24442 else
24443   ac_check_lib_save_LIBS=$LIBS
24444 LIBS="-lwldap32  $LIBS"
24445 cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h.  */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h.  */
24451
24452 /* Override any GCC internal prototype to avoid an error.
24453    Use char because int might match the return type of a GCC
24454    builtin and then its argument prototype would still apply.  */
24455 #ifdef __cplusplus
24456 extern "C"
24457 #endif
24458 char ldap_bind ();
24459 int
24460 main ()
24461 {
24462 return ldap_bind ();
24463   ;
24464   return 0;
24465 }
24466 _ACEOF
24467 rm -f conftest.$ac_objext conftest$ac_exeext
24468 if { (ac_try="$ac_link"
24469 case "(($ac_try" in
24470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24471   *) ac_try_echo=$ac_try;;
24472 esac
24473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24474 $as_echo "$ac_try_echo") >&5
24475   (eval "$ac_link") 2>conftest.er1
24476   ac_status=$?
24477   grep -v '^ *+' conftest.er1 >conftest.err
24478   rm -f conftest.er1
24479   cat conftest.err >&5
24480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); } && {
24482          test -z "$ac_c_werror_flag" ||
24483          test ! -s conftest.err
24484        } && test -s conftest$ac_exeext && {
24485          test "$cross_compiling" = yes ||
24486          $as_test_x conftest$ac_exeext
24487        }; then
24488   ac_cv_lib_wldap32_ldap_bind=yes
24489 else
24490   $as_echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24492
24493         ac_cv_lib_wldap32_ldap_bind=no
24494 fi
24495
24496 rm -rf conftest.dSYM
24497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24498       conftest$ac_exeext conftest.$ac_ext
24499 LIBS=$ac_check_lib_save_LIBS
24500 fi
24501 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wldap32_ldap_bind" >&5
24502 $as_echo "$ac_cv_lib_wldap32_ldap_bind" >&6; }
24503 if test "x$ac_cv_lib_wldap32_ldap_bind" = x""yes; then
24504   cat >>confdefs.h <<_ACEOF
24505 #define HAVE_LIBWLDAP32 1
24506 _ACEOF
24507
24508   LIBS="-lwldap32 $LIBS"
24509
24510 else
24511   { { $as_echo "$as_me:$LINENO: error: library 'wldap32' is required for LDAP" >&5
24512 $as_echo "$as_me: error: library 'wldap32' is required for LDAP" >&2;}
24513    { (exit 1); exit 1; }; }
24514 fi
24515
24516     LDAP_LIBS_FE="-lwldap32"
24517     LDAP_LIBS_BE="-lwldap32"
24518   fi
24519   LIBS="$_LIBS"
24520 fi
24521
24522
24523
24524
24525 # This test makes sure that run tests work at all.  Sometimes a shared
24526 # library is found by the linker, but the runtime linker can't find it.
24527 # This check should come after all modifications of compiler or linker
24528 # variables, and before any other run tests.
24529 { $as_echo "$as_me:$LINENO: checking test program" >&5
24530 $as_echo_n "checking test program... " >&6; }
24531 if test "$cross_compiling" = yes; then
24532   { $as_echo "$as_me:$LINENO: result: cross-compiling" >&5
24533 $as_echo "cross-compiling" >&6; }
24534 else
24535   cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h.  */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h.  */
24541 int main() { return 0; }
24542 _ACEOF
24543 rm -f conftest$ac_exeext
24544 if { (ac_try="$ac_link"
24545 case "(($ac_try" in
24546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547   *) ac_try_echo=$ac_try;;
24548 esac
24549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550 $as_echo "$ac_try_echo") >&5
24551   (eval "$ac_link") 2>&5
24552   ac_status=$?
24553   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24555   { (case "(($ac_try" in
24556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24557   *) ac_try_echo=$ac_try;;
24558 esac
24559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24560 $as_echo "$ac_try_echo") >&5
24561   (eval "$ac_try") 2>&5
24562   ac_status=$?
24563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); }; }; then
24565   { $as_echo "$as_me:$LINENO: result: ok" >&5
24566 $as_echo "ok" >&6; }
24567 else
24568   $as_echo "$as_me: program exited with status $ac_status" >&5
24569 $as_echo "$as_me: failed program was:" >&5
24570 sed 's/^/| /' conftest.$ac_ext >&5
24571
24572 ( exit $ac_status )
24573 { $as_echo "$as_me:$LINENO: result: failed" >&5
24574 $as_echo "failed" >&6; }
24575 { { $as_echo "$as_me:$LINENO: error:
24576 Could not execute a simple test program.  This may be a problem
24577 related to locating shared libraries.  Check the file 'config.log'
24578 for the exact reason." >&5
24579 $as_echo "$as_me: error:
24580 Could not execute a simple test program.  This may be a problem
24581 related to locating shared libraries.  Check the file 'config.log'
24582 for the exact reason." >&2;}
24583    { (exit 1); exit 1; }; }
24584 fi
24585 rm -rf conftest.dSYM
24586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24587 fi
24588
24589
24590
24591 # --------------------
24592 # Run tests below here
24593 # --------------------
24594
24595 # Force use of our snprintf if system's doesn't do arg control
24596 # See comment above at snprintf test for details.
24597 if test "$enable_nls" = yes -a "$pgac_need_repl_snprintf" = no; then
24598   { $as_echo "$as_me:$LINENO: checking whether printf supports argument control" >&5
24599 $as_echo_n "checking whether printf supports argument control... " >&6; }
24600 if test "${pgac_cv_printf_arg_control+set}" = set; then
24601   $as_echo_n "(cached) " >&6
24602 else
24603   if test "$cross_compiling" = yes; then
24604   pgac_cv_printf_arg_control=cross
24605 else
24606   cat >conftest.$ac_ext <<_ACEOF
24607 /* confdefs.h.  */
24608 _ACEOF
24609 cat confdefs.h >>conftest.$ac_ext
24610 cat >>conftest.$ac_ext <<_ACEOF
24611 /* end confdefs.h.  */
24612 #include <stdio.h>
24613 #include <string.h>
24614
24615 int main()
24616 {
24617   char buf[100];
24618
24619   /* can it swap arguments? */
24620   snprintf(buf, 100, "%2\$d %1\$d", 3, 4);
24621   if (strcmp(buf, "4 3") != 0)
24622     return 1;
24623   return 0;
24624 }
24625 _ACEOF
24626 rm -f conftest$ac_exeext
24627 if { (ac_try="$ac_link"
24628 case "(($ac_try" in
24629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24630   *) ac_try_echo=$ac_try;;
24631 esac
24632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24633 $as_echo "$ac_try_echo") >&5
24634   (eval "$ac_link") 2>&5
24635   ac_status=$?
24636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24638   { (case "(($ac_try" in
24639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24640   *) ac_try_echo=$ac_try;;
24641 esac
24642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24643 $as_echo "$ac_try_echo") >&5
24644   (eval "$ac_try") 2>&5
24645   ac_status=$?
24646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); }; }; then
24648   pgac_cv_printf_arg_control=yes
24649 else
24650   $as_echo "$as_me: program exited with status $ac_status" >&5
24651 $as_echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.$ac_ext >&5
24653
24654 ( exit $ac_status )
24655 pgac_cv_printf_arg_control=no
24656 fi
24657 rm -rf conftest.dSYM
24658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24659 fi
24660
24661
24662
24663 fi
24664 { $as_echo "$as_me:$LINENO: result: $pgac_cv_printf_arg_control" >&5
24665 $as_echo "$pgac_cv_printf_arg_control" >&6; }
24666
24667   if test $pgac_cv_printf_arg_control != yes ; then
24668     pgac_need_repl_snprintf=yes
24669   fi
24670 fi
24671
24672
24673
24674
24675 { $as_echo "$as_me:$LINENO: checking whether long int is 64 bits" >&5
24676 $as_echo_n "checking whether long int is 64 bits... " >&6; }
24677 if test "${pgac_cv_type_long_int_64+set}" = set; then
24678   $as_echo_n "(cached) " >&6
24679 else
24680   if test "$cross_compiling" = yes; then
24681   # If cross-compiling, check the size reported by the compiler and
24682 # trust that the arithmetic works.
24683 cat >conftest.$ac_ext <<_ACEOF
24684 /* confdefs.h.  */
24685 _ACEOF
24686 cat confdefs.h >>conftest.$ac_ext
24687 cat >>conftest.$ac_ext <<_ACEOF
24688 /* end confdefs.h.  */
24689
24690 int
24691 main ()
24692 {
24693 static int test_array [1 - 2 * !(sizeof(long int) == 8)];
24694 test_array [0] = 0
24695
24696   ;
24697   return 0;
24698 }
24699 _ACEOF
24700 rm -f conftest.$ac_objext
24701 if { (ac_try="$ac_compile"
24702 case "(($ac_try" in
24703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24704   *) ac_try_echo=$ac_try;;
24705 esac
24706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24707 $as_echo "$ac_try_echo") >&5
24708   (eval "$ac_compile") 2>conftest.er1
24709   ac_status=$?
24710   grep -v '^ *+' conftest.er1 >conftest.err
24711   rm -f conftest.er1
24712   cat conftest.err >&5
24713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); } && {
24715          test -z "$ac_c_werror_flag" ||
24716          test ! -s conftest.err
24717        } && test -s conftest.$ac_objext; then
24718   pgac_cv_type_long_int_64=yes
24719 else
24720   $as_echo "$as_me: failed program was:" >&5
24721 sed 's/^/| /' conftest.$ac_ext >&5
24722
24723         pgac_cv_type_long_int_64=no
24724 fi
24725
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 else
24728   cat >conftest.$ac_ext <<_ACEOF
24729 /* confdefs.h.  */
24730 _ACEOF
24731 cat confdefs.h >>conftest.$ac_ext
24732 cat >>conftest.$ac_ext <<_ACEOF
24733 /* end confdefs.h.  */
24734 typedef long int ac_int64;
24735
24736 /*
24737  * These are globals to discourage the compiler from folding all the
24738  * arithmetic tests down to compile-time constants.
24739  */
24740 ac_int64 a = 20000001;
24741 ac_int64 b = 40000005;
24742
24743 int does_int64_work()
24744 {
24745   ac_int64 c,d;
24746
24747   if (sizeof(ac_int64) != 8)
24748     return 0;                   /* definitely not the right size */
24749
24750   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24751   c = a * b;
24752   d = (c + b) / b;
24753   if (d != a+1)
24754     return 0;
24755   return 1;
24756 }
24757 main() {
24758   exit(! does_int64_work());
24759 }
24760 _ACEOF
24761 rm -f conftest$ac_exeext
24762 if { (ac_try="$ac_link"
24763 case "(($ac_try" in
24764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765   *) ac_try_echo=$ac_try;;
24766 esac
24767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24768 $as_echo "$ac_try_echo") >&5
24769   (eval "$ac_link") 2>&5
24770   ac_status=$?
24771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24773   { (case "(($ac_try" in
24774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775   *) ac_try_echo=$ac_try;;
24776 esac
24777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24778 $as_echo "$ac_try_echo") >&5
24779   (eval "$ac_try") 2>&5
24780   ac_status=$?
24781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782   (exit $ac_status); }; }; then
24783   pgac_cv_type_long_int_64=yes
24784 else
24785   $as_echo "$as_me: program exited with status $ac_status" >&5
24786 $as_echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.$ac_ext >&5
24788
24789 ( exit $ac_status )
24790 pgac_cv_type_long_int_64=no
24791 fi
24792 rm -rf conftest.dSYM
24793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24794 fi
24795
24796
24797 fi
24798 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_int_64" >&5
24799 $as_echo "$pgac_cv_type_long_int_64" >&6; }
24800
24801 HAVE_LONG_INT_64=$pgac_cv_type_long_int_64
24802 if test x"$pgac_cv_type_long_int_64" = xyes ; then
24803
24804 cat >>confdefs.h <<\_ACEOF
24805 #define HAVE_LONG_INT_64 1
24806 _ACEOF
24807
24808 fi
24809
24810
24811 if test x"$HAVE_LONG_INT_64" = x"yes" ; then
24812   pg_int64_type="long int"
24813 else
24814   { $as_echo "$as_me:$LINENO: checking whether long long int is 64 bits" >&5
24815 $as_echo_n "checking whether long long int is 64 bits... " >&6; }
24816 if test "${pgac_cv_type_long_long_int_64+set}" = set; then
24817   $as_echo_n "(cached) " >&6
24818 else
24819   if test "$cross_compiling" = yes; then
24820   # If cross-compiling, check the size reported by the compiler and
24821 # trust that the arithmetic works.
24822 cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828
24829 int
24830 main ()
24831 {
24832 static int test_array [1 - 2 * !(sizeof(long long int) == 8)];
24833 test_array [0] = 0
24834
24835   ;
24836   return 0;
24837 }
24838 _ACEOF
24839 rm -f conftest.$ac_objext
24840 if { (ac_try="$ac_compile"
24841 case "(($ac_try" in
24842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843   *) ac_try_echo=$ac_try;;
24844 esac
24845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24846 $as_echo "$ac_try_echo") >&5
24847   (eval "$ac_compile") 2>conftest.er1
24848   ac_status=$?
24849   grep -v '^ *+' conftest.er1 >conftest.err
24850   rm -f conftest.er1
24851   cat conftest.err >&5
24852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); } && {
24854          test -z "$ac_c_werror_flag" ||
24855          test ! -s conftest.err
24856        } && test -s conftest.$ac_objext; then
24857   pgac_cv_type_long_long_int_64=yes
24858 else
24859   $as_echo "$as_me: failed program was:" >&5
24860 sed 's/^/| /' conftest.$ac_ext >&5
24861
24862         pgac_cv_type_long_long_int_64=no
24863 fi
24864
24865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24866 else
24867   cat >conftest.$ac_ext <<_ACEOF
24868 /* confdefs.h.  */
24869 _ACEOF
24870 cat confdefs.h >>conftest.$ac_ext
24871 cat >>conftest.$ac_ext <<_ACEOF
24872 /* end confdefs.h.  */
24873 typedef long long int ac_int64;
24874
24875 /*
24876  * These are globals to discourage the compiler from folding all the
24877  * arithmetic tests down to compile-time constants.
24878  */
24879 ac_int64 a = 20000001;
24880 ac_int64 b = 40000005;
24881
24882 int does_int64_work()
24883 {
24884   ac_int64 c,d;
24885
24886   if (sizeof(ac_int64) != 8)
24887     return 0;                   /* definitely not the right size */
24888
24889   /* Do perfunctory checks to see if 64-bit arithmetic seems to work */
24890   c = a * b;
24891   d = (c + b) / b;
24892   if (d != a+1)
24893     return 0;
24894   return 1;
24895 }
24896 main() {
24897   exit(! does_int64_work());
24898 }
24899 _ACEOF
24900 rm -f conftest$ac_exeext
24901 if { (ac_try="$ac_link"
24902 case "(($ac_try" in
24903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904   *) ac_try_echo=$ac_try;;
24905 esac
24906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24907 $as_echo "$ac_try_echo") >&5
24908   (eval "$ac_link") 2>&5
24909   ac_status=$?
24910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24912   { (case "(($ac_try" in
24913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914   *) ac_try_echo=$ac_try;;
24915 esac
24916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24917 $as_echo "$ac_try_echo") >&5
24918   (eval "$ac_try") 2>&5
24919   ac_status=$?
24920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921   (exit $ac_status); }; }; then
24922   pgac_cv_type_long_long_int_64=yes
24923 else
24924   $as_echo "$as_me: program exited with status $ac_status" >&5
24925 $as_echo "$as_me: failed program was:" >&5
24926 sed 's/^/| /' conftest.$ac_ext >&5
24927
24928 ( exit $ac_status )
24929 pgac_cv_type_long_long_int_64=no
24930 fi
24931 rm -rf conftest.dSYM
24932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24933 fi
24934
24935
24936 fi
24937 { $as_echo "$as_me:$LINENO: result: $pgac_cv_type_long_long_int_64" >&5
24938 $as_echo "$pgac_cv_type_long_long_int_64" >&6; }
24939
24940 HAVE_LONG_LONG_INT_64=$pgac_cv_type_long_long_int_64
24941 if test x"$pgac_cv_type_long_long_int_64" = xyes ; then
24942
24943 cat >>confdefs.h <<\_ACEOF
24944 #define HAVE_LONG_LONG_INT_64 1
24945 _ACEOF
24946
24947 fi
24948
24949   if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
24950     pg_int64_type="long long int"
24951   else
24952     { { $as_echo "$as_me:$LINENO: error: Cannot find a working 64-bit integer type." >&5
24953 $as_echo "$as_me: error: Cannot find a working 64-bit integer type." >&2;}
24954    { (exit 1); exit 1; }; }
24955   fi
24956 fi
24957
24958
24959 cat >>confdefs.h <<_ACEOF
24960 #define PG_INT64_TYPE $pg_int64_type
24961 _ACEOF
24962
24963
24964
24965 if test x"$HAVE_LONG_LONG_INT_64" = xyes ; then
24966   cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h.  */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h.  */
24972
24973 #define INT64CONST(x)  x##LL
24974 long long int foo = INT64CONST(0x1234567890123456);
24975
24976 int
24977 main ()
24978 {
24979
24980   ;
24981   return 0;
24982 }
24983 _ACEOF
24984 rm -f conftest.$ac_objext
24985 if { (ac_try="$ac_compile"
24986 case "(($ac_try" in
24987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24988   *) ac_try_echo=$ac_try;;
24989 esac
24990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24991 $as_echo "$ac_try_echo") >&5
24992   (eval "$ac_compile") 2>conftest.er1
24993   ac_status=$?
24994   grep -v '^ *+' conftest.er1 >conftest.err
24995   rm -f conftest.er1
24996   cat conftest.err >&5
24997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24998   (exit $ac_status); } && {
24999          test -z "$ac_c_werror_flag" ||
25000          test ! -s conftest.err
25001        } && test -s conftest.$ac_objext; then
25002
25003 cat >>confdefs.h <<\_ACEOF
25004 #define HAVE_LL_CONSTANTS 1
25005 _ACEOF
25006
25007 else
25008   $as_echo "$as_me: failed program was:" >&5
25009 sed 's/^/| /' conftest.$ac_ext >&5
25010
25011
25012 fi
25013
25014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25015 fi
25016
25017
25018 # If we found "long int" is 64 bits, assume snprintf handles it.  If
25019 # we found we need to use "long long int", better check.  We cope with
25020 # snprintfs that use %lld, %qd, or %I64d as the format.  If none of these
25021 # work, fall back to our own snprintf emulation (which we know uses %lld).
25022
25023 if test "$HAVE_LONG_LONG_INT_64" = yes ; then
25024   if test $pgac_need_repl_snprintf = no; then
25025     { $as_echo "$as_me:$LINENO: checking snprintf format for long long int" >&5
25026 $as_echo_n "checking snprintf format for long long int... " >&6; }
25027 if test "${pgac_cv_snprintf_long_long_int_format+set}" = set; then
25028   $as_echo_n "(cached) " >&6
25029 else
25030   for pgac_format in '%lld' '%qd' '%I64d'; do
25031 if test "$cross_compiling" = yes; then
25032   pgac_cv_snprintf_long_long_int_format=cross; break
25033 else
25034   cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h.  */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h.  */
25040 #include <stdio.h>
25041 typedef long long int ac_int64;
25042 #define INT64_FORMAT "$pgac_format"
25043
25044 ac_int64 a = 20000001;
25045 ac_int64 b = 40000005;
25046
25047 int does_int64_snprintf_work()
25048 {
25049   ac_int64 c;
25050   char buf[100];
25051
25052   if (sizeof(ac_int64) != 8)
25053     return 0;                   /* doesn't look like the right size */
25054
25055   c = a * b;
25056   snprintf(buf, 100, INT64_FORMAT, c);
25057   if (strcmp(buf, "800000140000005") != 0)
25058     return 0;                   /* either multiply or snprintf is busted */
25059   return 1;
25060 }
25061 main() {
25062   exit(! does_int64_snprintf_work());
25063 }
25064 _ACEOF
25065 rm -f conftest$ac_exeext
25066 if { (ac_try="$ac_link"
25067 case "(($ac_try" in
25068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25069   *) ac_try_echo=$ac_try;;
25070 esac
25071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25072 $as_echo "$ac_try_echo") >&5
25073   (eval "$ac_link") 2>&5
25074   ac_status=$?
25075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25077   { (case "(($ac_try" in
25078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079   *) ac_try_echo=$ac_try;;
25080 esac
25081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25082 $as_echo "$ac_try_echo") >&5
25083   (eval "$ac_try") 2>&5
25084   ac_status=$?
25085   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086   (exit $ac_status); }; }; then
25087   pgac_cv_snprintf_long_long_int_format=$pgac_format; break
25088 else
25089   $as_echo "$as_me: program exited with status $ac_status" >&5
25090 $as_echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25092
25093 fi
25094 rm -rf conftest.dSYM
25095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25096 fi
25097
25098
25099 done
25100 fi
25101
25102 LONG_LONG_INT_FORMAT=''
25103
25104 case $pgac_cv_snprintf_long_long_int_format in
25105   cross) { $as_echo "$as_me:$LINENO: result: cannot test (not on host machine)" >&5
25106 $as_echo "cannot test (not on host machine)" >&6; };;
25107   ?*)    { $as_echo "$as_me:$LINENO: result: $pgac_cv_snprintf_long_long_int_format" >&5
25108 $as_echo "$pgac_cv_snprintf_long_long_int_format" >&6; }
25109          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
25110   *)     { $as_echo "$as_me:$LINENO: result: none" >&5
25111 $as_echo "none" >&6; };;
25112 esac
25113     if test "$LONG_LONG_INT_FORMAT" = ""; then
25114       # Force usage of our own snprintf, since system snprintf is broken
25115       pgac_need_repl_snprintf=yes
25116       LONG_LONG_INT_FORMAT='%lld'
25117     fi
25118   else
25119     # Here if we previously decided we needed to use our own snprintf
25120     LONG_LONG_INT_FORMAT='%lld'
25121   fi
25122   LONG_LONG_UINT_FORMAT=`echo "$LONG_LONG_INT_FORMAT" | sed 's/d$/u/'`
25123   INT64_FORMAT="\"$LONG_LONG_INT_FORMAT\""
25124   UINT64_FORMAT="\"$LONG_LONG_UINT_FORMAT\""
25125 else
25126   # Here if we are not using 'long long int' at all
25127   INT64_FORMAT='"%ld"'
25128   UINT64_FORMAT='"%lu"'
25129 fi
25130
25131
25132 cat >>confdefs.h <<_ACEOF
25133 #define INT64_FORMAT $INT64_FORMAT
25134 _ACEOF
25135
25136
25137
25138 cat >>confdefs.h <<_ACEOF
25139 #define UINT64_FORMAT $UINT64_FORMAT
25140 _ACEOF
25141
25142
25143 # Now we have checked all the reasons to replace snprintf
25144 if test $pgac_need_repl_snprintf = yes; then
25145
25146 cat >>confdefs.h <<\_ACEOF
25147 #define USE_REPL_SNPRINTF 1
25148 _ACEOF
25149
25150   case " $LIBOBJS " in
25151   *" snprintf.$ac_objext "* ) ;;
25152   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
25153  ;;
25154 esac
25155
25156 fi
25157
25158 # Check size of void *, size_t (enables tweaks for > 32bit address space)
25159 # The cast to long int works around a bug in the HP C Compiler
25160 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25161 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25162 # This bug is HP SR number 8606223364.
25163 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
25164 $as_echo_n "checking size of void *... " >&6; }
25165 if test "${ac_cv_sizeof_void_p+set}" = set; then
25166   $as_echo_n "(cached) " >&6
25167 else
25168   if test "$cross_compiling" = yes; then
25169   # Depending upon the size, compute the lo and hi bounds.
25170 cat >conftest.$ac_ext <<_ACEOF
25171 /* confdefs.h.  */
25172 _ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h.  */
25176 $ac_includes_default
25177 int
25178 main ()
25179 {
25180 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
25181 test_array [0] = 0
25182
25183   ;
25184   return 0;
25185 }
25186 _ACEOF
25187 rm -f conftest.$ac_objext
25188 if { (ac_try="$ac_compile"
25189 case "(($ac_try" in
25190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25191   *) ac_try_echo=$ac_try;;
25192 esac
25193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25194 $as_echo "$ac_try_echo") >&5
25195   (eval "$ac_compile") 2>conftest.er1
25196   ac_status=$?
25197   grep -v '^ *+' conftest.er1 >conftest.err
25198   rm -f conftest.er1
25199   cat conftest.err >&5
25200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25201   (exit $ac_status); } && {
25202          test -z "$ac_c_werror_flag" ||
25203          test ! -s conftest.err
25204        } && test -s conftest.$ac_objext; then
25205   ac_lo=0 ac_mid=0
25206   while :; do
25207     cat >conftest.$ac_ext <<_ACEOF
25208 /* confdefs.h.  */
25209 _ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h.  */
25213 $ac_includes_default
25214 int
25215 main ()
25216 {
25217 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25218 test_array [0] = 0
25219
25220   ;
25221   return 0;
25222 }
25223 _ACEOF
25224 rm -f conftest.$ac_objext
25225 if { (ac_try="$ac_compile"
25226 case "(($ac_try" in
25227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25228   *) ac_try_echo=$ac_try;;
25229 esac
25230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25231 $as_echo "$ac_try_echo") >&5
25232   (eval "$ac_compile") 2>conftest.er1
25233   ac_status=$?
25234   grep -v '^ *+' conftest.er1 >conftest.err
25235   rm -f conftest.er1
25236   cat conftest.err >&5
25237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } && {
25239          test -z "$ac_c_werror_flag" ||
25240          test ! -s conftest.err
25241        } && test -s conftest.$ac_objext; then
25242   ac_hi=$ac_mid; break
25243 else
25244   $as_echo "$as_me: failed program was:" >&5
25245 sed 's/^/| /' conftest.$ac_ext >&5
25246
25247         ac_lo=`expr $ac_mid + 1`
25248                         if test $ac_lo -le $ac_mid; then
25249                           ac_lo= ac_hi=
25250                           break
25251                         fi
25252                         ac_mid=`expr 2 '*' $ac_mid + 1`
25253 fi
25254
25255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25256   done
25257 else
25258   $as_echo "$as_me: failed program was:" >&5
25259 sed 's/^/| /' conftest.$ac_ext >&5
25260
25261         cat >conftest.$ac_ext <<_ACEOF
25262 /* confdefs.h.  */
25263 _ACEOF
25264 cat confdefs.h >>conftest.$ac_ext
25265 cat >>conftest.$ac_ext <<_ACEOF
25266 /* end confdefs.h.  */
25267 $ac_includes_default
25268 int
25269 main ()
25270 {
25271 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
25272 test_array [0] = 0
25273
25274   ;
25275   return 0;
25276 }
25277 _ACEOF
25278 rm -f conftest.$ac_objext
25279 if { (ac_try="$ac_compile"
25280 case "(($ac_try" in
25281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25282   *) ac_try_echo=$ac_try;;
25283 esac
25284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25285 $as_echo "$ac_try_echo") >&5
25286   (eval "$ac_compile") 2>conftest.er1
25287   ac_status=$?
25288   grep -v '^ *+' conftest.er1 >conftest.err
25289   rm -f conftest.er1
25290   cat conftest.err >&5
25291   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292   (exit $ac_status); } && {
25293          test -z "$ac_c_werror_flag" ||
25294          test ! -s conftest.err
25295        } && test -s conftest.$ac_objext; then
25296   ac_hi=-1 ac_mid=-1
25297   while :; do
25298     cat >conftest.$ac_ext <<_ACEOF
25299 /* confdefs.h.  */
25300 _ACEOF
25301 cat confdefs.h >>conftest.$ac_ext
25302 cat >>conftest.$ac_ext <<_ACEOF
25303 /* end confdefs.h.  */
25304 $ac_includes_default
25305 int
25306 main ()
25307 {
25308 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
25309 test_array [0] = 0
25310
25311   ;
25312   return 0;
25313 }
25314 _ACEOF
25315 rm -f conftest.$ac_objext
25316 if { (ac_try="$ac_compile"
25317 case "(($ac_try" in
25318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319   *) ac_try_echo=$ac_try;;
25320 esac
25321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25322 $as_echo "$ac_try_echo") >&5
25323   (eval "$ac_compile") 2>conftest.er1
25324   ac_status=$?
25325   grep -v '^ *+' conftest.er1 >conftest.err
25326   rm -f conftest.er1
25327   cat conftest.err >&5
25328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); } && {
25330          test -z "$ac_c_werror_flag" ||
25331          test ! -s conftest.err
25332        } && test -s conftest.$ac_objext; then
25333   ac_lo=$ac_mid; break
25334 else
25335   $as_echo "$as_me: failed program was:" >&5
25336 sed 's/^/| /' conftest.$ac_ext >&5
25337
25338         ac_hi=`expr '(' $ac_mid ')' - 1`
25339                         if test $ac_mid -le $ac_hi; then
25340                           ac_lo= ac_hi=
25341                           break
25342                         fi
25343                         ac_mid=`expr 2 '*' $ac_mid`
25344 fi
25345
25346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25347   done
25348 else
25349   $as_echo "$as_me: failed program was:" >&5
25350 sed 's/^/| /' conftest.$ac_ext >&5
25351
25352         ac_lo= ac_hi=
25353 fi
25354
25355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356 fi
25357
25358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25359 # Binary search between lo and hi bounds.
25360 while test "x$ac_lo" != "x$ac_hi"; do
25361   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25362   cat >conftest.$ac_ext <<_ACEOF
25363 /* confdefs.h.  */
25364 _ACEOF
25365 cat confdefs.h >>conftest.$ac_ext
25366 cat >>conftest.$ac_ext <<_ACEOF
25367 /* end confdefs.h.  */
25368 $ac_includes_default
25369 int
25370 main ()
25371 {
25372 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
25373 test_array [0] = 0
25374
25375   ;
25376   return 0;
25377 }
25378 _ACEOF
25379 rm -f conftest.$ac_objext
25380 if { (ac_try="$ac_compile"
25381 case "(($ac_try" in
25382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25383   *) ac_try_echo=$ac_try;;
25384 esac
25385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25386 $as_echo "$ac_try_echo") >&5
25387   (eval "$ac_compile") 2>conftest.er1
25388   ac_status=$?
25389   grep -v '^ *+' conftest.er1 >conftest.err
25390   rm -f conftest.er1
25391   cat conftest.err >&5
25392   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393   (exit $ac_status); } && {
25394          test -z "$ac_c_werror_flag" ||
25395          test ! -s conftest.err
25396        } && test -s conftest.$ac_objext; then
25397   ac_hi=$ac_mid
25398 else
25399   $as_echo "$as_me: failed program was:" >&5
25400 sed 's/^/| /' conftest.$ac_ext >&5
25401
25402         ac_lo=`expr '(' $ac_mid ')' + 1`
25403 fi
25404
25405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25406 done
25407 case $ac_lo in
25408 ?*) ac_cv_sizeof_void_p=$ac_lo;;
25409 '') if test "$ac_cv_type_void_p" = yes; then
25410      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25412 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25413 See \`config.log' for more details." >&5
25414 $as_echo "$as_me: error: cannot compute sizeof (void *)
25415 See \`config.log' for more details." >&2;}
25416    { (exit 77); exit 77; }; }; }
25417    else
25418      ac_cv_sizeof_void_p=0
25419    fi ;;
25420 esac
25421 else
25422   cat >conftest.$ac_ext <<_ACEOF
25423 /* confdefs.h.  */
25424 _ACEOF
25425 cat confdefs.h >>conftest.$ac_ext
25426 cat >>conftest.$ac_ext <<_ACEOF
25427 /* end confdefs.h.  */
25428 $ac_includes_default
25429 static long int longval () { return (long int) (sizeof (void *)); }
25430 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
25431 #include <stdio.h>
25432 #include <stdlib.h>
25433 int
25434 main ()
25435 {
25436
25437   FILE *f = fopen ("conftest.val", "w");
25438   if (! f)
25439     return 1;
25440   if (((long int) (sizeof (void *))) < 0)
25441     {
25442       long int i = longval ();
25443       if (i != ((long int) (sizeof (void *))))
25444         return 1;
25445       fprintf (f, "%ld", i);
25446     }
25447   else
25448     {
25449       unsigned long int i = ulongval ();
25450       if (i != ((long int) (sizeof (void *))))
25451         return 1;
25452       fprintf (f, "%lu", i);
25453     }
25454   /* Do not output a trailing newline, as this causes \r\n confusion
25455      on some platforms.  */
25456   return ferror (f) || fclose (f) != 0;
25457
25458   ;
25459   return 0;
25460 }
25461 _ACEOF
25462 rm -f conftest$ac_exeext
25463 if { (ac_try="$ac_link"
25464 case "(($ac_try" in
25465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466   *) ac_try_echo=$ac_try;;
25467 esac
25468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25469 $as_echo "$ac_try_echo") >&5
25470   (eval "$ac_link") 2>&5
25471   ac_status=$?
25472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25474   { (case "(($ac_try" in
25475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25476   *) ac_try_echo=$ac_try;;
25477 esac
25478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25479 $as_echo "$ac_try_echo") >&5
25480   (eval "$ac_try") 2>&5
25481   ac_status=$?
25482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); }; }; then
25484   ac_cv_sizeof_void_p=`cat conftest.val`
25485 else
25486   $as_echo "$as_me: program exited with status $ac_status" >&5
25487 $as_echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25489
25490 ( exit $ac_status )
25491 if test "$ac_cv_type_void_p" = yes; then
25492      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25494 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
25495 See \`config.log' for more details." >&5
25496 $as_echo "$as_me: error: cannot compute sizeof (void *)
25497 See \`config.log' for more details." >&2;}
25498    { (exit 77); exit 77; }; }; }
25499    else
25500      ac_cv_sizeof_void_p=0
25501    fi
25502 fi
25503 rm -rf conftest.dSYM
25504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25505 fi
25506 rm -f conftest.val
25507 fi
25508 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
25509 $as_echo "$ac_cv_sizeof_void_p" >&6; }
25510
25511
25512
25513 cat >>confdefs.h <<_ACEOF
25514 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
25515 _ACEOF
25516
25517
25518 # The cast to long int works around a bug in the HP C Compiler
25519 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25520 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25521 # This bug is HP SR number 8606223364.
25522 { $as_echo "$as_me:$LINENO: checking size of size_t" >&5
25523 $as_echo_n "checking size of size_t... " >&6; }
25524 if test "${ac_cv_sizeof_size_t+set}" = set; then
25525   $as_echo_n "(cached) " >&6
25526 else
25527   if test "$cross_compiling" = yes; then
25528   # Depending upon the size, compute the lo and hi bounds.
25529 cat >conftest.$ac_ext <<_ACEOF
25530 /* confdefs.h.  */
25531 _ACEOF
25532 cat confdefs.h >>conftest.$ac_ext
25533 cat >>conftest.$ac_ext <<_ACEOF
25534 /* end confdefs.h.  */
25535 $ac_includes_default
25536 int
25537 main ()
25538 {
25539 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
25540 test_array [0] = 0
25541
25542   ;
25543   return 0;
25544 }
25545 _ACEOF
25546 rm -f conftest.$ac_objext
25547 if { (ac_try="$ac_compile"
25548 case "(($ac_try" in
25549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550   *) ac_try_echo=$ac_try;;
25551 esac
25552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25553 $as_echo "$ac_try_echo") >&5
25554   (eval "$ac_compile") 2>conftest.er1
25555   ac_status=$?
25556   grep -v '^ *+' conftest.er1 >conftest.err
25557   rm -f conftest.er1
25558   cat conftest.err >&5
25559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560   (exit $ac_status); } && {
25561          test -z "$ac_c_werror_flag" ||
25562          test ! -s conftest.err
25563        } && test -s conftest.$ac_objext; then
25564   ac_lo=0 ac_mid=0
25565   while :; do
25566     cat >conftest.$ac_ext <<_ACEOF
25567 /* confdefs.h.  */
25568 _ACEOF
25569 cat confdefs.h >>conftest.$ac_ext
25570 cat >>conftest.$ac_ext <<_ACEOF
25571 /* end confdefs.h.  */
25572 $ac_includes_default
25573 int
25574 main ()
25575 {
25576 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25577 test_array [0] = 0
25578
25579   ;
25580   return 0;
25581 }
25582 _ACEOF
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587   *) ac_try_echo=$ac_try;;
25588 esac
25589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25590 $as_echo "$ac_try_echo") >&5
25591   (eval "$ac_compile") 2>conftest.er1
25592   ac_status=$?
25593   grep -v '^ *+' conftest.er1 >conftest.err
25594   rm -f conftest.er1
25595   cat conftest.err >&5
25596   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597   (exit $ac_status); } && {
25598          test -z "$ac_c_werror_flag" ||
25599          test ! -s conftest.err
25600        } && test -s conftest.$ac_objext; then
25601   ac_hi=$ac_mid; break
25602 else
25603   $as_echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25605
25606         ac_lo=`expr $ac_mid + 1`
25607                         if test $ac_lo -le $ac_mid; then
25608                           ac_lo= ac_hi=
25609                           break
25610                         fi
25611                         ac_mid=`expr 2 '*' $ac_mid + 1`
25612 fi
25613
25614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25615   done
25616 else
25617   $as_echo "$as_me: failed program was:" >&5
25618 sed 's/^/| /' conftest.$ac_ext >&5
25619
25620         cat >conftest.$ac_ext <<_ACEOF
25621 /* confdefs.h.  */
25622 _ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h.  */
25626 $ac_includes_default
25627 int
25628 main ()
25629 {
25630 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
25631 test_array [0] = 0
25632
25633   ;
25634   return 0;
25635 }
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645   (eval "$ac_compile") 2>conftest.er1
25646   ac_status=$?
25647   grep -v '^ *+' conftest.er1 >conftest.err
25648   rm -f conftest.er1
25649   cat conftest.err >&5
25650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651   (exit $ac_status); } && {
25652          test -z "$ac_c_werror_flag" ||
25653          test ! -s conftest.err
25654        } && test -s conftest.$ac_objext; then
25655   ac_hi=-1 ac_mid=-1
25656   while :; do
25657     cat >conftest.$ac_ext <<_ACEOF
25658 /* confdefs.h.  */
25659 _ACEOF
25660 cat confdefs.h >>conftest.$ac_ext
25661 cat >>conftest.$ac_ext <<_ACEOF
25662 /* end confdefs.h.  */
25663 $ac_includes_default
25664 int
25665 main ()
25666 {
25667 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
25668 test_array [0] = 0
25669
25670   ;
25671   return 0;
25672 }
25673 _ACEOF
25674 rm -f conftest.$ac_objext
25675 if { (ac_try="$ac_compile"
25676 case "(($ac_try" in
25677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678   *) ac_try_echo=$ac_try;;
25679 esac
25680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25681 $as_echo "$ac_try_echo") >&5
25682   (eval "$ac_compile") 2>conftest.er1
25683   ac_status=$?
25684   grep -v '^ *+' conftest.er1 >conftest.err
25685   rm -f conftest.er1
25686   cat conftest.err >&5
25687   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688   (exit $ac_status); } && {
25689          test -z "$ac_c_werror_flag" ||
25690          test ! -s conftest.err
25691        } && test -s conftest.$ac_objext; then
25692   ac_lo=$ac_mid; break
25693 else
25694   $as_echo "$as_me: failed program was:" >&5
25695 sed 's/^/| /' conftest.$ac_ext >&5
25696
25697         ac_hi=`expr '(' $ac_mid ')' - 1`
25698                         if test $ac_mid -le $ac_hi; then
25699                           ac_lo= ac_hi=
25700                           break
25701                         fi
25702                         ac_mid=`expr 2 '*' $ac_mid`
25703 fi
25704
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25706   done
25707 else
25708   $as_echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25710
25711         ac_lo= ac_hi=
25712 fi
25713
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25715 fi
25716
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25718 # Binary search between lo and hi bounds.
25719 while test "x$ac_lo" != "x$ac_hi"; do
25720   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25721   cat >conftest.$ac_ext <<_ACEOF
25722 /* confdefs.h.  */
25723 _ACEOF
25724 cat confdefs.h >>conftest.$ac_ext
25725 cat >>conftest.$ac_ext <<_ACEOF
25726 /* end confdefs.h.  */
25727 $ac_includes_default
25728 int
25729 main ()
25730 {
25731 static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
25732 test_array [0] = 0
25733
25734   ;
25735   return 0;
25736 }
25737 _ACEOF
25738 rm -f conftest.$ac_objext
25739 if { (ac_try="$ac_compile"
25740 case "(($ac_try" in
25741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742   *) ac_try_echo=$ac_try;;
25743 esac
25744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25745 $as_echo "$ac_try_echo") >&5
25746   (eval "$ac_compile") 2>conftest.er1
25747   ac_status=$?
25748   grep -v '^ *+' conftest.er1 >conftest.err
25749   rm -f conftest.er1
25750   cat conftest.err >&5
25751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752   (exit $ac_status); } && {
25753          test -z "$ac_c_werror_flag" ||
25754          test ! -s conftest.err
25755        } && test -s conftest.$ac_objext; then
25756   ac_hi=$ac_mid
25757 else
25758   $as_echo "$as_me: failed program was:" >&5
25759 sed 's/^/| /' conftest.$ac_ext >&5
25760
25761         ac_lo=`expr '(' $ac_mid ')' + 1`
25762 fi
25763
25764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 done
25766 case $ac_lo in
25767 ?*) ac_cv_sizeof_size_t=$ac_lo;;
25768 '') if test "$ac_cv_type_size_t" = yes; then
25769      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25771 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25772 See \`config.log' for more details." >&5
25773 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25774 See \`config.log' for more details." >&2;}
25775    { (exit 77); exit 77; }; }; }
25776    else
25777      ac_cv_sizeof_size_t=0
25778    fi ;;
25779 esac
25780 else
25781   cat >conftest.$ac_ext <<_ACEOF
25782 /* confdefs.h.  */
25783 _ACEOF
25784 cat confdefs.h >>conftest.$ac_ext
25785 cat >>conftest.$ac_ext <<_ACEOF
25786 /* end confdefs.h.  */
25787 $ac_includes_default
25788 static long int longval () { return (long int) (sizeof (size_t)); }
25789 static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
25790 #include <stdio.h>
25791 #include <stdlib.h>
25792 int
25793 main ()
25794 {
25795
25796   FILE *f = fopen ("conftest.val", "w");
25797   if (! f)
25798     return 1;
25799   if (((long int) (sizeof (size_t))) < 0)
25800     {
25801       long int i = longval ();
25802       if (i != ((long int) (sizeof (size_t))))
25803         return 1;
25804       fprintf (f, "%ld", i);
25805     }
25806   else
25807     {
25808       unsigned long int i = ulongval ();
25809       if (i != ((long int) (sizeof (size_t))))
25810         return 1;
25811       fprintf (f, "%lu", i);
25812     }
25813   /* Do not output a trailing newline, as this causes \r\n confusion
25814      on some platforms.  */
25815   return ferror (f) || fclose (f) != 0;
25816
25817   ;
25818   return 0;
25819 }
25820 _ACEOF
25821 rm -f conftest$ac_exeext
25822 if { (ac_try="$ac_link"
25823 case "(($ac_try" in
25824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825   *) ac_try_echo=$ac_try;;
25826 esac
25827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25828 $as_echo "$ac_try_echo") >&5
25829   (eval "$ac_link") 2>&5
25830   ac_status=$?
25831   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25832   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25833   { (case "(($ac_try" in
25834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835   *) ac_try_echo=$ac_try;;
25836 esac
25837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25838 $as_echo "$ac_try_echo") >&5
25839   (eval "$ac_try") 2>&5
25840   ac_status=$?
25841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842   (exit $ac_status); }; }; then
25843   ac_cv_sizeof_size_t=`cat conftest.val`
25844 else
25845   $as_echo "$as_me: program exited with status $ac_status" >&5
25846 $as_echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849 ( exit $ac_status )
25850 if test "$ac_cv_type_size_t" = yes; then
25851      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25853 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
25854 See \`config.log' for more details." >&5
25855 $as_echo "$as_me: error: cannot compute sizeof (size_t)
25856 See \`config.log' for more details." >&2;}
25857    { (exit 77); exit 77; }; }; }
25858    else
25859      ac_cv_sizeof_size_t=0
25860    fi
25861 fi
25862 rm -rf conftest.dSYM
25863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25864 fi
25865 rm -f conftest.val
25866 fi
25867 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
25868 $as_echo "$ac_cv_sizeof_size_t" >&6; }
25869
25870
25871
25872 cat >>confdefs.h <<_ACEOF
25873 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25874 _ACEOF
25875
25876
25877 # The cast to long int works around a bug in the HP C Compiler
25878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25880 # This bug is HP SR number 8606223364.
25881 { $as_echo "$as_me:$LINENO: checking size of long" >&5
25882 $as_echo_n "checking size of long... " >&6; }
25883 if test "${ac_cv_sizeof_long+set}" = set; then
25884   $as_echo_n "(cached) " >&6
25885 else
25886   if test "$cross_compiling" = yes; then
25887   # Depending upon the size, compute the lo and hi bounds.
25888 cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h.  */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h.  */
25894 $ac_includes_default
25895 int
25896 main ()
25897 {
25898 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
25899 test_array [0] = 0
25900
25901   ;
25902   return 0;
25903 }
25904 _ACEOF
25905 rm -f conftest.$ac_objext
25906 if { (ac_try="$ac_compile"
25907 case "(($ac_try" in
25908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909   *) ac_try_echo=$ac_try;;
25910 esac
25911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25912 $as_echo "$ac_try_echo") >&5
25913   (eval "$ac_compile") 2>conftest.er1
25914   ac_status=$?
25915   grep -v '^ *+' conftest.er1 >conftest.err
25916   rm -f conftest.er1
25917   cat conftest.err >&5
25918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); } && {
25920          test -z "$ac_c_werror_flag" ||
25921          test ! -s conftest.err
25922        } && test -s conftest.$ac_objext; then
25923   ac_lo=0 ac_mid=0
25924   while :; do
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 $ac_includes_default
25932 int
25933 main ()
25934 {
25935 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
25936 test_array [0] = 0
25937
25938   ;
25939   return 0;
25940 }
25941 _ACEOF
25942 rm -f conftest.$ac_objext
25943 if { (ac_try="$ac_compile"
25944 case "(($ac_try" in
25945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946   *) ac_try_echo=$ac_try;;
25947 esac
25948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25949 $as_echo "$ac_try_echo") >&5
25950   (eval "$ac_compile") 2>conftest.er1
25951   ac_status=$?
25952   grep -v '^ *+' conftest.er1 >conftest.err
25953   rm -f conftest.er1
25954   cat conftest.err >&5
25955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); } && {
25957          test -z "$ac_c_werror_flag" ||
25958          test ! -s conftest.err
25959        } && test -s conftest.$ac_objext; then
25960   ac_hi=$ac_mid; break
25961 else
25962   $as_echo "$as_me: failed program was:" >&5
25963 sed 's/^/| /' conftest.$ac_ext >&5
25964
25965         ac_lo=`expr $ac_mid + 1`
25966                         if test $ac_lo -le $ac_mid; then
25967                           ac_lo= ac_hi=
25968                           break
25969                         fi
25970                         ac_mid=`expr 2 '*' $ac_mid + 1`
25971 fi
25972
25973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974   done
25975 else
25976   $as_echo "$as_me: failed program was:" >&5
25977 sed 's/^/| /' conftest.$ac_ext >&5
25978
25979         cat >conftest.$ac_ext <<_ACEOF
25980 /* confdefs.h.  */
25981 _ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h.  */
25985 $ac_includes_default
25986 int
25987 main ()
25988 {
25989 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
25990 test_array [0] = 0
25991
25992   ;
25993   return 0;
25994 }
25995 _ACEOF
25996 rm -f conftest.$ac_objext
25997 if { (ac_try="$ac_compile"
25998 case "(($ac_try" in
25999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26000   *) ac_try_echo=$ac_try;;
26001 esac
26002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26003 $as_echo "$ac_try_echo") >&5
26004   (eval "$ac_compile") 2>conftest.er1
26005   ac_status=$?
26006   grep -v '^ *+' conftest.er1 >conftest.err
26007   rm -f conftest.er1
26008   cat conftest.err >&5
26009   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); } && {
26011          test -z "$ac_c_werror_flag" ||
26012          test ! -s conftest.err
26013        } && test -s conftest.$ac_objext; then
26014   ac_hi=-1 ac_mid=-1
26015   while :; do
26016     cat >conftest.$ac_ext <<_ACEOF
26017 /* confdefs.h.  */
26018 _ACEOF
26019 cat confdefs.h >>conftest.$ac_ext
26020 cat >>conftest.$ac_ext <<_ACEOF
26021 /* end confdefs.h.  */
26022 $ac_includes_default
26023 int
26024 main ()
26025 {
26026 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26027 test_array [0] = 0
26028
26029   ;
26030   return 0;
26031 }
26032 _ACEOF
26033 rm -f conftest.$ac_objext
26034 if { (ac_try="$ac_compile"
26035 case "(($ac_try" in
26036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037   *) ac_try_echo=$ac_try;;
26038 esac
26039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26040 $as_echo "$ac_try_echo") >&5
26041   (eval "$ac_compile") 2>conftest.er1
26042   ac_status=$?
26043   grep -v '^ *+' conftest.er1 >conftest.err
26044   rm -f conftest.er1
26045   cat conftest.err >&5
26046   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047   (exit $ac_status); } && {
26048          test -z "$ac_c_werror_flag" ||
26049          test ! -s conftest.err
26050        } && test -s conftest.$ac_objext; then
26051   ac_lo=$ac_mid; break
26052 else
26053   $as_echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26055
26056         ac_hi=`expr '(' $ac_mid ')' - 1`
26057                         if test $ac_mid -le $ac_hi; then
26058                           ac_lo= ac_hi=
26059                           break
26060                         fi
26061                         ac_mid=`expr 2 '*' $ac_mid`
26062 fi
26063
26064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26065   done
26066 else
26067   $as_echo "$as_me: failed program was:" >&5
26068 sed 's/^/| /' conftest.$ac_ext >&5
26069
26070         ac_lo= ac_hi=
26071 fi
26072
26073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26074 fi
26075
26076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26077 # Binary search between lo and hi bounds.
26078 while test "x$ac_lo" != "x$ac_hi"; do
26079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26080   cat >conftest.$ac_ext <<_ACEOF
26081 /* confdefs.h.  */
26082 _ACEOF
26083 cat confdefs.h >>conftest.$ac_ext
26084 cat >>conftest.$ac_ext <<_ACEOF
26085 /* end confdefs.h.  */
26086 $ac_includes_default
26087 int
26088 main ()
26089 {
26090 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26091 test_array [0] = 0
26092
26093   ;
26094   return 0;
26095 }
26096 _ACEOF
26097 rm -f conftest.$ac_objext
26098 if { (ac_try="$ac_compile"
26099 case "(($ac_try" in
26100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26101   *) ac_try_echo=$ac_try;;
26102 esac
26103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26104 $as_echo "$ac_try_echo") >&5
26105   (eval "$ac_compile") 2>conftest.er1
26106   ac_status=$?
26107   grep -v '^ *+' conftest.er1 >conftest.err
26108   rm -f conftest.er1
26109   cat conftest.err >&5
26110   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111   (exit $ac_status); } && {
26112          test -z "$ac_c_werror_flag" ||
26113          test ! -s conftest.err
26114        } && test -s conftest.$ac_objext; then
26115   ac_hi=$ac_mid
26116 else
26117   $as_echo "$as_me: failed program was:" >&5
26118 sed 's/^/| /' conftest.$ac_ext >&5
26119
26120         ac_lo=`expr '(' $ac_mid ')' + 1`
26121 fi
26122
26123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26124 done
26125 case $ac_lo in
26126 ?*) ac_cv_sizeof_long=$ac_lo;;
26127 '') if test "$ac_cv_type_long" = yes; then
26128      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26130 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26131 See \`config.log' for more details." >&5
26132 $as_echo "$as_me: error: cannot compute sizeof (long)
26133 See \`config.log' for more details." >&2;}
26134    { (exit 77); exit 77; }; }; }
26135    else
26136      ac_cv_sizeof_long=0
26137    fi ;;
26138 esac
26139 else
26140   cat >conftest.$ac_ext <<_ACEOF
26141 /* confdefs.h.  */
26142 _ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h.  */
26146 $ac_includes_default
26147 static long int longval () { return (long int) (sizeof (long)); }
26148 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26149 #include <stdio.h>
26150 #include <stdlib.h>
26151 int
26152 main ()
26153 {
26154
26155   FILE *f = fopen ("conftest.val", "w");
26156   if (! f)
26157     return 1;
26158   if (((long int) (sizeof (long))) < 0)
26159     {
26160       long int i = longval ();
26161       if (i != ((long int) (sizeof (long))))
26162         return 1;
26163       fprintf (f, "%ld", i);
26164     }
26165   else
26166     {
26167       unsigned long int i = ulongval ();
26168       if (i != ((long int) (sizeof (long))))
26169         return 1;
26170       fprintf (f, "%lu", i);
26171     }
26172   /* Do not output a trailing newline, as this causes \r\n confusion
26173      on some platforms.  */
26174   return ferror (f) || fclose (f) != 0;
26175
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 rm -f conftest$ac_exeext
26181 if { (ac_try="$ac_link"
26182 case "(($ac_try" in
26183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26184   *) ac_try_echo=$ac_try;;
26185 esac
26186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26187 $as_echo "$ac_try_echo") >&5
26188   (eval "$ac_link") 2>&5
26189   ac_status=$?
26190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26192   { (case "(($ac_try" in
26193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26194   *) ac_try_echo=$ac_try;;
26195 esac
26196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26197 $as_echo "$ac_try_echo") >&5
26198   (eval "$ac_try") 2>&5
26199   ac_status=$?
26200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201   (exit $ac_status); }; }; then
26202   ac_cv_sizeof_long=`cat conftest.val`
26203 else
26204   $as_echo "$as_me: program exited with status $ac_status" >&5
26205 $as_echo "$as_me: failed program was:" >&5
26206 sed 's/^/| /' conftest.$ac_ext >&5
26207
26208 ( exit $ac_status )
26209 if test "$ac_cv_type_long" = yes; then
26210      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26212 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26213 See \`config.log' for more details." >&5
26214 $as_echo "$as_me: error: cannot compute sizeof (long)
26215 See \`config.log' for more details." >&2;}
26216    { (exit 77); exit 77; }; }; }
26217    else
26218      ac_cv_sizeof_long=0
26219    fi
26220 fi
26221 rm -rf conftest.dSYM
26222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26223 fi
26224 rm -f conftest.val
26225 fi
26226 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26227 $as_echo "$ac_cv_sizeof_long" >&6; }
26228
26229
26230
26231 cat >>confdefs.h <<_ACEOF
26232 #define SIZEOF_LONG $ac_cv_sizeof_long
26233 _ACEOF
26234
26235
26236
26237 # Decide whether float4 is passed by value: user-selectable, enabled by default
26238 { $as_echo "$as_me:$LINENO: checking whether to build with float4 passed by value" >&5
26239 $as_echo_n "checking whether to build with float4 passed by value... " >&6; }
26240
26241
26242 # Check whether --enable-float4-byval was given.
26243 if test "${enable_float4_byval+set}" = set; then
26244   enableval=$enable_float4_byval;
26245   case $enableval in
26246     yes)
26247
26248 cat >>confdefs.h <<\_ACEOF
26249 #define USE_FLOAT4_BYVAL 1
26250 _ACEOF
26251
26252                float4passbyval=true
26253       ;;
26254     no)
26255       float4passbyval=false
26256       ;;
26257     *)
26258       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float4-byval option" >&5
26259 $as_echo "$as_me: error: no argument expected for --enable-float4-byval option" >&2;}
26260    { (exit 1); exit 1; }; }
26261       ;;
26262   esac
26263
26264 else
26265   enable_float4_byval=yes
26266
26267 cat >>confdefs.h <<\_ACEOF
26268 #define USE_FLOAT4_BYVAL 1
26269 _ACEOF
26270
26271                float4passbyval=true
26272 fi
26273
26274
26275 { $as_echo "$as_me:$LINENO: result: $enable_float4_byval" >&5
26276 $as_echo "$enable_float4_byval" >&6; }
26277
26278 cat >>confdefs.h <<_ACEOF
26279 #define FLOAT4PASSBYVAL $float4passbyval
26280 _ACEOF
26281
26282
26283 # Decide whether float8 is passed by value.
26284 # Note: this setting also controls int8 and related types such as timestamp.
26285 # If sizeof(Datum) >= 8, this is user-selectable, enabled by default.
26286 # If not, trying to select it is an error.
26287 { $as_echo "$as_me:$LINENO: checking whether to build with float8 passed by value" >&5
26288 $as_echo_n "checking whether to build with float8 passed by value... " >&6; }
26289 if test $ac_cv_sizeof_void_p -ge 8 ; then
26290
26291
26292 # Check whether --enable-float8-byval was given.
26293 if test "${enable_float8_byval+set}" = set; then
26294   enableval=$enable_float8_byval;
26295   case $enableval in
26296     yes)
26297       :
26298       ;;
26299     no)
26300       :
26301       ;;
26302     *)
26303       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26304 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26305    { (exit 1); exit 1; }; }
26306       ;;
26307   esac
26308
26309 else
26310   enable_float8_byval=yes
26311
26312 fi
26313
26314
26315 else
26316
26317
26318 # Check whether --enable-float8-byval was given.
26319 if test "${enable_float8_byval+set}" = set; then
26320   enableval=$enable_float8_byval;
26321   case $enableval in
26322     yes)
26323       :
26324       ;;
26325     no)
26326       :
26327       ;;
26328     *)
26329       { { $as_echo "$as_me:$LINENO: error: no argument expected for --enable-float8-byval option" >&5
26330 $as_echo "$as_me: error: no argument expected for --enable-float8-byval option" >&2;}
26331    { (exit 1); exit 1; }; }
26332       ;;
26333   esac
26334
26335 else
26336   enable_float8_byval=no
26337
26338 fi
26339
26340
26341   if test "$enable_float8_byval" = yes ; then
26342     { { $as_echo "$as_me:$LINENO: error: --enable-float8-byval is not supported on 32-bit platforms." >&5
26343 $as_echo "$as_me: error: --enable-float8-byval is not supported on 32-bit platforms." >&2;}
26344    { (exit 1); exit 1; }; }
26345   fi
26346 fi
26347 if test "$enable_float8_byval" = yes ; then
26348
26349 cat >>confdefs.h <<\_ACEOF
26350 #define USE_FLOAT8_BYVAL 1
26351 _ACEOF
26352
26353   float8passbyval=true
26354 else
26355   float8passbyval=false
26356 fi
26357 { $as_echo "$as_me:$LINENO: result: $enable_float8_byval" >&5
26358 $as_echo "$enable_float8_byval" >&6; }
26359
26360 cat >>confdefs.h <<_ACEOF
26361 #define FLOAT8PASSBYVAL $float8passbyval
26362 _ACEOF
26363
26364
26365 # Determine memory alignment requirements for the basic C data types.
26366
26367 # The cast to long int works around a bug in the HP C Compiler,
26368 # see AC_CHECK_SIZEOF for more information.
26369 { $as_echo "$as_me:$LINENO: checking alignment of short" >&5
26370 $as_echo_n "checking alignment of short... " >&6; }
26371 if test "${ac_cv_alignof_short+set}" = set; then
26372   $as_echo_n "(cached) " >&6
26373 else
26374   if test "$cross_compiling" = yes; then
26375   # Depending upon the size, compute the lo and hi bounds.
26376 cat >conftest.$ac_ext <<_ACEOF
26377 /* confdefs.h.  */
26378 _ACEOF
26379 cat confdefs.h >>conftest.$ac_ext
26380 cat >>conftest.$ac_ext <<_ACEOF
26381 /* end confdefs.h.  */
26382 $ac_includes_default
26383 #ifndef offsetof
26384 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26385 #endif
26386 typedef struct { char x; short y; } ac__type_alignof_;
26387 int
26388 main ()
26389 {
26390 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26391 test_array [0] = 0
26392
26393   ;
26394   return 0;
26395 }
26396 _ACEOF
26397 rm -f conftest.$ac_objext
26398 if { (ac_try="$ac_compile"
26399 case "(($ac_try" in
26400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26401   *) ac_try_echo=$ac_try;;
26402 esac
26403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26404 $as_echo "$ac_try_echo") >&5
26405   (eval "$ac_compile") 2>conftest.er1
26406   ac_status=$?
26407   grep -v '^ *+' conftest.er1 >conftest.err
26408   rm -f conftest.er1
26409   cat conftest.err >&5
26410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); } && {
26412          test -z "$ac_c_werror_flag" ||
26413          test ! -s conftest.err
26414        } && test -s conftest.$ac_objext; then
26415   ac_lo=0 ac_mid=0
26416   while :; do
26417     cat >conftest.$ac_ext <<_ACEOF
26418 /* confdefs.h.  */
26419 _ACEOF
26420 cat confdefs.h >>conftest.$ac_ext
26421 cat >>conftest.$ac_ext <<_ACEOF
26422 /* end confdefs.h.  */
26423 $ac_includes_default
26424 #ifndef offsetof
26425 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26426 #endif
26427 typedef struct { char x; short y; } ac__type_alignof_;
26428 int
26429 main ()
26430 {
26431 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26432 test_array [0] = 0
26433
26434   ;
26435   return 0;
26436 }
26437 _ACEOF
26438 rm -f conftest.$ac_objext
26439 if { (ac_try="$ac_compile"
26440 case "(($ac_try" in
26441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26442   *) ac_try_echo=$ac_try;;
26443 esac
26444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26445 $as_echo "$ac_try_echo") >&5
26446   (eval "$ac_compile") 2>conftest.er1
26447   ac_status=$?
26448   grep -v '^ *+' conftest.er1 >conftest.err
26449   rm -f conftest.er1
26450   cat conftest.err >&5
26451   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452   (exit $ac_status); } && {
26453          test -z "$ac_c_werror_flag" ||
26454          test ! -s conftest.err
26455        } && test -s conftest.$ac_objext; then
26456   ac_hi=$ac_mid; break
26457 else
26458   $as_echo "$as_me: failed program was:" >&5
26459 sed 's/^/| /' conftest.$ac_ext >&5
26460
26461         ac_lo=`expr $ac_mid + 1`
26462                         if test $ac_lo -le $ac_mid; then
26463                           ac_lo= ac_hi=
26464                           break
26465                         fi
26466                         ac_mid=`expr 2 '*' $ac_mid + 1`
26467 fi
26468
26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26470   done
26471 else
26472   $as_echo "$as_me: failed program was:" >&5
26473 sed 's/^/| /' conftest.$ac_ext >&5
26474
26475         cat >conftest.$ac_ext <<_ACEOF
26476 /* confdefs.h.  */
26477 _ACEOF
26478 cat confdefs.h >>conftest.$ac_ext
26479 cat >>conftest.$ac_ext <<_ACEOF
26480 /* end confdefs.h.  */
26481 $ac_includes_default
26482 #ifndef offsetof
26483 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26484 #endif
26485 typedef struct { char x; short y; } ac__type_alignof_;
26486 int
26487 main ()
26488 {
26489 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26490 test_array [0] = 0
26491
26492   ;
26493   return 0;
26494 }
26495 _ACEOF
26496 rm -f conftest.$ac_objext
26497 if { (ac_try="$ac_compile"
26498 case "(($ac_try" in
26499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26500   *) ac_try_echo=$ac_try;;
26501 esac
26502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26503 $as_echo "$ac_try_echo") >&5
26504   (eval "$ac_compile") 2>conftest.er1
26505   ac_status=$?
26506   grep -v '^ *+' conftest.er1 >conftest.err
26507   rm -f conftest.er1
26508   cat conftest.err >&5
26509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); } && {
26511          test -z "$ac_c_werror_flag" ||
26512          test ! -s conftest.err
26513        } && test -s conftest.$ac_objext; then
26514   ac_hi=-1 ac_mid=-1
26515   while :; do
26516     cat >conftest.$ac_ext <<_ACEOF
26517 /* confdefs.h.  */
26518 _ACEOF
26519 cat confdefs.h >>conftest.$ac_ext
26520 cat >>conftest.$ac_ext <<_ACEOF
26521 /* end confdefs.h.  */
26522 $ac_includes_default
26523 #ifndef offsetof
26524 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26525 #endif
26526 typedef struct { char x; short y; } ac__type_alignof_;
26527 int
26528 main ()
26529 {
26530 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26531 test_array [0] = 0
26532
26533   ;
26534   return 0;
26535 }
26536 _ACEOF
26537 rm -f conftest.$ac_objext
26538 if { (ac_try="$ac_compile"
26539 case "(($ac_try" in
26540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26541   *) ac_try_echo=$ac_try;;
26542 esac
26543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26544 $as_echo "$ac_try_echo") >&5
26545   (eval "$ac_compile") 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } && {
26552          test -z "$ac_c_werror_flag" ||
26553          test ! -s conftest.err
26554        } && test -s conftest.$ac_objext; then
26555   ac_lo=$ac_mid; break
26556 else
26557   $as_echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560         ac_hi=`expr '(' $ac_mid ')' - 1`
26561                         if test $ac_mid -le $ac_hi; then
26562                           ac_lo= ac_hi=
26563                           break
26564                         fi
26565                         ac_mid=`expr 2 '*' $ac_mid`
26566 fi
26567
26568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26569   done
26570 else
26571   $as_echo "$as_me: failed program was:" >&5
26572 sed 's/^/| /' conftest.$ac_ext >&5
26573
26574         ac_lo= ac_hi=
26575 fi
26576
26577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26578 fi
26579
26580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26581 # Binary search between lo and hi bounds.
26582 while test "x$ac_lo" != "x$ac_hi"; do
26583   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26584   cat >conftest.$ac_ext <<_ACEOF
26585 /* confdefs.h.  */
26586 _ACEOF
26587 cat confdefs.h >>conftest.$ac_ext
26588 cat >>conftest.$ac_ext <<_ACEOF
26589 /* end confdefs.h.  */
26590 $ac_includes_default
26591 #ifndef offsetof
26592 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26593 #endif
26594 typedef struct { char x; short y; } ac__type_alignof_;
26595 int
26596 main ()
26597 {
26598 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26599 test_array [0] = 0
26600
26601   ;
26602   return 0;
26603 }
26604 _ACEOF
26605 rm -f conftest.$ac_objext
26606 if { (ac_try="$ac_compile"
26607 case "(($ac_try" in
26608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26609   *) ac_try_echo=$ac_try;;
26610 esac
26611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26612 $as_echo "$ac_try_echo") >&5
26613   (eval "$ac_compile") 2>conftest.er1
26614   ac_status=$?
26615   grep -v '^ *+' conftest.er1 >conftest.err
26616   rm -f conftest.er1
26617   cat conftest.err >&5
26618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619   (exit $ac_status); } && {
26620          test -z "$ac_c_werror_flag" ||
26621          test ! -s conftest.err
26622        } && test -s conftest.$ac_objext; then
26623   ac_hi=$ac_mid
26624 else
26625   $as_echo "$as_me: failed program was:" >&5
26626 sed 's/^/| /' conftest.$ac_ext >&5
26627
26628         ac_lo=`expr '(' $ac_mid ')' + 1`
26629 fi
26630
26631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26632 done
26633 case $ac_lo in
26634 ?*) ac_cv_alignof_short=$ac_lo;;
26635 '') if test "$ac_cv_type_short" = yes; then
26636      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26638 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26639 See \`config.log' for more details." >&5
26640 $as_echo "$as_me: error: cannot compute alignment of short
26641 See \`config.log' for more details." >&2;}
26642    { (exit 77); exit 77; }; }; }
26643    else
26644      ac_cv_alignof_short=0
26645    fi ;;
26646 esac
26647 else
26648   cat >conftest.$ac_ext <<_ACEOF
26649 /* confdefs.h.  */
26650 _ACEOF
26651 cat confdefs.h >>conftest.$ac_ext
26652 cat >>conftest.$ac_ext <<_ACEOF
26653 /* end confdefs.h.  */
26654 $ac_includes_default
26655 #ifndef offsetof
26656 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26657 #endif
26658 typedef struct { char x; short y; } ac__type_alignof_;
26659 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
26660 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
26661 #include <stdio.h>
26662 #include <stdlib.h>
26663 int
26664 main ()
26665 {
26666
26667   FILE *f = fopen ("conftest.val", "w");
26668   if (! f)
26669     return 1;
26670   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
26671     {
26672       long int i = longval ();
26673       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26674         return 1;
26675       fprintf (f, "%ld", i);
26676     }
26677   else
26678     {
26679       unsigned long int i = ulongval ();
26680       if (i != ((long int) offsetof (ac__type_alignof_, y)))
26681         return 1;
26682       fprintf (f, "%lu", i);
26683     }
26684   /* Do not output a trailing newline, as this causes \r\n confusion
26685      on some platforms.  */
26686   return ferror (f) || fclose (f) != 0;
26687
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 rm -f conftest$ac_exeext
26693 if { (ac_try="$ac_link"
26694 case "(($ac_try" in
26695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26696   *) ac_try_echo=$ac_try;;
26697 esac
26698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26699 $as_echo "$ac_try_echo") >&5
26700   (eval "$ac_link") 2>&5
26701   ac_status=$?
26702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26704   { (case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26709 $as_echo "$ac_try_echo") >&5
26710   (eval "$ac_try") 2>&5
26711   ac_status=$?
26712   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713   (exit $ac_status); }; }; then
26714   ac_cv_alignof_short=`cat conftest.val`
26715 else
26716   $as_echo "$as_me: program exited with status $ac_status" >&5
26717 $as_echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26719
26720 ( exit $ac_status )
26721 if test "$ac_cv_type_short" = yes; then
26722      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26724 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of short
26725 See \`config.log' for more details." >&5
26726 $as_echo "$as_me: error: cannot compute alignment of short
26727 See \`config.log' for more details." >&2;}
26728    { (exit 77); exit 77; }; }; }
26729    else
26730      ac_cv_alignof_short=0
26731    fi
26732 fi
26733 rm -rf conftest.dSYM
26734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26735 fi
26736 rm -f conftest.val
26737 fi
26738 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_short" >&5
26739 $as_echo "$ac_cv_alignof_short" >&6; }
26740
26741
26742
26743 cat >>confdefs.h <<_ACEOF
26744 #define ALIGNOF_SHORT $ac_cv_alignof_short
26745 _ACEOF
26746
26747
26748 # The cast to long int works around a bug in the HP C Compiler,
26749 # see AC_CHECK_SIZEOF for more information.
26750 { $as_echo "$as_me:$LINENO: checking alignment of int" >&5
26751 $as_echo_n "checking alignment of int... " >&6; }
26752 if test "${ac_cv_alignof_int+set}" = set; then
26753   $as_echo_n "(cached) " >&6
26754 else
26755   if test "$cross_compiling" = yes; then
26756   # Depending upon the size, compute the lo and hi bounds.
26757 cat >conftest.$ac_ext <<_ACEOF
26758 /* confdefs.h.  */
26759 _ACEOF
26760 cat confdefs.h >>conftest.$ac_ext
26761 cat >>conftest.$ac_ext <<_ACEOF
26762 /* end confdefs.h.  */
26763 $ac_includes_default
26764 #ifndef offsetof
26765 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26766 #endif
26767 typedef struct { char x; int y; } ac__type_alignof_;
26768 int
26769 main ()
26770 {
26771 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
26772 test_array [0] = 0
26773
26774   ;
26775   return 0;
26776 }
26777 _ACEOF
26778 rm -f conftest.$ac_objext
26779 if { (ac_try="$ac_compile"
26780 case "(($ac_try" in
26781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782   *) ac_try_echo=$ac_try;;
26783 esac
26784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26785 $as_echo "$ac_try_echo") >&5
26786   (eval "$ac_compile") 2>conftest.er1
26787   ac_status=$?
26788   grep -v '^ *+' conftest.er1 >conftest.err
26789   rm -f conftest.er1
26790   cat conftest.err >&5
26791   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792   (exit $ac_status); } && {
26793          test -z "$ac_c_werror_flag" ||
26794          test ! -s conftest.err
26795        } && test -s conftest.$ac_objext; then
26796   ac_lo=0 ac_mid=0
26797   while :; do
26798     cat >conftest.$ac_ext <<_ACEOF
26799 /* confdefs.h.  */
26800 _ACEOF
26801 cat confdefs.h >>conftest.$ac_ext
26802 cat >>conftest.$ac_ext <<_ACEOF
26803 /* end confdefs.h.  */
26804 $ac_includes_default
26805 #ifndef offsetof
26806 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26807 #endif
26808 typedef struct { char x; int y; } ac__type_alignof_;
26809 int
26810 main ()
26811 {
26812 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26813 test_array [0] = 0
26814
26815   ;
26816   return 0;
26817 }
26818 _ACEOF
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823   *) ac_try_echo=$ac_try;;
26824 esac
26825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26826 $as_echo "$ac_try_echo") >&5
26827   (eval "$ac_compile") 2>conftest.er1
26828   ac_status=$?
26829   grep -v '^ *+' conftest.er1 >conftest.err
26830   rm -f conftest.er1
26831   cat conftest.err >&5
26832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833   (exit $ac_status); } && {
26834          test -z "$ac_c_werror_flag" ||
26835          test ! -s conftest.err
26836        } && test -s conftest.$ac_objext; then
26837   ac_hi=$ac_mid; break
26838 else
26839   $as_echo "$as_me: failed program was:" >&5
26840 sed 's/^/| /' conftest.$ac_ext >&5
26841
26842         ac_lo=`expr $ac_mid + 1`
26843                         if test $ac_lo -le $ac_mid; then
26844                           ac_lo= ac_hi=
26845                           break
26846                         fi
26847                         ac_mid=`expr 2 '*' $ac_mid + 1`
26848 fi
26849
26850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26851   done
26852 else
26853   $as_echo "$as_me: failed program was:" >&5
26854 sed 's/^/| /' conftest.$ac_ext >&5
26855
26856         cat >conftest.$ac_ext <<_ACEOF
26857 /* confdefs.h.  */
26858 _ACEOF
26859 cat confdefs.h >>conftest.$ac_ext
26860 cat >>conftest.$ac_ext <<_ACEOF
26861 /* end confdefs.h.  */
26862 $ac_includes_default
26863 #ifndef offsetof
26864 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26865 #endif
26866 typedef struct { char x; int y; } ac__type_alignof_;
26867 int
26868 main ()
26869 {
26870 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
26871 test_array [0] = 0
26872
26873   ;
26874   return 0;
26875 }
26876 _ACEOF
26877 rm -f conftest.$ac_objext
26878 if { (ac_try="$ac_compile"
26879 case "(($ac_try" in
26880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26881   *) ac_try_echo=$ac_try;;
26882 esac
26883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26884 $as_echo "$ac_try_echo") >&5
26885   (eval "$ac_compile") 2>conftest.er1
26886   ac_status=$?
26887   grep -v '^ *+' conftest.er1 >conftest.err
26888   rm -f conftest.er1
26889   cat conftest.err >&5
26890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891   (exit $ac_status); } && {
26892          test -z "$ac_c_werror_flag" ||
26893          test ! -s conftest.err
26894        } && test -s conftest.$ac_objext; then
26895   ac_hi=-1 ac_mid=-1
26896   while :; do
26897     cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h.  */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h.  */
26903 $ac_includes_default
26904 #ifndef offsetof
26905 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26906 #endif
26907 typedef struct { char x; int y; } ac__type_alignof_;
26908 int
26909 main ()
26910 {
26911 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
26912 test_array [0] = 0
26913
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 rm -f conftest.$ac_objext
26919 if { (ac_try="$ac_compile"
26920 case "(($ac_try" in
26921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922   *) ac_try_echo=$ac_try;;
26923 esac
26924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26925 $as_echo "$ac_try_echo") >&5
26926   (eval "$ac_compile") 2>conftest.er1
26927   ac_status=$?
26928   grep -v '^ *+' conftest.er1 >conftest.err
26929   rm -f conftest.er1
26930   cat conftest.err >&5
26931   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); } && {
26933          test -z "$ac_c_werror_flag" ||
26934          test ! -s conftest.err
26935        } && test -s conftest.$ac_objext; then
26936   ac_lo=$ac_mid; break
26937 else
26938   $as_echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26940
26941         ac_hi=`expr '(' $ac_mid ')' - 1`
26942                         if test $ac_mid -le $ac_hi; then
26943                           ac_lo= ac_hi=
26944                           break
26945                         fi
26946                         ac_mid=`expr 2 '*' $ac_mid`
26947 fi
26948
26949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26950   done
26951 else
26952   $as_echo "$as_me: failed program was:" >&5
26953 sed 's/^/| /' conftest.$ac_ext >&5
26954
26955         ac_lo= ac_hi=
26956 fi
26957
26958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26959 fi
26960
26961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26962 # Binary search between lo and hi bounds.
26963 while test "x$ac_lo" != "x$ac_hi"; do
26964   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26965   cat >conftest.$ac_ext <<_ACEOF
26966 /* confdefs.h.  */
26967 _ACEOF
26968 cat confdefs.h >>conftest.$ac_ext
26969 cat >>conftest.$ac_ext <<_ACEOF
26970 /* end confdefs.h.  */
26971 $ac_includes_default
26972 #ifndef offsetof
26973 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26974 #endif
26975 typedef struct { char x; int y; } ac__type_alignof_;
26976 int
26977 main ()
26978 {
26979 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
26980 test_array [0] = 0
26981
26982   ;
26983   return 0;
26984 }
26985 _ACEOF
26986 rm -f conftest.$ac_objext
26987 if { (ac_try="$ac_compile"
26988 case "(($ac_try" in
26989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26990   *) ac_try_echo=$ac_try;;
26991 esac
26992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26993 $as_echo "$ac_try_echo") >&5
26994   (eval "$ac_compile") 2>conftest.er1
26995   ac_status=$?
26996   grep -v '^ *+' conftest.er1 >conftest.err
26997   rm -f conftest.er1
26998   cat conftest.err >&5
26999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); } && {
27001          test -z "$ac_c_werror_flag" ||
27002          test ! -s conftest.err
27003        } && test -s conftest.$ac_objext; then
27004   ac_hi=$ac_mid
27005 else
27006   $as_echo "$as_me: failed program was:" >&5
27007 sed 's/^/| /' conftest.$ac_ext >&5
27008
27009         ac_lo=`expr '(' $ac_mid ')' + 1`
27010 fi
27011
27012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27013 done
27014 case $ac_lo in
27015 ?*) ac_cv_alignof_int=$ac_lo;;
27016 '') if test "$ac_cv_type_int" = yes; then
27017      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27019 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27020 See \`config.log' for more details." >&5
27021 $as_echo "$as_me: error: cannot compute alignment of int
27022 See \`config.log' for more details." >&2;}
27023    { (exit 77); exit 77; }; }; }
27024    else
27025      ac_cv_alignof_int=0
27026    fi ;;
27027 esac
27028 else
27029   cat >conftest.$ac_ext <<_ACEOF
27030 /* confdefs.h.  */
27031 _ACEOF
27032 cat confdefs.h >>conftest.$ac_ext
27033 cat >>conftest.$ac_ext <<_ACEOF
27034 /* end confdefs.h.  */
27035 $ac_includes_default
27036 #ifndef offsetof
27037 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27038 #endif
27039 typedef struct { char x; int y; } ac__type_alignof_;
27040 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27041 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27042 #include <stdio.h>
27043 #include <stdlib.h>
27044 int
27045 main ()
27046 {
27047
27048   FILE *f = fopen ("conftest.val", "w");
27049   if (! f)
27050     return 1;
27051   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27052     {
27053       long int i = longval ();
27054       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27055         return 1;
27056       fprintf (f, "%ld", i);
27057     }
27058   else
27059     {
27060       unsigned long int i = ulongval ();
27061       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27062         return 1;
27063       fprintf (f, "%lu", i);
27064     }
27065   /* Do not output a trailing newline, as this causes \r\n confusion
27066      on some platforms.  */
27067   return ferror (f) || fclose (f) != 0;
27068
27069   ;
27070   return 0;
27071 }
27072 _ACEOF
27073 rm -f conftest$ac_exeext
27074 if { (ac_try="$ac_link"
27075 case "(($ac_try" in
27076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27077   *) ac_try_echo=$ac_try;;
27078 esac
27079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27080 $as_echo "$ac_try_echo") >&5
27081   (eval "$ac_link") 2>&5
27082   ac_status=$?
27083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27085   { (case "(($ac_try" in
27086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27087   *) ac_try_echo=$ac_try;;
27088 esac
27089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27090 $as_echo "$ac_try_echo") >&5
27091   (eval "$ac_try") 2>&5
27092   ac_status=$?
27093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094   (exit $ac_status); }; }; then
27095   ac_cv_alignof_int=`cat conftest.val`
27096 else
27097   $as_echo "$as_me: program exited with status $ac_status" >&5
27098 $as_echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.$ac_ext >&5
27100
27101 ( exit $ac_status )
27102 if test "$ac_cv_type_int" = yes; then
27103      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27105 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of int
27106 See \`config.log' for more details." >&5
27107 $as_echo "$as_me: error: cannot compute alignment of int
27108 See \`config.log' for more details." >&2;}
27109    { (exit 77); exit 77; }; }; }
27110    else
27111      ac_cv_alignof_int=0
27112    fi
27113 fi
27114 rm -rf conftest.dSYM
27115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27116 fi
27117 rm -f conftest.val
27118 fi
27119 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_int" >&5
27120 $as_echo "$ac_cv_alignof_int" >&6; }
27121
27122
27123
27124 cat >>confdefs.h <<_ACEOF
27125 #define ALIGNOF_INT $ac_cv_alignof_int
27126 _ACEOF
27127
27128
27129 # The cast to long int works around a bug in the HP C Compiler,
27130 # see AC_CHECK_SIZEOF for more information.
27131 { $as_echo "$as_me:$LINENO: checking alignment of long" >&5
27132 $as_echo_n "checking alignment of long... " >&6; }
27133 if test "${ac_cv_alignof_long+set}" = set; then
27134   $as_echo_n "(cached) " >&6
27135 else
27136   if test "$cross_compiling" = yes; then
27137   # Depending upon the size, compute the lo and hi bounds.
27138 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h.  */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h.  */
27144 $ac_includes_default
27145 #ifndef offsetof
27146 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27147 #endif
27148 typedef struct { char x; long y; } ac__type_alignof_;
27149 int
27150 main ()
27151 {
27152 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27153 test_array [0] = 0
27154
27155   ;
27156   return 0;
27157 }
27158 _ACEOF
27159 rm -f conftest.$ac_objext
27160 if { (ac_try="$ac_compile"
27161 case "(($ac_try" in
27162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27163   *) ac_try_echo=$ac_try;;
27164 esac
27165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27166 $as_echo "$ac_try_echo") >&5
27167   (eval "$ac_compile") 2>conftest.er1
27168   ac_status=$?
27169   grep -v '^ *+' conftest.er1 >conftest.err
27170   rm -f conftest.er1
27171   cat conftest.err >&5
27172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); } && {
27174          test -z "$ac_c_werror_flag" ||
27175          test ! -s conftest.err
27176        } && test -s conftest.$ac_objext; then
27177   ac_lo=0 ac_mid=0
27178   while :; do
27179     cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185 $ac_includes_default
27186 #ifndef offsetof
27187 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27188 #endif
27189 typedef struct { char x; long y; } ac__type_alignof_;
27190 int
27191 main ()
27192 {
27193 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27194 test_array [0] = 0
27195
27196   ;
27197   return 0;
27198 }
27199 _ACEOF
27200 rm -f conftest.$ac_objext
27201 if { (ac_try="$ac_compile"
27202 case "(($ac_try" in
27203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27204   *) ac_try_echo=$ac_try;;
27205 esac
27206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27207 $as_echo "$ac_try_echo") >&5
27208   (eval "$ac_compile") 2>conftest.er1
27209   ac_status=$?
27210   grep -v '^ *+' conftest.er1 >conftest.err
27211   rm -f conftest.er1
27212   cat conftest.err >&5
27213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214   (exit $ac_status); } && {
27215          test -z "$ac_c_werror_flag" ||
27216          test ! -s conftest.err
27217        } && test -s conftest.$ac_objext; then
27218   ac_hi=$ac_mid; break
27219 else
27220   $as_echo "$as_me: failed program was:" >&5
27221 sed 's/^/| /' conftest.$ac_ext >&5
27222
27223         ac_lo=`expr $ac_mid + 1`
27224                         if test $ac_lo -le $ac_mid; then
27225                           ac_lo= ac_hi=
27226                           break
27227                         fi
27228                         ac_mid=`expr 2 '*' $ac_mid + 1`
27229 fi
27230
27231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27232   done
27233 else
27234   $as_echo "$as_me: failed program was:" >&5
27235 sed 's/^/| /' conftest.$ac_ext >&5
27236
27237         cat >conftest.$ac_ext <<_ACEOF
27238 /* confdefs.h.  */
27239 _ACEOF
27240 cat confdefs.h >>conftest.$ac_ext
27241 cat >>conftest.$ac_ext <<_ACEOF
27242 /* end confdefs.h.  */
27243 $ac_includes_default
27244 #ifndef offsetof
27245 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27246 #endif
27247 typedef struct { char x; long y; } ac__type_alignof_;
27248 int
27249 main ()
27250 {
27251 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27252 test_array [0] = 0
27253
27254   ;
27255   return 0;
27256 }
27257 _ACEOF
27258 rm -f conftest.$ac_objext
27259 if { (ac_try="$ac_compile"
27260 case "(($ac_try" in
27261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27262   *) ac_try_echo=$ac_try;;
27263 esac
27264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27265 $as_echo "$ac_try_echo") >&5
27266   (eval "$ac_compile") 2>conftest.er1
27267   ac_status=$?
27268   grep -v '^ *+' conftest.er1 >conftest.err
27269   rm -f conftest.er1
27270   cat conftest.err >&5
27271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27272   (exit $ac_status); } && {
27273          test -z "$ac_c_werror_flag" ||
27274          test ! -s conftest.err
27275        } && test -s conftest.$ac_objext; then
27276   ac_hi=-1 ac_mid=-1
27277   while :; do
27278     cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284 $ac_includes_default
27285 #ifndef offsetof
27286 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27287 #endif
27288 typedef struct { char x; long y; } ac__type_alignof_;
27289 int
27290 main ()
27291 {
27292 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27293 test_array [0] = 0
27294
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 rm -f conftest.$ac_objext
27300 if { (ac_try="$ac_compile"
27301 case "(($ac_try" in
27302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27303   *) ac_try_echo=$ac_try;;
27304 esac
27305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27306 $as_echo "$ac_try_echo") >&5
27307   (eval "$ac_compile") 2>conftest.er1
27308   ac_status=$?
27309   grep -v '^ *+' conftest.er1 >conftest.err
27310   rm -f conftest.er1
27311   cat conftest.err >&5
27312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27313   (exit $ac_status); } && {
27314          test -z "$ac_c_werror_flag" ||
27315          test ! -s conftest.err
27316        } && test -s conftest.$ac_objext; then
27317   ac_lo=$ac_mid; break
27318 else
27319   $as_echo "$as_me: failed program was:" >&5
27320 sed 's/^/| /' conftest.$ac_ext >&5
27321
27322         ac_hi=`expr '(' $ac_mid ')' - 1`
27323                         if test $ac_mid -le $ac_hi; then
27324                           ac_lo= ac_hi=
27325                           break
27326                         fi
27327                         ac_mid=`expr 2 '*' $ac_mid`
27328 fi
27329
27330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27331   done
27332 else
27333   $as_echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336         ac_lo= ac_hi=
27337 fi
27338
27339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27340 fi
27341
27342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27343 # Binary search between lo and hi bounds.
27344 while test "x$ac_lo" != "x$ac_hi"; do
27345   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27346   cat >conftest.$ac_ext <<_ACEOF
27347 /* confdefs.h.  */
27348 _ACEOF
27349 cat confdefs.h >>conftest.$ac_ext
27350 cat >>conftest.$ac_ext <<_ACEOF
27351 /* end confdefs.h.  */
27352 $ac_includes_default
27353 #ifndef offsetof
27354 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27355 #endif
27356 typedef struct { char x; long y; } ac__type_alignof_;
27357 int
27358 main ()
27359 {
27360 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27361 test_array [0] = 0
27362
27363   ;
27364   return 0;
27365 }
27366 _ACEOF
27367 rm -f conftest.$ac_objext
27368 if { (ac_try="$ac_compile"
27369 case "(($ac_try" in
27370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27371   *) ac_try_echo=$ac_try;;
27372 esac
27373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27374 $as_echo "$ac_try_echo") >&5
27375   (eval "$ac_compile") 2>conftest.er1
27376   ac_status=$?
27377   grep -v '^ *+' conftest.er1 >conftest.err
27378   rm -f conftest.er1
27379   cat conftest.err >&5
27380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381   (exit $ac_status); } && {
27382          test -z "$ac_c_werror_flag" ||
27383          test ! -s conftest.err
27384        } && test -s conftest.$ac_objext; then
27385   ac_hi=$ac_mid
27386 else
27387   $as_echo "$as_me: failed program was:" >&5
27388 sed 's/^/| /' conftest.$ac_ext >&5
27389
27390         ac_lo=`expr '(' $ac_mid ')' + 1`
27391 fi
27392
27393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27394 done
27395 case $ac_lo in
27396 ?*) ac_cv_alignof_long=$ac_lo;;
27397 '') if test "$ac_cv_type_long" = yes; then
27398      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27400 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27401 See \`config.log' for more details." >&5
27402 $as_echo "$as_me: error: cannot compute alignment of long
27403 See \`config.log' for more details." >&2;}
27404    { (exit 77); exit 77; }; }; }
27405    else
27406      ac_cv_alignof_long=0
27407    fi ;;
27408 esac
27409 else
27410   cat >conftest.$ac_ext <<_ACEOF
27411 /* confdefs.h.  */
27412 _ACEOF
27413 cat confdefs.h >>conftest.$ac_ext
27414 cat >>conftest.$ac_ext <<_ACEOF
27415 /* end confdefs.h.  */
27416 $ac_includes_default
27417 #ifndef offsetof
27418 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27419 #endif
27420 typedef struct { char x; long y; } ac__type_alignof_;
27421 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27422 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27423 #include <stdio.h>
27424 #include <stdlib.h>
27425 int
27426 main ()
27427 {
27428
27429   FILE *f = fopen ("conftest.val", "w");
27430   if (! f)
27431     return 1;
27432   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27433     {
27434       long int i = longval ();
27435       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27436         return 1;
27437       fprintf (f, "%ld", i);
27438     }
27439   else
27440     {
27441       unsigned long int i = ulongval ();
27442       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27443         return 1;
27444       fprintf (f, "%lu", i);
27445     }
27446   /* Do not output a trailing newline, as this causes \r\n confusion
27447      on some platforms.  */
27448   return ferror (f) || fclose (f) != 0;
27449
27450   ;
27451   return 0;
27452 }
27453 _ACEOF
27454 rm -f conftest$ac_exeext
27455 if { (ac_try="$ac_link"
27456 case "(($ac_try" in
27457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27458   *) ac_try_echo=$ac_try;;
27459 esac
27460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27461 $as_echo "$ac_try_echo") >&5
27462   (eval "$ac_link") 2>&5
27463   ac_status=$?
27464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27466   { (case "(($ac_try" in
27467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27468   *) ac_try_echo=$ac_try;;
27469 esac
27470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27471 $as_echo "$ac_try_echo") >&5
27472   (eval "$ac_try") 2>&5
27473   ac_status=$?
27474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27475   (exit $ac_status); }; }; then
27476   ac_cv_alignof_long=`cat conftest.val`
27477 else
27478   $as_echo "$as_me: program exited with status $ac_status" >&5
27479 $as_echo "$as_me: failed program was:" >&5
27480 sed 's/^/| /' conftest.$ac_ext >&5
27481
27482 ( exit $ac_status )
27483 if test "$ac_cv_type_long" = yes; then
27484      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27486 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long
27487 See \`config.log' for more details." >&5
27488 $as_echo "$as_me: error: cannot compute alignment of long
27489 See \`config.log' for more details." >&2;}
27490    { (exit 77); exit 77; }; }; }
27491    else
27492      ac_cv_alignof_long=0
27493    fi
27494 fi
27495 rm -rf conftest.dSYM
27496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27497 fi
27498 rm -f conftest.val
27499 fi
27500 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long" >&5
27501 $as_echo "$ac_cv_alignof_long" >&6; }
27502
27503
27504
27505 cat >>confdefs.h <<_ACEOF
27506 #define ALIGNOF_LONG $ac_cv_alignof_long
27507 _ACEOF
27508
27509
27510 if test x"$HAVE_LONG_LONG_INT_64" = x"yes" ; then
27511   # The cast to long int works around a bug in the HP C Compiler,
27512 # see AC_CHECK_SIZEOF for more information.
27513 { $as_echo "$as_me:$LINENO: checking alignment of long long int" >&5
27514 $as_echo_n "checking alignment of long long int... " >&6; }
27515 if test "${ac_cv_alignof_long_long_int+set}" = set; then
27516   $as_echo_n "(cached) " >&6
27517 else
27518   if test "$cross_compiling" = yes; then
27519   # Depending upon the size, compute the lo and hi bounds.
27520 cat >conftest.$ac_ext <<_ACEOF
27521 /* confdefs.h.  */
27522 _ACEOF
27523 cat confdefs.h >>conftest.$ac_ext
27524 cat >>conftest.$ac_ext <<_ACEOF
27525 /* end confdefs.h.  */
27526 $ac_includes_default
27527 #ifndef offsetof
27528 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27529 #endif
27530 typedef struct { char x; long long int y; } ac__type_alignof_;
27531 int
27532 main ()
27533 {
27534 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27535 test_array [0] = 0
27536
27537   ;
27538   return 0;
27539 }
27540 _ACEOF
27541 rm -f conftest.$ac_objext
27542 if { (ac_try="$ac_compile"
27543 case "(($ac_try" in
27544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27545   *) ac_try_echo=$ac_try;;
27546 esac
27547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27548 $as_echo "$ac_try_echo") >&5
27549   (eval "$ac_compile") 2>conftest.er1
27550   ac_status=$?
27551   grep -v '^ *+' conftest.er1 >conftest.err
27552   rm -f conftest.er1
27553   cat conftest.err >&5
27554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27555   (exit $ac_status); } && {
27556          test -z "$ac_c_werror_flag" ||
27557          test ! -s conftest.err
27558        } && test -s conftest.$ac_objext; then
27559   ac_lo=0 ac_mid=0
27560   while :; do
27561     cat >conftest.$ac_ext <<_ACEOF
27562 /* confdefs.h.  */
27563 _ACEOF
27564 cat confdefs.h >>conftest.$ac_ext
27565 cat >>conftest.$ac_ext <<_ACEOF
27566 /* end confdefs.h.  */
27567 $ac_includes_default
27568 #ifndef offsetof
27569 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27570 #endif
27571 typedef struct { char x; long long int y; } ac__type_alignof_;
27572 int
27573 main ()
27574 {
27575 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27576 test_array [0] = 0
27577
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext
27583 if { (ac_try="$ac_compile"
27584 case "(($ac_try" in
27585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586   *) ac_try_echo=$ac_try;;
27587 esac
27588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27589 $as_echo "$ac_try_echo") >&5
27590   (eval "$ac_compile") 2>conftest.er1
27591   ac_status=$?
27592   grep -v '^ *+' conftest.er1 >conftest.err
27593   rm -f conftest.er1
27594   cat conftest.err >&5
27595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27596   (exit $ac_status); } && {
27597          test -z "$ac_c_werror_flag" ||
27598          test ! -s conftest.err
27599        } && test -s conftest.$ac_objext; then
27600   ac_hi=$ac_mid; break
27601 else
27602   $as_echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605         ac_lo=`expr $ac_mid + 1`
27606                         if test $ac_lo -le $ac_mid; then
27607                           ac_lo= ac_hi=
27608                           break
27609                         fi
27610                         ac_mid=`expr 2 '*' $ac_mid + 1`
27611 fi
27612
27613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27614   done
27615 else
27616   $as_echo "$as_me: failed program was:" >&5
27617 sed 's/^/| /' conftest.$ac_ext >&5
27618
27619         cat >conftest.$ac_ext <<_ACEOF
27620 /* confdefs.h.  */
27621 _ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h.  */
27625 $ac_includes_default
27626 #ifndef offsetof
27627 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27628 #endif
27629 typedef struct { char x; long long int y; } ac__type_alignof_;
27630 int
27631 main ()
27632 {
27633 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
27634 test_array [0] = 0
27635
27636   ;
27637   return 0;
27638 }
27639 _ACEOF
27640 rm -f conftest.$ac_objext
27641 if { (ac_try="$ac_compile"
27642 case "(($ac_try" in
27643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27644   *) ac_try_echo=$ac_try;;
27645 esac
27646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27647 $as_echo "$ac_try_echo") >&5
27648   (eval "$ac_compile") 2>conftest.er1
27649   ac_status=$?
27650   grep -v '^ *+' conftest.er1 >conftest.err
27651   rm -f conftest.er1
27652   cat conftest.err >&5
27653   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27654   (exit $ac_status); } && {
27655          test -z "$ac_c_werror_flag" ||
27656          test ! -s conftest.err
27657        } && test -s conftest.$ac_objext; then
27658   ac_hi=-1 ac_mid=-1
27659   while :; do
27660     cat >conftest.$ac_ext <<_ACEOF
27661 /* confdefs.h.  */
27662 _ACEOF
27663 cat confdefs.h >>conftest.$ac_ext
27664 cat >>conftest.$ac_ext <<_ACEOF
27665 /* end confdefs.h.  */
27666 $ac_includes_default
27667 #ifndef offsetof
27668 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27669 #endif
27670 typedef struct { char x; long long int y; } ac__type_alignof_;
27671 int
27672 main ()
27673 {
27674 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
27675 test_array [0] = 0
27676
27677   ;
27678   return 0;
27679 }
27680 _ACEOF
27681 rm -f conftest.$ac_objext
27682 if { (ac_try="$ac_compile"
27683 case "(($ac_try" in
27684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685   *) ac_try_echo=$ac_try;;
27686 esac
27687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27688 $as_echo "$ac_try_echo") >&5
27689   (eval "$ac_compile") 2>conftest.er1
27690   ac_status=$?
27691   grep -v '^ *+' conftest.er1 >conftest.err
27692   rm -f conftest.er1
27693   cat conftest.err >&5
27694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); } && {
27696          test -z "$ac_c_werror_flag" ||
27697          test ! -s conftest.err
27698        } && test -s conftest.$ac_objext; then
27699   ac_lo=$ac_mid; break
27700 else
27701   $as_echo "$as_me: failed program was:" >&5
27702 sed 's/^/| /' conftest.$ac_ext >&5
27703
27704         ac_hi=`expr '(' $ac_mid ')' - 1`
27705                         if test $ac_mid -le $ac_hi; then
27706                           ac_lo= ac_hi=
27707                           break
27708                         fi
27709                         ac_mid=`expr 2 '*' $ac_mid`
27710 fi
27711
27712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27713   done
27714 else
27715   $as_echo "$as_me: failed program was:" >&5
27716 sed 's/^/| /' conftest.$ac_ext >&5
27717
27718         ac_lo= ac_hi=
27719 fi
27720
27721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27722 fi
27723
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725 # Binary search between lo and hi bounds.
27726 while test "x$ac_lo" != "x$ac_hi"; do
27727   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27728   cat >conftest.$ac_ext <<_ACEOF
27729 /* confdefs.h.  */
27730 _ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h.  */
27734 $ac_includes_default
27735 #ifndef offsetof
27736 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27737 #endif
27738 typedef struct { char x; long long int y; } ac__type_alignof_;
27739 int
27740 main ()
27741 {
27742 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27743 test_array [0] = 0
27744
27745   ;
27746   return 0;
27747 }
27748 _ACEOF
27749 rm -f conftest.$ac_objext
27750 if { (ac_try="$ac_compile"
27751 case "(($ac_try" in
27752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27753   *) ac_try_echo=$ac_try;;
27754 esac
27755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27756 $as_echo "$ac_try_echo") >&5
27757   (eval "$ac_compile") 2>conftest.er1
27758   ac_status=$?
27759   grep -v '^ *+' conftest.er1 >conftest.err
27760   rm -f conftest.er1
27761   cat conftest.err >&5
27762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27763   (exit $ac_status); } && {
27764          test -z "$ac_c_werror_flag" ||
27765          test ! -s conftest.err
27766        } && test -s conftest.$ac_objext; then
27767   ac_hi=$ac_mid
27768 else
27769   $as_echo "$as_me: failed program was:" >&5
27770 sed 's/^/| /' conftest.$ac_ext >&5
27771
27772         ac_lo=`expr '(' $ac_mid ')' + 1`
27773 fi
27774
27775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27776 done
27777 case $ac_lo in
27778 ?*) ac_cv_alignof_long_long_int=$ac_lo;;
27779 '') if test "$ac_cv_type_long_long_int" = yes; then
27780      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27781 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27782 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27783 See \`config.log' for more details." >&5
27784 $as_echo "$as_me: error: cannot compute alignment of long long int
27785 See \`config.log' for more details." >&2;}
27786    { (exit 77); exit 77; }; }; }
27787    else
27788      ac_cv_alignof_long_long_int=0
27789    fi ;;
27790 esac
27791 else
27792   cat >conftest.$ac_ext <<_ACEOF
27793 /* confdefs.h.  */
27794 _ACEOF
27795 cat confdefs.h >>conftest.$ac_ext
27796 cat >>conftest.$ac_ext <<_ACEOF
27797 /* end confdefs.h.  */
27798 $ac_includes_default
27799 #ifndef offsetof
27800 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27801 #endif
27802 typedef struct { char x; long long int y; } ac__type_alignof_;
27803 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
27804 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
27805 #include <stdio.h>
27806 #include <stdlib.h>
27807 int
27808 main ()
27809 {
27810
27811   FILE *f = fopen ("conftest.val", "w");
27812   if (! f)
27813     return 1;
27814   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
27815     {
27816       long int i = longval ();
27817       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27818         return 1;
27819       fprintf (f, "%ld", i);
27820     }
27821   else
27822     {
27823       unsigned long int i = ulongval ();
27824       if (i != ((long int) offsetof (ac__type_alignof_, y)))
27825         return 1;
27826       fprintf (f, "%lu", i);
27827     }
27828   /* Do not output a trailing newline, as this causes \r\n confusion
27829      on some platforms.  */
27830   return ferror (f) || fclose (f) != 0;
27831
27832   ;
27833   return 0;
27834 }
27835 _ACEOF
27836 rm -f conftest$ac_exeext
27837 if { (ac_try="$ac_link"
27838 case "(($ac_try" in
27839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27840   *) ac_try_echo=$ac_try;;
27841 esac
27842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27843 $as_echo "$ac_try_echo") >&5
27844   (eval "$ac_link") 2>&5
27845   ac_status=$?
27846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27848   { (case "(($ac_try" in
27849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27850   *) ac_try_echo=$ac_try;;
27851 esac
27852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27853 $as_echo "$ac_try_echo") >&5
27854   (eval "$ac_try") 2>&5
27855   ac_status=$?
27856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); }; }; then
27858   ac_cv_alignof_long_long_int=`cat conftest.val`
27859 else
27860   $as_echo "$as_me: program exited with status $ac_status" >&5
27861 $as_echo "$as_me: failed program was:" >&5
27862 sed 's/^/| /' conftest.$ac_ext >&5
27863
27864 ( exit $ac_status )
27865 if test "$ac_cv_type_long_long_int" = yes; then
27866      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27868 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of long long int
27869 See \`config.log' for more details." >&5
27870 $as_echo "$as_me: error: cannot compute alignment of long long int
27871 See \`config.log' for more details." >&2;}
27872    { (exit 77); exit 77; }; }; }
27873    else
27874      ac_cv_alignof_long_long_int=0
27875    fi
27876 fi
27877 rm -rf conftest.dSYM
27878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27879 fi
27880 rm -f conftest.val
27881 fi
27882 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_long_long_int" >&5
27883 $as_echo "$ac_cv_alignof_long_long_int" >&6; }
27884
27885
27886
27887 cat >>confdefs.h <<_ACEOF
27888 #define ALIGNOF_LONG_LONG_INT $ac_cv_alignof_long_long_int
27889 _ACEOF
27890
27891
27892 fi
27893 # The cast to long int works around a bug in the HP C Compiler,
27894 # see AC_CHECK_SIZEOF for more information.
27895 { $as_echo "$as_me:$LINENO: checking alignment of double" >&5
27896 $as_echo_n "checking alignment of double... " >&6; }
27897 if test "${ac_cv_alignof_double+set}" = set; then
27898   $as_echo_n "(cached) " >&6
27899 else
27900   if test "$cross_compiling" = yes; then
27901   # Depending upon the size, compute the lo and hi bounds.
27902 cat >conftest.$ac_ext <<_ACEOF
27903 /* confdefs.h.  */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h.  */
27908 $ac_includes_default
27909 #ifndef offsetof
27910 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27911 #endif
27912 typedef struct { char x; double y; } ac__type_alignof_;
27913 int
27914 main ()
27915 {
27916 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= 0)];
27917 test_array [0] = 0
27918
27919   ;
27920   return 0;
27921 }
27922 _ACEOF
27923 rm -f conftest.$ac_objext
27924 if { (ac_try="$ac_compile"
27925 case "(($ac_try" in
27926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27927   *) ac_try_echo=$ac_try;;
27928 esac
27929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27930 $as_echo "$ac_try_echo") >&5
27931   (eval "$ac_compile") 2>conftest.er1
27932   ac_status=$?
27933   grep -v '^ *+' conftest.er1 >conftest.err
27934   rm -f conftest.er1
27935   cat conftest.err >&5
27936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937   (exit $ac_status); } && {
27938          test -z "$ac_c_werror_flag" ||
27939          test ! -s conftest.err
27940        } && test -s conftest.$ac_objext; then
27941   ac_lo=0 ac_mid=0
27942   while :; do
27943     cat >conftest.$ac_ext <<_ACEOF
27944 /* confdefs.h.  */
27945 _ACEOF
27946 cat confdefs.h >>conftest.$ac_ext
27947 cat >>conftest.$ac_ext <<_ACEOF
27948 /* end confdefs.h.  */
27949 $ac_includes_default
27950 #ifndef offsetof
27951 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
27952 #endif
27953 typedef struct { char x; double y; } ac__type_alignof_;
27954 int
27955 main ()
27956 {
27957 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
27958 test_array [0] = 0
27959
27960   ;
27961   return 0;
27962 }
27963 _ACEOF
27964 rm -f conftest.$ac_objext
27965 if { (ac_try="$ac_compile"
27966 case "(($ac_try" in
27967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27968   *) ac_try_echo=$ac_try;;
27969 esac
27970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27971 $as_echo "$ac_try_echo") >&5
27972   (eval "$ac_compile") 2>conftest.er1
27973   ac_status=$?
27974   grep -v '^ *+' conftest.er1 >conftest.err
27975   rm -f conftest.er1
27976   cat conftest.err >&5
27977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); } && {
27979          test -z "$ac_c_werror_flag" ||
27980          test ! -s conftest.err
27981        } && test -s conftest.$ac_objext; then
27982   ac_hi=$ac_mid; break
27983 else
27984   $as_echo "$as_me: failed program was:" >&5
27985 sed 's/^/| /' conftest.$ac_ext >&5
27986
27987         ac_lo=`expr $ac_mid + 1`
27988                         if test $ac_lo -le $ac_mid; then
27989                           ac_lo= ac_hi=
27990                           break
27991                         fi
27992                         ac_mid=`expr 2 '*' $ac_mid + 1`
27993 fi
27994
27995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27996   done
27997 else
27998   $as_echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001         cat >conftest.$ac_ext <<_ACEOF
28002 /* confdefs.h.  */
28003 _ACEOF
28004 cat confdefs.h >>conftest.$ac_ext
28005 cat >>conftest.$ac_ext <<_ACEOF
28006 /* end confdefs.h.  */
28007 $ac_includes_default
28008 #ifndef offsetof
28009 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28010 #endif
28011 typedef struct { char x; double y; } ac__type_alignof_;
28012 int
28013 main ()
28014 {
28015 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) < 0)];
28016 test_array [0] = 0
28017
28018   ;
28019   return 0;
28020 }
28021 _ACEOF
28022 rm -f conftest.$ac_objext
28023 if { (ac_try="$ac_compile"
28024 case "(($ac_try" in
28025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026   *) ac_try_echo=$ac_try;;
28027 esac
28028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28029 $as_echo "$ac_try_echo") >&5
28030   (eval "$ac_compile") 2>conftest.er1
28031   ac_status=$?
28032   grep -v '^ *+' conftest.er1 >conftest.err
28033   rm -f conftest.er1
28034   cat conftest.err >&5
28035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036   (exit $ac_status); } && {
28037          test -z "$ac_c_werror_flag" ||
28038          test ! -s conftest.err
28039        } && test -s conftest.$ac_objext; then
28040   ac_hi=-1 ac_mid=-1
28041   while :; do
28042     cat >conftest.$ac_ext <<_ACEOF
28043 /* confdefs.h.  */
28044 _ACEOF
28045 cat confdefs.h >>conftest.$ac_ext
28046 cat >>conftest.$ac_ext <<_ACEOF
28047 /* end confdefs.h.  */
28048 $ac_includes_default
28049 #ifndef offsetof
28050 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28051 #endif
28052 typedef struct { char x; double y; } ac__type_alignof_;
28053 int
28054 main ()
28055 {
28056 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) >= $ac_mid)];
28057 test_array [0] = 0
28058
28059   ;
28060   return 0;
28061 }
28062 _ACEOF
28063 rm -f conftest.$ac_objext
28064 if { (ac_try="$ac_compile"
28065 case "(($ac_try" in
28066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067   *) ac_try_echo=$ac_try;;
28068 esac
28069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28070 $as_echo "$ac_try_echo") >&5
28071   (eval "$ac_compile") 2>conftest.er1
28072   ac_status=$?
28073   grep -v '^ *+' conftest.er1 >conftest.err
28074   rm -f conftest.er1
28075   cat conftest.err >&5
28076   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077   (exit $ac_status); } && {
28078          test -z "$ac_c_werror_flag" ||
28079          test ! -s conftest.err
28080        } && test -s conftest.$ac_objext; then
28081   ac_lo=$ac_mid; break
28082 else
28083   $as_echo "$as_me: failed program was:" >&5
28084 sed 's/^/| /' conftest.$ac_ext >&5
28085
28086         ac_hi=`expr '(' $ac_mid ')' - 1`
28087                         if test $ac_mid -le $ac_hi; then
28088                           ac_lo= ac_hi=
28089                           break
28090                         fi
28091                         ac_mid=`expr 2 '*' $ac_mid`
28092 fi
28093
28094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28095   done
28096 else
28097   $as_echo "$as_me: failed program was:" >&5
28098 sed 's/^/| /' conftest.$ac_ext >&5
28099
28100         ac_lo= ac_hi=
28101 fi
28102
28103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28104 fi
28105
28106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28107 # Binary search between lo and hi bounds.
28108 while test "x$ac_lo" != "x$ac_hi"; do
28109   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28110   cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h.  */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h.  */
28116 $ac_includes_default
28117 #ifndef offsetof
28118 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28119 #endif
28120 typedef struct { char x; double y; } ac__type_alignof_;
28121 int
28122 main ()
28123 {
28124 static int test_array [1 - 2 * !(((long int) offsetof (ac__type_alignof_, y)) <= $ac_mid)];
28125 test_array [0] = 0
28126
28127   ;
28128   return 0;
28129 }
28130 _ACEOF
28131 rm -f conftest.$ac_objext
28132 if { (ac_try="$ac_compile"
28133 case "(($ac_try" in
28134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28135   *) ac_try_echo=$ac_try;;
28136 esac
28137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28138 $as_echo "$ac_try_echo") >&5
28139   (eval "$ac_compile") 2>conftest.er1
28140   ac_status=$?
28141   grep -v '^ *+' conftest.er1 >conftest.err
28142   rm -f conftest.er1
28143   cat conftest.err >&5
28144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); } && {
28146          test -z "$ac_c_werror_flag" ||
28147          test ! -s conftest.err
28148        } && test -s conftest.$ac_objext; then
28149   ac_hi=$ac_mid
28150 else
28151   $as_echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.$ac_ext >&5
28153
28154         ac_lo=`expr '(' $ac_mid ')' + 1`
28155 fi
28156
28157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28158 done
28159 case $ac_lo in
28160 ?*) ac_cv_alignof_double=$ac_lo;;
28161 '') if test "$ac_cv_type_double" = yes; then
28162      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28164 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28165 See \`config.log' for more details." >&5
28166 $as_echo "$as_me: error: cannot compute alignment of double
28167 See \`config.log' for more details." >&2;}
28168    { (exit 77); exit 77; }; }; }
28169    else
28170      ac_cv_alignof_double=0
28171    fi ;;
28172 esac
28173 else
28174   cat >conftest.$ac_ext <<_ACEOF
28175 /* confdefs.h.  */
28176 _ACEOF
28177 cat confdefs.h >>conftest.$ac_ext
28178 cat >>conftest.$ac_ext <<_ACEOF
28179 /* end confdefs.h.  */
28180 $ac_includes_default
28181 #ifndef offsetof
28182 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
28183 #endif
28184 typedef struct { char x; double y; } ac__type_alignof_;
28185 static long int longval () { return (long int) offsetof (ac__type_alignof_, y); }
28186 static unsigned long int ulongval () { return (long int) offsetof (ac__type_alignof_, y); }
28187 #include <stdio.h>
28188 #include <stdlib.h>
28189 int
28190 main ()
28191 {
28192
28193   FILE *f = fopen ("conftest.val", "w");
28194   if (! f)
28195     return 1;
28196   if (((long int) offsetof (ac__type_alignof_, y)) < 0)
28197     {
28198       long int i = longval ();
28199       if (i != ((long int) offsetof (ac__type_alignof_, y)))
28200         return 1;
28201       fprintf (f, "%ld", i);
28202     }
28203   else
28204     {
28205       unsigned long int i = ulongval ();
28206       if (i != ((long int) offsetof (ac__type_alignof_, y)))
28207         return 1;
28208       fprintf (f, "%lu", i);
28209     }
28210   /* Do not output a trailing newline, as this causes \r\n confusion
28211      on some platforms.  */
28212   return ferror (f) || fclose (f) != 0;
28213
28214   ;
28215   return 0;
28216 }
28217 _ACEOF
28218 rm -f conftest$ac_exeext
28219 if { (ac_try="$ac_link"
28220 case "(($ac_try" in
28221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28222   *) ac_try_echo=$ac_try;;
28223 esac
28224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28225 $as_echo "$ac_try_echo") >&5
28226   (eval "$ac_link") 2>&5
28227   ac_status=$?
28228   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28230   { (case "(($ac_try" in
28231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28232   *) ac_try_echo=$ac_try;;
28233 esac
28234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28235 $as_echo "$ac_try_echo") >&5
28236   (eval "$ac_try") 2>&5
28237   ac_status=$?
28238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); }; }; then
28240   ac_cv_alignof_double=`cat conftest.val`
28241 else
28242   $as_echo "$as_me: program exited with status $ac_status" >&5
28243 $as_echo "$as_me: failed program was:" >&5
28244 sed 's/^/| /' conftest.$ac_ext >&5
28245
28246 ( exit $ac_status )
28247 if test "$ac_cv_type_double" = yes; then
28248      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28250 { { $as_echo "$as_me:$LINENO: error: cannot compute alignment of double
28251 See \`config.log' for more details." >&5
28252 $as_echo "$as_me: error: cannot compute alignment of double
28253 See \`config.log' for more details." >&2;}
28254    { (exit 77); exit 77; }; }; }
28255    else
28256      ac_cv_alignof_double=0
28257    fi
28258 fi
28259 rm -rf conftest.dSYM
28260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28261 fi
28262 rm -f conftest.val
28263 fi
28264 { $as_echo "$as_me:$LINENO: result: $ac_cv_alignof_double" >&5
28265 $as_echo "$ac_cv_alignof_double" >&6; }
28266
28267
28268
28269 cat >>confdefs.h <<_ACEOF
28270 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
28271 _ACEOF
28272
28273
28274
28275 # Compute maximum alignment of any basic type.
28276 # We assume long's alignment is at least as strong as char, short, or int;
28277 # but we must check long long (if it exists) and double.
28278
28279 MAX_ALIGNOF=$ac_cv_alignof_long
28280 if test $MAX_ALIGNOF -lt $ac_cv_alignof_double ; then
28281   MAX_ALIGNOF=$ac_cv_alignof_double
28282 fi
28283 if test x"$HAVE_LONG_LONG_INT_64" = xyes && test $MAX_ALIGNOF -lt $ac_cv_alignof_long_long_int ; then
28284   MAX_ALIGNOF="$ac_cv_alignof_long_long_int"
28285 fi
28286
28287 cat >>confdefs.h <<_ACEOF
28288 #define MAXIMUM_ALIGNOF $MAX_ALIGNOF
28289 _ACEOF
28290
28291
28292
28293 # Some platforms predefine the types int8, int16, etc.  Only check
28294 # a (hopefully) representative subset.
28295 { $as_echo "$as_me:$LINENO: checking for int8" >&5
28296 $as_echo_n "checking for int8... " >&6; }
28297 if test "${ac_cv_type_int8+set}" = set; then
28298   $as_echo_n "(cached) " >&6
28299 else
28300   ac_cv_type_int8=no
28301 cat >conftest.$ac_ext <<_ACEOF
28302 /* confdefs.h.  */
28303 _ACEOF
28304 cat confdefs.h >>conftest.$ac_ext
28305 cat >>conftest.$ac_ext <<_ACEOF
28306 /* end confdefs.h.  */
28307 #include <stdio.h>
28308
28309 int
28310 main ()
28311 {
28312 if (sizeof (int8))
28313        return 0;
28314   ;
28315   return 0;
28316 }
28317 _ACEOF
28318 rm -f conftest.$ac_objext
28319 if { (ac_try="$ac_compile"
28320 case "(($ac_try" in
28321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322   *) ac_try_echo=$ac_try;;
28323 esac
28324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28325 $as_echo "$ac_try_echo") >&5
28326   (eval "$ac_compile") 2>conftest.er1
28327   ac_status=$?
28328   grep -v '^ *+' conftest.er1 >conftest.err
28329   rm -f conftest.er1
28330   cat conftest.err >&5
28331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332   (exit $ac_status); } && {
28333          test -z "$ac_c_werror_flag" ||
28334          test ! -s conftest.err
28335        } && test -s conftest.$ac_objext; then
28336   cat >conftest.$ac_ext <<_ACEOF
28337 /* confdefs.h.  */
28338 _ACEOF
28339 cat confdefs.h >>conftest.$ac_ext
28340 cat >>conftest.$ac_ext <<_ACEOF
28341 /* end confdefs.h.  */
28342 #include <stdio.h>
28343
28344 int
28345 main ()
28346 {
28347 if (sizeof ((int8)))
28348           return 0;
28349   ;
28350   return 0;
28351 }
28352 _ACEOF
28353 rm -f conftest.$ac_objext
28354 if { (ac_try="$ac_compile"
28355 case "(($ac_try" in
28356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28357   *) ac_try_echo=$ac_try;;
28358 esac
28359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28360 $as_echo "$ac_try_echo") >&5
28361   (eval "$ac_compile") 2>conftest.er1
28362   ac_status=$?
28363   grep -v '^ *+' conftest.er1 >conftest.err
28364   rm -f conftest.er1
28365   cat conftest.err >&5
28366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367   (exit $ac_status); } && {
28368          test -z "$ac_c_werror_flag" ||
28369          test ! -s conftest.err
28370        } && test -s conftest.$ac_objext; then
28371   :
28372 else
28373   $as_echo "$as_me: failed program was:" >&5
28374 sed 's/^/| /' conftest.$ac_ext >&5
28375
28376         ac_cv_type_int8=yes
28377 fi
28378
28379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28380 else
28381   $as_echo "$as_me: failed program was:" >&5
28382 sed 's/^/| /' conftest.$ac_ext >&5
28383
28384
28385 fi
28386
28387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28388 fi
28389 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8" >&5
28390 $as_echo "$ac_cv_type_int8" >&6; }
28391 if test "x$ac_cv_type_int8" = x""yes; then
28392
28393 cat >>confdefs.h <<_ACEOF
28394 #define HAVE_INT8 1
28395 _ACEOF
28396
28397
28398 fi
28399 { $as_echo "$as_me:$LINENO: checking for uint8" >&5
28400 $as_echo_n "checking for uint8... " >&6; }
28401 if test "${ac_cv_type_uint8+set}" = set; then
28402   $as_echo_n "(cached) " >&6
28403 else
28404   ac_cv_type_uint8=no
28405 cat >conftest.$ac_ext <<_ACEOF
28406 /* confdefs.h.  */
28407 _ACEOF
28408 cat confdefs.h >>conftest.$ac_ext
28409 cat >>conftest.$ac_ext <<_ACEOF
28410 /* end confdefs.h.  */
28411 #include <stdio.h>
28412
28413 int
28414 main ()
28415 {
28416 if (sizeof (uint8))
28417        return 0;
28418   ;
28419   return 0;
28420 }
28421 _ACEOF
28422 rm -f conftest.$ac_objext
28423 if { (ac_try="$ac_compile"
28424 case "(($ac_try" in
28425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28426   *) ac_try_echo=$ac_try;;
28427 esac
28428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28429 $as_echo "$ac_try_echo") >&5
28430   (eval "$ac_compile") 2>conftest.er1
28431   ac_status=$?
28432   grep -v '^ *+' conftest.er1 >conftest.err
28433   rm -f conftest.er1
28434   cat conftest.err >&5
28435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); } && {
28437          test -z "$ac_c_werror_flag" ||
28438          test ! -s conftest.err
28439        } && test -s conftest.$ac_objext; then
28440   cat >conftest.$ac_ext <<_ACEOF
28441 /* confdefs.h.  */
28442 _ACEOF
28443 cat confdefs.h >>conftest.$ac_ext
28444 cat >>conftest.$ac_ext <<_ACEOF
28445 /* end confdefs.h.  */
28446 #include <stdio.h>
28447
28448 int
28449 main ()
28450 {
28451 if (sizeof ((uint8)))
28452           return 0;
28453   ;
28454   return 0;
28455 }
28456 _ACEOF
28457 rm -f conftest.$ac_objext
28458 if { (ac_try="$ac_compile"
28459 case "(($ac_try" in
28460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28461   *) ac_try_echo=$ac_try;;
28462 esac
28463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28464 $as_echo "$ac_try_echo") >&5
28465   (eval "$ac_compile") 2>conftest.er1
28466   ac_status=$?
28467   grep -v '^ *+' conftest.er1 >conftest.err
28468   rm -f conftest.er1
28469   cat conftest.err >&5
28470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28471   (exit $ac_status); } && {
28472          test -z "$ac_c_werror_flag" ||
28473          test ! -s conftest.err
28474        } && test -s conftest.$ac_objext; then
28475   :
28476 else
28477   $as_echo "$as_me: failed program was:" >&5
28478 sed 's/^/| /' conftest.$ac_ext >&5
28479
28480         ac_cv_type_uint8=yes
28481 fi
28482
28483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28484 else
28485   $as_echo "$as_me: failed program was:" >&5
28486 sed 's/^/| /' conftest.$ac_ext >&5
28487
28488
28489 fi
28490
28491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28492 fi
28493 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8" >&5
28494 $as_echo "$ac_cv_type_uint8" >&6; }
28495 if test "x$ac_cv_type_uint8" = x""yes; then
28496
28497 cat >>confdefs.h <<_ACEOF
28498 #define HAVE_UINT8 1
28499 _ACEOF
28500
28501
28502 fi
28503 { $as_echo "$as_me:$LINENO: checking for int64" >&5
28504 $as_echo_n "checking for int64... " >&6; }
28505 if test "${ac_cv_type_int64+set}" = set; then
28506   $as_echo_n "(cached) " >&6
28507 else
28508   ac_cv_type_int64=no
28509 cat >conftest.$ac_ext <<_ACEOF
28510 /* confdefs.h.  */
28511 _ACEOF
28512 cat confdefs.h >>conftest.$ac_ext
28513 cat >>conftest.$ac_ext <<_ACEOF
28514 /* end confdefs.h.  */
28515 #include <stdio.h>
28516
28517 int
28518 main ()
28519 {
28520 if (sizeof (int64))
28521        return 0;
28522   ;
28523   return 0;
28524 }
28525 _ACEOF
28526 rm -f conftest.$ac_objext
28527 if { (ac_try="$ac_compile"
28528 case "(($ac_try" in
28529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28530   *) ac_try_echo=$ac_try;;
28531 esac
28532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28533 $as_echo "$ac_try_echo") >&5
28534   (eval "$ac_compile") 2>conftest.er1
28535   ac_status=$?
28536   grep -v '^ *+' conftest.er1 >conftest.err
28537   rm -f conftest.er1
28538   cat conftest.err >&5
28539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540   (exit $ac_status); } && {
28541          test -z "$ac_c_werror_flag" ||
28542          test ! -s conftest.err
28543        } && test -s conftest.$ac_objext; then
28544   cat >conftest.$ac_ext <<_ACEOF
28545 /* confdefs.h.  */
28546 _ACEOF
28547 cat confdefs.h >>conftest.$ac_ext
28548 cat >>conftest.$ac_ext <<_ACEOF
28549 /* end confdefs.h.  */
28550 #include <stdio.h>
28551
28552 int
28553 main ()
28554 {
28555 if (sizeof ((int64)))
28556           return 0;
28557   ;
28558   return 0;
28559 }
28560 _ACEOF
28561 rm -f conftest.$ac_objext
28562 if { (ac_try="$ac_compile"
28563 case "(($ac_try" in
28564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28565   *) ac_try_echo=$ac_try;;
28566 esac
28567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28568 $as_echo "$ac_try_echo") >&5
28569   (eval "$ac_compile") 2>conftest.er1
28570   ac_status=$?
28571   grep -v '^ *+' conftest.er1 >conftest.err
28572   rm -f conftest.er1
28573   cat conftest.err >&5
28574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575   (exit $ac_status); } && {
28576          test -z "$ac_c_werror_flag" ||
28577          test ! -s conftest.err
28578        } && test -s conftest.$ac_objext; then
28579   :
28580 else
28581   $as_echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28583
28584         ac_cv_type_int64=yes
28585 fi
28586
28587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28588 else
28589   $as_echo "$as_me: failed program was:" >&5
28590 sed 's/^/| /' conftest.$ac_ext >&5
28591
28592
28593 fi
28594
28595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28596 fi
28597 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64" >&5
28598 $as_echo "$ac_cv_type_int64" >&6; }
28599 if test "x$ac_cv_type_int64" = x""yes; then
28600
28601 cat >>confdefs.h <<_ACEOF
28602 #define HAVE_INT64 1
28603 _ACEOF
28604
28605
28606 fi
28607 { $as_echo "$as_me:$LINENO: checking for uint64" >&5
28608 $as_echo_n "checking for uint64... " >&6; }
28609 if test "${ac_cv_type_uint64+set}" = set; then
28610   $as_echo_n "(cached) " >&6
28611 else
28612   ac_cv_type_uint64=no
28613 cat >conftest.$ac_ext <<_ACEOF
28614 /* confdefs.h.  */
28615 _ACEOF
28616 cat confdefs.h >>conftest.$ac_ext
28617 cat >>conftest.$ac_ext <<_ACEOF
28618 /* end confdefs.h.  */
28619 #include <stdio.h>
28620
28621 int
28622 main ()
28623 {
28624 if (sizeof (uint64))
28625        return 0;
28626   ;
28627   return 0;
28628 }
28629 _ACEOF
28630 rm -f conftest.$ac_objext
28631 if { (ac_try="$ac_compile"
28632 case "(($ac_try" in
28633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28634   *) ac_try_echo=$ac_try;;
28635 esac
28636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28637 $as_echo "$ac_try_echo") >&5
28638   (eval "$ac_compile") 2>conftest.er1
28639   ac_status=$?
28640   grep -v '^ *+' conftest.er1 >conftest.err
28641   rm -f conftest.er1
28642   cat conftest.err >&5
28643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28644   (exit $ac_status); } && {
28645          test -z "$ac_c_werror_flag" ||
28646          test ! -s conftest.err
28647        } && test -s conftest.$ac_objext; then
28648   cat >conftest.$ac_ext <<_ACEOF
28649 /* confdefs.h.  */
28650 _ACEOF
28651 cat confdefs.h >>conftest.$ac_ext
28652 cat >>conftest.$ac_ext <<_ACEOF
28653 /* end confdefs.h.  */
28654 #include <stdio.h>
28655
28656 int
28657 main ()
28658 {
28659 if (sizeof ((uint64)))
28660           return 0;
28661   ;
28662   return 0;
28663 }
28664 _ACEOF
28665 rm -f conftest.$ac_objext
28666 if { (ac_try="$ac_compile"
28667 case "(($ac_try" in
28668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28669   *) ac_try_echo=$ac_try;;
28670 esac
28671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28672 $as_echo "$ac_try_echo") >&5
28673   (eval "$ac_compile") 2>conftest.er1
28674   ac_status=$?
28675   grep -v '^ *+' conftest.er1 >conftest.err
28676   rm -f conftest.er1
28677   cat conftest.err >&5
28678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679   (exit $ac_status); } && {
28680          test -z "$ac_c_werror_flag" ||
28681          test ! -s conftest.err
28682        } && test -s conftest.$ac_objext; then
28683   :
28684 else
28685   $as_echo "$as_me: failed program was:" >&5
28686 sed 's/^/| /' conftest.$ac_ext >&5
28687
28688         ac_cv_type_uint64=yes
28689 fi
28690
28691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692 else
28693   $as_echo "$as_me: failed program was:" >&5
28694 sed 's/^/| /' conftest.$ac_ext >&5
28695
28696
28697 fi
28698
28699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28700 fi
28701 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64" >&5
28702 $as_echo "$ac_cv_type_uint64" >&6; }
28703 if test "x$ac_cv_type_uint64" = x""yes; then
28704
28705 cat >>confdefs.h <<_ACEOF
28706 #define HAVE_UINT64 1
28707 _ACEOF
28708
28709
28710 fi
28711
28712
28713 # We also check for sig_atomic_t, which *should* be defined per ANSI
28714 # C, but is missing on some old platforms.
28715 { $as_echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
28716 $as_echo_n "checking for sig_atomic_t... " >&6; }
28717 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
28718   $as_echo_n "(cached) " >&6
28719 else
28720   ac_cv_type_sig_atomic_t=no
28721 cat >conftest.$ac_ext <<_ACEOF
28722 /* confdefs.h.  */
28723 _ACEOF
28724 cat confdefs.h >>conftest.$ac_ext
28725 cat >>conftest.$ac_ext <<_ACEOF
28726 /* end confdefs.h.  */
28727 #include <signal.h>
28728
28729 int
28730 main ()
28731 {
28732 if (sizeof (sig_atomic_t))
28733        return 0;
28734   ;
28735   return 0;
28736 }
28737 _ACEOF
28738 rm -f conftest.$ac_objext
28739 if { (ac_try="$ac_compile"
28740 case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28745 $as_echo "$ac_try_echo") >&5
28746   (eval "$ac_compile") 2>conftest.er1
28747   ac_status=$?
28748   grep -v '^ *+' conftest.er1 >conftest.err
28749   rm -f conftest.er1
28750   cat conftest.err >&5
28751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28752   (exit $ac_status); } && {
28753          test -z "$ac_c_werror_flag" ||
28754          test ! -s conftest.err
28755        } && test -s conftest.$ac_objext; then
28756   cat >conftest.$ac_ext <<_ACEOF
28757 /* confdefs.h.  */
28758 _ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h.  */
28762 #include <signal.h>
28763
28764 int
28765 main ()
28766 {
28767 if (sizeof ((sig_atomic_t)))
28768           return 0;
28769   ;
28770   return 0;
28771 }
28772 _ACEOF
28773 rm -f conftest.$ac_objext
28774 if { (ac_try="$ac_compile"
28775 case "(($ac_try" in
28776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28777   *) ac_try_echo=$ac_try;;
28778 esac
28779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28780 $as_echo "$ac_try_echo") >&5
28781   (eval "$ac_compile") 2>conftest.er1
28782   ac_status=$?
28783   grep -v '^ *+' conftest.er1 >conftest.err
28784   rm -f conftest.er1
28785   cat conftest.err >&5
28786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787   (exit $ac_status); } && {
28788          test -z "$ac_c_werror_flag" ||
28789          test ! -s conftest.err
28790        } && test -s conftest.$ac_objext; then
28791   :
28792 else
28793   $as_echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28795
28796         ac_cv_type_sig_atomic_t=yes
28797 fi
28798
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800 else
28801   $as_echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28803
28804
28805 fi
28806
28807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28808 fi
28809 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
28810 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
28811 if test "x$ac_cv_type_sig_atomic_t" = x""yes; then
28812
28813 cat >>confdefs.h <<_ACEOF
28814 #define HAVE_SIG_ATOMIC_T 1
28815 _ACEOF
28816
28817
28818 fi
28819
28820
28821
28822 if test "$PORTNAME" != "win32"
28823 then
28824 { $as_echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
28825 $as_echo_n "checking for POSIX signal interface... " >&6; }
28826 if test "${pgac_cv_func_posix_signals+set}" = set; then
28827   $as_echo_n "(cached) " >&6
28828 else
28829   cat >conftest.$ac_ext <<_ACEOF
28830 /* confdefs.h.  */
28831 _ACEOF
28832 cat confdefs.h >>conftest.$ac_ext
28833 cat >>conftest.$ac_ext <<_ACEOF
28834 /* end confdefs.h.  */
28835 #include <signal.h>
28836
28837 int
28838 main ()
28839 {
28840 struct sigaction act, oact;
28841 sigemptyset(&act.sa_mask);
28842 act.sa_flags = SA_RESTART;
28843 sigaction(0, &act, &oact);
28844   ;
28845   return 0;
28846 }
28847 _ACEOF
28848 rm -f conftest.$ac_objext conftest$ac_exeext
28849 if { (ac_try="$ac_link"
28850 case "(($ac_try" in
28851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28852   *) ac_try_echo=$ac_try;;
28853 esac
28854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28855 $as_echo "$ac_try_echo") >&5
28856   (eval "$ac_link") 2>conftest.er1
28857   ac_status=$?
28858   grep -v '^ *+' conftest.er1 >conftest.err
28859   rm -f conftest.er1
28860   cat conftest.err >&5
28861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28862   (exit $ac_status); } && {
28863          test -z "$ac_c_werror_flag" ||
28864          test ! -s conftest.err
28865        } && test -s conftest$ac_exeext && {
28866          test "$cross_compiling" = yes ||
28867          $as_test_x conftest$ac_exeext
28868        }; then
28869   pgac_cv_func_posix_signals=yes
28870 else
28871   $as_echo "$as_me: failed program was:" >&5
28872 sed 's/^/| /' conftest.$ac_ext >&5
28873
28874         pgac_cv_func_posix_signals=no
28875 fi
28876
28877 rm -rf conftest.dSYM
28878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28879       conftest$ac_exeext conftest.$ac_ext
28880 fi
28881 { $as_echo "$as_me:$LINENO: result: $pgac_cv_func_posix_signals" >&5
28882 $as_echo "$pgac_cv_func_posix_signals" >&6; }
28883 if test x"$pgac_cv_func_posix_signals" = xyes ; then
28884
28885 cat >>confdefs.h <<\_ACEOF
28886 #define HAVE_POSIX_SIGNALS 1
28887 _ACEOF
28888
28889 fi
28890 HAVE_POSIX_SIGNALS=$pgac_cv_func_posix_signals
28891
28892 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
28893   { { $as_echo "$as_me:$LINENO: error:
28894 Thread-safety requires POSIX signals, which are not supported by this
28895 operating system;  use --disable-thread-safety to disable thread safety." >&5
28896 $as_echo "$as_me: error:
28897 Thread-safety requires POSIX signals, which are not supported by this
28898 operating system;  use --disable-thread-safety to disable thread safety." >&2;}
28899    { (exit 1); exit 1; }; }
28900 fi
28901 fi
28902
28903 # SunOS doesn't handle negative byte comparisons properly with +/- return
28904 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
28905 $as_echo_n "checking for working memcmp... " >&6; }
28906 if test "${ac_cv_func_memcmp_working+set}" = set; then
28907   $as_echo_n "(cached) " >&6
28908 else
28909   if test "$cross_compiling" = yes; then
28910   ac_cv_func_memcmp_working=no
28911 else
28912   cat >conftest.$ac_ext <<_ACEOF
28913 /* confdefs.h.  */
28914 _ACEOF
28915 cat confdefs.h >>conftest.$ac_ext
28916 cat >>conftest.$ac_ext <<_ACEOF
28917 /* end confdefs.h.  */
28918 $ac_includes_default
28919 int
28920 main ()
28921 {
28922
28923   /* Some versions of memcmp are not 8-bit clean.  */
28924   char c0 = '\100', c1 = '\200', c2 = '\201';
28925   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
28926     return 1;
28927
28928   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
28929      or more and with at least one buffer not starting on a 4-byte boundary.
28930      William Lewis provided this test program.   */
28931   {
28932     char foo[21];
28933     char bar[21];
28934     int i;
28935     for (i = 0; i < 4; i++)
28936       {
28937         char *a = foo + i;
28938         char *b = bar + i;
28939         strcpy (a, "--------01111111");
28940         strcpy (b, "--------10000000");
28941         if (memcmp (a, b, 16) >= 0)
28942           return 1;
28943       }
28944     return 0;
28945   }
28946
28947   ;
28948   return 0;
28949 }
28950 _ACEOF
28951 rm -f conftest$ac_exeext
28952 if { (ac_try="$ac_link"
28953 case "(($ac_try" in
28954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28955   *) ac_try_echo=$ac_try;;
28956 esac
28957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28958 $as_echo "$ac_try_echo") >&5
28959   (eval "$ac_link") 2>&5
28960   ac_status=$?
28961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28963   { (case "(($ac_try" in
28964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965   *) ac_try_echo=$ac_try;;
28966 esac
28967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28968 $as_echo "$ac_try_echo") >&5
28969   (eval "$ac_try") 2>&5
28970   ac_status=$?
28971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972   (exit $ac_status); }; }; then
28973   ac_cv_func_memcmp_working=yes
28974 else
28975   $as_echo "$as_me: program exited with status $ac_status" >&5
28976 $as_echo "$as_me: failed program was:" >&5
28977 sed 's/^/| /' conftest.$ac_ext >&5
28978
28979 ( exit $ac_status )
28980 ac_cv_func_memcmp_working=no
28981 fi
28982 rm -rf conftest.dSYM
28983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28984 fi
28985
28986
28987 fi
28988 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
28989 $as_echo "$ac_cv_func_memcmp_working" >&6; }
28990 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
28991   *" memcmp.$ac_objext "* ) ;;
28992   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
28993  ;;
28994 esac
28995
28996
28997
28998
28999 # Select semaphore implementation type.
29000 if test "$PORTNAME" != "win32"; then
29001   if test x"$USE_NAMED_POSIX_SEMAPHORES" = x"1" ; then
29002
29003 cat >>confdefs.h <<\_ACEOF
29004 #define USE_NAMED_POSIX_SEMAPHORES 1
29005 _ACEOF
29006
29007     SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29008   else
29009     if test x"$USE_UNNAMED_POSIX_SEMAPHORES" = x"1" ; then
29010
29011 cat >>confdefs.h <<\_ACEOF
29012 #define USE_UNNAMED_POSIX_SEMAPHORES 1
29013 _ACEOF
29014
29015       SEMA_IMPLEMENTATION="src/backend/port/posix_sema.c"
29016     else
29017
29018 cat >>confdefs.h <<\_ACEOF
29019 #define USE_SYSV_SEMAPHORES 1
29020 _ACEOF
29021
29022       SEMA_IMPLEMENTATION="src/backend/port/sysv_sema.c"
29023     fi
29024   fi
29025 else
29026
29027 cat >>confdefs.h <<\_ACEOF
29028 #define USE_WIN32_SEMAPHORES 1
29029 _ACEOF
29030
29031   SEMA_IMPLEMENTATION="src/backend/port/win32_sema.c"
29032 fi
29033
29034
29035 # Select shared-memory implementation type.
29036 if test "$PORTNAME" != "win32"; then
29037
29038 cat >>confdefs.h <<\_ACEOF
29039 #define USE_SYSV_SHARED_MEMORY 1
29040 _ACEOF
29041
29042   SHMEM_IMPLEMENTATION="src/backend/port/sysv_shmem.c"
29043 else
29044
29045 cat >>confdefs.h <<\_ACEOF
29046 #define USE_WIN32_SHARED_MEMORY 1
29047 _ACEOF
29048
29049   SHMEM_IMPLEMENTATION="src/backend/port/win32_shmem.c"
29050 fi
29051
29052 # Select latch implementation type.
29053 if test "$PORTNAME" != "win32"; then
29054   LATCH_IMPLEMENTATION="src/backend/port/unix_latch.c"
29055 else
29056   LATCH_IMPLEMENTATION="src/backend/port/win32_latch.c"
29057 fi
29058
29059 # If not set in template file, set bytes to use libc memset()
29060 if test x"$MEMSET_LOOP_LIMIT" = x"" ; then
29061   MEMSET_LOOP_LIMIT=1024
29062 fi
29063
29064 cat >>confdefs.h <<_ACEOF
29065 #define MEMSET_LOOP_LIMIT ${MEMSET_LOOP_LIMIT}
29066 _ACEOF
29067
29068
29069
29070 if test "$enable_nls" = yes ; then
29071
29072   { $as_echo "$as_me:$LINENO: checking for library containing bind_textdomain_codeset" >&5
29073 $as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; }
29074 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29075   $as_echo_n "(cached) " >&6
29076 else
29077   ac_func_search_save_LIBS=$LIBS
29078 cat >conftest.$ac_ext <<_ACEOF
29079 /* confdefs.h.  */
29080 _ACEOF
29081 cat confdefs.h >>conftest.$ac_ext
29082 cat >>conftest.$ac_ext <<_ACEOF
29083 /* end confdefs.h.  */
29084
29085 /* Override any GCC internal prototype to avoid an error.
29086    Use char because int might match the return type of a GCC
29087    builtin and then its argument prototype would still apply.  */
29088 #ifdef __cplusplus
29089 extern "C"
29090 #endif
29091 char bind_textdomain_codeset ();
29092 int
29093 main ()
29094 {
29095 return bind_textdomain_codeset ();
29096   ;
29097   return 0;
29098 }
29099 _ACEOF
29100 for ac_lib in '' intl; do
29101   if test -z "$ac_lib"; then
29102     ac_res="none required"
29103   else
29104     ac_res=-l$ac_lib
29105     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29106   fi
29107   rm -f conftest.$ac_objext conftest$ac_exeext
29108 if { (ac_try="$ac_link"
29109 case "(($ac_try" in
29110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111   *) ac_try_echo=$ac_try;;
29112 esac
29113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29114 $as_echo "$ac_try_echo") >&5
29115   (eval "$ac_link") 2>conftest.er1
29116   ac_status=$?
29117   grep -v '^ *+' conftest.er1 >conftest.err
29118   rm -f conftest.er1
29119   cat conftest.err >&5
29120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29121   (exit $ac_status); } && {
29122          test -z "$ac_c_werror_flag" ||
29123          test ! -s conftest.err
29124        } && test -s conftest$ac_exeext && {
29125          test "$cross_compiling" = yes ||
29126          $as_test_x conftest$ac_exeext
29127        }; then
29128   ac_cv_search_bind_textdomain_codeset=$ac_res
29129 else
29130   $as_echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.$ac_ext >&5
29132
29133
29134 fi
29135
29136 rm -rf conftest.dSYM
29137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29138       conftest$ac_exeext
29139   if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29140   break
29141 fi
29142 done
29143 if test "${ac_cv_search_bind_textdomain_codeset+set}" = set; then
29144   :
29145 else
29146   ac_cv_search_bind_textdomain_codeset=no
29147 fi
29148 rm conftest.$ac_ext
29149 LIBS=$ac_func_search_save_LIBS
29150 fi
29151 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_bind_textdomain_codeset" >&5
29152 $as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; }
29153 ac_res=$ac_cv_search_bind_textdomain_codeset
29154 if test "$ac_res" != no; then
29155   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29156
29157 else
29158   { { $as_echo "$as_me:$LINENO: error: a gettext implementation is required for NLS" >&5
29159 $as_echo "$as_me: error: a gettext implementation is required for NLS" >&2;}
29160    { (exit 1); exit 1; }; }
29161 fi
29162
29163   if test "${ac_cv_header_libintl_h+set}" = set; then
29164   { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29165 $as_echo_n "checking for libintl.h... " >&6; }
29166 if test "${ac_cv_header_libintl_h+set}" = set; then
29167   $as_echo_n "(cached) " >&6
29168 fi
29169 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29170 $as_echo "$ac_cv_header_libintl_h" >&6; }
29171 else
29172   # Is the header compilable?
29173 { $as_echo "$as_me:$LINENO: checking libintl.h usability" >&5
29174 $as_echo_n "checking libintl.h usability... " >&6; }
29175 cat >conftest.$ac_ext <<_ACEOF
29176 /* confdefs.h.  */
29177 _ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h.  */
29181 $ac_includes_default
29182 #include <libintl.h>
29183 _ACEOF
29184 rm -f conftest.$ac_objext
29185 if { (ac_try="$ac_compile"
29186 case "(($ac_try" in
29187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188   *) ac_try_echo=$ac_try;;
29189 esac
29190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29191 $as_echo "$ac_try_echo") >&5
29192   (eval "$ac_compile") 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } && {
29199          test -z "$ac_c_werror_flag" ||
29200          test ! -s conftest.err
29201        } && test -s conftest.$ac_objext; then
29202   ac_header_compiler=yes
29203 else
29204   $as_echo "$as_me: failed program was:" >&5
29205 sed 's/^/| /' conftest.$ac_ext >&5
29206
29207         ac_header_compiler=no
29208 fi
29209
29210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29211 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29212 $as_echo "$ac_header_compiler" >&6; }
29213
29214 # Is the header present?
29215 { $as_echo "$as_me:$LINENO: checking libintl.h presence" >&5
29216 $as_echo_n "checking libintl.h presence... " >&6; }
29217 cat >conftest.$ac_ext <<_ACEOF
29218 /* confdefs.h.  */
29219 _ACEOF
29220 cat confdefs.h >>conftest.$ac_ext
29221 cat >>conftest.$ac_ext <<_ACEOF
29222 /* end confdefs.h.  */
29223 #include <libintl.h>
29224 _ACEOF
29225 if { (ac_try="$ac_cpp conftest.$ac_ext"
29226 case "(($ac_try" in
29227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29228   *) ac_try_echo=$ac_try;;
29229 esac
29230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29231 $as_echo "$ac_try_echo") >&5
29232   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29233   ac_status=$?
29234   grep -v '^ *+' conftest.er1 >conftest.err
29235   rm -f conftest.er1
29236   cat conftest.err >&5
29237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); } >/dev/null && {
29239          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29240          test ! -s conftest.err
29241        }; then
29242   ac_header_preproc=yes
29243 else
29244   $as_echo "$as_me: failed program was:" >&5
29245 sed 's/^/| /' conftest.$ac_ext >&5
29246
29247   ac_header_preproc=no
29248 fi
29249
29250 rm -f conftest.err conftest.$ac_ext
29251 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29252 $as_echo "$ac_header_preproc" >&6; }
29253
29254 # So?  What about this header?
29255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29256   yes:no: )
29257     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29258 $as_echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29259     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
29260 $as_echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
29261     ac_header_preproc=yes
29262     ;;
29263   no:yes:* )
29264     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
29265 $as_echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
29266     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
29267 $as_echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
29268     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
29269 $as_echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
29270     { $as_echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
29271 $as_echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29272     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
29273 $as_echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
29274     { $as_echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
29275 $as_echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
29276     ( cat <<\_ASBOX
29277 ## ---------------------------------------- ##
29278 ## Report this to pgsql-bugs@postgresql.org ##
29279 ## ---------------------------------------- ##
29280 _ASBOX
29281      ) | sed "s/^/$as_me: WARNING:     /" >&2
29282     ;;
29283 esac
29284 { $as_echo "$as_me:$LINENO: checking for libintl.h" >&5
29285 $as_echo_n "checking for libintl.h... " >&6; }
29286 if test "${ac_cv_header_libintl_h+set}" = set; then
29287   $as_echo_n "(cached) " >&6
29288 else
29289   ac_cv_header_libintl_h=$ac_header_preproc
29290 fi
29291 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
29292 $as_echo "$ac_cv_header_libintl_h" >&6; }
29293
29294 fi
29295 if test "x$ac_cv_header_libintl_h" = x""yes; then
29296   :
29297 else
29298   { { $as_echo "$as_me:$LINENO: error: header file <libintl.h> is required for NLS" >&5
29299 $as_echo "$as_me: error: header file <libintl.h> is required for NLS" >&2;}
29300    { (exit 1); exit 1; }; }
29301 fi
29302
29303
29304   for ac_prog in msgfmt
29305 do
29306   # Extract the first word of "$ac_prog", so it can be a program name with args.
29307 set dummy $ac_prog; ac_word=$2
29308 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29309 $as_echo_n "checking for $ac_word... " >&6; }
29310 if test "${ac_cv_prog_MSGFMT+set}" = set; then
29311   $as_echo_n "(cached) " >&6
29312 else
29313   if test -n "$MSGFMT"; then
29314   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
29315 else
29316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29317 for as_dir in $PATH
29318 do
29319   IFS=$as_save_IFS
29320   test -z "$as_dir" && as_dir=.
29321   for ac_exec_ext in '' $ac_executable_extensions; do
29322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29323     ac_cv_prog_MSGFMT="$ac_prog"
29324     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29325     break 2
29326   fi
29327 done
29328 done
29329 IFS=$as_save_IFS
29330
29331 fi
29332 fi
29333 MSGFMT=$ac_cv_prog_MSGFMT
29334 if test -n "$MSGFMT"; then
29335   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
29336 $as_echo "$MSGFMT" >&6; }
29337 else
29338   { $as_echo "$as_me:$LINENO: result: no" >&5
29339 $as_echo "no" >&6; }
29340 fi
29341
29342
29343   test -n "$MSGFMT" && break
29344 done
29345
29346   if test -z "$MSGFMT"; then
29347     { { $as_echo "$as_me:$LINENO: error: msgfmt is required for NLS" >&5
29348 $as_echo "$as_me: error: msgfmt is required for NLS" >&2;}
29349    { (exit 1); exit 1; }; }
29350   fi
29351   { $as_echo "$as_me:$LINENO: checking for msgfmt flags" >&5
29352 $as_echo_n "checking for msgfmt flags... " >&6; }
29353 if test "${pgac_cv_msgfmt_flags+set}" = set; then
29354   $as_echo_n "(cached) " >&6
29355 else
29356   if test x"$MSGFMT" != x"" && "$MSGFMT" --version 2>&1 | grep "GNU" >/dev/null; then
29357     pgac_cv_msgfmt_flags=-c
29358 fi
29359 fi
29360 { $as_echo "$as_me:$LINENO: result: $pgac_cv_msgfmt_flags" >&5
29361 $as_echo "$pgac_cv_msgfmt_flags" >&6; }
29362   MSGFMT_FLAGS=$pgac_cv_msgfmt_flags
29363
29364   for ac_prog in msgmerge
29365 do
29366   # Extract the first word of "$ac_prog", so it can be a program name with args.
29367 set dummy $ac_prog; ac_word=$2
29368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29369 $as_echo_n "checking for $ac_word... " >&6; }
29370 if test "${ac_cv_prog_MSGMERGE+set}" = set; then
29371   $as_echo_n "(cached) " >&6
29372 else
29373   if test -n "$MSGMERGE"; then
29374   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
29375 else
29376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29377 for as_dir in $PATH
29378 do
29379   IFS=$as_save_IFS
29380   test -z "$as_dir" && as_dir=.
29381   for ac_exec_ext in '' $ac_executable_extensions; do
29382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29383     ac_cv_prog_MSGMERGE="$ac_prog"
29384     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29385     break 2
29386   fi
29387 done
29388 done
29389 IFS=$as_save_IFS
29390
29391 fi
29392 fi
29393 MSGMERGE=$ac_cv_prog_MSGMERGE
29394 if test -n "$MSGMERGE"; then
29395   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
29396 $as_echo "$MSGMERGE" >&6; }
29397 else
29398   { $as_echo "$as_me:$LINENO: result: no" >&5
29399 $as_echo "no" >&6; }
29400 fi
29401
29402
29403   test -n "$MSGMERGE" && break
29404 done
29405
29406   for ac_prog in xgettext
29407 do
29408   # Extract the first word of "$ac_prog", so it can be a program name with args.
29409 set dummy $ac_prog; ac_word=$2
29410 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29411 $as_echo_n "checking for $ac_word... " >&6; }
29412 if test "${ac_cv_prog_XGETTEXT+set}" = set; then
29413   $as_echo_n "(cached) " >&6
29414 else
29415   if test -n "$XGETTEXT"; then
29416   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
29417 else
29418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29419 for as_dir in $PATH
29420 do
29421   IFS=$as_save_IFS
29422   test -z "$as_dir" && as_dir=.
29423   for ac_exec_ext in '' $ac_executable_extensions; do
29424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29425     ac_cv_prog_XGETTEXT="$ac_prog"
29426     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29427     break 2
29428   fi
29429 done
29430 done
29431 IFS=$as_save_IFS
29432
29433 fi
29434 fi
29435 XGETTEXT=$ac_cv_prog_XGETTEXT
29436 if test -n "$XGETTEXT"; then
29437   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
29438 $as_echo "$XGETTEXT" >&6; }
29439 else
29440   { $as_echo "$as_me:$LINENO: result: no" >&5
29441 $as_echo "no" >&6; }
29442 fi
29443
29444
29445   test -n "$XGETTEXT" && break
29446 done
29447
29448
29449 fi
29450
29451 # Check for Tcl configuration script tclConfig.sh
29452 if test "$with_tcl" = yes; then
29453     for ac_prog in tclsh tcl tclsh8.5 tclsh85 tclsh8.4 tclsh84 tclsh8.3 tclsh83
29454 do
29455   # Extract the first word of "$ac_prog", so it can be a program name with args.
29456 set dummy $ac_prog; ac_word=$2
29457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29458 $as_echo_n "checking for $ac_word... " >&6; }
29459 if test "${ac_cv_path_TCLSH+set}" = set; then
29460   $as_echo_n "(cached) " >&6
29461 else
29462   case $TCLSH in
29463   [\\/]* | ?:[\\/]*)
29464   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
29465   ;;
29466   *)
29467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29468 for as_dir in $PATH
29469 do
29470   IFS=$as_save_IFS
29471   test -z "$as_dir" && as_dir=.
29472   for ac_exec_ext in '' $ac_executable_extensions; do
29473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29474     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
29475     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29476     break 2
29477   fi
29478 done
29479 done
29480 IFS=$as_save_IFS
29481
29482   ;;
29483 esac
29484 fi
29485 TCLSH=$ac_cv_path_TCLSH
29486 if test -n "$TCLSH"; then
29487   { $as_echo "$as_me:$LINENO: result: $TCLSH" >&5
29488 $as_echo "$TCLSH" >&6; }
29489 else
29490   { $as_echo "$as_me:$LINENO: result: no" >&5
29491 $as_echo "no" >&6; }
29492 fi
29493
29494
29495   test -n "$TCLSH" && break
29496 done
29497
29498 if test x"$TCLSH" = x""; then
29499   { { $as_echo "$as_me:$LINENO: error: Tcl shell not found" >&5
29500 $as_echo "$as_me: error: Tcl shell not found" >&2;}
29501    { (exit 1); exit 1; }; }
29502 fi
29503
29504 { $as_echo "$as_me:$LINENO: checking for tclConfig.sh" >&5
29505 $as_echo_n "checking for tclConfig.sh... " >&6; }
29506 # Let user override test
29507 if test -z "$TCL_CONFIG_SH"; then
29508     pgac_test_dirs="$with_tclconfig"
29509
29510     set X $pgac_test_dirs; shift
29511     if test $# -eq 0; then
29512         test -z "$TCLSH" && { { $as_echo "$as_me:$LINENO: error: unable to locate tclConfig.sh because no Tcl shell was found" >&5
29513 $as_echo "$as_me: error: unable to locate tclConfig.sh because no Tcl shell was found" >&2;}
29514    { (exit 1); exit 1; }; }
29515         set X `echo 'puts $auto_path' | $TCLSH`; shift
29516     fi
29517
29518     for pgac_dir do
29519         if test -r "$pgac_dir/tclConfig.sh"; then
29520             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
29521             break
29522         fi
29523     done
29524 fi
29525
29526 if test -z "$TCL_CONFIG_SH"; then
29527     { $as_echo "$as_me:$LINENO: result: no" >&5
29528 $as_echo "no" >&6; }
29529     { { $as_echo "$as_me:$LINENO: error: file 'tclConfig.sh' is required for Tcl" >&5
29530 $as_echo "$as_me: error: file 'tclConfig.sh' is required for Tcl" >&2;}
29531    { (exit 1); exit 1; }; }
29532 else
29533     { $as_echo "$as_me:$LINENO: result: $TCL_CONFIG_SH" >&5
29534 $as_echo "$TCL_CONFIG_SH" >&6; }
29535 fi
29536
29537
29538
29539     . "$TCL_CONFIG_SH"
29540 eval TCL_INCLUDE_SPEC=\"$TCL_INCLUDE_SPEC\"
29541 eval TCL_LIB_FILE=\"$TCL_LIB_FILE\"
29542 eval TCL_LIBS=\"$TCL_LIBS\"
29543 eval TCL_LIB_SPEC=\"$TCL_LIB_SPEC\"
29544 eval TCL_SHARED_BUILD=\"$TCL_SHARED_BUILD\"
29545
29546         # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
29547     ac_save_CPPFLAGS=$CPPFLAGS
29548     CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
29549     if test "${ac_cv_header_tcl_h+set}" = set; then
29550   { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29551 $as_echo_n "checking for tcl.h... " >&6; }
29552 if test "${ac_cv_header_tcl_h+set}" = set; then
29553   $as_echo_n "(cached) " >&6
29554 fi
29555 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29556 $as_echo "$ac_cv_header_tcl_h" >&6; }
29557 else
29558   # Is the header compilable?
29559 { $as_echo "$as_me:$LINENO: checking tcl.h usability" >&5
29560 $as_echo_n "checking tcl.h usability... " >&6; }
29561 cat >conftest.$ac_ext <<_ACEOF
29562 /* confdefs.h.  */
29563 _ACEOF
29564 cat confdefs.h >>conftest.$ac_ext
29565 cat >>conftest.$ac_ext <<_ACEOF
29566 /* end confdefs.h.  */
29567 $ac_includes_default
29568 #include <tcl.h>
29569 _ACEOF
29570 rm -f conftest.$ac_objext
29571 if { (ac_try="$ac_compile"
29572 case "(($ac_try" in
29573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29574   *) ac_try_echo=$ac_try;;
29575 esac
29576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29577 $as_echo "$ac_try_echo") >&5
29578   (eval "$ac_compile") 2>conftest.er1
29579   ac_status=$?
29580   grep -v '^ *+' conftest.er1 >conftest.err
29581   rm -f conftest.er1
29582   cat conftest.err >&5
29583   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584   (exit $ac_status); } && {
29585          test -z "$ac_c_werror_flag" ||
29586          test ! -s conftest.err
29587        } && test -s conftest.$ac_objext; then
29588   ac_header_compiler=yes
29589 else
29590   $as_echo "$as_me: failed program was:" >&5
29591 sed 's/^/| /' conftest.$ac_ext >&5
29592
29593         ac_header_compiler=no
29594 fi
29595
29596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29597 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29598 $as_echo "$ac_header_compiler" >&6; }
29599
29600 # Is the header present?
29601 { $as_echo "$as_me:$LINENO: checking tcl.h presence" >&5
29602 $as_echo_n "checking tcl.h presence... " >&6; }
29603 cat >conftest.$ac_ext <<_ACEOF
29604 /* confdefs.h.  */
29605 _ACEOF
29606 cat confdefs.h >>conftest.$ac_ext
29607 cat >>conftest.$ac_ext <<_ACEOF
29608 /* end confdefs.h.  */
29609 #include <tcl.h>
29610 _ACEOF
29611 if { (ac_try="$ac_cpp conftest.$ac_ext"
29612 case "(($ac_try" in
29613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29614   *) ac_try_echo=$ac_try;;
29615 esac
29616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29617 $as_echo "$ac_try_echo") >&5
29618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29619   ac_status=$?
29620   grep -v '^ *+' conftest.er1 >conftest.err
29621   rm -f conftest.er1
29622   cat conftest.err >&5
29623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624   (exit $ac_status); } >/dev/null && {
29625          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29626          test ! -s conftest.err
29627        }; then
29628   ac_header_preproc=yes
29629 else
29630   $as_echo "$as_me: failed program was:" >&5
29631 sed 's/^/| /' conftest.$ac_ext >&5
29632
29633   ac_header_preproc=no
29634 fi
29635
29636 rm -f conftest.err conftest.$ac_ext
29637 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29638 $as_echo "$ac_header_preproc" >&6; }
29639
29640 # So?  What about this header?
29641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29642   yes:no: )
29643     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29644 $as_echo "$as_me: WARNING: tcl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29645     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the compiler's result" >&5
29646 $as_echo "$as_me: WARNING: tcl.h: proceeding with the compiler's result" >&2;}
29647     ac_header_preproc=yes
29648     ;;
29649   no:yes:* )
29650     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: present but cannot be compiled" >&5
29651 $as_echo "$as_me: WARNING: tcl.h: present but cannot be compiled" >&2;}
29652     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     check for missing prerequisite headers?" >&5
29653 $as_echo "$as_me: WARNING: tcl.h:     check for missing prerequisite headers?" >&2;}
29654     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: see the Autoconf documentation" >&5
29655 $as_echo "$as_me: WARNING: tcl.h: see the Autoconf documentation" >&2;}
29656     { $as_echo "$as_me:$LINENO: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&5
29657 $as_echo "$as_me: WARNING: tcl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29658     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: proceeding with the preprocessor's result" >&5
29659 $as_echo "$as_me: WARNING: tcl.h: proceeding with the preprocessor's result" >&2;}
29660     { $as_echo "$as_me:$LINENO: WARNING: tcl.h: in the future, the compiler will take precedence" >&5
29661 $as_echo "$as_me: WARNING: tcl.h: in the future, the compiler will take precedence" >&2;}
29662     ( cat <<\_ASBOX
29663 ## ---------------------------------------- ##
29664 ## Report this to pgsql-bugs@postgresql.org ##
29665 ## ---------------------------------------- ##
29666 _ASBOX
29667      ) | sed "s/^/$as_me: WARNING:     /" >&2
29668     ;;
29669 esac
29670 { $as_echo "$as_me:$LINENO: checking for tcl.h" >&5
29671 $as_echo_n "checking for tcl.h... " >&6; }
29672 if test "${ac_cv_header_tcl_h+set}" = set; then
29673   $as_echo_n "(cached) " >&6
29674 else
29675   ac_cv_header_tcl_h=$ac_header_preproc
29676 fi
29677 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tcl_h" >&5
29678 $as_echo "$ac_cv_header_tcl_h" >&6; }
29679
29680 fi
29681 if test "x$ac_cv_header_tcl_h" = x""yes; then
29682   :
29683 else
29684   { { $as_echo "$as_me:$LINENO: error: header file <tcl.h> is required for Tcl" >&5
29685 $as_echo "$as_me: error: header file <tcl.h> is required for Tcl" >&2;}
29686    { (exit 1); exit 1; }; }
29687 fi
29688
29689
29690     CPPFLAGS=$ac_save_CPPFLAGS
29691 fi
29692
29693 # check for <perl.h>
29694 if test "$with_perl" = yes; then
29695   ac_save_CPPFLAGS=$CPPFLAGS
29696   CPPFLAGS="$CPPFLAGS -I$perl_archlibexp/CORE"
29697   { $as_echo "$as_me:$LINENO: checking for perl.h" >&5
29698 $as_echo_n "checking for perl.h... " >&6; }
29699 if test "${ac_cv_header_perl_h+set}" = set; then
29700   $as_echo_n "(cached) " >&6
29701 else
29702   cat >conftest.$ac_ext <<_ACEOF
29703 /* confdefs.h.  */
29704 _ACEOF
29705 cat confdefs.h >>conftest.$ac_ext
29706 cat >>conftest.$ac_ext <<_ACEOF
29707 /* end confdefs.h.  */
29708 #include <EXTERN.h>
29709
29710 #include <perl.h>
29711 _ACEOF
29712 rm -f conftest.$ac_objext
29713 if { (ac_try="$ac_compile"
29714 case "(($ac_try" in
29715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29716   *) ac_try_echo=$ac_try;;
29717 esac
29718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29719 $as_echo "$ac_try_echo") >&5
29720   (eval "$ac_compile") 2>conftest.er1
29721   ac_status=$?
29722   grep -v '^ *+' conftest.er1 >conftest.err
29723   rm -f conftest.er1
29724   cat conftest.err >&5
29725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29726   (exit $ac_status); } && {
29727          test -z "$ac_c_werror_flag" ||
29728          test ! -s conftest.err
29729        } && test -s conftest.$ac_objext; then
29730   ac_cv_header_perl_h=yes
29731 else
29732   $as_echo "$as_me: failed program was:" >&5
29733 sed 's/^/| /' conftest.$ac_ext >&5
29734
29735         ac_cv_header_perl_h=no
29736 fi
29737
29738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29739 fi
29740 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_perl_h" >&5
29741 $as_echo "$ac_cv_header_perl_h" >&6; }
29742 if test "x$ac_cv_header_perl_h" = x""yes; then
29743   :
29744 else
29745   { { $as_echo "$as_me:$LINENO: error: header file <perl.h> is required for Perl" >&5
29746 $as_echo "$as_me: error: header file <perl.h> is required for Perl" >&2;}
29747    { (exit 1); exit 1; }; }
29748 fi
29749
29750
29751   # While we're at it, check that we can link to libperl.
29752   # On most platforms, if perl.h is there then libperl.so will be too, but at
29753   # this writing Debian packages them separately.  There is no known reason to
29754   # waste cycles on separate probes for the Tcl or Python libraries, though.
29755   pgac_save_LIBS=$LIBS
29756   LIBS="$perl_embed_ldflags"
29757   { $as_echo "$as_me:$LINENO: checking for libperl" >&5
29758 $as_echo_n "checking for libperl... " >&6; }
29759   cat >conftest.$ac_ext <<_ACEOF
29760 /* confdefs.h.  */
29761 _ACEOF
29762 cat confdefs.h >>conftest.$ac_ext
29763 cat >>conftest.$ac_ext <<_ACEOF
29764 /* end confdefs.h.  */
29765
29766 #include <EXTERN.h>
29767 #include <perl.h>
29768
29769 int
29770 main ()
29771 {
29772 perl_alloc();
29773   ;
29774   return 0;
29775 }
29776 _ACEOF
29777 rm -f conftest.$ac_objext conftest$ac_exeext
29778 if { (ac_try="$ac_link"
29779 case "(($ac_try" in
29780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29781   *) ac_try_echo=$ac_try;;
29782 esac
29783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29784 $as_echo "$ac_try_echo") >&5
29785   (eval "$ac_link") 2>conftest.er1
29786   ac_status=$?
29787   grep -v '^ *+' conftest.er1 >conftest.err
29788   rm -f conftest.er1
29789   cat conftest.err >&5
29790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } && {
29792          test -z "$ac_c_werror_flag" ||
29793          test ! -s conftest.err
29794        } && test -s conftest$ac_exeext && {
29795          test "$cross_compiling" = yes ||
29796          $as_test_x conftest$ac_exeext
29797        }; then
29798   { $as_echo "$as_me:$LINENO: result: yes" >&5
29799 $as_echo "yes" >&6; }
29800 else
29801   $as_echo "$as_me: failed program was:" >&5
29802 sed 's/^/| /' conftest.$ac_ext >&5
29803
29804         { $as_echo "$as_me:$LINENO: result: no" >&5
29805 $as_echo "no" >&6; }
29806      { { $as_echo "$as_me:$LINENO: error: libperl library is required for Perl" >&5
29807 $as_echo "$as_me: error: libperl library is required for Perl" >&2;}
29808    { (exit 1); exit 1; }; }
29809 fi
29810
29811 rm -rf conftest.dSYM
29812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29813       conftest$ac_exeext conftest.$ac_ext
29814   LIBS=$pgac_save_LIBS
29815   CPPFLAGS=$ac_save_CPPFLAGS
29816 fi
29817
29818 # check for <Python.h>
29819 if test "$with_python" = yes; then
29820   ac_save_CPPFLAGS=$CPPFLAGS
29821   CPPFLAGS="$python_includespec $CPPFLAGS"
29822   if test "${ac_cv_header_Python_h+set}" = set; then
29823   { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29824 $as_echo_n "checking for Python.h... " >&6; }
29825 if test "${ac_cv_header_Python_h+set}" = set; then
29826   $as_echo_n "(cached) " >&6
29827 fi
29828 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29829 $as_echo "$ac_cv_header_Python_h" >&6; }
29830 else
29831   # Is the header compilable?
29832 { $as_echo "$as_me:$LINENO: checking Python.h usability" >&5
29833 $as_echo_n "checking Python.h usability... " >&6; }
29834 cat >conftest.$ac_ext <<_ACEOF
29835 /* confdefs.h.  */
29836 _ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h.  */
29840 $ac_includes_default
29841 #include <Python.h>
29842 _ACEOF
29843 rm -f conftest.$ac_objext
29844 if { (ac_try="$ac_compile"
29845 case "(($ac_try" in
29846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29847   *) ac_try_echo=$ac_try;;
29848 esac
29849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29850 $as_echo "$ac_try_echo") >&5
29851   (eval "$ac_compile") 2>conftest.er1
29852   ac_status=$?
29853   grep -v '^ *+' conftest.er1 >conftest.err
29854   rm -f conftest.er1
29855   cat conftest.err >&5
29856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29857   (exit $ac_status); } && {
29858          test -z "$ac_c_werror_flag" ||
29859          test ! -s conftest.err
29860        } && test -s conftest.$ac_objext; then
29861   ac_header_compiler=yes
29862 else
29863   $as_echo "$as_me: failed program was:" >&5
29864 sed 's/^/| /' conftest.$ac_ext >&5
29865
29866         ac_header_compiler=no
29867 fi
29868
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29871 $as_echo "$ac_header_compiler" >&6; }
29872
29873 # Is the header present?
29874 { $as_echo "$as_me:$LINENO: checking Python.h presence" >&5
29875 $as_echo_n "checking Python.h presence... " >&6; }
29876 cat >conftest.$ac_ext <<_ACEOF
29877 /* confdefs.h.  */
29878 _ACEOF
29879 cat confdefs.h >>conftest.$ac_ext
29880 cat >>conftest.$ac_ext <<_ACEOF
29881 /* end confdefs.h.  */
29882 #include <Python.h>
29883 _ACEOF
29884 if { (ac_try="$ac_cpp conftest.$ac_ext"
29885 case "(($ac_try" in
29886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29887   *) ac_try_echo=$ac_try;;
29888 esac
29889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29890 $as_echo "$ac_try_echo") >&5
29891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29892   ac_status=$?
29893   grep -v '^ *+' conftest.er1 >conftest.err
29894   rm -f conftest.er1
29895   cat conftest.err >&5
29896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29897   (exit $ac_status); } >/dev/null && {
29898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29899          test ! -s conftest.err
29900        }; then
29901   ac_header_preproc=yes
29902 else
29903   $as_echo "$as_me: failed program was:" >&5
29904 sed 's/^/| /' conftest.$ac_ext >&5
29905
29906   ac_header_preproc=no
29907 fi
29908
29909 rm -f conftest.err conftest.$ac_ext
29910 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29911 $as_echo "$ac_header_preproc" >&6; }
29912
29913 # So?  What about this header?
29914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29915   yes:no: )
29916     { $as_echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
29917 $as_echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29918     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
29919 $as_echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
29920     ac_header_preproc=yes
29921     ;;
29922   no:yes:* )
29923     { $as_echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
29924 $as_echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
29925     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
29926 $as_echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
29927     { $as_echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
29928 $as_echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
29929     { $as_echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
29930 $as_echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29931     { $as_echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
29932 $as_echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
29933     { $as_echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
29934 $as_echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
29935     ( cat <<\_ASBOX
29936 ## ---------------------------------------- ##
29937 ## Report this to pgsql-bugs@postgresql.org ##
29938 ## ---------------------------------------- ##
29939 _ASBOX
29940      ) | sed "s/^/$as_me: WARNING:     /" >&2
29941     ;;
29942 esac
29943 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
29944 $as_echo_n "checking for Python.h... " >&6; }
29945 if test "${ac_cv_header_Python_h+set}" = set; then
29946   $as_echo_n "(cached) " >&6
29947 else
29948   ac_cv_header_Python_h=$ac_header_preproc
29949 fi
29950 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
29951 $as_echo "$ac_cv_header_Python_h" >&6; }
29952
29953 fi
29954 if test "x$ac_cv_header_Python_h" = x""yes; then
29955   :
29956 else
29957   { { $as_echo "$as_me:$LINENO: error: header file <Python.h> is required for Python" >&5
29958 $as_echo "$as_me: error: header file <Python.h> is required for Python" >&2;}
29959    { (exit 1); exit 1; }; }
29960 fi
29961
29962
29963   CPPFLAGS=$ac_save_CPPFLAGS
29964 fi
29965
29966 #
29967 # Check for DocBook and tools
29968 #
29969 for ac_prog in onsgmls nsgmls
29970 do
29971   # Extract the first word of "$ac_prog", so it can be a program name with args.
29972 set dummy $ac_prog; ac_word=$2
29973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
29974 $as_echo_n "checking for $ac_word... " >&6; }
29975 if test "${ac_cv_prog_NSGMLS+set}" = set; then
29976   $as_echo_n "(cached) " >&6
29977 else
29978   if test -n "$NSGMLS"; then
29979   ac_cv_prog_NSGMLS="$NSGMLS" # Let the user override the test.
29980 else
29981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29982 for as_dir in $PATH
29983 do
29984   IFS=$as_save_IFS
29985   test -z "$as_dir" && as_dir=.
29986   for ac_exec_ext in '' $ac_executable_extensions; do
29987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29988     ac_cv_prog_NSGMLS="$ac_prog"
29989     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29990     break 2
29991   fi
29992 done
29993 done
29994 IFS=$as_save_IFS
29995
29996 fi
29997 fi
29998 NSGMLS=$ac_cv_prog_NSGMLS
29999 if test -n "$NSGMLS"; then
30000   { $as_echo "$as_me:$LINENO: result: $NSGMLS" >&5
30001 $as_echo "$NSGMLS" >&6; }
30002 else
30003   { $as_echo "$as_me:$LINENO: result: no" >&5
30004 $as_echo "no" >&6; }
30005 fi
30006
30007
30008   test -n "$NSGMLS" && break
30009 done
30010
30011 for ac_prog in openjade jade
30012 do
30013   # Extract the first word of "$ac_prog", so it can be a program name with args.
30014 set dummy $ac_prog; ac_word=$2
30015 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30016 $as_echo_n "checking for $ac_word... " >&6; }
30017 if test "${ac_cv_prog_JADE+set}" = set; then
30018   $as_echo_n "(cached) " >&6
30019 else
30020   if test -n "$JADE"; then
30021   ac_cv_prog_JADE="$JADE" # Let the user override the test.
30022 else
30023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30024 for as_dir in $PATH
30025 do
30026   IFS=$as_save_IFS
30027   test -z "$as_dir" && as_dir=.
30028   for ac_exec_ext in '' $ac_executable_extensions; do
30029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30030     ac_cv_prog_JADE="$ac_prog"
30031     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30032     break 2
30033   fi
30034 done
30035 done
30036 IFS=$as_save_IFS
30037
30038 fi
30039 fi
30040 JADE=$ac_cv_prog_JADE
30041 if test -n "$JADE"; then
30042   { $as_echo "$as_me:$LINENO: result: $JADE" >&5
30043 $as_echo "$JADE" >&6; }
30044 else
30045   { $as_echo "$as_me:$LINENO: result: no" >&5
30046 $as_echo "no" >&6; }
30047 fi
30048
30049
30050   test -n "$JADE" && break
30051 done
30052
30053
30054 { $as_echo "$as_me:$LINENO: checking for DocBook V4.2" >&5
30055 $as_echo_n "checking for DocBook V4.2... " >&6; }
30056 if test "${pgac_cv_check_docbook+set}" = set; then
30057   $as_echo_n "(cached) " >&6
30058 else
30059   cat >conftest.sgml <<EOF
30060 <!doctype book PUBLIC "-//OASIS//DTD DocBook V4.2//EN">
30061 <book>
30062  <title>test</title>
30063  <chapter>
30064   <title>random</title>
30065    <sect1>
30066     <title>testsect</title>
30067     <para>text</para>
30068   </sect1>
30069  </chapter>
30070 </book>
30071 EOF
30072
30073 pgac_cv_check_docbook=no
30074
30075 if test -n "$NSGMLS"; then
30076   $NSGMLS -s conftest.sgml 1>&5 2>&1
30077   if test $? -eq 0; then
30078     pgac_cv_check_docbook=yes
30079   fi
30080 fi
30081 rm -f conftest.sgml
30082 fi
30083 { $as_echo "$as_me:$LINENO: result: $pgac_cv_check_docbook" >&5
30084 $as_echo "$pgac_cv_check_docbook" >&6; }
30085
30086 have_docbook=$pgac_cv_check_docbook
30087
30088
30089 { $as_echo "$as_me:$LINENO: checking for DocBook stylesheets" >&5
30090 $as_echo_n "checking for DocBook stylesheets... " >&6; }
30091 if test "${pgac_cv_path_stylesheets+set}" = set; then
30092   $as_echo_n "(cached) " >&6
30093 else
30094   if test -n "$DOCBOOKSTYLE"; then
30095   pgac_cv_path_stylesheets=$DOCBOOKSTYLE
30096 else
30097   for pgac_prefix in /usr /usr/local /opt /sw; do
30098     for pgac_infix in share lib; do
30099       for pgac_postfix in \
30100         sgml/stylesheets/nwalsh-modular \
30101         sgml/stylesheets/docbook \
30102         sgml/stylesheets/dsssl/docbook \
30103         sgml/docbook-dsssl \
30104         sgml/docbook/dsssl/modular \
30105         sgml/docbook/stylesheet/dsssl/modular \
30106         sgml/docbook/dsssl-stylesheets \
30107         sgml/dsssl/docbook-dsssl-nwalsh
30108       do
30109         pgac_candidate=$pgac_prefix/$pgac_infix/$pgac_postfix
30110         if test -r "$pgac_candidate/html/docbook.dsl" \
30111            && test -r "$pgac_candidate/print/docbook.dsl"
30112         then
30113           pgac_cv_path_stylesheets=$pgac_candidate
30114           break 3
30115         fi
30116       done
30117     done
30118   done
30119 fi
30120 fi
30121
30122 DOCBOOKSTYLE=$pgac_cv_path_stylesheets
30123
30124 if test -n "$DOCBOOKSTYLE"; then
30125   { $as_echo "$as_me:$LINENO: result: $DOCBOOKSTYLE" >&5
30126 $as_echo "$DOCBOOKSTYLE" >&6; }
30127 else
30128   { $as_echo "$as_me:$LINENO: result: no" >&5
30129 $as_echo "no" >&6; }
30130 fi
30131 if test -n "$DOCBOOKSTYLE" -a -r "$DOCBOOKSTYLE/bin/collateindex.pl"; then
30132   COLLATEINDEX="$DOCBOOKSTYLE/bin/collateindex.pl"
30133
30134 else
30135   # Extract the first word of "collateindex.pl", so it can be a program name with args.
30136 set dummy collateindex.pl; ac_word=$2
30137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30138 $as_echo_n "checking for $ac_word... " >&6; }
30139 if test "${ac_cv_path_COLLATEINDEX+set}" = set; then
30140   $as_echo_n "(cached) " >&6
30141 else
30142   case $COLLATEINDEX in
30143   [\\/]* | ?:[\\/]*)
30144   ac_cv_path_COLLATEINDEX="$COLLATEINDEX" # Let the user override the test with a path.
30145   ;;
30146   *)
30147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30148 for as_dir in $PATH
30149 do
30150   IFS=$as_save_IFS
30151   test -z "$as_dir" && as_dir=.
30152   for ac_exec_ext in '' $ac_executable_extensions; do
30153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30154     ac_cv_path_COLLATEINDEX="$as_dir/$ac_word$ac_exec_ext"
30155     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30156     break 2
30157   fi
30158 done
30159 done
30160 IFS=$as_save_IFS
30161
30162   ;;
30163 esac
30164 fi
30165 COLLATEINDEX=$ac_cv_path_COLLATEINDEX
30166 if test -n "$COLLATEINDEX"; then
30167   { $as_echo "$as_me:$LINENO: result: $COLLATEINDEX" >&5
30168 $as_echo "$COLLATEINDEX" >&6; }
30169 else
30170   { $as_echo "$as_me:$LINENO: result: no" >&5
30171 $as_echo "no" >&6; }
30172 fi
30173
30174
30175 fi
30176 for ac_prog in xsltproc
30177 do
30178   # Extract the first word of "$ac_prog", so it can be a program name with args.
30179 set dummy $ac_prog; ac_word=$2
30180 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30181 $as_echo_n "checking for $ac_word... " >&6; }
30182 if test "${ac_cv_prog_XSLTPROC+set}" = set; then
30183   $as_echo_n "(cached) " >&6
30184 else
30185   if test -n "$XSLTPROC"; then
30186   ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
30187 else
30188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30189 for as_dir in $PATH
30190 do
30191   IFS=$as_save_IFS
30192   test -z "$as_dir" && as_dir=.
30193   for ac_exec_ext in '' $ac_executable_extensions; do
30194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30195     ac_cv_prog_XSLTPROC="$ac_prog"
30196     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30197     break 2
30198   fi
30199 done
30200 done
30201 IFS=$as_save_IFS
30202
30203 fi
30204 fi
30205 XSLTPROC=$ac_cv_prog_XSLTPROC
30206 if test -n "$XSLTPROC"; then
30207   { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
30208 $as_echo "$XSLTPROC" >&6; }
30209 else
30210   { $as_echo "$as_me:$LINENO: result: no" >&5
30211 $as_echo "no" >&6; }
30212 fi
30213
30214
30215   test -n "$XSLTPROC" && break
30216 done
30217
30218 for ac_prog in osx sgml2xml sx
30219 do
30220   # Extract the first word of "$ac_prog", so it can be a program name with args.
30221 set dummy $ac_prog; ac_word=$2
30222 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30223 $as_echo_n "checking for $ac_word... " >&6; }
30224 if test "${ac_cv_prog_OSX+set}" = set; then
30225   $as_echo_n "(cached) " >&6
30226 else
30227   if test -n "$OSX"; then
30228   ac_cv_prog_OSX="$OSX" # Let the user override the test.
30229 else
30230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30231 for as_dir in $PATH
30232 do
30233   IFS=$as_save_IFS
30234   test -z "$as_dir" && as_dir=.
30235   for ac_exec_ext in '' $ac_executable_extensions; do
30236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30237     ac_cv_prog_OSX="$ac_prog"
30238     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30239     break 2
30240   fi
30241 done
30242 done
30243 IFS=$as_save_IFS
30244
30245 fi
30246 fi
30247 OSX=$ac_cv_prog_OSX
30248 if test -n "$OSX"; then
30249   { $as_echo "$as_me:$LINENO: result: $OSX" >&5
30250 $as_echo "$OSX" >&6; }
30251 else
30252   { $as_echo "$as_me:$LINENO: result: no" >&5
30253 $as_echo "no" >&6; }
30254 fi
30255
30256
30257   test -n "$OSX" && break
30258 done
30259
30260
30261 # Thread testing
30262
30263 # We have to run the thread test near the end so we have all our symbols
30264 # defined.  Cross compiling throws a warning.
30265 #
30266 if test "$enable_thread_safety" = yes; then
30267 if test "$PORTNAME" != "win32"
30268 then
30269 { $as_echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
30270 $as_echo_n "checking thread safety of required library functions... " >&6; }
30271
30272 _CFLAGS="$CFLAGS"
30273 _LIBS="$LIBS"
30274 CFLAGS="$CFLAGS $PTHREAD_CFLAGS -DIN_CONFIGURE"
30275 LIBS="$LIBS $PTHREAD_LIBS"
30276 if test "$cross_compiling" = yes; then
30277   { $as_echo "$as_me:$LINENO: result: maybe" >&5
30278 $as_echo "maybe" >&6; }
30279   { $as_echo "$as_me:$LINENO: WARNING:
30280 *** Skipping thread test program because of cross-compile build.
30281 *** Run the program in src/test/thread on the target machine.
30282 " >&5
30283 $as_echo "$as_me: WARNING:
30284 *** Skipping thread test program because of cross-compile build.
30285 *** Run the program in src/test/thread on the target machine.
30286 " >&2;}
30287 else
30288   cat >conftest.$ac_ext <<_ACEOF
30289 /* confdefs.h.  */
30290 _ACEOF
30291 cat confdefs.h >>conftest.$ac_ext
30292 cat >>conftest.$ac_ext <<_ACEOF
30293 /* end confdefs.h.  */
30294 #include "$srcdir/src/test/thread/thread_test.c"
30295 _ACEOF
30296 rm -f conftest$ac_exeext
30297 if { (ac_try="$ac_link"
30298 case "(($ac_try" in
30299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30300   *) ac_try_echo=$ac_try;;
30301 esac
30302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30303 $as_echo "$ac_try_echo") >&5
30304   (eval "$ac_link") 2>&5
30305   ac_status=$?
30306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30308   { (case "(($ac_try" in
30309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30310   *) ac_try_echo=$ac_try;;
30311 esac
30312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30313 $as_echo "$ac_try_echo") >&5
30314   (eval "$ac_try") 2>&5
30315   ac_status=$?
30316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30317   (exit $ac_status); }; }; then
30318   { $as_echo "$as_me:$LINENO: result: yes" >&5
30319 $as_echo "yes" >&6; }
30320 else
30321   $as_echo "$as_me: program exited with status $ac_status" >&5
30322 $as_echo "$as_me: failed program was:" >&5
30323 sed 's/^/| /' conftest.$ac_ext >&5
30324
30325 ( exit $ac_status )
30326 { $as_echo "$as_me:$LINENO: result: no" >&5
30327 $as_echo "no" >&6; }
30328   { { $as_echo "$as_me:$LINENO: error: thread test program failed
30329 This platform is not thread-safe.  Check the file 'config.log' or compile
30330 and run src/test/thread/thread_test for the exact reason.
30331 Use --disable-thread-safety to disable thread safety." >&5
30332 $as_echo "$as_me: error: thread test program failed
30333 This platform is not thread-safe.  Check the file 'config.log' or compile
30334 and run src/test/thread/thread_test for the exact reason.
30335 Use --disable-thread-safety to disable thread safety." >&2;}
30336    { (exit 1); exit 1; }; }
30337 fi
30338 rm -rf conftest.dSYM
30339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30340 fi
30341
30342
30343 CFLAGS="$_CFLAGS"
30344 LIBS="$_LIBS"
30345 else
30346 { $as_echo "$as_me:$LINENO: WARNING: *** skipping thread test on Win32" >&5
30347 $as_echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
30348 fi
30349 fi
30350
30351 # If compiler will take -Wl,--as-needed (or various platform-specific
30352 # spellings thereof) then add that to LDFLAGS.  This is much easier than
30353 # trying to filter LIBS to the minimum for each executable.
30354 # On (at least) some Red-Hat-derived systems, this switch breaks linking to
30355 # libreadline; therefore we postpone testing it until we know what library
30356 # dependencies readline has.  The test code will try to link with $LIBS.
30357 if test "$with_readline" = yes; then
30358   link_test_func=readline
30359 else
30360   link_test_func=exit
30361 fi
30362
30363 if test "$PORTNAME" = "darwin"; then
30364   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-dead_strip_dylibs" >&5
30365 $as_echo_n "checking whether $CC supports -Wl,-dead_strip_dylibs... " >&6; }
30366 if test "${pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs+set}" = set; then
30367   $as_echo_n "(cached) " >&6
30368 else
30369   pgac_save_LDFLAGS=$LDFLAGS
30370 LDFLAGS="$pgac_save_LDFLAGS -Wl,-dead_strip_dylibs"
30371 if test "$cross_compiling" = yes; then
30372   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs="assuming no"
30373 else
30374   cat >conftest.$ac_ext <<_ACEOF
30375 /* confdefs.h.  */
30376 _ACEOF
30377 cat confdefs.h >>conftest.$ac_ext
30378 cat >>conftest.$ac_ext <<_ACEOF
30379 /* end confdefs.h.  */
30380 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30381 int
30382 main ()
30383 {
30384
30385   ;
30386   return 0;
30387 }
30388 _ACEOF
30389 rm -f conftest$ac_exeext
30390 if { (ac_try="$ac_link"
30391 case "(($ac_try" in
30392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30393   *) ac_try_echo=$ac_try;;
30394 esac
30395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30396 $as_echo "$ac_try_echo") >&5
30397   (eval "$ac_link") 2>&5
30398   ac_status=$?
30399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30401   { (case "(($ac_try" in
30402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30403   *) ac_try_echo=$ac_try;;
30404 esac
30405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30406 $as_echo "$ac_try_echo") >&5
30407   (eval "$ac_try") 2>&5
30408   ac_status=$?
30409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30410   (exit $ac_status); }; }; then
30411   pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=yes
30412 else
30413   $as_echo "$as_me: program exited with status $ac_status" >&5
30414 $as_echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.$ac_ext >&5
30416
30417 ( exit $ac_status )
30418 pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs=no
30419 fi
30420 rm -rf conftest.dSYM
30421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30422 fi
30423
30424
30425 LDFLAGS="$pgac_save_LDFLAGS"
30426 fi
30427 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&5
30428 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" >&6; }
30429 if test x"$pgac_cv_prog_cc_ldflags__Wl__dead_strip_dylibs" = x"yes"; then
30430   LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
30431 fi
30432
30433 elif test "$PORTNAME" = "openbsd"; then
30434   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,-Bdynamic" >&5
30435 $as_echo_n "checking whether $CC supports -Wl,-Bdynamic... " >&6; }
30436 if test "${pgac_cv_prog_cc_ldflags__Wl__Bdynamic+set}" = set; then
30437   $as_echo_n "(cached) " >&6
30438 else
30439   pgac_save_LDFLAGS=$LDFLAGS
30440 LDFLAGS="$pgac_save_LDFLAGS -Wl,-Bdynamic"
30441 if test "$cross_compiling" = yes; then
30442   pgac_cv_prog_cc_ldflags__Wl__Bdynamic="assuming no"
30443 else
30444   cat >conftest.$ac_ext <<_ACEOF
30445 /* confdefs.h.  */
30446 _ACEOF
30447 cat confdefs.h >>conftest.$ac_ext
30448 cat >>conftest.$ac_ext <<_ACEOF
30449 /* end confdefs.h.  */
30450 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30451 int
30452 main ()
30453 {
30454
30455   ;
30456   return 0;
30457 }
30458 _ACEOF
30459 rm -f conftest$ac_exeext
30460 if { (ac_try="$ac_link"
30461 case "(($ac_try" in
30462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30463   *) ac_try_echo=$ac_try;;
30464 esac
30465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30466 $as_echo "$ac_try_echo") >&5
30467   (eval "$ac_link") 2>&5
30468   ac_status=$?
30469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30471   { (case "(($ac_try" in
30472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30473   *) ac_try_echo=$ac_try;;
30474 esac
30475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30476 $as_echo "$ac_try_echo") >&5
30477   (eval "$ac_try") 2>&5
30478   ac_status=$?
30479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480   (exit $ac_status); }; }; then
30481   pgac_cv_prog_cc_ldflags__Wl__Bdynamic=yes
30482 else
30483   $as_echo "$as_me: program exited with status $ac_status" >&5
30484 $as_echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30486
30487 ( exit $ac_status )
30488 pgac_cv_prog_cc_ldflags__Wl__Bdynamic=no
30489 fi
30490 rm -rf conftest.dSYM
30491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30492 fi
30493
30494
30495 LDFLAGS="$pgac_save_LDFLAGS"
30496 fi
30497 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&5
30498 $as_echo "$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" >&6; }
30499 if test x"$pgac_cv_prog_cc_ldflags__Wl__Bdynamic" = x"yes"; then
30500   LDFLAGS="$LDFLAGS -Wl,-Bdynamic"
30501 fi
30502
30503 else
30504   { $as_echo "$as_me:$LINENO: checking whether $CC supports -Wl,--as-needed" >&5
30505 $as_echo_n "checking whether $CC supports -Wl,--as-needed... " >&6; }
30506 if test "${pgac_cv_prog_cc_ldflags__Wl___as_needed+set}" = set; then
30507   $as_echo_n "(cached) " >&6
30508 else
30509   pgac_save_LDFLAGS=$LDFLAGS
30510 LDFLAGS="$pgac_save_LDFLAGS -Wl,--as-needed"
30511 if test "$cross_compiling" = yes; then
30512   pgac_cv_prog_cc_ldflags__Wl___as_needed="assuming no"
30513 else
30514   cat >conftest.$ac_ext <<_ACEOF
30515 /* confdefs.h.  */
30516 _ACEOF
30517 cat confdefs.h >>conftest.$ac_ext
30518 cat >>conftest.$ac_ext <<_ACEOF
30519 /* end confdefs.h.  */
30520 extern void $link_test_func (); void (*fptr) () = $link_test_func;
30521 int
30522 main ()
30523 {
30524
30525   ;
30526   return 0;
30527 }
30528 _ACEOF
30529 rm -f conftest$ac_exeext
30530 if { (ac_try="$ac_link"
30531 case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30536 $as_echo "$ac_try_echo") >&5
30537   (eval "$ac_link") 2>&5
30538   ac_status=$?
30539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30541   { (case "(($ac_try" in
30542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543   *) ac_try_echo=$ac_try;;
30544 esac
30545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30546 $as_echo "$ac_try_echo") >&5
30547   (eval "$ac_try") 2>&5
30548   ac_status=$?
30549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550   (exit $ac_status); }; }; then
30551   pgac_cv_prog_cc_ldflags__Wl___as_needed=yes
30552 else
30553   $as_echo "$as_me: program exited with status $ac_status" >&5
30554 $as_echo "$as_me: failed program was:" >&5
30555 sed 's/^/| /' conftest.$ac_ext >&5
30556
30557 ( exit $ac_status )
30558 pgac_cv_prog_cc_ldflags__Wl___as_needed=no
30559 fi
30560 rm -rf conftest.dSYM
30561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30562 fi
30563
30564
30565 LDFLAGS="$pgac_save_LDFLAGS"
30566 fi
30567 { $as_echo "$as_me:$LINENO: result: $pgac_cv_prog_cc_ldflags__Wl___as_needed" >&5
30568 $as_echo "$pgac_cv_prog_cc_ldflags__Wl___as_needed" >&6; }
30569 if test x"$pgac_cv_prog_cc_ldflags__Wl___as_needed" = x"yes"; then
30570   LDFLAGS="$LDFLAGS -Wl,--as-needed"
30571 fi
30572
30573 fi
30574
30575 # Create compiler version string
30576 if test x"$GCC" = x"yes" ; then
30577   cc_string=`${CC} --version | sed q`
30578   case $cc_string in [A-Za-z]*) ;; *) cc_string="GCC $cc_string";; esac
30579 elif test x"$SUN_STUDIO_CC" = x"yes" ; then
30580   cc_string=`${CC} -V 2>&1 | sed q`
30581 else
30582   cc_string=$CC
30583 fi
30584
30585
30586 cat >>confdefs.h <<_ACEOF
30587 #define PG_VERSION_STR "PostgreSQL $PACKAGE_VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"
30588 _ACEOF
30589
30590
30591 # Supply a numeric version string for use by 3rd party add-ons
30592 # awk -F is a regex on some platforms, and not on others, so make "." a tab
30593 PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
30594 tr '.' '        ' |
30595 $AWK '{printf "%d%02d%02d", $1, $2, (NF >= 3) ? $3 : 0}'`"
30596
30597 cat >>confdefs.h <<_ACEOF
30598 #define PG_VERSION_NUM $PG_VERSION_NUM
30599 _ACEOF
30600
30601
30602
30603 # Begin output steps
30604
30605 { $as_echo "$as_me:$LINENO: using compiler=$cc_string" >&5
30606 $as_echo "$as_me: using compiler=$cc_string" >&6;}
30607 { $as_echo "$as_me:$LINENO: using CFLAGS=$CFLAGS" >&5
30608 $as_echo "$as_me: using CFLAGS=$CFLAGS" >&6;}
30609 { $as_echo "$as_me:$LINENO: using CPPFLAGS=$CPPFLAGS" >&5
30610 $as_echo "$as_me: using CPPFLAGS=$CPPFLAGS" >&6;}
30611 { $as_echo "$as_me:$LINENO: using LDFLAGS=$LDFLAGS" >&5
30612 $as_echo "$as_me: using LDFLAGS=$LDFLAGS" >&6;}
30613
30614 # prepare build tree if outside source tree
30615 # Note 1: test -ef might not exist, but it's more reliable than `pwd`.
30616 # Note 2: /bin/pwd might be better than shell's built-in at getting
30617 #         a symlink-free name.
30618 if ( test "$srcdir" -ef . ) >/dev/null 2>&1 || test "`cd $srcdir && /bin/pwd`" = "`/bin/pwd`"; then
30619   vpath_build=no
30620 else
30621   vpath_build=yes
30622   if test "$no_create" != yes; then
30623     $as_echo_n "preparing build tree... " >&6
30624     pgac_abs_top_srcdir=`cd "$srcdir" && pwd`
30625     $SHELL "$ac_aux_dir/prep_buildtree" "$pgac_abs_top_srcdir" "." \
30626       || { { $as_echo "$as_me:$LINENO: error: failed" >&5
30627 $as_echo "$as_me: error: failed" >&2;}
30628    { (exit 1); exit 1; }; }
30629     { $as_echo "$as_me:$LINENO: result: done" >&5
30630 $as_echo "done" >&6; }
30631   fi
30632 fi
30633
30634
30635
30636 ac_config_files="$ac_config_files GNUmakefile src/Makefile.global"
30637
30638
30639 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/backend/port/pg_latch.c:${LATCH_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}"
30640
30641
30642 if test "$PORTNAME" = "win32"; then
30643 ac_config_commands="$ac_config_commands check_win32_symlinks"
30644
30645 fi
30646
30647 ac_config_headers="$ac_config_headers src/include/pg_config.h"
30648
30649
30650 ac_config_headers="$ac_config_headers src/include/pg_config_ext.h"
30651
30652
30653 ac_config_headers="$ac_config_headers src/interfaces/ecpg/include/ecpg_config.h"
30654
30655
30656 cat >confcache <<\_ACEOF
30657 # This file is a shell script that caches the results of configure
30658 # tests run on this system so they can be shared between configure
30659 # scripts and configure runs, see configure's option --config-cache.
30660 # It is not useful on other systems.  If it contains results you don't
30661 # want to keep, you may remove or edit it.
30662 #
30663 # config.status only pays attention to the cache file if you give it
30664 # the --recheck option to rerun configure.
30665 #
30666 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30667 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30668 # following values.
30669
30670 _ACEOF
30671
30672 # The following way of writing the cache mishandles newlines in values,
30673 # but we know of no workaround that is simple, portable, and efficient.
30674 # So, we kill variables containing newlines.
30675 # Ultrix sh set writes to stderr and can't be redirected directly,
30676 # and sets the high bit in the cache file unless we assign to the vars.
30677 (
30678   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30679     eval ac_val=\$$ac_var
30680     case $ac_val in #(
30681     *${as_nl}*)
30682       case $ac_var in #(
30683       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
30684 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30685       esac
30686       case $ac_var in #(
30687       _ | IFS | as_nl) ;; #(
30688       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30689       *) $as_unset $ac_var ;;
30690       esac ;;
30691     esac
30692   done
30693
30694   (set) 2>&1 |
30695     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30696     *${as_nl}ac_space=\ *)
30697       # `set' does not quote correctly, so add quotes (double-quote
30698       # substitution turns \\\\ into \\, and sed turns \\ into \).
30699       sed -n \
30700         "s/'/'\\\\''/g;
30701           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30702       ;; #(
30703     *)
30704       # `set' quotes correctly as required by POSIX, so do not add quotes.
30705       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30706       ;;
30707     esac |
30708     sort
30709 ) |
30710   sed '
30711      /^ac_cv_env_/b end
30712      t clear
30713      :clear
30714      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30715      t end
30716      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30717      :end' >>confcache
30718 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30719   if test -w "$cache_file"; then
30720     test "x$cache_file" != "x/dev/null" &&
30721       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
30722 $as_echo "$as_me: updating cache $cache_file" >&6;}
30723     cat confcache >$cache_file
30724   else
30725     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30726 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30727   fi
30728 fi
30729 rm -f confcache
30730
30731 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30732 # Let make expand exec_prefix.
30733 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30734
30735 DEFS=-DHAVE_CONFIG_H
30736
30737 ac_libobjs=
30738 ac_ltlibobjs=
30739 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30740   # 1. Remove the extension, and $U if already installed.
30741   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30742   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30743   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30744   #    will be set to the directory where LIBOBJS objects are built.
30745   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30746   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30747 done
30748 LIBOBJS=$ac_libobjs
30749
30750 LTLIBOBJS=$ac_ltlibobjs
30751
30752
30753
30754
30755 : ${CONFIG_STATUS=./config.status}
30756 ac_write_fail=0
30757 ac_clean_files_save=$ac_clean_files
30758 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30759 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30760 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30761 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30762 #! $SHELL
30763 # Generated by $as_me.
30764 # Run this file to recreate the current configuration.
30765 # Compiler output produced by configure, useful for debugging
30766 # configure, is in config.log if it exists.
30767
30768 debug=false
30769 ac_cs_recheck=false
30770 ac_cs_silent=false
30771 SHELL=\${CONFIG_SHELL-$SHELL}
30772 _ACEOF
30773
30774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30775 ## --------------------- ##
30776 ## M4sh Initialization.  ##
30777 ## --------------------- ##
30778
30779 # Be more Bourne compatible
30780 DUALCASE=1; export DUALCASE # for MKS sh
30781 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30782   emulate sh
30783   NULLCMD=:
30784   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30785   # is contrary to our usage.  Disable this feature.
30786   alias -g '${1+"$@"}'='"$@"'
30787   setopt NO_GLOB_SUBST
30788 else
30789   case `(set -o) 2>/dev/null` in
30790   *posix*) set -o posix ;;
30791 esac
30792
30793 fi
30794
30795
30796
30797
30798 # PATH needs CR
30799 # Avoid depending upon Character Ranges.
30800 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30801 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30802 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30803 as_cr_digits='0123456789'
30804 as_cr_alnum=$as_cr_Letters$as_cr_digits
30805
30806 as_nl='
30807 '
30808 export as_nl
30809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30813 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30814   as_echo='printf %s\n'
30815   as_echo_n='printf %s'
30816 else
30817   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30818     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30819     as_echo_n='/usr/ucb/echo -n'
30820   else
30821     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30822     as_echo_n_body='eval
30823       arg=$1;
30824       case $arg in
30825       *"$as_nl"*)
30826         expr "X$arg" : "X\\(.*\\)$as_nl";
30827         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30828       esac;
30829       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30830     '
30831     export as_echo_n_body
30832     as_echo_n='sh -c $as_echo_n_body as_echo'
30833   fi
30834   export as_echo_body
30835   as_echo='sh -c $as_echo_body as_echo'
30836 fi
30837
30838 # The user is always right.
30839 if test "${PATH_SEPARATOR+set}" != set; then
30840   PATH_SEPARATOR=:
30841   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30842     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30843       PATH_SEPARATOR=';'
30844   }
30845 fi
30846
30847 # Support unset when possible.
30848 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30849   as_unset=unset
30850 else
30851   as_unset=false
30852 fi
30853
30854
30855 # IFS
30856 # We need space, tab and new line, in precisely that order.  Quoting is
30857 # there to prevent editors from complaining about space-tab.
30858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30859 # splitting by setting IFS to empty value.)
30860 IFS=" ""        $as_nl"
30861
30862 # Find who we are.  Look in the path if we contain no directory separator.
30863 case $0 in
30864   *[\\/]* ) as_myself=$0 ;;
30865   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30866 for as_dir in $PATH
30867 do
30868   IFS=$as_save_IFS
30869   test -z "$as_dir" && as_dir=.
30870   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30871 done
30872 IFS=$as_save_IFS
30873
30874      ;;
30875 esac
30876 # We did not find ourselves, most probably we were run as `sh COMMAND'
30877 # in which case we are not to be found in the path.
30878 if test "x$as_myself" = x; then
30879   as_myself=$0
30880 fi
30881 if test ! -f "$as_myself"; then
30882   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30883   { (exit 1); exit 1; }
30884 fi
30885
30886 # Work around bugs in pre-3.0 UWIN ksh.
30887 for as_var in ENV MAIL MAILPATH
30888 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30889 done
30890 PS1='$ '
30891 PS2='> '
30892 PS4='+ '
30893
30894 # NLS nuisances.
30895 LC_ALL=C
30896 export LC_ALL
30897 LANGUAGE=C
30898 export LANGUAGE
30899
30900 # Required to use basename.
30901 if expr a : '\(a\)' >/dev/null 2>&1 &&
30902    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30903   as_expr=expr
30904 else
30905   as_expr=false
30906 fi
30907
30908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30909   as_basename=basename
30910 else
30911   as_basename=false
30912 fi
30913
30914
30915 # Name of the executable.
30916 as_me=`$as_basename -- "$0" ||
30917 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30918          X"$0" : 'X\(//\)$' \| \
30919          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30920 $as_echo X/"$0" |
30921     sed '/^.*\/\([^/][^/]*\)\/*$/{
30922             s//\1/
30923             q
30924           }
30925           /^X\/\(\/\/\)$/{
30926             s//\1/
30927             q
30928           }
30929           /^X\/\(\/\).*/{
30930             s//\1/
30931             q
30932           }
30933           s/.*/./; q'`
30934
30935 # CDPATH.
30936 $as_unset CDPATH
30937
30938
30939
30940   as_lineno_1=$LINENO
30941   as_lineno_2=$LINENO
30942   test "x$as_lineno_1" != "x$as_lineno_2" &&
30943   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30944
30945   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30946   # uniformly replaced by the line number.  The first 'sed' inserts a
30947   # line-number line after each line using $LINENO; the second 'sed'
30948   # does the real work.  The second script uses 'N' to pair each
30949   # line-number line with the line containing $LINENO, and appends
30950   # trailing '-' during substitution so that $LINENO is not a special
30951   # case at line end.
30952   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30953   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30954   # E. McMahon (1931-1989) for sed's syntax.  :-)
30955   sed -n '
30956     p
30957     /[$]LINENO/=
30958   ' <$as_myself |
30959     sed '
30960       s/[$]LINENO.*/&-/
30961       t lineno
30962       b
30963       :lineno
30964       N
30965       :loop
30966       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30967       t loop
30968       s/-\n.*//
30969     ' >$as_me.lineno &&
30970   chmod +x "$as_me.lineno" ||
30971     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30972    { (exit 1); exit 1; }; }
30973
30974   # Don't try to exec as it changes $[0], causing all sort of problems
30975   # (the dirname of $[0] is not the place where we might find the
30976   # original and so on.  Autoconf is especially sensitive to this).
30977   . "./$as_me.lineno"
30978   # Exit status is that of the last command.
30979   exit
30980 }
30981
30982
30983 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30984   as_dirname=dirname
30985 else
30986   as_dirname=false
30987 fi
30988
30989 ECHO_C= ECHO_N= ECHO_T=
30990 case `echo -n x` in
30991 -n*)
30992   case `echo 'x\c'` in
30993   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30994   *)   ECHO_C='\c';;
30995   esac;;
30996 *)
30997   ECHO_N='-n';;
30998 esac
30999 if expr a : '\(a\)' >/dev/null 2>&1 &&
31000    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31001   as_expr=expr
31002 else
31003   as_expr=false
31004 fi
31005
31006 rm -f conf$$ conf$$.exe conf$$.file
31007 if test -d conf$$.dir; then
31008   rm -f conf$$.dir/conf$$.file
31009 else
31010   rm -f conf$$.dir
31011   mkdir conf$$.dir 2>/dev/null
31012 fi
31013 if (echo >conf$$.file) 2>/dev/null; then
31014   if ln -s conf$$.file conf$$ 2>/dev/null; then
31015     as_ln_s='ln -s'
31016     # ... but there are two gotchas:
31017     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31018     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31019     # In both cases, we have to default to `cp -p'.
31020     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31021       as_ln_s='cp -p'
31022   elif ln conf$$.file conf$$ 2>/dev/null; then
31023     as_ln_s=ln
31024   else
31025     as_ln_s='cp -p'
31026   fi
31027 else
31028   as_ln_s='cp -p'
31029 fi
31030 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31031 rmdir conf$$.dir 2>/dev/null
31032
31033 if mkdir -p . 2>/dev/null; then
31034   as_mkdir_p=:
31035 else
31036   test -d ./-p && rmdir ./-p
31037   as_mkdir_p=false
31038 fi
31039
31040 if test -x / >/dev/null 2>&1; then
31041   as_test_x='test -x'
31042 else
31043   if ls -dL / >/dev/null 2>&1; then
31044     as_ls_L_option=L
31045   else
31046     as_ls_L_option=
31047   fi
31048   as_test_x='
31049     eval sh -c '\''
31050       if test -d "$1"; then
31051         test -d "$1/.";
31052       else
31053         case $1 in
31054         -*)set "./$1";;
31055         esac;
31056         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31057         ???[sx]*):;;*)false;;esac;fi
31058     '\'' sh
31059   '
31060 fi
31061 as_executable_p=$as_test_x
31062
31063 # Sed expression to map a string onto a valid CPP name.
31064 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31065
31066 # Sed expression to map a string onto a valid variable name.
31067 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31068
31069
31070 exec 6>&1
31071
31072 # Save the log message, to keep $[0] and so on meaningful, and to
31073 # report actual input values of CONFIG_FILES etc. instead of their
31074 # values after options handling.
31075 ac_log="
31076 This file was extended by PostgreSQL $as_me 9.4devel, which was
31077 generated by GNU Autoconf 2.63.  Invocation command line was
31078
31079   CONFIG_FILES    = $CONFIG_FILES
31080   CONFIG_HEADERS  = $CONFIG_HEADERS
31081   CONFIG_LINKS    = $CONFIG_LINKS
31082   CONFIG_COMMANDS = $CONFIG_COMMANDS
31083   $ $0 $@
31084
31085 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31086 "
31087
31088 _ACEOF
31089
31090 case $ac_config_files in *"
31091 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31092 esac
31093
31094 case $ac_config_headers in *"
31095 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31096 esac
31097
31098
31099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31100 # Files that config.status was made for.
31101 config_files="$ac_config_files"
31102 config_headers="$ac_config_headers"
31103 config_links="$ac_config_links"
31104 config_commands="$ac_config_commands"
31105
31106 _ACEOF
31107
31108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31109 ac_cs_usage="\
31110 \`$as_me' instantiates files from templates according to the
31111 current configuration.
31112
31113 Usage: $0 [OPTION]... [FILE]...
31114
31115   -h, --help       print this help, then exit
31116   -V, --version    print version number and configuration settings, then exit
31117   -q, --quiet, --silent
31118                    do not print progress messages
31119   -d, --debug      don't remove temporary files
31120       --recheck    update $as_me by reconfiguring in the same conditions
31121       --file=FILE[:TEMPLATE]
31122                    instantiate the configuration file FILE
31123       --header=FILE[:TEMPLATE]
31124                    instantiate the configuration header FILE
31125
31126 Configuration files:
31127 $config_files
31128
31129 Configuration headers:
31130 $config_headers
31131
31132 Configuration links:
31133 $config_links
31134
31135 Configuration commands:
31136 $config_commands
31137
31138 Report bugs to <bug-autoconf@gnu.org>."
31139
31140 _ACEOF
31141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31142 ac_cs_version="\\
31143 PostgreSQL config.status 9.4devel
31144 configured by $0, generated by GNU Autoconf 2.63,
31145   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31146
31147 Copyright (C) 2008 Free Software Foundation, Inc.
31148 This config.status script is free software; the Free Software Foundation
31149 gives unlimited permission to copy, distribute and modify it."
31150
31151 ac_pwd='$ac_pwd'
31152 srcdir='$srcdir'
31153 INSTALL='$INSTALL'
31154 MKDIR_P='$MKDIR_P'
31155 AWK='$AWK'
31156 test -n "\$AWK" || AWK=awk
31157 _ACEOF
31158
31159 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31160 # The default lists apply if the user does not specify any file.
31161 ac_need_defaults=:
31162 while test $# != 0
31163 do
31164   case $1 in
31165   --*=*)
31166     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31167     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31168     ac_shift=:
31169     ;;
31170   *)
31171     ac_option=$1
31172     ac_optarg=$2
31173     ac_shift=shift
31174     ;;
31175   esac
31176
31177   case $ac_option in
31178   # Handling of the options.
31179   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31180     ac_cs_recheck=: ;;
31181   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31182     $as_echo "$ac_cs_version"; exit ;;
31183   --debug | --debu | --deb | --de | --d | -d )
31184     debug=: ;;
31185   --file | --fil | --fi | --f )
31186     $ac_shift
31187     case $ac_optarg in
31188     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31189     esac
31190     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
31191     ac_need_defaults=false;;
31192   --header | --heade | --head | --hea )
31193     $ac_shift
31194     case $ac_optarg in
31195     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31196     esac
31197     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
31198     ac_need_defaults=false;;
31199   --he | --h)
31200     # Conflict between --help and --header
31201     { $as_echo "$as_me: error: ambiguous option: $1
31202 Try \`$0 --help' for more information." >&2
31203    { (exit 1); exit 1; }; };;
31204   --help | --hel | -h )
31205     $as_echo "$ac_cs_usage"; exit ;;
31206   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31207   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31208     ac_cs_silent=: ;;
31209
31210   # This is an error.
31211   -*) { $as_echo "$as_me: error: unrecognized option: $1
31212 Try \`$0 --help' for more information." >&2
31213    { (exit 1); exit 1; }; } ;;
31214
31215   *) ac_config_targets="$ac_config_targets $1"
31216      ac_need_defaults=false ;;
31217
31218   esac
31219   shift
31220 done
31221
31222 ac_configure_extra_args=
31223
31224 if $ac_cs_silent; then
31225   exec 6>/dev/null
31226   ac_configure_extra_args="$ac_configure_extra_args --silent"
31227 fi
31228
31229 _ACEOF
31230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31231 if \$ac_cs_recheck; then
31232   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31233   shift
31234   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31235   CONFIG_SHELL='$SHELL'
31236   export CONFIG_SHELL
31237   exec "\$@"
31238 fi
31239
31240 _ACEOF
31241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31242 exec 5>>config.log
31243 {
31244   echo
31245   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31246 ## Running $as_me. ##
31247 _ASBOX
31248   $as_echo "$ac_log"
31249 } >&5
31250
31251 _ACEOF
31252 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31253 _ACEOF
31254
31255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31256
31257 # Handling of arguments.
31258 for ac_config_target in $ac_config_targets
31259 do
31260   case $ac_config_target in
31261     "src/backend/port/tas.s") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/tas.s:src/backend/port/tas/${tas_file}" ;;
31262     "GNUmakefile") CONFIG_FILES="$CONFIG_FILES GNUmakefile" ;;
31263     "src/Makefile.global") CONFIG_FILES="$CONFIG_FILES src/Makefile.global" ;;
31264     "src/backend/port/dynloader.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/dynloader.c:src/backend/port/dynloader/${template}.c" ;;
31265     "src/backend/port/pg_sema.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_sema.c:${SEMA_IMPLEMENTATION}" ;;
31266     "src/backend/port/pg_shmem.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_shmem.c:${SHMEM_IMPLEMENTATION}" ;;
31267     "src/backend/port/pg_latch.c") CONFIG_LINKS="$CONFIG_LINKS src/backend/port/pg_latch.c:${LATCH_IMPLEMENTATION}" ;;
31268     "src/include/dynloader.h") CONFIG_LINKS="$CONFIG_LINKS src/include/dynloader.h:src/backend/port/dynloader/${template}.h" ;;
31269     "src/include/pg_config_os.h") CONFIG_LINKS="$CONFIG_LINKS src/include/pg_config_os.h:src/include/port/${template}.h" ;;
31270     "src/Makefile.port") CONFIG_LINKS="$CONFIG_LINKS src/Makefile.port:src/makefiles/Makefile.${template}" ;;
31271     "check_win32_symlinks") CONFIG_COMMANDS="$CONFIG_COMMANDS check_win32_symlinks" ;;
31272     "src/include/pg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config.h" ;;
31273     "src/include/pg_config_ext.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pg_config_ext.h" ;;
31274     "src/interfaces/ecpg/include/ecpg_config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/interfaces/ecpg/include/ecpg_config.h" ;;
31275
31276   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31277 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31278    { (exit 1); exit 1; }; };;
31279   esac
31280 done
31281
31282
31283 # If the user did not use the arguments to specify the items to instantiate,
31284 # then the envvar interface is used.  Set only those that are not.
31285 # We use the long form for the default assignment because of an extremely
31286 # bizarre bug on SunOS 4.1.3.
31287 if $ac_need_defaults; then
31288   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31289   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31290   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
31291   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31292 fi
31293
31294 # Have a temporary directory for convenience.  Make it in the build tree
31295 # simply because there is no reason against having it here, and in addition,
31296 # creating and moving files from /tmp can sometimes cause problems.
31297 # Hook for its removal unless debugging.
31298 # Note that there is a small window in which the directory will not be cleaned:
31299 # after its creation but before its name has been assigned to `$tmp'.
31300 $debug ||
31301 {
31302   tmp=
31303   trap 'exit_status=$?
31304   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31305 ' 0
31306   trap '{ (exit 1); exit 1; }' 1 2 13 15
31307 }
31308 # Create a (secure) tmp directory for tmp files.
31309
31310 {
31311   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31312   test -n "$tmp" && test -d "$tmp"
31313 }  ||
31314 {
31315   tmp=./conf$$-$RANDOM
31316   (umask 077 && mkdir "$tmp")
31317 } ||
31318 {
31319    $as_echo "$as_me: cannot create a temporary directory in ." >&2
31320    { (exit 1); exit 1; }
31321 }
31322
31323 # Set up the scripts for CONFIG_FILES section.
31324 # No need to generate them if there are no CONFIG_FILES.
31325 # This happens for instance with `./config.status config.h'.
31326 if test -n "$CONFIG_FILES"; then
31327
31328
31329 ac_cr='\r'
31330 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31331 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31332   ac_cs_awk_cr='\\r'
31333 else
31334   ac_cs_awk_cr=$ac_cr
31335 fi
31336
31337 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31338 _ACEOF
31339
31340
31341 {
31342   echo "cat >conf$$subs.awk <<_ACEOF" &&
31343   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31344   echo "_ACEOF"
31345 } >conf$$subs.sh ||
31346   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31347 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31348    { (exit 1); exit 1; }; }
31349 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31350 ac_delim='%!_!# '
31351 for ac_last_try in false false false false false :; do
31352   . ./conf$$subs.sh ||
31353     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31354 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31355    { (exit 1); exit 1; }; }
31356
31357   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31358   if test $ac_delim_n = $ac_delim_num; then
31359     break
31360   elif $ac_last_try; then
31361     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31362 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31363    { (exit 1); exit 1; }; }
31364   else
31365     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31366   fi
31367 done
31368 rm -f conf$$subs.sh
31369
31370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31371 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31372 _ACEOF
31373 sed -n '
31374 h
31375 s/^/S["/; s/!.*/"]=/
31376 p
31377 g
31378 s/^[^!]*!//
31379 :repl
31380 t repl
31381 s/'"$ac_delim"'$//
31382 t delim
31383 :nl
31384 h
31385 s/\(.\{148\}\).*/\1/
31386 t more1
31387 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31388 p
31389 n
31390 b repl
31391 :more1
31392 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31393 p
31394 g
31395 s/.\{148\}//
31396 t nl
31397 :delim
31398 h
31399 s/\(.\{148\}\).*/\1/
31400 t more2
31401 s/["\\]/\\&/g; s/^/"/; s/$/"/
31402 p
31403 b
31404 :more2
31405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31406 p
31407 g
31408 s/.\{148\}//
31409 t delim
31410 ' <conf$$subs.awk | sed '
31411 /^[^""]/{
31412   N
31413   s/\n//
31414 }
31415 ' >>$CONFIG_STATUS || ac_write_fail=1
31416 rm -f conf$$subs.awk
31417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31418 _ACAWK
31419 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31420   for (key in S) S_is_set[key] = 1
31421   FS = "\a"
31422
31423 }
31424 {
31425   line = $ 0
31426   nfields = split(line, field, "@")
31427   substed = 0
31428   len = length(field[1])
31429   for (i = 2; i < nfields; i++) {
31430     key = field[i]
31431     keylen = length(key)
31432     if (S_is_set[key]) {
31433       value = S[key]
31434       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31435       len += length(value) + length(field[++i])
31436       substed = 1
31437     } else
31438       len += 1 + keylen
31439   }
31440
31441   print line
31442 }
31443
31444 _ACAWK
31445 _ACEOF
31446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31447 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31448   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31449 else
31450   cat
31451 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31452   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
31453 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
31454    { (exit 1); exit 1; }; }
31455 _ACEOF
31456
31457 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31458 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31459 # trailing colons and then remove the whole line if VPATH becomes empty
31460 # (actually we leave an empty line to preserve line numbers).
31461 if test "x$srcdir" = x.; then
31462   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31463 s/:*\$(srcdir):*/:/
31464 s/:*\${srcdir}:*/:/
31465 s/:*@srcdir@:*/:/
31466 s/^\([^=]*=[     ]*\):*/\1/
31467 s/:*$//
31468 s/^[^=]*=[       ]*$//
31469 }'
31470 fi
31471
31472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31473 fi # test -n "$CONFIG_FILES"
31474
31475 # Set up the scripts for CONFIG_HEADERS section.
31476 # No need to generate them if there are no CONFIG_HEADERS.
31477 # This happens for instance with `./config.status Makefile'.
31478 if test -n "$CONFIG_HEADERS"; then
31479 cat >"$tmp/defines.awk" <<\_ACAWK ||
31480 BEGIN {
31481 _ACEOF
31482
31483 # Transform confdefs.h into an awk script `defines.awk', embedded as
31484 # here-document in config.status, that substitutes the proper values into
31485 # config.h.in to produce config.h.
31486
31487 # Create a delimiter string that does not exist in confdefs.h, to ease
31488 # handling of long lines.
31489 ac_delim='%!_!# '
31490 for ac_last_try in false false :; do
31491   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31492   if test -z "$ac_t"; then
31493     break
31494   elif $ac_last_try; then
31495     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
31496 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
31497    { (exit 1); exit 1; }; }
31498   else
31499     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31500   fi
31501 done
31502
31503 # For the awk script, D is an array of macro values keyed by name,
31504 # likewise P contains macro parameters if any.  Preserve backslash
31505 # newline sequences.
31506
31507 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31508 sed -n '
31509 s/.\{148\}/&'"$ac_delim"'/g
31510 t rset
31511 :rset
31512 s/^[     ]*#[    ]*define[       ][      ]*/ /
31513 t def
31514 d
31515 :def
31516 s/\\$//
31517 t bsnl
31518 s/["\\]/\\&/g
31519 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31520 D["\1"]=" \3"/p
31521 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31522 d
31523 :bsnl
31524 s/["\\]/\\&/g
31525 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31526 D["\1"]=" \3\\\\\\n"\\/p
31527 t cont
31528 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31529 t cont
31530 d
31531 :cont
31532 n
31533 s/.\{148\}/&'"$ac_delim"'/g
31534 t clear
31535 :clear
31536 s/\\$//
31537 t bsnlc
31538 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31539 d
31540 :bsnlc
31541 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31542 b cont
31543 ' <confdefs.h | sed '
31544 s/'"$ac_delim"'/"\\\
31545 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31546
31547 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31548   for (key in D) D_is_set[key] = 1
31549   FS = "\a"
31550 }
31551 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31552   line = \$ 0
31553   split(line, arg, " ")
31554   if (arg[1] == "#") {
31555     defundef = arg[2]
31556     mac1 = arg[3]
31557   } else {
31558     defundef = substr(arg[1], 2)
31559     mac1 = arg[2]
31560   }
31561   split(mac1, mac2, "(") #)
31562   macro = mac2[1]
31563   prefix = substr(line, 1, index(line, defundef) - 1)
31564   if (D_is_set[macro]) {
31565     # Preserve the white space surrounding the "#".
31566     print prefix "define", macro P[macro] D[macro]
31567     next
31568   } else {
31569     # Replace #undef with comments.  This is necessary, for example,
31570     # in the case of _POSIX_SOURCE, which is predefined and required
31571     # on some systems where configure will not decide to define it.
31572     if (defundef == "undef") {
31573       print "/*", prefix defundef, macro, "*/"
31574       next
31575     }
31576   }
31577 }
31578 { print }
31579 _ACAWK
31580 _ACEOF
31581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31582   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
31583 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
31584    { (exit 1); exit 1; }; }
31585 fi # test -n "$CONFIG_HEADERS"
31586
31587
31588 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31589 shift
31590 for ac_tag
31591 do
31592   case $ac_tag in
31593   :[FHLC]) ac_mode=$ac_tag; continue;;
31594   esac
31595   case $ac_mode$ac_tag in
31596   :[FHL]*:*);;
31597   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
31598 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
31599    { (exit 1); exit 1; }; };;
31600   :[FH]-) ac_tag=-:-;;
31601   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31602   esac
31603   ac_save_IFS=$IFS
31604   IFS=:
31605   set x $ac_tag
31606   IFS=$ac_save_IFS
31607   shift
31608   ac_file=$1
31609   shift
31610
31611   case $ac_mode in
31612   :L) ac_source=$1;;
31613   :[FH])
31614     ac_file_inputs=
31615     for ac_f
31616     do
31617       case $ac_f in
31618       -) ac_f="$tmp/stdin";;
31619       *) # Look for the file first in the build tree, then in the source tree
31620          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31621          # because $ac_f cannot contain `:'.
31622          test -f "$ac_f" ||
31623            case $ac_f in
31624            [\\/$]*) false;;
31625            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31626            esac ||
31627            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31628 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31629    { (exit 1); exit 1; }; };;
31630       esac
31631       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31632       ac_file_inputs="$ac_file_inputs '$ac_f'"
31633     done
31634
31635     # Let's still pretend it is `configure' which instantiates (i.e., don't
31636     # use $as_me), people would be surprised to read:
31637     #    /* config.h.  Generated by config.status.  */
31638     configure_input='Generated from '`
31639           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31640         `' by configure.'
31641     if test x"$ac_file" != x-; then
31642       configure_input="$ac_file.  $configure_input"
31643       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
31644 $as_echo "$as_me: creating $ac_file" >&6;}
31645     fi
31646     # Neutralize special characters interpreted by sed in replacement strings.
31647     case $configure_input in #(
31648     *\&* | *\|* | *\\* )
31649        ac_sed_conf_input=`$as_echo "$configure_input" |
31650        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31651     *) ac_sed_conf_input=$configure_input;;
31652     esac
31653
31654     case $ac_tag in
31655     *:-:* | *:-) cat >"$tmp/stdin" \
31656       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31657 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31658    { (exit 1); exit 1; }; } ;;
31659     esac
31660     ;;
31661   esac
31662
31663   ac_dir=`$as_dirname -- "$ac_file" ||
31664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31665          X"$ac_file" : 'X\(//\)[^/]' \| \
31666          X"$ac_file" : 'X\(//\)$' \| \
31667          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31668 $as_echo X"$ac_file" |
31669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31670             s//\1/
31671             q
31672           }
31673           /^X\(\/\/\)[^/].*/{
31674             s//\1/
31675             q
31676           }
31677           /^X\(\/\/\)$/{
31678             s//\1/
31679             q
31680           }
31681           /^X\(\/\).*/{
31682             s//\1/
31683             q
31684           }
31685           s/.*/./; q'`
31686   { as_dir="$ac_dir"
31687   case $as_dir in #(
31688   -*) as_dir=./$as_dir;;
31689   esac
31690   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31691     as_dirs=
31692     while :; do
31693       case $as_dir in #(
31694       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31695       *) as_qdir=$as_dir;;
31696       esac
31697       as_dirs="'$as_qdir' $as_dirs"
31698       as_dir=`$as_dirname -- "$as_dir" ||
31699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31700          X"$as_dir" : 'X\(//\)[^/]' \| \
31701          X"$as_dir" : 'X\(//\)$' \| \
31702          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31703 $as_echo X"$as_dir" |
31704     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31705             s//\1/
31706             q
31707           }
31708           /^X\(\/\/\)[^/].*/{
31709             s//\1/
31710             q
31711           }
31712           /^X\(\/\/\)$/{
31713             s//\1/
31714             q
31715           }
31716           /^X\(\/\).*/{
31717             s//\1/
31718             q
31719           }
31720           s/.*/./; q'`
31721       test -d "$as_dir" && break
31722     done
31723     test -z "$as_dirs" || eval "mkdir $as_dirs"
31724   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31725 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
31726    { (exit 1); exit 1; }; }; }
31727   ac_builddir=.
31728
31729 case "$ac_dir" in
31730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31731 *)
31732   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31733   # A ".." for each directory in $ac_dir_suffix.
31734   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31735   case $ac_top_builddir_sub in
31736   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31737   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31738   esac ;;
31739 esac
31740 ac_abs_top_builddir=$ac_pwd
31741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31742 # for backward compatibility:
31743 ac_top_builddir=$ac_top_build_prefix
31744
31745 case $srcdir in
31746   .)  # We are building in place.
31747     ac_srcdir=.
31748     ac_top_srcdir=$ac_top_builddir_sub
31749     ac_abs_top_srcdir=$ac_pwd ;;
31750   [\\/]* | ?:[\\/]* )  # Absolute name.
31751     ac_srcdir=$srcdir$ac_dir_suffix;
31752     ac_top_srcdir=$srcdir
31753     ac_abs_top_srcdir=$srcdir ;;
31754   *) # Relative name.
31755     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31756     ac_top_srcdir=$ac_top_build_prefix$srcdir
31757     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31758 esac
31759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31760
31761
31762   case $ac_mode in
31763   :F)
31764   #
31765   # CONFIG_FILE
31766   #
31767
31768   case $INSTALL in
31769   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31770   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31771   esac
31772   ac_MKDIR_P=$MKDIR_P
31773   case $MKDIR_P in
31774   [\\/$]* | ?:[\\/]* ) ;;
31775   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
31776   esac
31777 _ACEOF
31778
31779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31780 # If the template does not know about datarootdir, expand it.
31781 # FIXME: This hack should be removed a few years after 2.60.
31782 ac_datarootdir_hack=; ac_datarootdir_seen=
31783
31784 ac_sed_dataroot='
31785 /datarootdir/ {
31786   p
31787   q
31788 }
31789 /@datadir@/p
31790 /@docdir@/p
31791 /@infodir@/p
31792 /@localedir@/p
31793 /@mandir@/p
31794 '
31795 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31796 *datarootdir*) ac_datarootdir_seen=yes;;
31797 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31798   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31799 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31800 _ACEOF
31801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31802   ac_datarootdir_hack='
31803   s&@datadir@&$datadir&g
31804   s&@docdir@&$docdir&g
31805   s&@infodir@&$infodir&g
31806   s&@localedir@&$localedir&g
31807   s&@mandir@&$mandir&g
31808     s&\\\${datarootdir}&$datarootdir&g' ;;
31809 esac
31810 _ACEOF
31811
31812 # Neutralize VPATH when `$srcdir' = `.'.
31813 # Shell code in configure.ac might set extrasub.
31814 # FIXME: do we really want to maintain this feature?
31815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31816 ac_sed_extra="$ac_vpsub
31817 $extrasub
31818 _ACEOF
31819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31820 :t
31821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31822 s|@configure_input@|$ac_sed_conf_input|;t t
31823 s&@top_builddir@&$ac_top_builddir_sub&;t t
31824 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31825 s&@srcdir@&$ac_srcdir&;t t
31826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31827 s&@top_srcdir@&$ac_top_srcdir&;t t
31828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31829 s&@builddir@&$ac_builddir&;t t
31830 s&@abs_builddir@&$ac_abs_builddir&;t t
31831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31832 s&@INSTALL@&$ac_INSTALL&;t t
31833 s&@MKDIR_P@&$ac_MKDIR_P&;t t
31834 $ac_datarootdir_hack
31835 "
31836 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
31837   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31838 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31839    { (exit 1); exit 1; }; }
31840
31841 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31842   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31843   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31844   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31845 which seems to be undefined.  Please make sure it is defined." >&5
31846 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31847 which seems to be undefined.  Please make sure it is defined." >&2;}
31848
31849   rm -f "$tmp/stdin"
31850   case $ac_file in
31851   -) cat "$tmp/out" && rm -f "$tmp/out";;
31852   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
31853   esac \
31854   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31855 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31856    { (exit 1); exit 1; }; }
31857  ;;
31858   :H)
31859   #
31860   # CONFIG_HEADER
31861   #
31862   if test x"$ac_file" != x-; then
31863     {
31864       $as_echo "/* $configure_input  */" \
31865       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
31866     } >"$tmp/config.h" \
31867       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31868 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31869    { (exit 1); exit 1; }; }
31870     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
31871       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31872 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31873     else
31874       rm -f "$ac_file"
31875       mv "$tmp/config.h" "$ac_file" \
31876         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
31877 $as_echo "$as_me: error: could not create $ac_file" >&2;}
31878    { (exit 1); exit 1; }; }
31879     fi
31880   else
31881     $as_echo "/* $configure_input  */" \
31882       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
31883       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
31884 $as_echo "$as_me: error: could not create -" >&2;}
31885    { (exit 1); exit 1; }; }
31886   fi
31887  ;;
31888   :L)
31889   #
31890   # CONFIG_LINK
31891   #
31892
31893   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
31894     :
31895   else
31896     # Prefer the file from the source tree if names are identical.
31897     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
31898       ac_source=$srcdir/$ac_source
31899     fi
31900
31901     { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
31902 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
31903
31904     if test ! -r "$ac_source"; then
31905       { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
31906 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
31907    { (exit 1); exit 1; }; }
31908     fi
31909     rm -f "$ac_file"
31910
31911     # Try a relative symlink, then a hard link, then a copy.
31912     case $srcdir in
31913     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
31914         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
31915     esac
31916     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
31917       ln "$ac_source" "$ac_file" 2>/dev/null ||
31918       cp -p "$ac_source" "$ac_file" ||
31919       { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac_file" >&5
31920 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
31921    { (exit 1); exit 1; }; }
31922   fi
31923  ;;
31924   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
31925 $as_echo "$as_me: executing $ac_file commands" >&6;}
31926  ;;
31927   esac
31928
31929
31930   case $ac_file$ac_mode in
31931     "check_win32_symlinks":C)
31932 # Links sometimes fail undetected on Mingw -
31933 # so here we detect it and warn the user
31934 for FILE in $CONFIG_LINKS
31935  do
31936         # test -e works for symlinks in the MinGW console
31937         test -e `expr "$FILE" : '\([^:]*\)'` || { $as_echo "$as_me:$LINENO: WARNING: *** link for $FILE -- please fix by hand" >&5
31938 $as_echo "$as_me: WARNING: *** link for $FILE -- please fix by hand" >&2;}
31939  done
31940  ;;
31941     "src/include/pg_config.h":H)
31942 # Update timestamp for pg_config.h (see Makefile.global)
31943 echo >src/include/stamp-h
31944  ;;
31945     "src/include/pg_config_ext.h":H)
31946 # Update timestamp for pg_config_ext.h (see Makefile.global)
31947 echo >src/include/stamp-ext-h
31948  ;;
31949     "src/interfaces/ecpg/include/ecpg_config.h":H) echo >src/interfaces/ecpg/include/stamp-h ;;
31950
31951   esac
31952 done # for ac_tag
31953
31954
31955 { (exit 0); exit 0; }
31956 _ACEOF
31957 chmod +x $CONFIG_STATUS
31958 ac_clean_files=$ac_clean_files_save
31959
31960 test $ac_write_fail = 0 ||
31961   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
31962 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
31963    { (exit 1); exit 1; }; }
31964
31965
31966 # configure is writing to config.log, and then calls config.status.
31967 # config.status does its own redirection, appending to config.log.
31968 # Unfortunately, on DOS this fails, as config.log is still kept open
31969 # by configure, so config.status won't be able to write to it; its
31970 # output is simply discarded.  So we exec the FD to /dev/null,
31971 # effectively closing config.log, so it can be properly (re)opened and
31972 # appended to by config.status.  When coming back to configure, we
31973 # need to make the FD available again.
31974 if test "$no_create" != yes; then
31975   ac_cs_success=:
31976   ac_config_status_args=
31977   test "$silent" = yes &&
31978     ac_config_status_args="$ac_config_status_args --quiet"
31979   exec 5>/dev/null
31980   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31981   exec 5>>config.log
31982   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31983   # would make configure fail if this is the last instruction.
31984   $ac_cs_success || { (exit 1); exit 1; }
31985 fi
31986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31987   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31988 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
31989 fi
31990